query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private static void verifyJUnit4Present() { try { Class<?> clazz = Class.forName("org.junit.runner.Description"); if (!Serializable.class.isAssignableFrom(clazz)) { JvmExit.halt(SlaveMain.ERR_OLD_JUNIT); } } catch (ClassNotFoundException e) { JvmExit.halt(SlaveMain.ERR_NO_JUNIT); } }
[ "Verify JUnit presence and version." ]
[ "Sets the background color of the scene rendered by this camera.\n\nIf you don't set the background color, the default is an opaque black.\nMeaningful parameter values are from 0 to 1, inclusive: values\n{@literal < 0} are clamped to 0; values {@literal > 1} are clamped to 1.", "we can't call this method 'of', cause it won't compile on JDK7", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "Creates the .story file necessary for every Beast Test Case.\n\n@param scenarioName\n- The name of the scenario, with spaces\n@param srcTestRootFolder\n- The test root folder\n@param packagePath\n- The package of the BeastTestCase\n@param scenarioDescription\n- the scenario name\n@param givenDescription\n- The given description\n@param whenDescription\n- The when description\n@param thenDescription\n- The then description\n@throws BeastException", "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", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone." ]
public static KnowledgeBuilderConfiguration newKnowledgeBuilderConfiguration(Properties properties, ClassLoader... classLoaders) { return FactoryServiceHolder.factoryService.newKnowledgeBuilderConfiguration( properties, classLoaders ); }
[ "Create a KnowledgeBuilderConfiguration on which properties can be set. Use\nthe given properties file and ClassLoader - either of which can be null.\n@return\nThe KnowledgeBuilderConfiguration." ]
[ "Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "This method extracts calendar data from a Planner file.\n\n@param project Root node of the Planner file", "compute Exp using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup.", "Draws the specified image with the first rectangle's bounds, clipping with the second one.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds\n@param opacity opacity of the image (1 = opaque, 0= transparent)", "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." ]
@SuppressWarnings("unchecked") public T toObject(byte[] bytes) { try { return (T) new ObjectInputStream(new ByteArrayInputStream(bytes)).readObject(); } catch(IOException e) { throw new SerializationException(e); } catch(ClassNotFoundException c) { throw new SerializationException(c); } }
[ "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed" ]
[ "Write 'properties' map to given log in given level - with pipe separator between each entry\nWrite exception stack trace to 'logger' in 'error' level, if not empty\n@param logger\n@param level - of logging", "Use this API to convert sslpkcs8.", "Resamples a trajectory\n@param t Trajectory to resample\n@param n Resample rate\n@return Returns a resampled trajectory which contains every n'th position of t", "Emit a string event with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the specified\nstring value given the listeners has the matching argument list.\n\nFor example, suppose we have the following simple event listener methods:\n\n```java\n{@literal @}On(\"USER-LOGIN\")\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void checkDuplicateLoginAttempts(User user, Object... args) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void foo(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(\"USER-LOGIN\", user, System.currentTimeMills());\n```\n\nThe `foo(User)` will not invoked because:\n\n* The parameter list `(User, long)` does not match the declared argument list `(User)`.\nHere the `String` in the parameter list is taken out because it is used to indicate\nthe event, instead of being passing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(User, Object ...)` will be invoked because\nit declares a varargs typed arguments, meaning it matches any parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Unregister the mgmt channel.\n\n@param old the proxy controller to unregister\n@param shuttingDown whether the server inventory is shutting down\n@return whether the registration can be removed from the domain-controller", "Use this API to save cacheobject.", "Build a valid datastore URL.", "Closes the JDBC statement and its associated connection.", "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
public Profile add(String profileName) throws Exception { Profile profile = new Profile(); int id = -1; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { Clob clobProfileName = sqlService.toClob(profileName, sqlConnection); statement = sqlConnection.prepareStatement( "INSERT INTO " + Constants.DB_TABLE_PROFILE + "(" + Constants.PROFILE_PROFILE_NAME + ") " + " VALUES (?)", PreparedStatement.RETURN_GENERATED_KEYS ); statement.setClob(1, clobProfileName); statement.executeUpdate(); results = statement.getGeneratedKeys(); if (results.next()) { id = results.getInt(1); } else { // something went wrong throw new Exception("Could not add client"); } results.close(); statement.close(); statement = sqlConnection.prepareStatement("INSERT INTO " + Constants.DB_TABLE_CLIENT + "(" + Constants.CLIENT_CLIENT_UUID + "," + Constants.CLIENT_IS_ACTIVE + "," + Constants.CLIENT_PROFILE_ID + ") " + " VALUES (?, ?, ?)"); statement.setString(1, Constants.PROFILE_CLIENT_DEFAULT_ID); statement.setBoolean(2, false); statement.setInt(3, id); statement.executeUpdate(); profile.setName(profileName); profile.setId(id); } catch (SQLException e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return profile; }
[ "Add a new profile with the profileName given.\n\n@param profileName name of new profile\n@return newly created profile\n@throws Exception exception" ]
[ "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.", "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 polling state from a DELETE or POST operation.\n\n@param response the response from Retrofit REST call\n@throws IOException thrown by deserialization", "Sets the left padding character for all cells in the table.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Release the connection back to the pool.\n\n@throws SQLException Never really thrown", "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type", "Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.\nImportDeclarationFilter of the Linker.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Sets test status.", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs." ]
private void readCalendars(Project project, HashMap<BigInteger, ProjectCalendar> map) { Project.Calendars calendars = project.getCalendars(); if (calendars != null) { LinkedList<Pair<ProjectCalendar, BigInteger>> baseCalendars = new LinkedList<Pair<ProjectCalendar, BigInteger>>(); for (Project.Calendars.Calendar cal : calendars.getCalendar()) { readCalendar(cal, map, baseCalendars); } updateBaseCalendarNames(baseCalendars, map); } try { ProjectProperties properties = m_projectFile.getProjectProperties(); BigInteger calendarID = new BigInteger(properties.getDefaultCalendarName()); ProjectCalendar calendar = map.get(calendarID); m_projectFile.setDefaultCalendar(calendar); } catch (Exception ex) { // Ignore exceptions } }
[ "This method extracts calendar data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param map Map of calendar UIDs to names" ]
[ "Sort and order steps to avoid unwanted generation", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none.", "For given field name get the actual hint message", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the highest to the lowest score.\nDescending lexicographical 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", "Find a Constructor on the given type that matches the given arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a Constructor from the given type that matches the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments", "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "We are adding a redeploy operation step for each specified deployment runtime name.\n\n@param context\n@param deploymentsRootAddress\n@param deploymentNames\n@throws OperationFailedException", "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", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong" ]
protected String getIsolationLevelAsString() { if (defaultIsolationLevel == IL_READ_UNCOMMITTED) { return LITERAL_IL_READ_UNCOMMITTED; } else if (defaultIsolationLevel == IL_READ_COMMITTED) { return LITERAL_IL_READ_COMMITTED; } else if (defaultIsolationLevel == IL_REPEATABLE_READ) { return LITERAL_IL_REPEATABLE_READ; } else if (defaultIsolationLevel == IL_SERIALIZABLE) { return LITERAL_IL_SERIALIZABLE; } else if (defaultIsolationLevel == IL_OPTIMISTIC) { return LITERAL_IL_OPTIMISTIC; } return LITERAL_IL_READ_UNCOMMITTED; }
[ "returns IsolationLevel literal as matching\nto the corresponding id\n@return the IsolationLevel literal" ]
[ "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException", "Post boolean flag \"DO_NOT_USE\" to an artifact\n\n@param gavc\n@param doNotUse\n@param user\n@param password\n@throws GrapesCommunicationException", "Sets the currently edited locale.\n@param locale the locale to set.", "Sorts the fields.", "This method is called if the data set has been scrolled.", "Attempt to reconnect to Redis.\n\n@param jedis\nthe connection to Redis\n@param reconAttempts\nnumber of times to attempt to reconnect before giving up\n@param reconnectSleepTime\ntime in milliseconds to wait between attempts\n@return true if reconnection was successful", "Authenticates the API connection for Box Developer Edition.", "Get the last modified time for a set of files.", "Finds the maximum abs in each column of A and stores it into values\n@param A (Input) Matrix\n@param values (Output) storage for column max abs" ]
public List<CmsJspNavElement> getSubNavigation() { if (m_subNavigation == null) { if (m_resource.isFile()) { m_subNavigation = Collections.emptyList(); } else if (m_navContext == null) { try { throw new Exception("Can not get subnavigation because navigation context is not set."); } catch (Exception e) { LOG.warn(e.getLocalizedMessage(), e); m_subNavigation = Collections.emptyList(); } } else { CmsJspNavBuilder navBuilder = m_navContext.getNavBuilder(); m_subNavigation = navBuilder.getNavigationForFolder( navBuilder.getCmsObject().getSitePath(m_resource), m_navContext.getVisibility(), m_navContext.getFilter()); } } return m_subNavigation; }
[ "Gets the sub-entries of the navigation entry.\n\n@return the sub-entries" ]
[ "Add a path to a profile, returns the id\n\n@param id ID of profile\n@param pathname name of path\n@param actualPath value of path\n@return ID of path created\n@throws Exception exception", "Returns the configured page sizes, or the default page size if no core is configured.\n@return The configured page sizes, or the default page size if no core is configured.", "Returns the List value of the field.\n\n@return the List value of the field. It returns a reference of the value if the type is <code>LIST</code>, if\nthe type is <code>LIST_MAP</code> it returns a copy of the value.\n@throws IllegalArgumentException if the value cannot be converted to List.", "Mark for creation all objects that were included into dependent collections.\nMark for deletion all objects that were excluded from dependent collections.", "Join N sets.", "Use this API to fetch dbdbprofile resource of given name .", "This is needed when running on slaves.", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "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" ]
private float[] generateParticleVelocities() { float [] particleVelocities = new float[mEmitRate * 3]; Vector3f temp = new Vector3f(0,0,0); for ( int i = 0; i < mEmitRate * 3 ; i +=3 ) { temp.x = mParticlePositions[i]; temp.y = mParticlePositions[i+1]; temp.z = mParticlePositions[i+2]; float velx = mRandom.nextFloat() * (maxVelocity.x- minVelocity.x) + minVelocity.x; float vely = mRandom.nextFloat() * (maxVelocity.y - minVelocity.y) + minVelocity.y; float velz = mRandom.nextFloat() * (maxVelocity.z - minVelocity.z) + minVelocity.z; temp = temp.normalize(); temp.mul(velx, vely, velz, temp); particleVelocities[i] = temp.x; particleVelocities[i+1] = temp.y; particleVelocities[i+2] = temp.z; } return particleVelocities; }
[ "Generate random velocities for every particle. The direction is obtained by assuming\nthe position of a particle as a vector. This normalised vector is scaled by\nthe speed range.\n\n@return" ]
[ "Verifies that the given query can be properly scattered.\n\n@param query the query to verify\n@throws IllegalArgumentException if the query is invalid.", "Use this API to clear nsconfig.", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>", "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Determine the enum value corresponding to the first play state found in the packet.\n\n@return the proper value", "Shutdown each AHC client in the map.", "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens" ]
public static String extractFromResourceId(String id, String identifier) { if (id == null || identifier == null) { return id; } Pattern pattern = Pattern.compile(identifier + "/[-\\w._]+"); Matcher matcher = pattern.matcher(id); if (matcher.find()) { return matcher.group().split("/")[1]; } else { return null; } }
[ "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier" ]
[ "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name .", "Validates an operation against its description provider\n\n@param operation The operation to validate\n@throws IllegalArgumentException if the operation is not valid", "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON", "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data", "Get the remote address.\n\n@return the remote address, {@code null} if not available", "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "Call when you are done with the client\n\n@throws Exception", "Convert from a DTO to an internal Spring bean definition.\n\n@param beanDefinitionDto The DTO object.\n@return Returns a Spring bean definition.", "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current active layout" ]
public String getName() { GVRSceneObject owner = getOwnerObject(); String name = ""; if (owner != null) { name = owner.getName(); if (name == null) return ""; } return name; }
[ "Returns the name of the bone.\n\n@return the name" ]
[ "Read an optional month value form a JSON value.\n@param val the JSON value that should represent the month.\n@return the month from the JSON or null if reading the month fails.", "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date", "Create a temporary directory under a given workspace", "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Extracts a numeric id from a string, which can be either a Wikidata\nentity URI or a short entity or property id.\n\n@param idString\n@param isUri\n@return numeric id, or 0 if there was an error", "Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it being in the list and false for it not being in the list", "Get the waveform details available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the details associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running or requesting waveform details", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove" ]
public void addIterator(OJBIterator iterator) { /** * only add iterators that are not null and non-empty. */ if (iterator != null) { if (iterator.hasNext()) { setNextIterator(); m_rsIterators.add(iterator); } } }
[ "use this method to construct the ChainingIterator\niterator by iterator." ]
[ "Creates a Bytes object by copying the value of the given String with a given charset", "Notifies that multiple footer items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Inserts the LokenList immediately following the 'before' token", "Use this API to add vpnsessionaction.", "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data", "Will make the thread ready to run once again after it has stopped.", "Given a method node, checks if we are calling a private method from an inner class.", "Returns all entries in no particular order.", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded" ]
private void storeToDb(Object obj, ClassDescriptor cld, Identity oid, boolean insert, boolean ignoreReferences) { // 1. link and store 1:1 references storeReferences(obj, cld, insert, ignoreReferences); Object[] pkValues = oid.getPrimaryKeyValues(); if (!serviceBrokerHelper().assertValidPksForStore(cld.getPkFields(), pkValues)) { // BRJ: fk values may be part of pk, but the are not known during // creation of Identity. so we have to get them here pkValues = serviceBrokerHelper().getKeyValues(cld, obj); if (!serviceBrokerHelper().assertValidPksForStore(cld.getPkFields(), pkValues)) { String append = insert ? " on insert" : " on update" ; throw new PersistenceBrokerException("assertValidPkFields failed for Object of type: " + cld.getClassNameOfObject() + append); } } // get super class cld then store it with the object /* now for multiple table inheritance 1. store super classes, topmost parent first 2. go down through heirarchy until current class 3. todo: store to full extent? // arminw: TODO: The extend-attribute feature dosn't work, should we remove this stuff? This if-clause will go up the inheritance heirarchy to store all the super classes. The id for the top most super class will be the id for all the subclasses too */ if(cld.getSuperClass() != null) { ClassDescriptor superCld = getDescriptorRepository().getDescriptorFor(cld.getSuperClass()); storeToDb(obj, superCld, oid, insert); // arminw: why this?? I comment out this section // storeCollections(obj, cld.getCollectionDescriptors(), insert); } // 2. store primitive typed attributes (Or is THIS step 3 ?) // if obj not present in db use INSERT if (insert) { dbAccess.executeInsert(cld, obj); if(oid.isTransient()) { // Create a new Identity based on the current set of primary key values. oid = serviceIdentity().buildIdentity(cld, obj); } } // else use UPDATE else { try { dbAccess.executeUpdate(cld, obj); } catch(OptimisticLockException e) { // ensure that the outdated object be removed from cache objectCache.remove(oid); throw e; } } // cache object for symmetry with getObjectByXXX() // Add the object to the cache. objectCache.doInternalCache(oid, obj, ObjectCacheInternal.TYPE_WRITE); // 3. store 1:n and m:n associations if(!ignoreReferences) storeCollections(obj, cld, insert); }
[ "I pulled this out of internal store so that when doing multiple table\ninheritance, i can recurse this function.\n\n@param obj\n@param cld\n@param oid BRJ: what is it good for ???\n@param insert\n@param ignoreReferences" ]
[ "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "Update a feature object in the Hibernate session.\n\n@param feature feature object\n@throws LayerException oops", "Writes the data collected about properties to a file.", "Runs intermediate check on the Assembly status until it is finished executing,\nthen returns it as a response.\n\n@return {@link AssemblyResponse}\n@throws LocalOperationException if something goes wrong while running non-http operations.\n@throws RequestException if request to Transloadit server fails.", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.reflect.Type of the resource.\n@return the terminal response for the operation.\n@throws CloudException REST exception\n@throws InterruptedException interrupted exception\n@throws IOException thrown by deserialization", "Returns true if the grammar element that is associated with the given param is filtered due to guard conditions\nof parameterized rules in the current call stack.\n\nIf the grammar element is the only element contained in a group, its container is checked, too.\n\n@see #isFiltered(AbstractElement, Param)", "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface", "Deserialize a directory of javascript design documents to a List of DesignDocument objects.\n\n@param directory the directory containing javascript files\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Processes the template for all indices of the current table.\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=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"" ]
private void deliverCacheUpdate(SlotReference slot, MetadataCache cache) { for (final MetadataCacheListener listener : getCacheListeners()) { try { if (cache == null) { listener.cacheDetached(slot); } else { listener.cacheAttached(slot, cache); } } catch (Throwable t) { logger.warn("Problem delivering metadata cache update to listener", t); } } }
[ "Send a metadata cache update announcement to all registered listeners.\n\n@param slot the media slot whose cache status has changed\n@param cache the cache which has been attached, or, if {@code null}, the previous cache has been detached" ]
[ "Rename with retry.\n\n@param from\n@param to\n@return <tt>true</tt> if the file was successfully renamed.", "Throws an IllegalStateException when the given value is not false.", "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Read task data from a PEP file.", "Get the names of the currently registered format providers.\n\n@return the provider names, never null.", "Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number", "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Process the next event in a given stream.\n@return the fully processed event\n@throws IOException if a stream is in the wrong state, IO errors can be thrown" ]
public void setExplicitTime(String hours, String minutes, String seconds, String amPm, String zoneString) { int hoursInt = Integer.parseInt(hours); int minutesInt = minutes != null ? Integer.parseInt(minutes) : 0; assert(amPm == null || amPm.equals(AM) || amPm.equals(PM)); assert(hoursInt >= 0); assert(minutesInt >= 0 && minutesInt < 60); markTimeInvocation(amPm); // reset milliseconds to 0 _calendar.set(Calendar.MILLISECOND, 0); // if no explicit zone is given, we use our own TimeZone zone = null; if(zoneString != null) { if(zoneString.startsWith(PLUS) || zoneString.startsWith(MINUS)) { zoneString = GMT + zoneString; } zone = TimeZone.getTimeZone(zoneString); } _calendar.setTimeZone(zone != null ? zone : _defaultTimeZone); _calendar.set(Calendar.HOUR_OF_DAY, hoursInt); // hours greater than 12 are in 24-hour time if(hoursInt <= 12) { int amPmInt = amPm == null ? (hoursInt >= 12 ? Calendar.PM : Calendar.AM) : amPm.equals(PM) ? Calendar.PM : Calendar.AM; _calendar.set(Calendar.AM_PM, amPmInt); // calendar is whacky at 12 o'clock (must use 0) if(hoursInt == 12) hoursInt = 0; _calendar.set(Calendar.HOUR, hoursInt); } if(seconds != null) { int secondsInt = Integer.parseInt(seconds); assert(secondsInt >= 0 && secondsInt < 60); _calendar.set(Calendar.SECOND, secondsInt); } else { _calendar.set(Calendar.SECOND, 0); } _calendar.set(Calendar.MINUTE, minutesInt); }
[ "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)" ]
[ "Check config.\n\n@param context the context\n@return true, if successful\n@throws Exception the exception", "Update server mapping's host header\n\n@param serverMappingId ID of server mapping\n@param hostHeader value of host header\n@return updated ServerRedirect", "Returns the index of the eigenvalue which has the smallest magnitude.\n\n@return index of the smallest magnitude eigen value.", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "Use this API to add sslcipher.", "Build a query to read the mn-implementors\n@param ids", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed", "This method can be used by child classes to apply the configuration that is stored in config." ]
public void setNewCenterColor(int color) { mCenterNewColor = color; mCenterNewPaint.setColor(color); if (mCenterOldColor == 0) { mCenterOldColor = color; mCenterOldPaint.setColor(color); } if (onColorChangedListener != null && color != oldChangedListenerColor ) { onColorChangedListener.onColorChanged(color); oldChangedListenerColor = color; } invalidate(); }
[ "Change the color of the center which indicates the new color.\n\n@param color int of the color." ]
[ "Ensures that the given collection descriptor has the collection-class property if necessary.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If collection-class is given for an array or if no collection-class is given but required", "Connects to a child JVM process\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return an {@link MBeanServerConnection} to the process's MBean server", "Adds OPT_X | OPT_HEX option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters\nand callback will get updated.\n\n@param reconnectUri the updated connection uri\n@param authKey the updated authentication key\n@param callback the current callback", "Creates a new RDF serializer based on the current configuration of this\nobject.\n\n@return the newly created RDF serializer\n@throws IOException\nif there were problems opening the output files", "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field", "Sends a request to the API with the given parameters and the given\nrequest method and returns the result string. It automatically fills the\ncookie map with cookies in the result header after the request.\n\nWarning: You probably want to use ApiConnection.sendJsonRequest\nthat execute the request using JSON content format,\nthrows the errors and logs the warnings.\n\n@param requestMethod\neither POST or GET\n@param parameters\nMaps parameter keys to values. Out of this map the function\nwill create a query string for the request.\n@return API result\n@throws IOException", "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid" ]
public void process(DMatrixSparseCSC A , int parent[], int post[], int counts[] ) { if( counts.length < A.numCols ) throw new IllegalArgumentException("counts must be at least of length A.numCols"); initialize(A); int delta[] = counts; findFirstDescendant(parent, post, delta); if( ata ) { init_ata(post); } for (int i = 0; i < n; i++) w[ancestor+i] = i; int[] ATp = At.col_idx; int []ATi = At.nz_rows; for (int k = 0; k < n; k++) { int j = post[k]; if( parent[j] != -1 ) delta[parent[j]]--; // j is not a root for (int J = HEAD(k,j); J != -1; J = NEXT(J)) { for (int p = ATp[J]; p < ATp[J+1]; p++) { int i = ATi[p]; int q = isLeaf(i,j); if( jleaf >= 1) delta[j]++; if( jleaf == 2 ) delta[q]--; } } if( parent[j] != -1 ) w[ancestor+j] = parent[j]; } // sum up delta's of each child for ( int j = 0; j < n; j++) { if( parent[j] != -1) counts[parent[j]] += counts[j]; } }
[ "Processes and computes column counts of A\n\n@param A (Input) Upper triangular matrix\n@param parent (Input) Elimination tree.\n@param post (Input) Post order permutation of elimination tree. See {@link TriangularSolver_DSCC#postorder}\n@param counts (Output) Storage for column counts." ]
[ "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "Invoked periodically.", "Use this API to add appfwjsoncontenttype resources.", "Add an appliable \"post-run\" dependent for this task item.\n\n@param appliable the appliable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated \"post-run\" dependent", "Reads GIF image from byte array.\n\n@param data containing GIF file.\n@return read status code (0 = no errors).", "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", "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster" ]
public static <T> NewSessionBean<T> of(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager) { EnhancedAnnotatedType<T> type = beanManager.getServices().get(ClassTransformer.class).getEnhancedAnnotatedType(ejbDescriptor.getBeanClass(), beanManager.getId()); return new NewSessionBean<T>(attributes, type, ejbDescriptor, new StringBeanIdentifier(SessionBeans.createIdentifierForNew(ejbDescriptor)), beanManager); }
[ "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance" ]
[ "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file", "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.", "Get the axis along the orientation\n@return", "URLDecode a string\n@param s\n@return", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "Checks the preconditions for creating a new ParseDateTimeAbstract processor with date format and locale.\n\n@param dateFormat\nthe date format to use\n@param locale\nthe Locale used to parse the date\n@throws NullPointerException\nif dateFormat or locale is null", "If a policy already exists on a folder, this will apply that policy to all existing files and sub folders within\nthe target folder.\n\n@param conflictResolution the desired behavior for conflict-resolution. Set to either none or overwrite.", "Decompiles the given .class file and creates the specified output source file.\n\n@param classFilePath the .class file to be decompiled.\n@param outputDir The directory where decompiled .java files will be placed.", "Processes the template for all foreignkeys of the current table.\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\"" ]
@Override @Deprecated public List<CardWithActions> getBoardMemberActivity(String boardId, String memberId, String actionFilter, Argument... args) { if (actionFilter == null) actionFilter = "all"; Argument[] argsAndFilter = Arrays.copyOf(args, args.length + 1); argsAndFilter[args.length] = new Argument("actions", actionFilter); return asList(() -> get(createUrl(GET_BOARD_MEMBER_CARDS).params(argsAndFilter).asString(), CardWithActions[].class, boardId, memberId)); }
[ "FIXME Remove this method" ]
[ "When creating image columns\n@return", "Used to finish up pushing the bulge off the matrix.", "Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance", "This method returns the value of the product using a Black-Scholes model for the swap rate\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve on which to value the swap.\n@param swaprateVolatility The Black volatility.\n@return Value of this product", "Creates an association row representing the given entry and adds it to the association managed by the given\npersister.", "Prints the data for a single class to the given stream. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param classRecord\nthe class record to write\n@param entityIdValue\nthe item id that this class record belongs to", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Subtracts vector v1 from v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Returns list of files matches filters in specified directories\n\n@param directories which will using to find files\n@param fileFilter file filter\n@param dirFilter directory filter\n@return list of files matches filters in specified directories" ]
public static auditsyslogpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_vpnglobal_binding obj = new auditsyslogpolicy_vpnglobal_binding(); obj.set_name(name); auditsyslogpolicy_vpnglobal_binding response[] = (auditsyslogpolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name ." ]
[ "Creates a field map for tasks.\n\n@param props props data", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded", "Finds a child resource with the given key.\n\n@param key the child resource key\n@return null if no child resource exists with the given name else the child resource", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "Produces a string identifying this half-edge by the point index values of\nits tail and head vertices.\n\n@return identifying string", "This method converts an offset value into an array index, which in\nturn allows the data present in the fixed block to be retrieved. Note\nthat if the requested offset is not found, then this method returns -1.\n\n@param offset Offset of the data in the fixed block\n@return Index of data item within the fixed data block", "Retrieves a vertex attribute as a float array.\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 #setFloatVec(String, FloatBuffer)\n@see #getFloatArray(String)", "Start the drag operation of a scene object with a rigid body.\n\n@param sceneObject Scene object with a rigid body attached to it.\n@param hitX rel position in x-axis.\n@param hitY rel position in y-axis.\n@param hitZ rel position in z-axis.\n@return true if success, otherwise returns false." ]
public static double blackScholesOptionRho( double initialStockValue, double riskFreeRate, double volatility, double optionMaturity, double optionStrike) { if(optionStrike <= 0.0 || optionMaturity <= 0.0) { // The Black-Scholes model does not consider it being an option return 0.0; } else { // Calculate rho double dMinus = (Math.log(initialStockValue / optionStrike) + (riskFreeRate - 0.5 * volatility * volatility) * optionMaturity) / (volatility * Math.sqrt(optionMaturity)); double rho = optionStrike * optionMaturity * Math.exp(-riskFreeRate * optionMaturity) * NormalDistribution.cumulativeDistribution(dMinus); return rho; } }
[ "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The rho of the option" ]
[ "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "region Override Methods", "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0.", "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segment\n@param rateIndex rate applicable at the start of the timephased work segment\n@return list of segments which replace the one supplied by the caller", "Check if the gravity and orientation are not in conflict one with other.\n@param gravity\n@param orientation\n@return true if orientation and gravity can be applied together, false - otherwise", "Sets the specified starting partition key.\n\n@param paging a paging state", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "refresh all deliveries dependencies for a particular product", "Part of the endOfRun process that needs the database. May be deferred if the database is not available." ]
public static DoubleMatrix expm(DoubleMatrix A) { // constants for pade approximation final double c0 = 1.0; final double c1 = 0.5; final double c2 = 0.12; final double c3 = 0.01833333333333333; final double c4 = 0.0019927536231884053; final double c5 = 1.630434782608695E-4; final double c6 = 1.0351966873706E-5; final double c7 = 5.175983436853E-7; final double c8 = 2.0431513566525E-8; final double c9 = 6.306022705717593E-10; final double c10 = 1.4837700484041396E-11; final double c11 = 2.5291534915979653E-13; final double c12 = 2.8101705462199615E-15; final double c13 = 1.5440497506703084E-17; int j = Math.max(0, 1 + (int) Math.floor(Math.log(A.normmax()) / Math.log(2))); DoubleMatrix As = A.div((double) Math.pow(2, j)); // scaled version of A int n = A.getRows(); // calculate D and N using special Horner techniques DoubleMatrix As_2 = As.mmul(As); DoubleMatrix As_4 = As_2.mmul(As_2); DoubleMatrix As_6 = As_4.mmul(As_2); // U = c0*I + c2*A^2 + c4*A^4 + (c6*I + c8*A^2 + c10*A^4 + c12*A^6)*A^6 DoubleMatrix U = DoubleMatrix.eye(n).muli(c0).addi(As_2.mul(c2)).addi(As_4.mul(c4)).addi( DoubleMatrix.eye(n).muli(c6).addi(As_2.mul(c8)).addi(As_4.mul(c10)).addi(As_6.mul(c12)).mmuli(As_6)); // V = c1*I + c3*A^2 + c5*A^4 + (c7*I + c9*A^2 + c11*A^4 + c13*A^6)*A^6 DoubleMatrix V = DoubleMatrix.eye(n).muli(c1).addi(As_2.mul(c3)).addi(As_4.mul(c5)).addi( DoubleMatrix.eye(n).muli(c7).addi(As_2.mul(c9)).addi(As_4.mul(c11)).addi(As_6.mul(c13)).mmuli(As_6)); DoubleMatrix AV = As.mmuli(V); DoubleMatrix N = U.add(AV); DoubleMatrix D = U.subi(AV); // solve DF = N for F DoubleMatrix F = Solve.solve(D, N); // now square j times for (int k = 0; k < j; k++) { F.mmuli(F); } return F; }
[ "Calculate matrix exponential of a square matrix.\n\nA scaled Pade approximation algorithm is used.\nThe algorithm has been directly translated from Golub & Van Loan \"Matrix Computations\",\nalgorithm 11.3.1. Special Horner techniques from 11.2 are also used to minimize the number\nof matrix multiplications.\n\n@param A square matrix\n@return matrix exponential of A" ]
[ "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Prints a stores xml to a file.\n\n@param outputDirName\n@param fileName\n@param list of storeDefs", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "Returns the corresponding ModuleSpec service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "Processes an anonymous field definition specified at the class level.\n\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"true,false\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[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=\"name\" optional=\"false\" description=\"The name of the field\"\[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\"", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "Set the month.\n@param monthStr the month to set.", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Use this API to update clusternodegroup resources." ]
public static String formatDateRange(Context context, ReadablePartial start, ReadablePartial end, int flags) { return formatDateRange(context, toMillis(start), toMillis(end), flags); }
[ "Formats a date or a time range according to the local conventions.\n\nYou should ensure that start/end are in the same timezone; formatDateRange()\ndoesn't handle start/end in different timezones well.\n\nSee {@link android.text.format.DateUtils#formatDateRange} for full docs.\n\n@param context the context is required only if the time is shown\n@param start the start time\n@param end the end time\n@param flags a bit mask of options\n@return a string containing the formatted date/time range" ]
[ "Use this API to fetch the statistics of all spilloverpolicy_stats resources that are configured on netscaler.", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "Get photos from the user's contacts.\n\nThis method requires authentication with 'read' permission.\n\n@param count\nThe number of photos to return\n@param justFriends\nSet to true to only show friends photos\n@param singlePhoto\nSet to true to get a single photo\n@param includeSelf\nSet to true to include self\n@return The Collection of photos\n@throws FlickrException", "Clears the Parameters before performing a new search.\n@return this.true;", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code", "Performs a null edit on an item. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param itemId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Creates a producer method Web Bean\n\n@param method The underlying method abstraction\n@param declaringBean The declaring bean abstraction\n@param beanManager the current manager\n@return A producer Web Bean", "Set brightness to eg. darken the resulting image for use as background\n\n@param brightness default is 0, pos values increase brightness, neg. values decrease brightness\n.-100 is black, positive goes up to 1000+" ]
public static String getAggregatedResultHuman(Map<String, LinkedHashSet<String>> aggregateResultMap){ StringBuilder res = new StringBuilder(); for (Entry<String, LinkedHashSet<String>> entry : aggregateResultMap .entrySet()) { LinkedHashSet<String> valueSet = entry.getValue(); res.append("[" + entry.getKey() + " COUNT: " +valueSet.size() + " ]:\n"); for(String str: valueSet){ res.append("\t" + str + "\n"); } res.append("###################################\n\n"); } return res.toString(); }
[ "Get the aggregated result human readable string for easy display.\n\n\n@param aggregateResultMap the aggregate result map\n@return the aggregated result human" ]
[ "This function uses a proxy which is capable of transforming typed invocations into proper HTTP calls\nwhich will be understood by RESTful services. This works for subresources as well. Interfaces and\nconcrete classes can be proxified, in the latter case a CGLIB runtime dependency is needed. CXF JAX-RS\nproxies can be configured the same way as HTTP-centric WebClients and response status and headers can\nalso be checked. HTTP response errors can be converted into typed exceptions.", "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException", "Parses a string that contains single fat client config string in avro\nformat\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Properties of single fat client config", "Returns an array of all declared fields in the given class and all\nsuper-classes.", "Adds columns for the specified properties.\n@param _properties the array of <code>PropertyDescriptor</code>s to be added.\n@throws ColumnBuilderException if an error occurs.\n@throws ClassNotFoundException if an error occurs.", "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.)", "Use this API to update snmpalarm resources.", "Updates the polling state from a DELETE or POST operation.\n\n@param response the response from Retrofit REST call\n@throws IOException thrown by deserialization", "Register the given mbean with the server\n\n@param server The server to register with\n@param mbean The mbean to register\n@param name The name to register under" ]
public static DMatrixRMaj copyChangeRow(int order[] , DMatrixRMaj src , DMatrixRMaj dst ) { if( dst == null ) { dst = new DMatrixRMaj(src.numRows,src.numCols); } else if( src.numRows != dst.numRows || src.numCols != dst.numCols ) { throw new IllegalArgumentException("src and dst must have the same dimensions."); } for( int i = 0; i < src.numRows; i++ ) { int indexDst = i*src.numCols; int indexSrc = order[i]*src.numCols; System.arraycopy(src.data,indexSrc,dst.data,indexDst,src.numCols); } return dst; }
[ "Creates a copy of a matrix but swaps the rows as specified by the order array.\n\n@param order Specifies which row in the dest corresponds to a row in the src. Not modified.\n@param src The original matrix. Not modified.\n@param dst A Matrix that is a row swapped copy of src. Modified." ]
[ "Add a BETWEEN clause so the column must be between the low and high parameters.", "Processes the template for all foreignkeys of the current table.\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\"", "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression", "Always returns the original proxy object that was serialized.\n\n@return the proxy object\n@throws java.io.ObjectStreamException", "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().", "Return a html view that contains the targeted license\n\n@param name String\n@return DbLicense", "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment" ]
public FilePath getModuleRoot(Map<String, String> globalEnv) throws IOException, InterruptedException { FilePath someWorkspace = project.getSomeWorkspace(); if (someWorkspace == null) { throw new IllegalStateException("Couldn't find workspace"); } Map<String, String> workspaceEnv = Maps.newHashMap(); workspaceEnv.put("WORKSPACE", someWorkspace.getRemote()); for (Builder builder : getBuilders()) { if (builder instanceof Gradle) { Gradle gradleBuilder = (Gradle) builder; String rootBuildScriptDir = gradleBuilder.getRootBuildScriptDir(); if (rootBuildScriptDir != null && rootBuildScriptDir.trim().length() != 0) { String rootBuildScriptNormalized = Util.replaceMacro(rootBuildScriptDir.trim(), workspaceEnv); rootBuildScriptNormalized = Util.replaceMacro(rootBuildScriptNormalized, globalEnv); return new FilePath(someWorkspace, rootBuildScriptNormalized); } else { return someWorkspace; } } } throw new IllegalArgumentException("Couldn't find Gradle builder in the current builders list"); }
[ "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" ]
[ "Use this API to fetch all the ipv6 resources that are configured on netscaler.", "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.", "Provide array of String results from inputOutput MFString field named string.\n@return value of string field", "Returns the position for a given number of occurrences or NOT_FOUND if\nthis value is not found.\n\n@param nOccurrence\nnumber of occurrences\n@return the position for a given number of occurrences or NOT_FOUND if\nthis value is not found", "Computes the blend weights for the given time and\nupdates them in the target.", "Execute JavaScript in the browser.\n\n@param code The code to execute.\n@return The return value of the JavaScript.\n@throws CrawljaxException when javascript execution failed.", "Call the Coverage Task.", "returns &gt; 0 when o1 is more specific than o2,\n\nreturns == 0 when o1 and o2 are equal or unrelated,\n\nreturns &lt; 0 when o2 is more specific than o1,", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type" ]
private void readSubProjects(byte[] data, int uniqueIDOffset, int filePathOffset, int fileNameOffset, int subprojectIndex) { while (uniqueIDOffset < filePathOffset) { readSubProject(data, uniqueIDOffset, filePathOffset, fileNameOffset, subprojectIndex++); uniqueIDOffset += 4; } }
[ "Read a list of sub projects.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset" ]
[ "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", "Remove a role from the list of defined roles.\n\n@param roleName - The name of the role to be removed.\n@return A key that can be used to undo the removal.", "Parse JSON parameters from this request.\n\n@param jsonRequest The request in the JSON format.\n@return CmsSpellcheckingRequest object that contains parsed parameters or null, if JSON input is not well\ndefined.", "Generates the Base64 encoded SHA-1 hash for content available in the stream.\nIt can be used to calculate the hash of a file.\n@param stream the input stream of the file or data.\n@return the Base64 encoded hash string.", "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "All the indexes defined in the database. Type widening means that the returned Index objects\nare limited to the name, design document and type of the index and the names of the fields.\n\n@return a list of defined indexes with name, design document, type and field names.", "Removes an Object from the cache.", "Returns the y-coordinate of a vertex tangent.\n\n@param vertex the vertex index\n@return the y coordinate", "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder." ]
public void setBREE(String bree) { String old = mainAttributes.get(BUNDLE_REQUIREDEXECUTIONENVIRONMENT); if (!bree.equals(old)) { this.mainAttributes.put(BUNDLE_REQUIREDEXECUTIONENVIRONMENT, bree); this.modified = true; this.bree = bree; } }
[ "Set the main attribute \"Bundle-RequiredExecutionEnvironment\" to the given\nvalue.\n\n@param bree The new value" ]
[ "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException", "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Notifies that a content item is inserted.\n\n@param position the position of the content item.", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "When using a map rotation, there might be tiles that are outside the rotated map area. To avoid to load\nthese tiles, this method checks if a tile is really required to draw the map.", "Output the SQL type for a Java String.", "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described", "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)", "Divide two complex numbers, in-place\n\n@param c complex number to divide this by\n@param result complex number to hold result\n@return same as result" ]
private void readProjectExtendedAttributes(Project project) { Project.ExtendedAttributes attributes = project.getExtendedAttributes(); if (attributes != null) { for (Project.ExtendedAttributes.ExtendedAttribute ea : attributes.getExtendedAttribute()) { readFieldAlias(ea); } } }
[ "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Returns an integer array that contains the default values for all the\ntexture parameters.\n\n@return an integer array that contains the default values for all the\ntexture parameters.", "Publish the bundle resources directly.", "Reads the next \"word from the request, comprising all characters up to the next SPACE.\nCharacters are tested by the supplied CharacterValidator, and an exception is thrown\nif invalid characters are encountered.", "Use this API to fetch a aaaglobal_binding resource .", "Returns an iterator of all direct and indirect extents of this class.\n\n@return The extents iterator", "Given a DocumentVersionInfo, returns a BSON document representing the next version. This means\nand incremented version count for a non-empty version, or a fresh version document for an\nempty version.\n@return a BsonDocument representing a synchronization version", "Run through all maps and remove any references that have been null'd out by the GC.", "Convert an operation for deployment overlays to be executed on local servers.\nSince this might be called in the case of redeployment of affected deployments, we need to take into account\nthe composite op resulting from such a transformation\n@see AffectedDeploymentOverlay#redeployLinksAndTransformOperationForDomain\n@param operation\n@param host\n@return", "Performs a null edit on an item. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param itemId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
public void work(RepositoryHandler repoHandler, DbProduct product) { if (!product.getDeliveries().isEmpty()) { product.getDeliveries().forEach(delivery -> { final Set<Artifact> artifacts = new HashSet<>(); final DataFetchingUtils utils = new DataFetchingUtils(); final DependencyHandler depHandler = new DependencyHandler(repoHandler); final Set<String> deliveryDependencies = utils.getDeliveryDependencies(repoHandler, depHandler, delivery); final Set<String> fullGAVCSet = deliveryDependencies.stream().filter(DataUtils::isFullGAVC).collect(Collectors.toSet()); final Set<String> shortIdentiferSet = deliveryDependencies.stream().filter(entry -> !DataUtils.isFullGAVC(entry)).collect(Collectors.toSet()); processDependencySet(repoHandler, shortIdentiferSet, batch -> String.format(BATCH_TEMPLATE_REGEX, StringUtils.join(batch, '|')), 1, artifacts::add ); processDependencySet(repoHandler, fullGAVCSet, batch -> QueryUtils.quoteIds(batch, BATCH_TEMPLATE), 10, artifacts::add ); if (!artifacts.isEmpty()) { delivery.setAllArtifactDependencies(new ArrayList<>(artifacts)); } }); repoHandler.store(product); } }
[ "refresh all deliveries dependencies for a particular product" ]
[ "Constructs the convex hull of a set of points whose coordinates are given\nby an array of doubles.\n\n@param coords\nx, y, and z coordinates of each input point. The length of\nthis array must be at least three times <code>nump</code>.\n@param nump\nnumber of input points\n@throws IllegalArgumentException\nthe number of input points is less than four or greater than\n1/3 the length of <code>coords</code>, or the points appear\nto be coincident, colinear, or coplanar.", "Checks the second, hour, month, day, month and year are equal.", "Initialize the various DAO configurations after the various setters have been called.", "This method is called to format a time value.\n\n@param value time value\n@return formatted time value", "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@return values in Xml format", "Remove a variable in the top variables layer.", "Wrap CallableStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Callablestatement.", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
public void updateInfo(BoxWebLink.Info info) { URL url = WEB_LINK_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "PUT"); request.setBody(info.getPendingChanges()); String body = info.getPendingChanges(); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); info.update(jsonObject); }
[ "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." ]
[ "Get the original image URL.\n\n@return The original image URL", "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor.", "Transforms a single configuration file using the given transformation source.\n\n@param file the configuration file\n@param transformSource the transform soruce\n\n@throws TransformerConfigurationException -\n@throws IOException -\n@throws SAXException -\n@throws TransformerException -\n@throws ParserConfigurationException -", "Gets the first group of a regex\n@param pattern Pattern\n@param str String to find\n@return the matching group", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "Checks that sequence-name is only used with autoincrement='ojb'\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Gets a SerialMessage with the SENSOR_ALARM_GET command\n@return the serial message", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to" ]
public static DMatrixRMaj nullspaceQRP( DMatrixRMaj A , int totalSingular ) { SolveNullSpaceQRP_DDRM solver = new SolveNullSpaceQRP_DDRM(); DMatrixRMaj nullspace = new DMatrixRMaj(1,1); if( !solver.process(A,totalSingular,nullspace)) throw new RuntimeException("Solver failed. try SVD based method instead?"); return nullspace; }
[ "Computes the null space using QRP decomposition. This is faster than using SVD but slower than QR.\nMuch more stable than QR though.\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space" ]
[ "Get the bytes which represent the payload of this field, without the leading type tag and length header, as\na newly-allocated byte array.\n\n@return a new byte array containing a copy of the bytes this field contains", "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge", "Calculates directory size as total size of all its files, recursively.\n\n@param self a file object\n@return directory size (length)\n@since 2.1\n\n@throws IOException if File object specified does not exist\n@throws IllegalArgumentException if the provided File object does not represent a directory", "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.", "Closes the server socket. No new clients are accepted afterwards.", "Terminates with a help message if the parse is not successful\n\n@param args command line arguments to\n@return the format in a correct state", "Initialise an extension module's extensions in the extension registry\n\n@param extensionRegistry the extension registry\n@param module the name of the module containing the extensions\n@param rootRegistration The parent registration of the extensions. For a server or domain.xml extension, this will be the root resource registration. For a host.xml extension, this will be the host resource registration\n@param extensionRegistryType The type of the registry", "Initialize the various DAO configurations after the various setters have been called.", "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list" ]
public static double getRadiusToBoundedness(double D, int N, double timelag, double B){ double cov_area = a(N)*D*timelag; double radius = Math.sqrt(cov_area/(4*B)); return radius; }
[ "Calculates the radius to a given boundedness value\n@param D Diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param B Boundedeness\n@return Confinement radius" ]
[ "Writes back hints file.", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "Verifies that the given query can be properly scattered.\n\n@param query the query to verify\n@throws IllegalArgumentException if the query is invalid.", "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread.", "Use this API to update clusterinstance.", "Checks to see if a standalone server is running.\n\n@param client the client used to communicate with the server\n\n@return {@code true} if the server is running, otherwise {@code false}", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "read all brokers in the zookeeper\n\n@param zkClient zookeeper client\n@return all brokers", "Adds an additional alias to the constructed document.\n\n@param text\nthe text of the alias\n@param languageCode\nthe language code of the alias\n@return builder object to continue construction" ]
public static Interface[] get(nitro_service service) throws Exception{ Interface obj = new Interface(); Interface[] response = (Interface[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the Interface resources that are configured on netscaler." ]
[ "Converts a standard optimizer to one which the given amount of l1 or l2 regularization.", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Create the label for a grid line.\n\n@param value the value of the line\n@param unit the unit that the value is in", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Returns a BoxStoragePolicyAssignment information.\n@param api the API connection to be used by the resource.\n@param resolvedForType the assigned entity type for the storage policy.\n@param resolvedForID the assigned entity id for the storage policy.\n@return information about this {@link BoxStoragePolicyAssignment}.", "Helper function that drops all local databases for every client.", "Use this API to fetch appfwhtmlerrorpage resource of given name ." ]
public CmsContextMenu getContextMenuForItem(Object itemId) { CmsContextMenu result = null; try { final Item item = m_container.getItem(itemId); Property<?> keyProp = item.getItemProperty(TableProperty.KEY); String key = (String)keyProp.getValue(); if ((null != key) && !key.isEmpty()) { loadAllRemainingLocalizations(); final Map<Locale, String> localesWithEntries = new HashMap<Locale, String>(); for (Locale l : m_localizations.keySet()) { if (l != m_locale) { String value = m_localizations.get(l).getProperty(key); if ((null != value) && !value.isEmpty()) { localesWithEntries.put(l, value); } } } if (!localesWithEntries.isEmpty()) { result = new CmsContextMenu(); ContextMenuItem mainItem = result.addItem( Messages.get().getBundle(UI.getCurrent().getLocale()).key( Messages.GUI_BUNDLE_EDITOR_CONTEXT_COPY_LOCALE_0)); for (final Locale l : localesWithEntries.keySet()) { ContextMenuItem menuItem = mainItem.addItem(l.getDisplayName(UI.getCurrent().getLocale())); menuItem.addItemClickListener(new ContextMenuItemClickListener() { public void contextMenuItemClicked(ContextMenuItemClickEvent event) { item.getItemProperty(TableProperty.TRANSLATION).setValue(localesWithEntries.get(l)); } }); } } } } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); //TODO: Improve } return result; }
[ "Returns the context menu for the table item.\n@param itemId the table item.\n@return the context menu for the given item." ]
[ "Removes a tag from the resource.\n@param key the key of the tag to remove\n@return the next stage of the definition/update", "Returns an iterable containing the items in this folder sorted by name and direction.\n@param sort the field to sort by, can be set as `name`, `id`, and `date`.\n@param direction the direction to display the item results.\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder.", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum", "Figures out the correct class loader to use for a proxy for a given bean", "This version assumes relativeIndices array no longer needs to\nbe copied. Further it is assumed that it has already been\nchecked or assured by construction that relativeIndices\nis sorted.", "Returns the total count of partitions across all stores.\n\n@return returns the total count of partitions across all stores.", "Create an error image should an error occur while fetching a WMS map.\n\n@param width image width\n@param height image height\n@param e exception\n@return error image\n@throws java.io.IOException oops", "Use this API to unset the properties of protocolhttpband resource.\nProperties that need to be unset are specified in args array." ]
public static DMatrixRMaj elements(DMatrixRMaj A , BMatrixRMaj marked , DMatrixRMaj output ) { if( A.numRows != marked.numRows || A.numCols != marked.numCols ) throw new MatrixDimensionException("Input matrices must have the same shape"); if( output == null ) output = new DMatrixRMaj(1,1); output.reshape(countTrue(marked),1); int N = A.getNumElements(); int index = 0; for (int i = 0; i < N; i++) { if( marked.data[i] ) { output.data[index++] = A.data[i]; } } return output; }
[ "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements" ]
[ "Set whether the player holding the waveform is playing, which changes the indicator color to white from red.\nThis method can only be used in situations where the component is tied to a single player, and therefore has\na single playback position.\n\n@param playing if {@code true}, draw the position marker in white, otherwise red\n\n@see #setPlaybackState", "Computes the p=2 norm. If A is a matrix then the induced norm is computed. This\nimplementation is faster, but more prone to buffer overflow or underflow problems.\n\n@param A Matrix or vector.\n@return The norm.", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Returns an java object read from the specified ResultSet column.", "High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result.", "In managed environment do internal close the used connection", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style.", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "Check if underlying connection was alive." ]
public ProjectCalendarWeek getWorkWeek(Date date) { ProjectCalendarWeek week = null; if (!m_workWeeks.isEmpty()) { sortWorkWeeks(); int low = 0; int high = m_workWeeks.size() - 1; long targetDate = date.getTime(); while (low <= high) { int mid = (low + high) >>> 1; ProjectCalendarWeek midVal = m_workWeeks.get(mid); int cmp = 0 - DateHelper.compare(midVal.getDateRange().getStart(), midVal.getDateRange().getEnd(), targetDate); if (cmp < 0) { low = mid + 1; } else { if (cmp > 0) { high = mid - 1; } else { week = midVal; break; } } } } if (week == null && getParent() != null) { // Check base calendar as well for a work week. week = getParent().getWorkWeek(date); } return (week); }
[ "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date" ]
[ "It's enough to just set the disabled attribute on the\nelement, but we want to also add a \"disabled\" class so that we can\nstyle it.\n\nAt some point we'll just be able to use .button:disabled,\nbut that doesn't work in IE8-", "Given a list of partition plans and a set of stores, copies the store\nnames to every individual plan and creates a new list\n\n@param existingPlanList Existing partition plan list\n@param storeDefs List of store names we are rebalancing\n@return List of updated partition plan", "Get the default providers list to be used.\n\n@return the default provider list and ordering, not null.", "Logs all properties", "Use this API to fetch all the snmpoption resources that are configured on netscaler.", "Set session factory.\n\n@param sessionFactory session factory\n@throws HibernateLayerException could not get class metadata for data source", "Sets the protocol.\n@param protocol The protocol to be set.", "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "Returns a list ordered from the highest priority to the lowest." ]
public static responderglobal_responderpolicy_binding[] get(nitro_service service) throws Exception{ responderglobal_responderpolicy_binding obj = new responderglobal_responderpolicy_binding(); responderglobal_responderpolicy_binding response[] = (responderglobal_responderpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a responderglobal_responderpolicy_binding resources." ]
[ "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.", "Special-purpose version for hashing a single int value. Value is treated as little-endian", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Converts the key to the format in which it is stored for searching\n\n@param key Byte array of the key\n@return The format stored in the index file", "Sets the server groups for the deployment.\n\n@param serverGroups the server groups to set\n\n@return this deployment", "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>.", "Returns true if a pixel with the given color exists\n\n@param color the pixel colour to look for.\n@return true if there exists at least one pixel that has the given pixels color", "This method is called to format a units value.\n\n@param value numeric value\n@return currency value", "Returns true if the given item document lacks a label for at least one of\nthe languages covered.\n\n@param itemDocument\n@return true if some label is missing" ]
public static final Duration getDuration(double value, TimeUnit type) { double duration; // Value is given in 1/10 of minute switch (type) { case MINUTES: case ELAPSED_MINUTES: { duration = value / 10; break; } case HOURS: case ELAPSED_HOURS: { duration = value / 600; // 60 * 10 break; } case DAYS: { duration = value / 4800; // 8 * 60 * 10 break; } case ELAPSED_DAYS: { duration = value / 14400; // 24 * 60 * 10 break; } case WEEKS: { duration = value / 24000; // 5 * 8 * 60 * 10 break; } case ELAPSED_WEEKS: { duration = value / 100800; // 7 * 24 * 60 * 10 break; } case MONTHS: { duration = value / 96000; // 4 * 5 * 8 * 60 * 10 break; } case ELAPSED_MONTHS: { duration = value / 432000; // 30 * 24 * 60 * 10 break; } default: { duration = value; break; } } return (Duration.getInstance(duration, type)); }
[ "Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the duration\n@return Duration instance" ]
[ "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "This method is called by the client to load the most recent list of resources.\nThis method should only be called by the service client.\n\n@param result the most recent list of resources.", "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful", "Obtain override ID\n\n@param overrideIdentifier can be the override ID or class name\n@return\n@throws Exception", "Readable yyyyMMdd representation of a day, which is also sortable.", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "key function to execute a parallel task.\n\n@param task the parallel task\n@return the batch response from manager", "Gets all checked widget indexes in the group. The indexes are counted from 0 to size -1,\nwhere size is the number of Checkable widgets in the group. It does not take into account\nany non-Checkable widgets added to the group widget.\n\n@return list of checked widget indexes" ]
private void readRelationships() { for (MapRow row : getTable("CONTAB")) { Task task1 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_1")); Task task2 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_2")); if (task1 != null && task2 != null) { RelationType type = row.getRelationType("TYPE"); Duration lag = row.getDuration("LAG"); Relation relation = task2.addPredecessor(task1, type, lag); m_eventManager.fireRelationReadEvent(relation); } } }
[ "Read relationship data from a PEP file." ]
[ "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.", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Calls all initializers of the bean\n\n@param instance The bean instance", "Returns the name of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"", "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created browser.\n\n@param newBrowser the new created browser object", "Gathers information, that couldn't be collected while tree traversal.", "return a prepared Insert Statement fitting for the given ClassDescriptor", "Parse the XML for a collection as returned by getInfo call.\n\n@param collectionElement\n@return", "Converts days of the week into a bit field.\n\n@param data recurring data\n@return bit field" ]
@IntRange(from = 0, to = OPAQUE) private static int resolveLineAlpha( @IntRange(from = 0, to = OPAQUE) final int sceneAlpha, final float maxDistance, final float distance) { final float alphaPercent = 1f - distance / maxDistance; final int alpha = (int) ((float) OPAQUE * alphaPercent); return alpha * sceneAlpha / OPAQUE; }
[ "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha" ]
[ "Reset a timer of the given string name for the given thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked", "Returns a new intern odmg-transaction for the current database.", "Use this API to fetch all the gslbldnsentries resources that are configured on netscaler.", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed", "Adding environment and system variables to build info.\n\n@param builder", "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.", "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message", "Process the scheduling project property from PROJPROP. This table only seems to exist\nin P6 databases, not XER files.\n\n@throws SQLException" ]
@JmxOperation public String stopAsyncOperation(int requestId) { try { stopOperation(requestId); } catch(VoldemortException e) { return e.getMessage(); } return "Stopping operation " + requestId; }
[ "Wrapper to avoid throwing an exception over JMX" ]
[ "Adds the specified class to the internal class graph along with its\nrelations and dependencies, eventually inferring them, according to the\nOptions specified for this matcher\n@param cd", "Start offering shared dbserver sessions.\n\n@throws SocketException if there is a problem opening connections", "Retrieve all addresses of a host by it's address. NetBIOS hosts can\nhave many names for a given IP address. The name and IP address make the\nNetBIOS address. This provides a way to retrieve the other names for a\nhost with the same IP address.\n\n@param addr the address to query\n@throws UnknownHostException if address cannot be resolved", "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the time to check.\n@return the conditionals with the If-Modified-Since date set.", "Convert an integer to a RelationType instance.\n\n@param type integer value\n@return RelationType instance", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Get a unique reference to the media slot on the network from which the specified data was loaded.\n\n@param dataReference the data whose media slot is of interest\n\n@return the instance that will always represent the slot associated with the specified data", "Retrieves a ProjectReader instance which can read a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectReader instance", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException" ]
public static boolean respondsTo(Object object, String methodName) { MetaClass metaClass = DefaultGroovyMethods.getMetaClass(object); if (!metaClass.respondsTo(object, methodName).isEmpty()) { return true; } Map properties = DefaultGroovyMethods.getProperties(object); return properties.containsKey(methodName); }
[ "Return true only if the specified object responds to the named method\n@param object - the object to check\n@param methodName - the name of the method\n@return true if the object responds to the named method" ]
[ "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN.", "Sets a custom configuration attribute.\n@param attributeName the attribute name. Names starting with\n{@link #JDBC_PROPERTY_NAME_PREFIX} will be used (without the prefix) by the\nConnectionFactory when creating connections from DriverManager\n(not used for external DataSource connections). Names starting with\n{@link #DBCP_PROPERTY_NAME_PREFIX} to Commons DBCP (if used, also without prefix).\n@param attributeValue the attribute value", "Gets the status text from given session.\n\n@param lastActivity miliseconds since last activity\n@return status string", "Parses the date or returns null if it fails to do so.", "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", "Convert an integer value into a TimeUnit instance.\n\n@param value time unit value\n@return TimeUnit instance", "Read a task from a ConceptDraw PROJECT file.\n\n@param projectIdentifier parent project identifier\n@param map outline number to task map\n@param task ConceptDraw PROJECT task", "Copy a path recursively.\n@param source a Path pointing to a file or a directory that must exist\n@param target a Path pointing to a directory where the contents will be copied.\n@param overwrite overwrite existing files - if set to false fails if the target file already exists.\n@throws IOException", "Delete any log segments matching the given predicate function\n\n@throws IOException" ]
private boolean includeDocument(ItemDocument itemDocument) { for (StatementGroup sg : itemDocument.getStatementGroups()) { // "P19" is "place of birth" on Wikidata if (!"P19".equals(sg.getProperty().getId())) { continue; } for (Statement s : sg) { if (s.getMainSnak() instanceof ValueSnak) { Value v = s.getValue(); // "Q1731" is "Dresden" on Wikidata if (v instanceof ItemIdValue && "Q1731".equals(((ItemIdValue) v).getId())) { return true; } } } } return false; }
[ "Returns true if the given document should be included in the\nserialization.\n\n@param itemDocument\nthe document to check\n@return true if the document should be serialized" ]
[ "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "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", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE.", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Count the number of non-zero elements in R", "Returns the list of people who have favorited a given photo.\n\nThis method does not require authentication.\n\n@param photoId\n@param perPage\n@param page\n@return List of {@link com.flickr4java.flickr.people.User}", "set the textColor of the ColorHolder to an drawable\n\n@param ctx\n@param drawable" ]
private Profile getProfileFromResultSet(ResultSet result) throws Exception { Profile profile = new Profile(); profile.setId(result.getInt(Constants.GENERIC_ID)); Clob clobProfileName = result.getClob(Constants.PROFILE_PROFILE_NAME); String profileName = clobProfileName.getSubString(1, (int) clobProfileName.length()); profile.setName(profileName); return profile; }
[ "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception" ]
[ "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message", "set custom request for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Get result report.\n\n@param reportURI the URI of the report\n@return the result report.", "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyAsText the story text\n@param storyId the story Id, which will be returned as story path\n@return The parsed Story", "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String", "Add a raw statement as part of the where that can be anything that the database supports. Using more structured\nmethods is recommended but this gives more control over the query and allows you to utilize database specific\nfeatures.\n\n@param rawStatement\nThe statement that we should insert into the WHERE.\n\n@param args\nOptional arguments that correspond to any ? specified in the rawStatement. Each of the arguments must\nhave either the corresponding columnName or the sql-type set. <b>WARNING,</b> you cannot use the\n{@code SelectArg(\"columnName\")} constructor since that sets the _value_, not the name. Use\n{@code new SelectArg(\"column-name\", null);}." ]
public static void doExtendTraits(final ClassNode cNode, final SourceUnit unit, final CompilationUnit cu) { if (cNode.isInterface()) return; boolean isItselfTrait = Traits.isTrait(cNode); SuperCallTraitTransformer superCallTransformer = new SuperCallTraitTransformer(unit); if (isItselfTrait) { checkTraitAllowed(cNode, unit); return; } if (!cNode.getNameWithoutPackage().endsWith(Traits.TRAIT_HELPER)) { List<ClassNode> traits = findTraits(cNode); for (ClassNode trait : traits) { TraitHelpersTuple helpers = Traits.findHelpers(trait); applyTrait(trait, cNode, helpers); superCallTransformer.visitClass(cNode); if (unit!=null) { ASTTransformationCollectorCodeVisitor collector = new ASTTransformationCollectorCodeVisitor(unit, cu.getTransformLoader()); collector.visitClass(cNode); } } } }
[ "Given a class node, if this class node implements a trait, then generate all the appropriate\ncode which delegates calls to the trait. It is safe to call this method on a class node which\ndoes not implement a trait.\n@param cNode a class node\n@param unit the source unit" ]
[ "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", "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates", "Bilinear interpolation of ARGB values.\n@param x the X interpolation parameter 0..1\n@param y the y interpolation parameter 0..1\n@param rgb array of four ARGB values in the order NW, NE, SW, SE\n@return the interpolated value", "Helper for parsing properties\n@param p The properties object\n@param key The key to retrieve\n@param defaultValue The default value if the key does not exist\n@param used The set of keys we have seen\n@return The value of the property at the key", "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", "We have identified that we have a SQLite file. This could be a Primavera Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Checks that given directory if readable & writable and prints a warning if the check fails. Warning is only\nprinted once and is not repeated until the condition is fixed and broken again.\n\n@param directory deployment directory\n@return does given directory exist and is readable and writable?", "Set the serial pattern type.\n@param patternType the pattern type to set.", "Creates a new Table instance from data extracted from an MPP file.\n\n@param file parent project file\n@param data fixed data\n@param varMeta var meta\n@param varData var data\n@return Table instance" ]
public static int getStatusBarHeight(Context context, boolean force) { int result = 0; int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = context.getResources().getDimensionPixelSize(resourceId); } int dimenResult = context.getResources().getDimensionPixelSize(R.dimen.tool_bar_top_padding); //if our dimension is 0 return 0 because on those devices we don't need the height if (dimenResult == 0 && !force) { return 0; } else { //if our dimens is > 0 && the result == 0 use the dimenResult else the result; return result == 0 ? dimenResult : result; } }
[ "helper to calculate the statusBar height\n\n@param context\n@param force pass true to get the height even if the device has no translucent statusBar\n@return" ]
[ "Retrieves the notes text for this resource.\n\n@return notes text", "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Calculate the finish variance.\n\n@return finish variance", "Return all valid tenors for a given moneyness and maturity.\n\n@param moneynessBP The moneyness in bp for which to get the tenors.\n@param maturityInMonths The maturities in months for which to get the tenors.\n@return The tenors in months.", "Use this API to fetch vpath resource of given name .", "Bessel function of the first kind, of order 0.\n\n@param x Value.\n@return I0 value.", "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "Write the domain controller's data to an output stream.\n\n@param outstream the output stream\n@throws Exception" ]
public static double blackModelCapletValue( double forward, double volatility, double optionMaturity, double optionStrike, double periodLength, double discountFactor) { // May be interpreted as a special version of the Black-Scholes Formula return AnalyticFormulas.blackScholesGeneralizedOptionValue(forward, volatility, optionMaturity, optionStrike, periodLength * discountFactor); }
[ "Calculate the value of a caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@return Returns the value of a caplet under the Black'76 model" ]
[ "Use this API to fetch the statistics of all vpath_stats resources that are configured on netscaler.", "Updates the R matrix to take in account the removed row.", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Factory method to create EnumStringConverter\n\n@param <E>\nenum type inferred from enumType parameter\n@param enumType\nparticular enum class\n@return instance of EnumConverter", "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects.", "Removes CRs but returns LFs", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException", "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return", "Hides the Loader component" ]
public BlockHeader read(byte[] buffer, int offset, int postHeaderSkipBytes) { m_offset = offset; System.arraycopy(buffer, m_offset, m_header, 0, 8); m_offset += 8; int nameLength = FastTrackUtility.getInt(buffer, m_offset); m_offset += 4; if (nameLength < 1 || nameLength > 255) { throw new UnexpectedStructureException(); } m_name = new String(buffer, m_offset, nameLength, CharsetHelper.UTF16LE); m_offset += nameLength; m_columnType = FastTrackUtility.getShort(buffer, m_offset); m_offset += 2; m_flags = FastTrackUtility.getShort(buffer, m_offset); m_offset += 2; m_skip = new byte[postHeaderSkipBytes]; System.arraycopy(buffer, m_offset, m_skip, 0, postHeaderSkipBytes); m_offset += postHeaderSkipBytes; return this; }
[ "Reads the header data from a block.\n\n@param buffer block data\n@param offset current offset into block data\n@param postHeaderSkipBytes bytes to skip after reading the header\n@return current BlockHeader instance" ]
[ "Login the user and redirect back to original URL. If no\noriginal URL found then redirect to `defaultLandingUrl`.\n\n@param userIdentifier\nthe user identifier, could be either userId or username\n@param defaultLandingUrl\nthe URL to be redirected if original URL not found", "Get the authorization uri, where the user logs in.\n\n@param redirectUri\nUri the user is redirected to, after successful authorization.\nThis must be the same as specified at the Eve Online developer\npage.\n@param scopes\nScopes of the Eve Online SSO.\n@param state\nThis should be some secret to prevent XRSF, please read:\nhttp://www.thread-safe.com/2014/05/the-correct-use-of-state-\nparameter-in.html\n@return", "Creates metadata on this folder using a specified template.\n\n@param templateName the name of the metadata template.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Implements getAll by delegating to get.", "Returns the name of the bone.\n\n@return the name", "Parses command line arguments.\n\n@param args\nArray of arguments, like the ones provided by\n{@code void main(String[] args)}\n@param objs\nOne or more objects with annotated public fields.\n@return A {@code List} containing all unparsed arguments (i.e. arguments\nthat are no switches)\n@throws IOException\nif a parsing error occurred.\n@see CmdArgument", "if you have a default, it's automatically optional", "Fetch the outermost Hashmap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server." ]
public void invalidate(final int dataIndex) { synchronized (mMeasuredChildren) { Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "invalidate [%d]", dataIndex); mMeasuredChildren.remove(dataIndex); } }
[ "Invalidate the item in layout\n@param dataIndex data index" ]
[ "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Utility function that copies a string array except for the first element\n\n@param arr Original array of strings\n@return Copied array of strings", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated.", "a small static helper to set the color to a GradientDrawable null save\n\n@param colorHolder\n@param ctx\n@param gradientDrawable", "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance", "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException" ]
public void removeSource(GVRAudioSource audioSource) { synchronized (mAudioSources) { audioSource.setListener(null); mAudioSources.remove(audioSource); } }
[ "Removes an audio source from the audio manager.\n@param audioSource audio source to remove" ]
[ "Initializes the editor states for the different modes, depending on the type of the opened file.", "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", "Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p<\n\n@param resource the resource\n@param childMap map from parent to child resources\n@param filterMatches the resources matching the filter\n@param parentPaths root paths of resources which are not leaves\n@param isRoot true if this the root node\n\n@return the VFS entry bean for the client\n\n@throws CmsException if something goes wrong", "Make a WMS getLayer request and return the image read from the server.\n\n@param wmsLayerParam the wms request parameters\n@param commonURI the uri to use for the requests (excepting parameters of course.)\n@param imageSize the size of the image to request\n@param dpi the dpi of the image to request\n@param angle the angle of the image to request\n@param bounds the area and projection of the request on the world.", "Returns the real key object.", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame" ]
void processDumpFile(MwDumpFile dumpFile, MwDumpFileProcessor dumpFileProcessor) { try (InputStream inputStream = dumpFile.getDumpFileStream()) { dumpFileProcessor.processDumpFileContents(inputStream, dumpFile); } catch (FileAlreadyExistsException e) { logger.error("Dump file " + dumpFile.toString() + " could not be processed since file " + e.getFile() + " already exists. Try deleting the file or dumpfile directory to attempt a new download."); } catch (IOException e) { logger.error("Dump file " + dumpFile.toString() + " could not be processed: " + e.toString()); } }
[ "Processes one dump file with the given dump file processor, handling\nexceptions appropriately.\n\n@param dumpFile\nthe dump file to process\n@param dumpFileProcessor\nthe dump file processor to use" ]
[ "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner.", "Deletes and publishes resources with ID conflicts.\n\n@param cms the CMS context to use\n@param module the module\n@param conflictingIds the conflicting ids\n@throws CmsException if something goes wrong\n@throws Exception if something goes wrong", "Delete a license from the repository\n\n@param licName The name of the license to remove", "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Converts the Conditionals into real headers.\n@return real headers.", "Used to locate the first timephased resource assignment block which\nintersects with the target date range.\n\n@param <T> payload type\n@param range target date range\n@param assignments timephased resource assignments\n@param startIndex index at which to start the search\n@return index of timephased resource assignment which intersects with the target date range", "used for encoding url path segment", "Creates a Source Processor\n\n@param source the data source itself\n@param parallelism the parallelism of this processor\n@param description the description of this processor\n@param taskConf the configuration of this processor\n@param system actor system\n@return the new created source processor" ]
protected void doSave() { List<CmsFavoriteEntry> entries = getEntries(); try { m_favDao.saveFavorites(entries); } catch (Exception e) { CmsErrorDialog.showErrorDialog(e); } }
[ "Saves the list of currently displayed favorites." ]
[ "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "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", "Use this API to fetch authenticationradiuspolicy_vpnglobal_binding resources of given name .", "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.", "Remove a key from the given map.\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the removed value, or <code>null</code> if the key was not\npresent in the map.\n@since 2.15", "Use this API to delete dnspolicylabel of given name.", "this method is not intended to be called by clients\n@since 2.12", "Gets the final transform of the bone.\n\n@return the 4x4 matrix representing the final transform of the\nbone during animation, which comprises bind pose and skeletal\ntransform at the current time of the animation.", "return the workspace size needed for ctc" ]
public void setSchema(String schema) { if (schema == null) { schema = ""; } else { if (!schema.isEmpty() && !schema.endsWith(".")) { schema = schema + '.'; } } m_schema = schema; }
[ "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name." ]
[ "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work", "Checks if the categoryfolder setting needs to be updated.\n\n@return true if the categoryfolder setting needs to be updated", "Return a vector of values corresponding to a given vector of times.\n@param times A given vector of times.\n@return A vector of values corresponding to the given vector of times.", "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name", "very big duct tape", "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on.", "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", "Clean up the environment object for the given storage engine", "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." ]
private Duration getDuration(TimeUnit units, Double duration) { Duration result = null; if (duration != null) { double durationValue = duration.doubleValue() * 100.0; switch (units) { case MINUTES: { durationValue *= MINUTES_PER_DAY; break; } case HOURS: { durationValue *= HOURS_PER_DAY; break; } case DAYS: { durationValue *= 3.0; break; } case WEEKS: { durationValue *= 0.6; break; } case MONTHS: { durationValue *= 0.15; break; } default: { throw new IllegalArgumentException("Unsupported time units " + units); } } durationValue = Math.round(durationValue) / 100.0; result = Duration.getInstance(durationValue, units); } return result; }
[ "Read a duration.\n\n@param units duration units\n@param duration duration value\n@return Duration instance" ]
[ "Split a module Id to get the module version\n@param moduleId\n@return String", "Find and unmarshal all test suite files in given directories.\n\n@throws IOException if any occurs.\n@see #unmarshal(File)", "Set a status message in the JTextComponent passed to this\nmodel.\n@param message The message that should be displayed.", "Returns the bundle jar classpath element.", "return currently-loaded Proctor instance, throwing IllegalStateException if not loaded", "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", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded" ]
public void overrideCubeProperties(DockerCompositions overrideDockerCompositions) { final Set<String> containerIds = overrideDockerCompositions.getContainerIds(); for (String containerId : containerIds) { // main definition of containers contains a container that must be overrode if (containers.containsKey(containerId)) { final CubeContainer cubeContainer = containers.get(containerId); final CubeContainer overrideCubeContainer = overrideDockerCompositions.get(containerId); cubeContainer.setRemoveVolumes(overrideCubeContainer.getRemoveVolumes()); cubeContainer.setAlwaysPull(overrideCubeContainer.getAlwaysPull()); if (overrideCubeContainer.hasAwait()) { cubeContainer.setAwait(overrideCubeContainer.getAwait()); } if (overrideCubeContainer.hasBeforeStop()) { cubeContainer.setBeforeStop(overrideCubeContainer.getBeforeStop()); } if (overrideCubeContainer.isManual()) { cubeContainer.setManual(overrideCubeContainer.isManual()); } if (overrideCubeContainer.isKillContainer()) { cubeContainer.setKillContainer(overrideCubeContainer.isKillContainer()); } } else { logger.warning(String.format("Overriding Container %s are not defined in main definition of containers.", containerId)); } } }
[ "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." ]
[ "If provided with an AVRO schema, validates it and checks if there are\nbackwards compatible.\n\nTODO should probably place some similar checks for other serializer types\nas well?\n\n@param serializerDef", "Returns all keys in no particular order.", "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "Given a string with method or package name, creates a Class Name with no\nspaces and first letter lower case\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first.", "Creates a Span that covers an exact row. String parameters will be encoded as UTF-8", "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x." ]
private void addOp(String op, String path, String value) { if (this.operations == null) { this.operations = new JsonArray(); } this.operations.add(new JsonObject() .add("op", op) .add("path", path) .add("value", value)); }
[ "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set." ]
[ "Use this API to add vpath.", "Sort by time bucket, then backup count, and by compression state.", "Get a list of referring domains for a collection.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html\"", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Reads numBytes bytes, and returns the corresponding string", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors." ]
public void set( int index , double value ) { if( mat.getType() == MatrixType.DDRM ) { ((DMatrixRMaj) mat).set(index, value); } else if( mat.getType() == MatrixType.FDRM ) { ((FMatrixRMaj) mat).set(index, (float)value); } else { throw new RuntimeException("Not supported yet for this matrix type"); } }
[ "Assigns an element a value based on its index in the internal array..\n\n@param index The matrix element that is being assigned a value.\n@param value The element's new value." ]
[ "Use this API to fetch appflowpolicy_appflowpolicylabel_binding resources of given name .", "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data", "Read calendar data from a PEP file.", "Add profile to database, return collection of profile data. Called when 'enter' is hit in the UI\ninstead of 'submit' button\n\n@param model\n@param name\n@return\n@throws Exception", "Exact conversion of displaced lognormal ATM volatiltiy to normal ATM volatility.\n\n@param forward The forward\n@param displacement The displacement (considering a displaced lognormal model, otherwise 0.\n@param maturity The maturity\n@param lognormalVolatiltiy The (implied) lognormal volatility.\n@return The (implied) normal volatility.\n@see <a href=\"http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2687742\">Dimitroff, Fries, Lichtner and Rodi: Lognormal vs Normal Volatilities and Sensitivities in Practice</a>", "Adds a license to an artifact if the license exist into the database\n\n@param gavc String\n@param licenseId String", "Record the checkout wait time in us\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param checkoutTimeUs The number of us to wait before getting a socket", "Fluent API builder.\n\n@param cronExpression\n@return", "Load the avatar base model\n@param avatarResource resource with avatar model" ]
private void addErrorCorrection(StringBuilder adjustedString, int codewordSize, int dataBlocks, int eccBlocks) { int x, poly, startWeight; /* Split into codewords and calculate Reed-Solomon error correction codes */ switch (codewordSize) { case 6: x = 32; poly = 0x43; startWeight = 0x20; break; case 8: x = 128; poly = 0x12d; startWeight = 0x80; break; case 10: x = 512; poly = 0x409; startWeight = 0x200; break; case 12: x = 2048; poly = 0x1069; startWeight = 0x800; break; default: throw new OkapiException("Unrecognized codeword size: " + codewordSize); } ReedSolomon rs = new ReedSolomon(); int[] data = new int[dataBlocks + 3]; int[] ecc = new int[eccBlocks + 3]; for (int i = 0; i < dataBlocks; i++) { for (int weight = 0; weight < codewordSize; weight++) { if (adjustedString.charAt((i * codewordSize) + weight) == '1') { data[i] += (x >> weight); } } } rs.init_gf(poly); rs.init_code(eccBlocks, 1); rs.encode(dataBlocks, data); for (int i = 0; i < eccBlocks; i++) { ecc[i] = rs.getResult(i); } for (int i = (eccBlocks - 1); i >= 0; i--) { for (int weight = startWeight; weight > 0; weight = weight >> 1) { if ((ecc[i] & weight) != 0) { adjustedString.append('1'); } else { adjustedString.append('0'); } } } }
[ "Adds error correction data to the specified binary string, which already contains the primary data" ]
[ "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def", "Get the context for the specified photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@return The PhotoContext\n@throws FlickrException", "Determine if a CharSequence can be parsed as a Long.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isLong(String)\n@since 1.8.2", "Calculate the highlight color. Saturate at 0xff to make sure that high values\ndon't result in aliasing.\n\n@param _Slice The Slice which will be highlighted.", "Internal used method to retrieve object based on Identity.\n\n@param id\n@return\n@throws PersistenceBrokerException", "Check whether the URL start with one of the given prefixes.\n\n@param uri URI\n@param patterns possible prefixes\n@return true when URL starts with one of the prefixes", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template", "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url" ]
public static DMatrixRMaj nullspaceQR( DMatrixRMaj A , int totalSingular ) { SolveNullSpaceQR_DDRM solver = new SolveNullSpaceQR_DDRM(); DMatrixRMaj nullspace = new DMatrixRMaj(1,1); if( !solver.process(A,totalSingular,nullspace)) throw new RuntimeException("Solver failed. try SVD based method instead?"); return nullspace; }
[ "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space" ]
[ "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Use this API to fetch all the dnspolicylabel resources that are configured on netscaler.", "Converts a class into a signature token.\n\n@param c class\n@return signature token text", "Returns the given collection persister for the inverse side in case the given persister represents the main side\nof a bi-directional many-to-many association.\n\n@param mainSidePersister the collection persister on the main side of a bi-directional many-to-many association\n@return the collection persister for the inverse side of the given persister or {@code null} in case it\nrepresents the inverse side itself or the association is uni-directional", "Use this API to change sslcertkey resources.", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid associated with that player, if any", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue.", "Reads the text files in the given directory and puts their content\nin the given map after compressing it. Note that this method does not\ntraverse recursivly into sub-directories.\n\n@param dir The directory to process\n@param results Map that will receive the contents (indexed by the relative filenames)\n@throws IOException If an error ocurred" ]
public boolean isUpToDate(final DbArtifact artifact) { final List<String> versions = repoHandler.getArtifactVersions(artifact); final String currentVersion = artifact.getVersion(); final String lastDevVersion = getLastVersion(versions); final String lastReleaseVersion = getLastRelease(versions); if(lastDevVersion == null || lastReleaseVersion == null) { // Plain Text comparison against version "strings" for(final String version: versions){ if(version.compareTo(currentVersion) > 0){ return false; } } return true; } else { return currentVersion.equals(lastDevVersion) || currentVersion.equals(lastReleaseVersion); } }
[ "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean" ]
[ "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable.", "Use this API to add dnsview.", "Removes the supplied marker from the map.\n\n@param marker", "multi-field string", "Read data for an individual task from the tables in a PEP file.\n\n@param parent parent task\n@param id task ID\n@return task instance", "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", "Sets name, status, start time and title to specified step\n\n@param step which will be changed", "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar" ]
private void handleApplicationUpdateRequest(SerialMessage incomingMessage) { logger.trace("Handle Message Application Update Request"); int nodeId = incomingMessage.getMessagePayloadByte(1); logger.trace("Application Update Request from Node " + nodeId); UpdateState updateState = UpdateState.getUpdateState(incomingMessage.getMessagePayloadByte(0)); switch (updateState) { case NODE_INFO_RECEIVED: logger.debug("Application update request, node information received."); int length = incomingMessage.getMessagePayloadByte(2); ZWaveNode node = getNode(nodeId); node.resetResendCount(); for (int i = 6; i < length + 3; i++) { int data = incomingMessage.getMessagePayloadByte(i); if(data == 0xef ) { // TODO: Implement control command classes break; } logger.debug(String.format("Adding command class 0x%02X to the list of supported command classes.", data)); ZWaveCommandClass commandClass = ZWaveCommandClass.getInstance(data, node, this); if (commandClass != null) node.addCommandClass(commandClass); } // advance node stage. node.advanceNodeStage(); if (incomingMessage.getMessageClass() == this.lastSentMessage.getExpectedReply() && !incomingMessage.isTransActionCanceled()) { notifyEventListeners(new ZWaveEvent(ZWaveEventType.TRANSACTION_COMPLETED_EVENT, this.lastSentMessage.getMessageNode(), 1, this.lastSentMessage)); transactionCompleted.release(); logger.trace("Released. Transaction completed permit count -> {}", transactionCompleted.availablePermits()); } break; case NODE_INFO_REQ_FAILED: logger.debug("Application update request, Node Info Request Failed, re-request node info."); SerialMessage requestInfoMessage = this.lastSentMessage; if (requestInfoMessage.getMessageClass() != SerialMessage.SerialMessageClass.RequestNodeInfo) { logger.warn("Got application update request without node info request, ignoring."); return; } if (--requestInfoMessage.attempts >= 0) { logger.error("Got Node Info Request Failed while sending this serial message. Requeueing"); this.enqueue(requestInfoMessage); } else { logger.warn("Node Info Request Failed 3x. Discarding message: {}", lastSentMessage.toString()); } transactionCompleted.release(); break; default: logger.warn(String.format("TODO: Implement Application Update Request Handling of %s (0x%02X).", updateState.getLabel(), updateState.getKey())); } }
[ "Handles incoming Application Update Request.\n@param incomingMessage the request message to process." ]
[ "Removes the supplied marker from the map.\n\n@param marker", "Register the Rowgroup buckets and places the header cells for the rows", "Use this API to fetch the statistics of all cmppolicylabel_stats resources that are configured on netscaler.", "Processes one of the menu responses that jointly constitute the track metadata, updating our\nfields accordingly.\n\n@param item the menu response to be considered", "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Returns a new Set containing all the objects in the specified array.", "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class.", "On throwable.\n\n@param cause\nthe cause", "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" ]
private static void multBlockAdd( double []blockA, double []blockB, double []blockC, final int m, final int n, final int o, final int blockLength ) { // for( int i = 0; i < m; i++ ) { // for( int j = 0; j < o; j++ ) { // double val = 0; // for( int k = 0; k < n; k++ ) { // val += blockA[ i*blockLength + k]*blockB[ k*blockLength + j]; // } // // blockC[ i*blockLength + j] += val; // } // } // int rowA = 0; // for( int i = 0; i < m; i++ , rowA += blockLength) { // for( int j = 0; j < o; j++ ) { // double val = 0; // int indexB = j; // int indexA = rowA; // int end = indexA + n; // for( ; indexA != end; indexA++ , indexB += blockLength ) { // val += blockA[ indexA ]*blockB[ indexB ]; // } // // blockC[ rowA + j] += val; // } // } // for( int k = 0; k < n; k++ ) { // for( int i = 0; i < m; i++ ) { // for( int j = 0; j < o; j++ ) { // blockC[ i*blockLength + j] += blockA[ i*blockLength + k]*blockB[ k*blockLength + j]; // } // } // } for( int k = 0; k < n; k++ ) { int rowB = k*blockLength; int endB = rowB+o; for( int i = 0; i < m; i++ ) { int indexC = i*blockLength; double valA = blockA[ indexC + k]; int indexB = rowB; while( indexB != endB ) { blockC[ indexC++ ] += valA*blockB[ indexB++]; } } } }
[ "Performs a matrix multiplication between inner block matrices.\n\n(m , o) += (m , n) * (n , o)" ]
[ "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Update the id field of the object in the database.", "OR operation which takes the previous clause and the next clause and OR's them together.", "Appends the String representation of the given operand to this CharSequence.\n\n@param left a CharSequence\n@param value any Object\n@return the original toString() of the CharSequence with the object appended\n@since 1.8.2", "Use this API to delete dnsaaaarec.", "Retrieves the notes text for this resource.\n\n@return notes text", "Closes off this connection\n@param connection to close", "Returns a JRDesignExpression that points to the main report connection\n\n@return", "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value" ]
@Override public void process(MPPReader reader, ProjectFile file, DirectoryEntry root) throws MPXJException, IOException { try { populateMemberData(reader, file, root); processProjectProperties(); if (!reader.getReadPropertiesOnly()) { processCalendarData(); processResourceData(); processTaskData(); processConstraintData(); processAssignmentData(); if (reader.getReadPresentationData()) { processViewPropertyData(); processViewData(); processTableData(); } } } finally { clearMemberData(); } }
[ "This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException" ]
[ "Returns a map from a category path to the wrapper of all the sub-categories of the category with the path given as key.\n\n@return a map from a category path to all sub-categories of the path's category.", "Use this API to fetch nssimpleacl resource of given name .", "Creates a curator built using Application's zookeeper connection string. Root path will start\nat Fluo application chroot.", "Return true if c has a @hidden tag associated with it", "Print a timestamp value.\n\n@param value time value\n@return time value", "Constructs a Google APIs HTTP client with the associated credentials.", "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "test, how many times the group was present in the list of groups.", "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future." ]
private void updateDurationTimeUnit(FastTrackColumn column) { if (m_durationTimeUnit == null && isDurationColumn(column)) { int value = ((DurationColumn) column).getTimeUnitValue(); if (value != 1) { m_durationTimeUnit = FastTrackUtility.getTimeUnit(value); } } }
[ "Update the default time unit for durations based on data read from the file.\n\n@param column column data" ]
[ "Remove any device announcements that are so old that the device seems to have gone away.", "Parses a single query facet item with query and label.\n@param prefix path to the query facet item (with trailing '/').\n@return the query facet item.", "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type.", "Gets the value of the task property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the task property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetTask().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link GanttDesignerRemark.Task }", "if |a11-a22| >> |a12+a21| there might be a better way. see pg371", "for testing purpose", "Write the table configuration to a buffered writer.", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Returns a converter instance for the given annotation.\n\n@param annotation the annotation\n@return a converter instance or {@code null} if the given annotation is no option annotation" ]
public String getRepoKey() { String repoKey; if (isDynamicMode()) { repoKey = keyFromText; } else { repoKey = keyFromSelect; } return repoKey; }
[ "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag" ]
[ "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>", "Use this API to unset the properties of vridparam resource.\nProperties that need to be unset are specified in args array.", "Loaders call this method to register themselves. This method can be called by\nloaders provided by the application.\n\n@param textureClass\nThe class the loader is responsible for loading.\n\n@param asyncLoaderFactory\nThe factory object.", "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds.", "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Processes the template for the object cache 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\"", "is there a faster algorithm out there? This one is a bit sluggish", "Use this API to unset the properties of inatparam resource.\nProperties that need to be unset are specified in args array.", "Term value.\n\n@param term\nthe term\n@return the string" ]
public static void doMetaClearRebalance(AdminClient adminClient, List<Integer> nodeIds) { AdminToolUtils.assertServerNotInOfflineState(adminClient, nodeIds); System.out.println("Setting " + MetadataStore.SERVER_STATE_KEY + " to " + MetadataStore.VoldemortState.NORMAL_SERVER); doMetaSet(adminClient, nodeIds, MetadataStore.SERVER_STATE_KEY, MetadataStore.VoldemortState.NORMAL_SERVER.toString()); RebalancerState state = RebalancerState.create("[]"); System.out.println("Cleaning up " + MetadataStore.REBALANCING_STEAL_INFO + " to " + state.toJsonString()); doMetaSet(adminClient, nodeIds, MetadataStore.REBALANCING_STEAL_INFO, state.toJsonString()); System.out.println("Cleaning up " + MetadataStore.REBALANCING_SOURCE_CLUSTER_XML + " to empty string"); doMetaSet(adminClient, nodeIds, MetadataStore.REBALANCING_SOURCE_CLUSTER_XML, ""); }
[ "Removes metadata related to rebalancing.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to clear metadata after rebalancing" ]
[ "from IsoFields in ThreeTen-Backport", "Find the earliest task start date. We treat this as the\nstart date for the project.\n\n@return start date", "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String.", "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method.", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that represents this reference", "Initialize the class if this is being called with Spring.", "Use this API to fetch all the snmpuser resources that are configured on netscaler.", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Use this API to export sslfipskey." ]
public static final Bytes of(String s) { Objects.requireNonNull(s); if (s.isEmpty()) { return EMPTY; } byte[] data = s.getBytes(StandardCharsets.UTF_8); return new Bytes(data, s); }
[ "Creates a Bytes object by copying the value of the given String" ]
[ "Creates an InputObjectStream and an OutputObjectStream from a Socket, and\npasses them to the closure. The streams will be closed after the closure\nreturns, even if an exception is thrown.\n\n@param socket this Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.0", "Returns the designer version from the manifest.\n@param context\n@return version", "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will do combine the WHERE statement of the two query builders with a SQL \"AND\". See\n{@link #joinOr(QueryBuilder)}.\n</p>", "Gets a byte within this sequence of bytes\n\n@param i index into sequence\n@return byte\n@throws IllegalArgumentException if i is out of range", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection.", "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "Use this API to delete cacheselector of given name." ]
@Pure public static <K, V> Map<K, V> operator_minus(Map<K, V> left, final Map<? extends K, ? extends V> right) { return Maps.filterEntries(left, new Predicate<Entry<K, V>>() { @Override public boolean apply(Entry<K, V> input) { final V value = right.get(input.getKey()); if (value == null) { return input.getValue() == null && right.containsKey(input.getKey()); } return !Objects.equal(input.getValue(), value); } }); }
[ "Replies the elements of the left map without the pairs in the right map.\nIf the pair's values differ from\nthe value within the map, the map entry is not removed.\n\n<p>\nThe difference is an immutable\nsnapshot of the state of the maps at the time this method is called. It\nwill never change, even if the maps change at a later time.\n</p>\n\n<p>\nSince this method uses {@code HashMap} instances internally, the keys of\nthe supplied maps must be well-behaved with respect to\n{@link Object#equals} and {@link Object#hashCode}.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to update.\n@param right the pairs to remove.\n@return the map with the content of the left map except the pairs of the right map.\n@since 2.15" ]
[ "Configure a new user defined field.\n\n@param fieldType field type\n@param dataType field data type\n@param name field name", "Print rate.\n\n@param rate Rate instance\n@return rate value", "Gets the time warp.\n\n@return the time warp", "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", "Creates a style definition used for the body element.\n@return The body style definition.", "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}", "Get the value of the fist child element with the given name.\n\n@param element\nThe parent element\n@param name\nThe child element name\n@return The child element value or null", "Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value", "Removes an element from the observation matrix.\n\n@param index which element is to be removed" ]
public static base_responses delete(nitro_service client, dnsaaaarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaaaarec deleteresources[] = new dnsaaaarec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnsaaaarec(); deleteresources[i].hostname = resources[i].hostname; deleteresources[i].ipv6address = resources[i].ipv6address; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete dnsaaaarec resources." ]
[ "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order.", "Pause component timer for current instance\n@param type - of component", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases.", "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful", "Closes all the producers in the pool", "Upload a photo from a File.\n\n@param file\nthe photo file\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "Trim the trailing spaces.\n\n@param line", "Stops the emulator. Multiple calls are allowed.\n\n@throws DatastoreEmulatorException if the emulator cannot be stopped" ]
public static URI createRestURI( final String matrixId, final int row, final int col, final WMTSLayerParam layerParam) throws URISyntaxException { String path = layerParam.baseURL; if (layerParam.dimensions != null) { for (int i = 0; i < layerParam.dimensions.length; i++) { String dimension = layerParam.dimensions[i]; String value = layerParam.dimensionParams.optString(dimension); if (value == null) { value = layerParam.dimensionParams.getString(dimension.toUpperCase()); } path = path.replace("{" + dimension + "}", value); } } path = path.replace("{TileMatrixSet}", layerParam.matrixSet); path = path.replace("{TileMatrix}", matrixId); path = path.replace("{TileRow}", String.valueOf(row)); path = path.replace("{TileCol}", String.valueOf(col)); path = path.replace("{style}", layerParam.style); path = path.replace("{Layer}", layerParam.layer); return new URI(path); }
[ "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam" ]
[ "Use this API to Import application.", "Warning emitter. Uses whatever alternative non-event communication channel is.", "Validates the return value\n\n@param instance The instance to validate", "Use this API to fetch all the csparameter resources that are configured on netscaler.", "Configure the HTTP response to switch off caching.\n\n@param response response to configure\n@since 1.9.0", "Returns true if required properties for FluoAdmin are set", "This method takes the textual version of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param locale target locale\n@param priority text version of the priority\n@return Priority class instance", "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Loads the specified class name and stores it in the hash\n\n@param className class name\n@throws Exception exception" ]
public static PackageNameMappingWithPackagePattern fromPackage(String packagePattern) { PackageNameMapping packageNameMapping = new PackageNameMapping(); packageNameMapping.setPackagePattern(packagePattern); return packageNameMapping; }
[ "Sets the package pattern to match against." ]
[ "Tells it to process the submatrix at the next split. Should be called after the\ncurrent submatrix has been processed.", "Filter unsafe or unnecessary request.\n\n@param nodeDataMapValidSource\nthe node data map valid source\n@param nodeDataMapValidSafe\nthe node data map valid safe", "Assembles an avro format string that contains multiple fat client configs\nfrom map of store to properties\n\n@param mapStoreToProps A map of store names to their properties\n@return Avro string that contains multiple store configs", "Sends all events to the web service. Events will be transformed with mapper before sending.\n\n@param events the events", "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "Fetches a list of available photo licenses for Flickr.\n\nThis method does not require authentication.\n\n@return A collection of License objects\n@throws FlickrException", "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset to position 0 before\ncalling this method and the caller must reset it after the call\nreturns\n@return True if the buffer holds a complete request, false otherwise" ]
public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception{ servicegroupbindings obj = new servicegroupbindings(); obj.set_servicegroupname(servicegroupname); servicegroupbindings response = (servicegroupbindings) obj.get_resource(service); return response; }
[ "Use this API to fetch servicegroupbindings resource of given name ." ]
[ "Write the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar instance\n@param mpxjCalendar MPXJ calendar instance", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance", "Returns true if the information in this link should take\nprecedence over the information in the other link.", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Probe the existing cluster to retrieve the current cluster xml and stores\nxml.\n\n@return Pair of Cluster and List<StoreDefinition> from current cluster.", "Adds a file with the provided description.", "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list" ]
public AT_Row setPaddingBottom(int paddingBottom) { if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingBottom(paddingBottom); } } return this; }
[ "Sets the bottom padding for all cells in the row.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining" ]
[ "A fairly basic 5-way classifier, that notes digits, and upper\nand lower case, mixed, and non-alphanumeric.\n\n@param s String to find word shape of\n@return Its word shape: a 5 way classification", "Method which performs strength checks on password. It returns outcome which can be used by CLI.\n\n@param isAdminitrative - administrative checks are less restrictive. This means that weak password or one which violates restrictions is not indicated as failure.\nAdministrative checks are usually performed by admin changing/setting default password for user.\n@param userName - the name of user for which password is set.\n@param password - password.\n@return", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Log original response\n\n@param httpServletResponse\n@param history\n@throws URIException", "Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name", "returns a proxy or a fully materialized Object from the current row of the\nunderlying resultset.", "Convert a request type string to value\n\n@param requestType String value of request type GET/POST/PUT/DELETE\n@return Matching REQUEST_TYPE. Defaults to ALL", "Adds a new gender item and an initial name.\n\n@param entityIdValue\nthe item representing the gender\n@param name\nthe label to use for representing the gender", "Always returns the original proxy object that was serialized.\n\n@return the proxy object\n@throws java.io.ObjectStreamException" ]
public void deleteModule(final String moduleId) { final DbModule module = getModule(moduleId); repositoryHandler.deleteModule(module.getId()); for (final String gavc : DataUtils.getAllArtifacts(module)) { repositoryHandler.deleteArtifact(gavc); } }
[ "Delete a module\n\n@param moduleId String" ]
[ "The primary run loop of the event processor.", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into", "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "Cancels all requests still waiting for a response.\n\n@return this {@link Searcher} for chaining.", "Handles the response of the SerialApiGetInitData request.\n@param incomingMlivessage the response message to process.", "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Utility function that fetches quota types.", "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "Reads characters into a portion of an array, then replace invalid XML characters\n\n@throws IOException If an I/O error occurs\n@see ru.yandex.qatools.allure.config.AllureNamingUtils#isBadXmlCharacter(char) by space" ]
private JarFile loadJar(File archive) throws DecompilationException { try { return new JarFile(archive); } catch (IOException ex) { throw new DecompilationException("Can't load .jar: " + archive.getPath(), ex); } }
[ "Opens the jar, wraps any IOException." ]
[ "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html\"", "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Write the patch.xml\n\n@param rollbackPatch the patch\n@param file the target file\n@throws IOException", "Generate attachment extension from mime type\n\n@param type valid mime-type\n@return extension if it's known for specified mime-type, or empty string\notherwise", "Set whether the player holding the waveform is playing, which changes the indicator color to white from red.\nThis method can only be used in situations where the component is tied to a single player, and therefore has\na single playback position.\n\n@param playing if {@code true}, draw the position marker in white, otherwise red\n\n@see #setPlaybackState", "Starts asynchronous check. Result will be delivered to the listener on the main thread.\n\n@param context\n@param appId application id from the oculus dashboard\n@param listener listener to invoke when the result is available\n@throws IllegalStateException in case the platform sdk cannot be initialized\n@throws IllegalArgumentException if listener is null", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Read data for a single table and store it.\n\n@param is input stream\n@param table table header", "Quits server by closing server socket and closing client socket handlers." ]
protected B fields(List<F> fields) { if (instance.def.fields == null) { instance.def.fields = new ArrayList<F>(fields.size()); } instance.def.fields.addAll(fields); return returnThis(); }
[ "Add fields to the text index configuration.\n\n@param fields the {@link TextIndex.Field} configurations to add\n@return the builder for chaining" ]
[ "Returns the average event value in the current interval", "capture center eye", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Called just before the thread finishes, regardless of status, to take any necessary action on\nthe downloaded file with mDownloadedCacheSize file.\n\n@param forceClean - It will delete downloaded cache, Even streaming is enabled, If user intentionally cancelled.", "Set a range of the colormap to a single color.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color the color", "Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1.\n\n@param views\n@deprecated attribute no longer available", "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path", "Confirms that both clusters have the same set of zones defined.\n\n@param lhs\n@param rhs", "Normalizes the name so it can be used as Maven artifactId or groupId." ]
static int createDeliverable(String path, String originalFileName, String fileFamily, Integer jobId, DbConn cnx) { QueryResult qr = cnx.runUpdate("deliverable_insert", fileFamily, path, jobId, originalFileName, UUID.randomUUID().toString()); return qr.getGeneratedId(); }
[ "Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction\n\n@param path\nFilePath (relative to a root directory - cf. Node)\n@param originalFileName\nFileName\n@param fileFamily\nFile family (may be null). E.g.: \"daily report\"\n@param jobId\nJob Instance ID\n@param cnx\nthe DbConn to use." ]
[ "Reads a data block and adds it to the list of blocks.\n\n@param text RTF data\n@param offset current offset\n@param length next block length\n@param blocks list of blocks\n@return next offset", "Factory method that returns an Identity object created from a serializated representation.\n\n@param anArray The serialized representation\n@return The identity\n@see {@link #serialize}.\n@deprecated", "Convert a request type string to value\n\n@param requestType String value of request type GET/POST/PUT/DELETE\n@return Matching REQUEST_TYPE. Defaults to ALL", "Returns the configured sort options, or the empty list if no such options are configured.\n@return The configured sort options, or the empty list if no such options are configured.", "Deletes a story. A user can only delete stories they have created. Returns an empty data record.\n\n@param story Globally unique identifier for the story.\n@return Request object", "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.", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Creates a random symmetric matrix. The entire matrix will be filled in, not just a triangular\nportion.\n\n@param N Number of rows and columns\n@param nz_total Number of nonzero elements in the triangular portion of the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix" ]
private static boolean validateEndRecord(File file, FileChannel channel, long startEndRecord, long endSig) throws IOException { try { channel.position(startEndRecord); final ByteBuffer endDirHeader = getByteBuffer(ENDLEN); read(endDirHeader, channel); if (endDirHeader.limit() < ENDLEN) { // Couldn't read the full end of central directory record header return false; } else if (getUnsignedInt(endDirHeader, 0) != endSig) { return false; } long pos = getUnsignedInt(endDirHeader, END_CENSTART); // TODO deal with Zip64 if (pos == ZIP64_MARKER) { return false; } ByteBuffer cdfhBuffer = getByteBuffer(CENLEN); read(cdfhBuffer, channel, pos); long header = getUnsignedInt(cdfhBuffer, 0); if (header == CENSIG) { long firstLoc = getUnsignedInt(cdfhBuffer, CEN_LOC_OFFSET); long firstSize = getUnsignedInt(cdfhBuffer, CENSIZ); if (firstLoc == 0) { // normal case -- first bytes are the first local file if (!validateLocalFileRecord(channel, 0, firstSize)) { return false; } } else { // confirm that firstLoc is indeed the first local file long fileFirstLoc = scanForLocSig(channel); if (firstLoc != fileFirstLoc) { if (fileFirstLoc == 0) { return false; } else { // scanForLocSig() found a LOCSIG, but not at position zero and not // at the expected position. // With a file like this, we can't tell if we're in a nested zip // or we're in an outer zip and had the bad luck to find random bytes // that look like LOCSIG. return false; } } } // At this point, endDirHeader points to the correct end of central dir record. // Just need to validate the record is complete, including any comment int commentLen = getUnsignedShort(endDirHeader, END_COMMENTLEN); long commentEnd = startEndRecord + ENDLEN + commentLen; return commentEnd <= channel.size(); } return false; } catch (EOFException eof) { // pos or firstLoc weren't really positions and moved us to an invalid location return false; } }
[ "Validates that the data structure at position startEndRecord has a field in the expected position\nthat points to the start of the first central directory file, and, if so, that the file\nhas a complete end of central directory record comment at the end.\n\n@param file the file being checked\n@param channel the channel\n@param startEndRecord the start of the end of central directory record\n@param endSig the end of central dir signature\n@return true if it can be confirmed that the end of directory record points to a central directory\nfile and a complete comment is present, false otherwise\n@throws java.io.IOException" ]
[ "Append data to JSON response.\n@param param\n@param value", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "This method retrieves a double of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required double data", "Looks up the EJB in the container and executes the method on it\n\n@param self the proxy instance.\n@param method the overridden method declared in the super class or\ninterface.\n@param proceed the forwarder method for invoking the overridden method. It\nis null if the overridden method is abstract or declared in the\ninterface.\n@param args an array of objects containing the values of the arguments\npassed in the method invocation on the proxy instance. If a\nparameter type is a primitive type, the type of the array\nelement is a wrapper class.\n@return the resulting value of the method invocation.\n@throws Throwable if the method invocation fails.", "Returns the designer version from the manifest.\n@param context\n@return version", "Retrieve the correct calendar for a resource.\n\n@param calendarID calendar ID\n@return calendar for resource", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day", "Add the option specifying if the categories should be displayed collapsed\nwhen the dialog opens.\n\n@see org.opencms.ui.actions.I_CmsADEAction#getParams()", "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." ]
public static boolean isBadXmlCharacter(char c) { boolean cDataCharacter = c < '\u0020' && c != '\t' && c != '\r' && c != '\n'; cDataCharacter |= (c >= '\uD800' && c < '\uE000'); cDataCharacter |= (c == '\uFFFE' || c == '\uFFFF'); return cDataCharacter; }
[ "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise" ]
[ "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id", "Returns the total number of weights associated with this classifier.\n\n@return number of weights", "Set the diffuse light intensity.\n\nThis designates the color of the diffuse reflection.\nIt is multiplied by the material diffuse color to derive\nthe hue of the diffuse reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code diffuse_intensity} to control the intensity of diffuse light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Performs the BFS and gives the results to a distributor to distribute\n\n@param distributor the distributor", "Uncheck all items in the list including all sub-items.\n@param list list of CmsTreeItem entries.", "Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler.", "as we know nothing has changed.", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key" ]
public void rotateToFaceCamera(final GVRTransform transform) { //see http://stackoverflow.com/questions/5782658/extracting-yaw-from-a-quaternion final GVRTransform t = getMainCameraRig().getHeadTransform(); final Quaternionf q = new Quaternionf(0, t.getRotationY(), 0, t.getRotationW()).normalize(); transform.rotateWithPivot(q.w, q.x, q.y, q.z, 0, 0, 0); }
[ "Apply the necessary rotation to the transform so that it is in front of\nthe camera.\n\n@param transform The transform to modify." ]
[ "Analyses the content of the general section of an ini configuration file\nand fills out the class arguments with this data.\n\n@param section\n{@link Section} with name \"general\"", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Check if the provided manifestPath is correct.\nSet the manifest and imagePath in case of the correct manifest.\n@param manifestPath\n@param candidateImagePath\n@param dependenciesClient\n@param listener\n@return true if found the correct manifest\n@throws IOException", "Make a copy.", "Calculates Sine value of the complex number.\n\n@param z1 A Complex Number instance.\n@return Returns new ComplexNumber instance containing the Sine value of the specified complex number.", "Build filter for the request.\n\n@param layerFilter layer filter\n@param featureIds features to include in report (null for all)\n@return filter\n@throws GeomajasException filter could not be parsed/created", "Unpause the server, allowing it to resume normal operations", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException" ]
public static void deleteMetadataTemplate(BoxAPIConnection api, String scope, String template) { URL url = METADATA_TEMPLATE_URL_TEMPLATE.build(api.getBaseURL(), scope, template); BoxJSONRequest request = new BoxJSONRequest(api, url, "DELETE"); request.send(); }
[ "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template" ]
[ "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Returns the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.\n\n@param namespace the namespace referring to the undo collection.\n@return the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "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.", "Sets up Log4J to write log messages to the console. Low-priority messages\nare logged to stdout while high-priority messages go to stderr.", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}" ]
@Override public void set(String headerName, String headerValue) { List<String> headerValues = new LinkedList<String>(); headerValues.add(headerValue); headers.put(headerName, headerValues); }
[ "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)" ]
[ "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "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", "For use on a slave HC to get all the server groups used by the host\n\n@param hostResource the host resource\n@return the server configs on this host", "Checks if we can see any players that are on a different network than the one we chose for the Virtual CDJ.\nIf so, we are not going to be able to communicate with them, and they should all be moved onto a single\nnetwork.\n\n@return the device announcements of any players which are on unreachable networks, or hopefully an empty list\n@throws IllegalStateException if we are not running", "Read tasks representing the WBS.", "Do the search, called as a \"page action\"", "Method handle a change on the cluster members set\n@param event", "Check that the parameter array has at least as many elements as it\nshould.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param minimumLength\nThe minimum array length" ]
public static base_response add(nitro_service client, dnssuffix resource) throws Exception { dnssuffix addresource = new dnssuffix(); addresource.Dnssuffix = resource.Dnssuffix; return addresource.add_resource(client); }
[ "Use this API to add dnssuffix." ]
[ "Create a transformation which takes the alignment settings into account.", "Remove the given pair into the map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\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 remove from the map.\n@return {@code true} if the pair was removed.\n@since 2.15", "IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset to position 0 before\ncalling this method and the caller must reset it after the call\nreturns\n@return True if the buffer holds a complete request, false otherwise", "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "Generate a results file for each test in each suite.\n@param outputDirectory The target directory for the generated file(s).", "Start a print.\n\n@param jobId the job ID\n@param specJson the client json request.\n@param out the stream to write to.", "Add a custom query parameter to the _changes request. Useful for specifying extra parameters\nto a filter function for example.\n\n@param name the name of the query parameter\n@param value the value of the query parameter\n@return this Changes instance\n@since 2.5.0", "Add a new PropertyChangeListener to this node for a specific property.\nThis functionality has\nbeen borrowed from the java.beans package, though this class has\nnothing to do with a bean" ]
public static void copyProperties(Object dest, Object orig){ try { if (orig != null && dest != null){ BeanUtils.copyProperties(dest, orig); PropertyUtils putils = new PropertyUtils(); PropertyDescriptor origDescriptors[] = putils.getPropertyDescriptors(orig); for (PropertyDescriptor origDescriptor : origDescriptors) { String name = origDescriptor.getName(); if ("class".equals(name)) { continue; // No point in trying to set an object's class } Class propertyType = origDescriptor.getPropertyType(); if (!Boolean.class.equals(propertyType) && !(Boolean.class.equals(propertyType))) continue; if (!putils.isReadable(orig, name)) { //because of bad convention Method m = orig.getClass().getMethod("is" + name.substring(0, 1).toUpperCase() + name.substring(1), (Class<?>[]) null); Object value = m.invoke(orig, (Object[]) null); if (putils.isWriteable(dest, name)) { BeanUtilsBean.getInstance().copyProperty(dest, name, value); } } } } } catch (Exception e) { throw new DJException("Could not copy properties for shared object: " + orig +", message: " + e.getMessage(),e); } }
[ "This takes into account objects that breaks the JavaBean convention\nand have as getter for Boolean objects an \"isXXX\" method.\n@param dest\n@param orig" ]
[ "Parses int value and returns the provided default if the value can't be parsed.\n@param value the int to parse.\n@param defaultValue the default value.\n@return the parsed int, or the default value if parsing fails.", "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Create an import declaration and delegates its registration for an upper class.", "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "A comment.\n\n@param args the parameters", "Indicates if this file represents a file on the underlying file system.\n\n@param filePath\n@return", "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data", "return null if the operation has no params to validate", "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException" ]
public static Date min(Date d1, Date d2) { Date result; if (d1 == null) { result = d2; } else if (d2 == null) { result = d1; } else { result = (d1.compareTo(d2) < 0) ? d1 : d2; } return result; }
[ "Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date earliest date" ]
[ "Convert an integer value into a TimeUnit instance.\n\n@param value time unit value\n@return TimeUnit instance", "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes", "Start a print.\n\n@param jobId the job ID\n@param specJson the client json request.\n@param out the stream to write to.", "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}", "Returns the value that has to be set for the dynamic attribute.\n\n@param file the file where the current content is stored\n@param value the content value that is represented by the attribute\n@param attributeName the attribute's name\n@param editedLocalEntity the entities that where edited last\n@return the value that has to be set for the dynamic attribute.", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Use this API to fetch nstrafficdomain_binding resource of given name .", "host.xml", "Decode a content Type header line into types and parameters pairs" ]
public static authenticationradiuspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ authenticationradiuspolicy_vpnglobal_binding obj = new authenticationradiuspolicy_vpnglobal_binding(); obj.set_name(name); authenticationradiuspolicy_vpnglobal_binding response[] = (authenticationradiuspolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationradiuspolicy_vpnglobal_binding resources of given name ." ]
[ "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative", "Closes all the producers in the pool", "Use this API to update sslcertkey resources.", "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found.", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler.", "Gets the first value for the key.\n\n@param key the key to check for the value\n\n@return the value or {@code null} if the key is not found or the value was {@code null}", "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.", "Stops all transitions.", "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target" ]
public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken) { return getReader(type, oauthToken, null); }
[ "Get a reader implementation class to perform API calls with.\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 <T> The reader type to request an instance of\n@return A reader implementation class" ]
[ "Start a server.\n\n@return the http server\n@throws Exception the exception", "apply the base fields to other views if configured to do so.", "sets the class object described by this descriptor.\n@param c the class to describe", "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Return all tenors for which data exists.\n\n@return The tenors in months.", "Print channels to the left of log messages\n@param width The width (in characters) to print the channels\n@return this", "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return", "Get the contents from the request URL.\n\n@param url URL to get the response from\n@param layer the raster layer\n@return {@link InputStream} with the content\n@throws IOException cannot get content", "checks if the 2 triangles shares a segment\n@author Doron Ganel & Eyal Roth(2009)\n@param t2 - a second triangle\n@return boolean" ]
@Override public String toFullString() { String result; if(hasNoStringCache() || (result = stringCache.fullString) == null) { stringCache.fullString = result = toNormalizedString(IPv4StringCache.fullParams); } return result; }
[ "This produces a string with no compressed segments and all segments of full length,\nwhich is 3 characters for IPv4 segments." ]
[ "Write a long attribute.\n\n@param name attribute name\n@param value attribute value", "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", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified.", "A disposer method is bound to a producer if the producer is assignable to the disposed parameter.\n\n@param enhancedDisposedParameter\n@return the set of required qualifiers for the given disposed parameter", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "Use this API to fetch clusternodegroup_nslimitidentifier_binding resources of given name .", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF" ]
private int read() { int curByte = 0; try { curByte = rawData.get() & 0xFF; } catch (Exception e) { header.status = GifDecoder.STATUS_FORMAT_ERROR; } return curByte; }
[ "Reads a single byte from the input stream." ]
[ "Concat a List into a CSV String.\n@param list list to concat\n@return csv string", "Deletes an entity by its primary key.\n\n@param id\nPrimary key of the entity.", "Displays a localized warning.\n@param caption the caption of the warning.\n@param description the description of the warning.", "Instantiates an instance of input Java shader class,\nwhich must be derived from GVRShader or GVRShaderTemplate.\n@param id Java class which implements shaders of this type.\n@param ctx GVRContext shader belongs to\n@return GVRShader subclass which implements this shader type", "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception", "Configures a RequestBuilder to send an RPC request.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked.", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@param dateRollConvention Adjustment to be applied to the all dates.\n@param businessdayCalendar Businessday calendar (holiday calendar) to be used for date roll adjustment.\n@param fixingOffsetDays Number of business days to be added to period start to get the fixing date.\n@param paymentOffsetDays Number of business days to be added to period end to get the payment date.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "A comment.\n\n@param args the parameters", "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration" ]
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) { if (!isActive()) { throw new ContextNotActiveException(); } if (creationalContext != null) { T instance = contextual.create(creationalContext); if (creationalContext instanceof WeldCreationalContext<?>) { addDependentInstance(instance, contextual, (WeldCreationalContext<T>) creationalContext); } return instance; } else { return null; } }
[ "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context" ]
[ "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work", "Get the original image URL.\n\n@return The original image URL", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "This method extracts calendar data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param map Map of calendar UIDs to names", "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Generate the body of a toString method that uses plain concatenation.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\nalways present, this can be done with a long block of unconditional code. We could use a\nStringBuilder for this, but in fact the Java compiler will do this for us under the hood\nif we use simple string concatenation, so we use the more readable approach.", "Extracts the column of A and copies it into u while computing the magnitude of the\nlargest element and returning it.\n\n<pre>\nu[ (offsetU+row0+i)*2 ] = A.getReal(row0+i,col)\nu[ (offsetU+row0+i)*2 + 1] = A.getImag(row0+i,col)\n</pre>\n\n@param A Complex matrix\n@param row0 First row in A to be copied\n@param row1 Last row in A + 1 to be copied\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U\n@return magnitude of largest element", "Uploads a new file to this folder while reporting the progress to a ProgressListener.\n\n@param fileContent a stream containing the contents of the file to upload.\n@param name the name to give the uploaded file.\n@param fileSize the size of the file used for determining the progress of the upload.\n@param listener a listener for monitoring the upload's progress.\n@return the uploaded file's info.", "Checks if the specified bytecode version string represents a JDK 1.5+ compatible\nbytecode version.\n@param bytecodeVersion the bytecode version string (1.4, 1.5, 1.6, 1.7 or 1.8)\n@return true if the bytecode version is JDK 1.5+" ]
private int getIndicatorStartPos() { switch (getPosition()) { case TOP: return mIndicatorClipRect.left; case RIGHT: return mIndicatorClipRect.top; case BOTTOM: return mIndicatorClipRect.left; default: return mIndicatorClipRect.top; } }
[ "Returns the start position of the indicator.\n\n@return The start position of the indicator." ]
[ "Add a IN clause so the column must be equal-to one of the objects from the list passed in.", "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null", "Throws one RendererException if the viewType, layoutInflater or parent are null.", "Add parameter to testCase\n\n@param context which can be changed", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Validate that the overlay exists. If it doesn't exist, throws an\nexception if not in batch mode or if failInBatch is true. In batch mode,\nwe could be in the case that the overlay doesn't exist yet.", "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "Write the field to the specified channel.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()" ]
@PostConstruct public void initDatabase() { MongoDBInit.LOGGER.info("initializing MongoDB"); String dbName = System.getProperty("mongodb.name"); if (dbName == null) { throw new RuntimeException("Missing database name; Set system property 'mongodb.name'"); } MongoDatabase db = this.mongo.getDatabase(dbName); try { PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); Resource[] resources = resolver.getResources("classpath*:mongodb/*.ndjson"); MongoDBInit.LOGGER.info("Scanning for collection data"); for (Resource res : resources) { String filename = res.getFilename(); String collection = filename.substring(0, filename.length() - 7); MongoDBInit.LOGGER.info("Found collection file: {}", collection); MongoCollection<DBObject> dbCollection = db.getCollection(collection, DBObject.class); try (Scanner scan = new Scanner(res.getInputStream(), "UTF-8")) { int lines = 0; while (scan.hasNextLine()) { String json = scan.nextLine(); Object parse = JSON.parse(json); if (parse instanceof DBObject) { DBObject dbObject = (DBObject) parse; dbCollection.insertOne(dbObject); } else { MongoDBInit.LOGGER.error("Invalid object found: {}", parse); throw new RuntimeException("Invalid object"); } lines++; } MongoDBInit.LOGGER.info("Imported {} objects into collection {}", lines, collection); } } } catch (IOException e) { throw new RuntimeException("Error importing objects", e); } }
[ "init database with demo data" ]
[ "Return true only if the specified object responds to the named method\n@param object - the object to check\n@param methodName - the name of the method\n@return true if the object responds to the named method", "Generate a new check box with the provided date and check state.\n@param date date for the check box.\n@param checkState the initial check state.\n@return the created check box", "Use this API to delete ntpserver.", "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", "Over simplistic helper to compare two strings to check radio buttons.\n\n@param value1 the first value\n@param value2 the second value\n@return \"checked\" if both values are equal, the empty String \"\" otherwise", "Use this API to clear route6 resources.", "Returns the default conversion for the given java type.\n\n@param javaType The qualified java type\n@return The default conversion or <code>null</code> if there is no default conversion for the type", "Registers the parameter for the value formatter for the given variable and puts\nit's implementation in the parameters map.\n@param djVariable\n@param variableName", "Creates a resource key with id defined as enumeration value name and bundle specified by given class.\n@param clazz the class owning the bundle\n@param value enumeration value used to define key id\n@return the resource key" ]
public static Boolean assertTrue(Boolean value, String message) { if (!Boolean.valueOf(value)) throw new IllegalStateException(message); return value; }
[ "Throws an IllegalStateException when the given value is not true." ]
[ "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Adds the includes of the fileset to the handling.\n\n@param handling The handling\n@param fileSet The fileset", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "Create a handful of default currencies to keep Primavera happy.", "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Type-safe wrapper around setVariable which sets only one framed vertex.", "Process the scheduling project property from PROJPROP. This table only seems to exist\nin P6 databases, not XER files.\n\n@throws SQLException", "Stop the service and end the program" ]
public Where<T, ID> rawComparison(String columnName, String rawOperator, Object value) throws SQLException { addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value, rawOperator)); return this; }
[ "Make a comparison where the operator is specified by the caller. It is up to the caller to specify an appropriate\noperator for the database and that it be formatted correctly." ]
[ "This looks at the servlet attributes to get the list of response headers to remove while the response object gets created by the servlet", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object", "Reads resource data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Determines if the queue identified by the given key can be used as a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key already is a delayed queue or is not currently used, false otherwise", "Bessel function of the first kind, of order 0.\n\n@param x Value.\n@return I0 value.", "Adds each forbidden substring, checking that it's not null.\n\n@param forbiddenSubStrings\nthe forbidden substrings\n@throws NullPointerException\nif a forbidden substring is null", "Get the last non-white X point\n@param img Image in memory\n@return the trimmed width", "Creates a slice for directly a raw memory address. This is\ninherently unsafe as it may be used to access arbitrary memory.\n\n@param address the raw memory address base\n@param size the size of the slice\n@return the unsafe slice" ]
public static int[] Argsort(final float[] array, final boolean ascending) { Integer[] indexes = new Integer[array.length]; for (int i = 0; i < indexes.length; i++) { indexes[i] = i; } Arrays.sort(indexes, new Comparator<Integer>() { @Override public int compare(final Integer i1, final Integer i2) { return (ascending ? 1 : -1) * Float.compare(array[i1], array[i2]); } }); return asArray(indexes); }
[ "Returns the indices that would sort an array.\n\n@param array Array.\n@param ascending Ascending order.\n@return Array of indices." ]
[ "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "Save a weak reference to the resource", "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator", "Sets a property on this Javascript object for which the value is a\nJavascript object itself.\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Removes an element from the observation matrix.\n\n@param index which element is to be removed", "Keep a cache of items files associated with classification in order to improve performance.", "Returns the matrix's rank. Automatic selection of threshold\n\n@param A Matrix. Not modified.\n@return The rank of the decomposed matrix.", "Returns the names of parser rules that should be called in order to obtain the follow elements for the parser\ncall stack described by the given param.", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish" ]
public void handleStateEvent(String callbackKey) { if (handlers.containsKey(callbackKey) && handlers.get(callbackKey) instanceof StateEventHandler) { ((StateEventHandler) handlers.get(callbackKey)).handle(); } else { System.err.println("Error in handle: " + callbackKey + " for state handler "); } }
[ "This method is called from Javascript, passing in the previously created\ncallback key. It uses that to find the correct handler and then passes on\nthe call. State events in the Google Maps API don't pass any parameters.\n\n@param callbackKey Key generated by the call to registerHandler." ]
[ "Read an element which contains only a single list attribute of a given\ntype, returning it as an array.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list as an array\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Validates bic.\n\n@param bic to be validated.\n@throws BicFormatException if bic is invalid.\nUnsupportedCountryException if bic's country is not supported.", "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return", "Deletes the specified shovel from specified virtual host.\n\n@param vhost virtual host from where to delete the shovel\n@param shovelname Shovel to be deleted.", "Set the menu's width in pixels.", "Use this API to export sslfipskey.", "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "From v3_epoly.js, calculates the distance between this LatLong point and\nanother.\n\n@param end The end point to calculate the distance to.\n@return The distance, in metres, to the end point.", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return the array or null if reading the array fails." ]
public void reset( int N ) { this.N = N; this.diag = null; this.off = null; if( splits.length < N ) { splits = new int[N]; } numSplits = 0; x1 = 0; x2 = N-1; steps = numExceptional = lastExceptional = 0; this.Q = null; }
[ "Sets the size of the matrix being decomposed, declares new memory if needed,\nand sets all helper functions to their initial value." ]
[ "Executes the given xpath and returns the result with the type specified.", "Performs a HTTP DELETE request.\n\n@return {@link Response}", "This method writes data for a single task to a Planner file.\n\n@param mpxjTask MPXJ Task instance\n@param taskList list of child tasks for current parent", "Compute singular values and U and V at the same time", "Retrieves the members of the type and of its super types.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the MembersInclSupertypes attribute\n@param paramValue The feature to be added to the MembersInclSupertypes attribute\n@throws XDocletException If an error occurs", "Sends the events to monitoring service client.\n\n@param events the events", "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Return the regression basis functions.\n\n@param exerciseDate The date w.r.t. which the basis functions should be measurable.\n@param model The model.\n@return Array of random variables.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label" ]
public static base_responses delete(nitro_service client, clusterinstance resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { clusterinstance deleteresources[] = new clusterinstance[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new clusterinstance(); deleteresources[i].clid = resources[i].clid; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete clusterinstance resources." ]
[ "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.", "Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"field-ref\" optional=\"true\" description=\"Identifies the field that provides the value\nif a runtime argument; if not set, then null is used\"\[email protected] name=\"name\" optional=\"false\" description=\"The identifier of the argument tag\"\[email protected] name=\"return\" optional=\"true\" description=\"Whether this is a return value (if a runtime argument)\"\nvalues=\"true,false\"\[email protected] name=\"value\" optional=\"false\" description=\"The value if a constant argument\"", "Calculates the delta of a digital option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The delta of the digital option", "Add an additional binary type", "select a use case.", "Set the host running the Odo instance to configure\n\n@param hostName name of host" ]
public void addAll(OptionsContainerBuilder container) { for ( Entry<Class<? extends Option<?, ?>>, ValueContainerBuilder<?, ?>> entry : container.optionValues.entrySet() ) { addAll( entry.getKey(), entry.getValue().build() ); } }
[ "Adds all options from the passed container to this container.\n\n@param container a container with options to add" ]
[ "private int numCalls = 0;", "Get the raw data bytes of the device update packet.\n\n@return the data sent by the device to update its status", "Wrap an existing setter.", "Get the URL for the user's profile.\n\n@param userId\nThe user ID\n@return The URL\n@throws FlickrException", "Extract resource group from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter.", "Move the SQL value to the next one for version processing.", "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", "Executes the rebalance plan. Does so batch-by-batch. Between each batch,\nstatus is dumped to logger.info.\n\n@param rebalancePlan" ]
private Boolean readOptionalBoolean(JSONValue val) { JSONBoolean b = null == val ? null : val.isBoolean(); if (b != null) { return Boolean.valueOf(b.booleanValue()); } return null; }
[ "Read an optional boolean value form a JSON value.\n@param val the JSON value that should represent the boolean.\n@return the boolean from the JSON or null if reading the boolean fails." ]
[ "A specific, existing task can be updated by making a PUT request on the\nURL for that task. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated task record.\n\n@param task The task to update.\n@return Request object", "Parses command-line and verifies metadata versions on all the cluster\nnodes\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Retrieve the currently cached value for the given document.", "Helper xml start tag writer\n\n@param value the output stream to use in writing", "Parses a code block with no parentheses and no commas. After it is done there should be a single token left,\nwhich is returned.", "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", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Parse a string representation of password spec.\n\nA password spec string should be `<trait spec><length spec>`.\n\nWhere \"trait spec\" should be a composition of\n\n* `a` - indicate lowercase letter required\n* `A` - indicate uppercase letter required\n* `0` - indicate digit letter required\n* `#` - indicate special character required\n\n\"length spec\" should be `[min,max]` where `max` can be omitted.\n\nHere are examples of valid \"length spec\":\n\n* `[6,20]` // min length: 6, max length: 20\n* `[8,]` // min length: 8, max length: unlimited\n\nAnd examples of invalid \"length spec\":\n\n* `[8]` // \",\" required after min part\n* `[a,f]` // min and max part needs to be decimal digit(s)\n* `[3,9)` // length spec must be started with `[` and end with `]`\n\n@param spec a string representation of password spec\n@return a {@link PasswordSpec} instance" ]