query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
void init( DMatrixSparseCSC A ) { this.A = A; this.m = A.numRows; this.n = A.numCols; this.next = 0; this.head = m; this.tail = m + n; this.nque = m + 2*n; if( parent.length < n || leftmost.length < m) { parent = new int[n]; post ...
[ "Initializes data structures" ]
[ "Get top deployment unit.\n\n@param unit the current deployment unit\n@return top deployment unit", "Returns the setter method for the field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@param argumentType\nthe type to be passed to the setter\n@param <T>\nthe object type\n@return ...
static boolean isOnClasspath(String className) { boolean isOnClassPath = true; try { Class.forName(className); } catch (ClassNotFoundException exception) { isOnClassPath = false; } return isOnClassPath; }
[ "Checks if class is on class path\n@param className of the class to check.\n@return true if class in on class path, false otherwise." ]
[ "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance", "Release transaction that was acquired in a thread with specified permits.", "Starts asynchronous check. Result will be delivered to the listener on t...
public int compareTo(WordLemmaTag wordLemmaTag) { int first = word().compareTo(wordLemmaTag.word()); if (first != 0) return first; int second = lemma().compareTo(wordLemmaTag.lemma()); if (second != 0) return second; else return tag().compareTo(wordLemmaTag.tag()); }
[ "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)" ]
[ "Sets the class loader to be used on serialization operations, for data\nstored in the specified fqn and child nodes. Note that if another class\nloader is set for a specific child node tree, the cache will use instead\nthat class loader.\n\n@param regionFqn\n@param classLoader", "Generates a schedule based on so...
public synchronized void pauseDeployment(final String deployment, ServerActivityCallback listener) { final List<ControlPoint> eps = new ArrayList<ControlPoint>(); for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { if(!ep.isPaused()) { ...
[ "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" ]
[ "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "add a FK column pointing to the item Class", "Replace known tags in the current data values with actual values as appropriate\n\n@param cr a reference to DataPipe from which to read the current m...
private Object getLiteralValue(Expression expression) { if (!(expression instanceof Literal)) { throw new IllegalArgumentException("Expression " + expression + " is not a Literal."); } return ((Literal) expression).getValue(); }
[ "Get the literal value for an expression.\n\n@param expression expression\n@return literal value" ]
[ "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Gets the flags associated with this attribute.\n@return the flags. Will not return {@code null}", "read the file as a list of text lines", "Retrieves the earliest start da...
private Set<String> checkModel(final ModelNode model, TransformationContext context) throws OperationFailedException { final Set<String> attributes = new HashSet<String>(); AttributeTransformationRequirementChecker checker; for (final String attribute : attributeNames) { if (model.ha...
[ "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression" ]
[ "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Checks whether the specified event name is restricte...
private void writeAvailability(Project.Resources.Resource xml, Resource mpx) { AvailabilityPeriods periods = m_factory.createProjectResourcesResourceAvailabilityPeriods(); xml.setAvailabilityPeriods(periods); List<AvailabilityPeriod> list = periods.getAvailabilityPeriod(); for (Availability a...
[ "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource" ]
[ "Tells it to process the submatrix at the next split. Should be called after the\ncurrent submatrix has been processed.", "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current du...
private void writeAssignments() throws IOException { writeAttributeTypes("assignment_types", AssignmentField.values()); m_writer.writeStartList("assignments"); for (ResourceAssignment assignment : m_projectFile.getResourceAssignments()) { writeFields(null, assignment, AssignmentFiel...
[ "This method writes assignment data to a JSON file." ]
[ "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Set the inner angle of the spotlight con...
public double[][] getPositionsAsArray(){ double[][] posAsArr = new double[size()][3]; for(int i = 0; i < size(); i++){ if(get(i)!=null){ posAsArr[i][0] = get(i).x; posAsArr[i][1] = get(i).y; posAsArr[i][2] = get(i).z; } else{ posAsArr[i] = null; } } return posAsArr; }
[ "Converts the positions to a 2D double array\n@return 2d double array [i][j], i=Time index, j=coordinate index" ]
[ "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Used to NOT the next clause specified.", "Execute push docker image on agent\n\n@param launcher\n@param log\n@param im...
public int getCurrentPage() { int currentPage = 1; int count = mScrollable.getScrollingItemsCount(); if (mSupportScrollByPage && mCurrentItemIndex >= 0 && mCurrentItemIndex < count) { currentPage = (Math.min(mCurrentItemIndex + mPageSize - 1, count - 1)/mPageSize); ...
[ "Gets the current page\n@return" ]
[ "Initialize the connection with the specified properties in OJB\nconfiguration files and platform depended properties.\nInvoke this method after a NEW connection is created, not if re-using from pool.\n\n@see org.apache.ojb.broker.platforms.PlatformFactory\n@see org.apache.ojb.broker.platforms.Platform", "Sets al...
public static BoxRetentionPolicyAssignment.Info createAssignmentToFolder(BoxAPIConnection api, String policyID, String folderID) { return createAssignment(api, policyID, new JsonObject().add("type", TYPE_FOLDER).add("id", folderID), ...
[ "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." ]
[ "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied", ...
private static I_CmsResourceBundle tryBundle(String localizedName) { I_CmsResourceBundle result = null; try { String resourceName = localizedName.replace('.', '/') + ".properties"; URL url = CmsResourceBundleLoader.class.getClassLoader().getResource(resourceName); ...
[ "Tries to load a property file with the specified name.\n\n@param localizedName the name\n@return the resource bundle if it was loaded, otherwise the backup" ]
[ "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have...
void persist(final String key, final String value, final boolean enableDisableMode, final boolean disable, final File file) throws IOException, StartException { persist(key, value, enableDisableMode, disable, file, null); }
[ "Implement the persistence handler for storing the group properties." ]
[ "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path.", "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 t...
public static base_responses clear(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface clearresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new Inte...
[ "Use this API to clear Interface resources." ]
[ "Get an CollectionDescriptor by name BRJ\n@param name\n@return CollectionDescriptor or null", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it bein...
public void add(ServiceReference<D> declarationSRef) { D declaration = getDeclaration(declarationSRef); boolean matchFilter = declarationFilter.matches(declaration.getMetadata()); declarations.put(declarationSRef, matchFilter); }
[ "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration" ]
[ "Polls from the location header and updates the polling state with the\npolling response for a PUT operation.\n\n@param pollingState the polling state for the current operation.\n@param <T> the return type of the caller.", "any possible bean invocations from other ADV observers", "Updates LetsEncrypt configurat...
public static Cluster randomShufflePartitions(final Cluster nextCandidateCluster, final int randomSwapAttempts, final int randomSwapSuccesses, final List<Integer> randomS...
[ "Randomly shuffle partitions between nodes within every zone.\n\n@param nextCandidateCluster cluster object.\n@param randomSwapAttempts See RebalanceCLI.\n@param randomSwapSuccesses See RebalanceCLI.\n@param randomSwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs List o...
[ "Checks that a field exists and contains a non-null value.\n@param fieldName the name of the field to check existence/value of.\n@return true if the field exists in the result set and has a non-null value; false otherwise.", "Obtains a local date in International Fixed calendar system from the\nera, year-of-era a...
@Override public boolean visit(VariableDeclarationStatement node) { for (int i = 0; i < node.fragments().size(); ++i) { String nodeType = node.getType().toString(); VariableDeclarationFragment frag = (VariableDeclarationFragment) node.fragments().get(i); state...
[ "Declaration of the variable within a block" ]
[ "Transforms a config file with an XSLT transform.\n\n@param name file name of the config file\n@param transform file name of the XSLT file\n\n@throws Exception if something goes wrong", "copied and altered from TransactionHelper", "Process a beat packet, potentially updating the master tempo and sending our lis...
public static String padOrTrim(String str, int num) { if (str == null) { str = "null"; } int leng = str.length(); if (leng < num) { StringBuilder sb = new StringBuilder(str); for (int i = 0; i < num - leng; i++) { sb.append(' '); } return sb.toString(); ...
[ "Pad or trim so as to produce a string of exactly a certain length.\n\n@param str The String to be padded or truncated\n@param num The desired length" ]
[ "Request a scoped transactional token.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "Get a list of destinations and the values matching templated parameter for the given path.\nReturns a...
public static void extract( DMatrixRMaj src, int rows[] , int rowsSize , int cols[] , int colsSize , DMatrixRMaj dst ) { if( rowsSize != dst.numRows || colsSize != dst.numCols ) throw new MatrixDimensionException("Unexpected number of r...
[ "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in colu...
[ "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate...
public Search counts(String[] countsfields) { assert (countsfields.length > 0); JsonArray countsJsonArray = new JsonArray(); for(String countsfield : countsfields) { JsonPrimitive element = new JsonPrimitive(countsfield); countsJsonArray.add(element); } ...
[ "Array of fieldNames for which counts should be produced\n\n@param countsfields array of the field names\n@return this for additional parameter setting or to query" ]
[ "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem.", "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return", "Populate the expanded exceptions list based on the main exceptions list.\nWhere we find recurring except...
public ArrayList<String> getCarouselImages(){ ArrayList<String> carouselImages = new ArrayList<>(); for(CTInboxMessageContent ctInboxMessageContent: getInboxMessageContents()){ carouselImages.add(ctInboxMessageContent.getMedia()); } return carouselImages; }
[ "Returns an ArrayList of String URLs of the Carousel Images\n@return ArrayList of Strings" ]
[ "Use this API to fetch filtered set of lbvserver resources.\nset the filter parameter values in filtervalue object.", "Return the command line argument\n\n@return \" --server-groups=\" plus a comma-separated list\nof selected server groups. Return empty String if none selected.", "Retrieve the state object a...
public Map<Integer, List<Row>> createWorkPatternAssignmentMap(List<Row> rows) { Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>(); for (Row row : rows) { Integer calendarID = row.getInteger("WORK_PATTERN_ASSIGNMENTID"); List<Row> list = map.get(calendarID); ...
[ "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" ]
[ "Get the features collection from a GeoJson URL.\n\n@param template the template\n@param geoJsonUrl what to parse\n@return the feature collection", "Move the animation frame counter forward.\n\n@return boolean specifying if animation should continue or if loopCount has been fulfilled.", "PUT and POST are identi...
private String formatTime(Date value) { return (value == null ? null : m_formats.getTimeFormat().format(value)); }
[ "This method is called to format a time value.\n\n@param value time value\n@return formatted time value" ]
[ "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID", "Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert ...
private Profile getProfileFromResultSet(ResultSet result) throws Exception { Profile profile = new Profile(); profile.setId(result.getInt(Constants.GENERIC_ID)); Clob clobProfileName = result.getClob(Constants.PROFILE_PROFILE_NAME); String profileName = clobProfileName.getSubString(1, (i...
[ "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception" ]
[ "Return a String with linefeeds and carriage returns normalized to linefeeds.\n\n@param self a CharSequence object\n@return the normalized toString() for the CharSequence\n@see #normalize(String)\n@since 1.8.2", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@...
@Override public Response doRequest(final StitchRequest stitchReq) { initAppMetadata(clientAppId); return super.doRequestUrl(stitchReq, getHostname()); }
[ "Performs a request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return a {@link Response} to the request." ]
[ "Returns the primary message codewords for mode 2.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Returns an unmodifiable view of the specified multi-value map.\n\n@param map the map for which an unmodifiable view...
public static boolean checkVersionDirName(File versionDir) { return (versionDir.isDirectory() && versionDir.getName().contains("version-") && !versionDir.getName() .endsWith(".bak")); }
[ "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false" ]
[ "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Returns formatted version of Iban.\n\n@return A string representing formatted Iban fo...
private void checkAndAddRequiredSubStrings(final List<String> requiredSubStrings) { for( String required : requiredSubStrings ) { if( required == null ) { throw new NullPointerException("required substring should not be null"); } this.requiredSubStrings.add(required); } }
[ "Adds each required substring, checking that it's not null.\n\n@param requiredSubStrings\nthe required substrings\n@throws NullPointerException\nif a required substring is null" ]
[ "create a path structure representing the object graph", "Copy the contents of the given InputStream into a String.\nLeaves the stream open when done.\n@param in the InputStream to copy from\n@return the String that has been copied to\n@throws IOException in case of I/O errors", "Get the inactive overlay direct...
public Optional<URL> getServiceUrl(String name) { Service service = client.services().inNamespace(namespace).withName(name).get(); return service != null ? createUrlForService(service) : Optional.empty(); }
[ "Gets the URL of the service with the given name that has been created during the current session.\n\n@param name to return its URL\n@return URL of the service." ]
[ "Plots the MSD curve with the trajectory t and adds the fitted model for directed motion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time ...
public static nsrollbackcmd get(nitro_service service) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler." ]
[ "Read predecessors from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Set the group name\n\n@param name new name of server group\n@param id ID of group", "This method displays the resource ass...
protected void copyFile(File outputDirectory, File sourceFile, String targetFileName) throws IOException { InputStream fileStream = new FileInputStream(sourceFile); try { copyStream(outputDirectory, fileStream, targetFileNam...
[ "Copy a single named file to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param sourceFile The path of the file to copy.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the file cannot be copied." ]
[ "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it i...
public PlaybackState getFurthestPlaybackState() { PlaybackState result = null; for (PlaybackState state : playbackStateMap.values()) { if (result == null || (!result.playing && state.playing) || (result.position < state.position) && (state.playing || !result.playing)) { ...
[ "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value" ]
[ "Use this API to save nsconfig.", "Checks if a given number is in the range of a long.\n\n@param number\na number which should be in the range of a long (positive or negative)\n\n@see java.lang.Long#MIN_VALUE\n@see java.lang.Long#MAX_VALUE\n\n@return number as a long (rounding might occur)", "Removes all elems ...
public static Iterable<BoxFileVersionRetention.Info> getAll(BoxAPIConnection api, String ... fields) { return getRetentions(api, new QueryFilter(), fields); }
[ "Retrieves all file version retentions.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions." ]
[ "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException", "Saves a screenshot of every new state.", "flush all messages to disk\n\n@param force flush anyway(ignore flush interval)", "Check that a list allowing...
@Override @SuppressWarnings("unchecked") public ChronoLocalDateTime<InternationalFixedDate> localDateTime(TemporalAccessor temporal) { return (ChronoLocalDateTime<InternationalFixedDate>) super.localDateTime(temporal); }
[ "Obtains a International Fixed local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Determines if the queue identified by the given key is a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a delayed queue, false otherwise", "Configures the log context for the server and returns the configured log context.\n\n@p...
@RequestMapping(value = "/cert", method = {RequestMethod.GET, RequestMethod.HEAD}) public String certPage() throws Exception { return "cert"; }
[ "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception" ]
[ "This filter uses a 9-patch to overlay the image.\n\n@param imageUrl Watermark image URL. It is very important to understand that the same image\nloader that Thumbor uses will be used here.", "Returns all the pixels for the image\n\n@return an array of pixels for this image", "Renders the given FreeMarker templ...
public static TransactionalProtocolClient.PreparedOperation<TransactionalProtocolClient.Operation> executeBlocking(final ModelNode operation, TransactionalProtocolClient client) throws IOException, InterruptedException { final BlockingQueueOperationListener<TransactionalProtocolClient.Operation> listener = new ...
[ "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" ]
[ "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "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", "Use ...
protected <T1> void dispatchCommand(final BiConsumer<P, T1> action, final T1 routable1) { routingFor(routable1) .routees() .forEach(routee -> routee.receiveCommand(action, routable1)); }
[ "DISPATCHING - COMMANDS" ]
[ "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments.", "Performs an implicit double step given the set of two imaginary eigenvalues provided.\nSince one eigenvalue is the complex conjugate of the other only one set of real and imaginary\nnumbers is needed.\n\n@param x1 upper index of submatrix....
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, requestTime...
[ "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...
[ "Cache a parse failure for this document.", "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", "Modify the transform's current rotation in quaternion terms, around a\npivot other than the...
public static void showOnlyChannels(Object... channels){ for(LogRecordHandler handler : handlers){ if(handler instanceof VisibilityHandler){ VisibilityHandler visHandler = (VisibilityHandler) handler; visHandler.hideAll(); for (Object channel : channels) { visHandler.al...
[ "Show only the given channel.\n@param channels The channels to show" ]
[ "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Modifies the specified mode and length arrays to combine adjacent modes of the same type, returning the updated index point.", "Update the given resource in the persistent confi...
public static base_response unset(nitro_service client, nsdiameter resource, String[] args) throws Exception{ nsdiameter unsetresource = new nsdiameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of nsdiameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.\n\n@param inv Where the value of the inverse will be stored. Modified.", "convolution data type", "Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name...
public static boolean isResourceTypeIdFree(int id) { try { OpenCms.getResourceManager().getResourceType(id); } catch (CmsLoaderException e) { return true; } return false; }
[ "Is the given resource type id free?\n@param id to be checked\n@return boolean" ]
[ "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Mbeans for SLOP_UPDATE", "Creates a ServiceCall from a paging operation.\n\n@param first the observable to the first page\n@...
public void setActiveView(View v, int position) { final View oldView = mActiveView; mActiveView = v; mActivePosition = position; if (mAllowIndicatorAnimation && oldView != null) { startAnimatingIndicator(); } invalidate(); }
[ "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first." ]
[ "Gets a static resource from a plugin\n\n@param pluginName - Name of the plugin(defined in the plugin manifest)\n@param fileName - Filename to fetch\n@return byte array of the resource\n@throws Exception exception", "Get FieldDescriptor from joined superclass.", "Constructs a camera rig with cameras attached. A...
public static HashMap<String, String> getParameters(String query) { HashMap<String, String> params = new HashMap<String, String>(); if (query == null || query.length() == 0) { return params; } String[] splitQuery = query.split("&"); for (String splitItem : splitQuery...
[ "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters" ]
[ "Initialize that Foundation Logging library.", "Print a day.\n\n@param day Day instance\n@return day value", "Entry point with no system exit", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance", "Retrieves an integer value from...
public final void notifyFooterItemRangeInserted(int positionStart, int itemCount) { int newHeaderItemCount = getHeaderItemCount(); int newContentItemCount = getContentItemCount(); int newFooterItemCount = getFooterItemCount(); if (positionStart < 0 || itemCount < 0 || positionStart + ite...
[ "Notifies that multiple footer items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "Starts processor thread.", "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "remove an objects entry from the object registry", "Transfer the ownership of an application to another user.\n@param appName App name. See {@link #listApps} for...
public float getBoundsDepth() { if (mSceneObject != null) { GVRSceneObject.BoundingVolume v = mSceneObject.getBoundingVolume(); return v.maxCorner.z - v.minCorner.z; } return 0f; }
[ "Gets Widget bounds depth\n@return depth" ]
[ "Use this API to fetch dbdbprofile resource of given name .", "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", ...
public ItemRequest<Project> addMembers(String project) { String path = String.format("/projects/%s/addMembers", project); return new ItemRequest<Project>(this, Project.class, path, "POST"); }
[ "Adds the specified list of users as members of the project. Returns the updated project record.\n\n@param project The project to add members to.\n@return Request object" ]
[ "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid assoc...
public double getAccruedInterest(double time, AnalyticModel model) { LocalDate date= FloatingpointDate.getDateFromFloatingPointDate(schedule.getReferenceDate(), time); return getAccruedInterest(date, model); }
[ "Returns the accrued interest of the bond for a given time.\n\n@param time The time of interest as double.\n@param model The model under which the product is valued.\n@return The accrued interest." ]
[ "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new ...
public boolean canLockBecauseOfInactivity(CmsObject cms, CmsUser user) { return !user.isManaged() && !user.isWebuser() && !OpenCms.getDefaultUsers().isDefaultUser(user.getName()) && !OpenCms.getRoleManager().hasRole(cms, user.getName(), CmsRole.ROOT_ADMIN); }
[ "Checks whether a user account can be locked because of inactivity.\n\n@param cms the CMS context\n@param user the user to check\n@return true if the user may be locked after being inactive for too long" ]
[ "Get the current stack trace element, skipping anything from known logging classes.\n@return The current stack trace for this thread", "Return true if the connection being released is the one that has been saved.", "This method is used to associate a child task with the current\ntask instance. It has package ac...
static void logConnectionException(URI uri, DiscoveryOption discoveryOption, boolean moreOptions, Exception e) { if (uri == null) { HostControllerLogger.ROOT_LOGGER.failedDiscoveringMaster(discoveryOption, e); } else { HostControllerLogger.ROOT_LOGGER.cannotConnect(uri, e); ...
[ "Handles logging tasks related to a failure to connect to a remote HC.\n@param uri the URI at which the connection attempt was made. Can be {@code null} indicating a failure to discover the HC\n@param discoveryOption the {@code DiscoveryOption} used to determine {@code uri}\n@param moreOptions {@code true} if there...
[ "Answer the SQL-Clause for a SelectionCriteria\nIf the Criteria references a class with extents an OR-Clause is\nadded for each extent\n@param c SelectionCriteria", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown i...
public final List<Throwable> validate() { List<Throwable> validationErrors = new ArrayList<>(); this.accessAssertion.validate(validationErrors, this); for (String jdbcDriver: this.jdbcDrivers) { try { Class.forName(jdbcDriver); } catch (ClassNotFoundExcep...
[ "Validate that the configuration is valid.\n\n@return any validation errors." ]
[ "Sets an attribute in the main section of the manifest to a map.\nThe map entries will be joined with a single whitespace character, and each key-value pair will be joined with a '='.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if e...
public IPAddressSeqRange[] subtract(IPAddressSeqRange other) { IPAddress otherLower = other.getLower(); IPAddress otherUpper = other.getUpper(); IPAddress lower = this.getLower(); IPAddress upper = this.getUpper(); if(compareLowValues(lower, otherLower) < 0) { if(compareLowValues(upper, otherUpper) > 0) { ...
[ "Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.\nIf the result has length 2, the two ranges are in increasing order.\n\n@param other\n@return" ]
[ "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Ide...
private void saveToPropertyVfsBundle() throws CmsException { for (Locale l : m_changedTranslations) { SortedProperties props = m_localizations.get(l); LockedFile f = m_lockedBundleFiles.get(l); if ((null != props) && (null != f)) { try { B...
[ "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails." ]
[ "Use this API to unset the properties of protocolhttpband resource.\nProperties that need to be unset are specified in args array.", "List of releases for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return a list of releases", "fetch correct array index if inde...
public static gslbdomain_stats get(nitro_service service, String name) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); obj.set_name(name); gslbdomain_stats response = (gslbdomain_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of gslbdomain_stats resource of given name ." ]
[ "Returns code number of Task field supplied.\n\n@param field - name\n@return - code no", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Install the installation manager service.\n\n@param serviceTarget\n@return the service controller for the installed installation manager", "Ch...
public base_response clear_config(Boolean force, String level) throws Exception { base_response result = null; nsconfig resource = new nsconfig(); if (force) resource.set_force(force); resource.set_level(level); options option = new options(); option.set_action("clear"); result = resource.perform_ope...
[ "Use this API to clear configuration on netscaler.\n@param force clear confirmation without prompting.\n@param level clear config according to the level. eg: basic, extended, full\n@return status of the operation performed.\n@throws Exception Nitro exception is thrown." ]
[ "Given a year, month, and day, find the number of occurrences of that day in the month\n\n@param year the year\n@param month the month\n@param day the day\n@return the number of occurrences of the day in the month", "Returns the intersection of sets s1 and s2.", "Initializes the persistence strategy to be us...
@Override public final boolean has(final String key) { String result = this.obj.optString(key, null); return result != null; }
[ "Check if the object has a property with the key.\n\n@param key key to check for." ]
[ "Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list", "Register the ChangeHandler to become notified if the user changes the slider.\nThe Handler is called when the user releases the mouse only at the end of the slid...
public static String[] allLowerCase(String... strings){ String[] tmp = new String[strings.length]; for(int idx=0;idx<strings.length;idx++){ if(strings[idx] != null){ tmp[idx] = strings[idx].toLowerCase(); } } return tmp; }
[ "Make all elements of a String array lower case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements lower case" ]
[ "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player numbe...
public synchronized PrivateKey getPrivateKeyForLocalCert(final X509Certificate cert) throws CertificateEncodingException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException { String thumbprint = ThumbprintUtil.getThumbprint(cert); return (PrivateKey)_ks.getKey(thumbprint, _keypassword); }
[ "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException" ]
[ "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Translate the each ByteArray in an iterable into a hexadecimal string\n\n@param arrays The array of bytes to translate\n@return An iterable of converted strings", "Returns the connection coun...
public int size(final K1 firstKey, final K2 secondKey) { // existence check on inner map final HashMap<K2, HashMap<K3, V>> innerMap1 = map.get(firstKey); if( innerMap1 == null ) { return 0; } // existence check on inner map1 final HashMap<K3, V> innerMap2 = innerMap1.get(secondKey); if( innerMap2 ==...
[ "Returns the number of key-value mappings in this map for the third key.\n\n@param firstKey\nthe first key\n@param secondKey\nthe second key\n@return Returns the number of key-value mappings in this map for the third key." ]
[ "Gets a list of any tasks on this file with requested fields.\n\n@param fields optional fields to retrieve for this task.\n@return a list of tasks on this file.", "Returns the size of the shadow element", "Gets the txinfo cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value fro...
public static appfwpolicylabel_stats[] get(nitro_service service) throws Exception{ appfwpolicylabel_stats obj = new appfwpolicylabel_stats(); appfwpolicylabel_stats[] response = (appfwpolicylabel_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler." ]
[ "Returns a list of the compact representation of all of the custom fields in a workspace.\n\n@param workspace The workspace or organization to find custom field definitions in.\n@return Request object", "as we know nothing has changed.", "Use this API to delete systemuser of given name.", "Handle an end time...
private XopBean createXopBean() throws Exception { XopBean xop = new XopBean(); xop.setName("xopName"); InputStream is = getClass().getResourceAsStream("/java.jpg"); byte[] data = IOUtils.readBytesFromStream(is); // Pass java.jpg as an array of bytes xo...
[ "Creates a XopBean. The image on the disk is included as a byte array,\na DataHandler and java.awt.Image\n@return the bean\n@throws Exception" ]
[ "Given a cluster and a node id checks if the node exists\n\n@param nodeId The node id to search for\n@return True if cluster contains the node id, else false", "It is required that T be Serializable", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "Append the da...
public static String unexpand(CharSequence self, int tabStop) { String s = self.toString(); if (s.length() == 0) return s; try { StringBuilder builder = new StringBuilder(); for (String line : readLines((CharSequence) s)) { builder.append(unexpandLine(line...
[ "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2" ]
[ "Intercepts calls for setting a key and value for a JSON object\n\n@param name the key name\n@param args the value associated with the key", "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories.", "Finds out which dump files of the given type ...
private String getResourceType(Resource resource) { String result; net.sf.mpxj.ResourceType type = resource.getType(); if (type == null) { type = net.sf.mpxj.ResourceType.WORK; } switch (type) { case MATERIAL: { result = "Material"; ...
[ "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type" ]
[ "Whether the rows of the given association should be stored in a hash using the single row key column as key or\nnot.", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Adds a procedure argument definition to this class descriptor.\n\n@param ar...
public void getDataDTD(Writer output) throws DataTaskException { try { output.write("<!ELEMENT dataset (\n"); for (Iterator it = _preparedModel.getElementNames(); it.hasNext();) { String elementName = (String)it.next(); ou...
[ "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to" ]
[ "Resize the image passing the new height and width\n\n@param height\n@param width\n@return", "Unlock all edited resources.", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "Does this procedure return any v...
public static String stringify(ObjectMapper mapper, Object object) { try { return mapper.writeValueAsString(object); } catch (JsonProcessingException e) { throw new IllegalArgumentException(e); } }
[ "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string" ]
[ "Initialize an instance of Widget Lib. It has to be done before any usage of library.\nThe application needs to hold onto the returned WidgetLib reference for as long as the\nlibrary is going to be used.\n@param gvrContext A valid {@link GVRContext} instance\n@param customPropertiesAsset An optional asset JSON file...
@SuppressWarnings("WeakerAccess") public static @Nullable CleverTapAPI getDefaultInstance(Context context) { // For Google Play Store/Android Studio tracking sdkVersion = BuildConfig.SDK_VERSION_STRING; if (defaultConfig == null) { ManifestInfo manifest = ManifestInfo.getInstance...
[ "Returns the default shared instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object" ]
[ "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred", "Returns all the retention policies with specified filters.\n@param name a name to filter the retention policies by. A trailing partial match search is performed...
protected synchronized Class loadClass(final String name, boolean resolve) throws ClassNotFoundException { Class c = this.findLoadedClass(name); if (c != null) return c; c = (Class) customClasses.get(name); if (c != null) return c; try { c = oldFindClass(name); ...
[ "loads a class using the name of the class" ]
[ "Calculate the actual bit length of the proposed binary string.", "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Use this API to add nsacl6 resources.", "Gets the numeric codes. Setting it to -1 search for currencies that have no numeric code.\...
public static service_dospolicy_binding[] get(nitro_service service, String name) throws Exception{ service_dospolicy_binding obj = new service_dospolicy_binding(); obj.set_name(name); service_dospolicy_binding response[] = (service_dospolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch service_dospolicy_binding resources of given name ." ]
[ "Process an update packet from one of the CDJs. See if it has a valid track loaded; if not, clear any\nmetadata we had stored for that player. If so, see if it is the same track we already know about; if not,\nrequest the metadata associated with that track.\n\nAlso clears out any metadata caches that were attached...
public static <T extends Number> int[] asArray(final T... array) { int[] b = new int[array.length]; for (int i = 0; i < b.length; i++) { b[i] = array[i].intValue(); } return b; }
[ "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array." ]
[ "Returns a projection object for specifying the fields to retrieve during a specific find operation.", "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 f...
@Override public T getById(Object id) { return context.getFramed().getFramedVertex(this.type, id); }
[ "Returns the vertex with given ID framed into given interface." ]
[ "Called when a ParentViewHolder has triggered an expansion for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be expanded", "Only sets and gets that are by row and column are used.", "By default uses InputStream as the type of the image\n@param title\n@param property\n@pa...
private static byte calculateChecksum(byte[] buffer) { byte checkSum = (byte)0xFF; for (int i=1; i<buffer.length-1; i++) { checkSum = (byte) (checkSum ^ buffer[i]); } logger.trace(String.format("Calculated checksum = 0x%02X", checkSum)); return checkSum; }
[ "Calculates a checksum for the specified buffer.\n@param buffer the buffer to calculate.\n@return the checksum value." ]
[ "Add a \"post-run\" dependent for this model.\n\n@param dependent the \"post-run\" dependent.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "This method processes any extended attributes associated with a task.\n\n@param xml ...
private String parseLayerId(HttpServletRequest request) { StringTokenizer tokenizer = new StringTokenizer(request.getRequestURI(), "/"); String token = ""; while (tokenizer.hasMoreTokens()) { token = tokenizer.nextToken(); } return token; }
[ "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id" ]
[ "Returns a string representation of map of chunk id to number of chunks\n\n@return String of map of chunk id to number of chunks", "Use this API to fetch lbmonitor_binding resource of given name .", "Add all the items from an iterable to a collection.\n\n@param <T>\nThe type of items in the iterable and the col...
private static void invokeSetter(final Object bean, final Method setMethod, final Object fieldValue) { try { setMethod.setAccessible(true); setMethod.invoke(bean, fieldValue); } catch(final Exception e) { throw new SuperCsvReflectionException(String.format("error invoking method %s()", setMethod.getName(...
[ "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" ]
[ "Creates the automata.\n\n@param prefix the prefix\n@param regexp the regexp\n@param automatonMap the automaton map\n@return the list\n@throws IOException Signals that an I/O exception has occurred.", "Returns true if the given dump file type contains page revisions and\nfalse if it does not. Dumps that do not co...
public void editComment(String commentId, String commentText) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COMMENT); parameters.put("comment_id", commentId); parameters.put("comment_text", commentText)...
[ "Edit the text of a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to edit.\n@param commentText\nUpdate the comment to this text.\n@throws FlickrException" ]
[ "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "Add a clause where the ID is from an existing object.", "Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached co...
public void useNewSOAPServiceWithOldClientAndRedirection() throws Exception { URL wsdlURL = getClass().getResource("/CustomerService.wsdl"); com.example.customerservice.CustomerServiceService service = new com.example.customerservice.CustomerServiceService(wsdlURL); com.exa...
[ "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side" ]
[ "Get string value of flow context for current instance\n@return string value of flow context", "Sets the max min.\n\n@param n the new max min", "Generates the specified number of random resource names with the same prefix.\n@param prefix the prefix to be used if possible\n@param maxLen the maximum length for th...
private static String getColumnTitle(final PropertyDescriptor _property) { final StringBuilder buffer = new StringBuilder(); final String name = _property.getName(); buffer.append(Character.toUpperCase(name.charAt(0))); for (int i = 1; i < name.length(); i++) { final char c =...
[ "Calculates a column title using camel humps to separate words.\n@param _property the property descriptor.\n@return the column title for the given property." ]
[ "Converters the diffusion coefficient to hydrodynamic diameter and vice versa\n@param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m]\n@param temperatur Temperatur in [Kelvin]\n@param viscosity Viscosity in [kg m^-1 s^-1]\n@return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1...
@Api public static void configureNoCaching(HttpServletResponse response) { // HTTP 1.0 header: response.setHeader(HTTP_EXPIRES_HEADER, HTTP_EXPIRES_HEADER_NOCACHE_VALUE); response.setHeader(HTTP_CACHE_PRAGMA, HTTP_CACHE_PRAGMA_VALUE); // HTTP 1.1 header: response.setHeader(HTTP_CACHE_CONTROL_HEADER, HTTP_CA...
[ "Configure the HTTP response to switch off caching.\n\n@param response response to configure\n@since 1.9.0" ]
[ "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Obtains a local date in Symmetry454 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry454 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return ...
protected static FlushableDataOutput writeHeader(final ManagementProtocolHeader header, final OutputStream os) throws IOException { final FlushableDataOutput output = FlushableDataOutputImpl.create(os); header.write(output); return output; }
[ "Write the management protocol header.\n\n@param header the mgmt protocol header\n@param os the output stream\n@throws IOException" ]
[ "Deletes an email alias from this user's account.\n\n<p>The IDs of the user's email aliases can be found by calling {@link #getEmailAliases}.</p>\n\n@param emailAliasID the ID of the email alias to delete.", "Return a named object associated with the specified key.", "Populate the container, converting raw data...
protected void statusInfoMessage(final String tag) { if(logger.isInfoEnabled()) { logger.info(tag + " : [partition: " + currentPartition + ", partitionFetched: " + currentPartitionFetched + "] for store " + storageEngine.getName()); } }
[ "Simple info message for status\n\n@param tag Message to print out at start of info message" ]
[ "Acquire a permit for a particular node id so as to allow rebalancing\n\n@param nodeId The id of the node for which we are acquiring a permit\n@return Returns true if permit acquired, false if the permit is already\nheld by someone", "Encrypt a string with AES-128 using the specified key.\n\n@param message Input ...
@Override protected URL getDefinitionsURL() { try { URL url = CustomEPSGCodes.class.getResource(CUSTOM_EPSG_CODES_FILE); // quickly test url try (InputStream stream = url.openStream()) { //noinspection ResultOfMethodCallIgnored stream.read(...
[ "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes" ]
[ "Returns the names of parser rules that should be called in order to obtain the follow elements for the parser\ncall stack described by the given param.", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return...
private static void displayAvailableFilters(ProjectFile project) { System.out.println("Unknown filter name supplied."); System.out.println("Available task filters:"); for (Filter filter : project.getFilters().getTaskFilters()) { System.out.println(" " + filter.getName()); } ...
[ "This utility displays a list of available task filters, and a\nlist of available resource filters.\n\n@param project project file" ]
[ "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name .", "Process the module and bundle roots and cross check with the installed information.\n\n@param conf the installed configuration\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@retur...
private static void bodyWithBuilder( SourceBuilder code, Datatype datatype, Map<Property, PropertyCodeGenerator> generatorsByProperty, String typename, Predicate<PropertyCodeGenerator> isOptional) { Variable result = new Variable("result"); code.add(" %1$s %2$s = new %1$s(\"%3$s{...
[ "Generates the body of a toString method that uses a StringBuilder.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, but if any of them will\nalways be present, we can actually do the hard work at compil...
[ "Use this API to update nstimeout.", "An invalid reference or references. The verification of the digest of a\nreference failed. This can be caused by a change to the referenced data\nsince the signature was generated.\n\n@param aInvalidReferences\nThe indices to the invalid references.\n@return Result object", ...
private void cleanupLogs() throws IOException { logger.trace("Beginning log cleanup..."); int total = 0; Iterator<Log> iter = getLogIterator(); long startMs = System.currentTimeMillis(); while (iter.hasNext()) { Log log = iter.next(); total += cleanupExpir...
[ "Runs through the log removing segments older than a certain age\n\n@throws IOException" ]
[ "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "Returns a ReportWriter that which will use memory or a file depending on the parameter PAGES_THRESHOLD\n@param _jasperPrint\n@param _format\n@param _parameters\n@return", "Creates a sort configuration if...
@SuppressWarnings({"unused", "WeakerAccess"}) public int getTimeElapsed() { int currentSession = getCurrentSession(); if (currentSession == 0) return -1; int now = (int) (System.currentTimeMillis() / 1000); return now - currentSession; }
[ "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int" ]
[ "Use this API to diff nsconfig.", "Get all parameter keys.\n@return a set of parameter keys", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@pa...
public void rotateWithPivot(float w, float x, float y, float z, float pivotX, float pivotY, float pivotZ) { getTransform().rotateWithPivot(w, x, y, z, pivotX, pivotY, pivotZ); if (mTransformCache.rotateWithPivot(w, x, y, z, pivotX, pivotY, pivotZ)) { onTransformChanged(); ...
[ "Modify the tranform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param w\n'W' component of the quaternion.\n@param x\n'X' component of the quaternion.\n@param y\n'Y' component of the quaternion.\n@param z\n'Z' component of the quaternion.\n@param pivotX\n'X' component of the p...
[ "Determine if a task field contains data.\n\n@param task task instance\n@param field target field\n@return true if the field contains data", "Parses the dictionary from an InputStream.\n\n@param client The SolrClient instance object.\n@param lang The language of the dictionary.\n@param is The InputStream object.\...
public UriComponentsBuilder pathSegment(String... pathSegments) throws IllegalArgumentException { Assert.notNull(pathSegments, "'segments' must not be null"); this.pathBuilder.addPathSegments(pathSegments); resetSchemeSpecificPart(); return this; }
[ "Append the given path segments to the existing path of this builder.\nEach given path segment may contain URI template variables.\n@param pathSegments the URI path segments\n@return this UriComponentsBuilder" ]
[ "Use this API to add lbroute.", "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name .", "Handle content length.\n\n@param event\nthe event", "Creates an Executor that is based on daemon threads.\nThis allows the program to quit without explicitly\ncalling shutdown on the pool\...
public String nstring(ImapRequestLineReader request) throws ProtocolException { char next = request.nextWordChar(); switch (next) { case '"': return consumeQuoted(request); case '{': return consumeLiteral(request); default: ...
[ "Reads an argument of type \"nstring\" from the request." ]
[ "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.", "Derive a calendar for a resource.\n\n@param parentCalendarID calendar from which resource calendar is derived\n@return new calendar for a resour...
public static GVRSceneObject loadModel(final GVRContext gvrContext, final String modelFile) throws IOException { return loadModel(gvrContext, modelFile, new HashMap<String, Integer>()); }
[ "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails" ]
[ "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Creates a new Box Developer Edition connecti...
public void setSessionFactory(SessionFactory sessionFactory) throws HibernateLayerException { try { this.sessionFactory = sessionFactory; if (null != layerInfo) { entityMetadata = sessionFactory.getClassMetadata(layerInfo.getFeatureInfo().getDataSourceName()); } } catch (Exception e) { // NOSONAR th...
[ "Set session factory.\n\n@param sessionFactory session factory\n@throws HibernateLayerException could not get class metadata for data source" ]
[ "Remove the corresponding object from session AND application cache.", "Returns the corresponding ModuleSpec service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "capture 3D screenshot", "Returns the default conversion for the give...
private boolean hasToBuilderMethod( DeclaredType builder, boolean isExtensible, Iterable<ExecutableElement> methods) { for (ExecutableElement method : methods) { if (isToBuilderMethod(builder, method)) { if (!isExtensible) { messager.printMessage(ERROR, "No ac...
[ "Find a toBuilder method, if the user has provided one." ]
[ "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add.", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event...
public Point3d[] getVertices() { Point3d[] vtxs = new Point3d[numVertices]; for (int i = 0; i < numVertices; i++) { vtxs[i] = pointBuffer[vertexPointIndices[i]].pnt; } return vtxs; }
[ "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()" ]
[ "Scan the segments to find the largest height value present.\n\n@return the largest waveform height anywhere in the preview.", "Sets a header per-request\n\n@param key Header key\n@param value Header value\n@return The request itself", "Internal method used to test for the existence of a relationship\nwith a ...
public static base_response add(nitro_service client, dnspolicylabel resource) throws Exception { dnspolicylabel addresource = new dnspolicylabel(); addresource.labelname = resource.labelname; addresource.transform = resource.transform; return addresource.add_resource(client); }
[ "Use this API to add dnspolicylabel." ]
[ "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>", "Obtains a local date in International Fixed calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the International Fixed era, not null\n@param yearOfEra t...
private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); f...
[ "Checks if the given AnnotatedType is sensible, otherwise provides warnings." ]
[ "Returns the Map value of the field.\n\n@return the Map value of the field. It returns a reference of the value both for <code>MAP</code> and\n<code>LIST_MAP</code>.\n@throws IllegalArgumentException if the value cannot be converted to Map.", "Maps a field index to a ResourceField instance.\n\n@param fields array...
public boolean equalId(Element otherElement) { if (getElementId() == null || otherElement.getElementId() == null) { return false; } return getElementId().equalsIgnoreCase(otherElement.getElementId()); }
[ "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id" ]
[ "Establish connection to the ChromeCast device", "submit the adminClient after usage is completed.\nBehavior is undefined, if checkin is called with objects not retrieved\nfrom checkout.\n\n@param client AdminClient retrieved from checkout", "Parses the resource String id and get back the int res id\n@param con...
public static void writeDocumentToFile(Document document, String filePathname, String method, int indent) throws TransformerException, IOException { Transformer transformer = TransformerFactory.newInstance() .newTransformer(); trans...
[ "Write the document object to a file.\n\n@param document the document object.\n@param filePathname the path name of the file to be written to.\n@param method the output method: for instance html, xml, text\n@param indent amount of indentation. -1 to use the default.\n@throws TransformerException if ...
[ "Navigate to this address in the given model node.\n\n@param model the model node\n@param create {@code true} to create the last part of the node if it does not exist\n@return the submodel\n@throws NoSuchElementException if the model contains no such element\n\n@deprecated manipulating a deep DMR node tree via Path...
public static int count(CharSequence self, CharSequence text) { int answer = 0; for (int idx = 0; true; idx++) { idx = self.toString().indexOf(text.toString(), idx); // break once idx goes to -1 or for case of empty string once // we get to the end to avoid JDK librar...
[ "Count the number of occurrences of a sub CharSequence.\n\n@param self a CharSequence\n@param text a sub CharSequence\n@return the number of occurrences of the given CharSequence inside this CharSequence\n@see #count(String, String)\n@since 1.8.2" ]
[ "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters.", "Reads a PEP file from the input stream.\n\n@param is input stream representing a PEP file", "Splits timephased work ...
public int createLogs(String topic, final int partitions, final boolean forceEnlarge) { TopicNameValidator.validate(topic); synchronized (logCreationLock) { final int configPartitions = getPartition(topic); if (configPartitions >= partitions || !forceEnlarge) { re...
[ "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" ]
[ "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Get the multicast socket address.\n\n@return the multicast address", "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DM...
public synchronized void stop() { if (isRunning()) { socket.get().close(); socket.set(null); deliverLifecycleAnnouncement(logger, false); } }
[ "Stop listening for beats." ]
[ "Per the navigation drawer design guidelines, updates the action bar to show the global app\n'context', rather than just what's in the current screen.", "Use this API to Shutdown shutdown.", "Uploads a new file to this folder with custom upload parameters.\n\n@param uploadParams the custom upload parameters.\n@...
public void useXopAttachmentServiceWithWebClient() throws Exception { final String serviceURI = "http://localhost:" + port + "/services/attachments/xop"; JAXRSClientFactoryBean factoryBean = new JAXRSClientFactoryBean(); factoryBean.setAddress(serviceURI); factoryBean.setProper...
[ "Writes and reads the XOP attachment using a CXF JAX-RS WebClient.\nNote that WebClient is created with the help of JAXRSClientFactoryBean.\nJAXRSClientFactoryBean can be used when neither of the WebClient factory\nmethods is appropriate. For example, in this case, an \"mtom-enabled\"\nproperty is set on the factor...
[ "Sanity checks the input or declares a new matrix. Return matrix is an identity matrix.", "Calculate the color using the supplied angle.\n\n@param angle The selected color's position expressed as angle (in rad).\n\n@return The ARGB value of the color on the color wheel at the specified\nangle.", "Decodes strea...
public static Class<?> resolveTypeArgument(Class<?> clazz, Class<?> genericIfc) { Class<?>[] typeArgs = resolveTypeArguments(clazz, genericIfc); if (typeArgs == null) { return null; } if (typeArgs.length != 1) { throw new IllegalArgumentException("Expected 1 type argument on generic interface [" + ge...
[ "Resolve the single type argument of the given generic interface against\nthe given target class which is assumed to implement the generic interface\nand possibly declare a concrete type for its type variable.\n@param clazz the target class to check against\n@param genericIfc the generic interface or superclass to ...
[ "Restore the recorded state from the rollback xml.\n\n@param target the patchable target\n@param rollbackPatchId the rollback patch id\n@param patchType the the current patch type\n@param history the recorded history\n@throws PatchingException", "Computes the QR decomposition of A and store...
public void stop() { instanceLock.writeLock().lock(); try { for (final NamespaceChangeStreamListener streamer : nsStreamers.values()) { streamer.stop(); } } finally { instanceLock.writeLock().unlock(); } }
[ "Stops all streams." ]
[ "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"", "Retrieves the amount of time...
public static String findReplacement(final String variableName, final Date date) { if (variableName.equalsIgnoreCase("date")) { return cleanUpName(DateFormat.getDateInstance().format(date)); } else if (variableName.equalsIgnoreCase("datetime")) { return cleanUpName(DateFormat.get...
[ "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable." ]
[ "Flat the map of list of string to map of strings, with theoriginal values, seperated by comma", "URLDecode a string\n@param s\n@return", "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\...