query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static base_response add(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup addresource = new cachecontentgroup(); addresource.name = resource.name; addresource.weakposrelexpiry = resource.weakposrelexpiry; addresource.heurexpiryparam = resource.heurexpiryparam; addresource.relexpiry = resource.relexpiry; addresource.relexpirymillisec = resource.relexpirymillisec; addresource.absexpiry = resource.absexpiry; addresource.absexpirygmt = resource.absexpirygmt; addresource.weaknegrelexpiry = resource.weaknegrelexpiry; addresource.hitparams = resource.hitparams; addresource.invalparams = resource.invalparams; addresource.ignoreparamvaluecase = resource.ignoreparamvaluecase; addresource.matchcookies = resource.matchcookies; addresource.invalrestrictedtohost = resource.invalrestrictedtohost; addresource.polleverytime = resource.polleverytime; addresource.ignorereloadreq = resource.ignorereloadreq; addresource.removecookies = resource.removecookies; addresource.prefetch = resource.prefetch; addresource.prefetchperiod = resource.prefetchperiod; addresource.prefetchperiodmillisec = resource.prefetchperiodmillisec; addresource.prefetchmaxpending = resource.prefetchmaxpending; addresource.flashcache = resource.flashcache; addresource.expireatlastbyte = resource.expireatlastbyte; addresource.insertvia = resource.insertvia; addresource.insertage = resource.insertage; addresource.insertetag = resource.insertetag; addresource.cachecontrol = resource.cachecontrol; addresource.quickabortsize = resource.quickabortsize; addresource.minressize = resource.minressize; addresource.maxressize = resource.maxressize; addresource.memlimit = resource.memlimit; addresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs; addresource.minhits = resource.minhits; addresource.alwaysevalpolicies = resource.alwaysevalpolicies; addresource.persist = resource.persist; addresource.pinned = resource.pinned; addresource.lazydnsresolve = resource.lazydnsresolve; addresource.hitselector = resource.hitselector; addresource.invalselector = resource.invalselector; addresource.type = resource.type; return addresource.add_resource(client); }
[ "Use this API to add cachecontentgroup." ]
[ "Returns the position for a given number of occurrences or NOT_FOUND if\nthis value is not found.\n\n@param nOccurrence\nnumber of occurrences\n@return the position for a given number of occurrences or NOT_FOUND if\nthis value is not found", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "Prints a stores xml to a file.\n\n@param outputDirName\n@param fileName\n@param list of storeDefs", "Deletes this collaboration whitelist.", "Deals with the case where we have had to map a task ID to a new value.\n\n@param id task ID from database\n@return mapped task ID", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "Get the collection of configured blogs for the calling user.\n\n@return The Collection of configured blogs", "Should this request URI be compressed?\n\n@param requestUri request URI\n@return true when should be compressed" ]
public boolean unlink(Object source, String attributeName, Object target) { return linkOrUnlink(false, source, attributeName, false); }
[ "Unlink the specified reference object.\nMore info see OJB doc.\n@param source The source object with the specified reference field.\n@param attributeName The field name of the reference to unlink.\n@param target The referenced object to unlink." ]
[ "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key", "Use this API to fetch transformpolicylabel resource of given name .", "Sets the set of property filters based on the given string.\n\n@param filters\ncomma-separates list of property ids, or \"-\" to filter all\nstatements", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead", "Loads the currently known phases from Furnace to the map.", "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "Start the host controller services.\n\n@throws Exception", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign." ]
public StatementGroup findStatementGroup(String propertyIdValue) { if (this.claims.containsKey(propertyIdValue)) { return new StatementGroupImpl(this.claims.get(propertyIdValue)); } return null; }
[ "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one." ]
[ "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Resolve Java control character sequences to the actual character value.\nOptionally handle unicode escape sequences, too.", "Returns a persistence strategy based on the passed configuration.\n\n@param cacheMapping the selected {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType}\n@param externalCacheManager the infinispan cache manager\n@param configurationUrl the location of the configuration file\n@param jtaPlatform the {@link JtaPlatform}\n@param entityTypes the meta-data of the entities\n@param associationTypes the meta-data of the associations\n@param idSourceTypes the meta-data of the id generators\n@return the persistence strategy", "Non-zero counts of Householder vectors and computes a permutation\nmatrix that ensures diagonal entires are all structurally nonzero.\n\n@param parent elimination tree\n@param ll linked list for each row that specifies elements that are not zero", "Store some state on this request context associated with the specified interceptor instance.\nUsed where a single interceptor instance needs to associate state with each HTTP request.\n\n@param interceptor the interceptor instance\n@param stateName the key to store the state object under\n@param stateObjectToStore the state object to store\n@param <T> the type of the state object to store\n@see #getState(HttpConnectionInterceptor, String, Class)\n@since 2.6.0" ]
protected void runImportScript(CmsObject cms, CmsModule module) { LOG.info("Executing import script for module " + module.getName()); m_report.println( org.opencms.module.Messages.get().container(org.opencms.module.Messages.RPT_IMPORT_SCRIPT_HEADER_0), I_CmsReport.FORMAT_HEADLINE); String importScript = "echo on\n" + module.getImportScript(); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); PrintStream out = new PrintStream(buffer); CmsShell shell = new CmsShell(cms, "${user}@${project}:${siteroot}|${uri}>", null, out, out); shell.execute(importScript); String outputString = buffer.toString(); LOG.info("Shell output for import script was: \n" + outputString); m_report.println( org.opencms.module.Messages.get().container( org.opencms.module.Messages.RPT_IMPORT_SCRIPT_OUTPUT_1, outputString)); }
[ "Runs the module import script.\n\n@param cms the CMS context to use\n@param module the module for which to run the script" ]
[ "returns true if a job was queued within a timeout", "Ask the specified player for a Track menu.\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\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "Get the element at the index as an integer.\n\n@param i the index of the element to access", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Returns all keys in no particular order.", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Use this API to update tmtrafficaction.", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE." ]
private void readColumnBlock(int startIndex, int blockLength) throws Exception { int endIndex = startIndex + blockLength; List<Integer> blocks = new ArrayList<Integer>(); for (int index = startIndex; index < endIndex - 11; index++) { if (matchChildBlock(index)) { int childBlockStart = index - 2; blocks.add(Integer.valueOf(childBlockStart)); } } blocks.add(Integer.valueOf(endIndex)); int childBlockStart = -1; for (int childBlockEnd : blocks) { if (childBlockStart != -1) { int childblockLength = childBlockEnd - childBlockStart; try { readColumn(childBlockStart, childblockLength); } catch (UnexpectedStructureException ex) { logUnexpectedStructure(); } } childBlockStart = childBlockEnd; } }
[ "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block" ]
[ "Gets the Topsoe divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Topsoe divergence between p and q.", "Build filter for the request.\n\n@param layerFilter layer filter\n@param featureIds features to include in report (null for all)\n@return filter\n@throws GeomajasException filter could not be parsed/created", "Formats the value provided with the specified DateTimeFormat", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Request the list of all tracks in the specified slot, given a dbserver connection to a player that has already\nbeen set up.\n\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved track list entry items\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Sets the initial MoificationState of the wrapped object myObj. The initial state will be StateNewDirty if myObj\nis not persisten already. The state will be set to StateOldClean if the object is already persistent.", "Complete both operations and commands.", "Returns the list view of corporate groupIds of an organization\n\n@param organizationId String\n@return ListView", "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public void registerWidget(View widget) { prepareWidget(widget); if (widget instanceof AlgoliaResultsListener) { AlgoliaResultsListener listener = (AlgoliaResultsListener) widget; if (!this.resultListeners.contains(listener)) { this.resultListeners.add(listener); } searcher.registerResultListener(listener); } if (widget instanceof AlgoliaErrorListener) { AlgoliaErrorListener listener = (AlgoliaErrorListener) widget; if (!this.errorListeners.contains(listener)) { this.errorListeners.add(listener); } searcher.registerErrorListener(listener); } if (widget instanceof AlgoliaSearcherListener) { AlgoliaSearcherListener listener = (AlgoliaSearcherListener) widget; listener.initWithSearcher(searcher); } }
[ "Links the given widget to InstantSearch according to the interfaces it implements.\n\n@param widget a widget implementing ({@link AlgoliaResultsListener} || {@link AlgoliaErrorListener} || {@link AlgoliaSearcherListener})." ]
[ "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", "Use this API to fetch onlinkipv6prefix resource of given name .", "Returns the number of rows within this association.\n\n@return the number of rows within this association", "Resolve an operation transformer entry.\n\n@param address the address\n@param operationName the operation name\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the transformer entry", "Use this API to enable the mode on Netscaler.\n@param mode mode to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Fling the content\n\n@param velocityX The initial velocity in the X direction. Positive numbers mean that the\nfinger/cursor is moving to the left on the screen, which means we want to\nscroll towards the beginning.\n@param velocityY The initial velocity in the Y direction. Positive numbers mean that the\nfinger/cursor is moving down the screen, which means we want to scroll\ntowards the top.\n@param velocityZ TODO: Z-scrolling is currently not supported\n@return", "Decrements the client's use count, and makes it eligible for closing if it is no longer in use.\n\n@param client the dbserver connection client which is no longer being used for a task", "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date", "Returns the complete project record for a single project.\n\n@param project The project to get.\n@return Request object" ]
@Override public boolean applyLayout(Layout itemLayout) { boolean applied = false; if (itemLayout != null && mItemLayouts.add(itemLayout)) { // apply the layout to all visible pages List<Widget> views = getAllViews(); for (Widget view: views) { view.applyLayout(itemLayout.clone()); } applied = true; } return applied; }
[ "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false" ]
[ "Prints the URL of a thumbnail for the given item document to the output,\nor a default image if no image is given for the item.\n\n@param out\nthe output to write to\n@param itemDocument\nthe document that may provide the image information", "return a HashMap with all properties, name as key, value as value\n@return the properties", "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size", "If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent\nstarvation of low priority items\n\n@param groupClass\n@return", "Returns whether the values of this division grouping contain the prefix block for the given prefix length\n\n@param prefixLength\n@return", "Returns the number of history entries for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param searchFilter unused\n@return number of history entries", "Updates the exceptions panel.", "Gets the message payload.\n\n@param message the message\n@return the payload", "Whether the rows of the given association should be stored in a hash using the single row key column as key or\nnot." ]
private void setTableAliasForClassDescriptor(ClassDescriptor aCld, TableAlias anAlias) { if (m_cldToAlias.get(aCld) == null) { m_cldToAlias.put(aCld, anAlias); } }
[ "Set the TableAlias for ClassDescriptor" ]
[ "Use this API to Import sslfipskey resources.", "Adds the includes of the fileset to the handling.\n\n@param handling The handling\n@param fileSet The fileset", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "Creates the adapter for the target database.", "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", "Creates all propertyvfsbundle files for the currently loaded translations.\nThe method is used to convert xmlvfsbundle files into propertyvfsbundle files.\n\n@throws CmsIllegalArgumentException thrown if resource creation fails.\n@throws CmsLoaderException thrown if the propertyvfsbundle type can't be read from the resource manager.\n@throws CmsException thrown if creation, type retrieval or locking fails.", "Returns the value that has to be set for the dynamic attribute.\n\n@param file the file where the current content is stored\n@param value the content value that is represented by the attribute\n@param attributeName the attribute's name\n@param editedLocalEntity the entities that where edited last\n@return the value that has to be set for the dynamic attribute.", "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array." ]
public static void checkFileOrDirectoryToBeRead(File fileOrDir, String fileDesc) { if (fileOrDir == null) throw new IllegalArgumentException(fileDesc + " must not be null."); if (!fileOrDir.exists()) throw new IllegalArgumentException(fileDesc + " does not exist: " + fileOrDir.getAbsolutePath()); if (!(fileOrDir.isDirectory() || fileOrDir.isFile())) throw new IllegalArgumentException(fileDesc + " must be a file or a directory: " + fileOrDir.getPath()); if (fileOrDir.isDirectory()) { if (fileOrDir.list().length == 0) throw new IllegalArgumentException(fileDesc + " is an empty directory: " + fileOrDir.getPath()); } }
[ "Throws if the given file is null, is not a file or directory, or is an empty directory." ]
[ "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name .", "Checks whether a property can be added to a Properties.\n\n@param typeManager\n@param properties the properties object\n@param typeId the type id\n@param filter the property filter\n@param id the property id\n\n@return true if the property should be added", "Get a fallback handler.\n\n@param header the protocol header\n@return the fallback handler", "Checks the foreignkeys of all references in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Handles a faulted task.\n\n@param faultedEntry the entry holding faulted task\n@param throwable the reason for fault\n@param context the context object shared across all the task entries in this group during execution\n\n@return an observable represents asynchronous operation in the next stage", "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated.", "What is something came in between when we last checked and when this method is called", "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Read a text file from assets into a single string\n\n@param context\nA non-null Android Context\n@param asset\nThe asset file to read\n@return The contents or null on error." ]
public void setTargetTranslator(TargetTranslator targetTranslator) { if(targetTranslator!=null){ this.targetTranslator = targetTranslator; this.charTranslator = null; this.htmlElementTranslator = null; } }
[ "Sets the target translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator" ]
[ "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\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", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Encodes the given URI query parameter with the given encoding.\n@param queryParam the query parameter to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query parameter\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Returns the remote collection representing the given namespace.\n\n@param namespace the namespace referring to the remote collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the remote collection representing the given namespace.", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself.", "Sets the set of property filters based on the given string.\n\n@param filters\ncomma-separates list of property ids, or \"-\" to filter all\nstatements" ]
public static <T> Collection<MemberResponse<T>> executeOptimistic(IExecutorService execSvc, Set<Member> members, Callable<T> callable) { return executeOptimistic(execSvc, members, callable, 60, TimeUnit.SECONDS); }
[ "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return" ]
[ "Extracts the column of A and copies it into u while computing the magnitude of the\nlargest element and returning it.\n\n<pre>\nu[ (offsetU+row0+i)*2 ] = A.getReal(row0+i,col)\nu[ (offsetU+row0+i)*2 + 1] = A.getImag(row0+i,col)\n</pre>\n\n@param A Complex matrix\n@param row0 First row in A to be copied\n@param row1 Last row in A + 1 to be copied\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U\n@return magnitude of largest element", "Specify the output format of the image.\n\n@see ImageFormat", "Find and return the appropriate setter method for field.\n\n@return Set method or null (or throws IllegalArgumentException) if none found.", "Set the inner angle of the spotlight cone in degrees.\n\nBeyond the outer cone angle there is no illumination.\nThe underlying uniform \"outer_cone_angle\" is the cosine\nof this input angle. If the inner cone angle is larger than the outer cone angle\nthere will be unexpected results.\n@see #setInnerConeAngle(float)\n@see #getOuterConeAngle()", "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Returns the compact records for all attachments on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object", "Want to make arbitrary probability queries? Then this is the method for\nyou. Given the filename, it reads it in and breaks it into documents, and\nthen makes a CRFCliqueTree for each document. you can then ask the clique\ntree for marginals and conditional probabilities of almost anything you\nwant.", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nthe name mappings\n@return the populated bean\n@throws SuperCsvReflectionException\nif there was a reflection exception while populating the bean", "If an error is thrown while loading zone data, the exception is logged\nto system error and null is returned for this and all future requests.\n\n@param id the id to load\n@return the loaded zone" ]
public boolean isIdentical(T a, double tol) { if( a.getType() != getType() ) return false; return ops.isIdentical(mat,a.mat,tol); }
[ "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other." ]
[ "Use this API to add clusterinstance resources.", "Generic method to extract Primavera fields and assign to MPXJ fields.\n\n@param map map of MPXJ field types and Primavera field names\n@param row Primavera data container\n@param container MPXJ data contain", "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", "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared.", "region Override Methods", "Crop the image between two points.\n\n@param top Top bound.\n@param left Left bound.\n@param bottom Bottom bound.\n@param right Right bound.\n@throws IllegalArgumentException if {@code top} or {@code left} are less than zero or {@code\nbottom} or {@code right} are less than one or less than {@code top} or {@code left},\nrespectively.", "use this method to construct the ChainingIterator\niterator by iterator.", "2-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise" ]
public void addWord(MtasCQLParserWordFullCondition w) throws ParseException { assert w.getCondition() .not() == false : "condition word should be positive in sentence definition"; if (!simplified) { partList.add(w); } else { throw new ParseException("already simplified"); } }
[ "Adds the word.\n\n@param w the w\n@throws ParseException the parse exception" ]
[ "Add a clause where the ID is from an existing object.", "Handle a completed request producing an optional response", "Inverts an upper or lower triangular block submatrix.\n\n@param blockLength\n@param upper Is it upper or lower triangular.\n@param T Triangular matrix that is to be inverted. Must be block aligned. Not Modified.\n@param T_inv Where the inverse is stored. This can be the same as T. Modified.\n@param temp Work space variable that is size blockLength*blockLength.", "Returns true if a Map literal that contains only entries where both key and value are constants.\n@param expression - any expression", "Use this API to add cachepolicylabel resources.", "Convert this buffer to a java array.\n@return", "Removes a metadata provider so it will no longer be consulted to provide metadata for tracks loaded from any\nmedia.\n\n@param provider the metadata provider to remove.", "Load assertion from the provided json or throw exception if not possible.\n\n@param encodedAssertion the assertion as it was encoded in JSON.", "Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index" ]
public static auditsyslogpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_aaauser_binding obj = new auditsyslogpolicy_aaauser_binding(); obj.set_name(name); auditsyslogpolicy_aaauser_binding response[] = (auditsyslogpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name ." ]
[ "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "Get image parent ID from imageID on the current agent.\n\n@param imageID\n@return", "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Use this API to fetch filterpolicy_binding resource of given name .", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Returns a geoquery.", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted.", "Log a warning for the resource at the provided address and the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about" ]
public DbLicense resolve(final String licenseId) { for (final Entry<String, DbLicense> regexp : licensesRegexp.entrySet()) { try { if (licenseId.matches(regexp.getKey())) { return regexp.getValue(); } } catch (PatternSyntaxException e) { LOG.error("Wrong pattern for the following license " + regexp.getValue().getName(), e); continue; } } if(LOG.isWarnEnabled()) { LOG.warn(String.format("No matching pattern for license %s", licenseId)); } return null; }
[ "Resolve the targeted license thanks to the license ID\nReturn null if no license is matching the licenseId\n\n@param licenseId\n@return DbLicense" ]
[ "Login for a specific authentication, creating a new token.\n\n@param authentication authentication to assign to token\n@return token", "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@return values in Xml format", "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object", "Add tags to a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param tags\nThe tags\n@throws FlickrException", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "All address strings are comparable. If two address strings are invalid, their strings are compared.\nOtherwise, address strings are compared according to which type or version of string, and then within each type or version\nthey are compared using the comparison rules for addresses.\n\n@param other\n@return", "Reorder the objects in the table to resolve referential integrity dependencies.", "Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked" ]
public List<TimephasedCost> getTimephasedCost() { if (m_timephasedCost == null) { Resource r = getResource(); ResourceType type = r != null ? r.getType() : ResourceType.WORK; //for Work and Material resources, we will calculate in the normal way if (type != ResourceType.COST) { if (m_timephasedWork != null && m_timephasedWork.hasData()) { if (hasMultipleCostRates()) { m_timephasedCost = getTimephasedCostMultipleRates(getTimephasedWork(), getTimephasedOvertimeWork()); } else { m_timephasedCost = getTimephasedCostSingleRate(getTimephasedWork(), getTimephasedOvertimeWork()); } } } else { m_timephasedCost = getTimephasedCostFixedAmount(); } } return m_timephasedCost; }
[ "Retrieves the timephased breakdown of cost.\n\n@return timephased cost" ]
[ "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation.", "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Use this API to fetch all the callhome resources that are configured on netscaler.", "Get a value from a date metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the metadata value as a Date.\n@throws ParseException when the value cannot be parsed as a valid date", "Returns true if the context has access to any given permissions.", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Creates a random diagonal matrix where the diagonal elements are selected from a uniform\ndistribution that goes from min to max.\n\n@param N Dimension of the matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "called when we are completed finished with using the TcpChannelHub", "Delete an object from the database by id." ]
public int readFrom(ByteBuffer src, long destOffset) { if (src.remaining() + destOffset >= size()) throw new BufferOverflowException(); int readLen = src.remaining(); ByteBuffer b = toDirectByteBuffer(destOffset, readLen); b.position(0); b.put(src); return readLen; }
[ "Reads the given source byte buffer into this buffer at the given offset\n@param src source byte buffer\n@param destOffset offset in this buffer to read to\n@return the number of bytes read" ]
[ "Retrieve a work field.\n\n@param type field type\n@return Duration instance", "Use this API to update dospolicy.", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Create a hazard curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this hazard curve.\n@param times Array of times as doubles.\n@param givenSurvivalProbabilities Array of corresponding survival probabilities.\n@return A new discount factor object.", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it being in the list and false for it not being in the list", "Build all combinations of graph structures for generic event stubs of a maximum length\n@param length Maximum number of nodes in each to generate\n@return All graph combinations of specified length or less", "Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler.", "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", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value" ]
public static base_response unset(nitro_service client, nslimitselector resource, String[] args) throws Exception{ nslimitselector unsetresource = new nslimitselector(); unsetresource.selectorname = resource.selectorname; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of nslimitselector resource.\nProperties that need to be unset are specified in args array." ]
[ "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Use this API to fetch all the lbsipparameters resources that are configured on netscaler.", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy.", "Returns a matrix of StatisticsMatrix type so that SimpleMatrix functions create matrices\nof the correct type.", "The handling method.", "End building the script, adding a return value statement\n@param config the configuration for the script to build\n@param value the value to return\n@return the new {@link LuaScript} instance", "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata", "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" ]
private void writeTimeUnitsField(String fieldName, Object value) throws IOException { TimeUnit val = (TimeUnit) value; if (val != m_projectFile.getProjectProperties().getDefaultDurationUnits()) { m_writer.writeNameValuePair(fieldName, val.toString()); } }
[ "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
[ "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date", "Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string.", "Returns the default jdbc type for the given java type.\n\n@param javaType The qualified java type\n@return The default jdbc type", "Tells you if an expression is the expected constant.\n@param expression\nany expression\n@param expected\nthe expected int or String\n@return\nas described", "Get container for principal.\n\n@param cms cmsobject\n@param list of principals\n@param captionID caption id\n@param descID description id\n@param iconID icon id\n@param ouID ou id\n@param icon icon\n@param iconList iconlist\n@return indexedcontainer", "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.", "Export the modules that should be checked in into git.", "Specify the address of the SOCKS proxy the connection should\nuse.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n<p>Be aware that this method only handles SOCKS proxies, not\nHTTPS proxies. Use {@link #withProxy(Proxy)} instead.\n\n@param host the hostname of the SOCKS proxy\n@param port the port of the SOCKS proxy server\n@return this" ]
@Override public void handlePopups() { /* * try { executeJavaScript("window.alert = function(msg){return true;};" + * "window.confirm = function(msg){return true;};" + * "window.prompt = function(msg){return true;};"); } catch (CrawljaxException e) { * LOGGER.error("Handling of PopUp windows failed", e); } */ /* Workaround: Popups handling currently not supported in PhantomJS. */ if (browser instanceof PhantomJSDriver) { return; } if (ExpectedConditions.alertIsPresent().apply(browser) != null) { try { browser.switchTo().alert().accept(); LOGGER.info("Alert accepted"); } catch (Exception e) { LOGGER.error("Handling of PopUp windows failed"); } } }
[ "alert, prompt, and confirm behave as if the OK button is always clicked." ]
[ "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted.", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Set the \"everyWorkingDay\" flag.\n@param isEveryWorkingDay flag, indicating if the event should take place every working day.", "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure", "Method is called by spring and verifies that there is only one plugin per URI scheme.", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails", "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.", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes", "Sends the events to monitoring service client.\n\n@param events the events" ]
public void setPlaying(boolean playing) { if (this.playing.get() == playing) { return; } this.playing.set(playing); if (playing) { metronome.jumpToBeat(whereStopped.get().getBeat()); if (isSendingStatus()) { // Need to also start the beat sender. beatSender.set(new BeatSender(metronome)); } } else { final BeatSender activeSender = beatSender.get(); if (activeSender != null) { // We have a beat sender we need to stop. activeSender.shutDown(); beatSender.set(null); } whereStopped.set(metronome.getSnapshot()); } }
[ "Controls whether we report that we are playing. This will only have an impact when we are sending status and\nbeat packets.\n\n@param playing {@code true} if we should seem to be playing" ]
[ "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Build the Criteria using multiple ORs\n@param ids collection of identities\n@param fields\n@return Criteria", "First looks for zeros and then performs the implicit single step in the QR Algorithm.", "Loads the configuration XML from the given string.\n@since 1.3", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "Set the value of one or more fields based on the contents of a database row.\n\n@param map column to field map\n@param row database row\n@param container field container", "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", "Checks whether the property of the given name is allowed for the model element.\n\n@param defClass The class of the model element\n@param propertyName The name of the property\n@return <code>true</code> if the property is allowed for this type of model elements" ]
private void deliverBeatAnnouncement(final Beat beat) { for (final MasterListener listener : getMasterListeners()) { try { listener.newBeat(beat); } catch (Throwable t) { logger.warn("Problem delivering master beat announcement to listener", t); } } }
[ "Send a beat announcement to all registered master listeners.\n\n@param beat the beat sent by the tempo master" ]
[ "Propagates node table of given DAG to all of it ancestors.", "Returns the value of the matrix at the specified index of the 1D row major array.\n\n@see DMatrixRMaj#get(int)\n\n@param index The element's index whose value is to be returned\n@return The value of the specified element.", "if you want to convert some string to an object, you have an argument to parse", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Use this API to change responderhtmlpage.", "Delete a module from Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "The derivative of the objective function. You may override this method\nif you like to implement your own derivative.\n\n@param parameters Input value. The parameter vector.\n@param derivatives Output value, where derivatives[i][j] is d(value(j)) / d(parameters(i)\n@throws SolverException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "from IsoFields in ThreeTen-Backport" ]
@Override public void destroy(T instance, CreationalContext<T> creationalContext) { super.destroy(instance, creationalContext); try { getProducer().preDestroy(instance); // WELD-1010 hack? if (creationalContext instanceof CreationalContextImpl) { ((CreationalContextImpl<T>) creationalContext).release(this, instance); } else { creationalContext.release(); } } catch (Exception e) { BeanLogger.LOG.errorDestroying(instance, this); BeanLogger.LOG.catchingDebug(e); } }
[ "Destroys an instance of the bean\n\n@param instance The instance" ]
[ "Create a ModelNode representing the CPU the instance is running on.\n\n@return a ModelNode representing the CPU the instance is running on.\n@throws OperationFailedException", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices.", "Drives the unit test.", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported.", "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "Creates a namespace if needed.", "Wait until a scan of the table completes without seeing notifications AND without the Oracle\nissuing any timestamps during the scan.", "Creates the box tree for the PDF file.\n@param dim" ]
public static byte[] getDocumentToByteArray(Document dom) { try { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer .setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); transformer.setOutputProperty(OutputKeys.METHOD, "html"); // TODO should be fixed to read doctype declaration transformer .setOutputProperty( OutputKeys.DOCTYPE_PUBLIC, "-//W3C//DTD XHTML 1.0 Strict//EN\" " + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"); DOMSource source = new DOMSource(dom); ByteArrayOutputStream out = new ByteArrayOutputStream(); Result result = new StreamResult(out); transformer.transform(source, result); return out.toByteArray(); } catch (TransformerException e) { LOGGER.error("Error while converting the document to a byte array", e); } return null; }
[ "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String" ]
[ "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Use this API to add ipset.", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached.", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Get the Upper triangular factor.\n\n@return U.", "Removes trailing and leading whitespace, and also reduces each\nsequence of internal whitespace to a single space.", "init database with demo data", "Use this API to update protocolhttpband." ]
public List<Shard> getShards() { InputStream response = null; try { response = client.couchDbClient.get(new DatabaseURIHelper(db.getDBUri()).path("_shards") .build()); return getResponseList(response, client.getGson(), DeserializationTypes.SHARDS); } finally { close(response); } }
[ "Get info about the shards in the database.\n\n@return List of shards\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-database-_shards-\"\ntarget=\"_blank\">_shards</a>" ]
[ "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "Gets existing config files.\n\n@return the existing config files", "write CustomInfo list into table.\n\n@param event the event", "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", "Read task baseline values.\n\n@param row result set row", "Calculates the legend positions and which legend title should be displayed or not.\n\nImportant: the LegendBounds in the _Models should be set and correctly calculated before this\nfunction is called!\n@param _Models The graph data which should have the BaseModel class as parent class.\n@param _StartX Left starting point on the screen. Should be the absolute pixel value!\n@param _Paint The correctly set Paint which will be used for the text painting in the later process", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .", "Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise.", "Retrieves a list of Terms of Service that belong to your Enterprise as an Iterable.\n@param api api the API connection to be used by the resource.\n@param termsOfServiceType the type of terms of service to be retrieved. Can be set to \"managed\" or \"external\"\n@return the Iterable of Terms of Service in an Enterprise that match the filter parameters." ]
protected void boot(final BootContext context) throws ConfigurationPersistenceException { List<ModelNode> bootOps = configurationPersister.load(); ModelNode op = registerModelControllerServiceInitializationBootStep(context); if (op != null) { bootOps.add(op); } boot(bootOps, false); finishBoot(); }
[ "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded" ]
[ "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException", "Returns a compact representation of all of the tags the task has.\n\n@param task The task to get tags on.\n@return Request object", "Unmark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to unmark", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Returns a button component. On click, it triggers adding a bundle descriptor.\n@return a button for adding a descriptor to a bundle.", "Use this API to export application.", "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException" ]
public static String encodeQueryParam(String queryParam, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents.encodeUriComponent(queryParam, encoding, HierarchicalUriComponents.Type.QUERY_PARAM); }
[ "Encodes the given URI query parameter with the given encoding.\n@param queryParam the query parameter to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query parameter\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
[ "Adds a class to the unit.", "Stops this progress bar.", "Returns true if the query result has at least one row.", "Prepare the filter for the transiton at a given time.\nThe default implementation sets the given filter property, but you could override this method to make other changes.\n@param transition the transition time in the range 0 - 1", "return the list of FormInputs that match this element\n\n@param element\n@return", "Get a list of referrers from a given domain to a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\"", "Use this API to fetch all the dospolicy resources that are configured on netscaler.", "Put the core auto-code algorithm here so an external class can call it", "checks whether the specified Object obj is write-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" ]
public InsertIntoTable addRowsFrom(File file, FileParser fileParser) { builder.addRowsFrom(file, fileParser); return this; }
[ "Adds all rows from the file specified, using the provided parser.\n\n@param file File to read the data from.\n@param fileParser Parser to be used to parse the file.\n@return {@code this}" ]
[ "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "prefix the this class fk columns with the indirection table", "Returns the number of vertex indices for a single face.\n\n@param face the face\n@return the number of indices", "Convert raw data into Java types.\n\n@param type data type\n@param data raw data\n@return list of Java object", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Use this API to fetch aaauser_intranetip_binding resources of given name .", "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null", "Use this API to add systemuser resources.", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException" ]
public static GVRMesh createQuad(GVRContext gvrContext, float width, float height) { GVRMesh mesh = new GVRMesh(gvrContext); float[] vertices = { width * -0.5f, height * 0.5f, 0.0f, width * -0.5f, height * -0.5f, 0.0f, width * 0.5f, height * 0.5f, 0.0f, width * 0.5f, height * -0.5f, 0.0f }; mesh.setVertices(vertices); final float[] normals = { 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f }; mesh.setNormals(normals); final float[] texCoords = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f }; mesh.setTexCoords(texCoords); char[] triangles = { 0, 1, 2, 1, 3, 2 }; mesh.setIndices(triangles); return mesh; }
[ "Creates a quad consisting of two triangles, with the specified width and\nheight.\n\n@param gvrContext current {@link GVRContext}\n\n@param width\nthe quad's width\n@param height\nthe quad's height\n@return A 2D, rectangular mesh with four vertices and two triangles" ]
[ "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "checkpoint the transaction", "directive dynamic xxx,yy\n@param node\n@return", "Release all memory addresses taken by this allocator.\nBe careful in using this method, since all of the memory addresses become invalid.", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues" ]
private Criteria buildPrefetchCriteriaMultipleKeys(Collection ids, FieldDescriptor fields[]) { Criteria crit = new Criteria(); Iterator iter = ids.iterator(); Object[] val; Identity id; while (iter.hasNext()) { Criteria c = new Criteria(); id = (Identity) iter.next(); val = id.getPrimaryKeyValues(); for (int i = 0; i < val.length; i++) { if (val[i] == null) { c.addIsNull(fields[i].getAttributeName()); } else { c.addEqualTo(fields[i].getAttributeName(), val[i]); } } crit.addOrCriteria(c); } return crit; }
[ "Build the Criteria using multiple ORs\n@param ids collection of identities\n@param fields\n@return Criteria" ]
[ "Use this API to fetch all the nd6ravariables resources that are configured on netscaler.", "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Record a prepare operation.\n\n@param preparedOperation the prepared operation", "Build a Dataset from some data.\n\n@param oldData This {@link Dataset} represents data for which we which to\nsome features, specifically those features not in the {@link edu.stanford.nlp.util.Index}\ngoodFeatures.\n@param goodFeatures An {@link edu.stanford.nlp.util.Index} of features we wish to retain.\n@return A new {@link Dataset} wheres each datapoint contains only features\nwhich were in goodFeatures.", "Sets padding between the pages\n@param padding\n@param axis", "Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in\nlower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default\nvalue returned is the first value from the valid set.\n\n@param index the current index\n@param length the maximum length to look at\n@param valid the valid sets for this index\n@return the best set to use at the specified index", "Use this API to clear Interface.", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings" ]
public static tunnelip_stats get(nitro_service service, String tunnelip) throws Exception{ tunnelip_stats obj = new tunnelip_stats(); obj.set_tunnelip(tunnelip); tunnelip_stats response = (tunnelip_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of tunnelip_stats resource of given name ." ]
[ "Retrieves all Metadata Cascade Policies on a folder.\n\n@param fields optional fields to retrieve for cascade policies.\n@return the Iterable of Box Metadata Cascade Policies in your enterprise.", "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation.", "Sets the content type for this ID\n\n@param pathId ID of path\n@param contentType content type value", "Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output\ntensors", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into", "Calculates a checksum for the specified buffer.\n@param buffer the buffer to calculate.\n@return the checksum value.", "Return a string representation of the object.", "Read resource assignment baseline values.\n\n@param row result set row" ]
public void render(OutputStream outputStream, Format format, int dpi) throws PrintingException { try { if (baos == null) { prepare(); } writeDocument(outputStream, format, dpi); } catch (Exception e) { // NOSONAR throw new PrintingException(e, PrintingException.DOCUMENT_RENDER_PROBLEM); } }
[ "Renders the document to the specified output stream." ]
[ "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "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", "Configure all UI elements in the exceptions panel.", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Return the number of days between startDate and endDate given the\nspecific daycount convention.\n\n@param startDate The start date given as a {@link org.threeten.bp.LocalDate}.\n@param endDate The end date given as a {@link org.threeten.bp.LocalDate}.\n@param convention A convention string.\n@return The number of days within the given period.", "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs", "Parse work units.\n\n@param value work units value\n@return TimeUnit instance", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "build a complete set of local files, files from referenced projects, and dependencies." ]
private void readBlock(int blockIndex, int startIndex, int blockLength) throws Exception { logBlock(blockIndex, startIndex, blockLength); if (blockLength < 128) { readTableBlock(startIndex, blockLength); } else { readColumnBlock(startIndex, blockLength); } }
[ "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length" ]
[ "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "This method extracts resource data from a GanttProject file.\n\n@param ganttProject parent node for resources", "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Tell a device to become tempo master.\n\n@param deviceNumber the device we want to take over the role of tempo master\n\n@throws IOException if there is a problem sending the command to the device\n@throws IllegalStateException if the {@code VirtualCdj} is not active\n@throws IllegalArgumentException if {@code deviceNumber} is not found on the network", "Use this API to fetch policydataset resource of given name .", "Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value", "Filter everything until we found the first NL character." ]
public static DMatrixRMaj stripReal(ZMatrixD1 input , DMatrixRMaj output ) { if( output == null ) { output = new DMatrixRMaj(input.numRows,input.numCols); } else if( input.numCols != output.numCols || input.numRows != output.numRows ) { throw new IllegalArgumentException("The matrices are not all the same dimension."); } final int length = input.getDataLength(); for( int i = 0; i < length; i += 2 ) { output.data[i/2] = input.data[i]; } return output; }
[ "Places the real component of the input matrix into the output matrix.\n\n@param input Complex matrix. Not modified.\n@param output real matrix. Modified." ]
[ "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to clear Interface resources.", "m is more generic than a", "Read task data from a PEP file.", "Get a writer implementation to push data into Canvas while being able to control the behavior of blank values.\nIf the serializeNulls parameter is set to true, this writer will serialize null fields in the JSON being\nsent to Canvas. This is required if you want to explicitly blank out a value that is currently set to something.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param serializeNulls Whether or not to include null fields in the serialized JSON. Defaults to false if null\n@param <T> A writer implementation\n@return An instantiated instance of the requested writer type", "Use this API to fetch a appflowglobal_binding resource .", "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data" ]
public static int restrictRange(int value, int min, int max) { return Math.min((Math.max(value, min)), max); }
[ "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2" ]
[ "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value", "Convert element to another object given a parameterized type signature\n\n@param context\n@param destinationType\nthe destination type\n@param source\nthe source object\n\n@return the converted object\n@throws ConverterException\nif conversion failed", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Clear out our DAO caches.", "Returns the query string currently in the text field.\n\n@return the query string", "Determine the consistency level of a key\n\n@param versionNodeSetMap A map that maps version to set of PrefixNodes\n@param replicationFactor Total replication factor for the set of clusters\n@return ConsistencyLevel Enum", "Use this API to Force clustersync.", "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list", "returns a collection of Reader LockEntries for object obj.\nIf no LockEntries could be found an empty Vector is returned." ]
public void updateRequestByAddingReplaceVarPair( ParallelTask task, String replaceVarKey, String replaceVarValue) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) { NodeReqResponse nodeReqResponse = entry.getValue(); nodeReqResponse.getRequestParameters() .put(PcConstants.NODE_REQUEST_PREFIX_REPLACE_VAR + replaceVarKey, replaceVarValue); nodeReqResponse.getRequestParameters().put( PcConstants.NODE_REQUEST_WILL_EXECUTE, Boolean.toString(true)); }// end for loop }
[ "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value" ]
[ "Checks if two types are the same or are equivalent under a variable\nmapping given in the type map that was provided.", "Translate the operation address.\n\n@param op the operation\n@return the new operation", "returns a sorted array of enum constants", "LV morphology helper functions", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "Converts B and X into block matrices and calls the block matrix solve routine.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified.", "Fills the Boyer Moore \"bad character array\" for the given pattern", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed" ]
public static <IN> PaddedList<IN> valueOf(List<IN> list, IN padding) { return new PaddedList<IN>(list, padding); }
[ "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list" ]
[ "Delete a module\n\n@param moduleId String", "Initializes context size.\n\n@param rectangle rectangle", "Returns all base types.\n\n@return An iterator of the base types", "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter.", "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid.", "Sets an attribute in a non-main section of the manifest.\n\n@param section the section's name\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@param resource the resource for which the new token has to be obtained\n@return scopedToken which has access token and other details", "Given a key and a list of steal infos give back a list of stealer node\nids which will steal this.\n\n@param key Byte array of key\n@param stealerNodeToMappingTuples Pairs of stealer node id to their\ncorresponding [ partition - replica ] tuples\n@param cluster Cluster metadata\n@param storeDef Store definitions\n@return List of node ids" ]
public final int toCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff) { if (srcLen < 0) { throw new IllegalArgumentException("srcLen must be >= 0"); } int codePointCount = 0; for (int i = 0; i < srcLen; ) { final int cp = codePointAt(src, srcOff + i, srcOff + srcLen); final int charCount = Character.charCount(cp); dest[destOff + codePointCount++] = cp; i += charCount; } return codePointCount; }
[ "Converts a sequence of Java characters to a sequence of unicode code points.\n\n@return the number of code points written to the destination buffer" ]
[ "Returns a new created connection\n\n@param jcd the connection descriptor\n@return an instance of Connection from the drivermanager", "Obtains a Julian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Connect and register at the remote domain controller.\n\n@return connection the established connection\n@throws IOException", "Read leaf tasks attached to the WBS.\n\n@param id initial WBS ID", "Return fallback if first string is null or empty", "Producers returned from this method are not validated. Internal use only.", "Implement the persistence handler for storing the user properties.", "Helper method to load a property file from class path.\n\n@param filesToLoad\nan array of paths (class path paths) designating where the files may be. All files are loaded, in the order\ngiven. Missing files are silently ignored.\n\n@return a Properties object, which may be empty but not null.", "Naive implementation of the difference in days between two dates" ]
private static String getFileName(@Nullable final MapPrinter mapPrinter, final PJsonObject spec) { String fileName = spec.optString(Constants.OUTPUT_FILENAME_KEY); if (fileName != null) { return fileName; } if (mapPrinter != null) { final Configuration config = mapPrinter.getConfiguration(); final String templateName = spec.getString(Constants.JSON_LAYOUT_KEY); final Template template = config.getTemplate(templateName); if (template.getOutputFilename() != null) { return template.getOutputFilename(); } if (config.getOutputFilename() != null) { return config.getOutputFilename(); } } return "mapfish-print-report"; }
[ "Read filename from spec." ]
[ "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "Tries to guess location of the user secure keyring using various\nheuristics.\n\n@return path to the keyring file\n@throws FileNotFoundException if no keyring file found", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.", "Retrieve the request History based on the specified filters.\nIf no filter is specified, return the default size history.\n\n@param filters filters to be applied\n@return array of History items\n@throws Exception exception", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Returns a sampling of the source at the specified line and column,\nof null if it is unavailable.", "Use this API to apply nspbr6.", "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception", "Formats event output by key, usually equal to the method name.\n\n@param key the event key\n@param defaultPattern the default pattern to return if a custom pattern\nis not found\n@param args the args used to format output\n@return A formatted event output" ]
@Override public View getDropDownView(int position, View convertView, ViewGroup parent) { final ViewHolder viewHolder; if (convertView == null) { convertView = mLayoutInflater.inflate(R.layout.item_country, parent, false); viewHolder = new ViewHolder(); viewHolder.mImageView = (ImageView) convertView.findViewById(R.id.intl_phone_edit__country__item_image); viewHolder.mNameView = (TextView) convertView.findViewById(R.id.intl_phone_edit__country__item_name); viewHolder.mDialCode = (TextView) convertView.findViewById(R.id.intl_phone_edit__country__item_dialcode); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } Country country = getItem(position); viewHolder.mImageView.setImageResource(getFlagResource(country)); viewHolder.mNameView.setText(country.getName()); viewHolder.mDialCode.setText(String.format("+%s", country.getDialCode())); return convertView; }
[ "Drop down item view\n\n@param position position of item\n@param convertView View of item\n@param parent parent view of item's view\n@return covertView" ]
[ "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "Returns an iterator over the items in the trash.\n@return an iterator over the items in the trash.", "Get a configured database connection via JNDI.", "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE.", "Report all Java ClassFile files available on the class path within\nthe specified packages and sub packages.\n\n@see #detect(File...)", "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "This method extracts task data from an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
public static boolean uniform(Color color, Pixel[] pixels) { return Arrays.stream(pixels).allMatch(p -> p.toInt() == color.toRGB().toInt()); }
[ "Returns true if all pixels in the array have the same color" ]
[ "Shows the given step.\n\n@param step the step", "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "Plots the MSD curve with the trajectory t and adds the fitted model for anomalous diffusion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Exponent alpha of power law function\n@param D Diffusion coeffcient", "Use this API to fetch the statistics of all scpolicy_stats resources that are configured on netscaler.", "Retrieve the frequency of an exception.\n\n@param exception XML calendar exception\n@return frequency", "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "Compress a directory into a zip file\n\n@param dir Directory\n@param zipFile ZIP file to create\n@throws IOException I/O Error", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Adds a new gender item and an initial name.\n\n@param entityIdValue\nthe item representing the gender\n@param name\nthe label to use for representing the gender" ]
public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory) { return removeFile(name, path, existingHash, isDirectory, null); }
[ "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder" ]
[ "low level http operations", "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return info about the shared item.", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Adds the contents of a Java package to this JAR.\n\n@param clazz a class whose package we wish to add to the JAR.\n@param filter a filter to select particular classes\n@return {@code this}", "public because it's used by other packages that use Duke", "Print a a basic type t", "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise", "Sets a string-valued additional info entry on the user.\n\n@param username the name of the user\n@param infoName the additional info key\n@param value the additional info value\n\n@throws CmsException if something goes wrong" ]
protected void processLabels(List<MonolingualTextValue> labels) { for(MonolingualTextValue label : labels) { String lang = label.getLanguageCode(); NameWithUpdate currentValue = newLabels.get(lang); if (currentValue == null || !currentValue.value.equals(label)) { newLabels.put(lang, new NameWithUpdate(label, true)); // Delete any alias that matches the new label AliasesWithUpdate currentAliases = newAliases.get(lang); if (currentAliases != null && currentAliases.aliases.contains(label)) { deleteAlias(label); } } } }
[ "Adds labels to the item\n\n@param labels\nthe labels to add" ]
[ "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied data", "set the layout which will host the ScrimInsetsFrameLayout and its layoutParams\n\n@param container\n@param layoutParams\n@return", "Performs a single synchronization pass in both the local and remote directions; the order\nof which does not matter. If switching the order produces different results after one pass,\nthen there is a bug.\n\n@return whether or not the synchronization pass was successful.", "Update environment variables to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param config Key/Value pairs of environment variables.", "Schedules the task with a fixed delay period and an initialDelay period. This functions\nlike the normal java Timer.\n@param task\n@param initialDelay\n@param fixedDelay", "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file.", "This is a generic function for retrieving any config value. The returned value\nis the one the server is operating with, no matter whether it comes from defaults\nor from the user-supplied configuration.\n\nThis function only provides access to configs which are deemed safe to share\npublicly (i.e.: not security-related configs). The list of configs which are\nconsidered off-limit can itself be configured via '{@value #RESTRICTED_CONFIGS}'.\n\n@param key config key for which to retrieve the value.\n@return the value for the requested config key, in String format.\nMay return null if the key exists and its value is explicitly set to null.\n@throws UndefinedPropertyException if the requested key does not exist in the config.\n@throws ConfigurationException if the requested key is not publicly available.", "Use this API to clear Interface.", "Called whenever a rebalance task completes. This means one task is done\nand some number of partition stores have been migrated.\n\n@param taskId\n@param partitionStoresMigrated Number of partition stores moved by this\ncompleted task." ]
protected void onEditTitleTextBox(TextBox box) { if (m_titleEditHandler != null) { m_titleEditHandler.handleEdit(m_title, box); return; } String text = box.getText(); box.removeFromParent(); m_title.setText(text); m_title.setVisible(true); }
[ "Internal method which is called when the user has finished editing the title.\n\n@param box the text box which has been edited" ]
[ "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type", "Show multiple channels. All other channels will be unaffected.\n@param channels The channels to show", "Use this API to reset appfwlearningdata.", "Use this API to fetch onlinkipv6prefix resource of given name .", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "in truth we probably only need the types as injected by the metadata binder", "Moves the given row up.\n\n@param row the row to move", "Default implementation returns unmodified original Query\n\n@see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery", "Returns the number of consecutive leading one or zero bits.\nIf network is true, returns the number of consecutive leading one bits.\nOtherwise, returns the number of consecutive leading zero bits.\n\n@param network\n@return" ]
void recordPreparedOperation(final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> preparedOperation) { recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(preparedOperation)); }
[ "Record a prepare operation.\n\n@param preparedOperation the prepared operation" ]
[ "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", "Shutdown each AHC client in the map.", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'\nwith the value escaped if necessary.", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)", "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException", "Generate a results file for each test in each suite.\n@param outputDirectory The target directory for the generated file(s)." ]
public void process(File file) throws Exception { openLogFile(); int blockIndex = 0; int length = (int) file.length(); m_buffer = new byte[length]; FileInputStream is = new FileInputStream(file); try { int bytesRead = is.read(m_buffer); if (bytesRead != length) { throw new RuntimeException("Read count different"); } } finally { is.close(); } List<Integer> blocks = new ArrayList<Integer>(); for (int index = 64; index < m_buffer.length - 11; index++) { if (matchPattern(PARENT_BLOCK_PATTERNS, index)) { blocks.add(Integer.valueOf(index)); } } int startIndex = 0; for (int endIndex : blocks) { int blockLength = endIndex - startIndex; readBlock(blockIndex, startIndex, blockLength); startIndex = endIndex; ++blockIndex; } int blockLength = m_buffer.length - startIndex; readBlock(blockIndex, startIndex, blockLength); closeLogFile(); }
[ "Read a FastTrack file.\n\n@param file FastTrack file" ]
[ "Use this API to fetch lbvserver_filterpolicy_binding resources of given name .", "Update the content of the tables.", "Check for exceptions.\n\n@return the list", "Create the function. Be sure to handle all possible input types and combinations correctly and provide\nmeaningful error messages. The output matrix should be resized to fit the inputs.", "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor", "Show books.\n\n@param booksList the books list", "Delete a module\n\n@param moduleId String", "Use this API to fetch all the systemcore resources that are configured on netscaler.", "Notifies all interested subscribers of the given revision.\n\n@param mwRevision\nthe given revision\n@param isCurrent\ntrue if this is guaranteed to be the most current revision" ]
public int getBoneIndex(String bonename) { for (int i = 0; i < getNumBones(); ++i) if (mBoneNames[i].equals(bonename)) return i; return -1; }
[ "Get the bone index for the bone with the given name.\n\n@param bonename string identifying the bone whose index you want\n@return 0 based bone index or -1 if bone with that name is not found." ]
[ "Update rows in the database.", "Take screenshot of the current window.\n\n@param target The target type/format of the Screenshot\n@return Screenshot of current window, in the requested format", "Converts a date series configuration to a date series bean.\n@return the date series bean.", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Returns the inverse of a given matrix.\n\n@param matrix A matrix given as double[n][n].\n@return The inverse of the given matrix.", "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n@param fs Underlying filesystem\n@param path The file to read\n@param bufferSize The buffer size to use for reading\n@return The contents of the file as a string\n@throws IOException", "Use this API to fetch all the nstimeout resources that are configured on netscaler.", "Inserts a Bundle value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Bundle object, or null\n@return this bundler instance to chain method calls" ]
public static appflowpolicy_appflowglobal_binding[] get(nitro_service service, String name) throws Exception{ appflowpolicy_appflowglobal_binding obj = new appflowpolicy_appflowglobal_binding(); obj.set_name(name); appflowpolicy_appflowglobal_binding response[] = (appflowpolicy_appflowglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name ." ]
[ "Store the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone.", "to avoid creation of unmaterializable proxies", "Returns a list of all parts that have been uploaded to an upload session.\n@param offset paging marker for the list of parts.\n@param limit maximum number of parts to return.\n@return the list of parts.", "Get a unique reference to a place where a track is currently loaded in a player.\n\n@param player the player in which the track is loaded\n@param hotCue hot cue number in which the track is loaded, or 0 if it is actively loaded on the playback deck\n\n@return the instance that will always represent a reference to the specified player and hot cue", "Optimized version of the Wagner & Fischer algorithm that only\nkeeps a single column in the matrix in memory at a time. It\nimplements the simple cutoff, but otherwise computes the entire\nmatrix. It is roughly twice as fast as the original function.", "Initializes the type and validates it", "Returns a OkHttpClient that ignores SSL cert errors\n@return" ]
private boolean relevant(File currentLogFile, GregorianCalendar lastRelevantDate) { String fileName=currentLogFile.getName(); Pattern p = Pattern.compile(APPENER_DATE_DEFAULT_PATTERN); Matcher m = p.matcher(fileName); if(m.find()){ int year=Integer.parseInt(m.group(1)); int month=Integer.parseInt(m.group(2)); int dayOfMonth=Integer.parseInt(m.group(3)); GregorianCalendar fileDate=new GregorianCalendar(year, month, dayOfMonth); fileDate.add(Calendar.MONTH,-1); //Because of Calendar save the month such that January is 0 return fileDate.compareTo(lastRelevantDate)>0; } else{ return false; } }
[ "Get a log file and last relevant date, and check if the log file is relevant\n@param currentLogFile The log file\n@param lastRelevantDate The last date which files should be keeping since\n@return false if the file should be deleted, true if it does not." ]
[ "Checks if user exists.\n\n@param userId the user id, which can be an email or the login.\n@return true, if user exists.", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Checks if the provided artifactQuery is valid\n\n@param artifactQuery ArtifactQuery\n@throws WebApplicationException if the data is corrupted", "Returns all keys of all rows contained within this association.\n\n@return all keys of all rows contained within this association", "Runs the command session.\nCreate the Shell, then run this method to listen to the user,\nand the Shell will invoke Handler's methods.\n@throws java.io.IOException when can't readLine() from input.", "Rename an existing app.\n@param appName Existing app name. See {@link #listApps()} for names that can be used.\n@param newName New name to give the existing app.\n@return the new name of the object", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "Use this API to delete dnsaaaarec." ]
public static nsrollbackcmd[] get(nitro_service service, nsrollbackcmd_args args) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.\nThis uses nsrollbackcmd_args which is a way to provide additional arguments while fetching the resources." ]
[ "Use this API to delete sslcertkey resources of given names.", "Invokes the ready tasks.\n\n@param context group level shared context that need be passed to\n{@link TaskGroupEntry#invokeTaskAsync(boolean, InvocationContext)}\nmethod of each entry in the group when it is selected for execution\n\n@return an observable that emits the result of tasks in the order they finishes.", "Use this API to delete sslcipher resources of given names.", "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\n@param x the X coordinate of the rectangle\n@param y the Y coordinate of the rectangle\n@param width the width of the rectangle\n@param height the height of the rectangle\n@param stroke should there be a stroke around?\n@param fill should the rectangle be filled?\n@return the resulting DOM element", "A property tied to the map, updated when the idle state event is fired.\n\n@return", "Use this API to update sslcertkey.", "Initializes the model", "Gets a design document from the database.\n\n@param id the design document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Generates a diagonal matrix with the input vector on its diagonal\n\n@param vector The given matrix A.\n@return diagonalMatrix The matrix with the vectors entries on its diagonal" ]
private void processBaseFonts(byte[] data) { int offset = 0; int blockCount = MPPUtility.getShort(data, 0); offset += 2; int size; String name; for (int loop = 0; loop < blockCount; loop++) { /*unknownAttribute = MPPUtility.getShort(data, offset);*/ offset += 2; size = MPPUtility.getShort(data, offset); offset += 2; name = MPPUtility.getUnicodeString(data, offset); offset += 64; if (name.length() != 0) { FontBase fontBase = new FontBase(Integer.valueOf(loop), name, size); m_fontBases.put(fontBase.getIndex(), fontBase); } } }
[ "Create an index of base font numbers and their associated base\nfont instances.\n@param data property data" ]
[ "Tests the string edit distance function.", "Adds a new leap second to these rules.\n\n@param mjDay the Modified Julian Day that the leap second occurs at the end of\n@param leapAdjustment the leap seconds to add/remove at the end of the day, either -1 or 1\n@throws IllegalArgumentException if the leap adjustment is invalid\n@throws IllegalArgumentException if the day is before or equal the last known leap second day\nand the definition does not match a previously registered leap\n@throws ConcurrentModificationException if another thread updates the rules at the same time", "Creates the main component of the editor with all sub-components.\n@return the completely filled main component of the editor.\n@throws IOException thrown if setting the table's content data source fails.\n@throws CmsException thrown if setting the table's content data source fails.", "Decode the String from Base64 into a byte array.\n\n@param value the string to be decoded\n@return the decoded bytes as an array\n@since 1.0", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/html`\n* If request is ajax request then apply requested content type only when `json` or `xml` is requested\n* otherwise use `text/html`\n\n@param result\nthe result used to check if it is error result\n@return this `ActionContext`.", "Use this API to update ntpserver.", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException" ]
public static SVGGraphics2D createSvgGraphics(final Dimension size) throws ParserConfigurationException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.getDOMImplementation().createDocument(null, "svg", null); SVGGeneratorContext ctx = SVGGeneratorContext.createDefault(document); ctx.setStyleHandler(new OpacityAdjustingStyleHandler()); ctx.setComment("Generated by GeoTools2 with Batik SVG Generator"); SVGGraphics2D g2d = new SVGGraphics2D(ctx, true); g2d.setSVGCanvasSize(size); return g2d; }
[ "Create a SVG graphic with the give dimensions.\n\n@param size The size of the SVG graphic." ]
[ "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process.", "Modify a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "Look at the comments on cluster variable to see why this is problematic", "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.\n@param documents List to put the assembled SolrInputObjects into.\n@param closeStream boolean flag that determines whether to close the inputstream\nor not.", "Takes the specified object and converts the argument to a String.\n\n@param arg The object to convert\n@return A String representation of the argument.", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Gets a color formatted as an integer with ARGB ordering.\n\n@param json {@link JSONObject} to get the color from\n@param elementName Name of the color element\n@return An ARGB formatted integer\n@throws JSONException", "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 pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location." ]
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-LIST values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value. ModelNode superResult = value.getType() == ModelType.LIST ? value : super.resolveValue(resolver, value); // If it's not a LIST (almost certainly UNDEFINED), then nothing more we can do if (superResult.getType() != ModelType.LIST) { return superResult; } // Resolve each element. // Don't mess with the original value ModelNode clone = superResult == value ? value.clone() : superResult; ModelNode result = new ModelNode(); result.setEmptyList(); for (ModelNode element : clone.asList()) { result.add(valueType.resolveValue(resolver, element)); } // Validate the entire list getValidator().validateParameter(getName(), result); return result; }
[ "Overrides the superclass implementation to allow the value type's AttributeDefinition to in turn\nresolve each element.\n\n{@inheritDoc}" ]
[ "Returns the ordered Map value of the field.\n\n@return the ordered Map value of the field. It returns a reference of the value.\n@throws IllegalArgumentException if the value cannot be converted to ordered Map.", "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "Closes the output. Should be called after the JSON serialization was\nfinished.\n\n@throws IOException\nif there was a problem closing the output", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "The Total Slack field contains the amount of time a task can be\ndelayed without delaying the project's finish date.\n\n@return string representing duration", "Get an extent aware RsIterator based on the Query\n\n@param query\n@param cld\n@param factory the Factory for the RsIterator\n@return OJBIterator", "Manipulates a string by cutting of a prefix, if present, and adding a new prefix.\n\n@param word the string to be manipulated\n@param oldPrefix the old prefix that should be replaced\n@param newPrefix the new prefix that is added\n@return the manipulated string", "Reads the bundle descriptor, sets m_desc and m_descContent.\n@throws CmsXmlException thrown when unmarshalling fails.\n@throws CmsException thrown when reading the resource fails or several bundle descriptors for the bundle exist.", "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception" ]
public AT_Row setPaddingBottom(int paddingBottom) { if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingBottom(paddingBottom); } } return this; }
[ "Sets the bottom padding for all cells in the row.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining" ]
[ "Prints associations recovered from the fields of a class. An association is inferred only\nif another relation between the two classes is not already in the graph.\n@param classes", "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", "Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Loads all localizations not already loaded.\n@throws CmsException thrown if locking a file fails.\n@throws UnsupportedEncodingException thrown if reading a file fails.\n@throws IOException thrown if reading a file fails.", "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Removes all items from the list box.", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs" ]
public CustomHeadersInterceptor addHeader(String name, String value) { if (!this.headers.containsKey(name)) { this.headers.put(name, new ArrayList<String>()); } this.headers.get(name).add(value); return this; }
[ "Add a single header key-value pair. If one with the name already exists,\nboth stay in the header map.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself." ]
[ "Process a relationship between two tasks.\n\n@param row relationship data", "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage.", "Get a timer of the given string name for the given thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked\n@return timer", "Computes the tree edit distance between trees t1 and t2.\n\n@param t1\n@param t2\n@return tree edit distance between trees t1 and t2", "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", "If the user has not specified a project ID, this method\nretrieves the ID of the first project in the file.", "Use this API to fetch sslvserver_sslcipher_binding resources of given name .", "checkpoint the ObjectModification", "Initialize new instance\n@param instance\n@param logger\n@param auditor" ]
public void registerServices(boolean force) { Injector injector = Guice.createInjector(getGuiceModule()); injector.injectMembers(this); registerInRegistry(force); }
[ "Inject members into this instance and register the services afterwards.\n@see #getGuiceModule()\n@see #registerInRegistry(boolean)\n@since 2.1" ]
[ "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "EAP 7.1", "Helper method to retrieve a canonical revision for git commits migrated from SVN. Migrated commits are\ndetected by the presence of 'git-svn-id' in the commit message.\n\n@param revision the commit/revision to inspect\n@param branch the name of the branch it came from\n@return the original SVN revision if it was a migrated commit from the branch specified, otherwise the git revision", "Add a \"post-run\" dependent task item for this task item.\n\n@param dependent the \"post-run\" dependent task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "Return the map bounds rotated with the set rotation. The bounds are adapted to rounding changes of the\nsize of the paint area.\n\n@param paintAreaPrecise The exact size of the paint area.\n@param paintArea The rounded size of the paint area.\n@return Rotated bounds.", "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "Convert a string value into the appropriate Java field value.", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus.", "Adds a listener to this collection.\n\n@param listener The listener to add" ]
public static String getDumpFileName(DumpContentType dumpContentType, String projectName, String dateStamp) { if (dumpContentType == DumpContentType.JSON) { return dateStamp + WmfDumpFile.getDumpFilePostfix(dumpContentType); } else { return projectName + "-" + dateStamp + WmfDumpFile.getDumpFilePostfix(dumpContentType); } }
[ "Returns the name under which this dump file. This is the name used online\nand also locally when downloading the file.\n\n@param dumpContentType\nthe type of the dump\n@param projectName\nthe project name, e.g. \"wikidatawiki\"\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return file name string" ]
[ "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searched objects\n@param query the query", "Removes the given object from the cache\n\n@param oid oid of the object to remove", "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info.", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "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", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"field-ref\" optional=\"true\" description=\"Identifies the field that provides the value\nif a runtime argument; if not set, then null is used\"\[email protected] name=\"name\" optional=\"false\" description=\"The identifier of the argument tag\"\[email protected] name=\"return\" optional=\"true\" description=\"Whether this is a return value (if a runtime argument)\"\nvalues=\"true,false\"\[email protected] name=\"value\" optional=\"false\" description=\"The value if a constant argument\"", "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add", "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException" ]
public void useNewRESTService(String address) throws Exception { List<Object> providers = createJAXRSProviders(); org.customer.service.CustomerService customerService = JAXRSClientFactory .createFromModel(address, org.customer.service.CustomerService.class, "classpath:/model/CustomerService-jaxrs.xml", providers, null); System.out.println("Using new RESTful CustomerService with new client"); customer.v2.Customer customer = createNewCustomer("Smith New REST"); customerService.updateCustomer(customer); customer = customerService.getCustomerByName("Smith New REST"); printNewCustomerDetails(customer); }
[ "New REST client uses new REST service" ]
[ "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum", "Registers annotations which will be considered as bean defining annotations.\n\nNOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key\n{@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.\n\n@param annotations annotations which will be considered as Bean Defining Annotations.\n@return self", "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly.", "Determine the color of the waveform given an index into it.\n\n@param segment the index of the first waveform byte to examine\n@param front if {@code true} the front (brighter) segment of a color waveform preview is returned,\notherwise the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return the color of the waveform at that segment, which may be based on an average\nof a number of values starting there, determined by the scale", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "Use this API to update autoscaleprofile.", "Adds a new cell to the current grid\n@param cell the td component", "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", "Computes A-B\n\n@param listA\n@param listB\n@return" ]
@SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); return (FluentModelImplT) this; }
[ "Adds a tag to the resource.\n@param key the key for the tag\n@param value the value for the tag\n@return the next stage of the definition/update" ]
[ "Creates a span that covers an exact row", "Shut down actor system force.", "Checks if this has the passed prefix\n\n@param prefix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0", "Reset hard on HEAD.\n\n@throws GitAPIException", "Destroys the internal connection handle and creates a new one.\n@throws SQLException", "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name", "Method will be executed asynchronously.", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types" ]
public static Date getTimestampFromLong(long timestamp) { TimeZone tz = TimeZone.getDefault(); Date result = new Date(timestamp - tz.getRawOffset()); if (tz.inDaylightTime(result) == true) { int savings; if (HAS_DST_SAVINGS == true) { savings = tz.getDSTSavings(); } else { savings = DEFAULT_DST_SAVINGS; } result = new Date(result.getTime() - savings); } return (result); }
[ "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer\n@return new Date instance" ]
[ "Determines the field via reflection look-up.\n\n@param clazz The java class to search in\n@param fieldName The field's name\n@return The field object or <code>null</code> if no matching field was found", "Retrieves a list of Terms of Service that belong to your Enterprise as an Iterable.\n@param api api the API connection to be used by the resource.\n@param termsOfServiceType the type of terms of service to be retrieved. Can be set to \"managed\" or \"external\"\n@return the Iterable of Terms of Service in an Enterprise that match the filter parameters.", "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds.", "Join the Collection of Strings using the specified delimiter.\n\n@param s\nThe String collection\n@param delimiter\nThe delimiter String\n@return The joined String", "This method writes resource data to a PM XML file.", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware.", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs" ]
public void populateContainer(Class<? extends FieldType> type, FieldContainer container, Integer id, byte[][] fixedData, Var2Data varData) { //System.out.println(container.getClass().getSimpleName()+": " + id); for (FieldItem item : m_map.values()) { if (item.getType().getClass().equals(type)) { //System.out.println(item.m_type); Object value = item.read(id, fixedData, varData); //System.out.println(item.m_type.getClass().getSimpleName() + "." + item.m_type + ": " + value); container.set(item.getType(), value); } } }
[ "Given a container, and a set of raw data blocks, this method extracts\nthe field data and writes it into the container.\n\n@param type expected type\n@param container field container\n@param id entity ID\n@param fixedData fixed data block\n@param varData var data block" ]
[ "Sets the last operation response.\n\n@param response the last operation response.", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Creates a new HTML-formatted label with the given content.\n\n@param html the label content", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "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>", "Close all JDBC objects related to this connection.", "Use this API to update bridgetable.", "Gets the event type from message.\n\n@param message the message\n@return the event type", "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure" ]
public static int[] Concatenate(int[] array, int[] array2) { int[] all = new int[array.length + array2.length]; int idx = 0; //First array for (int i = 0; i < array.length; i++) all[idx++] = array[i]; //Second array for (int i = 0; i < array2.length; i++) all[idx++] = array2[i]; return all; }
[ "Concatenate the arrays.\n\n@param array First array.\n@param array2 Second array.\n@return Concatenate between first and second array." ]
[ "Print a date time value.\n\n@param value date time value\n@return string representation", "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "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.", "Use this API to delete onlinkipv6prefix of given name.", "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", "Adds a new metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer" ]
protected static String ConvertBinaryOperator(int oper) { // Convert the operator into the proper string String oper_string; switch (oper) { default: case EQUAL: oper_string = "="; break; case LIKE: oper_string = "LIKE"; break; case NOT_EQUAL: oper_string = "!="; break; case LESS_THAN: oper_string = "<"; break; case GREATER_THAN: oper_string = ">"; break; case GREATER_EQUAL: oper_string = ">="; break; case LESS_EQUAL: oper_string = "<="; break; } return oper_string; }
[ "Static method to convert a binary operator into a string.\n\n@param oper is the binary comparison operator to be converted" ]
[ "Returns the next index of the argument by decrementing 1 from the possibly parsed number\n\n@param description this String will be searched from the start for a number\n@param defaultIndex this will be returned if the match does not succeed\n@return the parsed index or the defaultIndex", "Converts a boolean array containing the pixel data in BINARY mode to an\ninteger array with the pixel data in RGB mode.\n\n@param binaryArray pixel binary data\n@return pixel integer data in RGB mode.", "Replies the elements of the given map except the pair with the given key.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the map with the content of the map except the key.\n@since 2.15", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "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.", "Creates PollingState from another polling state.\n\n@param other other polling state\n@param result the final result of the LRO\n@param <ResultT> the result that the poll operation produces\n@return the polling state", "Get a scalar value for the DOM diversity using the Robust Tree Edit Distance\n\n@param dom1\n@param dom2\n@return" ]
private List<Row> createWorkPatternAssignmentRowList(String workPatterns) throws ParseException { List<Row> list = new ArrayList<Row>(); String[] patterns = workPatterns.split(",|:"); int index = 1; while (index < patterns.length) { Integer workPattern = Integer.valueOf(patterns[index + 1]); Date startDate = DatatypeConverter.parseBasicTimestamp(patterns[index + 3]); Date endDate = DatatypeConverter.parseBasicTimestamp(patterns[index + 4]); Map<String, Object> map = new HashMap<String, Object>(); map.put("WORK_PATTERN", workPattern); map.put("START_DATE", startDate); map.put("END_DATE", endDate); list.add(new MapRow(map)); index += 5; } return list; }
[ "Extract a list of work pattern assignments.\n\n@param workPatterns string representation of work pattern assignments\n@return list of work pattern assignment rows" ]
[ "This method writes project property data to a JSON file.", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Called to update the cached formats when something changes.", "Tries to close off all the unused assigned connections back to the pool. Assumes that\nthe strategy mode has already been flipped prior to calling this routine.\nCalled whenever our no of connection requests > no of threads.", "Finish initializing the service.", "Returns the timestamp for the time at which the suite finished executing.\nThis is determined by finding the latest end time for each of the individual\ntests in the suite.\n@param suite The suite to find the end time of.\n@return The end time (as a number of milliseconds since 00:00 1st January 1970 UTC).", "Get the response headers for URL, following redirects\n\n@param stringUrl URL to use\n@param followRedirects whether to follow redirects\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return set", "Use this API to fetch all the appfwsignatures resources that are configured on netscaler." ]
private static void bodyWithBuilderAndSeparator( SourceBuilder code, Datatype datatype, Map<Property, PropertyCodeGenerator> generatorsByProperty, String typename) { Variable result = new Variable("result"); Variable separator = new Variable("separator"); code.addLine(" %1$s %2$s = new %1$s(\"%3$s{\");", StringBuilder.class, result, typename); if (generatorsByProperty.size() > 1) { // If there's a single property, we don't actually use the separator variable code.addLine(" %s %s = \"\";", String.class, separator); } Property first = generatorsByProperty.keySet().iterator().next(); Property last = getLast(generatorsByProperty.keySet()); for (Property property : generatorsByProperty.keySet()) { PropertyCodeGenerator generator = generatorsByProperty.get(property); switch (generator.initialState()) { case HAS_DEFAULT: throw new RuntimeException("Internal error: unexpected default field"); case OPTIONAL: code.addLine(" if (%s) {", (Excerpt) generator::addToStringCondition); break; case REQUIRED: code.addLine(" if (!%s.contains(%s.%s)) {", UNSET_PROPERTIES, datatype.getPropertyEnum(), property.getAllCapsName()); break; } code.add(" ").add(result); if (property != first) { code.add(".append(%s)", separator); } code.add(".append(\"%s=\").append(%s)", property.getName(), (Excerpt) generator::addToStringValue); if (property != last) { code.add(";%n %s = \", \"", separator); } code.add(";%n }%n"); } code.addLine(" return %s.append(\"}\").toString();", result); }
[ "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again)." ]
[ "Gets a string attribute from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attribute as a {@link String}, or null if it was not found.", "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return", "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", "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context", "Handles a failed SendData request. This can either be because of the stick actively reporting it\nor because of a time-out of the transaction in the send thread.\n@param originalMessage the original message that was sent", "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method", "Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output", "Propagate onTouchStart events to listeners\n@param hit collision object", "Removes from this set all of its elements that are contained in the specified members array\n@param members the members to remove\n@return the number of members actually removed" ]
private final String getHeader(Map /* String, String */ headers, String name) { return (String) headers.get(name.toLowerCase()); }
[ "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." ]
[ "All tests completed.", "Gets the current Stack. If the stack is not set, a new empty instance is created and set.\n@return", "Returns IMAP formatted String of MessageFlags for named user", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Returns the Euclidean distance between this vector and vector v.\n\n@return distance between this vector and v", "Saves the list of currently displayed favorites.", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id" ]
@Override public <T extends ViewGroup.MarginLayoutParams> T setSelectionMargin(int marginPx, T layoutParams) { return mSelectionGravityState.setSelectionMargin(marginPx, layoutParams); }
[ "dispatch to gravity state" ]
[ "Gathers all parameters' annotations for the given method, starting from the third parameter.", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.\nThis uses nsrollbackcmd_args which is a way to provide additional arguments while fetching the resources.", "Converts the string representation of the days bit field into an integer.\n\n@param days string bit field\n@return integer bit field", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false.", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Cache key calculation.\n@param sql\n@param resultSetType\n@param resultSetConcurrency\n@return cache key", "Adds the task to the specified project, in the optional location\nspecified. If no location arguments are given, the task will be added to\nthe end of the project.\n\n`addProject` can also be used to reorder a task within a project or section that\nalready contains it.\n\nAt most one of `insert_before`, `insert_after`, or `section` should be\nspecified. Inserting into a section in an non-order-dependent way can be\ndone by specifying `section`, otherwise, to insert within a section in a\nparticular place, specify `insert_before` or `insert_after` and a task\nwithin the section to anchor the position of this task.\n\nReturns an empty data block.\n\n@param task The task to add to a project.\n@return Request object" ]
@UiHandler("m_atNumber") void onWeekOfMonthChange(ValueChangeEvent<String> event) { if (handleChange()) { m_controller.setWeekOfMonth(event.getValue()); } }
[ "Handler for week of month changes.\n@param event the change event." ]
[ "Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes", "Convert weekly recurrence days into a bit field.\n\n@param task recurring task\n@return bit field as a string", "Performs a matrix multiplication between inner block matrices.\n\n(m , o) += (m , n) * (n , o)", "Determine if a CharSequence can be parsed as a BigInteger.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigInteger(String)\n@since 1.8.2", "Returns the compact tag records for all tags in the workspace.\n\n@param workspace The workspace or organization to find tags in.\n@return Request object", "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "Stop finding waveforms for all active players.", "Use this API to update responderpolicy.", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix." ]
public void addPartialFieldAssignment( SourceBuilder code, Excerpt finalField, String builder) { addFinalFieldAssignment(code, finalField, builder); }
[ "Add the final assignment of the property to the partial value object's source code." ]
[ "Notifies that a content item is removed.\n\n@param position the position.", "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which also requires that\nyou are using one of the standard player numbers, 1-4.\n\n@param send if {@code true} we will send status packets, and can participate in (and control) tempo and beat sync\n\n@throws IllegalStateException if the virtual CDJ is not running, or if it is not using a device number in the\nrange 1 through 4\n@throws IOException if there is a problem starting the {@link BeatFinder}", "Record operation for sync ops time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param opTimeUs The number of us for the op to finish", "Determines if entry is accepted. For normal usage, this means confirming that the key is\nneeded. For orphan usage, this simply means confirming the key belongs to the node.\n\n@param key\n@return true iff entry is accepted.", "Parses a reflection modifier to a list of string\n\n@param modifiers The modifier to parse\n@return The resulting string list", "This essentially ensures that we only store a single Vertex for each unique \"Set\" of tags.", "Initializes the type and validates it", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name ." ]
private Event createEvent(Endpoint endpoint, EventTypeEnum type) { Event event = new Event(); MessageInfo messageInfo = new MessageInfo(); Originator originator = new Originator(); event.setMessageInfo(messageInfo); event.setOriginator(originator); Date date = new Date(); event.setTimestamp(date); event.setEventType(type); messageInfo.setPortType( endpoint.getBinding().getBindingInfo().getService().getInterface().getName().toString()); String transportType = null; if (endpoint.getBinding() instanceof SoapBinding) { SoapBinding soapBinding = (SoapBinding)endpoint.getBinding(); if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) { SoapBindingInfo soapBindingInfo = (SoapBindingInfo)soapBinding.getBindingInfo(); transportType = soapBindingInfo.getTransportURI(); } } messageInfo.setTransportType((transportType != null) ? transportType : "Unknown transport type"); originator.setProcessId(Converter.getPID()); try { InetAddress inetAddress = InetAddress.getLocalHost(); originator.setIp(inetAddress.getHostAddress()); originator.setHostname(inetAddress.getHostName()); } catch (UnknownHostException e) { originator.setHostname("Unknown hostname"); originator.setIp("Unknown ip address"); } String address = endpoint.getEndpointInfo().getAddress(); event.getCustomInfo().put("address", address); return event; }
[ "Creates the event for endpoint with specific type.\n\n@param endpoint the endpoint\n@param type the type\n@return the event" ]
[ "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "Returns a reasonable timeout duration for a watch request.\n\n@param expectedTimeoutMillis timeout duration that a user wants to use, in milliseconds\n@param bufferMillis buffer duration which needs to be added, in milliseconds\n@return timeout duration in milliseconds, between the specified {@code bufferMillis} and\nthe {@link #MAX_MILLIS}.", "Retrieves all of the headers from the servlet request and sets them on\nthe proxy request\n\n@param httpServletRequest The request object representing the client's request to the\nservlet engine\n@param httpMethodProxyRequest The request that we are about to send to the proxy host", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "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", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "Get the element at the index as a json object.\n\n@param i the index of the object to access", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects" ]
public static float noise2(float x, float y) { int bx0, bx1, by0, by1, b00, b10, b01, b11; float rx0, rx1, ry0, ry1, q[], sx, sy, a, b, t, u, v; int i, j; if (start) { start = false; init(); } t = x + N; bx0 = ((int)t) & BM; bx1 = (bx0+1) & BM; rx0 = t - (int)t; rx1 = rx0 - 1.0f; t = y + N; by0 = ((int)t) & BM; by1 = (by0+1) & BM; ry0 = t - (int)t; ry1 = ry0 - 1.0f; i = p[bx0]; j = p[bx1]; b00 = p[i + by0]; b10 = p[j + by0]; b01 = p[i + by1]; b11 = p[j + by1]; sx = sCurve(rx0); sy = sCurve(ry0); q = g2[b00]; u = rx0 * q[0] + ry0 * q[1]; q = g2[b10]; v = rx1 * q[0] + ry0 * q[1]; a = lerp(sx, u, v); q = g2[b01]; u = rx0 * q[0] + ry1 * q[1]; q = g2[b11]; v = rx1 * q[0] + ry1 * q[1]; b = lerp(sx, u, v); return 1.5f*lerp(sy, a, b); }
[ "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)" ]
[ "Callback when each frame in the indicator animation should be drawn.", "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the upper limit of the interval.\n@return Solr compatible query string.", "Generate a string with all selected checkboxes separated with ','.\n\n@return a string with all selected checkboxes", "Handles the change of a value in the current translation.\n@param propertyId the property id of the column where the value has changed.", "Generates the InputValue for the form input by inspecting the current\nvalue of the corresponding WebElement on the DOM.\n\n@return The current InputValue for the element on the DOM.", "Process the requestJsonAttributes using the attributes and the MapfishParser and add all resulting\nvalues to this values object.\n\n@param template the template of the current request.\n@param attributes the attributes that will be used to add values to this values object\n@param requestJsonAttributes the json data for populating the attribute values", "Creates a clone of the current automatonEng instance for\niteration alternative purposes.\n@return", "Returns a string that should be used as a label for the given property.\n\n@param propertyIdValue\nthe property to label\n@return the label", "Get the list of build numbers that are to be kept forever." ]
public static byte numberOfBytesRequired(long number) { if(number < 0) number = -number; for(byte i = 1; i <= SIZE_OF_LONG; i++) if(number < (1L << (8 * i))) return i; throw new IllegalStateException("Should never happen."); }
[ "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)" ]
[ "Stops the current debug server. Active connections are\nnot affected.", "Checks if a newly created action wants to write output to stdout, and\nlogs a warning if other actions are doing the same.\n\n@param newAction\nthe new action to be checked", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes", "Retrieves all of the headers from the servlet request and sets them on\nthe proxy request\n\n@param httpServletRequest The request object representing the client's request to the\nservlet engine\n@param httpMethodProxyRequest The request that we are about to send to the proxy host", "Creates a new Table instance from data extracted from an MPP file.\n\n@param file parent project file\n@param data fixed data\n@param varMeta var meta\n@param varData var data\n@return Table instance", "This method writes project extended attribute data into an MSPDI file.\n\n@param project Root node of the MSPDI file", "Go through all nodes and determine how many partition Ids each node\nhosts.\n\n@param cluster\n@return map of nodeId to number of primary partitions hosted on node.", "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred.", "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files." ]
private InputStream getErrorStream() { InputStream errorStream = this.connection.getErrorStream(); if (errorStream != null) { final String contentEncoding = this.connection.getContentEncoding(); if (contentEncoding != null && contentEncoding.equalsIgnoreCase("gzip")) { try { errorStream = new GZIPInputStream(errorStream); } catch (IOException e) { // just return the error stream as is } } } return errorStream; }
[ "Returns the response error stream, handling the case when it contains gzipped data.\n@return gzip decoded (if needed) error stream or null" ]
[ "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "Notifies that a footer item is inserted.\n\n@param position the position of the content item.", "Post-configure retreival of server engine.", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by applying a key function to each element which yields a comparable criteria.\n\n@param iterable\nthe elements to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see #sort(Iterable)\n@see #sort(Iterable, Comparator)\n@see ListExtensions#sortInplaceBy(List, org.eclipse.xtext.xbase.lib.Functions.Function1)", "Returns the cost rate table index for this assignment.\n\n@return cost rate table index", "Use this API to add authenticationradiusaction resources.", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet" ]
public static <E extends Enum<E>> EnumStringConverter<E> create(Class<E> enumType) { return new EnumStringConverter<E>(enumType); }
[ "Factory method to create EnumStringConverter\n\n@param <E>\nenum type inferred from enumType parameter\n@param enumType\nparticular enum class\n@return instance of EnumConverter" ]
[ "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules", "Notifies all interested subscribers of the given revision.\n\n@param mwRevision\nthe given revision\n@param isCurrent\ntrue if this is guaranteed to be the most current revision", "Append Join for SQL92 Syntax without parentheses", "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)", "Adds a new point.\n\n@param point a point\n@return this for chaining", "Get a handler based on its class\n@param clazz The class of the Handler to return.\nIf multiple Handlers exist, the first one is returned.\n@param <E> The class of the handler to return.\n@return The handler matching the class name.", "Disconnects from the serial interface and stops\nsend and receive threads.", "Replaces the first 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 CharSequence to be substituted for each match\n@return a CharSequence with replaced content\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceFirst(String, String)\n@since 1.8.2", "Add the deployment scanner service to a batch.\n\n@param context context for the operation that is adding this service\n@param resourceAddress the address of the resource that manages the service\n@param relativeTo the relative to\n@param path the path\n@param scanInterval the scan interval\n@param unit the unit of {@code scanInterval}\n@param autoDeployZip whether zipped content should be auto-deployed\n@param autoDeployExploded whether exploded content should be auto-deployed\n@param autoDeployXml whether xml content should be auto-deployed\n@param scanEnabled scan enabled\n@param deploymentTimeout the deployment timeout\n@param rollbackOnRuntimeFailure rollback on runtime failures\n@param bootTimeService the deployment scanner used in the boot time scan\n@param scheduledExecutorService executor to use for asynchronous tasks\n@return the controller for the deployment scanner service" ]
private void processWorkWeekDay(byte[] data, int offset, ProjectCalendarWeek week, Day day) { //System.out.println(ByteArrayHelper.hexdump(data, offset, 60, false)); int dayType = MPPUtility.getShort(data, offset + 0); if (dayType == 1) { week.setWorkingDay(day, DayType.DEFAULT); } else { ProjectCalendarHours hours = week.addCalendarHours(day); int rangeCount = MPPUtility.getShort(data, offset + 2); if (rangeCount == 0) { week.setWorkingDay(day, DayType.NON_WORKING); } else { week.setWorkingDay(day, DayType.WORKING); Calendar cal = DateHelper.popCalendar(); for (int index = 0; index < rangeCount; index++) { Date startTime = DateHelper.getCanonicalTime(MPPUtility.getTime(data, offset + 8 + (index * 2))); int durationInSeconds = MPPUtility.getInt(data, offset + 20 + (index * 4)) * 6; cal.setTime(startTime); cal.add(Calendar.SECOND, durationInSeconds); Date finishTime = DateHelper.getCanonicalTime(cal.getTime()); hours.addRange(new DateRange(startTime, finishTime)); } DateHelper.pushCalendar(cal); } } }
[ "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day" ]
[ "Moves the given row down.\n\n@param row the row to move", "Runs the example program.\n\n@param args\n@throws IOException\nif there was a problem in writing the output file", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day", "Convert a field value to something suitable to be stored in the database.", "makes object obj persistent to the Objectcache under the key oid.", "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association", "validates operation against the definition and sets model for the parameters passed.\n\n@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request\n@param model model node in which the value should be stored\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release" ]
public ProjectCalendar addResourceCalendar() throws MPXJException { if (getResourceCalendar() != null) { throw new MPXJException(MPXJException.MAXIMUM_RECORDS); } ProjectCalendar calendar = new ProjectCalendar(getParentFile()); setResourceCalendar(calendar); return calendar; }
[ "This method allows a resource calendar to be added to a resource.\n\n@return ResourceCalendar\n@throws MPXJException if more than one calendar is added" ]
[ "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source", "Ordinary noise function.\n\n@param x X Value.\n@param y Y Value.\n@return", "Find the number of Strings matched to the given Matcher.\n\n@param matcher a Matcher\n@return int the number of Strings matched to the given matcher.\n@since 1.0", "Attach a metadata cache file to a particular player media slot, so the cache will be used instead of querying\nthe player for metadata. This supports operation with metadata during shows where DJs are using all four player\nnumbers and heavily cross-linking between them.\n\nIf the media is ejected from that player slot, the cache will be detached.\n\n@param slot the media slot to which a meta data cache is to be attached\n@param file the metadata cache to be attached\n\n@throws IOException if there is a problem reading the cache file\n@throws IllegalArgumentException if an invalid player number or slot is supplied\n@throws IllegalStateException if the metadata finder is not running", "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Add an appliable \"post-run\" dependent for this task item.\n\n@param appliable the appliable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated \"post-run\" dependent", "Flush the in-memory data to the file", "In case we cannot delete a directory create a marker to recheck whether we can garbage collect some not\nreferenced directories and files.\n\n@param file the directory", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name." ]
public Bundler put(String key, String[] value) { delegate.putStringArray(key, value); return this; }
[ "Inserts a String array value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String array object, or null\n@return this bundler instance to chain method calls" ]
[ "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2", "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly.", "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.", "Create the close button UI Component.\n@return the close button.", "flush all messages to disk\n\n@param force flush anyway(ignore flush interval)", "Resolves the path relative to the parent and normalizes it.\n\n@param parent the parent path\n@param path the path\n\n@return the normalized path", "Sets the debug JPDA remote socket debugging argument.\n\n@param suspend {@code true} to suspend otherwise {@code false}\n@param port the port to listen on\n\n@return the builder", "Abort an upload session, discarding any chunks that were uploaded to it." ]
public int addServerGroup(String groupName, int profileId) throws Exception { int groupId = -1; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement("INSERT INTO " + Constants.DB_TABLE_SERVER_GROUPS + "(" + Constants.GENERIC_NAME + "," + Constants.GENERIC_PROFILE_ID + ")" + " VALUES (?, ?);", PreparedStatement.RETURN_GENERATED_KEYS); statement.setString(1, groupName); statement.setInt(2, profileId); statement.executeUpdate(); results = statement.getGeneratedKeys(); if (results.next()) { groupId = results.getInt(1); } else { // something went wrong throw new Exception("Could not add group"); } } catch (SQLException e) { e.printStackTrace(); } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return groupId; }
[ "Add a new server group\n\n@param groupName name of the group\n@param profileId ID of associated profile\n@return id of server group\n@throws Exception" ]
[ "Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries.", "Obtains a British Cutover local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Returns an empty model of a Dependency in Json\n\n@return String\n@throws IOException", "overridden in ipv6 to handle zone", "Checks whether the compilation has been canceled and reports the given progress to the compiler progress.", "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "Transforms an input file into HTML.\n\n@param file\nThe File to process.\n@param safeMode\nSet to <code>true</code> to escape unsafe HTML tags.\n@return The processed String.\n@throws IOException\nif an IO error occurs\n@see Configuration#DEFAULT", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add" ]
@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" ]
[ "Sets the bottom padding for all cells in the table.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "A GString variant of the equivalent GString method.\n\n@param self the original GString\n@param condition the closure that must evaluate to true to continue taking elements\n@return a prefix of elements in the GString where each\nelement passed to the given closure evaluates to true\n@since 2.3.7", "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.", "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q.", "Get the property name of a method name. For example the property name of\nsetSomeValue would be someValue. Names not beginning with set or get are\nnot changed.\n\n@param name The name to process\n@return The property name", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "Writes all data that was collected about classes to a json file." ]
private void addDirectSubTypes(XClass type, ArrayList subTypes) { if (type.isInterface()) { if (type.getExtendingInterfaces() != null) { subTypes.addAll(type.getExtendingInterfaces()); } // we have to traverse the implementing classes as these array contains all classes that // implement the interface, not only those who have an "implement" declaration // note that for whatever reason the declared interfaces are not exported via the XClass interface // so we have to get them via the underlying class which is hopefully a subclass of AbstractClass if (type.getImplementingClasses() != null) { Collection declaredInterfaces = null; XClass subType; for (Iterator it = type.getImplementingClasses().iterator(); it.hasNext(); ) { subType = (XClass)it.next(); if (subType instanceof AbstractClass) { declaredInterfaces = ((AbstractClass)subType).getDeclaredInterfaces(); if ((declaredInterfaces != null) && declaredInterfaces.contains(type)) { subTypes.add(subType); } } else { // Otherwise we have to live with the bug subTypes.add(subType); } } } } else { subTypes.addAll(type.getDirectSubclasses()); } }
[ "Adds all direct subtypes to the given list.\n\n@param type The type for which to determine the direct subtypes\n@param subTypes The list to receive the subtypes" ]
[ "Compares two fields given by their names.\n\n@param objA The name of the first field\n@param objB The name of the second field\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Returns this bar code's pattern, converted into a set of corresponding codewords.\nUseful for bar codes that encode their content as a pattern.\n\n@param size the number of digits in each codeword\n@return this bar code's pattern, converted into a set of corresponding codewords", "Reads Phoenix resource assignments.\n\n@param mpxjResource MPXJ resource\n@param res Phoenix resource", "Enable a host\n\n@param hostName\n@throws Exception", "Handles the response of the getVersion request.\n@param incomingMessage the response message to process.", "Sets the specified range of elements in the specified array to the specified value.\n\n@param from the index of the first element (inclusive) to be filled with the specified value.\n@param to the index of the last element (inclusive) to be filled with the specified value.\n@param val the value to be stored in the specified elements of the receiver.", "This is a convenience method used to add a calendar called\n\"Standard\" to the project, and populate it with a default working week\nand default working hours.\n\n@return a new default calendar", "Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit.", "Returns the active logged in user." ]
public ScopedToken getLowerScopedToken(List<String> scopes, String resource) { assert (scopes != null); assert (scopes.size() > 0); URL url = null; try { url = new URL(this.getTokenURL()); } catch (MalformedURLException e) { assert false : "An invalid refresh URL indicates a bug in the SDK."; throw new RuntimeException("An invalid refresh URL indicates a bug in the SDK.", e); } StringBuilder spaceSeparatedScopes = new StringBuilder(); for (int i = 0; i < scopes.size(); i++) { spaceSeparatedScopes.append(scopes.get(i)); if (i < scopes.size() - 1) { spaceSeparatedScopes.append(" "); } } String urlParameters = null; if (resource != null) { //this.getAccessToken() ensures we have a valid access token urlParameters = String.format("grant_type=urn:ietf:params:oauth:grant-type:token-exchange" + "&subject_token_type=urn:ietf:params:oauth:token-type:access_token&subject_token=%s" + "&scope=%s&resource=%s", this.getAccessToken(), spaceSeparatedScopes, resource); } else { //this.getAccessToken() ensures we have a valid access token urlParameters = String.format("grant_type=urn:ietf:params:oauth:grant-type:token-exchange" + "&subject_token_type=urn:ietf:params:oauth:token-type:access_token&subject_token=%s" + "&scope=%s", this.getAccessToken(), spaceSeparatedScopes); } BoxAPIRequest request = new BoxAPIRequest(this, url, "POST"); request.shouldAuthenticate(false); request.setBody(urlParameters); String json; try { BoxJSONResponse response = (BoxJSONResponse) request.send(); json = response.getJSON(); } catch (BoxAPIException e) { this.notifyError(e); throw e; } JsonObject jsonObject = JsonObject.readFrom(json); ScopedToken token = new ScopedToken(jsonObject); token.setObtainedAt(System.currentTimeMillis()); token.setExpiresIn(jsonObject.get("expires_in").asLong() * 1000); return token; }
[ "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@param resource the resource for which the new token has to be obtained\n@return scopedToken which has access token and other details" ]
[ "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Use this API to fetch authenticationradiuspolicy_vpnglobal_binding resources of given name .", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "Replace HTML entities\n@param content Content\n@param map Map\n@return Replaced content", "The % Work Complete field contains the current status of a task,\nexpressed as the percentage of the task's work that has been completed.\nYou can enter percent work complete, or you can have Microsoft Project\ncalculate it for you based on actual work on the task.\n\n@return percentage as float", "Returns the compact records for all sections in the specified project.\n\n@param project The project to get sections from.\n@return Request object", "Go through all partition IDs and determine which node is \"first\" in the\nreplicating node list for every zone. This determines the number of\n\"zone primaries\" each node hosts.\n\n@return map of nodeId to number of zone-primaries hosted on node.", "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", "Look at the comments on cluster variable to see why this is problematic" ]
public static String parseString(String value) { if (value != null) { // Strip angle brackets if present if (!value.isEmpty() && value.charAt(0) == '<') { value = value.substring(1, value.length() - 1); } // Strip quotes if present if (!value.isEmpty() && value.charAt(0) == '"') { value = value.substring(1, value.length() - 1); } } return value; }
[ "Parse a string.\n\n@param value string representation\n@return String value" ]
[ "Delivers the correct JSON Object for the Bounds\n\n@param bounds\n@throws org.json.JSONException", "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map", "Use this API to delete appfwlearningdata.", "Create an Product delivery\n\n@throws AuthenticationException, GrapesCommunicationException, IOException", "Reads any exceptions present in the file. This is only used in MSPDI\nfile versions saved by Project 2007 and later.\n\n@param calendar XML calendar\n@param bc MPXJ calendar", "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "Use this API to fetch all the systemcollectionparam resources that are configured on netscaler.", "Print a timestamp value.\n\n@param value time value\n@return time value", "Converts the Conditionals into real headers.\n@return real headers." ]
public Collection getAllObjects(Class target) { PersistenceBroker broker = getBroker(); Collection result; try { Query q = new QueryByCriteria(target); result = broker.getCollectionByQuery(q); } finally { if (broker != null) broker.close(); } return result; }
[ "Return all objects for the given class." ]
[ "Set the specular intensity of the light.\n\nThis designates the color of the specular reflection.\nIt is multiplied by the material specular color to derive\nthe hue of the specular reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code specular_intensity} to control the specular intensity.\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)", "Determines whether there is an element of the collection that evaluates to true\nfor the predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tTrue if there is an element of the collection that evaluates to true\nfor the predicate, otherwise false.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int", "Build the Criteria using multiple ORs\n@param ids collection of identities\n@param fields\n@return Criteria", "Serializes descriptor instance to XML\n@param descriptor descriptor to be serialized\n@return xml representation of descriptor as string", "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources.", "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources.", "Constructs a new FastEvent instance\n@param type the event type\n@param manager the bean manager\n@param notifier the notifier to be used for observer method resolution\n@param qualifiers the event qualifiers\n@return", "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails." ]
private String formatPriority(Priority value) { String result = null; if (value != null) { String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES); int priority = value.getValue(); if (priority < Priority.LOWEST) { priority = Priority.LOWEST; } else { if (priority > Priority.DO_NOT_LEVEL) { priority = Priority.DO_NOT_LEVEL; } } priority /= 100; result = priorityTypes[priority - 1]; } return (result); }
[ "This method is called to format a priority.\n\n@param value priority instance\n@return formatted priority value" ]
[ "Wrap getOperationStatus to avoid throwing exception over JMX", "The quick way to detect for a tier of devices.\nThis method detects for devices which can\ndisplay iPhone-optimized web content.\nIncludes iPhone, iPod Touch, Android, Windows Phone 7 and 8, BB10, WebOS, Playstation Vita, etc.\n@return detection of any device in the iPhone/Android/Windows Phone/BlackBerry/WebOS Tier", "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations.", "Skips the stream over the specified number of bytes, adding the skipped\namount to the count.\n\n@param length the number of bytes to skip\n@return the actual number of bytes skipped\n@throws java.io.IOException if an I/O error occurs\n@see java.io.InputStream#skip(long)", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "This solution is based on an absolute path", "Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subclass\nGVRShaderTemplate to create your own shader templates.\n\n@param shaderClass shader class to find (subclass of GVRShader)\n@return GVRShaderId associated with that shader template\n@see GVRShaderTemplate GVRShader", "Get the group URL for the specified group ID\n\n@param groupId\nThe group ID\n@return The group URL\n@throws FlickrException", "Return true if c has a @hidden tag associated with it" ]
public BoxFile.Info commit(String digest, List<BoxFileUploadSessionPart> parts, Map<String, String> attributes, String ifMatch, String ifNoneMatch) { URL commitURL = this.sessionInfo.getSessionEndpoints().getCommitEndpoint(); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), commitURL, HttpMethod.POST); request.addHeader(HttpHeaders.DIGEST, DIGEST_HEADER_PREFIX_SHA + digest); request.addHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON); if (ifMatch != null) { request.addHeader(HttpHeaders.IF_MATCH, ifMatch); } if (ifNoneMatch != null) { request.addHeader(HttpHeaders.IF_NONE_MATCH, ifNoneMatch); } //Creates the body of the request String body = this.getCommitBody(parts, attributes); request.setBody(body); BoxAPIResponse response = request.send(); //Retry the commit operation after the given number of seconds if the HTTP response code is 202. if (response.getResponseCode() == 202) { String retryInterval = response.getHeaderField("retry-after"); if (retryInterval != null) { try { Thread.sleep(new Integer(retryInterval) * 1000); } catch (InterruptedException ie) { throw new BoxAPIException("Commit retry failed. ", ie); } return this.commit(digest, parts, attributes, ifMatch, ifNoneMatch); } } if (response instanceof BoxJSONResponse) { //Create the file instance from the response return this.getFile((BoxJSONResponse) response); } else { throw new BoxAPIException("Commit response content type is not application/json. The response code : " + response.getResponseCode()); } }
[ "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ifMatch ensures that your app only alters files/folders on Box if you have the current version.\n@param ifNoneMatch ensure that it retrieve unnecessary data if the most current version of file is on-hand.\n@return the created file instance." ]
[ "Add an additional binary type", "Returns the value of a property of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Get a property of type java.util.Properties or return the default if\nno such property is defined\n@param props properties\n@param name the key\n@param defaultProperties default property if empty\n@return value from the property", "Return true if the Declaration can be linked to the ImporterService.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService\n@return true if the Declaration can be linked to the ImporterService", "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "For internal use, don't call the public API internally", "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Standard doclet entry point\n@param root\n@return", "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)" ]
public StackTraceElement[] asStackTrace() { int i = 1; StackTraceElement[] list = new StackTraceElement[this.size()]; for (Eventable e : this) { list[this.size() - i] = new StackTraceElement(e.getEventType().toString(), e.getIdentification() .toString(), e.getElement().toString(), i); i++; } return list; }
[ "Build a stack trace for this path. This can be used in generating more meaningful exceptions\nwhile using Crawljax in conjunction with JUnit for example.\n\n@return a array of StackTraceElements denoting the steps taken by this path. The first\nelement [0] denotes the last {@link Eventable} on this path while the last item\ndenotes the first {@link Eventable} executed." ]
[ "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Writes assignment baseline data.\n\n@param xml MSPDI assignment\n@param mpxj MPXJ assignment", "Create a list out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a list.\n@return A list consisting of the items of the Iterable, in the same order.", "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?", "Gets the string describing the uniforms used by shaders of this type.\n@param ctx GVFContext shader is associated with\n@return uniform descriptor string\n@see #getTemplate(GVRContext) GVRShader#getUniformDescriptor()", "Adds special accessors for private constants so that inner classes can retrieve them.", "Return a String of length a minimum of totalChars characters by\npadding the input String str at the right end with spaces.\nIf str is already longer\nthan totalChars, it is returned unchanged.", "Creates a curator built using the given zookeeper connection string and timeout" ]
public static List<String> getValueList(List<String> valuePairs, String delim) { List<String> valueList = Lists.newArrayList(); for(String valuePair: valuePairs) { String[] value = valuePair.split(delim, 2); if(value.length != 2) throw new VoldemortException("Invalid argument pair: " + valuePair); valueList.add(value[0]); valueList.add(value[1]); } return valueList; }
[ "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"]." ]
[ "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Create a container in the platform\n\n@param container\nThe name of the container", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\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", "Assign a new value to this field.\n@param numStrings - number of strings\n@param newValues - the new strings", "Checks if the selected template context is \"templatemapper\".\n\n@param request the current request\n@return true if the selected template context is \"templatemapper\"", "Port forward missing module changes for each layer.\n\n@param patch the current patch\n@param context the patch context\n@throws PatchingException\n@throws IOException\n@throws XMLStreamException", "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "Adjust the date according to the whole day options.\n\n@param date the date to adjust.\n@param isEnd flag, indicating if the date is the end of the event (in contrast to the beginning)\n\n@return the adjusted date, which will be exactly the beginning or the end of the provide date's day.", "Add a shutdown listener, which gets called when all requests completed on shutdown.\n\n@param listener the shutdown listener" ]
public static void dumpTexCoords(AiMesh mesh, int coords) { if (!mesh.hasTexCoords(coords)) { System.out.println("mesh has no texture coordinate set " + coords); return; } for (int i = 0; i < mesh.getNumVertices(); i++) { int numComponents = mesh.getNumUVComponents(coords); System.out.print("[" + mesh.getTexCoordU(i, coords)); if (numComponents > 1) { System.out.print(", " + mesh.getTexCoordV(i, coords)); } if (numComponents > 2) { System.out.print(", " + mesh.getTexCoordW(i, coords)); } System.out.println("]"); } }
[ "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates" ]
[ "Scale all widgets in Main Scene hierarchy\n@param scale", "Constraint that ensures that the field has a length if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Set the depth of the cursor.\nThis is the length of the ray from the origin\nto the cursor.\n@param depth default cursor depth", "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color", "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations.", "Compute Cholesky decomposition of A\n\n@param A symmetric, positive definite matrix (only upper half is used)\n@return upper triangular matrix U such that A = U' * U", "Utils for making collections out of arrays of primitive types.", "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "Adds the file to the tar archive represented by output stream. It's caller's responsibility to close output stream\nproperly.\n\n@param out target archive.\n@param source file to be added.\n@param fileSize size of the file (which is known in most cases).\n@throws IOException in case of any issues with underlying store." ]
protected void mergeHardcodedResultsFrom(Configuration otherConfiguration) { Map<Dotted, AnalysisResult> resultsMap = hardcodedResults.build().stream() .collect(Collectors.toMap(r -> r.className, r -> r)); resultsMap.putAll(otherConfiguration.hardcodedResults()); hardcodedResults = ImmutableSet.<AnalysisResult>builder().addAll(resultsMap.values()); }
[ "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a class 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 #mergeHardcodedResultsFrom(Configuration)}.\n\n@param otherConfiguration - Configuration to merge hardcoded results with." ]
[ "Fetch JSON from RAW resource\n\n@param context Context\n@param resource Resource int of the RAW file\n@return JSON", "Type-safe wrapper around setVariable which sets only one framed vertex.", "Use this API to fetch sslcertkey resource of given name .", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Use this API to fetch clusterinstance resource of given name .", "Set the background color.\n\nIf you don't set the background color, the default is an opaque black:\n{@link Color#BLACK}, 0xff000000.\n\n@param color\nAn Android 32-bit (ARGB) {@link Color}, such as you get from\n{@link Resources#getColor(int)}", "Convert a given date to a floating point date using a given reference date.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param date The given date to be associated with the return value \\( T \\).\n@return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.", "Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.", "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)" ]
public static boolean isRegularQueue(final Jedis jedis, final String key) { return LIST.equalsIgnoreCase(jedis.type(key)); }
[ "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" ]
[ "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "Creates new legal hold policy assignment.\n@param api the API connection to be used by the resource.\n@param policyID ID of policy to create assignment for.\n@param resourceType type of target resource. Can be 'file_version', 'file', 'folder', or 'user'.\n@param resourceID ID of the target resource.\n@return info about created legal hold policy assignment.", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Return the \"common\" configuration set name. By default it is \"common\"\n@return the \"common\" conf set name", "Returns the complete property list of a class\n@param c the class\n@return the property list of the class", "Gets all checked widgets in the group\n@return list of checked widgets", "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).", "Most complete output", "Ensure that the given connection is established.\n\n@param jedis\na connection to Redis\n@return true if the supplied connection was already connected" ]
private boolean removeRelation(List<Relation> relationList, Task targetTask, RelationType type, Duration lag) { boolean matchFound = false; for (Relation relation : relationList) { if (relation.getTargetTask() == targetTask) { if (relation.getType() == type && relation.getLag().compareTo(lag) == 0) { matchFound = relationList.remove(relation); break; } } } return matchFound; }
[ "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed" ]
[ "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.", "Adds the supplied marker to the map.\n\n@param marker", "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "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.", "Try to get a system property for obsolete keys. The value is automatically converted - a runtime exception may be thrown during conversion.\n\n@return all the properties whose system property keys were different in previous versions", "Returns the RPC service for serial dates.\n@return the RPC service for serial dates.", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Attaches an arbitrary object to this context only if the object was not already attached. If a value has already\nbeen attached with the key provided, the current value associated with the key is returned.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value." ]
WaveformPreview getWaveformPreview(int rekordboxId, SlotReference slot, Client client) throws IOException { final NumberField idField = new NumberField(rekordboxId); // First try to get the NXS2-style color waveform if we are supposed to. if (preferColor.get()) { try { Message response = client.simpleRequest(Message.KnownType.ANLZ_TAG_REQ, Message.KnownType.ANLZ_TAG, client.buildRMST(Message.MenuIdentifier.MAIN_MENU, slot.slot), idField, new NumberField(Message.ANLZ_FILE_TAG_COLOR_WAVEFORM_PREVIEW), new NumberField(Message.ALNZ_FILE_TYPE_EXT)); return new WaveformPreview(new DataReference(slot, rekordboxId), response); } catch (Exception e) { logger.info("No color waveform preview available for slot " + slot + ", id " + rekordboxId + "; requesting blue version.", e); } } Message response = client.simpleRequest(Message.KnownType.WAVE_PREVIEW_REQ, Message.KnownType.WAVE_PREVIEW, client.buildRMST(Message.MenuIdentifier.DATA, slot.slot), NumberField.WORD_1, idField, NumberField.WORD_0); return new WaveformPreview(new DataReference(slot, rekordboxId), response); }
[ "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem" ]
[ "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents", "get bearer token returned by IAM in JSON format", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Start the first inner table of a class.", "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Returns the data sources belonging to a particular group of data\nsources. Data sources are grouped in record linkage mode, but not\nin deduplication mode, so only use this method in record linkage\nmode.", "Arrange to become the tempo master. Starts a sequence of interactions with the other players that should end\nup with us in charge of the group tempo and beat alignment.\n\n@throws IllegalStateException if we are not sending status updates\n@throws IOException if there is a problem sending the master yield request", "Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException" ]
@SuppressWarnings("unchecked") public <T extends TermedStatementDocument> T updateTermsStatements(T currentDocument, List<MonolingualTextValue> addLabels, List<MonolingualTextValue> addDescriptions, List<MonolingualTextValue> addAliases, List<MonolingualTextValue> deleteAliases, List<Statement> addStatements, List<Statement> deleteStatements, String summary) throws MediaWikiApiErrorException, IOException { TermStatementUpdate termStatementUpdate = new TermStatementUpdate( currentDocument, addStatements, deleteStatements, addLabels, addDescriptions, addAliases, deleteAliases); termStatementUpdate.setGuidGenerator(guidGenerator); return (T) termStatementUpdate.performEdit(wbEditingAction, editAsBot, summary); }
[ "Updates the terms and statements of the current document.\nThe updates are computed with respect to the current data in the document,\nmaking sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param currentDocument\nthe document to be updated; needs to have a correct revision id and\nentity id\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
[ "Set the replace of the uri and return the new URI.\n\n@param initialUri the starting URI, the URI to update\n@param path the path to set on the baeURI", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise.", "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", "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class.", "Casts a ray into the scene graph, and returns the objects it intersects.\n\nThe ray is defined by its origin {@code [ox, oy, oz]} and its direction\n{@code [dx, dy, dz]}.\n\n<p>\nThe ray origin may be [0, 0, 0] and the direction components should be\nnormalized from -1 to 1: Note that the y direction runs from -1 at the\nbottom to 1 at the top. To construct a picking ray originating at the\nuser's head and pointing into the scene along the camera lookat vector,\npass in 0, 0, 0 for the origin and 0, 0, -1 for the direction.\n\n<p>\nThis method is thread safe because it guarantees that only\none thread at a time is doing a ray cast into a particular scene graph,\nand it extracts the hit data during within its synchronized block. You\ncan then examine the return list without worrying about another thread\ncorrupting your hit data.\n<p>\nDepending on the type of collider, that the hit location may not be exactly\nwhere the ray would intersect the scene object itself. Rather, it is\nwhere the ray intersects the collision geometry associated with the collider.\n\n@param scene\nThe {@link GVRScene} with all the objects to be tested.\n\n@param ox\nThe x coordinate of the ray origin.\n\n@param oy\nThe y coordinate of the ray origin.\n\n@param oz\nThe z coordinate of the ray origin.\n\n@param dx\nThe x vector of the ray direction.\n\n@param dy\nThe y vector of the ray direction.\n\n@param dz\nThe z vector of the ray direction.\n@return A list of {@link GVRPickedObject}, sorted by distance from the\ncamera rig. Each {@link GVRPickedObject} contains the scene object\nwhich owns the {@link GVRCollider} along with the hit\nlocation and distance from the camera.\n\n@since 1.6.6", "should not be public", "Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value", "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException", "Sets the HTML entity translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining" ]
final void waitForSizeQueue(final int queueSize) { synchronized (this.queue) { while (this.queue.size() > queueSize) { try { this.queue.wait(250L); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } try { Thread.sleep(500L); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } this.queue.notifyAll(); } }
[ "For test purposes only." ]
[ "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param msdeval Evaluates the mean squared displacment", "alias of setColorUnpressed", "Clears the handler hierarchy.", "Use this API to fetch service_dospolicy_binding resources of given name .", "Get a collection of methods declared on this object by method name and parameter count.\n\n@param name the name of the method\n@param paramCount the number of parameters\n@return the (possibly empty) collection of methods with the given name and parameter count", "Get the scale at the given index.\n\n@param index the index of the zoom level to access.\n@param unit the unit.", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name.", "Helper method for formatting connection termination messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@param terminationReason\nThe reason for terminating the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt; - &lt;terminationReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG -\nterminated by remote host.", "used to signal to the server that the client is going to drop the connection, and waits up to\none second for the server to acknowledge the receipt of this message" ]
public void addValue(double value) { if (dataSetSize == dataSet.length) { // Increase the capacity of the array. int newLength = (int) (GROWTH_RATE * dataSetSize); double[] newDataSet = new double[newLength]; System.arraycopy(dataSet, 0, newDataSet, 0, dataSetSize); dataSet = newDataSet; } dataSet[dataSetSize] = value; updateStatsWithNewValue(value); ++dataSetSize; }
[ "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add." ]
[ "Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to set.", "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish", "Use this API to fetch policydataset resource of given name .", "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", "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance", "Acquires a write lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Adds the position.\n\n@param position the position", "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" ]
@RequestMapping(value = "group", method = RequestMethod.GET) public String newGroupGet(Model model) { model.addAttribute("groups", pathOverrideService.findAllGroups()); return "groups"; }
[ "Redirect to page\n\n@param model\n@return" ]
[ "Sets the replace var map to single target single var.\n\n@param variable\nthe variable\n@param replaceList\n: the list of strings that will replace the variable\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Legacy conversion.\n@param map\n@return Properties", "Used by the slave host when creating the host info dmr sent across to the DC during the registration process\n\n@param ignoreUnaffectedServerGroups whether the slave host is set up to ignore config for server groups it does not have servers for\n@param hostModel the resource containing the host model\n@param model the dmr sent across to theDC\n@return the modified dmr", "delegate to each contained OJBIterator and release\nits resources.", "Replace the current with a new generated identity object and\nreturns the old one.", "Re-Tag the websocket connection hold by this context with label specified.\nThis method will remove all previous tags on the websocket connection and then\ntag it with the new label.\n@param label the label.\n@return this websocket conext.", "will trigger workers to cancel then wait for it to report back.", "key function. first validate if the ACM has adequate data; then execute\nit after the validation. the new ParallelTask task guareetee to have the\ntargethost meta and command meta not null\n\n@param handler\nthe handler\n@return the parallel task", "Designate the vertex attribute and shader variable for the texture coordinates\nassociated with the named texture.\n\n@param texName name of texture\n@param texCoordAttr name of vertex attribute with texture coordinates.\n@param shaderVarName name of shader variable to get texture coordinates." ]
public String getFullContentType() { final String url = this.url.toExternalForm().substring("data:".length()); final int endIndex = url.indexOf(','); if (endIndex >= 0) { final String contentType = url.substring(0, endIndex); if (!contentType.isEmpty()) { return contentType; } } return "text/plain;charset=US-ASCII"; }
[ "Get the content-type, including the optional \";base64\"." ]
[ "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", "Set the query parameter values overriding all existing query values for\nthe same parameter. If no values are given, the query parameter is removed.\n@param name the query parameter name\n@param values the query parameter values\n@return this UriComponentsBuilder", "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test.", "Create a random video.\n\n@return random video.", "Creates a simple, annotation defined Web Bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return A Web Bean", "Generate the init script from the Artifactory URL.\n\n@return The generated script.", "Set the timeout for idle connections. Voldemort client caches all\nconnections to the Voldemort server. This setting allows the a connection\nto be dropped, if it is idle for more than this time.\n\nThis could be useful in the following cases 1) Voldemort client is not\ndirectly connected to the server and is connected via a proxy or\nfirewall. The Proxy or firewall could drop the connection silently. If\nthe connection is dropped, then client will see operations fail with a\ntimeout. Setting this property enables the Voldemort client to tear down\nthe connection before a firewall could drop it. 2) Voldemort server\ncaches the connection and each connection has an associated memory cost.\nSetting this property on all clients, enable the clients to prune the\nconnections and there by freeing up the server connections.\n\nthrows IllegalArgumentException if the timeout is less than 10 minutes.\n\nCurrently it can't be set below 10 minutes to avoid the racing risk of\ncontention between connection checkout and selector trying to close it.\nThis is intended for low throughput scenarios.\n\n@param idleConnectionTimeout\nzero or negative number to disable the feature ( default -1)\ntimeout\n@param unit {@link TimeUnit}\n@return ClientConfig object for chained set\n\nthrows {@link IllegalArgumentException} if the timeout is greater\nthan 0, but less than 10 minutes.", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Map the given region of the given file descriptor into memory.\nReturns a Pointer to the newly mapped memory throws an\nIOException on error." ]
public static void acceptsFile(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_F, OPT_FILE), "file path for input/output") .withRequiredArg() .describedAs("file-path") .ofType(String.class); }
[ "Adds OPT_F | OPT_FILE 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" ]
[ "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", "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "Remove a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder", "Convert given value to given target\n\n@param fromValue\nthe value to convert\n@param toType\ntarget target\n@param <T>\ntarget of the result\n@return the value converted to given target\n@throws TypeCastException\nif conversion was not possible", "Get the minutes difference", "Creates a random diagonal matrix where the diagonal elements are selected from a uniform\ndistribution that goes from min to max.\n\n@param N Dimension of the matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "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", "Calculates the column width according to its type.\n@param _property the property.\n@return the column width." ]
public void moveUp(I_CmsEditableGroupRow row) { int index = m_container.getComponentIndex(row); if (index > 0) { m_container.removeComponent(row); m_container.addComponent(row, index - 1); } updateButtonBars(); }
[ "Moves the given row up.\n\n@param row the row to move" ]
[ "Process an individual UDF.\n\n@param udf UDF definition", "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates", "Unlink the specified reference object.\nMore info see OJB doc.\n@param source The source object with the specified reference field.\n@param attributeName The field name of the reference to unlink.\n@param target The referenced object to unlink.", "Add the set with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The set of all packages to add.", "Get log file\n\n@return log file", "Determine whether the user has followed bean-like naming convention or not.", "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost", "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect", "Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add" ]
public static final void setPosition(UIObject o, Rect pos) { Style style = o.getElement().getStyle(); style.setPropertyPx("left", pos.x); style.setPropertyPx("top", pos.y); }
[ "Sets the position of a UIObject" ]
[ "Get the element value in the list by index\n@param index the position in the list from which to get the element\n@return the element value", "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful", "Updates the path_order column in the table, loops though the pathOrder array, and changes the value to the loop\nindex+1 for the specified pathId\n\n@param profileId ID of profile\n@param pathOrder array containing new order of paths", "Parses the given XML doc to extract the properties and return them into a java.util.Properties.\n@param doc to parse\n@param sectionName which section to extract\n@return Properties map", "Use this API to fetch the statistics of all service_stats resources that are configured on netscaler.", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal", "generate a message for loglevel INFO\n\n@param pObject the message Object" ]