query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
protected void update(float scale) { // Updates only when the plane is in the scene GVRSceneObject owner = getOwnerObject(); if ((owner != null) && isEnabled() && owner.isEnabled()) { convertFromARtoVRSpace(scale); } }
[ "Update the anchor based on arcore best knowledge of the world\n\n@param scale" ]
[ "Add a '<' clause so the column must be less-than the value.", "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value", "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path", "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "Dumps a single material property to stdout.\n\n@param property the property", "Called when the surface is created or recreated. Avoided because this can\nbe called twice at the beginning.", "One of DEFAULT, or LARGE.", "Gets a SerialMessage with the BASIC GET command\n@return the serial message", "needs to be resolved once extension beans are deployed" ]
public void bindSelect(PreparedStatement stmt, Identity oid, ClassDescriptor cld, boolean callableStmt) throws SQLException { ValueContainer[] values = null; int i = 0; int j = 0; if (cld == null) { cld = m_broker.getClassDescriptor(oid.getObjectsRealClass()); } try { if(callableStmt) { // First argument is the result set m_platform.registerOutResultSet((CallableStatement) stmt, 1); j++; } values = getKeyValues(m_broker, cld, oid); for (/*void*/; i < values.length; i++, j++) { setObjectForStatement(stmt, j + 1, values[i].getValue(), values[i].getJdbcType().getType()); } } catch (SQLException e) { m_log.error("bindSelect failed for: " + oid.toString() + ", PK: " + i + ", value: " + values[i]); throw e; } }
[ "Binds the Identities Primary key values to the statement." ]
[ "Gets all rows.\n\n@return the list of all rows", "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", "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Prints command-line help menu.", "Send a packet to the target player telling it to load the specified track from the specified source player.\n\n@param targetPlayer the device number of the player that you want to have load a track\n@param rekordboxId the identifier of a track within the source player's rekordbox database\n@param sourcePlayer the device number of the player from which the track should be loaded\n@param sourceSlot the media slot from which the track should be loaded\n@param sourceType the type of track to be loaded\n\n@throws IOException if there is a problem sending the command\n@throws IllegalStateException if the {@code VirtualCdj} is not active or the target device cannot be found", "A smoothed pulse function. A cubic function is used to smooth the step between two thresholds.\n@param a1 the lower threshold position for the start of the pulse\n@param a2 the upper threshold position for the start of the pulse\n@param b1 the lower threshold position for the end of the pulse\n@param b2 the upper threshold position for the end of the pulse\n@param x the input parameter\n@return the output value", "Packages of the specified classes will be scanned and found classes will be added to the set of bean classes for the synthetic bean archive.\n\n@param scanRecursively\n@param packageClasses\n@return self", "get the setter method corresponding to given property", "Specify the socket to be used as underlying socket to connect\nto the APN service.\n\nThis assumes that the socket connects to a SOCKS proxy.\n\n@deprecated use {@link ApnsServiceBuilder#withProxy(Proxy)} instead\n@param proxySocket the underlying socket for connections\n@return this" ]
public static Class<?> getRawType(Type type) { if (type instanceof Class) { return (Class<?>) type; } else if (type instanceof ParameterizedType) { ParameterizedType actualType = (ParameterizedType) type; return getRawType(actualType.getRawType()); } else if (type instanceof GenericArrayType) { GenericArrayType genericArrayType = (GenericArrayType) type; Object rawArrayType = Array.newInstance(getRawType(genericArrayType .getGenericComponentType()), 0); return rawArrayType.getClass(); } else if (type instanceof WildcardType) { WildcardType castedType = (WildcardType) type; return getRawType(castedType.getUpperBounds()[0]); } else { throw new IllegalArgumentException( "Type \'" + type + "\' is not a Class, " + "ParameterizedType, or GenericArrayType. Can't extract class."); } }
[ "This method returns the actual raw class associated with the specified\ntype." ]
[ "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure", "Return the set of synchronized document _ids in a namespace\nthat have been paused due to an irrecoverable error.\n\n@param namespace the namespace to get paused document _ids for.\n@return the set of paused document _ids in a namespace", "Constructs a string representing this address according to the given parameters\n\n@param keepMixed if this address was constructed from a string with mixed representation (a:b:c:d:e:f:1.2.3.4), whether to keep it that way (ignored if makeMixed is true in the params argument)\n@param params the parameters for the address string", "Update artifact provider\n\n@param gavc String\n@param provider String", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses", "Updates the exceptions panel.", "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.", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition" ]
public Set<String> findResourceNames(String location, URI locationUri) throws IOException { String filePath = toFilePath(locationUri); File folder = new File(filePath); if (!folder.isDirectory()) { LOGGER.debug("Skipping path as it is not a directory: " + filePath); return new TreeSet<>(); } String classPathRootOnDisk = filePath.substring(0, filePath.length() - location.length()); if (!classPathRootOnDisk.endsWith(File.separator)) { classPathRootOnDisk = classPathRootOnDisk + File.separator; } LOGGER.debug("Scanning starting at classpath root in filesystem: " + classPathRootOnDisk); return findResourceNamesFromFileSystem(classPathRootOnDisk, location, folder); }
[ "Scans a path on the filesystem for resources inside the given classpath location.\n\n@param location The system-independent location on the classpath.\n@param locationUri The system-specific physical location URI.\n@return a sorted set containing all the resources inside the given location\n@throws IOException if an error accessing the filesystem happens" ]
[ "calculate distance of two points\n\n@param a\n@param b\n@return", "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "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", "Invokes a function defined in the script.\n\n@param funcName\nThe function name.\n@param params\nThe parameter array.\n@return\nA boolean value representing whether the function is\nexecuted correctly. If the function cannot be found, or\nparameters don't match, {@code false} is returned.", "Get the PropertyDescriptor for aClass and aPropertyName", "A simple convinience function that decomposes the matrix but automatically checks the input ti make\nsure is not being modified.\n\n@param decomp Decomposition which is being wrapped\n@param M THe matrix being decomposed.\n@param <T> Matrix type.\n@return If the decomposition was successful or not.", "Print classes that were parts of relationships, but not parsed by javadoc", "Returns the description of the running container.\n\n@param client the client used to query the server\n\n@return the description of the running container\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to query the container fails", "The entity instance is not in the session cache\n\nCopied from Loader#instanceNotYetLoaded" ]
protected void layoutGroupSubreports(DJGroup columnsGroup, JRDesignGroup jgroup) { log.debug("Starting subreport layout..."); JRDesignBand footerBand = (JRDesignBand) ((JRDesignSection)jgroup.getGroupFooterSection()).getBandsList().get(0); JRDesignBand headerBand = (JRDesignBand) ((JRDesignSection)jgroup.getGroupHeaderSection()).getBandsList().get(0); layOutSubReportInBand(columnsGroup, headerBand, DJConstants.HEADER); layOutSubReportInBand(columnsGroup, footerBand, DJConstants.FOOTER); }
[ "If there is a SubReport on a Group, we do the layout here\n@param columnsGroup\n@param jgroup" ]
[ "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Renames this folder.\n\n@param newName the new name of the folder.", "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Returns the given text with the first letter in upper case.\n\n<h2>Examples:</h2>\n<pre>\ncapitalize(\"hi\") == \"Hi\"\ncapitalize(\"Hi\") == \"Hi\"\ncapitalize(\"hi there\") == \"hi there\"\ncapitalize(\"\") == \"\"\ncapitalize(null) == null\n</pre>\n@param text the text to capitalize\n@return text with the first letter in upper case", "Returns the real key object.", "Returns formatted version of Iban.\n\n@return A string representing formatted Iban for printing.", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "Utility function to zip the content of an entire folder, but not the folder itself.\n@param folder\n@param fileName optional\n@return success or not", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}" ]
@Override public Configuration configuration() { return new MostUsefulConfiguration() // where to find the stories .useStoryLoader(new LoadFromClasspath(this.getClass())) // CONSOLE and TXT reporting .useStoryReporterBuilder(new StoryReporterBuilder().withDefaultFormats().withFormats(Format.CONSOLE, Format.TXT)); }
[ "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed" ]
[ "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Returns the instance.\n@return InterceptorFactory", "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there", "Adds a file with the provided description.", "Split a module Id to get the module version\n@param moduleId\n@return String", "Set the occurrences. If the String is invalid, the occurrences will be set to \"-1\" to cause server-side validation to fail.\n@param occurrences the interval to set.", "Reads a single byte from the input stream.", "Use this API to kill systemsession resources." ]
public synchronized void addMapStats( final MapfishMapContext mapContext, final MapAttribute.MapAttributeValues mapValues) { this.mapStats.add(new MapStats(mapContext, mapValues)); }
[ "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the" ]
[ "Print a work group.\n\n@param value WorkGroup instance\n@return work group value", "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\nThe outIdentifier can be null.\nThe entryPoint, which can also be null, specifies the entrypoint the object is inserted into.\n\n@param object\n@param outIdentifier\n@param entryPoint\n@return", "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Reinitializes the shader texture used to fill in\nthe Circle upon drawing.", "Mapping message info.\n\n@param messageInfo the message info\n@return the message info type", "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Allows to access the identifiers of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used, not null.\n@return the set of custom rounding ids, never {@code null}.", "Delivers the correct JSON Object for the dockers\n\n@param dockers\n@throws org.json.JSONException" ]
public Task<Void> updateSyncFrequency(@NonNull final SyncFrequency syncFrequency) { return this.dispatcher.dispatchTask(new Callable<Void>() { @Override public Void call() throws Exception { SyncImpl.this.proxy.updateSyncFrequency(syncFrequency); return null; } }); }
[ "Sets the SyncFrequency on this collection.\n\n@param syncFrequency the SyncFrequency that contains all the desired options\n\n@return A Task that completes when the SyncFrequency has been updated" ]
[ "Walks from the most outer embeddable to the most inner one\nlook for all columns contained in these embeddables\nand exclude the embeddables that have a non null column\nbecause of caching, the algorithm is only run once per column parameter", "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option", "static expansion helpers", "Apply filter to an image.\n\n@param source FastBitmap", "Remove script for a given ID\n\n@param id ID of script\n@throws Exception exception", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder", "Processes the original class rather than the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Reads a line from the input stream, where a line is terminated by \\r, \\n, or \\r\\n\n@param trim whether to trim trailing \\r and \\ns" ]
public T[] toArray(T[] tArray) { List<T> array = new ArrayList<T>(100); for (Iterator<T> it = iterator(); it.hasNext();) { T val = it.next(); if (val != null) array.add(val); } return array.toArray(tArray); }
[ "Returns an array of non null elements from the source array.\n\n@param tArray the source array\n@return the array" ]
[ "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.", "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Given a storedefinition, constructs the xml string to be sent out in\nresponse to a \"schemata\" fetch request\n\n@param storeDefinition\n@return serialized store definition", "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function.", "Checks length and compare order of field names with declared PK fields in metadata.", "Return the count of all objects found\nfor given class, using the PB-api within\nODMG - this may change in further versions.", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "This produces the dotted hexadecimal format aaaa.bbbb.cccc", "Attaches a pre-existing set of hours to the correct\nday within the calendar.\n\n@param hours calendar hours instance" ]
public void runOnInvariantViolationPlugins(Invariant invariant, CrawlerContext context) { LOGGER.debug("Running OnInvariantViolationPlugins..."); counters.get(OnInvariantViolationPlugin.class).inc(); for (Plugin plugin : plugins.get(OnInvariantViolationPlugin.class)) { if (plugin instanceof OnInvariantViolationPlugin) { try { LOGGER.debug("Calling plugin {}", plugin); ((OnInvariantViolationPlugin) plugin).onInvariantViolation( invariant, context); } catch (RuntimeException e) { reportFailingPlugin(plugin, e); } } } }
[ "Run the OnInvariantViolation plugins when an Invariant is violated. Invariant are checked\nwhen the state machine is updated that is when the dom is changed after a click on a\nclickable. When a invariant fails this kind of plugins are executed. Warning the session is\nnot a clone, changing the session can cause strange behaviour of Crawljax.\n\n@param invariant the failed invariants\n@param context the current {@link CrawlerContext} for this crawler." ]
[ "Returns the modules paths used on the command line.\n\n@return the paths separated by the {@link File#pathSeparator path separator}", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id.", "Take a string and make it an iterable ContentStream", "Get a setted section knowing his title\n\nN.B. this search only into section list and bottom section list.\n@param title is the title of the section\n@return the section with title or null if the section is not founded", "Retrieves and validates the content type from the REST requests\n\n@return true if has content type.", "Stores the gathered usage statistics about property uses to a CSV file.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference", "Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON" ]
public static nspbr6 get(nitro_service service, String name) throws Exception{ nspbr6 obj = new nspbr6(); obj.set_name(name); nspbr6 response = (nspbr6) obj.get_resource(service); return response; }
[ "Use this API to fetch nspbr6 resource of given name ." ]
[ "Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>", "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.", "Transposes an individual block inside a block matrix.", "Adds the supplied marker to the map.\n\n@param marker", "Use this API to delete cacheselector of given name.", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "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", "Writes all error responses to the client.\n\nTODO REST-Server 1. collect error stats\n\n@param messageEvent - for retrieving the channel details\n@param status - error code\n@param message - error message", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started." ]
protected void setProperty(String propertyName, JavascriptEnum propertyValue) { jsObject.setMember(propertyName, propertyValue.getEnumValue()); }
[ "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property." ]
[ "Use this API to fetch a tmglobal_binding resource .", "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases.", "Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity", "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\").", "Returns a date and time string which is formatted as ISO-8601.", "Get the content-type, including the optional \";base64\".", "Syncronously creates a Renderscript context if none exists.\nCreating a Renderscript context takes about 20 ms in Nexus 5\n\n@return", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise" ]
public synchronized boolean checkWrite(TransactionImpl tx, Object obj) { if (log.isDebugEnabled()) log.debug("LM.checkWrite(tx-" + tx.getGUID() + ", " + new Identity(obj, tx.getBroker()).toString() + ")"); LockStrategy lockStrategy = LockStrategyFactory.getStrategyFor(obj); return lockStrategy.checkWrite(tx, obj); }
[ "checks if there is a writelock for transaction tx on object obj.\nReturns true if so, else false." ]
[ "Returns the target locales.\n\n@return the target locales, never null.", "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.", "Get the values for a particular configuration property\n\n@param name - name of the property\n@return All values encountered or null", "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query.", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not", "Create a new Violation for the AST node.\n@param sourceCode - the SourceCode\n@param node - the Groovy AST Node\n@param message - the message for the violation; defaults to null", "Returns list of files matches specified regex in specified directories\n\n@param regex to match file names\n@param directories to find\n@return list of files matches specified regex in specified directories" ]
public static int color(ColorHolder colorHolder, Context ctx) { if (colorHolder == null) { return 0; } else { return colorHolder.color(ctx); } }
[ "a small static helper class to get the color from the colorHolder\n\n@param colorHolder\n@param ctx\n@return" ]
[ "Read a single field alias from an extended attribute.\n\n@param attribute extended attribute", "Replaces an existing 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 a WHERE-clause to the Statement\n@param where\n@param crit\n@param stmt", "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline level of the child task.", "Insert a new value prior to the index location in the existing value array,\nincreasing the field length accordingly.\n@param index - where the new values in an SFVec2f object will be placed in the array list\n@param newValue - the new x, y value for the array list", "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource", "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public static sslvserver_sslcertkey_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding(); obj.set_vservername(vservername); sslvserver_sslcertkey_binding response[] = (sslvserver_sslcertkey_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslvserver_sslcertkey_binding resources of given name ." ]
[ "Helper to generate the common configuration part for client-side and server-side widget.\n@return the common configuration options as map", "Returns the URL of the first route.\n@return URL backed by the first route.", "Run a task periodically, with a callback.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param callback\nCallback that lets you cancel the task. {@code null} means run\nindefinitely.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "Excludes Vertices that are of the provided type.", "Allows to access the identifiers of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used, not null.\n@return the set of custom rounding ids, never {@code null}.", "Reads a time value. The time is represented as tenths of a\nminute since midnight.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Button onClick listener.\n\n@param v", "Blocks until the server has started successfully or an exception is\nthrown.\n\n@throws VoldemortException if a problem occurs during start-up wrapping\nthe original exception.", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()" ]
private Object initializeLazyPropertiesFromCache( final String fieldName, final Object entity, final SharedSessionContractImplementor session, final EntityEntry entry, final CacheEntry cacheEntry ) { throw new NotSupportedException( "OGM-9", "Lazy properties not supported in OGM" ); }
[ "Make superclasses method protected??" ]
[ "Validates the binding types", "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\n\n@param object\n@param outIdentifier\n@return", "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts", "Open the store with the version directory specified. If null is specified\nwe open the directory with the maximum version\n\n@param versionDir Version Directory to open. If null, we open the max\nversioned / latest directory", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "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", "Call rollback on the underlying connection.", "Most complete output", "Use this API to fetch all the route6 resources that are configured on netscaler.\nThis uses route6_args which is a way to provide additional arguments while fetching the resources." ]
public Bundler put(String key, CharSequence value) { delegate.putCharSequence(key, value); return this; }
[ "Inserts a CharSequence 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 CharSequence, or null\n@return this bundler instance to chain method calls" ]
[ "Returns a new color that has the alpha adjusted by the\nspecified amount.", "Generate a weighted score based on position for matches of URI parts.\nThe matches are weighted in descending order from left to right.\nExact match is weighted higher than group match, and group match is weighted higher than wildcard match.\n\n@param requestUriParts the parts of request URI\n@param destUriParts the parts of destination URI\n@return weighted score", "Sends the events to monitoring service client.\n\n@param events the events", "Use this API to fetch a sslglobal_sslpolicy_binding resources.", "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element", "Decode the password from the given data. Will decode the data block as well.\n\n@param data encrypted data block\n@param encryptionCode encryption code\n\n@return password", "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with.", "One of DEFAULT, or LARGE.", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents." ]
public static Map<FieldType, String> getDefaultWbsFieldMap() { Map<FieldType, String> map = new LinkedHashMap<FieldType, String>(); map.put(TaskField.UNIQUE_ID, "wbs_id"); map.put(TaskField.GUID, "guid"); map.put(TaskField.NAME, "wbs_name"); map.put(TaskField.BASELINE_COST, "orig_cost"); map.put(TaskField.REMAINING_COST, "indep_remain_total_cost"); map.put(TaskField.REMAINING_WORK, "indep_remain_work_qty"); map.put(TaskField.DEADLINE, "anticip_end_date"); map.put(TaskField.DATE1, "suspend_date"); map.put(TaskField.DATE2, "resume_date"); map.put(TaskField.TEXT1, "task_code"); map.put(TaskField.WBS, "wbs_short_name"); return map; }
[ "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping" ]
[ "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "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.", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Should this request URI be compressed?\n\n@param requestUri request URI\n@return true when should be compressed", "Guess whether given file is binary. Just checks for anything under 0x09.", "Adds the supplied marker to the map.\n\n@param marker", "Returns an URI which represents the statement rank in a triple.\n\n@param rank\n@return", "Creates an endpoint reference by duplicating the endpoint reference of a given server.\n@param server\n@param address\n@param props\n@return", "Adds a resource collection with execution hints." ]
private ClassTypeSignature getClassTypeSignature( ParameterizedType parameterizedType) { Class<?> rawType = (Class<?>) parameterizedType.getRawType(); Type[] typeArguments = parameterizedType.getActualTypeArguments(); TypeArgSignature[] typeArgSignatures = new TypeArgSignature[typeArguments.length]; for (int i = 0; i < typeArguments.length; i++) { typeArgSignatures[i] = getTypeArgSignature(typeArguments[i]); } String binaryName = rawType.isMemberClass() ? rawType.getSimpleName() : rawType.getName(); ClassTypeSignature ownerTypeSignature = parameterizedType .getOwnerType() == null ? null : (ClassTypeSignature) getFullTypeSignature(parameterizedType .getOwnerType()); ClassTypeSignature classTypeSignature = new ClassTypeSignature( binaryName, typeArgSignatures, ownerTypeSignature); return classTypeSignature; }
[ "get the ClassTypeSignature corresponding to given parameterized type\n\n@param parameterizedType\n@return" ]
[ "Select this tab item.", "Retrieve a duration field.\n\n@param type field type\n@return Duration instance", "Harvest a single value that was returned by a callable statement.\n\n@param obj the object that will receive the value that is harvested.\n@param callable the CallableStatement that contains the value to harvest\n@param fmd the FieldDescriptor that identifies the field where the\nharvested value will be stord.\n@param index the parameter index.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Send JSON representation of a data object to all connections of a certain user\n\n@param data the data to be sent\n@param username the username\n@return this context", "Returns the index of the given name.\n\n@param name The name of the index (null or empty string for the default index)\n@return The index def or <code>null</code> if it does not exist", "Sets the package pattern to match against.", "convert selector used in an upsert statement into a document", "Encodes the given source into an encoded String using the rules specified\nby the given component and with the given options.\n@param source the source string\n@param encoding the encoding of the source string\n@param type the URI component for the source\n@return the encoded URI\n@throws IllegalArgumentException when the given uri parameter is not a valid URI" ]
public void setAcquireRetryDelay(long acquireRetryDelay, TimeUnit timeUnit) { this.acquireRetryDelayInMs = TimeUnit.MILLISECONDS.convert(acquireRetryDelay, timeUnit); }
[ "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity" ]
[ "Use this API to fetch spilloverpolicy resource of given name .", "Creates a single property declaration.\n@param property Property name.\n@param term Property value.\n@return The resulting declaration.", "Adding environment and system variables to build info.\n\n@param builder", "Add tasks to the tree.\n\n@param parentNode parent tree node\n@param parent parent task container", "Array of fieldNames for which counts should be produced\n\n@param countsfields array of the field names\n@return this for additional parameter setting or to query", "Use this API to update gslbservice resources.", "Aggregate results to see the status code distribution with target hosts.\n\n@return the aggregateResultMap", "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Sets the current field definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"access\" optional=\"true\" description=\"The accessibility of the column\" values=\"readonly,readwrite\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"none,ojb,database\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"column-documentation\" optional=\"true\" description=\"Documentation on the column\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"" ]
public void putInWakeUpQueue(SerialMessage serialMessage) { if (this.wakeUpQueue.contains(serialMessage)) { logger.debug("Message already on the wake-up queue for node {}. Discarding.", this.getNode().getNodeId()); return; } logger.debug("Putting message in wakeup queue for node {}.", this.getNode().getNodeId()); this.wakeUpQueue.add(serialMessage); }
[ "Puts a message in the wake-up queue of this node to send the message on wake-up.\n@param serialMessage the message to put in the wake-up queue." ]
[ "Find the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Returns the real value object.", "Returns the configured body or the default value.", "Initializes the model", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order.\n\nThis method does not require authentication.\n\n@param namespace\noptional, can be null\n@param predicate\noptional, can be null\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList containing Pair-objects\n@throws FlickrException", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "The digits were stored as a hex value, thix switches them to an octal value.\n\n@param currentHexValue\n@param digitCount\n@return" ]
private void parseResponse(InputStream inputStream) { try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(inputStream); doc.getDocumentElement().normalize(); NodeList nodes = doc.getElementsByTagName("place"); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node; _woeid = getValue("woeid", element); } } } catch (Exception ex) { ex.printStackTrace(); } }
[ "Extract WOEID after XML loads" ]
[ "Notify our own event listeners of a Z-Wave event.\n@param event the event to send.", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, voldemort.server.protocol.admin.AsyncOperationStatus, String, long, voldemort.store.metadata.MetadataStore, Long diskQuotaSizeInKB)} instead.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "Allocates a database connection.\n\n@throws SQLException", "Use this API to unset the properties of sslcertkey resources.\nProperties that need to be unset are specified in args array.", "Validate arguments and state.", "Closes any registered stream entries that have not yet been consumed", "Log a message at the provided level.", "Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException" ]
public DbModule getModule(final String moduleId) { final DbModule dbModule = repositoryHandler.getModule(moduleId); if (dbModule == null) { throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND) .entity("Module " + moduleId + " does not exist.").build()); } return dbModule; }
[ "Returns a module\n\n@param moduleId String\n@return DbModule" ]
[ "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name", "Given a list of store definitions, makes sure that rebalance supports all\nof them. If not it throws an error.\n\n@param storeDefList List of store definitions\n@return Filtered list of store definitions which rebalancing supports", "Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed.", "Put object to session cache.\n\n@param oid The {@link org.apache.ojb.broker.Identity} of the object to cache\n@param entry The {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.CacheEntry} of the object\n@param onlyIfNew Flag, if set <em>true</em> only new objects (not already in session cache) be cached.", "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance", "Gets the Symmetric Chi-square divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric chi-square divergence between p and q.", "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset", "Return a long value which is the number of rows in the table." ]
public float getSphereBound(float[] sphere) { if ((sphere == null) || (sphere.length != 4) || ((NativeVertexBuffer.getBoundingVolume(getNative(), sphere)) < 0)) { throw new IllegalArgumentException("Cannot copy sphere bound into array provided"); } return sphere[0]; }
[ "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices" ]
[ "Gets next node in the DAG which has no dependency or all of it's dependencies are resolved and\nready to be consumed.\n\n@return next node or null if all the nodes have been explored or no node is available at this moment.", "of the unbound provider (", "Print the class's attributes fd", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device", "Check exactly the week check-boxes representing the given weeks.\n@param weeksToCheck the weeks selected.", "Disply available use cases.", "Creates a new file.\n\n@param inputStream the stream instance that contains the data.\n@param fileName the name of the file to be created.\n@param fileSize the size of the file that will be uploaded.\n@return the created file instance.\n@throws InterruptedException when a thread execution is interrupted.\n@throws IOException when reading a stream throws exception.", "Use this API to add gslbsite." ]
private boolean moreDates(Calendar calendar, List<Date> dates) { boolean result; if (m_finishDate == null) { int occurrences = NumberHelper.getInt(m_occurrences); if (occurrences < 1) { occurrences = 1; } result = dates.size() < occurrences; } else { result = calendar.getTimeInMillis() <= m_finishDate.getTime(); } return result; }
[ "Determines if we need to calculate more dates.\nIf we do not have a finish date, this method falls back on using the\noccurrences attribute. If we have a finish date, we'll use that instead.\nWe're assuming that the recurring data has one or other of those values.\n\n@param calendar current date\n@param dates dates generated so far\n@return true if we should calculate another date" ]
[ "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List", "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "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", "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.", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name ." ]
public void prepareForEnumeration() { if (isPreparer()) { for (NodeT node : nodeTable.values()) { // Prepare each node for traversal node.initialize(); if (!this.isRootNode(node)) { // Mark other sub-DAGs as non-preparer node.setPreparer(false); } } initializeDependentKeys(); initializeQueue(); } }
[ "Prepares this DAG for node enumeration using getNext method, each call to getNext returns next node\nin the DAG with no dependencies." ]
[ "Loads the configuration file, using CmsVfsMemoryObjectCache for caching.\n\n@param cms the CMS context\n@return the template mapper configuration", "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Use this API to fetch snmpalarm resource of given name .", "Write throwable as attachment.\n\n@param throwable to write\n@param title title of attachment\n@return Created {@link ru.yandex.qatools.allure.model.Attachment}", "Retrieve the most recent storepoint.\n\n@param phoenixProject project data\n@return Storepoint instance", "Extracts the column from a matrix.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Gets the Taneja divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Taneja divergence between p and q.", "Gets the declared bean type\n\n@return The bean type", "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object" ]
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, java.io.IOException { if (flavor.isMimeTypeEqual(OJBMETADATA_FLAVOR)) return selectedDescriptors; else throw new UnsupportedFlavorException(flavor); }
[ "Returns an object which represents the data to be transferred. The class\nof the object returned is defined by the representation class of the flavor.\n\n@param flavor the requested flavor for the data\n@see DataFlavor#getRepresentationClass\n@exception IOException if the data is no longer available\nin the requested flavor.\n@exception UnsupportedFlavorException if the requested data flavor is\nnot supported." ]
[ "Calculate the arc length by angle and radius\n@param angle\n@return arc length", "Sets the bootstrap URLs used by the different Fat clients inside the\nCoordinator\n\n@param bootstrapUrls list of bootstrap URLs defining which cluster to\nconnect to\n@return modified CoordinatorConfig", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Set the menu's width in pixels.", "Setter for the file format.\n@param fileFormat File format the configuration file is in.", "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2", "Configure properties needed to connect to a Fluo application\n\n@param conf Job configuration\n@param config use {@link FluoConfiguration} to configure programmatically", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition.", "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data" ]
protected Object getFieldData(Integer id, FieldType type, byte[][] fixedData, Var2Data varData) { Object result = null; FieldItem item = m_map.get(type); if (item != null) { result = item.read(id, fixedData, varData); } return result; }
[ "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value" ]
[ "get the default profile\n\n@return representation of default profile\n@throws Exception exception", "Use this API to fetch the statistics of all rnatip_stats resources that are configured on netscaler.", "Simple info message for status\n\n@param tag Message to print out at start of info message", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array.", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Starts the Okapi Barcode UI.\n\n@param args the command line arguments", "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "Sets left and right padding for all cells in the row.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "Sets the specified double attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
public static <T> Set<T> getSet(Collection<T> collection) { Set<T> set = new LinkedHashSet<T>(); set.addAll(collection); return set; }
[ "Convert Collection to Set\n@param collection Collection\n@return Set" ]
[ "Returns the primary message codewords for mode 2.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency", "Execute our refresh query statement and then update all of the fields in data with the fields from the result.\n\n@return 1 if we found the object in the table by id or 0 if not.", "Checks the given collection descriptor.\n\n@param collDef The collection descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration.", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info" ]
protected PreparedStatement prepareStatement(Connection con, String sql, boolean scrollable, boolean createPreparedStatement, int explicitFetchSizeHint) throws SQLException { PreparedStatement result; // if a JDBC1.0 driver is used the signature // prepareStatement(String, int, int) is not defined. // we then call the JDBC1.0 variant prepareStatement(String) try { // if necessary use JDB1.0 methods if (!FORCEJDBC1_0) { if (createPreparedStatement) { result = con.prepareStatement( sql, scrollable ? ResultSet.TYPE_SCROLL_INSENSITIVE : ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); afterJdbc2CapableStatementCreate(result, explicitFetchSizeHint); } else { result = con.prepareCall( sql, scrollable ? ResultSet.TYPE_SCROLL_INSENSITIVE : ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); } } else { if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } } } catch (AbstractMethodError err) { // this exception is raised if Driver is not JDBC 2.0 compliant log.warn("Used driver seems not JDBC 2.0 compatible, use the JDBC 1.0 mode", err); if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } FORCEJDBC1_0 = true; } catch (SQLException eSql) { // there are JDBC Driver that nominally implement JDBC 2.0, but // throw DriverNotCapableExceptions. If we catch one of these // we force usage of JDBC 1.0 if (eSql .getClass() .getName() .equals("interbase.interclient.DriverNotCapableException")) { log.warn("JDBC 2.0 problems with this interbase driver, we use the JDBC 1.0 mode"); if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } FORCEJDBC1_0 = true; } else { throw eSql; } } try { if (!ProxyHelper.isNormalOjbProxy(result)) // tomdz: What about VirtualProxy { platform.afterStatementCreate(result); } } catch (PlatformException e) { log.error("Platform dependend failure", e); } return result; }
[ "Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the connection to utilize\n@param sql the sql syntax to use when creating the statement.\n@param scrollable determines if the statement will be scrollable.\n@param createPreparedStatement if <code>true</code>, then a\n{@link PreparedStatement} will be created. If <code>false</code>, then\na {@link java.sql.CallableStatement} will be created.\n@param explicitFetchSizeHint will be used as fetchSize hint\n(if applicable) if > 0\n\n@return a statement that can be used to execute the syntax contained in\nthe <code>sql</code> argument." ]
[ "Removes the given entity from the inverse associations it manages.", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Write a relation list field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args", "Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Set the model used by the right table.\n\n@param model table model", "Determine whether or not a given serializedr is \"AVRO\" based\n\n@param serializerName\n@return", "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 void recordSyncOpTimeNs(SocketDestination dest, long opTimeNs) { if(dest != null) { getOrCreateNodeStats(dest).recordSyncOpTimeNs(null, opTimeNs); recordSyncOpTimeNs(null, opTimeNs); } else { this.syncOpTimeRequestCounter.addRequest(opTimeNs); } }
[ "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" ]
[ "Read a list of fixed size blocks using an instance of the supplied reader class.\n\n@param readerClass reader class\n@return list of blocks", "Looks up a variable given its name. If none is found then return null.", "Pause between cluster change in metadata and starting server rebalancing\nwork.", "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "Creates a field map for relations.\n\n@param props props data", "Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type", "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection", "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", "Parse an extended attribute boolean value.\n\n@param value string representation\n@return boolean value" ]
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); for (ResourceRoot resourceRoot : DeploymentUtils.allResourceRoots(deploymentUnit)) { ResourceRootIndexer.indexResourceRoot(resourceRoot); } }
[ "Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations\nfound in this deployment and attach it to the deployment unit context.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException" ]
[ "Adds a procedure argument definition to this class descriptor.\n\n@param argDef The procedure argument definition", "Adds title and subtitle to the TitleBand when it applies.\nIf title is not present then subtitle will be ignored", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "Use this API to fetch a aaaglobal_binding resource .", "Returns the local collection representing the given namespace.\n\n@param namespace the namespace referring to the local 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 local collection representing the given namespace.", "Finish initializing.\n\n@throws GeomajasException oops", "Returns a client object for a clientId\n\n@param clientId ID of client to return\n@return Client or null\n@throws Exception exception", "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map" ]
public SerialMessage getValueMessage() { logger.debug("Creating new message for application command BASIC_GET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.ApplicationCommandHandler, SerialMessagePriority.Get); byte[] newPayload = { (byte) this.getNode().getNodeId(), 2, (byte) getCommandClass().getKey(), (byte) BASIC_GET }; result.setMessagePayload(newPayload); return result; }
[ "Gets a SerialMessage with the BASIC GET command\n@return the serial message" ]
[ "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "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.", "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails.", "List the greetings in the specified guestbook.", "Old REST client uses old REST service", "Execute push docker image on agent\n\n@param launcher\n@param log\n@param imageTag\n@param username\n@param password\n@param host @return\n@throws IOException\n@throws InterruptedException", "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "Load in a number of database configuration entries from a buffered reader.", "returns null if no device is found." ]
private void countCoordinateStatement(Statement statement, ItemDocument itemDocument) { Value value = statement.getValue(); if (!(value instanceof GlobeCoordinatesValue)) { return; } GlobeCoordinatesValue coordsValue = (GlobeCoordinatesValue) value; if (!this.globe.equals((coordsValue.getGlobe()))) { return; } int xCoord = (int) (((coordsValue.getLongitude() + 180.0) / 360.0) * this.width) % this.width; int yCoord = (int) (((coordsValue.getLatitude() + 90.0) / 180.0) * this.height) % this.height; if (xCoord < 0 || yCoord < 0 || xCoord >= this.width || yCoord >= this.height) { System.out.println("Dropping out-of-range coordinate: " + coordsValue); return; } countCoordinates(xCoord, yCoord, itemDocument); this.count += 1; if (this.count % 100000 == 0) { reportProgress(); writeImages(); } }
[ "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument" ]
[ "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred.", "Gets the property by key converted to lowercase if requested\n@param key property key\n@param lowerCase convert property to lowercase if it is true, keep the original one if it is\nfalse\n@return node property", "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", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "Specifies convergence criteria\n\n@param maxIterations Maximum number of iterations\n@param ftol convergence based on change in function value. try 1e-12\n@param gtol convergence based on residual magnitude. Try 1e-12", "Returns the squared of the Euclidean distance between this vector and\nvector v.\n\n@return squared distance between this vector and v", "Obtain plugin information\n\n@return" ]
public ProxyAuthentication getProxyAuthentication() { // convert authentication to layerAuthentication so we only use one // TODO Remove when removing deprecated authentication field. if (layerAuthentication == null && authentication != null) { layerAuthentication = new LayerAuthentication(); layerAuthentication.setAuthenticationMethod(LayerAuthenticationMethod.valueOf(authentication .getAuthenticationMethod().name())); layerAuthentication.setPassword(authentication.getPassword()); layerAuthentication.setPasswordKey(authentication.getPasswordKey()); layerAuthentication.setRealm(authentication.getRealm()); layerAuthentication.setUser(authentication.getUser()); layerAuthentication.setUserKey(authentication.getUserKey()); } // TODO Remove when removing deprecated authentication field. return layerAuthentication; }
[ "Get the authentication info for this layer.\n\n@return authentication info." ]
[ "Delete a server group by id\n\n@param id server group ID", "Finds the next valid line of words in the stream and extracts them.\n\n@return List of valid words on the line. null if the end of the file has been reached.\n@throws java.io.IOException", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder", "Read configuration from zookeeper", "Counts each property for which there is a statement in the given item\ndocument, ignoring the property thisPropertyIdValue to avoid properties\ncounting themselves.\n\n@param statementDocument\n@param usageRecord\n@param thisPropertyIdValue", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "Use this API to fetch all the configstatus resources that are configured on netscaler.", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth" ]
private void deleteLinks(@NotNull final PersistentStoreTransaction txn, @NotNull final PersistentEntity entity) { final PersistentEntityId id = entity.getId(); final int entityTypeId = id.getTypeId(); final long entityLocalId = id.getLocalId(); final Transaction envTxn = txn.getEnvironmentTransaction(); final LinksTable links = getLinksTable(txn, entityTypeId); final IntHashSet deletedLinks = new IntHashSet(); try (Cursor cursor = links.getFirstIndexCursor(envTxn)) { for (boolean success = cursor.getSearchKeyRange(PropertyKey.propertyKeyToEntry(new PropertyKey(entityLocalId, 0))) != null; success; success = cursor.getNext()) { final ByteIterable keyEntry = cursor.getKey(); final PropertyKey key = PropertyKey.entryToPropertyKey(keyEntry); if (key.getEntityLocalId() != entityLocalId) { break; } final ByteIterable valueEntry = cursor.getValue(); if (links.delete(envTxn, keyEntry, valueEntry)) { int linkId = key.getPropertyId(); if (getLinkName(txn, linkId) != null) { deletedLinks.add(linkId); final LinkValue linkValue = LinkValue.entryToLinkValue(valueEntry); txn.linkDeleted(entity.getId(), (PersistentEntityId) linkValue.getEntityId(), linkValue.getLinkId()); } } } } for (Integer linkId : deletedLinks) { links.deleteAllIndex(envTxn, linkId, entityLocalId); } }
[ "Deletes all outgoing links of specified entity.\n\n@param entity the entity." ]
[ "Unzip a file to a target directory.\n@param zip the path to the zip file.\n@param target the path to the target directory into which the zip file will be unzipped.\n@throws IOException", "Given a year, month, and day, find the number of occurrences of that day in the month\n\n@param year the year\n@param month the month\n@param day the day\n@return the number of occurrences of the day in the month", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found", "Ask the specified player for the specified waveform detail from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform detail\n\n@return the waveform detail, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which timestamps get added to dest", "Returns the boolean value of the specified property.\n\n@param name The name of the property\n@param defaultValue The value to use if the property is not set or not a boolean\n@return The value", "Attaches the menu drawer to the content view.", "Gets a Map of attributes 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 attributes as a {@link HashMap}, or null if it was not found.", "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved." ]
private void populateCalendarException(Record record, ProjectCalendar calendar) throws MPXJException { Date fromDate = record.getDate(0); Date toDate = record.getDate(1); boolean working = record.getNumericBoolean(2); // I have found an example MPX file where a single day exception is expressed with just the start date set. // If we find this for we assume that the end date is the same as the start date. if (fromDate != null && toDate == null) { toDate = fromDate; } ProjectCalendarException exception = calendar.addCalendarException(fromDate, toDate); if (working) { addExceptionRange(exception, record.getTime(3), record.getTime(4)); addExceptionRange(exception, record.getTime(5), record.getTime(6)); addExceptionRange(exception, record.getTime(7), record.getTime(8)); } }
[ "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException" ]
[ "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Add the given pair into the map.\n\n<p>\nIf the pair key already exists in the map, its value is replaced\nby the value in the pair, and the old value in the map is returned.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to add into the map.\n@return the value previously associated to the key, or <code>null</code>\nif the key was not present in the map before the addition.\n@since 2.15", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Convert tenor given as offset in months to year fraction.\n\n@param maturityInMonths The maturity as offset in months.\n@param tenorInMonths The tenor as offset in months.\n@return THe tenor as year fraction.", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Creates a color item that represents a color field fond for a track.\n\n@param colorId the key of the color as found in the database\n@param label the corresponding color label as found in the database (or sent in the dbserver message)\n\n@return the color metadata field", "Create a request for elevations for multiple locations.\n\n@param req\n@param callback", "Determines whether the object is a materialized object, i.e. no proxy or a\nproxy that has already been loaded from the database.\n\n@param object The object to test\n@return <code>true</code> if the object is materialized" ]
static Locale getLocale(PageContext pageContext, String name) { Locale loc = null; Object obj = javax.servlet.jsp.jstl.core.Config.find(pageContext, name); if (obj != null) { if (obj instanceof Locale) { loc = (Locale)obj; } else { loc = SetLocaleSupport.parseLocale((String)obj); } } return loc; }
[ "Returns the locale specified by the named scoped attribute or context\nconfiguration parameter.\n\n<p> The named scoped attribute is searched in the page, request,\nsession (if valid), and application scope(s) (in this order). If no such\nattribute exists in any of the scopes, the locale is taken from the\nnamed context configuration parameter.\n\n@param pageContext the page in which to search for the named scoped\nattribute or context configuration parameter\n@param name the name of the scoped attribute or context configuration\nparameter\n\n@return the locale specified by the named scoped attribute or context\nconfiguration parameter, or <tt>null</tt> if no scoped attribute or\nconfiguration parameter with the given name exists" ]
[ "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate", "Updates all inverse associations managed by a given entity.", "Run the OnInvariantViolation plugins when an Invariant is violated. Invariant are checked\nwhen the state machine is updated that is when the dom is changed after a click on a\nclickable. When a invariant fails this kind of plugins are executed. Warning the session is\nnot a clone, changing the session can cause strange behaviour of Crawljax.\n\n@param invariant the failed invariants\n@param context the current {@link CrawlerContext} for this crawler.", "Ends interception context if it was previously stated. This is indicated by a local variable with index 0.", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance", "Creates the server bootstrap.", "The mediator registration config. If it contains default config and definitions,\nthen the dynamic config will be initialized with those values.\n\n@see org.openhim.mediator.engine.RegistrationConfig\n@see #getDynamicConfig()", "Match the Origin header with the allowed origins.\nIf it doesn't match then a 403 response code is set on the response and it returns null.\n@param exchange the current HttpExchange.\n@param allowedOrigins list of sanitized allowed origins.\n@return the first matching origin, null otherwise.\n@throws Exception" ]
public static void mergeReports(File reportOverall, File... reports) { SessionInfoStore infoStore = new SessionInfoStore(); ExecutionDataStore dataStore = new ExecutionDataStore(); boolean isCurrentVersionFormat = loadSourceFiles(infoStore, dataStore, reports); try (BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(reportOverall))) { Object visitor; if (isCurrentVersionFormat) { visitor = new ExecutionDataWriter(outputStream); } else { visitor = new org.jacoco.previous.core.data.ExecutionDataWriter(outputStream); } infoStore.accept((ISessionInfoVisitor) visitor); dataStore.accept((IExecutionDataVisitor) visitor); } catch (IOException e) { throw new IllegalStateException(String.format("Unable to write overall coverage report %s", reportOverall.getAbsolutePath()), e); } }
[ "Merge all reports in reportOverall.\n@param reportOverall destination file of merge.\n@param reports files to be merged." ]
[ "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Given a parameter, builds a new parameter for which the known generics placeholders are resolved.\n@param genericFromReceiver resolved generics from the receiver of the message\n@param placeholdersFromContext, resolved generics from the method context\n@param methodParameter the method parameter for which we want to resolve generic types\n@param paramType the (unresolved) type of the method parameter\n@return a new parameter with the same name and type as the original one, but with resolved generic types", "Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException", "Helper method that encapsulates the minimum logic for publishing a job to\na channel.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param channel\nthe channel name\n@param jobJson\nthe job serialized as JSON", "Read a long int from an input stream.\n\n@param is input stream\n@return long value", "Returns the maximum magnitude of the complex numbers\n@param u Array of complex numbers\n@param startU first index to consider in u\n@param length Number of complex numebrs to consider\n@return magnitude", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "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", "To get all the textual content in the dom\n\n@param document\n@param individualTokens : default True : when set to true, each text node from dom is used to build the\ntext content : when set to false, the text content of whole is obtained at once.\n@return" ]
private static LblTree createTree(TreeWalker walker) { Node parent = walker.getCurrentNode(); LblTree node = new LblTree(parent.getNodeName(), -1); // treeID = -1 for (Node n = walker.firstChild(); n != null; n = walker.nextSibling()) { node.add(createTree(walker)); } walker.setCurrentNode(parent); return node; }
[ "Recursively construct a LblTree from DOM tree\n\n@param walker tree walker for DOM tree traversal\n@return tree represented by DOM tree" ]
[ "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer", "Rewrites the file passed to 'this' constructor so that the actual line numbers match the recipe passed to 'this'\nconstructor.", "Initialize the various DAO configurations after the various setters have been called.", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Send Identify Node message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix", "multi-field string", "This method returns the actual raw class associated with the specified\ntype." ]
public void stop() { if (mAudioListener != null) { Log.d("SOUND", "stopping audio source %d %s", getSourceId(), getSoundFile()); mAudioListener.getAudioEngine().stopSound(getSourceId()); } }
[ "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield." ]
[ "The location for this elevation.\n\n@return", "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "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", "Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .", "Remove any mapping for this key, and return any previously\nmapped value.\n\n@param key the key whose mapping is to be removed\n@return the value removed, or null", "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired.", "Returns all visble sets and pools the photo belongs to.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo to return information for.\n@return a list of {@link PhotoContext} objects\n@throws FlickrException", "Update database schema\n\n@param migrationPath path to migrations" ]
public void commandLoop() throws IOException { for (Object handler : allHandlers) { if (handler instanceof ShellManageable) { ((ShellManageable)handler).cliEnterLoop(); } } output.output(appName, outputConverter); String command = ""; while (true) { try { command = input.readCommand(path); if (command.trim().equals("exit")) { if (lineProcessor == null) break; else { path = savedPath; lineProcessor = null; } } processLine(command); } catch (TokenException te) { lastException = te; output.outputException(command, te); } catch (CLIException clie) { lastException = clie; if (!command.trim().equals("exit")) { output.outputException(clie); } } } for (Object handler : allHandlers) { if (handler instanceof ShellManageable) { ((ShellManageable)handler).cliLeaveLoop(); } } }
[ "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." ]
[ "Sets the the time of day\n\n@param hours the hours to set. Must be guaranteed to parse as an\ninteger between 0 and 23\n\n@param minutes the minutes to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param seconds the optional seconds to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param amPm the meridian indicator to use. Must be either 'am' or 'pm'\n\n@param zoneString the time zone to use in one of two formats:\n- zoneinfo format (America/New_York, America/Los_Angeles, etc)\n- GMT offset (+05:00, -0500, +5, etc)", "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Adding environment and system variables to build info.\n\n@param builder", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Converts an XML file to an object.\n\n@param fileName The filename where to save it to.\n@return The object.\n@throws FileNotFoundException On error.", "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the server side which could change. The default page size\nis 10 which can be limiting when, for example, trying to get all users in a 800 person course.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param paginationPageSize Requested pagination page size\n@param <T> The reader type to request an instance of\n@return An instance of the requested reader class", "Removes 'original' and places 'target' at the same location", "Get the last non-white X point\n@param img Image in memory\n@return the trimmed width" ]
private int countCharsStart(final char ch, final boolean allowSpaces) { int count = 0; for (int i = 0; i < this.value.length(); i++) { final char c = this.value.charAt(i); if (c == ' ' && allowSpaces) { continue; } if (c == ch) { count++; } else { break; } } return count; }
[ "Counts the amount of 'ch' at the start of this line optionally ignoring\nspaces.\n\n@param ch\nThe char to count.\n@param allowSpaces\nWhether to allow spaces or not\n@return Number of characters found.\n@since 0.12" ]
[ "END ODO CHANGES", "Provisions a new app user in an enterprise with additional user information using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group", "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there is no such collection", "Writes the data collected about properties to a file.", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "Ask the specified player for the beat grid of the track in the specified slot with the specified rekordbox ID,\nfirst checking if we have a cache we can use instead.\n\n@param track uniquely identifies the track whose beat grid is desired\n\n@return the beat grid, if any", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return" ]
static GVROrthogonalCamera makeOrthoShadowCamera(GVRPerspectiveCamera centerCam) { GVROrthogonalCamera shadowCam = new GVROrthogonalCamera(centerCam.getGVRContext()); float near = centerCam.getNearClippingDistance(); float far = centerCam.getFarClippingDistance(); float fovy = (float) Math.toRadians(centerCam.getFovY()); float h = (float) (Math.atan(fovy / 2.0f) * far) / 2.0f; shadowCam.setLeftClippingDistance(-h); shadowCam.setRightClippingDistance(h); shadowCam.setTopClippingDistance(h); shadowCam.setBottomClippingDistance(-h); shadowCam.setNearClippingDistance(near); shadowCam.setFarClippingDistance(far); return shadowCam; }
[ "Adds an orthographic camera constructed from the designated\nperspective camera to describe the shadow projection.\nThe field of view and aspect ration of the perspective\ncamera are used to obtain the view volume of the\northographic camera. This type of camera is used\nfor shadows generated by direct lights at infinite distance.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@return Orthographic camera to use for shadow casting\n@see GVRDirectLight" ]
[ "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "Use this API to add dnssuffix.", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Serialize the object JSON. When an error occures return a string with the given error.", "Returns the latest change events, and clears them from the change stream listener.\n\n@return the latest change events.", "Use this API to delete gslbsite resources of given names.", "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param resource\nA steam containing a zip file which contains six bitmaps. The\nsix bitmaps correspond to +x, -x, +y, -y, +z, and -z faces of\nthe cube map texture respectively. The default names of the\nsix images are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\",\n\"posz.png\", and \"negz.png\", which can be changed by calling\n{@link GVRCubemapImage#setFaceNames(String[])}.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels" ]
public void remove( Token token ) { if( token == first ) { first = first.next; } if( token == last ) { last = last.previous; } if( token.next != null ) { token.next.previous = token.previous; } if( token.previous != null ) { token.previous.next = token.next; } token.next = token.previous = null; size--; }
[ "Removes the token from the list\n@param token Token which is to be removed" ]
[ "Obtain the path ID for a profile\n\n@param identifier Can be the path ID, or friendly name\n@param profileId\n@return\n@throws Exception", "Use this API to fetch all the nsacl6 resources that are configured on netscaler.", "This loads plugin file information into a hash for lazy loading later on\n\n@param pluginDirectory path of plugin\n@throws Exception exception", "Creates the graphic element to be shown when the datasource is empty", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Reset the pool of resources for a specific destination. Idle resources\nwill be destroyed. Checked out resources that are subsequently checked in\nwill be destroyed. Newly created resources can be checked in to\nreestablish resources for the specific destination.", "Convert JsonString to Object of Clazz\n\n@param json\n@param clazz\n@return Object of Clazz", "close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateException", "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded" ]
public static void setPropertySafely(Marshaller marshaller, String name, Object value) { try { marshaller.setProperty(name, value); } catch (PropertyException e) { LOGGER.warn(String.format("Can't set \"%s\" property to given marshaller", name), e); } }
[ "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set" ]
[ "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "Start timing an operation with the given identifier.", "Creates a converter function that converts value into primitive type.\n\n@return A converter function or {@code null} if the given type is not primitive type or boxed type", "Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0", "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", "Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to delete.\n@throws FlickrException", "Add parameter to testCase\n\n@param context which can be changed", "Returns the list view of corporate groupIds of an organization\n\n@param organizationId String\n@return ListView", "What is the maximum bounds in screen space? Needed for correct clipping calculation.\n\n@param tile\ntile\n@param panOrigin\npan origin\n@return max screen bbox" ]
public Class getRealClass(Object objectOrProxy) { IndirectionHandler handler; if(isNormalOjbProxy(objectOrProxy)) { String msg; try { handler = getIndirectionHandler(objectOrProxy); /* arminw: think we should return the real class */ // return handler.getIdentity().getObjectsTopLevelClass(); return handler.getIdentity().getObjectsRealClass(); } catch(ClassCastException e) { // shouldn't happen but still ... msg = "The InvocationHandler for the provided Proxy was not an instance of " + IndirectionHandler.class.getName(); log.error(msg); throw new PersistenceBrokerException(msg, e); } catch(IllegalArgumentException e) { msg = "Could not retrieve real object for given Proxy: " + objectOrProxy; log.error(msg); throw new PersistenceBrokerException(msg, e); } } else if(isVirtualOjbProxy(objectOrProxy)) { handler = VirtualProxy.getIndirectionHandler((VirtualProxy) objectOrProxy); /* arminw: think we should return the real class */ // return handler.getIdentity().getObjectsTopLevelClass(); return handler.getIdentity().getObjectsRealClass(); } else { return objectOrProxy.getClass(); } }
[ "Get the real Class\n\n@param objectOrProxy\n@return Class" ]
[ "Load all string recognize.", "Only call with the read lock held", "Add a comment to a photoset. This method requires authentication with 'write' permission.\n\n@param photosetId\nThe id of the photoset to add a comment to.\n@param commentText\nText of the comment\n@return the comment id\n@throws FlickrException", "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as integer.", "Converts this address to a prefix length\n\n@return the prefix of the indicated IP type represented by this address or null if this address is valid but cannot be represented by a network prefix length\n@throws AddressStringException if the address is invalid", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Set the value of switch component.", "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.", "Asynchronously put the work into the pending map so we can work on submitting it to the worker\nif we wanted. Could possibly cause duplicate work if we execute the work, then add to the map.\n@param task\n@return" ]
public static String formatDateTime(Context context, ReadablePartial time, int flags) { return android.text.format.DateUtils.formatDateTime(context, toMillis(time), flags | FORMAT_UTC); }
[ "Formats a date or a time according to the local conventions.\n\nSince ReadablePartials don't support all fields, we fill in any blanks\nneeded for formatting by using the epoch (1970-01-01T00:00:00Z).\n\nSee {@link android.text.format.DateUtils#formatDateTime} for full docs.\n\n@param context the context is required only if the time is shown\n@param time a point in time\n@param flags a bit mask of formatting options\n@return a string containing the formatted date/time." ]
[ "Use the universal project reader to open the file.\nThrow an exception if we can't determine the file type.\n\n@param inputFile file name\n@return ProjectFile instance", "Scales the weights of this crfclassifier by the specified weight\n\n@param scale", "Returns all base types.\n\n@return An iterator of the base types", "Send a sync command to all registered listeners.\n\n@param command the byte which identifies the type of sync command we received", "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "Writes data to delegate stream if it has been set.\n\n@param data the data to write", "Try to get an attribute value from two elements.\n\n@param firstElement\n@param secondElement\n@return attribute value", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "Try to open a file at the given position." ]
protected ObjectPool setupPool(JdbcConnectionDescriptor jcd) { log.info("Create new ObjectPool for DBCP connections:" + jcd); try { ClassHelper.newInstance(jcd.getDriver()); } catch (InstantiationException e) { log.fatal("Unable to instantiate the driver class: " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e); } catch (IllegalAccessException e) { log.fatal("IllegalAccessException while instantiating the driver class: " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e); } catch (ClassNotFoundException e) { log.fatal("Could not find the driver class : " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e); } // Get the configuration for the connection pool GenericObjectPool.Config conf = jcd.getConnectionPoolDescriptor().getObjectPoolConfig(); // Get the additional abandoned configuration AbandonedConfig ac = jcd.getConnectionPoolDescriptor().getAbandonedConfig(); // Create the ObjectPool that serves as the actual pool of connections. final ObjectPool connectionPool = createConnectionPool(conf, ac); // Create a DriverManager-based ConnectionFactory that // the connectionPool will use to create Connection instances final org.apache.commons.dbcp.ConnectionFactory connectionFactory; connectionFactory = createConnectionFactory(jcd); // Create PreparedStatement object pool (if any) KeyedObjectPoolFactory statementPoolFactory = createStatementPoolFactory(jcd); // Set validation query and auto-commit mode final String validationQuery; final boolean defaultAutoCommit; final boolean defaultReadOnly = false; validationQuery = jcd.getConnectionPoolDescriptor().getValidationQuery(); defaultAutoCommit = (jcd.getUseAutoCommit() != JdbcConnectionDescriptor.AUTO_COMMIT_SET_FALSE); // // Now we'll create the PoolableConnectionFactory, which wraps // the "real" Connections created by the ConnectionFactory with // the classes that implement the pooling functionality. // final PoolableConnectionFactory poolableConnectionFactory; poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, connectionPool, statementPoolFactory, validationQuery, defaultReadOnly, defaultAutoCommit, ac); return poolableConnectionFactory.getPool(); }
[ "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool" ]
[ "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)", "Tests the string edit distance function.", "Generates a sub-trajectory", "Get the underlying channel. This may block until the channel is set.\n\n@return the channel\n@throws IOException for any error", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices.", "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Scans given archive for files passing given filter, adds the results into given list." ]
@Override public com.flickr4java.flickr.Response get(String path, Map<String, Object> parameters, String apiKey, String sharedSecret) throws FlickrException { OAuthRequest request = new OAuthRequest(Verb.GET, buildUrl(path)); for (Map.Entry<String, Object> entry : parameters.entrySet()) { request.addQuerystringParameter(entry.getKey(), String.valueOf(entry.getValue())); } if (proxyAuth) { request.addHeader("Proxy-Authorization", "Basic " + getProxyCredentials()); } RequestContext requestContext = RequestContext.getRequestContext(); Auth auth = requestContext.getAuth(); OAuth10aService service = createOAuthService(apiKey, sharedSecret); if (auth != null) { OAuth1AccessToken requestToken = new OAuth1AccessToken(auth.getToken(), auth.getTokenSecret()); service.signRequest(requestToken, request); } else { // For calls that do not require authorization e.g. flickr.people.findByUsername which could be the // first call if the user did not supply the user-id (i.e. nsid). if (!parameters.containsKey(Flickr.API_KEY)) { request.addQuerystringParameter(Flickr.API_KEY, apiKey); } } if (Flickr.debugRequest) { logger.debug("GET: " + request.getCompleteUrl()); } try { return handleResponse(request, service); } catch (IllegalAccessException | InstantiationException | SAXException | IOException | InterruptedException | ExecutionException | ParserConfigurationException e) { throw new FlickrRuntimeException(e); } }
[ "Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.\n\n@param path The request path\n@param parameters The parameters (collection of Parameter objects)\n@return The Response" ]
[ "Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder\n@throws InvalidFilterException", "This method extracts data for a single resource from a Planner file.\n\n@param plannerResource Resource data", "Asynchronously put the work into the pending map so we can work on submitting it to the worker\nif we wanted. Could possibly cause duplicate work if we execute the work, then add to the map.\n@param task\n@return", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "Register a new SingleServiceWrapperInterceptor for the bean being\nwrapped, associate it with the PerformanceMonitor and tell it which methods\nto intercept.\n\n@param source An Attribute node from the spring configuration\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered", "Return the most appropriate log type. This should _never_ return null.", "Starts the compressor.", "Tests whether a Row name occurs more than once in the list of rows\n@param name\n@return", "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated." ]
public void appendImmediate(Object object, String indentation) { for (int i = segments.size() - 1; i >= 0; i--) { String segment = segments.get(i); for (int j = 0; j < segment.length(); j++) { if (!WhitespaceMatcher.isWhitespace(segment.charAt(j))) { append(object, indentation, i + 1); return; } } } append(object, indentation, 0); }
[ "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appended directly after the last segment that\ncontains something besides whitespace. The given indentation will be prepended to each line except the first one\nif the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>." ]
[ "Get an image as a stream. Callers must be sure to close the stream when they are done with it.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@param suffix\nThe suffix\n@return The InputStream\n@throws IOException", "Create new logging action\nThis method check if there is an old instance for this thread-local\nIf not - Initialize new instance and set it as this thread-local's instance\n@param logger\n@param auditor\n@param instance\n@return whether new instance was set to thread-local", "1-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.", "Sets an attribute in the main section of the manifest to a list.\nThe list elements will be joined with a single whitespace character.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Calls afterMaterialization on all registered listeners in the reverse\norder of registration.", "Sets the real offset.\n\n@param start the start\n@param end the end", "Helper function to return the minimum size of the index space to be passed to the reduction given the input and\noutput tensors", "Writes the details of a recurring exception.\n\n@param mpxjException source MPXJ calendar exception\n@param xmlException target MSPDI exception", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels." ]
Map<String, EntityDocument> getEntityDocumentMap(int numOfEntities, WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { if (numOfEntities == 0) { return Collections.emptyMap(); } configureProperties(properties); return this.wbGetEntitiesAction.wbGetEntities(properties); }
[ "Creates a map of identifiers or page titles to documents retrieved via\nthe APIs.\n\n@param numOfEntities\nnumber of entities that should be retrieved\n@param properties\nWbGetEntitiesProperties object that includes all relevant\nparameters for the wbgetentities action\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\n@throws IOException" ]
[ "Sets the text alignment for all cells in the table.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "Fetches the current online data for the given item, and fixes the\nprecision of integer quantities if necessary.\n\n@param itemIdValue\nthe id of the document to inspect\n@param propertyId\nid of the property to consider", "Adds is Null criteria,\ncustomer_id is Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Saves the list of currently displayed favorites.", "Read the data for all of the tables we're interested in.\n\n@param tables list of all available tables\n@param is input stream", "Use this API to fetch lbvserver_scpolicy_binding resources of given name .", "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance", "Use this API to fetch sslservice resource of given name .", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value" ]
public T withLabel(String text, String languageCode) { withLabel(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
[ "Adds an additional label to the constructed document.\n\n@param text\nthe text of the label\n@param languageCode\nthe language code of the label\n@return builder object to continue construction" ]
[ "Read ClassDescriptors from the given repository file.\n@see #mergeDescriptorRepository", "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border.", "Returns the simple name of the builder class that should be generated for the given type.\n\n<p>This is simply the {@link #BUILDER_SIMPLE_NAME_TEMPLATE} with the original type name\nsubstituted in. (If the original type is nested, its enclosing classes will be included,\nseparated with underscores, to ensure uniqueness.)", "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class", "Update rows in the database.", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore.", "Calculate start dates for a yearly relative recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.\n@param D diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param confRadius Confinement radius\n@return Boundedness value" ]
public static <T> String listToString(List<T> list, final boolean justValue, final String separator) { StringBuilder s = new StringBuilder(); for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) { T o = wordIterator.next(); s.append(wordToString(o, justValue, separator)); if (wordIterator.hasNext()) { s.append(' '); } } return s.toString(); }
[ "As already described, but if separator is not null, then objects\nsuch as TaggedWord\n\n@param separator The string used to separate Word and Tag\nin TaggedWord, etc" ]
[ "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Constructs a string representing this address according to the given parameters\n\n@param keepMixed if this address was constructed from a string with mixed representation (a:b:c:d:e:f:1.2.3.4), whether to keep it that way (ignored if makeMixed is true in the params argument)\n@param params the parameters for the address string", "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Use this API to update vserver.", "Remove any mapping for this key, and return any previously\nmapped value.\n\n@param key the key whose mapping is to be removed\n@return the value removed, or null", "Check that the range resulting from the mask is contiguous, otherwise we cannot represent it.\n\nFor instance, for the range 0 to 3 (bits are 00 to 11), if we mask all 4 numbers from 0 to 3 with 2 (ie bits are 10),\nthen we are left with 1 and 3. 2 is not included. So we cannot represent 1 and 3 as a contiguous range.\n\nThe underlying rule is that mask bits that are 0 must be above the resulting range in each segment.\n\nAny bit in the mask that is 0 must not fall below any bit in the masked segment range that is different between low and high.\n\nAny network mask must eliminate the entire segment range. Any host mask is fine.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException", "Gets the value for the key.\n\n@param key the key to check for the value\n\n@return the value or an empty collection if no values were set", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "Checks whether a character sequence matches against a specified pattern or not.\n\n@param pattern\npattern, that the {@code chars} must correspond to\n@param chars\na readable sequence of {@code char} values which should match the given pattern\n@return {@code true} when {@code chars} matches against the passed {@code pattern}, otherwise {@code false}" ]
@Override public void onBindViewHolder(RendererViewHolder viewHolder, int position) { T content = getItem(position); Renderer<T> renderer = viewHolder.getRenderer(); if (renderer == null) { throw new NullRendererBuiltException("RendererBuilder have to return a not null renderer"); } renderer.setContent(content); updateRendererExtraValues(content, renderer, position); renderer.render(); }
[ "Given a RendererViewHolder passed as argument and a position renders the view using the\nRenderer previously stored into the RendererViewHolder.\n\n@param viewHolder with a Renderer class inside.\n@param position to render." ]
[ "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Run the OnInvariantViolation plugins when an Invariant is violated. Invariant are checked\nwhen the state machine is updated that is when the dom is changed after a click on a\nclickable. When a invariant fails this kind of plugins are executed. Warning the session is\nnot a clone, changing the session can cause strange behaviour of Crawljax.\n\n@param invariant the failed invariants\n@param context the current {@link CrawlerContext} for this crawler.", "Creates the button for converting an XML bundle in a property bundle.\n@return the created button.", "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "Returns the finish date for this resource assignment.\n\n@return finish date", "Build a request URL.\n\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException\n@deprecated use {@link #buildSecureUrl(java.lang.String, int, java.lang.String, java.util.Map) }", "Modifier method to set the unique ID of this calendar.\n\n@param uniqueID unique identifier", "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false that step will be skipped.", "Given a BSON document, remove any forbidden fields and return the document. If no changes are\nmade, the original document reference is returned. If changes are made, a cloned copy of the\ndocument with the changes will be returned.\n\n@param document the document from which to remove forbidden fields\n\n@return a BsonDocument without any forbidden fields." ]
public static base_response update(nitro_service client, onlinkipv6prefix resource) throws Exception { onlinkipv6prefix updateresource = new onlinkipv6prefix(); updateresource.ipv6prefix = resource.ipv6prefix; updateresource.onlinkprefix = resource.onlinkprefix; updateresource.autonomusprefix = resource.autonomusprefix; updateresource.depricateprefix = resource.depricateprefix; updateresource.decrementprefixlifetimes = resource.decrementprefixlifetimes; updateresource.prefixvalidelifetime = resource.prefixvalidelifetime; updateresource.prefixpreferredlifetime = resource.prefixpreferredlifetime; return updateresource.update_resource(client); }
[ "Use this API to update onlinkipv6prefix." ]
[ "Most complete output", "Use this API to update ipv6.", "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor.", "Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception", "Use this API to delete dnsaaaarec resources.", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Creates a new Logger instance for the specified name.", "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RTF document\n@return new offset", "Encodes the given URI scheme with the given encoding.\n@param scheme the scheme to be encoded\n@param encoding the character encoding to encode to\n@return the encoded scheme\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
void register(long mjDay, int leapAdjustment) { if (leapAdjustment != -1 && leapAdjustment != 1) { throw new IllegalArgumentException("Leap adjustment must be -1 or 1"); } Data data = dataRef.get(); int pos = Arrays.binarySearch(data.dates, mjDay); int currentAdj = pos > 0 ? data.offsets[pos] - data.offsets[pos - 1] : 0; if (currentAdj == leapAdjustment) { return; // matches previous definition } if (mjDay <= data.dates[data.dates.length - 1]) { throw new IllegalArgumentException("Date must be after the last configured leap second date"); } long[] dates = Arrays.copyOf(data.dates, data.dates.length + 1); int[] offsets = Arrays.copyOf(data.offsets, data.offsets.length + 1); long[] taiSeconds = Arrays.copyOf(data.taiSeconds, data.taiSeconds.length + 1); int offset = offsets[offsets.length - 2] + leapAdjustment; dates[dates.length - 1] = mjDay; offsets[offsets.length - 1] = offset; taiSeconds[taiSeconds.length - 1] = tai(mjDay, offset); Data newData = new Data(dates, offsets, taiSeconds); if (dataRef.compareAndSet(data, newData) == false) { throw new ConcurrentModificationException("Unable to update leap second rules as they have already been updated"); } }
[ "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" ]
[ "Set some initial values.", "Function to go through all the store definitions contained in the STORES\ndirectory and\n\n1. Update metadata cache.\n\n2. Update STORES_KEY by stitching together all these keys.\n\n3. Update 'storeNames' list.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will correctly handle concurrency issues. Currently this is not an\nissue since its invoked by init, put, add and delete store all of which\nuse locks to deal with any concurrency related issues.", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "returns a sorted array of enum constants", "Closes the Netty Channel and releases all resources", "When creating barcode columns\n@return", "Merges two lists together.\n\n@param one first list\n@param two second list\n@return merged lists", "Facade method for operating the Shell.\n\nRun the obtained Shell with commandLoop().\n\n@see org.gearvrf.debug.cli.Shell#Shell(org.gearvrf.debug.cli.Shell.Settings, org.gearvrf.debug.cli.CommandTable, java.util.List)\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Command handler\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Pool configuration.\n@param props\n@throws HibernateException" ]
public void writeFinalResults() { printStatus(); try (PrintStream out = new PrintStream( ExampleHelpers.openExampleFileOuputStream("gender-ratios.csv"))) { out.print("Site key,pages total,pages on humans,pages on humans with gender"); for (EntityIdValue gender : this.genderNamesList) { out.print("," + this.genderNames.get(gender) + " (" + gender.getId() + ")"); } out.println(); List<SiteRecord> siteRecords = new ArrayList<>( this.siteRecords.values()); Collections.sort(siteRecords, new SiteRecordComparator()); for (SiteRecord siteRecord : siteRecords) { out.print(siteRecord.siteKey + "," + siteRecord.pageCount + "," + siteRecord.humanPageCount + "," + siteRecord.humanGenderPageCount); for (EntityIdValue gender : this.genderNamesList) { if (siteRecord.genderCounts.containsKey(gender)) { out.print("," + siteRecord.genderCounts.get(gender)); } else { out.print(",0"); } } out.println(); } } catch (IOException e) { e.printStackTrace(); } }
[ "Writes the results of the processing to a CSV file." ]
[ "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Checks if two types are the same or are equivalent under a variable\nmapping given in the type map that was provided.", "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", "Starts the animation with the given index.\n@param animIndex 0-based index of {@link GVRAnimator} to start;\n@see GVRAvatar#stop()\n@see #start(String)", "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "There is a race condition that is not handled properly by the DialogFragment class.\nIf we don't check that this onDismiss callback isn't for the old progress dialog from before\nthe device orientation change, then this will cause the newly created dialog after the\norientation change to be dismissed immediately.", "Given a storedefinition, constructs the xml string to be sent out in\nresponse to a \"schemata\" fetch request\n\n@param storeDefinition\n@return serialized store definition", "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows" ]
protected void checkJobType(final String jobName, final Class<?> jobType) { if (jobName == null) { throw new IllegalArgumentException("jobName must not be null"); } if (jobType == null) { throw new IllegalArgumentException("jobType must not be null"); } if (!(Runnable.class.isAssignableFrom(jobType)) && !(Callable.class.isAssignableFrom(jobType))) { throw new IllegalArgumentException( "jobType must implement either Runnable or Callable: " + jobType); } }
[ "Determine if a job name and job type are valid.\n@param jobName the name of the job\n@param jobType the class of the job\n@throws IllegalArgumentException if the name or type are invalid" ]
[ "check max size of each message\n@param maxMessageSize the max size for each message", "Helper method which supports creation of proper error messages.\n\n@param ex An exception to include or <em>null</em>.\n@param message The error message or <em>null</em>.\n@param objectToIdentify The current used object or <em>null</em>.\n@param topLevelClass The object top-level class or <em>null</em>.\n@param realClass The object real class or <em>null</em>.\n@param pks The associated PK values of the object or <em>null</em>.\n@return The generated exception.", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "For creating regular columns\n@return", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Returns the smallest prefix length possible such that this address division grouping includes the block of addresses for that prefix.\n\n@return the prefix length", "We have obtained a waveform preview for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform preview\n@param preview the waveform preview which we retrieved", "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance" ]
public FloatBuffer getFloatVec(String attributeName) { int size = getAttributeSize(attributeName); if (size <= 0) { return null; } size *= 4 * getVertexCount(); ByteBuffer buffer = ByteBuffer.allocateDirect(size).order(ByteOrder.nativeOrder()); FloatBuffer data = buffer.asFloatBuffer(); if (!NativeVertexBuffer.getFloatVec(getNative(), attributeName, data, 0, 0)) { throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be accessed"); } return data; }
[ "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)" ]
[ "Adds a license to an artifact if the license exist into the database\n\n@param gavc String\n@param licenseId String", "This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data", "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.", "Loads the columns for this table into the alChildren list.", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2", "Reverses all the TransitionControllers managed by this TransitionManager", "Execute for result.\n\n@param executionContext the execution context\n@return the result\n@throws IOException for any error", "Obtains a local date in Pax calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Pax era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Pax local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code PaxEra}" ]
public static double Bhattacharyya(double[] histogram1, double[] histogram2) { int bins = histogram1.length; // histogram bins double b = 0; // Bhattacharyya's coefficient for (int i = 0; i < bins; i++) b += Math.sqrt(histogram1[i]) * Math.sqrt(histogram2[i]); // Bhattacharyya distance between the two distributions return Math.sqrt(1.0 - b); }
[ "Bhattacharyya distance between two normalized histograms.\n\n@param histogram1 Normalized histogram.\n@param histogram2 Normalized histogram.\n@return The Bhattacharyya distance between the two histograms." ]
[ "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type", "Read a single duration field extended attribute.\n\n@param row field data", "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Returns s if it's at most maxWidth chars, otherwise chops right side to fit.", "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", "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved.", "Copy a single named resource from the classpath to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param resourceName The filename of the resource.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the resource cannot be copied.", "Summarizes balance for the given nodeId to PartitionCount.\n\n@param nodeIdToPartitionCount\n@param title for use in pretty string\n@return Pair: getFirst() is utility value to be minimized, getSecond() is\npretty summary string of balance", "Evalutes AND and OR operators.\n\n@param container data context\n@param promptValues responses to prompts\n@return operator result" ]
public static PropertyResourceBundle getBundle(String baseName, Locale locale) throws UnsupportedEncodingException, IOException{ InputStream is = UTF8PropertyResourceBundle.class.getResourceAsStream("/"+baseName + "_"+locale.toString()+PROPERTIES_EXT); if(is != null){ return new PropertyResourceBundle(new InputStreamReader(is, "UTF-8")); } return null; }
[ "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\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", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x.", "Pretty print a progress update after each batch complete.\n\n@param batchCount current batch\n@param numBatches total number of batches\n@param partitionStoreCount partition stores migrated\n@param numPartitionStores total number of partition stores to migrate\n@param totalTimeMs total time, in milliseconds, of execution thus far.", "orientation state factory method", "Adds a class entry to this JAR.\n\n@param clazz the class to add to the JAR.\n@return {@code this}", "Registers a new site for specific data collection. If null is used as a\nsite key, then all data is collected.\n\n@param siteKey\nthe site to collect geo data for", "resolves a Field or Property node generics by using the current class and\nthe declaring class to extract the right meaning of the generics symbols\n@param an a FieldNode or PropertyNode\n@param type the origin type\n@return the new ClassNode with corrected generics", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class." ]
@SuppressWarnings("rawtypes") private void synchronousInvokeCallback(Callable call) { Future future = streamingSlopResults.submit(call); try { future.get(); } catch(InterruptedException e1) { logger.error("Callback failed", e1); throw new VoldemortException("Callback failed"); } catch(ExecutionException e1) { logger.error("Callback failed during execution", e1); throw new VoldemortException("Callback failed during execution"); } }
[ "Helper method to synchronously invoke a callback\n\n@param call" ]
[ "Removes the token from the list\n@param token Token which is to be removed", "Returns true if a Map literal that contains only entries where both key and value are constants.\n@param expression - any expression", "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.", "Retrieves the project start date. If an explicit start date has not been\nset, this method calculates the start date by looking for\nthe earliest task start date.\n\n@return project start date", "Check if we still need more nodes from the given zone and reduce the\nzoneReplicationFactor count accordingly.\n\n@param requiredRepFactor\n@param zoneId\n@return", "This method retrieves a Duration instance representing the amount of\nwork between two dates based on this calendar.\n\n@param startDate start date\n@param endDate end date\n@param format required duration format\n@return amount of work", "Processes the template for all index descriptors of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException", "Gets the top of thread-local shell stack, or null if it is empty.\n\n@return the top of the shell stack" ]
public FastReportBuilder addBarcodeColumn(String title, String property,String className, int barcodeType,boolean showText, int width, boolean fixedWidth,ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException { AbstractColumn column = ColumnBuilder.getNew() .setColumnProperty(property, className) .setWidth(width) .setTitle(title) .setFixedWidth(fixedWidth) .setColumnType(ColumnBuilder.COLUMN_TYPE_BARCODE) .setStyle(style) .setBarcodeType(barcodeType) .setShowText(showText) .build(); if (style == null) guessStyle(className, column); addColumn(column); return this; }
[ "By default uses InputStream as the type of the image\n@param title\n@param property\n@param width\n@param fixedWidth\n@param imageScaleMode\n@param style\n@return\n@throws ColumnBuilderException\n@throws ClassNotFoundException" ]
[ "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Set the property on the given object to the new value.\n\n@param object on which to set the property\n@param newValue the new value of the property\n@throws RuntimeException if the property could not be set", "Assign FK value to target object by reading PK values of referenced object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.\n@param referencedObject referenced object or proxy\n@param insert Show if \"linking\" is done while insert or update.", "Save an HTTP response to a file\n@param response the response to save\n@param destFile the destination file\n@throws IOException if the response could not be downloaded", "Returns an entry with the given proposal and prefix, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it.", "Get an exception reporting an unexpected end tag for an XML element.\n@param reader the stream reader\n@return the exception", "Closes the connection to the dbserver. This instance can no longer be used after this action.", "Gets the data by id.\n\n@param id the id\n@return the data by id\n@throws IOException Signals that an I/O exception has occurred.", "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error." ]
private GridLines getGridLines(byte[] data, int offset) { Color normalLineColor = ColorType.getInstance(data[offset]).getColor(); LineStyle normalLineStyle = LineStyle.getInstance(data[offset + 3]); int intervalNumber = data[offset + 4]; LineStyle intervalLineStyle = LineStyle.getInstance(data[offset + 5]); Color intervalLineColor = ColorType.getInstance(data[offset + 6]).getColor(); return new GridLines(normalLineColor, normalLineStyle, intervalNumber, intervalLineStyle, intervalLineColor); }
[ "Creates a new GridLines instance.\n\n@param data data block\n@param offset offset into data block\n@return new GridLines instance" ]
[ "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", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server", "Check whether the given id is included in the list of includes and not excluded.\n\n@param id id to check\n@param includes list of include regular expressions\n@param excludes list of exclude regular expressions\n@return true when id included and not excluded", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "Use this API to unset the properties of csparameter resource.\nProperties that need to be unset are specified in args array.", "Configures the log context for the server and returns the configured log context.\n\n@param logDir the logging directory, from jboss.server|domain.log.dir standalone default {@code $JBOSS_HOME/standalone/log}\n@param configDir the configuration directory from jboss.server|domain.config.dir, standalone default {@code $JBOSS_HOME/standalone/configuration}\n@param defaultLogFileName the name of the log file to pass to {@code org.jboss.boot.log.file}\n@param ctx the command context used to report errors to\n\n@return the configured log context", "Load the windows resize handler with initial view port detection.", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns the number of elements in the sorted set with a value in the given range.\n@param lexRange\n@return the number of elements in the specified range." ]
public Set<Action.ActionEffect> getActionEffects() { switch(getImpact()) { case CLASSLOADING: case WRITE: return WRITES; case READ_ONLY: return READS; default: throw new IllegalStateException(); } }
[ "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}" ]
[ "Checks if Docker Machine is installed by running docker-machine and inspect the result.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n\n@return true if it is installed, false otherwise.", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Gets the status text from given session.\n\n@param lastActivity miliseconds since last activity\n@return status string", "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "Transfer the data from the inputStream to the outputStream. Then close both streams.", "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Return the most appropriate log type. This should _never_ return null.", "Extracts the java class name from the schema info\n\n@param schemaInfo the schema info, a string like: java=java.lang.String\n@return the name of the class extracted from the schema info", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value." ]
private boolean hidden(ProgramElementDoc c) { if (c.tags("hidden").length > 0 || c.tags("view").length > 0) return true; Options opt = optionProvider.getOptionsFor(c instanceof ClassDoc ? (ClassDoc) c : c.containingClass()); return opt.matchesHideExpression(c.toString()) // || (opt.hidePrivateInner && c instanceof ClassDoc && c.isPrivate() && ((ClassDoc) c).containingClass() != null); }
[ "Return true if c has a @hidden tag associated with it" ]
[ "Open an OutputStream and execute the function using the OutputStream.\n\n@param function the function to execute\n@return the URI and the file size", "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Extract WOEID after XML loads", "Send a sync command to all registered listeners.\n\n@param command the byte which identifies the type of sync command we received", "Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor", "do delete given object. Should be used by all intern classes to delete\nobjects.", "Generates timephased costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost", "Return the key if there is one else return -1", "Update database schema\n\n@param migrationPath path to migrations" ]
public static String getStateKey(CmsResourceState state) { StringBuffer sb = new StringBuffer(STATE_PREFIX); sb.append(state); sb.append(STATE_POSTFIX); return sb.toString(); }
[ "Create constant name.\n@param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED.\n@return cconstanname as String" ]
[ "Export the odo overrides setup and odo configuration\n\n@param oldExport Whether this is a backup from scratch or backing up because user will upload after (matches API)\n@return The odo configuration and overrides in JSON format, can be written to a file after", "Parse units.\n\n@param value units value\n@return units value", "Puts a message in the wake-up queue of this node to send the message on wake-up.\n@param serialMessage the message to put in the wake-up queue.", "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Encodes the given URI query with the given encoding.\n@param query the query to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "this method is not intended to be called by clients\n@since 2.12", "Runs a query that returns a single int.", "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted." ]
public double[] getScaleDenominators() { double[] dest = new double[this.scaleDenominators.length]; System.arraycopy(this.scaleDenominators, 0, dest, 0, this.scaleDenominators.length); return dest; }
[ "Return a copy of the zoom level scale denominators. Scales are sorted greatest to least." ]
[ "Determine the enum value corresponding to the first play state found in the packet.\n\n@return the proper value", "Compose src onto dst using the alpha of sel to interpolate between the two.\nI can't think of a way to do this using AlphaComposite.\n@param src the source raster\n@param dst the destination raster\n@param sel the mask raster", "Generate node data map.\n\n@param task\nthe job info", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Parses the result and returns the failure description. If the result was successful, an empty string is\nreturned.\n\n@param result the result of executing an operation\n\n@return the failure message or an empty string", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Creates a field map for relations.\n\n@param props props data", "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists" ]
private Collection getOwnerObjects() { Collection owners = new Vector(); while (hasNext()) { owners.add(next()); } return owners; }
[ "read all objects of this iterator. objects will be placed in cache" ]
[ "Performs a streaming request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return an {@link EventStream} that will provide response events.", "Clean up the environment object for the given storage engine", "Check whether the given is is matched by one of the include expressions.\n\n@param id id to check\n@param includes list of include regular expressions\n@return true when id is included", "Allow for the use of text shading and auto formatting.", "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Somewhat ad-hoc list of only greek letters that bio people use, partly\nto avoid false positives on short ones.\n@param s String to check for Greek\n@return true iff there is a greek lette embedded somewhere in the String", "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "Handle a completed request producing an optional response", "Add roles for given role parent item.\n\n@param ouItem group parent item" ]
public static void load(File file) { try(FileInputStream inputStream = new FileInputStream(file)) { LineIterator it = IOUtils.lineIterator(inputStream, "UTF-8"); while (it.hasNext()) { String line = it.next(); if (!line.startsWith("#") && !line.trim().isEmpty()) { add(line); } } } catch (Exception e) { throw new WindupException("Failed loading archive ignore patterns from [" + file.toString() + "]", e); } }
[ "Load the given configuration file." ]
[ "This is the profiles page. this is the 'regular' page when the url is typed in", "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "Gets the current version of the database schema. This version is taken\nfrom the migration table and represent the latest successful entry.\n\n@return the current schema version", "Computes the cross product of v1 and v2 and places the result in this\nvector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return", "Helper to generate the common configuration part for client-side and server-side widget.\n@return the common configuration options as map", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias" ]
private void deliverFaderStartCommand(Set<Integer> playersToStart, Set<Integer> playersToStop) { for (final FaderStartListener listener : getFaderStartListeners()) { try { listener.fadersChanged(playersToStart, playersToStop); } catch (Throwable t) { logger.warn("Problem delivering fader start command to listener", t); } } }
[ "Send a fader start command to all registered listeners.\n\n@param playersToStart contains the device numbers of all players that should start playing\n@param playersToStop contains the device numbers of all players that should stop playing" ]
[ "is ready to service requests", "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "Given a list of store definitions return a list of store names\n\n@param storeDefList The list of store definitions\n@return Returns a list of store names", "Convert an ObjectName to a PathAddress.\n\nPatterns are supported: there may not be a resource at the returned PathAddress but a resource model <strong>MUST</strong>\nmust be registered.", "Method called when the renderer is going to be created. This method has the responsibility of\ninflate the xml layout using the layoutInflater and the parent ViewGroup, set itself to the\ntag and call setUpView and hookListeners methods.\n\n@param content to render. If you are using Renderers with RecyclerView widget the content will\nbe null in this method.\n@param layoutInflater used to inflate the view.\n@param parent used to inflate the view.", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.", "Resets all member fields that hold information about the revision that is\ncurrently being processed.", "Inflate the main layout used to render videos in the list view.\n\n@param inflater LayoutInflater service to inflate.\n@param parent ViewGroup used to inflate xml.\n@return view inflated.", "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix" ]
public SourceBuilder addLine(String fmt, Object... args) { add(fmt, args); source.append(LINE_SEPARATOR); return this; }
[ "Appends a formatted line of code to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>" ]
[ "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds", "Performs the update to the persistent configuration model. This default implementation simply removes\nthe targeted resource.\n\n@param context the operation context\n@param operation the operation\n@throws OperationFailedException if there is a problem updating the model", "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties", "get the real data without message header\n@return message data(without header)", "Finds all variables in the context with the given names, and also attaches all WindupFreeMarkerMethods from all addons into the map.\n\nThis allows external addons to extend the capabilities in the freemarker reporting system.", "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", "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", "Use this API to update snmpmanager.", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return" ]
public static ContainerDescription getContainerDescription(final ModelControllerClient client) throws IOException, OperationExecutionException { return DefaultContainerDescription.lookup(Assert.checkNotNullParam("client", client)); }
[ "Returns the description of the running container.\n\n@param client the client used to query the server\n\n@return the description of the running container\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to query the container fails" ]
[ "Get parent digest of an image.\n\n@param digest\n@param host\n@return", "Runs through the log removing segments older than a certain age\n\n@throws IOException", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input", "Appends the given string to the given StringBuilder, replacing '&amp;',\n'&lt;' and '&gt;' by their respective HTML entities.\n\n@param out\nThe StringBuilder to append to.\n@param value\nThe string to append.\n@param offset\nThe character offset into value from where to start", "Changes the message of this comment.\n@param newMessage the new message for this comment.\n@return updated info about this comment.", "Use this API to update systemuser resources.", "Updates the value in HashMap and writeBack as Atomic step", "Write the summary file, if requested.", "Use this API to update nd6ravariables resources." ]
@SuppressWarnings("unchecked") public static <T> AttachmentKey<T> create(final Class<? super T> valueClass) { return new SimpleAttachmentKey(valueClass); }
[ "Construct a new simple attachment key.\n\n@param valueClass the value class\n@param <T> the attachment type\n@return the new instance" ]
[ "Filter the URI based on a regular expression.\nCan be combined with an additional file-extension filter.", "Export the modules that should be checked in into git.", "Create a WebDriver backed EmbeddedBrowser.\n\n@param driver The WebDriver to use.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Returns the cost rate table index for this assignment.\n\n@return cost rate table index", "Use this API to change sslcertkey resources.", "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", "Emits a change event for the given document id.\n\n@param nsConfig the configuration for the namespace to which the\ndocument referred to by the change event belongs.\n@param event the change event.", "Use this API to delete appfwjsoncontenttype of given name.", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException" ]
public static nd6ravariables get(nitro_service service, Long vlan) throws Exception{ nd6ravariables obj = new nd6ravariables(); obj.set_vlan(vlan); nd6ravariables response = (nd6ravariables) obj.get_resource(service); return response; }
[ "Use this API to fetch nd6ravariables resource of given name ." ]
[ "Answer true if an Iterator for a Table is already available\n@param aTable\n@return", "Put everything smaller than days at 0\n@param cal calendar to be cleaned", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Renders the given FreeMarker template to given directory, using given variables.", "Creates SLD rules for each old style.", "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost", "Check if the given class represents an array of primitives,\ni.e. boolean, byte, char, short, int, long, float, or double.\n@param clazz the class to check\n@return whether the given class is a primitive array class", "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15" ]
public <T> T getSPI(Class<T> spiType) { return getSPI(spiType, SecurityActions.getContextClassLoader()); }
[ "Gets the specified SPI, using the current thread context classloader\n\n@param <T> type of spi class\n@param spiType spi class to retrieve\n@return object" ]
[ "Initialize the various DAO configurations after the various setters have been called.", "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument", "List the slack values for each task.\n\n@param file ProjectFile instance", "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cached\n@param cache the file into which the metadata cache should be written\n\n@throws Exception if there is a problem communicating with the player or writing the cache file.", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID.", "Returns the average event value in the current interval", "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException", "Print out the template information that the client needs for performing a request.\n\n@param json the writer to write the information to.", "Check the version to assure it is allowed.\n\n@param pluginName plugin name which needs the dependency\n@param dependency dependency which needs to be verified\n@param requestedVersion requested/minimum version\n@param availableVersion available version\n@return version check problem or empty string when all is fine" ]
public Jar setJarPrefix(Path file) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Really executable cannot be set after entries are added."); if (file != null && jarPrefixStr != null) throw new IllegalStateException("A prefix has already been set (" + jarPrefixStr + ")"); this.jarPrefixFile = file; return this; }
[ "Sets a file whose contents will be prepended to the JAR file's data.\n\n@param file the prefix file, or {@code null} for none.\n@return {@code this}" ]
[ "Check whether the given class is cache-safe in the given context,\ni.e. whether it is loaded by the given ClassLoader or a parent of it.\n@param clazz the class to analyze\n@param classLoader the ClassLoader to potentially cache metadata in", "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Resets the state of the scope.\nUseful for automation testing when we want to reset the scope used to install test modules.", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array.", "Finish initialization of the configuration.", "End building the script\n@param config the configuration for the script to build\n@return the new {@link LuaScript} instance" ]
public synchronized void resumeDeployment(final String deployment) { for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { ep.resume(); } } }
[ "resumed a given deployment\n\n@param deployment The deployment to resume" ]
[ "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Not used.", "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", "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data", "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", "returns a sorted array of enum constants", "Generates the path to an output file for a given source URL. Creates\nall necessary parent directories for the destination file.\n@param src the source\n@return the path to the output file", "Adds the given property and value to the constructed reference.\n\n@param propertyIdValue\nthe property to add\n@param value\nthe value to add\n@return builder object to continue construction", "Set work connection.\n\n@param db the db setup bean" ]
int getDelay(int n) { int delay = -1; if ((n >= 0) && (n < header.frameCount)) { delay = header.frames.get(n).delay; } return delay; }
[ "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds." ]
[ "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", "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "Build the crosstab. Throws LayoutException if anything is wrong\n@return", "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "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.", "Validate JUnit4 presence in a concrete version.", "Use this API to add route6 resources.", "Run a task periodically and indefinitely.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@return An interface that lets you query the status; cancel; or\nreschedule the event." ]
public Optional<Project> findProject(String name) throws IllegalArgumentException { if (name == null || name.isEmpty()) { throw new IllegalArgumentException("Project name cannot be empty"); } return getProject(name); }
[ "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException" ]
[ "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data CharBuffer containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Adds an audio source to the audio manager.\nAn audio source cannot be played unless it is\nadded to the audio manager. A source cannot be\nadded twice.\n@param audioSource audio source to add", "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "1-D Backward Discrete Cosine Transform.\n\n@param data Data.", "Classify stdin by senteces seperated by blank line\n@param readerWriter\n@return\n@throws IOException", "a small static helper to set the image from the imageHolder nullSave to the imageView\n\n@param imageHolder\n@param imageView\n@param tag used to identify imageViews and define different placeholders\n@return true if an image was set", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Starts this EventStream and begins long polling the API.\n@throws IllegalStateException if the EventStream is already started.", "Add calendars to the tree.\n\n@param parentNode parent tree node\n@param file calendar container" ]
private void fireEventForNonWebModules(Type eventType, Object event, Annotation... qualifiers) { try { BeanDeploymentModules modules = deploymentManager.getServices().get(BeanDeploymentModules.class); if (modules != null) { // fire event for non-web modules // web modules are handled by HttpContextLifecycle for (BeanDeploymentModule module : modules) { if (!module.isWebModule()) { module.fireEvent(eventType, event, qualifiers); } } } } catch (Exception ignored) { } }
[ "Fires given event for non-web modules. Used for @BeforeDestroyed and @Destroyed events." ]
[ "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track.", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Attachments are only structurally different if one step has an inline attachment\nand the other step either has no inline attachment or the inline attachment is\ndifferent.", "Converts a Fluo Span to Accumulo Range\n\n@param span Span\n@return Range", "Print a task type.\n\n@param value TaskType instance\n@return task type value", "Returns a configured transformer to write XML.\n\n@return the XML configured transformer\n@throws SpinXmlElementException if no new transformer can be created", "Create an index of base font numbers and their associated base\nfont instances.\n@param data property data", "Expands all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start expanding parents\n@param parentCount The number of parents to expand", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list\n@param newValue - the new String" ]
private static void parseRessource(ArrayList<Shape> shapes, HashMap<String, JSONObject> flatJSON, String resourceId, Boolean keepGlossaryLink) throws JSONException { JSONObject modelJSON = flatJSON.get(resourceId); Shape current = getShapeWithId(modelJSON.getString("resourceId"), shapes); parseStencil(modelJSON, current); parseProperties(modelJSON, current, keepGlossaryLink); parseOutgoings(shapes, modelJSON, current); parseChildShapes(shapes, modelJSON, current); parseDockers(modelJSON, current); parseBounds(modelJSON, current); parseTarget(shapes, modelJSON, current); }
[ "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException" ]
[ "Print currency.\n\n@param value currency value\n@return currency value", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\n@param namespace namespace for the document\n@param documentId the id of the document to resume syncing\n@return true if successfully resumed, false if the document\ncould not be found or there was an error resuming", "Extract and return the table name for a class.", "convolution data type", "Applies the given filter to each of the given elems, and returns the\nlist of elems that were accepted. The runtime type of the returned\narray is the same as the passed in array.", "Record a new event.", "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any interval of the partition, this method returns x.\n\n@param x The point of interest.\n@return The discretized value." ]
public void setDoubleAttribute(String name, Double value) { ensureAttributes(); Attribute attribute = new DoubleAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
[ "Sets the specified double attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
[ "Callback from the worker when it terminates", "Normalize the list of selected categories to fit for the ids of the tree items.", "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable", "Returns the value of the indicated property of the current object on the specified level.\n\n@param level The level\n@param name The name of the property\n@return The property value", "Select calendar data from the database.\n\n@throws SQLException", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "GetJob helper - String predicates are all created the same way, so this factors some code.", "Builds a new instance for the class represented by the given class descriptor.\n\n@param cld The class descriptor\n@return The instance", "Setter for the file format.\n@param fileFormat File format the configuration file is in." ]
@PostConstruct public final void init() throws URISyntaxException { final String address = getConfig(ADDRESS, null); if (address != null) { final URI uri = new URI("udp://" + address); final String prefix = getConfig(PREFIX, "mapfish-print").replace("%h", getHostname()); final int period = Integer.parseInt(getConfig(PERIOD, "10")); LOGGER.info("Starting a StatsD reporter targeting {} with prefix {} and period {}s", uri, prefix, period); this.reporter = StatsDReporter.forRegistry(this.metricRegistry) .prefixedWith(prefix) .build(uri.getHost(), uri.getPort()); this.reporter.start(period, TimeUnit.SECONDS); } }
[ "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException" ]
[ "This method retrieves a byte array containing the data at the\ngiven offset in the block. If no data is found at the given offset\nthis method returns null.\n\n@param offset offset of required data\n@return byte array containing required data", "Retrieve the default number of minutes per year.\n\n@return minutes per year", "Returns a set of the distinct colours used in this image.\n\n@return the set of distinct Colors", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Use this API to restore appfwprofile.", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "Reinitializes the shader texture used to fill in\nthe Circle upon drawing." ]
public boolean removeCustomResponse(String pathValue, String requestType) { try { JSONObject path = getPathFromEndpoint(pathValue, requestType); if (path == null) { return false; } String pathId = path.getString("pathId"); return resetResponseOverride(pathId); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise" ]
[ "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "Compose src onto dst using the alpha of sel to interpolate between the two.\nI can't think of a way to do this using AlphaComposite.\n@param src the source raster\n@param dst the destination raster\n@param sel the mask raster", "Remove a DropPasteWorker from the helper.\n@param worker the worker that should be removed", "perform the actual matching", "Exit the Application", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Adds BETWEEN criteria,\ncustomer_id between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "Obtains a local date in Coptic 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 Coptic local date, not null\n@throws DateTimeException if unable to create the date" ]
private long getTotalTime(ProjectCalendarDateRanges exception) { long total = 0; for (DateRange range : exception) { total += getTime(range.getStart(), range.getEnd()); } return (total); }
[ "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds" ]
[ "Perform a security check against OpenCms.\n\n@param cms The OpenCms object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "Set a knot blend type.\n@param n the knot index\n@param type the knot blend type\n@see #getKnotBlend", "Accessor method used to retrieve an Duration object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Creates a new status update on the project.\n\nReturns the full record of the newly created project status update.\n\n@param project The project on which to create a status update.\n@return Request object", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "A modified version of abs that always returns a non-negative value.\nMath.abs returns Integer.MIN_VALUE if a == Integer.MIN_VALUE and this\nmethod returns Integer.MAX_VALUE in that case.", "Starts data synchronization in a background thread.", "Entry point for processing filter definitions.\n\n@param properties project properties\n@param filters project filters\n@param fixedData filter fixed data\n@param varData filter var data" ]
public final void notifyContentItemRangeInserted(int positionStart, int itemCount) { int newHeaderItemCount = getHeaderItemCount(); int newContentItemCount = getContentItemCount(); if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > newContentItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for content items [0 - " + (newContentItemCount - 1) + "]."); } notifyItemRangeInserted(positionStart + newHeaderItemCount, itemCount); }
[ "Notifies that multiple content items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "Set an enterprise text value.\n\n@param index text index (1-40)\n@param value text value", "Begin writing a named object attribute.\n\n@param name attribute name", "Returns the JSON datatype for the property datatype as represented by\nthe given WDTK datatype IRI string.\n\n@param datatypeIri\nthe WDTK datatype IRI string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "Returns the setter method for the field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@param argumentType\nthe type to be passed to the setter\n@param <T>\nthe object type\n@return the setter method associated with the field on the object\n@throws NullPointerException\nif object, fieldName or fieldType is null\n@throws SuperCsvReflectionException\nif the setter doesn't exist or is not visible", "Returns all values that can be selected in the widget.\n@param cms the current CMS object\n@param rootPath the root path to the currently edited xml file (sitemap config)\n@param allRemoved flag, indicating if all inheritedly available formatters should be disabled\n@return all values that can be selected in the widget.", "Returns the adapter position of the Parent associated with this ParentViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled." ]
public static Cluster swapGreedyRandomPartitions(final Cluster nextCandidateCluster, final List<Integer> nodeIds, final int greedySwapMaxPartitionsPerNode, final int greedySwapMaxPartitionsPerZone, List<StoreDefinition> storeDefs) { System.out.println("GreedyRandom : nodeIds:" + nodeIds); Cluster returnCluster = Cluster.cloneCluster(nextCandidateCluster); double currentUtility = new PartitionBalance(returnCluster, storeDefs).getUtility(); int nodeIdA = -1; int nodeIdB = -1; int partitionIdA = -1; int partitionIdB = -1; for(int nodeIdAPrime: nodeIds) { System.out.println("GreedyRandom : processing nodeId:" + nodeIdAPrime); List<Integer> partitionIdsAPrime = new ArrayList<Integer>(); partitionIdsAPrime.addAll(returnCluster.getNodeById(nodeIdAPrime).getPartitionIds()); Collections.shuffle(partitionIdsAPrime); int maxPartitionsInAPrime = Math.min(greedySwapMaxPartitionsPerNode, partitionIdsAPrime.size()); for(int offsetAPrime = 0; offsetAPrime < maxPartitionsInAPrime; offsetAPrime++) { Integer partitionIdAPrime = partitionIdsAPrime.get(offsetAPrime); List<Pair<Integer, Integer>> partitionIdsZone = new ArrayList<Pair<Integer, Integer>>(); for(int nodeIdBPrime: nodeIds) { if(nodeIdBPrime == nodeIdAPrime) continue; for(Integer partitionIdBPrime: returnCluster.getNodeById(nodeIdBPrime) .getPartitionIds()) { partitionIdsZone.add(new Pair<Integer, Integer>(nodeIdBPrime, partitionIdBPrime)); } } Collections.shuffle(partitionIdsZone); int maxPartitionsInZone = Math.min(greedySwapMaxPartitionsPerZone, partitionIdsZone.size()); for(int offsetZone = 0; offsetZone < maxPartitionsInZone; offsetZone++) { Integer nodeIdBPrime = partitionIdsZone.get(offsetZone).getFirst(); Integer partitionIdBPrime = partitionIdsZone.get(offsetZone).getSecond(); Cluster swapResult = swapPartitions(returnCluster, nodeIdAPrime, partitionIdAPrime, nodeIdBPrime, partitionIdBPrime); double swapUtility = new PartitionBalance(swapResult, storeDefs).getUtility(); if(swapUtility < currentUtility) { currentUtility = swapUtility; System.out.println(" -> " + currentUtility); nodeIdA = nodeIdAPrime; partitionIdA = partitionIdAPrime; nodeIdB = nodeIdBPrime; partitionIdB = partitionIdBPrime; } } } } if(nodeIdA == -1) { return returnCluster; } return swapPartitions(returnCluster, nodeIdA, partitionIdA, nodeIdB, partitionIdB); }
[ "For each node in specified zones, tries swapping some minimum number of\nrandom partitions per node with some minimum number of random partitions\nfrom other specified nodes. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This may get very expensive.\n\nSo if a node had partitions P1, P2, P3 and P4 and the other partitions\nset was Q1, Q2, Q3, Q4, Q5 The combinations that will be tried for\nswapping will be the cartesian product of the two sets. That is, {P1,\nQ1}, {P2, Q2}...{P2,Q1}, {P2,Q2}, in total 20 such swap pairs will be\ngenerated. The best among these swap pairs will be chosen.\n\n@param nextCandidateCluster\n@param nodeIds Node IDs within which to shuffle partitions\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param storeDefs\n@return updated cluster" ]
[ "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", "Releases a database connection, and cleans up any resources\nassociated with that connection.", "Loads the columns for this table into the alChildren list.", "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated.", "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive", "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null", "Creates a new Message from the specified text.", "Set the buttons span text.", "Returns true if required properties for FluoAdmin are set" ]
public CollectionRequest<Story> findByTask(String task) { String path = String.format("/tasks/%s/stories", task); return new CollectionRequest<Story>(this, Story.class, path, "GET"); }
[ "Returns the compact records for all stories on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object" ]
[ "Delete rows that match the prepared statement.", "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException", "get the ClassTypeSignature corresponding to given parameterized type\n\n@param parameterizedType\n@return", "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace", "Detects if the current device is a mobile device.\nThis method catches most of the popular modern devices.\nExcludes Apple iPads and other modern tablets.\n@return detection of any mobile device using the quicker method", "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\n@param filename File name of the attachment\n@param description Description of the attachment\n@return New multipart", "Return a long value which is the number of rows in the table.", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Performs all actions that have been configured." ]
public Model interpolateModel(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { interpolateObject(model, model, projectDir, config, problems); return model; }
[ "Empirical data from 3.x, actual =40" ]
[ "Processes changes on aliases, updating the planned state of the item.\n\n@param addAliases\naliases that should be added to the document\n@param deleteAliases\naliases that should be removed from the document", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong", "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Returns any events for the given resource ID since the last sync token\n\n@param resource Globally unique identifier for the resource.\n@param sync Sync token provided by a previous call to the events API\n@return Request object", "Write flow id.\n\n@param message the message\n@param flowId the flow id", "Updates the position and direction of this light from the transform of\nscene object that owns it.", "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", "Awaits at most 5 minutes until all pods meets the given predicate.\n\n@param filter used to wait to detect that a pod is up and running." ]
public Object getObjectByQuery(Query query) throws PersistenceBrokerException { Object result = null; if (query instanceof QueryByIdentity) { // example obj may be an entity or an Identity Object obj = query.getExampleObject(); if (obj instanceof Identity) { Identity oid = (Identity) obj; result = getObjectByIdentity(oid); } else { // TODO: This workaround doesn't allow 'null' for PK fields if (!serviceBrokerHelper().hasNullPKField(getClassDescriptor(obj.getClass()), obj)) { Identity oid = serviceIdentity().buildIdentity(obj); result = getObjectByIdentity(oid); } } } else { Class itemClass = query.getSearchClass(); ClassDescriptor cld = getClassDescriptor(itemClass); /* use OJB intern Iterator, thus we are able to close used resources instantly */ OJBIterator it = getIteratorFromQuery(query, cld); /* arminw: patch by Andre Clute, instead of taking the first found result try to get the first found none null result. He wrote: I have a situation where an item with a certain criteria is in my database twice -- once deleted, and then a non-deleted version of it. When I do a PB.getObjectByQuery(), the RsIterator get's both results from the database, but the first row is the deleted row, so my RowReader filters it out, and do not get the right result. */ try { while (result==null && it.hasNext()) { result = it.next(); } } // make sure that we close the used resources finally { if(it != null) it.releaseDbResources(); } } return result; }
[ "retrieve an Object by query\nI.e perform a SELECT ... FROM ... WHERE ... in an RDBMS" ]
[ "Sets the specified long attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept", "Remove the corresponding object from session AND application cache.", "Sets the whole day flag.\n@param isWholeDay flag, indicating if the event lasts whole days.", "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters", "Parses command-line and checks if metadata is consistent across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Obtains a Symmetry454 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry454 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.", "Build a String representation of given arguments." ]
public static HorizontalBandAlignment buildAligment(byte aligment){ if (aligment == RIGHT.getAlignment()) return RIGHT; else if (aligment == LEFT.getAlignment()) return LEFT; else if (aligment == CENTER.getAlignment()) return CENTER; return LEFT; }
[ "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return" ]
[ "Check, if the current user has permissions on the document's resource.\n@param cms the context\n@param doc the solr document (from the search result)\n@param filter the resource filter to use for checking permissions\n@return <code>true</code> iff the resource mirrored by the search result can be read by the current user.", "Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException", "Method indicating whether a day is a working or non-working day.\n\n@param day required day\n@return true if this is a working day", "Declares a fresh Builder to copy default property values from.\n\n<p>Reuses an existing fresh Builder instance if one was already declared in this scope.\n\n@returns a variable holding a fresh Builder, if a no-args factory method is available to\ncreate one with", "This function interprets the arguments of the main function. By doing\nthis it will set flags for the dump generation. See in the help text for\nmore specific information about the options.\n\n@param args\narray of arguments from the main function.\n@return list of {@link DumpProcessingOutputAction}", "Create a string from bytes using the given encoding\n\n@param bytes The bytes to create a string from\n@param encoding The encoding of the string\n@return The created string", "Use this API to add dnsaaaarec.", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override." ]
@PostConstruct public void init() { this.metricRegistry.register(name("gc"), new GarbageCollectorMetricSet()); this.metricRegistry.register(name("memory"), new MemoryUsageGaugeSet()); this.metricRegistry.register(name("thread-states"), new ThreadStatesGaugeSet()); this.metricRegistry.register(name("fd-usage"), new FileDescriptorRatioGauge()); }
[ "Add several jvm metrics." ]
[ "This method extracts data for an exception day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data", "Calculate Median value.\n@param values Values.\n@return Median.", "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "Use this API to delete appfwjsoncontenttype resources of given names.", "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails", "Naive implementation of the difference in days between two dates", "Should use as destroy method. Disconnects from a Service Locator server.\nAll endpoints that were registered before are removed from the server.\nSet property locatorClient to null.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Verify store definitions are congruent with cluster definition.\n\n@param cluster\n@param storeDefs" ]
@Override public Scenario<GIVEN, WHEN, THEN> startScenario( String description ) { super.startScenario( description ); return this; }
[ "Describes the scenario. Must be called before any step invocation.\n@param description the description\n@return this for a fluent interface" ]
[ "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Parse a version String and add the components to a properties object.\n\n@param version the version to parse", "Answer the foreign key query to retrieve the collection\ndefined by CollectionDescriptor", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Searches for pairs of parentheses and processes blocks inside of them. Embedded parentheses are handled\nwith no problem. On output only a single token should be in tokens.\n@param tokens List of parsed tokens\n@param sequence Sequence of operators", "Singleton of MetaClassRegistry.\n\n@param includeExtension\n@return the registry", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Calls the httpHandler method.", "Use this API to add snmpuser." ]
void recover() { final List<NamespaceSynchronizationConfig> nsConfigs = new ArrayList<>(); for (final MongoNamespace ns : this.syncConfig.getSynchronizedNamespaces()) { nsConfigs.add(this.syncConfig.getNamespaceConfig(ns)); } for (final NamespaceSynchronizationConfig nsConfig : nsConfigs) { nsConfig.getLock().writeLock().lock(); } try { for (final NamespaceSynchronizationConfig nsConfig : nsConfigs) { nsConfig.getLock().writeLock().lock(); try { recoverNamespace(nsConfig); } finally { nsConfig.getLock().writeLock().unlock(); } } } finally { for (final NamespaceSynchronizationConfig nsConfig : nsConfigs) { nsConfig.getLock().writeLock().unlock(); } } }
[ "Recovers the state of synchronization in case a system failure happened. The goal is to revert\nto a known, good state." ]
[ "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Initialize the class if this is being called with Spring.", "Returns all accessible projects of the given organizational unit.\n\nThat is all projects which are owned by the current user or which are\naccessible for the group of the user.<p>\n\n@param cms the opencms context\n@param ouFqn the fully qualified name of the organizational unit to get projects for\n@param includeSubOus if all projects of sub-organizational units should be retrieved too\n\n@return all <code>{@link org.opencms.file.CmsProject}</code> objects in the organizational unit\n\n@throws CmsException if operation was not successful", "crates a StencilSet object and add it to the current diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "The only properties added to a relationship are the columns representing the index of the association.", "The main method called from the command line.\n\n@param args the command line arguments", "Split a module Id to get the module name\n@param moduleId\n@return String", "Convert an object to another object with given type\n\n@param <T>\n@param source\nobject to convert\n@param typeReference\nreference to {@link java.lang.reflect.Type}\n@return the converted object if conversion failed\n@throws ConverterException" ]
public static void acceptsFormat(OptionParser parser) { parser.accepts(OPT_FORMAT, "format of key or entry, could be hex, json or binary") .withRequiredArg() .describedAs("hex | json | binary") .ofType(String.class); }
[ "Adds OPT_FORMAT 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" ]
[ "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "Synthesize and forward a KeyEvent to the library.\n\nThis call is made from the native layer.\n\n@param code id of the button\n@param action integer representing the action taken on the button", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses", "Return the key if there is one else return -1", "Returns the configured page size, or the default page size if it is not configured.\n@return The configured page size, or the default page size if it is not configured.", "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def", "Returns true if the context has access to any given permissions.", "Get the bone index for the given scene object.\n\n@param bone GVRSceneObject bone to search for\n@return bone index or -1 for root bone.\n@see #getParentBoneIndex" ]
public Mapping<T> addFields() { if (idColumn == null) { throw new RuntimeException("Map ID column before adding class fields"); } for (Field f : ReflectionUtils.getDeclaredFieldsInHierarchy(clazz)) { if (!Modifier.isStatic(f.getModifiers()) && !isFieldMapped(f.getName()) && !ignoredFields.contains(f.getName())) { addColumn(f.getName()); } } return this; }
[ "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped." ]
[ "Reads a \"date-time\" argument from the request.", "Adds title and subtitle to the TitleBand when it applies.\nIf title is not present then subtitle will be ignored", "Set the individual dates where the event should take place.\n@param dates the dates to set.", "Creates the \"Add key\" button.\n@return the \"Add key\" button.", "Answer the SQL-Clause for a SelectionCriteria\nIf the Criteria references a class with extents an OR-Clause is\nadded for each extent\n@param c SelectionCriteria", "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names.", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", "Convert a geometry class to a layer type.\n\n@param geometryClass\nJTS geometry class\n@return Geomajas layer type", "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges" ]
public static void main(String[] args) throws ParseException, IOException { Client client = new Client( new DumpProcessingController("wikidatawiki"), args); client.performActions(); }
[ "Launches the client with the specified parameters.\n\n@param args\ncommand line parameters\n@throws ParseException\n@throws IOException" ]
[ "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Assign to the data object the val corresponding to the fieldType.", "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Common method for creating styles.\n\n@param template the template that the map is part of\n@param styleRef the style ref identifying the style\n@param <T> the source type", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Updates the information about this weblink with any info fields that have been modified locally.\n\n<p>The only fields that will be updated are the ones that have been modified locally. For example, the following\ncode won't update any information (or even send a network request) since none of the info's fields were\nchanged:</p>\n\n<pre>BoxWebLink webLink = new BoxWebLink(api, id);\nBoxWebLink.Info info = webLink.getInfo();\nwebLink.updateInfo(info);</pre>\n\n@param info the updated info.", "Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException" ]
public ValueContainer[] getKeyValues(ClassDescriptor cld, Identity oid, boolean convertToSql) throws PersistenceBrokerException { FieldDescriptor[] pkFields = cld.getPkFields(); ValueContainer[] result = new ValueContainer[pkFields.length]; Object[] pkValues = oid.getPrimaryKeyValues(); try { for(int i = 0; i < result.length; i++) { FieldDescriptor fd = pkFields[i]; Object cv = pkValues[i]; if(convertToSql) { // BRJ : apply type and value mapping cv = fd.getFieldConversion().javaToSql(cv); } result[i] = new ValueContainer(cv, fd.getJdbcType()); } } catch(Exception e) { throw new PersistenceBrokerException("Can't generate primary key values for given Identity " + oid, e); } return result; }
[ "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException" ]
[ "Append this message to the message set\n@param messages message to append\n@return the written size and first offset\n@throws IOException file write exception", "Use this API to fetch the statistics of all service_stats resources that are configured on netscaler.", "converts a java.net.URI to a decoded string", "The read timeout for the underlying URLConnection to the twitter stream.", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions", "Seeks to the given season within the given year\n\n@param seasonString\n@param yearString", "Opens the jar, wraps any IOException.", "Adds new holes to the polygon.\n\n@param holes holes, must be contained in the exterior ring and must not overlap or\nintersect another hole\n@return this for chaining", "Get the root path where the build is located, the project may be checked out to\na sub-directory from the root workspace location.\n\n@param globalEnv EnvVars to take the workspace from, if workspace is not found\nthen it is take from project.getSomeWorkspace()\n@return The location of the root of the Gradle build.\n@throws IOException\n@throws InterruptedException" ]