query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@PostConstruct protected void postConstruct() throws GeomajasException { if (null != crsDefinitions) { for (CrsInfo crsInfo : crsDefinitions.values()) { try { CoordinateReferenceSystem crs = CRS.parseWKT(crsInfo.getCrsWkt()); String code = crsInfo.getKey(); crsCache.put(code, CrsFactory.getCrs(code, crs)); } catch (FactoryException e) { throw new GeomajasException(e, ExceptionCode.CRS_DECODE_FAILURE_FOR_MAP, crsInfo.getKey()); } } } if (null != crsTransformDefinitions) { for (CrsTransformInfo crsTransformInfo : crsTransformDefinitions.values()) { String key = getTransformKey(crsTransformInfo); transformCache.put(key, getCrsTransform(key, crsTransformInfo)); } } GeometryFactory factory = new GeometryFactory(); EMPTY_GEOMETRIES.put(Point.class, factory.createPoint((Coordinate) null)); EMPTY_GEOMETRIES.put(LineString.class, factory.createLineString((Coordinate[]) null)); EMPTY_GEOMETRIES.put(Polygon.class, factory.createPolygon(null, null)); EMPTY_GEOMETRIES.put(MultiPoint.class, factory.createMultiPoint((Coordinate[]) null)); EMPTY_GEOMETRIES.put(MultiLineString.class, factory.createMultiLineString((LineString[]) null)); // cast needed! EMPTY_GEOMETRIES.put(MultiPolygon.class, factory.createMultiPolygon((Polygon[]) null)); // cast needed! EMPTY_GEOMETRIES.put(Geometry.class, factory.createGeometryCollection(null)); }
[ "Finish service initialization.\n\n@throws GeomajasException oops" ]
[ "Sets the class loader to be used on serialization operations, for data\nstored in the specified fqn and child nodes. Note that if another class\nloader is set for a specific child node tree, the cache will use instead\nthat class loader.\n\n@param regionFqn\n@param classLoader", "Confirms that both clusters have the same set of zones defined.\n\n@param lhs\n@param rhs", "Performs a query to retrieve all the design documents defined in the database.\n\n@return a list of the design documents from the database\n@throws IOException if there was an error communicating with the server\n@since 2.5.0", "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Reconstructs a number that is represented by more than one byte in a network packet in big-endian order.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "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", "Prepares transformation interceptors for a client.\n\n@param clientConfig the client configuration\n@param newClient indicates if it is a new/updated client", "Print a duration value.\n\n@param value Duration instance\n@return string representation of a duration", "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cache arrays for information about that beat" ]
public static final Object getObject(Locale locale, String key) { ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale); return (bundle.getObject(key)); }
[ "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
[ "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Tests whether the ClassNode implements the specified method name\n\n@param classNode The ClassNode\n@param methodName The method name\n@param argTypes\n@return True if it implements the method", "Get the set of metadata providers that can offer metadata for tracks loaded from the specified media.\n\n@param sourceMedia the media whose metadata providers are desired, or {@code null} to get the set of\nmetadata providers that can offer metadata for all media.\n\n@return any registered metadata providers that reported themselves as supporting tracks from that media", "Executes a method on the server asynchronously", "Helper to generate the common configuration part for client-side and server-side widget.\n@return the common configuration options as map", "Resolve the boot updates and register at the local HC.\n\n@param controller the model controller\n@param callback the completed callback\n@throws Exception for any error", "Support the subscript operator for String.\n\n@param text a String\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Appends formatted text to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>", "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object" ]
private List<SynchroTable> readTableHeaders(InputStream is) throws IOException { // Read the headers List<SynchroTable> tables = new ArrayList<SynchroTable>(); byte[] header = new byte[48]; while (true) { is.read(header); m_offset += 48; SynchroTable table = readTableHeader(header); if (table == null) { break; } tables.add(table); } // Ensure sorted by offset Collections.sort(tables, new Comparator<SynchroTable>() { @Override public int compare(SynchroTable o1, SynchroTable o2) { return o1.getOffset() - o2.getOffset(); } }); // Calculate lengths SynchroTable previousTable = null; for (SynchroTable table : tables) { if (previousTable != null) { previousTable.setLength(table.getOffset() - previousTable.getOffset()); } previousTable = table; } for (SynchroTable table : tables) { SynchroLogger.log("TABLE", table); } return tables; }
[ "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file" ]
[ "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate", "Get list of replies\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A reply object\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html\">API Documentation</a>", "Use this API to unset the properties of nsspparams resource.\nProperties that need to be unset are specified in args array.", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Extent aware Delete by Query\n@param query\n@param cld\n@throws PersistenceBrokerException", "Finish initializing.\n\n@throws GeomajasException oops", "Set the TableAlias for ClassDescriptor", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder" ]
private void addWSAddressingInterceptors(InterceptorProvider provider) { MAPAggregator mapAggregator = new MAPAggregator(); MAPCodec mapCodec = new MAPCodec(); provider.getInInterceptors().add(mapAggregator); provider.getInInterceptors().add(mapCodec); provider.getOutInterceptors().add(mapAggregator); provider.getOutInterceptors().add(mapCodec); provider.getInFaultInterceptors().add(mapAggregator); provider.getInFaultInterceptors().add(mapCodec); provider.getOutFaultInterceptors().add(mapAggregator); provider.getOutFaultInterceptors().add(mapCodec); }
[ "Add WSAddressing Interceptors to InterceptorProvider, in order to using\nAddressingProperties to get MessageID.\n\n@param provider the interceptor provider" ]
[ "Determines run length for each 'initial' partition ID. Note that a\ncontiguous run may \"wrap around\" the end of the ring.\n\n@param cluster\n@param zoneId\n@return map of initial partition Id to length of contiguous run of\npartition IDs within the same zone..", "Count the number of non-zero elements in V", "Use this API to fetch csvserver_cachepolicy_binding resources of given name .", "Find the logging profile attached to any resource.\n\n@param resourceRoot the root resource\n\n@return the logging profile name or {@code null} if one was not found", "This method is used to push install referrer via UTM source, medium & campaign parameters\n@param source The UTM source parameter\n@param medium The UTM medium parameter\n@param campaign The UTM campaign parameter", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "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", "Looks up the object from the cache\n\n@param oid The Identity to look up the object for\n@return The object if found, otherwise null", "Convenience method to determine if a character is special to the regex system.\n\n@param chr\nthe character to test\n\n@return is the character a special character." ]
private void revisitMessages(Definitions def) { List<RootElement> rootElements = def.getRootElements(); List<ItemDefinition> toAddDefinitions = new ArrayList<ItemDefinition>(); for (RootElement root : rootElements) { if (root instanceof Message) { if (!existsMessageItemDefinition(rootElements, root.getId())) { ItemDefinition itemdef = Bpmn2Factory.eINSTANCE.createItemDefinition(); itemdef.setId(root.getId() + "Type"); toAddDefinitions.add(itemdef); ((Message) root).setItemRef(itemdef); } } } for (ItemDefinition id : toAddDefinitions) { def.getRootElements().add(id); } }
[ "Revisit message to set their item ref to a item definition\n@param def Definitions" ]
[ "Returns this bar code's pattern, converted into a set of corresponding codewords.\nUseful for bar codes that encode their content as a pattern.\n\n@param size the number of digits in each codeword\n@return this bar code's pattern, converted into a set of corresponding codewords", "Print a duration value.\n\n@param value Duration instance\n@return string representation of a duration", "Gets an iterable of all the collections for the given user.\n@param api the API connection to be used when retrieving the collections.\n@return an iterable containing info about all the collections.", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given reference curve and an additional spread.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param spread The spread which should be added to the discount curve.\n@param model The model under which the product is valued.\n@return The value of the bond for the given curve and spread.", "Set the current playback position. This method can only be used in situations where the component is\ntied to a single player, and therefore always has a single playback position.\n\nWill cause part of the component to be redrawn if the position has\nchanged. This will be quickly overruled if a player is being monitored, but\ncan be used in other contexts.\n\n@param milliseconds how far into the track has been played\n\n@see #setPlaybackState", "Init the headers of the table regarding the filters\n\n@return String[]", "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock", "Use this API to fetch all the appfwwsdl resources that are configured on netscaler.", "Returns a persistence strategy based on the passed configuration.\n\n@param cacheMapping the selected {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType}\n@param externalCacheManager the infinispan cache manager\n@param configurationUrl the location of the configuration file\n@param jtaPlatform the {@link JtaPlatform}\n@param entityTypes the meta-data of the entities\n@param associationTypes the meta-data of the associations\n@param idSourceTypes the meta-data of the id generators\n@return the persistence strategy" ]
public static <T> List<T> asImmutable(List<? extends T> self) { return Collections.unmodifiableList(self); }
[ "A convenience method for creating an immutable list\n\n@param self a List\n@return an immutable List\n@see java.util.Collections#unmodifiableList(java.util.List)\n@since 1.0" ]
[ "compute Sinh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Set the on-finish callback.\n\nThe basic {@link GVROnFinish} callback will notify you when the animation\nruns to completion. This is a good time to do things like removing\nnow-invisible objects from the scene graph.\n\n<p>\nThe extended {@link GVROnRepeat} callback will be called after every\niteration of an indefinite (repeat count less than 0) animation, giving\nyou a way to stop the animation when it's not longer appropriate.\n\n@param callback\nA {@link GVROnFinish} or {@link GVROnRepeat} implementation.\n<p>\n<em>Note</em>: Supplying a {@link GVROnRepeat} callback will\n{@linkplain #setRepeatCount(int) set the repeat count} to a\nnegative number. Calling {@link #setRepeatCount(int)} with a\nnon-negative value after setting a {@link GVROnRepeat}\ncallback will effectively convert the callback to a\n{@link GVROnFinish}.\n@return {@code this}, so you can chain setProperty() calls.", "This method lists task predecessor and successor relationships.\n\n@param file project file", "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "public for testing purpose", "Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container", "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", "Waits for the current outstanding request retrying it with exponential backoff if it fails.\n\n@throws ClosedByInterruptException if request was interrupted\n@throws IOException In the event of FileNotFoundException, MalformedURLException\n@throws RetriesExhaustedException if exceeding the number of retries", "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap." ]
public void updateFrontFacingRotation(float rotation) { if (!Float.isNaN(rotation) && !equal(rotation, frontFacingRotation)) { final float oldRotation = frontFacingRotation; frontFacingRotation = rotation % 360; for (OnFrontRotationChangedListener listener : mOnFrontRotationChangedListeners) { try { listener.onFrontRotationChanged(this, frontFacingRotation, oldRotation); } catch (Exception e) { e.printStackTrace(); Log.e(TAG, e, "updateFrontFacingRotation()"); } } } }
[ "Set new front facing rotation\n@param rotation" ]
[ "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "A recursive getAttribute method. In case a one-to-many is passed, an array will be returned.\n\n@param feature The feature wherein to search for the attribute\n@param name The attribute's full name. (can be attr1.attr2)\n@return Returns the value. In case a one-to-many is passed along the way, an array will be returned.\n@throws LayerException oops", "Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information", "Use this API to fetch all the vpath resources that are configured on netscaler.", "Process dump file data from the given input stream. The method can\nrecover from an errors that occurred while processing an input stream,\nwhich is assumed to contain the JSON serialization of a list of JSON\nentities, with each entity serialization in one line. To recover from the\nprevious error, the first line is skipped.\n\n@param inputStream\nthe stream to read from\n@throws IOException\nif there is a problem reading the stream", "Displays text which shows the valid command line parameters, and then exits.", "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process.", "Gives the \"roots\" of a list of folders, i.e. the list of folders which are not descendants of any other folders in the original list\n@param folders the original list of folders\n@return the root folders of the list", "Close all JDBC objects related to this connection." ]
public static Properties loadProperties(String[] filesToLoad) { Properties p = new Properties(); InputStream fis = null; for (String path : filesToLoad) { try { fis = Db.class.getClassLoader().getResourceAsStream(path); if (fis != null) { p.load(fis); jqmlogger.info("A jqm.properties file was found at {}", path); } } catch (IOException e) { // We allow no configuration files, but not an unreadable configuration file. throw new DatabaseException("META-INF/jqm.properties file is invalid", e); } finally { closeQuietly(fis); } } // Overload the datasource name from environment variable if any (tests only). String dbName = System.getenv("DB"); if (dbName != null) { p.put("com.enioka.jqm.jdbc.datasource", "jdbc/" + dbName); } // Done return p; }
[ "Helper method to load a property file from class path.\n\n@param filesToLoad\nan array of paths (class path paths) designating where the files may be. All files are loaded, in the order\ngiven. Missing files are silently ignored.\n\n@return a Properties object, which may be empty but not null." ]
[ "1-D Forward Discrete Cosine Transform.\n\n@param data Data.", "Modies the matrix to make sure that at least one element in each column has a value", "Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any", "Polls from the location header and updates the polling state with the\npolling response for a PUT operation.\n\n@param pollingState the polling state for the current operation.\n@param <T> the return type of the caller.", "Creates a real valued diagonal matrix of the specified type", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Get a boolean value from the values or null.\n\n@param key the look up key of the value", "Transforms a config file with an XSLT transform.\n\n@param name file name of the config file\n@param transform file name of the XSLT file\n\n@throws Exception if something goes wrong", "Skips the stream over the specified number of bytes, adding the skipped\namount to the count.\n\n@param length the number of bytes to skip\n@return the actual number of bytes skipped\n@throws java.io.IOException if an I/O error occurs\n@see java.io.InputStream#skip(long)" ]
public boolean hasUniqueLongOption(String optionName) { if(hasLongOption(optionName)) { for(ProcessedOption o : getOptions()) { if(o.name().startsWith(optionName) && !o.name().equals(optionName)) return false; } return true; } return false; }
[ "not start with another option name" ]
[ "The only properties added to a relationship are the columns representing the index of the association.", "Get a list of collaborators that are allowed access to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return list of collaborators", "Convert an Object to a DateTime.", "Creates a jrxml file\n\n@param dr\n@param layoutManager\n@param _parameters\n@param xmlEncoding (default is UTF-8 )\n@param outputStream\n@throws JRException", "Use this API to fetch appfwwsdl resource of given name .", "Create the close button UI Component.\n@return the close button.", "This will blur the view behind it and set it in\na imageview over the content with a alpha value\nthat corresponds to slideOffset.", "Copies from buffer to our internal strBufferIndex, expanding the internal buffer if necessary\n@param offset offset in the buffer to start copying from\n@param length length to copy", "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance" ]
public final List<MtasSolrStatus> checkForExceptions() { List<MtasSolrStatus> statusWithException = null; for (MtasSolrStatus item : data) { if (item.checkResponseForException()) { if (statusWithException == null) { statusWithException = new ArrayList<>(); } statusWithException.add(item); } } return statusWithException; }
[ "Check for exceptions.\n\n@return the list" ]
[ "Return the lines of a CharSequence as a List of String.\n\n@param self a CharSequence object\n@return a list of lines\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Use this API to fetch the statistics of all protocolip_stats resources that are configured on netscaler.", "Sets the replace var map to single target single var.\n\n@param variable\nthe variable\n@param replaceList\n: the list of strings that will replace the variable\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which also requires that\nyou are using one of the standard player numbers, 1-4.\n\n@param send if {@code true} we will send status packets, and can participate in (and control) tempo and beat sync\n\n@throws IllegalStateException if the virtual CDJ is not running, or if it is not using a device number in the\nrange 1 through 4\n@throws IOException if there is a problem starting the {@link BeatFinder}", "Read remarks from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Get object by identity. First lookup among objects registered in the\ntransaction, then in persistent storage.\n@param id The identity\n@return The object\n@throws PersistenceBrokerException", "Helper method that encapsulates the minimum logic for publishing a job to\na channel.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param channel\nthe channel name\n@param jobJson\nthe job serialized as JSON", "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing", "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes" ]
private void getSingleValue(Method method, Object object, Map<String, String> map) { Object value; try { value = filterValue(method.invoke(object)); } catch (Exception ex) { value = ex.toString(); } if (value != null) { map.put(getPropertyName(method), String.valueOf(value)); } }
[ "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values" ]
[ "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points", "Generates an organization regarding the parameters.\n\n@param name String\n@return Organization", "from IsoFields in ThreeTen-Backport", "Sets the occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Add a IN clause so the column must be equal-to one of the objects from the list passed in.", "Returns a list ordered from the highest priority to the lowest.", "Populates a ProjectCalendarWeek instance from Asta work pattern data.\n\n@param week target ProjectCalendarWeek instance\n@param workPatternID target work pattern ID\n@param workPatternMap work pattern data\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Use this API to delete dnsaaaarec." ]
public void localBegin() { if (this.isInLocalTransaction) { throw new TransactionInProgressException("Connection is already in transaction"); } Connection connection = null; try { connection = this.getConnection(); } catch (LookupException e) { /** * must throw to notify user that we couldn't start a connection */ throw new PersistenceBrokerException("Can't lookup a connection", e); } if (log.isDebugEnabled()) log.debug("localBegin was called for con " + connection); // change autoCommit state only if we are not in a managed environment // and it is enabled by user if(!broker.isManaged()) { if (jcd.getUseAutoCommit() == JdbcConnectionDescriptor.AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE) { if (log.isDebugEnabled()) log.debug("Try to change autoCommit state to 'false'"); platform.changeAutoCommitState(jcd, connection, false); } } else { if(log.isDebugEnabled()) log.debug( "Found managed environment setting in PB, will skip Platform.changeAutoCommitState(...) call"); } this.isInLocalTransaction = true; }
[ "Start transaction on the underlying connection." ]
[ "This method performs a set of queries to retrieve information\nfrom the an MPP or an MPX file.\n\n@param filename name of the MPX file\n@throws Exception on file read error", "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return", "Sends the error to responder.", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Returns the vertex with given ID framed into given interface.", "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Returns the simplified name of the type of the specified object.", "Print a time value.\n\n@param value time value\n@return time value" ]
public Object copy(final Object obj, final PersistenceBroker broker) { return clone(obj, IdentityMapFactory.getIdentityMap(), broker); }
[ "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return" ]
[ "Use this API to link sslcertkey.", "Print a a basic type t", "URL-Decodes a given string using ISO-8859-1. No UnsupportedEncodingException to handle as it is dealt with in\nthis method.", "Finds all the resource names contained in this file system folder.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param scanRootLocation The root location of the scan on the classpath, without leading or trailing slashes.\n@param folder The folder to look for resources under on disk.\n@return The resource names;", "This method retrieves an integer 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 integer data", "Unlink the specified reference from this object.\nMore info see OJB doc.\n\n@param obj Object with reference\n@param ord the ObjectReferenceDescriptor of the reference\n@param insert flag signals insert operation", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "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 all the cacheobject resources that are configured on netscaler." ]
public static Iterable<String> toHexStrings(Iterable<ByteArray> arrays) { ArrayList<String> ret = new ArrayList<String>(); for(ByteArray array: arrays) ret.add(ByteUtils.toHexString(array.get())); return ret; }
[ "Translate the each ByteArray in an iterable into a hexadecimal string\n\n@param arrays The array of bytes to translate\n@return An iterable of converted strings" ]
[ "Return the next word of the string, in other words it stops when a space is encountered.", "Notifies that a content item is inserted.\n\n@param position the position of the content item.", "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", "This must be called with the write lock held.\n@param requirement the requirement", "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Use this API to fetch nd6ravariables resource of given name .", "Process a single outline code.\n\n@param parentRow outline code to task mapping table\n@throws SQLException", "Reset hard on HEAD.\n\n@throws GitAPIException" ]
public DateTimeZone getZone(String id) { if (id == null) { return null; } Object obj = iZoneInfoMap.get(id); if (obj == null) { return null; } if (id.equals(obj)) { // Load zone data for the first time. return loadZoneData(id); } if (obj instanceof SoftReference<?>) { @SuppressWarnings("unchecked") SoftReference<DateTimeZone> ref = (SoftReference<DateTimeZone>) obj; DateTimeZone tz = ref.get(); if (tz != null) { return tz; } // Reference cleared; load data again. return loadZoneData(id); } // If this point is reached, mapping must link to another. return getZone((String) obj); }
[ "If an error is thrown while loading zone data, the exception is logged\nto system error and null is returned for this and all future requests.\n\n@param id the id to load\n@return the loaded zone" ]
[ "Copies all available data from in to out without closing any stream.\n\n@return number of bytes copied", "Deletes the disabled marker file in the directory of the specified version.\n\n@param version to enable\n@throws PersistenceFailureException if the marker file could not be deleted (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "Create a REST call to artifactory with a generic request\n\n@param artifactoryRequest that should be sent to artifactory\n@return {@link ArtifactoryResponse} artifactory response as per to the request sent", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise.", "Creates an immutable list that consists of the elements in the given array. A copy of the given array is used which means\nthat any modifications to the given array will not affect the immutable list.\n\n@param elements the given array of elements\n@return an immutable list", "Add an exact path to the routing table.\n\n@throws RouteAlreadyMappedException", "convenience factory method for the most usual case." ]
private BigInteger printExtendedAttributeDurationFormat(Object value) { BigInteger result = null; if (value instanceof Duration) { result = DatatypeConverter.printDurationTimeUnits(((Duration) value).getUnits(), false); } return (result); }
[ "Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units" ]
[ "Map from an activity code value UUID to the actual value itself, and its\nsequence number.\n\n@param storepoint storepoint containing current project data", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "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", "Joins the individual WBS elements to make the formated value.\n\n@param length number of elements to join\n@return formatted WBS value", "Creates the style definition used for a rectangle element based on the given properties of the rectangle\n@param x The X coordinate of the rectangle.\n@param y The Y coordinate of the rectangle.\n@param width The width of the rectangle.\n@param height The height of the rectangle.\n@param stroke Should there be a stroke around?\n@param fill Should the rectangle be filled?\n@return The resulting element style definition.", "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties" ]
public static base_response update(nitro_service client, Interface resource) throws Exception { Interface updateresource = new Interface(); updateresource.id = resource.id; updateresource.speed = resource.speed; updateresource.duplex = resource.duplex; updateresource.flowctl = resource.flowctl; updateresource.autoneg = resource.autoneg; updateresource.hamonitor = resource.hamonitor; updateresource.tagall = resource.tagall; updateresource.trunk = resource.trunk; updateresource.lacpmode = resource.lacpmode; updateresource.lacpkey = resource.lacpkey; updateresource.lagtype = resource.lagtype; updateresource.lacppriority = resource.lacppriority; updateresource.lacptimeout = resource.lacptimeout; updateresource.ifalias = resource.ifalias; updateresource.throughput = resource.throughput; updateresource.bandwidthhigh = resource.bandwidthhigh; updateresource.bandwidthnormal = resource.bandwidthnormal; return updateresource.update_resource(client); }
[ "Use this API to update Interface." ]
[ "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.", "Parse a currency symbol position value.\n\n@param value currency symbol position\n@return CurrencySymbolPosition instance", "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running.", "Enable or disable the default blank validator.", "Write an unsigned short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Read JdbcConnectionDescriptors from this InputStream.\n\n@see #mergeConnectionRepository", "Checks if a given number is in the range of a byte.\n\n@param number\na number which should be in the range of a byte (positive or negative)\n\n@see java.lang.Byte#MIN_VALUE\n@see java.lang.Byte#MAX_VALUE\n\n@return number as a byte (rounding might occur)", "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.", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile" ]
public void setJdbcLevel(String jdbcLevel) { if (jdbcLevel != null) { try { double intLevel = Double.parseDouble(jdbcLevel); setJdbcLevel(intLevel); } catch(NumberFormatException nfe) { setJdbcLevel(2.0); logger.info("Specified JDBC level was not numeric (Value=" + jdbcLevel + "), used default jdbc level of 2.0 "); } } else { setJdbcLevel(2.0); logger.info("Specified JDBC level was null, used default jdbc level of 2.0 "); } }
[ "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set" ]
[ "Set the featureModel.\n\n@param featureModel\nfeature model\n@throws LayerException\nproblem setting the feature model\n@since 1.8.0", "Calculates the legend positions and which legend title should be displayed or not.\n\nImportant: the LegendBounds in the _Models should be set and correctly calculated before this\nfunction is called!\n@param _Models The graph data which should have the BaseModel class as parent class.\n@param _StartX Left starting point on the screen. Should be the absolute pixel value!\n@param _Paint The correctly set Paint which will be used for the text painting in the later process", "Set the week of month.\n@param weekOfMonthStr the week of month to set.", "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0", "checkpoint the transaction", "Returns the complete record for a single status update.\n\n@param projectStatus The project status update to get.\n@return Request object", "One of DEFAULT, or LARGE.", "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.", "Called when a drawer has settled in a completely open state." ]
static void onActivityCreated(Activity activity) { // make sure we have at least the default instance created here. if (instances == null) { CleverTapAPI.createInstanceIfAvailable(activity, null); } if (instances == null) { Logger.v("Instances is null in onActivityCreated!"); return; } boolean alreadyProcessedByCleverTap = false; Bundle notification = null; Uri deepLink = null; String _accountId = null; // check for launch deep link try { Intent intent = activity.getIntent(); deepLink = intent.getData(); if (deepLink != null) { Bundle queryArgs = UriHelper.getAllKeyValuePairs(deepLink.toString(), true); _accountId = queryArgs.getString(Constants.WZRK_ACCT_ID_KEY); } } catch (Throwable t) { // Ignore } // check for launch via notification click try { notification = activity.getIntent().getExtras(); if (notification != null && !notification.isEmpty()) { try { alreadyProcessedByCleverTap = (notification.containsKey(Constants.WZRK_FROM_KEY) && Constants.WZRK_FROM.equals(notification.get(Constants.WZRK_FROM_KEY))); if (alreadyProcessedByCleverTap){ Logger.v("ActivityLifecycleCallback: Notification Clicked already processed for "+ notification.toString() +", dropping duplicate."); } if (notification.containsKey(Constants.WZRK_ACCT_ID_KEY)) { _accountId = (String) notification.get(Constants.WZRK_ACCT_ID_KEY); } } catch (Throwable t) { // no-op } } } catch (Throwable t) { // Ignore } if (alreadyProcessedByCleverTap && deepLink == null) return; for (String accountId: CleverTapAPI.instances.keySet()) { CleverTapAPI instance = CleverTapAPI.instances.get(accountId); boolean shouldProcess = false; if (instance != null) { shouldProcess = (_accountId == null && instance.config.isDefaultInstance()) || instance.getAccountId().equals(_accountId); } if (shouldProcess) { if (notification != null && !notification.isEmpty() && notification.containsKey(Constants.NOTIFICATION_TAG)) { instance.pushNotificationClickedEvent(notification); } if (deepLink != null) { try { instance.pushDeepLink(deepLink); } catch (Throwable t) { // no-op } } break; } } }
[ "static lifecycle callbacks" ]
[ "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "if any item in toCheck is present in collection\n@param <T>\n@param collection\n@param toCheck\n@return", "Get PhoneNumber object\n\n@return PhonenUmber | null on error", "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value.", "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Computes the determinant for the specified matrix. It must be square and have\nthe same width and height as what was specified in the constructor.\n\n@param mat The matrix whose determinant is to be computed.\n@return The determinant.", "Creates a new Box Developer Edition connection with enterprise token leveraging BoxConfig.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.", "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations.", "Prepare a parallel PING Task.\n\n@return the parallel task builder" ]
public void initialize() throws SQLException { if (initialized) { // just skip it if already initialized return; } if (connectionSource == null) { throw new IllegalStateException("connectionSource was never set on " + getClass().getSimpleName()); } databaseType = connectionSource.getDatabaseType(); if (databaseType == null) { throw new IllegalStateException( "connectionSource is getting a null DatabaseType in " + getClass().getSimpleName()); } if (tableConfig == null) { tableInfo = new TableInfo<T, ID>(databaseType, dataClass); } else { tableConfig.extractFieldTypes(databaseType); tableInfo = new TableInfo<T, ID>(databaseType, tableConfig); } statementExecutor = new StatementExecutor<T, ID>(databaseType, tableInfo, this); /* * This is a bit complex. Initially, when we were configuring the field types, external DAO information would be * configured for auto-refresh, foreign BaseDaoEnabled classes, and foreign-collections. This would cause the * system to go recursive and for class loops, a stack overflow. * * Then we fixed this by putting a level counter in the FieldType constructor that would stop the configurations * when we reach some recursion level. But this created some bad problems because we were using the DaoManager * to cache the created DAOs that had been constructed already limited by the level. * * What we do now is have a 2 phase initialization. The constructor initializes most of the fields but then we * go back and call FieldType.configDaoInformation() after we are done. So for every DAO that is initialized * here, we have to see if it is the top DAO. If not we save it for dao configuration later. */ List<BaseDaoImpl<?, ?>> daoConfigList = daoConfigLevelLocal.get(); daoConfigList.add(this); if (daoConfigList.size() > 1) { // if we have recursed then just save the dao for later configuration return; } try { /* * WARNING: We do _not_ use an iterator here because we may be adding to the list as we process it and we'll * get exceptions otherwise. This is an ArrayList so the get(i) should be efficient. * * Also, do _not_ get a copy of daoConfigLevel.doArray because that array may be replaced by another, larger * one during the recursion. */ for (int i = 0; i < daoConfigList.size(); i++) { BaseDaoImpl<?, ?> dao = daoConfigList.get(i); /* * Here's another complex bit. The first DAO that is being constructed as part of a DAO chain is not yet * in the DaoManager cache. If we continue onward we might come back around and try to configure this * DAO again. Forcing it into the cache here makes sure it won't be configured twice. This will cause it * to be stuck in twice when it returns out to the DaoManager but that's a small price to pay. This also * applies to self-referencing classes. */ DaoManager.registerDao(connectionSource, dao); try { // config our fields which may go recursive for (FieldType fieldType : dao.getTableInfo().getFieldTypes()) { fieldType.configDaoInformation(connectionSource, dao.getDataClass()); } } catch (SQLException e) { // unregister the DAO we just pre-registered DaoManager.unregisterDao(connectionSource, dao); throw e; } // it's now been fully initialized dao.initialized = true; } } finally { // if we throw we want to clear our class hierarchy here daoConfigList.clear(); daoConfigLevelLocal.remove(); } }
[ "Initialize the various DAO configurations after the various setters have been called." ]
[ "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "This method performs database modification at the very and of transaction.", "Returns status message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Use this API to update nsacl6 resources.", "call with lock on 'children' held", "A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0", "Given a particular id, return the correct contextual. For contextuals\nwhich aren't passivation capable, the contextual can't be found in another\ncontainer, and null will be returned.\n\n@param id An identifier for the contextual\n@return the contextual", "These exact lines are shared between three different tools, so\nthey have been moved here to reduce code duplication.\n@return The parsed command-line, with options removed.", "Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"" ]
public String[][] getRequiredRuleNames(Param param) { if (isFiltered(param)) { return EMPTY_ARRAY; } AbstractElement elementToParse = param.elementToParse; String ruleName = param.ruleName; if (ruleName == null) { return getRequiredRuleNames(param, elementToParse); } return getAdjustedRequiredRuleNames(param, elementToParse, ruleName); }
[ "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." ]
[ "Use this API to unset the properties of clusterinstance resource.\nProperties that need to be unset are specified in args array.", "Checks the id value.\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", "Sort and order steps to avoid unwanted generation", "Start the first inner table of a class.", "Get the first 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 or null", "Obtain collection of headers to remove\n\n@return\n@throws Exception", "Deletes the given directory.\n\n@param directory The directory to delete.", "At the moment we only support the case where one entity type is returned", "Add the specified files in reverse order." ]
public static hanode_routemonitor6_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor6_binding obj = new hanode_routemonitor6_binding(); obj.set_id(id); hanode_routemonitor6_binding response[] = (hanode_routemonitor6_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch hanode_routemonitor6_binding resources of given name ." ]
[ "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", "Tells it to process the submatrix at the next split. Should be called after the\ncurrent submatrix has been processed.", "Processes the template for all index columns for the current index descriptor.\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\"", "Parses coordinates into a Spatial4j point shape.", "Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur.", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command removes all elements in the sorted set between the lexicographical range specified.\n@param lexRange\n@return the number of elements removed.", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "Compares two double values up to some delta.\n\n@param a\n@param b\n@param delta\n@return The value 0 if a equals b, a value greater than 0 if if a > b, and a value less than 0 if a < b." ]
private void deliverFoundAnnouncement(final DeviceAnnouncement announcement) { for (final DeviceAnnouncementListener listener : getDeviceAnnouncementListeners()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { try { listener.deviceFound(announcement); } catch (Throwable t) { logger.warn("Problem delivering device found announcement to listener", t); } } }); } }
[ "Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device" ]
[ "gets the bytes, sharing the cached array and does not clone it", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group", "This method lists any notes attached to tasks.\n\n@param file MPX file", "Set the amount of padding between child objects.\n@param axis {@link Axis}\n@param padding", "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException", "Acquire the shared 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.", "Create a forward curve from given times and discount factors.\n\nThe forward curve will have times.length-1 fixing times from times[0] to times[times.length-2]\n<code>\nforward[timeIndex] = (givenDiscountFactors[timeIndex]/givenDiscountFactors[timeIndex+1]-1.0) / (times[timeIndex+1] - times[timeIndex]);\n</code>\nNote: If time[0] &gt; 0, then the discount factor 1.0 will inserted at time 0.0\n\n@param name The name of this curve.\n@param times A vector of given time points.\n@param givenDiscountFactors A vector of given discount factors (corresponding to the given time points).\n@param paymentOffset The maturity of the underlying index modeled by this curve.\n@return A new ForwardCurve object.", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "Delete by id.\n\n@param id the id" ]
public void cache(Identity oid, Object obj) { if (oid != null && obj != null) { ObjectCache cache = getCache(oid, obj, METHOD_CACHE); if (cache != null) { cache.cache(oid, obj); } } }
[ "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache" ]
[ "Returns the Organization that produce this artifact or null if there is none\n\n@param dbArtifact DbArtifact\n@return DbOrganization", "Use this API to unset the properties of aaaparameter resource.\nProperties that need to be unset are specified in args array.", "Initial random seed used for shuffling test suites and other sources\nof pseudo-randomness. If not set, any random value is set.\n\n<p>The seed's format is compatible with {@link RandomizedRunner} so that\nseed can be fixed for suites and methods alike.", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write", "Gets the event type from message.\n\n@param message the message\n@return the event type", "Backup the current configuration as part of the patch history.\n\n@throws IOException for any error", "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name .", "Use this API to fetch cmppolicylabel resource of given name .", "Use this API to fetch snmpalarm resources of given names ." ]
public void clearMarkers() { if (markers != null && !markers.isEmpty()) { markers.forEach((m) -> { m.setMap(null); }); markers.clear(); }
[ "Removes all of the markers from the map." ]
[ "Utility method to remove ampersands embedded in names.\n\n@param name name text\n@return name text without embedded ampersands", "Checks the preconditions for creating a new HashMapper processor.\n\n@param mapping\nthe Map\n@throws NullPointerException\nif mapping is null\n@throws IllegalArgumentException\nif mapping is empty", "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise", "Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Returns the finish date for this resource assignment.\n\n@return finish date", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "Initializes module enablement.\n\n@see ModuleEnablement" ]
public void clipTile(InternalTile tile, double scale, Coordinate panOrigin) throws GeomajasException { log.debug("clipTile before {}", tile); List<InternalFeature> orgFeatures = tile.getFeatures(); tile.setFeatures(new ArrayList<InternalFeature>()); Geometry maxScreenBbox = null; // The tile's maximum bounds in screen space. Used for clipping. for (InternalFeature feature : orgFeatures) { // clip feature if necessary if (exceedsScreenDimensions(feature, scale)) { log.debug("feature {} exceeds screen dimensions", feature); InternalFeatureImpl vectorFeature = (InternalFeatureImpl) feature.clone(); tile.setClipped(true); vectorFeature.setClipped(true); if (null == maxScreenBbox) { maxScreenBbox = JTS.toGeometry(getMaxScreenEnvelope(tile, panOrigin)); } Geometry clipped = maxScreenBbox.intersection(feature.getGeometry()); vectorFeature.setClippedGeometry(clipped); tile.addFeature(vectorFeature); } else { tile.addFeature(feature); } } log.debug("clipTile after {}", tile); }
[ "Apply clipping to the features in a tile. The tile and its features should already be in map space.\n\n@param tile\ntile to put features in\n@param scale\nscale\n@param panOrigin\nWhen panning on the client, only this parameter changes. So we need to be aware of it as we calculate\nthe maxScreenEnvelope.\n@throws GeomajasException oops" ]
[ "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Used by dataformats if they need to load a class\n\n@param classname the name of the\n@param dataFormat\n@return", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "Wraps the specified object pool for connections as a DataSource.\n\n@param jcd the OJB connection descriptor for the pool to be wrapped\n@param connectionPool the connection pool to be wrapped\n@return a DataSource attached to the connection pool.\nConnections will be wrapped using DBCP PoolGuard, that will not allow\nunwrapping unless the \"accessToUnderlyingConnectionAllowed=true\" configuration\nis specified.", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "This is a method to stream slops to \"slop\" store when a node is detected\nfaulty in a streaming session\n\n@param key -- original key\n@param value -- original value\n@param storeName -- the store for which we are registering the slop\n@param failedNodeId -- the faulty node ID for which we register a slop\n@throws IOException", "Entry point for this example\nUses HDFS ToolRunner to wrap processing of\n\n@param args Command-line arguments for HDFS example", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Get the element value in the list by index\n@param index the position in the list from which to get the element\n@return the element value" ]
@SuppressWarnings("unchecked") public <V3, M4, C, N, Q> N getSceneRoot(AiWrapperProvider<V3, M4, C, N, Q> wrapperProvider) { return (N) m_sceneRoot; }
[ "Returns the scene graph root.\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the scene graph root" ]
[ "Returns the log message id used by this checker. This is used to group it so that all attributes failing a type of rejction\nend up in the same error message. This default implementation uses the formatted log message with an empty attribute map as the id.\n\n@return the log message id", "Use this API to fetch all the vpnsessionaction resources that are configured on netscaler.", "Set default values for annotations.\nInitial annotation take precedence over the default annotation when both annotation types are present\n\n@param defaultAnnotations default value for annotations", "Creates a new empty HTML document tree.\n@throws ParserConfigurationException", "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data", "Convert a collection of objects to a JSON array with the string representations of that objects.\n@param collection the collection of objects.\n@return the JSON array with the string representations.", "Builds sql clause to load data into a database.\n\n@param config Load configuration.\n@param prefix Prefix for temporary resources.\n@return the load DDL", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "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" ]
@Override public boolean applyLayout(Layout itemLayout) { boolean applied = false; if (itemLayout != null && mItemLayouts.add(itemLayout)) { // apply the layout to all visible pages List<Widget> views = getAllViews(); for (Widget view: views) { view.applyLayout(itemLayout.clone()); } applied = true; } return applied; }
[ "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false" ]
[ "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Perform all Cursor cleanup here.", "Prints a currency symbol position value.\n\n@param value CurrencySymbolPosition instance\n@return currency symbol position", "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Read an optional boolean value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the boolean value in the provided JSON object.\n@return the boolean or null if reading the boolean fails.", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value.", "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance", "Returns the tags that were root in the definition files. These serve as entry point shortcuts when browsing the graph. We could reduce this to\njust fewer as the root tags may be connected through parents=\"...\".", "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied data" ]
public void setPublishQueueShutdowntime(String publishQueueShutdowntime) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishQueueShutdowntime = Integer.parseInt(publishQueueShutdowntime); }
[ "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>" ]
[ "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Get the Roman Numeral of the current value\n@return", "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression", "Pause component timer for current instance\n@param type - of component", "Set the pickers selection type.", "Stores all entries contained in the given map in the cache.", "Use this API to fetch all the bridgetable resources that are configured on netscaler.", "selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object", "Checks if the provided organization is valid and could be stored into the database\n\n@param organization Organization\n@throws WebApplicationException if the data is corrupted" ]
public static int getIbanLength(final CountryCode countryCode) { final BbanStructure structure = getBbanStructure(countryCode); return COUNTRY_CODE_LENGTH + CHECK_DIGIT_LENGTH + structure.getBbanLength(); }
[ "Returns iban length for the specified country.\n\n@param countryCode {@link org.iban4j.CountryCode}\n@return the length of the iban for the specified country." ]
[ "Creates a style definition used for pages.\n@return The page style definition.", "Use this API to create sslfipskey resources.", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Returns the currently scheduled job description identified by the given id.\n\n@param id the job id\n\n@return a job or <code>null</code> if not found", "Return a public static method of a class.\n@param methodName the static method name\n@param clazz the class which defines the method\n@param args the parameter types to the method\n@return the static method, or {@code null} if no static method was found\n@throws IllegalArgumentException if the method name is blank or the clazz is null", "Create a new instance for the specified host and encryption key.\n\n@see #create(String)", "Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the patch as a {@link JsonPatch}", "Use this API to fetch service_dospolicy_binding resources of given name ." ]
public static final String getSelectedValue(ListBox list) { int index = list.getSelectedIndex(); return (index >= 0) ? list.getValue(index) : null; }
[ "Utility function to get the current value." ]
[ "Handles the deletion of a key.\n@param key the deleted key.\n@return <code>true</code> if the deletion was successful, <code>false</code> otherwise.", "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", "Accessor method used to retrieve a Float object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Reverses a sequence of elements.\n@param array Array containing the sequence\n@param first Beginning of the range\n@param last One past the end of the range\n@exception ArrayIndexOutOfBoundsException If the range\nis invalid.", "Broadcast a packet that tells some players to start playing and others to stop. If a player number is in\nboth sets, it will be told to stop. Numbers outside the range 1 to 4 are ignored.\n\n@param deviceNumbersToStart the players that should start playing if they aren't already\n@param deviceNumbersToStop the players that should stop playing\n\n@throws IOException if there is a problem broadcasting the command to the players\n@throws IllegalStateException if the {@code VirtualCdj} is not active", "DISPATCHING - COMMANDS", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears.", "Changes the message of this comment.\n@param newMessage the new message for this comment.\n@return updated info about this comment.", "Process TestCaseFinishedEvent. Add steps and attachments from\ntop step from stepStorage to current testCase, then remove testCase\nand step from stores. Also remove attachments matches removeAttachments\nconfig.\n\n@param event to process" ]
public GetSingleConversationOptions filters(List<String> filters) { if(filters.size() == 1) { //Canvas API doesn't want the [] if it is only one value addSingleItem("filter", filters.get(0)); } else { optionsMap.put("filter[]", filters); } return this; }
[ "Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options" ]
[ "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", "Find the length of the block starting from 'start'.", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileName the name of the thrift file for which to extract a path\n@parameter thriftFiles The set of Thrift files in which to lookup the\nartifact ID.\n@return The path of the directory containing Thrift files for the given\nartifact ID. null if artifact ID not found.", "For internal use, don't call the public API internally", "Add a newline to this sequence according to the configured lineDelimiter if the last line contains\nsomething besides whitespace.", "Generate a weighted score based on position for matches of URI parts.\nThe matches are weighted in descending order from left to right.\nExact match is weighted higher than group match, and group match is weighted higher than wildcard match.\n\n@param requestUriParts the parts of request URI\n@param destUriParts the parts of destination URI\n@return weighted score", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format", "Term value.\n\n@param term\nthe term\n@return the string" ]
public static void convertTranSrc(DMatrixRMaj src , DMatrixRBlock dst ) { if( src.numRows != dst.numCols || src.numCols != dst.numRows ) throw new IllegalArgumentException("Incompatible matrix shapes."); for( int i = 0; i < dst.numRows; i += dst.blockLength ) { int blockHeight = Math.min( dst.blockLength , dst.numRows - i); for( int j = 0; j < dst.numCols; j += dst.blockLength ) { int blockWidth = Math.min( dst.blockLength , dst.numCols - j); int indexDst = i*dst.numCols + blockHeight*j; int indexSrc = j*src.numCols + i; for( int l = 0; l < blockWidth; l++ ) { int rowSrc = indexSrc + l*src.numCols; int rowDst = indexDst + l; for( int k = 0; k < blockHeight; k++ , rowDst += blockWidth ) { dst.data[ rowDst ] = src.data[rowSrc++]; } } } } }
[ "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified." ]
[ "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Static method to convert a binary operator into a string.\n\n@param oper is the binary comparison operator to be converted", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "Handler for week of month changes.\n@param event the change event.", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "Generates an artifact regarding the parameters.\n\n<P> <b>WARNING:</b> The parameters grId/arId/version should be filled!!! Only classifier and type are not mandatory.\n\n@param groupId String\n@param artifactId String\n@param version String\n@param classifier String\n@param type String\n@param extension String\n@return Artifact", "Print the visibility adornment of element e prefixed by\nany stereotypes", "Updates the internal list of dates and fires a value change if necessary.\n\n@param dates the dates to set.", "Matches an array value if it contains all the elements of the argument array\n@param rhs The arguments\n@return PredicateExpression: $all rhs" ]
public DbLicense getLicense(final String name) { final DbLicense license = repoHandler.getLicense(name); if (license == null) { throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND) .entity("License " + name + " does not exist.").build()); } return license; }
[ "Return a html view that contains the targeted license\n\n@param name String\n@return DbLicense" ]
[ "Read all of the fields information from the configuration file.", "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", "Creates the box tree for the PDF file.\n@param dim", "Converts an image in BINARY mode to RGB mode\n\n@param img image\n@return new MarvinImage instance in RGB mode", "Inserts a marshalled endpoint reference to a given DOM tree rooted by parent.\n@param wsAddr\n@param parent\n@throws ServiceLocatorException", "Use this API to Import appfwsignatures.", "Get a setted section knowing his title\n\nN.B. this search only into section list and bottom section list.\n@param title is the title of the section\n@return the section with title or null if the section is not founded", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "Retrieve the default number of minutes per month.\n\n@return minutes per month" ]
public static List<BoxTermsOfService.Info> getAllTermsOfServices(final BoxAPIConnection api, BoxTermsOfService.TermsOfServiceType termsOfServiceType) { QueryStringBuilder builder = new QueryStringBuilder(); if (termsOfServiceType != null) { builder.appendParam("tos_type", termsOfServiceType.toString()); } URL url = ALL_TERMS_OF_SERVICES_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), builder.toString()); BoxAPIRequest request = new BoxAPIRequest(api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); int totalCount = responseJSON.get("total_count").asInt(); List<BoxTermsOfService.Info> termsOfServices = new ArrayList<BoxTermsOfService.Info>(totalCount); JsonArray entries = responseJSON.get("entries").asArray(); for (JsonValue value : entries) { JsonObject termsOfServiceJSON = value.asObject(); BoxTermsOfService termsOfService = new BoxTermsOfService(api, termsOfServiceJSON.get("id").asString()); BoxTermsOfService.Info info = termsOfService.new Info(termsOfServiceJSON); termsOfServices.add(info); } return termsOfServices; }
[ "Retrieves a list of Terms of Service that belong to your Enterprise as an Iterable.\n@param api api the API connection to be used by the resource.\n@param termsOfServiceType the type of terms of service to be retrieved. Can be set to \"managed\" or \"external\"\n@return the Iterable of Terms of Service in an Enterprise that match the filter parameters." ]
[ "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Rent a car available in the last serach result\n@param intp - the command interpreter instance", "generate a message for loglevel INFO\n\n@param pObject the message Object", "Consumes the next character in the request, checking that it matches the\nexpected one. This method should be used when the", "Factory for 'and' and 'or' predicates.", "Use this API to update gslbservice resources.", "We have identified that we have a zip file. Extract the contents into\na temporary directory and process.\n\n@param stream schedule data\n@return ProjectFile instance", "Use this API to update nsspparams.", "Updates the terms and statements of the item document identified by the\ngiven item id. The updates are computed with respect to the current data\nfound online, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param itemIdValue\nid of the document to be updated\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
public static ModelNode determineHostAddress(final ModelControllerClient client) throws IOException, OperationExecutionException { final ModelNode op = Operations.createReadAttributeOperation(EMPTY_ADDRESS, "local-host-name"); ModelNode response = client.execute(op); if (Operations.isSuccessfulOutcome(response)) { return DeploymentOperations.createAddress("host", Operations.readResult(response).asString()); } throw new OperationExecutionException(op, response); }
[ "Determines the address for the host being used.\n\n@param client the client used to communicate with the server\n\n@return the address of the host\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to determine the host name fails" ]
[ "Use this API to update transformpolicy.", "Update database schema\n\n@param migrationPath path to migrations", "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "Performs spellchecking using Solr and returns the spellchecking results using JSON.\n\n@param res The HttpServletResponse object.\n@param servletRequest The ServletRequest object.\n@param cms The CmsObject object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user\n@throws IOException if writing the response fails", "Does the given class has bidirectional assiciation\nwith some other class?", "Prints a stores xml to a file.\n\n@param outputDirName\n@param fileName\n@param list of storeDefs", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Adds an additional label to the constructed document.\n\n@param text\nthe text of the label\n@param languageCode\nthe language code of the label\n@return builder object to continue construction", "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label." ]
public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel obj = new appflowpolicylabel(); obj.set_labelname(labelname); appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service); return response; }
[ "Use this API to fetch appflowpolicylabel resource of given name ." ]
[ "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", "Retrieve the date range at the specified index.\nThe index is zero based, and this method will return\nnull if the requested date range does not exist.\n\n@param index range index\n@return date range instance", "Set the timeout for idle connections. Voldemort client caches all\nconnections to the Voldemort server. This setting allows the a connection\nto be dropped, if it is idle for more than this time.\n\nThis could be useful in the following cases 1) Voldemort client is not\ndirectly connected to the server and is connected via a proxy or\nfirewall. The Proxy or firewall could drop the connection silently. If\nthe connection is dropped, then client will see operations fail with a\ntimeout. Setting this property enables the Voldemort client to tear down\nthe connection before a firewall could drop it. 2) Voldemort server\ncaches the connection and each connection has an associated memory cost.\nSetting this property on all clients, enable the clients to prune the\nconnections and there by freeing up the server connections.\n\nthrows IllegalArgumentException if the timeout is less than 10 minutes.\n\nCurrently it can't be set below 10 minutes to avoid the racing risk of\ncontention between connection checkout and selector trying to close it.\nThis is intended for low throughput scenarios.\n\n@param idleConnectionTimeout\nzero or negative number to disable the feature ( default -1)\ntimeout\n@param unit {@link TimeUnit}\n@return ClientConfig object for chained set\n\nthrows {@link IllegalArgumentException} if the timeout is greater\nthan 0, but less than 10 minutes.", "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names", "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object", "resumed a given deployment\n\n@param deployment The deployment to resume", "Convert the Phoenix representation of a finish date time into a Date instance.\n\n@param value Phoenix date time\n@return Date instance", "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise", "Use this API to fetch all the nstimeout resources that are configured on netscaler." ]
public void growMaxLength( int arrayLength , boolean preserveValue ) { if( arrayLength < 0 ) throw new IllegalArgumentException("Negative array length. Overflow?"); // see if multiplying numRows*numCols will cause an overflow. If it won't then pick the smaller of the two if( numRows != 0 && numCols <= Integer.MAX_VALUE / numRows ) { // save the user from themselves arrayLength = Math.min(numRows*numCols, arrayLength); } if( nz_values == null || arrayLength > this.nz_values.length ) { double[] data = new double[ arrayLength ]; int[] row_idx = new int[ arrayLength ]; if( preserveValue ) { if( nz_values == null ) throw new IllegalArgumentException("Can't preserve values when uninitialized"); System.arraycopy(this.nz_values, 0, data, 0, this.nz_length); System.arraycopy(this.nz_rows, 0, row_idx, 0, this.nz_length); } this.nz_values = data; this.nz_rows = row_idx; } }
[ "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false that step will be skipped." ]
[ "public for testing purpose", "Writes the results of the processing to a CSV file.", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running", "Check whether the value is matched by a regular expression.\n\n@param value value\n@param regex regular expression\n@return true when value is matched", "Calculates the static drift. Static means, that the drift does not change direction or intensity over time.\n\n@param tracks Tracks which seems to exhibit a local drift\n@return The static drift over all trajectories", "Parse parameters from this request using HTTP.\n\n@param req The ServletRequest containing all request parameters.\n@param cms The OpenCms object.\n@return CmsSpellcheckingRequest object that contains parsed parameters.", "Delivers the correct JSON Object for outgoings\n\n@param outgoings\n@throws org.json.JSONException", "Load a test file, run the classifier on it, and then write a Viterbi search\ngraph for each sequence.\n\n@param testFile\nThe file to test on." ]
public Map<DeckReference, AlbumArt> getLoadedArt() { ensureRunning(); // Make a copy so callers get an immutable snapshot of the current state. return Collections.unmodifiableMap(new HashMap<DeckReference, AlbumArt>(hotCache)); }
[ "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running" ]
[ "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.)", "Sorts the given array into sorted order using the given comparator.\n\n@param self the array to be sorted\n@param comparator a Comparator used for the comparison\n@return the sorted array\n@since 1.5.5", "Checks whether table name and key column names of the given joinable and inverse collection persister match.", "Transform the given object into an array of bytes\n\n@param object The object to be serialized\n@return The bytes created from serializing the object", "Convert an array of bytes into an array of ints. 4 bytes from the\ninput data map to a single int in the output data.\n@param bytes The data to read from.\n@return An array of 32-bit integers constructed from the data.\n@since 1.1", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Recycles the Renderer getting it from the tag associated to the renderer root view. This view\nis not used with RecyclerView widget.\n\n@param convertView that contains the tag.\n@param content to be updated in the recycled renderer.\n@return a recycled renderer.", "Use this API to delete clusterinstance of given name.", "Use this API to reset Interface resources." ]
public void setCastShadow(boolean enableFlag) { GVRSceneObject owner = getOwnerObject(); if (owner != null) { GVRShadowMap shadowMap = (GVRShadowMap) getComponent(GVRRenderTarget.getComponentType()); if (enableFlag) { if (shadowMap != null) { shadowMap.setEnable(true); } else { GVRCamera shadowCam = GVRShadowMap.makeOrthoShadowCamera( getGVRContext().getMainScene().getMainCameraRig().getCenterCamera()); shadowMap = new GVRShadowMap(getGVRContext(), shadowCam); owner.attachComponent(shadowMap); } } else if (shadowMap != null) { shadowMap.setEnable(false); } } mCastShadow = enableFlag; }
[ "Enables or disabled shadow casting for a direct light.\nEnabling shadows attaches a GVRShadowMap component to the\nGVRSceneObject which owns the light and provides the\ncomponent with an orthographic camera for shadow casting.\n@param enableFlag true to enable shadow casting, false to disable" ]
[ "Determines whether this table has a foreignkey of the given name.\n\n@param name The name of the foreignkey\n@return <code>true</code> if there is a foreignkey of that name", "Put the core auto-code algorithm here so an external class can call it", "Use this API to add sslocspresponder.", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Write entries into the storage.\nOverriding methods should first delegate to super before adding their own entries.", "Returns iban length for the specified country.\n\n@param countryCode {@link org.iban4j.CountryCode}\n@return the length of the iban for the specified country.", "Gathers information, that couldn't be collected while tree traversal.", "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Evaluate the criteria and return a boolean result.\n\n@param container field container\n@param promptValues responses to prompts\n@return boolean flag" ]
protected void addLabelForNumbers(ItemIdValue itemIdValue) { String qid = itemIdValue.getId(); try { // Fetch the online version of the item to make sure we edit the // current version: ItemDocument currentItemDocument = (ItemDocument) dataFetcher .getEntityDocument(qid); if (currentItemDocument == null) { System.out.println("*** " + qid + " could not be fetched. Maybe it has been deleted."); return; } // Check if we still have exactly one numeric value: QuantityValue number = currentItemDocument .findStatementQuantityValue("P1181"); if (number == null) { System.out.println("*** No unique numeric value for " + qid); return; } // Check if the item is in a known numeric class: if (!currentItemDocument.hasStatementValue("P31", numberClasses)) { System.out .println("*** " + qid + " is not in a known class of integer numbers. Skipping."); return; } // Check if the value is integer and build label string: String numberString; try { BigInteger intValue = number.getNumericValue() .toBigIntegerExact(); numberString = intValue.toString(); } catch (ArithmeticException e) { System.out.println("*** Numeric value for " + qid + " is not an integer: " + number.getNumericValue()); return; } // Construct data to write: ItemDocumentBuilder itemDocumentBuilder = ItemDocumentBuilder .forItemId(itemIdValue).withRevisionId( currentItemDocument.getRevisionId()); ArrayList<String> languages = new ArrayList<>( arabicNumeralLanguages.length); for (int i = 0; i < arabicNumeralLanguages.length; i++) { if (!currentItemDocument.getLabels().containsKey( arabicNumeralLanguages[i])) { itemDocumentBuilder.withLabel(numberString, arabicNumeralLanguages[i]); languages.add(arabicNumeralLanguages[i]); } } if (languages.size() == 0) { System.out.println("*** Labels already complete for " + qid); return; } logEntityModification(currentItemDocument.getEntityId(), numberString, languages); dataEditor.editItemDocument(itemDocumentBuilder.build(), false, "Set labels to numeric value (Task MB1)"); } catch (MediaWikiApiErrorException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
[ "Fetches the current online data for the given item, and adds numerical\nlabels if necessary.\n\n@param itemIdValue\nthe id of the document to inspect" ]
[ "Locate a child block by byte pattern and validate by\nchecking the length of the string we are expecting\nto follow the pattern.\n\n@param bufferIndex start index\n@return true if a child block starts at this point", "Extracts a house holder vector from the rows of A and stores it in u\n@param A Complex matrix with householder vectors stored in the upper right triangle\n@param row Row in A\n@param col0 first row in A (implicitly assumed to be r + i0)\n@param col1 last row +1 in A\n@param u Output array storage\n@param offsetU first index in U", "Substitute the variables in the given expression with the\nvalues from the resolver\n\n@param pResolver\n@param pExpression", "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI.", "iteration not synchronized", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG", "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this", "Get the collection of configured blogs for the calling user.\n\n@return The Collection of configured blogs" ]
public void deleteById(Object id) { int count = beginDelete().whereEquals(idColumn.getColumnName(), id).delete(); if (count == 0) { throw new RowNotFoundException(table, id); } }
[ "Deletes an entity by its primary key.\n\n@param id\nPrimary key of the entity." ]
[ "Look-up the results data for a particular test class.", "Returns an immutable view of a given map.", "Set default value with\n\n@param iso ISO2 of country", "Return all Clients for a profile\n\n@param profileId ID of profile clients belong to\n@return collection of the Clients found\n@throws Exception exception", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name", "Returns all base types.\n\n@return An iterator of the base types", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Add a marker so we can recognize this as a metadata archive. I would use the ZipFile comment, but\nthat is not available until Java 7, and Beat Link is supposed to be backwards compatible with Java 6.\nSince we are doing this anyway, we can also provide information about the nature of the cache, and\nhow many metadata entries it contains, which is useful for auto-attachment.\n\n@param trackListEntries the tracks contained in the cache, so we can record the number\n@param playlistId the playlist contained in the cache, or 0 if it is all tracks from the media\n@param zos the stream to which the ZipFile is being written\n\n@throws IOException if there is a problem creating the format entry" ]
public static int Maximum(ImageSource fastBitmap, int startX, int startY, int width, int height) { int max = 0; if (fastBitmap.isGrayscale()) { for (int i = startX; i < height; i++) { for (int j = startY; j < width; j++) { int gray = fastBitmap.getRGB(j, i); if (gray > max) { max = gray; } } } } else { for (int i = startX; i < height; i++) { for (int j = startY; j < width; j++) { int gray = fastBitmap.getG(j, i); if (gray > max) { max = gray; } } } } return max; }
[ "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray." ]
[ "Get path ID for a given profileId and pathName\n\n@param pathName Name of path\n@param profileId ID of profile\n@return ID of path", "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error.", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Use this API to link sslcertkey resources.", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file.\n\n@throws IOException", "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.", "Load all string recognize.", "Parse an extended attribute value.\n\n@param file parent file\n@param mpx parent entity\n@param value string value\n@param mpxFieldID field ID\n@param durationFormat duration format associated with the extended attribute" ]
static InjectionProvider<?>[] toArray(final Set<InjectionProvider<?>> injectionProviders) { return injectionProviders.toArray(new InjectionProvider<?>[injectionProviders.size()]); }
[ "Set to array.\n@param injectionProviders\nset of providers\n@return array of providers" ]
[ "Return the version string of this instance of finmath-lib.\n\n@return The version string of this instance of finmath-lib.", "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\").", "Try to extract a numeric version from a collection of strings.\n\n@param versionStrings Collection of string properties.\n@return The version string if exists in the collection.", "Closes the transactor node by removing its node in Zookeeper", "Given a list of store definitions return a set of store names\n\n@param storeDefList The list of store definitions\n@return Returns a set of store names", "The digits were stored as a hex value, thix switches them to an octal value.\n\n@param currentHexValue\n@param digitCount\n@return", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.", "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float" ]
public static Command newInsert(Object object, String outIdentifier) { return getCommandFactoryProvider().newInsert( object, outIdentifier ); }
[ "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\n\n@param object\n@param outIdentifier\n@return" ]
[ "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception", "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Return the list of module that uses the targeted artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbModule>", "Set the menu's width in pixels.", "Retrieves all file version retentions.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions.", "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails", "Update the lastCheckTime of the given record.\n\n@param id the id\n@param lastCheckTime the new value", "Set the state of an individual day in a weekly recurrence.\n\n@param day Day instance\n@param value true if this day is included in the recurrence" ]
final protected char next(final ByteBuffer buffer, boolean allow8859) throws BaseExceptions.BadMessage { if (!buffer.hasRemaining()) return HttpTokens.EMPTY_BUFF; if (_segmentByteLimit <= _segmentBytePosition) { shutdownParser(); throw new BaseExceptions.BadMessage("Request length limit exceeded: " + _segmentByteLimit); } final byte b = buffer.get(); _segmentBytePosition++; // If we ended on a CR, make sure we are if (_cr) { if (b != HttpTokens.LF) { throw new BadCharacter("Invalid sequence: LF didn't follow CR: " + b); } _cr = false; return (char)b; // must be LF } // Make sure its a valid character if (b < HttpTokens.SPACE) { if (b == HttpTokens.CR) { // Set the flag to check for _cr and just run again _cr = true; return next(buffer, allow8859); } else if (b == HttpTokens.TAB || allow8859 && b < 0) { return (char)(b & 0xff); } else if (b == HttpTokens.LF) { return (char)b; // A backend should accept a bare linefeed. http://tools.ietf.org/html/rfc2616#section-19.3 } else if (isLenient()) { return HttpTokens.REPLACEMENT; } else { shutdownParser(); throw new BadCharacter("Invalid char: '" + (char)(b & 0xff) + "', 0x" + Integer.toHexString(b)); } } // valid ascii char return (char)b; }
[ "Removes CRs but returns LFs" ]
[ "Given a interim cluster with a previously vacated zone, constructs a new\ncluster object with the drop zone completely removed\n\n@param intermediateCluster\n@param dropZoneId\n@return adjusted cluster with the zone dropped", "Use this API to add dnsview.", "Does the headset the device is docked into have a dedicated home key\n@return", "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set", "Get points after extract boundary.\n\n@param fastBitmap Image to be processed.\n@return List of points.", "Sets the segment reject as a string. This method is for convenience\nto be able to set percent reject type just by calling with '3%' and\notherwise it uses rows. All this assuming that parsing finds '%' characher\nand is able to parse a raw reject number.\n\n@param reject the new segment reject", "Return the array of field objects pulled from the data object.", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Given a container, and a set of raw data blocks, this method extracts\nthe field data and writes it into the container.\n\n@param type expected type\n@param container field container\n@param id entity ID\n@param fixedData fixed data block\n@param varData var data block" ]
public void setBaselineFinishText(int baselineNumber, String value) { set(selectField(TaskFieldLists.BASELINE_FINISHES, baselineNumber), value); }
[ "Sets the baseline finish text value.\n\n@param baselineNumber baseline number\n@param value baseline finish text value" ]
[ "Creates a map of metadata from json.\n@param jsonObject metadata json object for metadata field in get /files?fileds=,etadata.scope.template response\n@return Map of String as key a value another Map with a String key and Metadata value", "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Transforms the category path of a category to the category.\n@return a map from root or site path to category.", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "Adds a parameter to the argument list if the given integer is non-null.\nIf the value is null, then the argument list remains unchanged.", "Modifies the belief referenced by bName parameter.\n\n@param bName\n- the name of the belief to update.\n@param value\n- the new value for the belief", "Inserts a CharSequence value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a CharSequence, or null\n@return this bundler instance to chain method calls", "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy", "Set the serial end date.\n@param date the serial end date." ]
public byte getByte(Integer type) { byte result = 0; byte[] item = m_map.get(type); if (item != null) { result = item[0]; } return (result); }
[ "Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value" ]
[ "Time since last time the store was swapped\n\n@return Time in milliseconds since the store was swapped", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "Stores the gathered usage statistics about property uses to a CSV file.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Return the list of module dependencies\n\n@param moduleName\n@param moduleVersion\n@param fullRecursive\n@param corporate\n@param thirdParty\n@return List<Dependency>\n@throws GrapesCommunicationException", "Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type", "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", "Forks off a runnable with the executor provided. Multiple calls are allowed, but the listeners must be\nthreadsafe.", "Obtain all groups\n\n@return All Groups", "Calculates the beginLine of a violation report.\n\n@param pmdViolation The violation for which the beginLine should be calculated.\n@return The beginLine is assumed to be the line with the smallest number. However, if the smallest number is\nout-of-range (non-positive), it takes the other number." ]
private boolean parseRemoteDomainControllerAttributes_1_5(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list, boolean allowDiscoveryOptions) throws XMLStreamException { final ModelNode update = new ModelNode(); update.get(OP_ADDR).set(address); update.get(OP).set(RemoteDomainControllerAddHandler.OPERATION_NAME); // Handle attributes AdminOnlyDomainConfigPolicy adminOnlyPolicy = AdminOnlyDomainConfigPolicy.DEFAULT; boolean requireDiscoveryOptions = false; final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); if (!isNoNamespaceAttribute(reader, i)) { throw unexpectedAttribute(reader, i); } else { final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { case HOST: { DomainControllerWriteAttributeHandler.HOST.parseAndSetParameter(value, update, reader); break; } case PORT: { DomainControllerWriteAttributeHandler.PORT.parseAndSetParameter(value, update, reader); break; } case SECURITY_REALM: { DomainControllerWriteAttributeHandler.SECURITY_REALM.parseAndSetParameter(value, update, reader); break; } case USERNAME: { DomainControllerWriteAttributeHandler.USERNAME.parseAndSetParameter(value, update, reader); break; } case ADMIN_ONLY_POLICY: { DomainControllerWriteAttributeHandler.ADMIN_ONLY_POLICY.parseAndSetParameter(value, update, reader); ModelNode nodeValue = update.get(DomainControllerWriteAttributeHandler.ADMIN_ONLY_POLICY.getName()); if (nodeValue.getType() != ModelType.EXPRESSION) { adminOnlyPolicy = AdminOnlyDomainConfigPolicy.getPolicy(nodeValue.asString()); } break; } default: throw unexpectedAttribute(reader, i); } } } if (!update.hasDefined(DomainControllerWriteAttributeHandler.HOST.getName())) { if (allowDiscoveryOptions) { requireDiscoveryOptions = isRequireDiscoveryOptions(adminOnlyPolicy); } else { throw ParseUtils.missingRequired(reader, Collections.singleton(Attribute.HOST.getLocalName())); } } if (!update.hasDefined(DomainControllerWriteAttributeHandler.PORT.getName())) { if (allowDiscoveryOptions) { requireDiscoveryOptions = requireDiscoveryOptions || isRequireDiscoveryOptions(adminOnlyPolicy); } else { throw ParseUtils.missingRequired(reader, Collections.singleton(Attribute.PORT.getLocalName())); } } list.add(update); return requireDiscoveryOptions; }
[ "The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this\nresulted in the host and port attributes becoming optional -this method also indicates if discovery options are required\nwhere the host and port were not supplied.\n\n@param allowDiscoveryOptions i.e. are host and port potentially optional?\n@return true if discovery options are required, i.e. no host and port set and the admin policy requires a config." ]
[ "Defers an event for processing in a later phase of the current\ntransaction.\n\n@param metadata The event object", "Compute the CRC32 of the segment of the byte array given by the\nspecificed size and offset\n\n@param bytes The bytes to checksum\n@param offset the offset at which to begin checksumming\n@param size the number of bytes to checksum\n@return The CRC32", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "directive dynamic xxx,yy\n@param node\n@return", "Creates a random Hermitian matrix with elements from min to max value.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "Initialize the service with a context\n@param context the servlet context to initialize the profile.", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Starts the HTTP service.\n\n@throws Exception if the service failed to started", "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known" ]
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{ if (Dnssuffix !=null && Dnssuffix.length>0) { dnssuffix response[] = new dnssuffix[Dnssuffix.length]; dnssuffix obj[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++) { obj[i] = new dnssuffix(); obj[i].set_Dnssuffix(Dnssuffix[i]); response[i] = (dnssuffix) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch dnssuffix resources of given names ." ]
[ "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Writes a number to the specified byte array field, breaking it into its component bytes in big-endian order.\nIf the number is too large to fit in the specified number of bytes, only the low-order bytes are written.\n\n@param number the number to be written to the array\n@param buffer the buffer to which the number should be written\n@param start where the high-order byte should be written\n@param length how many bytes of the number should be written", "Returns the last available version of an artifact\n\n@param gavc String\n@return String", "public for testing purpose", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "The test that checks if clipping is needed.\n\n@param f\nfeature to test\n@param scale\nscale\n@return true if clipping is needed", "Click handler for bottom drawer items.", "Convert the value to requested quoting convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param value The value to convert.\n@param key The key of the value.\n@param toConvention The convention to convert to.\n@param toDisplacement The displacement to be used, if converting to log normal implied volatility.\n@param fromConvention The current convention of the value.\n@param fromDisplacement The current displacement.\n@param model The model for context.\n\n@return The converted value.", "Get the days difference" ]
@SuppressWarnings("unchecked") public <T extends StatementDocument> T nullEdit(T currentDocument) throws IOException, MediaWikiApiErrorException { StatementUpdate statementUpdate = new StatementUpdate(currentDocument, Collections.<Statement>emptyList(), Collections.<Statement>emptyList()); statementUpdate.setGuidGenerator(guidGenerator); return (T) this.wbEditingAction.wbEditEntity(currentDocument .getEntityId().getId(), null, null, null, statementUpdate .getJsonUpdateString(), false, this.editAsBot, currentDocument .getRevisionId(), null); }
[ "Performs a null edit on an entity. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param currentDocument\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
[ "Store an Object.\n@see org.apache.ojb.broker.PersistenceBroker#store(Object)", "Get all backup data\n\n@param model\n@return\n@throws Exception", "Returns true if required properties for FluoAdmin are set", "Calculates the static drift. Static means, that the drift does not change direction or intensity over time.\n\n@param tracks Tracks which seems to exhibit a local drift\n@return The static drift over all trajectories", "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "Returns the set of synchronized documents in a namespace.\n\n@param namespace the namespace to get synchronized documents for.\n@return the set of synchronized documents in a namespace.", "Calculate the determinant.\n\n@return Determinant.", "Pump events from event stream." ]
public int getBoneIndex(String bonename) { for (int i = 0; i < getNumBones(); ++i) if (mBoneNames[i].equals(bonename)) return i; return -1; }
[ "Get the bone index for the bone with the given name.\n\n@param bonename string identifying the bone whose index you want\n@return 0 based bone index or -1 if bone with that name is not found." ]
[ "Find a given range object in a list of ranges by a value in that range. Does a binary\nsearch over the ranges but instead of checking for equality looks within the range.\nTakes the array size as an option in case the array grows while searching happens\n@param <T> Range type\n@param ranges data list\n@param value value in the list\n@param arraySize the max search index of the list\n@return search result of range\nTODO: This should move into SegmentList.scala", "Pass a model object and return a SoyMapData if a model object happens\nto be a SoyMapData.\n\nAn implementation will also check if a passed in object is a Map and return\na SoyMapData wrapping that map", "Returns with a view of all scopes known by this manager.", "Get the inactive overlay directories.\n\n@return the inactive overlay directories", "Read resource assignment data from a PEP file.", "Returns the coupon payment of the period with the given index. The analytic model is needed in case of floating bonds.\n\n@param periodIndex The index of the period of interest.\n@param model The model under which the product is valued.\n@return The value of the coupon payment in the given period.", "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the upper limit of the interval.\n@return Solr compatible query string.", "Log an audit record of this operation.", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception" ]
private void init(boolean upgrade) { initAdapter(); initQueries(); if (upgrade) { dbUpgrade(); } // First contact with the DB is version checking (if no connection opened by pool). // If DB is in wrong version or not available, just wait for it to be ready. boolean versionValid = false; while (!versionValid) { try { checkSchemaVersion(); versionValid = true; } catch (Exception e) { String msg = e.getLocalizedMessage(); if (e.getCause() != null) { msg += " - " + e.getCause().getLocalizedMessage(); } jqmlogger.error("Database not ready: " + msg + ". Waiting for database..."); try { Thread.sleep(10000); } catch (Exception e2) { } } } }
[ "Main database initialization. To be called only when _ds is a valid DataSource." ]
[ "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "This method lists all resources defined in the file.\n\n@param file MPX file", "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances", "Returns true if the predicate is true for all pixels in the image.\n\n@param predicate a predicate function that accepts 3 parameters - the x,y coordinate and the pixel at that coordinate\n@return true if f holds for at least one pixel", "of the unbound provider (", "if |a11-a22| >> |a12+a21| there might be a better way. see pg371", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Writes the timephased data for a resource assignment.\n\n@param mpx MPXJ assignment\n@param xml MSDPI assignment" ]
public boolean removeKey(long key) { int i = indexOfKey(key); if (i<0) return false; // key not contained this.state[i]=REMOVED; this.values[i]=0; // delta this.distinct--; if (this.distinct < this.lowWaterMark) { int newCapacity = chooseShrinkCapacity(this.distinct,this.minLoadFactor, this.maxLoadFactor); rehash(newCapacity); } return true; }
[ "Removes the given key with its associated element from the receiver, if present.\n\n@param key the key to be removed from the receiver.\n@return <tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise." ]
[ "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the file containing the content\n\n@return the deployment", "Destroys the context", "Analyzes a failure thrown connecting to the master for causes that indicate\nsome problem not likely to be resolved by immediately retrying. If found,\nthrows an exception highlighting the underlying cause. If the cause is not\none of the ones understood by this method, the method returns normally.\n\n@throws org.jboss.as.domain.controller.SlaveRegistrationException if the remote HC rejected the request\n@throws IllegalStateException for other failures understood by this method", "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Restore the recorded state from the rollback xml.\n\n@param target the patchable target\n@param rollbackPatchId the rollback patch id\n@param patchType the the current patch type\n@param history the recorded history\n@throws PatchingException", "Retrieves the time at which work starts on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return start time, or null for non-working day", "Gets the Jensen Shannon divergence.\n\n@param p U vector.\n@param q V vector.\n@return The Jensen Shannon divergence between u and v.", "Associate the specified value with the specified key in this map.\nIf the map previously contained a mapping for this key, the old\nvalue is replaced and returned.\n\n@param key the key with which the value is to be associated\n@param value the value to be associated with this key\n@return the value previously mapped to the key, or null" ]
private static void parseChildShapes(ArrayList<Shape> shapes, JSONObject modelJSON, Shape current) throws JSONException { if (modelJSON.has("childShapes")) { ArrayList<Shape> childShapes = new ArrayList<Shape>(); JSONArray childShapeObject = modelJSON.getJSONArray("childShapes"); for (int i = 0; i < childShapeObject.length(); i++) { childShapes.add(getShapeWithId(childShapeObject.getJSONObject(i).getString("resourceId"), shapes)); } if (childShapes.size() > 0) { for (Shape each : childShapes) { each.setParent(current); } current.setChildShapes(childShapes); } ; } }
[ "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Returns the current revision.", "Use this API to fetch cacheselector resources of given names .", "Use this API to add nspbr6 resources.", "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param cal Calendar instance representing the date\n@param time Date instance representing the time of day", "Returns the complete property list of a class\n@param c the class\n@return the property list of the class", "Ends the transition", "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.", "Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf" ]
public static inatparam get(nitro_service service) throws Exception{ inatparam obj = new inatparam(); inatparam[] response = (inatparam[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the inatparam resources that are configured on netscaler." ]
[ "Helper function that drops all local databases for every client.", "Convenience extension, to generate traced code.", "Use this API to restore appfwprofile.", "updates the groupname in the table given the id\n\n@param newGroupName new group name\n@param id ID of group", "The token was previously determined as potentially to-be-splitted thus we\nemit additional indentation or dedenting tokens.", "Triggers a new search with the given text.\n\n@param query the text to search for.", "Compares two vectors and determines if they are numeric equals,\nindependent of its type.\n\n@param vector1\nthe first vector\n@param vector2\nthe second vector\n@return true if the vectors are numeric equals", "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", "Load the installation state based on the identity\n\n@param installedIdentity the installed identity\n@return the installation state\n@throws IOException" ]
public <T> void cleanNullReferencesAll() { for (Map<Object, Reference<Object>> objectMap : classMaps.values()) { cleanMap(objectMap); } }
[ "Run through all maps and remove any references that have been null'd out by the GC." ]
[ "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException", "Implement the persistence handler for storing the group properties.", "Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable.", "Use this API to fetch dnspolicy_dnspolicylabel_binding resources of given name .", "Determines if the version should be incremented based on the module resources' modification dates.\n\n@param cms the CMS context\n@return true if the version number should be incremented\n\n@throws CmsException if something goes wrong", "Removes all items from the list box." ]
private void setPlaybackPosition(long milliseconds) { PlaybackState oldState = currentSimpleState(); if (oldState != null && oldState.position != milliseconds) { setPlaybackState(oldState.player, milliseconds, oldState.playing); } }
[ "Set the current playback position. This method can only be used in situations where the component is\ntied to a single player, and therefore always has a single playback position.\n\nWill cause part of the component to be redrawn if the position has\nchanged. This will be quickly overruled if a player is being monitored, but\ncan be used in other contexts.\n\n@param milliseconds how far into the track has been played\n\n@see #setPlaybackState" ]
[ "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Gets the appropriate cache dir\n\n@param ctx\n@return", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Convenience method for setting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field to set.\n@param value\nValue to which to set the field.", "Log column data.\n\n@param column column data", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned" ]
private void readCalendar(net.sf.mpxj.planner.schema.Calendar plannerCalendar, ProjectCalendar parentMpxjCalendar) throws MPXJException { // // Create a calendar instance // ProjectCalendar mpxjCalendar = m_projectFile.addCalendar(); // // Populate basic details // mpxjCalendar.setUniqueID(getInteger(plannerCalendar.getId())); mpxjCalendar.setName(plannerCalendar.getName()); mpxjCalendar.setParent(parentMpxjCalendar); // // Set working and non working days // DefaultWeek dw = plannerCalendar.getDefaultWeek(); setWorkingDay(mpxjCalendar, Day.MONDAY, dw.getMon()); setWorkingDay(mpxjCalendar, Day.TUESDAY, dw.getTue()); setWorkingDay(mpxjCalendar, Day.WEDNESDAY, dw.getWed()); setWorkingDay(mpxjCalendar, Day.THURSDAY, dw.getThu()); setWorkingDay(mpxjCalendar, Day.FRIDAY, dw.getFri()); setWorkingDay(mpxjCalendar, Day.SATURDAY, dw.getSat()); setWorkingDay(mpxjCalendar, Day.SUNDAY, dw.getSun()); // // Set working hours // processWorkingHours(mpxjCalendar, plannerCalendar); // // Process exception days // processExceptionDays(mpxjCalendar, plannerCalendar); m_eventManager.fireCalendarReadEvent(mpxjCalendar); // // Process any derived calendars // List<net.sf.mpxj.planner.schema.Calendar> calendarList = plannerCalendar.getCalendar(); for (net.sf.mpxj.planner.schema.Calendar cal : calendarList) { readCalendar(cal, mpxjCalendar); } }
[ "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar" ]
[ "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant", "Check type.\n\n@param type the type\n@return the boolean", "Iterates over the contents of an object or collection, and checks whether a\npredicate is valid for at least one element.\n\n@param self the object over which we iterate\n@param closure the closure predicate used for matching\n@return true if any iteration for the object matches the closure predicate\n@since 1.0", "Alternative implementation for the drift. For experimental purposes.\n\n@param timeIndex\n@param componentIndex\n@param realizationAtTimeIndex\n@param realizationPredictor\n@return", "Create a HashSet with the given initial values.\n\n@param values The values\n@param <T> The type.", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "Searches the variables layers, top to bottom, for the iterable having all of it's items of the given type. Return\nnull if not found.", "This method writes resource data to a PM XML file." ]
protected void handleResponseOut(T message) throws Fault { Message reqMsg = message.getExchange().getInMessage(); if (reqMsg == null) { LOG.warning("InMessage is null!"); return; } // No flowId for oneway message Exchange ex = reqMsg.getExchange(); if (ex.isOneWay()) { return; } String reqFid = FlowIdHelper.getFlowId(reqMsg); // if some interceptor throws fault before FlowIdProducerIn fired if (reqFid == null) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Some interceptor throws fault.Setting FlowId in response."); } reqFid = FlowIdProtocolHeaderCodec.readFlowId(message); } // write IN message to SAM repo in case fault if (reqFid == null) { Message inMsg = ex.getInMessage(); reqFid = FlowIdProtocolHeaderCodec.readFlowId(inMsg); if (null != reqFid) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("FlowId '" + reqFid + "' found in message of fault incoming exchange."); LOG.fine("Calling EventProducerInterceptor to log IN message"); } handleINEvent(ex, reqFid); } } if (reqFid == null) { reqFid = FlowIdSoapCodec.readFlowId(message); } if (reqFid != null) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("FlowId '" + reqFid + "' found in incoming message."); } } else { reqFid = ContextUtils.generateUUID(); // write IN message to SAM repo in case fault if (null != ex.getOutFaultMessage()) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("FlowId '" + reqFid + "' generated for fault message."); LOG.fine("Calling EventProducerInterceptor to log IN message"); } handleINEvent(ex, reqFid); } if (LOG.isLoggable(Level.FINE)) { LOG.fine("No flowId found in incoming message! Generate new flowId " + reqFid); } } FlowIdHelper.setFlowId(message, reqFid); }
[ "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault" ]
[ "Resolves the configuration.\n\n@param config The specified configuration.\n@return The resolved configuration.", "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "This filter adds rounded corners to the image using the specified color as the background.\n\n@param radiusInner amount of pixels to use as radius.\n@param radiusOuter specifies the second value for the ellipse used for the radius. Use 0 for\nno value.\n@param color fill color for clipped region.", "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs", "A specific, existing section can be deleted by making a DELETE request\non the URL for that section.\n\nNote that sections must be empty to be deleted.\n\nThe last remaining section in a board view cannot be deleted.\n\nReturns an empty data block.\n\n@param section The section to delete.\n@return Request object", "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", "Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor", "Use this API to fetch all the rnatparam resources that are configured on netscaler.", "Obtains a string from a PDF value\n@param value the PDF value of the String, Integer or Float type\n@return the corresponging string value" ]
public Iterable<BoxRetentionPolicyAssignment.Info> getFolderAssignments(int limit, String ... fields) { return this.getAssignments(BoxRetentionPolicyAssignment.TYPE_FOLDER, limit, fields); }
[ "Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments." ]
[ "Apply the remote domain model to the local host controller.\n\n@param bootOperations the result of the remote read-domain-model op\n@return {@code true} if the model was applied successfully, {@code false} otherwise", "Opens a JDBC connection with the given parameters.", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "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", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Return a html view that contains the targeted license\n\n@param name String\n@return DbLicense", "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Read relationship data from a PEP file.", "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees" ]
public void strokeRectangle(Rectangle rect, Color color, float linewidth) { strokeRectangle(rect, color, linewidth, null); }
[ "Draw a rectangular boundary with this color and linewidth.\n\n@param rect\nrectangle\n@param color\ncolor\n@param linewidth\nline width" ]
[ "Performs MAC signing of the SMB. This is done as follows.\nThe signature field of the SMB is overwritted with the sequence number;\nThe MD5 digest of the MAC signing key + the entire SMB is taken;\nThe first 8 bytes of this are placed in the signature field.\n\n@param data The data.\n@param offset The starting offset at which the SMB header begins.\n@param length The length of the SMB data starting at offset.", "Add statistics about sent emails.\n\n@param recipients The list of recipients.\n@param storageUsed If a remote storage was used.", "Finish initializing service.\n\n@throws IOException oop", "Remove the report directory.", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "convenience factory method for the most usual case.", "Replies the elements of the given map except the pairs with the given keys.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keys the keys of the pairs to remove.\n@return the map with the content of the map except the pairs.\n@since 2.15", "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist", "Parses the field facet configurations.\n@param fieldFacetObject The JSON sub-node with the field facet configurations.\n@return The field facet configurations." ]
public static String formatConnectionTerminationMessage(final String connectionName, final String host, final String connectionReason, final String terminationReason) { return CON_TERMINATION_FORMAT.format(new Object[] { connectionName, host, connectionReason, terminationReason }); }
[ "Helper method for formatting connection termination messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@param terminationReason\nThe reason for terminating the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt; - &lt;terminationReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG -\nterminated by remote host." ]
[ "Retrieve a duration field.\n\n@param type field type\n@return Duration instance", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "Gets the positive integer.\n\n@param number the number\n@return the positive integer", "Record a prepared operation.\n\n@param identity the server identity\n@param prepared the prepared operation", "Returns the value of this product under the given model.\n\n@param evaluationTime Evaluation time.\n@param model The model.\n@return Value of this product und the given model.", "Use this API to delete dnstxtrec.", "ten less than Cube Q", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Delete rows that match the prepared statement." ]
public String getTexCoordShaderVar(String texName) { GVRTexture tex = textures.get(texName); if (tex != null) { return tex.getTexCoordShaderVar(); } return null; }
[ "Gets the name of the shader variable to get the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of shader variable" ]
[ "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 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", "Get a list of referrers from a given domain to a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\"", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException", "Get info about the shard a document belongs to.\n\n@param docId document ID\n@return Shard info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-database-_shards-\"\ntarget=\"_blank\">_shards</a>", "Confirms a user with the given token and token id.\n\n@param token the confirmation token.\n@param tokenId the id of the confirmation token.\n@return A {@link Task} that completes when confirmation completes/fails.", "Throws one RendererException if the viewType, layoutInflater or parent are null.", "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\"", "This method prints plan information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return plans the IPlan[] with all the information, so the tester can\nlook for information" ]
@Override public void visit(Rule rule) { Rule copy = null; Filter filterCopy = null; if (rule.getFilter() != null) { Filter filter = rule.getFilter(); filterCopy = copy(filter); } List<Symbolizer> symsCopy = new ArrayList<Symbolizer>(); for (Symbolizer sym : rule.symbolizers()) { if (!skipSymbolizer(sym)) { Symbolizer symCopy = copy(sym); symsCopy.add(symCopy); } } Graphic[] legendCopy = rule.getLegendGraphic(); for (int i = 0; i < legendCopy.length; i++) { legendCopy[i] = copy(legendCopy[i]); } Description descCopy = rule.getDescription(); descCopy = copy(descCopy); copy = sf.createRule(); copy.symbolizers().addAll(symsCopy); copy.setDescription(descCopy); copy.setLegendGraphic(legendCopy); copy.setName(rule.getName()); copy.setFilter(filterCopy); copy.setElseFilter(rule.isElseFilter()); copy.setMaxScaleDenominator(rule.getMaxScaleDenominator()); copy.setMinScaleDenominator(rule.getMinScaleDenominator()); if (STRICT && !copy.equals(rule)) { throw new IllegalStateException( "Was unable to duplicate provided Rule:" + rule); } pages.push(copy); }
[ "Overridden to skip some symbolizers." ]
[ "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "returns a dynamic Proxy that implements all interfaces of the\nclass described by this ClassDescriptor.\n\n@return Class the dynamically created proxy class", "Validates operation model against the definition and its parameters\n\n@param operation model node of type {@link ModelType#OBJECT}, representing an operation request\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Static main.\n\n@param args\nProgram arguments.\n@throws IOException\nIf an IO error occurred.", "Disallow the job type from being executed.\n@param jobType the job type to disallow", "Set the locking values\n@param cld\n@param obj\n@param oldLockingValues", "This static method calculated the vega 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 vega of the option", "Given counters of true positives, false positives, and false\nnegatives, prints out precision, recall, and f1 for each key." ]
public boolean isPublisherWrapped(AbstractProject<?, ?> project, Class<T> type) { return find(project, type) != null; }
[ "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher." ]
[ "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception", "Compute the offset for the item in the layout based on the offsets of neighbors\nin the layout. The other offsets are not patched. If neighbors offsets have not\nbeen computed the offset of the item will not be set.\n@return true if the item fits the container, false otherwise", "Get a collection of tags used by the specified user.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param userId\nThe User ID\n@return The User object\n@throws FlickrException", "Write a comma to the output stream if required.", "Create the time entry map.\n\n@param rows work pattern rows\n@return time entry map", "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names", "Converts a tab delimited string into an object with given fields\nRequires the object has public access for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterPattern delimiter\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Select this tab item." ]
protected Object[] getParameterValues(Object specialVal, BeanManagerImpl manager, CreationalContext<?> ctx, CreationalContext<?> transientReferenceContext) { if (getInjectionPoints().isEmpty()) { if (specialInjectionPointIndex == -1) { return Arrays2.EMPTY_ARRAY; } else { return new Object[] { specialVal }; } } Object[] parameterValues = new Object[getParameterInjectionPoints().size()]; List<ParameterInjectionPoint<?, X>> parameters = getParameterInjectionPoints(); for (int i = 0; i < parameterValues.length; i++) { ParameterInjectionPoint<?, ?> param = parameters.get(i); if (i == specialInjectionPointIndex) { parameterValues[i] = specialVal; } else if (hasTransientReferenceParameter && param.getAnnotated().isAnnotationPresent(TransientReference.class)) { parameterValues[i] = param.getValueToInject(manager, transientReferenceContext); } else { parameterValues[i] = param.getValueToInject(manager, ctx); } } return parameterValues; }
[ "Helper method for getting the current parameter values from a list of annotated parameters.\n\n@param parameters The list of annotated parameter to look up\n@param manager The Bean manager\n@return The object array of looked up values" ]
[ "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there", "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure", "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "currently does not support paths with name constrains", "Creates a scatter query from the given user query\n\n@param query the user's query.\n@param numSplits the number of splits to create.", "Set the host running the Odo instance to configure\n\n@param hostName name of host", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value" ]
public static appfwlearningsettings get(nitro_service service, String profilename) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); obj.set_profilename(profilename); appfwlearningsettings response = (appfwlearningsettings) obj.get_resource(service); return response; }
[ "Use this API to fetch appfwlearningsettings resource of given name ." ]
[ "Returns a string that should be used as a label for the given item. The\nmethod also ensures that each label is used for only one class. Other\nclasses with the same label will have their QID added for disambiguation.\n\n@param entityIdValue\nthe item to label\n@return the label", "Returns the current version info for a provided remote document.\n@param remoteDocument the remote BSON document from which to extract version info\n@return a DocumentVersionInfo", "Optionally specify the variable name to use for the output of this condition", "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference", "Returns a source excerpt of a JavaDoc link to a method on this type.", "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", "Sets up this object to represent an argument that will be set to a\nconstant value.\n\n@param constantValue the constant value.", "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Creates metadata on this folder using a specified scope and template.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server." ]
private void createAndAddButton(PatternType pattern, String messageKey) { CmsRadioButton btn = new CmsRadioButton(pattern.toString(), Messages.get().key(messageKey)); btn.addStyleName(I_CmsWidgetsLayoutBundle.INSTANCE.widgetCss().radioButtonlabel()); btn.setGroup(m_groupPattern); m_patternButtons.put(pattern, btn); m_patternRadioButtonsPanel.add(btn); }
[ "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label." ]
[ "All the sub-level attributes.\n\n@param name the attribute name.\n@param attribute the attribute.", "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "used to signal to the server that the client is going to drop the connection, and waits up to\none second for the server to acknowledge the receipt of this message", "URLDecode a string\n@param s\n@return", "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "This method retrieves the offset of a given entry in the Var2Data block.\nEach entry can be uniquely located by the identifier of the object to\nwhich the data belongs, and the type of the data.\n\n@param id unique identifier of an entity\n@param type data type identifier\n@return offset of requested item", "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", "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name .", "Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box" ]
@NonNull private List<String> mapObsoleteElements(List<String> names) { List<String> elementsToRemove = new ArrayList<>(names.size()); for (String name : names) { if (name.startsWith("android")) continue; elementsToRemove.add(name); } return elementsToRemove; }
[ "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names." ]
[ "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "Creates the tcpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Sets the day of the month that matches the condition, i.e., the day of month of the 2nd Saturday.\nIf the day does not exist in the current month, the last possible date is set, i.e.,\ninstead of the fifth Saturday, the fourth is chosen.\n\n@param date date that has the correct year and month already set.\n@param week the number of the week to choose.", "combines all the lists in a collection to a single list", "Adds an additional interface that the proxy should implement. The default\nimplementation will be to forward invocations to the bean instance.\n\n@param newInterface an interface", "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint", "Log warning for the resource at the provided address and single attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attribute attribute we are warning about", "Print work units.\n\n@param value TimeUnit instance\n@return work units value", "Copied from original SeleniumProxyHandler\nChanged SslRelay to SslListener and getSslRelayOrCreateNew to getSslRelayOrCreateNewOdo\nNo other changes to the function\n\n@param pathInContext\n@param pathParams\n@param request\n@param response\n@throws HttpException\n@throws IOException" ]
public static int[] toInt(double[] array) { int[] n = new int[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (int) array[i]; } return n; }
[ "1-D Double array to integer array.\n\n@param array Double array.\n@return Integer array." ]
[ "Look up record by identity.", "Unloads the sound file for this source, if any.", "Compute a singular-value decomposition of A.\n\n@return A DoubleMatrix[3] array of U, S, V such that A = U * diag(S) * V'", "Get the sub registry for the servers.\n\n@param range the version range\n@return the sub registry", "Provides a RunAs client login context", "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set", "Emit an enum event with parameters supplied.\n\nThis will invoke all {@link SimpleEventListener} bound to the specific\nenum value and all {@link SimpleEventListener} bound to the enum class\ngiven the listeners has the matching argument list.\n\nFor example, given the following enum definition:\n\n```java\npublic enum UserActivity {LOGIN, LOGOUT}\n```\n\nWe have the following simple event listener methods:\n\n```java\n{@literal @}OnEvent\npublic void handleUserActivity(UserActivity, User user) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGIN)\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGOUT)\npublic void logUserLogout(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` method:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGIN, user, System.currentTimeMills());\n```\n\nThe `handleUserActivity` is not invoked because\n\n* The method parameter `(UserActivity, User, long)` does not match the declared argument list `(UserActivity, User)`\n\nWhile the following code will invoke both `handleUserActivity` and `logUserLogout` methods:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGOUT, user);\n```\n\nThe `logUserLogin` method will not be invoked because\n\n1. the method is bound to `UserActivity.LOGIN` enum value specifically, while `LOGOUT` is triggered\n2. the method has a `long timestamp` in the argument list and it is not passed to `eventBus.emit`\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "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", "Returns the value of an option, or the default if the value is null or the key is not part of the map.\n@param configOptions the map with the config options.\n@param optionKey the option to get the value of\n@param defaultValue the default value to return if the option is not set.\n@return the value of an option, or the default if the value is null or the key is not part of the map." ]
public void incrementVersion(int node, long time) { if(node < 0 || node > Short.MAX_VALUE) throw new IllegalArgumentException(node + " is outside the acceptable range of node ids."); this.timestamp = time; Long version = versionMap.get((short) node); if(version == null) { version = 1L; } else { version = version + 1L; } versionMap.put((short) node, version); if(versionMap.size() >= MAX_NUMBER_OF_VERSIONS) { throw new IllegalStateException("Vector clock is full!"); } }
[ "Increment the version info associated with the given node\n\n@param node The node" ]
[ "returns a dynamic Proxy that implements all interfaces of the\nclass described by this ClassDescriptor.\n\n@return Class the dynamically created proxy class", "Triggers the building process, builds, creates and starts the docker container associated with the requested\ncontainer object, creates the container object and returns it\n\n@return the created container object\n\n@throws IllegalAccessException\nif there is an error accessing the container object fields\n@throws IOException\nif there is an I/O error while preparing the docker build\n@throws InvocationTargetException\nif there is an error while calling the DockerFile archive creation", "Randomly generates matrix with the specified number of non-zero elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order", "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.", "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found", "Embeds the given SVG element into a new SVG element scaling the graphic to the given dimension and\napplying the given rotation.", "Use this API to fetch cachepolicylabel resource of given name ." ]
private String toLengthText(long bytes) { if (bytes < 1024) { return bytes + " B"; } else if (bytes < 1024 * 1024) { return (bytes / 1024) + " KB"; } else if (bytes < 1024 * 1024 * 1024) { return String.format("%.2f MB", bytes / (1024.0 * 1024.0)); } else { return String.format("%.2f GB", bytes / (1024.0 * 1024.0 * 1024.0)); } }
[ "Converts a number of bytes to a human-readable string\n@param bytes the bytes\n@return the human-readable string" ]
[ "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Compares two annotated types and returns true if they are the same", "If the resource has ordered child types, those child types will be stored in the attachment. If there are no\nordered child types, this method is a no-op.\n\n@param resourceAddress the address of the resource\n@param resource the resource which may or may not have ordered children.", "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.", "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "we need to cache the address in here and not in the address section if there is a zone" ]
public static base_response enable(nitro_service client, String trapname) throws Exception { snmpalarm enableresource = new snmpalarm(); enableresource.trapname = trapname; return enableresource.perform_operation(client,"enable"); }
[ "Use this API to enable snmpalarm of given name." ]
[ "Creates a non-binary media type with the given type, subtype, and charSet\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Add a cause to the backtrace.\n\n@param cause\nthe cause\n@param bTrace\nthe backtrace list", "Obtains a Symmetry010 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "returns a sorted array of fields", "This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties file path is readable and writable\n\nIf either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath\nappropriately.", "Serialize a map of objects to a JSON String.\n\n@param map The map of objects to serialize.\n@param jsonObjectClass The @JsonObject class of the list elements", "Adds a security property to be passed to the server.\n\n@param key the property key\n@param value the property value\n\n@return the builder", "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "Add contents to the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException" ]
public void setAngularUpperLimits(float limitX, float limitY, float limitZ) { Native3DGenericConstraint.setAngularUpperLimits(getNative(), limitX, limitY, limitZ); }
[ "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)" ]
[ "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Copies the jdb log files, with additional verification of the checksums.\n\n@param sourceFile\n@param destFile\n@throws IOException", "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file.", "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Searches for a sequence of integers\n\nexample:\n1 2 3 4 6 7 -3", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance", "Return the index associated to the Renderer.\n\n@param renderer used to search in the prototypes collection.\n@return the prototype index associated to the renderer passed as argument.", "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>", "Sets the underlying read timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#readTimeout(long, TimeUnit)" ]
public final void notifyFooterItemRangeInserted(int positionStart, int itemCount) { int newHeaderItemCount = getHeaderItemCount(); int newContentItemCount = getContentItemCount(); int newFooterItemCount = getFooterItemCount(); if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > newFooterItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for footer items [0 - " + (newFooterItemCount - 1) + "]."); } notifyItemRangeInserted(positionStart + newHeaderItemCount + newContentItemCount, itemCount); }
[ "Notifies that multiple footer items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "Enables or disabled shadow casting for a direct light.\nEnabling shadows attaches a GVRShadowMap component to the\nGVRSceneObject which owns the light and provides the\ncomponent with an orthographic camera for shadow casting.\n@param enableFlag true to enable shadow casting, false to disable", "Inserts the result of the migration into the migration table\n\n@param migration the migration that was executed\n@param wasSuccessful indicates if the migration was successful or not", "Extracts a house holder vector from the column of A and stores it in u\n@param A Complex matrix with householder vectors stored in the lower left triangle\n@param row0 first row in A (implicitly assumed to be r + i0)\n@param row1 last row + 1 in A\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U", "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Draw the specified geometry.\n\n@param geometry geometry to draw\n@param symbol symbol for geometry\n@param fillColor fill colour\n@param strokeColor stroke colour\n@param lineWidth line width\n@param clipRect clipping rectangle", "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", "Roll the java.util.Time forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "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)" ]
private void handleMultiChannelEncapResponse( SerialMessage serialMessage, int offset) { logger.trace("Process Multi-channel Encapsulation"); CommandClass commandClass; ZWaveCommandClass zwaveCommandClass; int endpointId = serialMessage.getMessagePayloadByte(offset); int commandClassCode = serialMessage.getMessagePayloadByte(offset + 2); commandClass = CommandClass.getCommandClass(commandClassCode); if (commandClass == null) { logger.error(String.format("Unsupported command class 0x%02x", commandClassCode)); return; } logger.debug(String.format("Node %d Requested Command Class = %s (0x%02x)", this.getNode().getNodeId(), commandClass.getLabel() , commandClassCode)); ZWaveEndpoint endpoint = this.endpoints.get(endpointId); if (endpoint == null){ logger.error("Endpoint {} not found on node {}. Cannot set command classes.", endpoint, this.getNode().getNodeId()); return; } zwaveCommandClass = endpoint.getCommandClass(commandClass); if (zwaveCommandClass == null) { logger.warn(String.format("CommandClass %s (0x%02x) not implemented by endpoint %d, fallback to main node.", commandClass.getLabel(), commandClassCode, endpointId)); zwaveCommandClass = this.getNode().getCommandClass(commandClass); } if (zwaveCommandClass == null) { logger.error(String.format("CommandClass %s (0x%02x) not implemented by node %d.", commandClass.getLabel(), commandClassCode, this.getNode().getNodeId())); return; } logger.debug(String.format("Node %d, Endpoint = %d, calling handleApplicationCommandRequest.", this.getNode().getNodeId(), endpointId)); zwaveCommandClass.handleApplicationCommandRequest(serialMessage, offset + 3, endpointId); }
[ "Handles Multi Channel Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\nendpoint.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing." ]
[ "Multiplies all positions with a factor v\n@param v Multiplication factor", "Performs any needed operation on subreports after they are built like ensuring proper subreport with\nif \"fitToParentPrintableArea\" flag is set to true\n\n@param dr\n@param _parameters\n@throws JRException", "Use this API to add authenticationradiusaction resources.", "Checks whether table name and key column names of the given joinable and inverse collection persister match.", "Converts the node to JSON\n@return JSON object", "returns an Array with an Identities PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Run a task periodically and indefinitely.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "Gets a color formatted as an integer with ARGB ordering.\n\n@param json {@link JSONObject} to get the color from\n@param elementName Name of the color element\n@return An ARGB formatted integer\n@throws JSONException", "a small static helper to set the image from the imageHolder nullSave to the imageView\n\n@param imageHolder\n@param imageView\n@param tag used to identify imageViews and define different placeholders\n@return true if an image was set" ]
public RandomVariable[] getGradient(){ // for now let us take the case for output-dimension equal to one! int numberOfVariables = getNumberOfVariablesInList(); int numberOfCalculationSteps = factory.getNumberOfEntriesInList(); RandomVariable[] omega_hat = new RandomVariable[numberOfCalculationSteps]; // first entry gets initialized omega_hat[numberOfCalculationSteps-1] = new RandomVariableFromDoubleArray(1.0); /* * TODO: Find way that calculations form here on are not 'recorded' by the factory * IDEA: Let the calculation below run on {@link RandomVariableFromDoubleArray}, ie cast everything down! * */ for(int functionIndex = numberOfCalculationSteps - 2; functionIndex > 0; functionIndex--){ // apply chain rule omega_hat[functionIndex] = new RandomVariableFromDoubleArray(0.0); /*TODO: save all D_{i,j}*\omega_j in vector and sum up later */ for(RandomVariableUniqueVariable parent:parentsVariables){ int variableIndex = parent.getVariableID(); omega_hat[functionIndex] = omega_hat[functionIndex].add(getPartialDerivative(functionIndex, variableIndex).mult(omega_hat[variableIndex])); } } /* Due to the fact that we can still introduce 'new' true variables on the fly they are NOT the last couple of indices! * Thus save the indices of the true variables and recover them after finalizing all the calculations * IDEA: quit calculation after minimal true variable index is reached */ RandomVariable[] gradient = new RandomVariable[numberOfVariables]; /* TODO: sort array in correct manner! */ int[] indicesOfVariables = getIDsOfVariablesInList(); for(int i = 0; i < numberOfVariables; i++){ gradient[i] = omega_hat[numberOfCalculationSteps - numberOfVariables + indicesOfVariables[i]]; } return gradient; }
[ "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function" ]
[ "Notifies that a content item is changed.\n\n@param position the position.", "Gets axis dimension\n@param axis Axis. It might be either {@link Layout.Axis#X X} or\n{@link Layout.Axis#Y Y} or {@link Layout.Axis#Z Z}\n@return axis dimension", "Initialize the fat client for the given store.\n\n1. Updates the coordinatorMetadata 2.Gets the new store configs from the\nconfig file 3.Creates a new @SocketStoreClientFactory 4. Subsequently\ncaches the @StoreClient obtained from the factory.\n\n\nThis is synchronized because if Coordinator Admin is already doing some\nchange we want the AsyncMetadataVersionManager to wait.\n\n@param storeName", "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name .", "Use this API to add appfwjsoncontenttype.", "Extract resource assignments for a task.\n\n@param task parent task\n@param assignments list of Synchro resource assignment data", "Retrieve a UUID field.\n\n@param type field type\n@return UUID instance", "Called to execute this action.\n@param actionEvent", "Sets the distance from the origin to the far clipping plane for the\nwhole camera rig.\n\n@param far\nDistance to the far clipping plane." ]
private static Converter<List<String>, Object> createStringConstructorConverter(Class<?> resultClass) { try { final Constructor<?> constructor = resultClass.getConstructor(String.class); return new BasicConverter(defaultValue(resultClass)) { @Override protected Object convert(String value) throws Exception { return constructor.newInstance(value); } }; } catch (Exception e) { return null; } }
[ "Creates a converter function that converts value using a constructor that accepts a single String argument.\n\n@return A converter function or {@code null} if the given type doesn't have a public constructor that accepts\na single String argument." ]
[ "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Retrieves all file version retentions.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions.", "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", "Calculate a shift value that can be used to create a power-of-two value between\nthe specified maximum and minimum values.\n@param minimumValue the minimum value\n@param maximumValue the maximum value\n@return the calculated shift (use {@code 1 << shift} to obtain a value)", "Use this API to update systemuser resources.", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Finds or opens a client to talk to the dbserver on the specified player, incrementing its use count.\n\n@param targetPlayer the player number whose database needs to be interacted with\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n\n@return the communication client for talking to that player, or {@code null} if the player could not be found\n\n@throws IllegalStateException if we can't find the target player or there is no suitable player number for us\nto pretend to be\n@throws IOException if there is a problem communicating", "Set a bean in the context.\n\n@param name bean name\n@param object bean value", "Get a property as a boolean or throw exception.\n\n@param key the property name" ]
public UpdateBuilder<T, ID> updateColumnExpression(String columnName, String expression) throws SQLException { FieldType fieldType = verifyColumnName(columnName); if (fieldType.isForeignCollection()) { throw new SQLException("Can't update foreign colletion field: " + columnName); } addUpdateColumnToList(columnName, new SetExpression(columnName, fieldType, expression)); return this; }
[ "Add a column to be set to a value for UPDATE statements. This will generate something like 'columnName =\nexpression' where the expression is built by the caller.\n\n<p>\nThe expression should have any strings escaped using the {@link #escapeValue(String)} or\n{@link #escapeValue(StringBuilder, String)} methods and should have any column names escaped using the\n{@link #escapeColumnName(String)} or {@link #escapeColumnName(StringBuilder, String)} methods.\n</p>" ]
[ "Ends the transition", "Geta the specified metadata template by its ID.\n@param api the API connection to be used.\n@param templateID the ID of the template to get.\n@return the metadata template object.", "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", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer", "Use this API to change sslcertkey resources.", "Function to perform the forward pass for batch convolution", "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty." ]
public static Optional<Tag> parse(final String httpTag) { Tag result = null; boolean weak = false; String internal = httpTag; if (internal.startsWith("W/")) { weak = true; internal = internal.substring(2); } if (internal.startsWith("\"") && internal.endsWith("\"")) { result = new Tag( internal.substring(1, internal.length() - 1), weak); } else if (internal.equals("*")) { result = new Tag("*", weak); } return Optional.ofNullable(result); }
[ "Parses a tag formatted as defined by the HTTP standard.\n\n@param httpTag The HTTP tag string; if it starts with 'W/' the tag will be\nmarked as weak and the data following the 'W/' used as the tag;\notherwise it should be surrounded with quotes (e.g.,\n\"sometag\").\n\n@return A new tag instance.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>" ]
[ "Creates the final artifact name.\n\n@return the artifact name", "Convert a floating point date to a LocalDate.\n\nNote: This method currently performs a rounding to the next day.\nIn a future extension intra-day time offsets may be considered.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*365.0) days to referenceDate.", "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Read task relationships.", "Call this method to initialize the Fluo connection props\n\n@param conf Job configuration\n@param props Use {@link org.apache.fluo.api.config.FluoConfiguration} to set props\nprogrammatically", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Creates a sorted list that contains the items of the given iterable. The resulting list is in ascending order,\naccording to the natural ordering of the elements in the iterable.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List)\n@see #sort(Iterable, Comparator)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List)" ]
protected String getUniqueString(FieldDescriptor field) throws SequenceManagerException { ResultSetAndStatement rsStmt = null; String returnValue = null; try { rsStmt = getBrokerForClass().serviceJdbcAccess().executeSQL( "select newid()", field.getClassDescriptor(), Query.NOT_SCROLLABLE); if (rsStmt.m_rs.next()) { returnValue = rsStmt.m_rs.getString(1); } else { LoggerFactory.getDefaultLogger().error(this.getClass() + ": Can't lookup new oid for field " + field); } } catch (PersistenceBrokerException e) { throw new SequenceManagerException(e); } catch (SQLException e) { throw new SequenceManagerException(e); } finally { // close the used resources if (rsStmt != null) rsStmt.close(); } return returnValue; }
[ "returns a unique String for given field.\nthe returned uid is unique accross all tables." ]
[ "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "Curries a procedure that takes one argument.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a procedure that takes no arguments. Never <code>null</code>.", "Use this API to fetch all the appfwprofile resources that are configured on netscaler.", "Returns the ReportModel with given name.", "Get the literal value for an expression.\n\n@param expression expression\n@return literal value", "Determine if a CharSequence can be parsed as a BigDecimal.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigDecimal(String)\n@since 1.8.2", "Gets the Symmetric Chi-square divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric chi-square divergence between p and q.", "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE", "Retrieve an instance of the ResourceField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ResourceField instance" ]
private static Point getScreenSize(Context context, Point p) { if (p == null) { p = new Point(); } WindowManager windowManager = (WindowManager) context .getSystemService(Context.WINDOW_SERVICE); Display display = windowManager.getDefaultDisplay(); display.getSize(p); return p; }
[ "Returns screen height and width\n\n@param context\nAny non-null Android Context\n@param p\nOptional Point to reuse. If null, a new Point will be created.\n@return .x is screen width; .y is screen height." ]
[ "Will auto format the given string to provide support for pickadate.js formats.", "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", "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.", "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element", "Extract a list of time entries.\n\n@param shiftData string representation of time entries\n@return list of time entry rows", "Add parameter to testCase\n\n@param context which can be changed", "Verify that cluster is congruent to store def wrt zones.", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "Parse a date value.\n\n@param value String representation\n@return Date instance" ]
public void configure(Properties props) throws HibernateException { try{ this.config = new BoneCPConfig(props); // old hibernate config String url = props.getProperty(CONFIG_CONNECTION_URL); String username = props.getProperty(CONFIG_CONNECTION_USERNAME); String password = props.getProperty(CONFIG_CONNECTION_PASSWORD); String driver = props.getProperty(CONFIG_CONNECTION_DRIVER_CLASS); if (url == null){ url = props.getProperty(CONFIG_CONNECTION_URL_ALTERNATE); } if (username == null){ username = props.getProperty(CONFIG_CONNECTION_USERNAME_ALTERNATE); } if (password == null){ password = props.getProperty(CONFIG_CONNECTION_PASSWORD_ALTERNATE); } if (driver == null){ driver = props.getProperty(CONFIG_CONNECTION_DRIVER_CLASS_ALTERNATE); } if (url != null){ this.config.setJdbcUrl(url); } if (username != null){ this.config.setUsername(username); } if (password != null){ this.config.setPassword(password); } // Remember Isolation level this.isolation = ConfigurationHelper.getInteger(AvailableSettings.ISOLATION, props); this.autocommit = ConfigurationHelper.getBoolean(AvailableSettings.AUTOCOMMIT, props); logger.debug(this.config.toString()); if (driver != null && !driver.trim().equals("")){ loadClass(driver); } if (this.config.getConnectionHookClassName() != null){ Object hookClass = loadClass(this.config.getConnectionHookClassName()).newInstance(); this.config.setConnectionHook((ConnectionHook) hookClass); } // create the connection pool this.pool = createPool(this.config); } catch (Exception e) { throw new HibernateException(e); } }
[ "Pool configuration.\n@param props\n@throws HibernateException" ]
[ "Get the names of all current registered providers.\n\n@return the names of all current registered providers, never null.", "Return the array of field objects pulled from the data object.", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Adds a new Matrix variable. If one already has the same name it is written over.\n\nWhile more verbose for multiple variables, this function doesn't require new memory be declared\neach time it's called.\n\n@param variable Matrix which is to be assigned to name\n@param name The name of the variable", "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data", "Get the text value for the specified element. If the element is null, or the element's body is empty then this method will return null.\n\n@param element\nThe Element\n@return The value String or null", "Use this API to unset the properties of callhome resource.\nProperties that need to be unset are specified in args array.", "Button onClick listener.\n\n@param v" ]
public final void debug(Object pObject) { getLogger().log(FQCN, Level.DEBUG, pObject, null); }
[ "generate a message for loglevel DEBUG\n\n@param pObject the message Object" ]
[ "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Returns 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", "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Process field aliases.", "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources.", "Returns true if a Map literal that contains only entries where both key and value are constants.\n@param expression - any expression", "Helper method to load a property file from class path.\n\n@param filesToLoad\nan array of paths (class path paths) designating where the files may be. All files are loaded, in the order\ngiven. Missing files are silently ignored.\n\n@return a Properties object, which may be empty but not null.", "Use this API to fetch sslcertkey_sslvserver_binding resources of given name .", "Send an announcement packet so the other devices see us as being part of the DJ Link network and send us\nupdates." ]
public String getToken() { String id = null == answer ? text : answer; return Act.app().crypto().generateToken(id); }
[ "Returns an encrypted token combined with answer." ]
[ "Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin", "Use this API to fetch inat resource of given name .", "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box.", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance", "Obtain matching paths for a request\n\n@param overrideType type of override\n@param client Client\n@param profile Profile\n@param uri URI\n@param requestType type of request\n@param pathTest If true this will also match disabled paths\n@return Collection of matching endpoints\n@throws Exception exception", "Convert from Hadoop Text to Bytes", "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", "Decrease the indent level." ]
public static List<String> enableJMX(List<String> jvmArgs) { final String arg = "-D" + OPT_JMX_REMOTE; if (jvmArgs.contains(arg)) return jvmArgs; final List<String> cmdLine2 = new ArrayList<>(jvmArgs); cmdLine2.add(arg); return cmdLine2; }
[ "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args" ]
[ "Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Use this API to fetch appfwjsoncontenttype resource of given name .", "Creates a new tag in a workspace or organization.\n\nEvery tag is required to be created in a specific workspace or\norganization, and this cannot be changed once set. Note that you can use\nthe `workspace` parameter regardless of whether or not it is an\norganization.\n\nReturns the full record of the newly created tag.\n\n@param workspace The workspace or organization to create the tag in.\n@return Request object", "Send JSON representation of given data object to all connections of a user\n@param data the data object\n@param username the username", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Overridden to add transform.", "This method writes predecessor data to a Planner file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param mpxjTask MPXJ task instance\n@param plannerTask planner task instance", "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)" ]
public void ifHasProperty(String template, Properties attributes) throws XDocletException { String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME)); if (value != null) { generate(template); } }
[ "Determines whether the current object on the specified level has a specific property, and if so, processes the\ntemplate\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=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"" ]
[ "Set the horizontal and vertical alignment for the image when image gets cropped by resizing.\n\n@param valign Vertical alignment.\n@param halign Horizontal alignment.\n@throws IllegalStateException if image has not been marked for resize.", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return", "Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Per the navigation drawer design guidelines, updates the action bar to show the global app\n'context', rather than just what's in the current screen.", "Use this API to fetch crvserver_binding resource of given name .", "Put features in a tile. This will assure all features are only added in one tile. When a feature's unique tile\nis different from this one a link is added in the tile.\n\n@param tile\ntile to put features in\n@param maxTileExtent\nthe maximum tile extent\n@throws GeomajasException oops", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Unlock all files opened for writing.", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException" ]
public void setFromJSON(Context context, JSONObject properties) { String backgroundResStr = optString(properties, Properties.background); if (backgroundResStr != null && !backgroundResStr.isEmpty()) { final int backgroundResId = getId(context, backgroundResStr, "drawable"); setBackGround(context.getResources().getDrawable(backgroundResId, null)); } setBackgroundColor(getJSONColor(properties, Properties.background_color, getBackgroundColor())); setGravity(optInt(properties, TextContainer.Properties.gravity, getGravity())); setRefreshFrequency(optEnum(properties, Properties.refresh_freq, getRefreshFrequency())); setTextColor(getJSONColor(properties, Properties.text_color, getTextColor())); setText(optString(properties, Properties.text, (String) getText())); setTextSize(optFloat(properties, Properties.text_size, getTextSize())); final JSONObject typefaceJson = optJSONObject(properties, Properties.typeface); if (typefaceJson != null) { try { Typeface typeface = WidgetLib.getTypefaceManager().getTypeface(typefaceJson); setTypeface(typeface); } catch (Throwable e) { Log.e(TAG, e, "Couldn't set typeface from properties: %s", typefaceJson); } } }
[ "Set text parameters from properties\n@param context Valid Android {@link Context}\n@param properties JSON text properties" ]
[ "Enables lifecycle callbacks for Android devices\n@param application App's Application object", "Somewhat ad-hoc list of only greek letters that bio people use, partly\nto avoid false positives on short ones.\n@param s String to check for Greek\n@return true iff there is a greek lette embedded somewhere in the String", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive", "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size", "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.", "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Processes an anonymous reference definition.\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 reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"false\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Support the range subscript operator for String\n\n@param text a String\n@param range a Range\n@return a substring corresponding to the Range\n@since 1.0" ]
public int getCostRateTableIndex() { Integer value = (Integer) getCachedValue(AssignmentField.COST_RATE_TABLE); return value == null ? 0 : value.intValue(); }
[ "Returns the cost rate table index for this assignment.\n\n@return cost rate table index" ]
[ "Append the html-code to finish a html mail message to the given buffer.\n\n@param buffer The StringBuffer to add the html code to.", "public for testing purpose", "Set the replace of the uri and return the new URI.\n\n@param initialUri the starting URI, the URI to update\n@param path the path to set on the baeURI", "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Get an ObjectReferenceDescriptor by name BRJ\n@param name\n@return ObjectReferenceDescriptor or null", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "return a new managed connection. This connection is wrapped around the real connection and delegates to it\nto get work done.\n@param subject\n@param info\n@return", "Gets the property by key converted to lowercase if requested\n@param key property key\n@param lowerCase convert property to lowercase if it is true, keep the original one if it is\nfalse\n@return node property", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date" ]
public int indexOfKey(Object key) { return key == null ? indexOfNull() : indexOf(key, key.hashCode()); }
[ "Returns the index of a key in the set.\n\n@param key The key to search for.\n@return Returns the index of the key if it exists, else a negative integer." ]
[ "Mark root of this task task group depends on the given task group's root.\nThis ensure this task group's root get picked for execution only after the completion\nof all tasks in the given group.\n\n@param dependencyTaskGroup the task group that this task group depends on", "Add BoxMetaDataFilter to the JsonArray boxMetadataFilterRequestArray.\n@param @param bmf accepts a filter that has templateKey, scope, and filters populated.\n@return JsonArray that is formated Json request", "Change the color of the center which indicates the new color.\n\n@param color int of the color.", "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", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Backup the current configuration as part of the patch history.\n\n@throws IOException for any error", "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups." ]
public boolean isServerAvailable(){ final Client client = getClient(); final ClientResponse response = client.resource(serverURL).get(ClientResponse.class); if(ClientResponse.Status.OK.getStatusCode() == response.getStatus()){ return true; } if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, "Failed to reach the targeted Grapes server", response.getStatus())); } client.destroy(); return false; }
[ "Checks if the dependency server is available\n\n@return true if the server is reachable, false otherwise" ]
[ "Make a copy of this Area of Interest.", "At the moment we only support the case where one entity type is returned", "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "Sets the target directory.", "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "Sets the provided metadata on the folder, overwriting any existing metadata keys already present.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Returns the HTTP status text for the HTTP or WebDav status code\nspecified by looking it up in the static mapping. This is a\nstatic function.\n\n@param nHttpStatusCode [IN] HTTP or WebDAV status code\n@return A string with a short descriptive phrase for the\nHTTP status code (e.g., \"OK\").", "Return a copy of the new fragment and set the variable above.", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements" ]
public static License createLicense(final String name, final String longName, final String comments, final String regexp, final String url){ final License license = new License(); license.setName(name); license.setLongName(longName); license.setComments(comments); license.setRegexp(regexp); license.setUrl(url); return license; }
[ "Generates a License regarding the parameters.\n\n@param name String\n@param longName String\n@param comments String\n@param regexp String\n@param url String\n@return License" ]
[ "Disposes resources created to service this connection context", "Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+1.", "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", "Logs an error by sending an error event to all listeners.\n\nError events can be generated by any part of GearVRF,\nfrom any thread. They are always sent to the event receiver\nof the GVRContext.\n\n@param message error message\n@param sender object which had the error\n@see IErrorEvents", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key", "This creates a new audit log file with default permissions.\n\n@param file File to create", "Close and remove expired streams. Package protected to allow unit tests to invoke it.", "Use this API to fetch responderpolicylabel_binding resource of given name .", "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus" ]
private void checkAndAddLengths(final int... requiredLengths) { for( final int length : requiredLengths ) { if( length < 0 ) { throw new IllegalArgumentException(String.format("required length cannot be negative but was %d", length)); } this.requiredLengths.add(length); } }
[ "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative" ]
[ "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs.", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "Add a LIKE clause so the column must mach the value using '%' patterns.", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return", "create logs with given partition number\n\n@param topic the topic name\n@param partitions partition number\n@param forceEnlarge enlarge the partition number of log if smaller than runtime\n@return the partition number of the log after enlarging", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return", "Creates a MetaMatcher based on the filter content.\n\n@param filterAsString the String representation of the filter\n@param metaMatchers the Map of custom MetaMatchers\n@return A MetaMatcher used to match the filter content" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public int getCount(String event) { EventDetail eventDetail = getLocalDataStore().getEventDetail(event); if (eventDetail != null) return eventDetail.getCount(); return -1; }
[ "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int" ]
[ "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", "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used.", "Create servlet deployment.\n\nCan be overridden with custom servlet deployment. e.g. exact resources listing in restricted env like GAE\n\n@param context the servlet context\n@param bootstrap the bootstrap\n@return new servlet deployment", "Use this API to disable nsacl6.", "Checks if there is an annotation 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@return <i>true</i> if the given annotation is present on method or type level annotations in the type hierarchy", "Use this API to add responderpolicy.", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external access", "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" ]
public static void resize(GVRMesh mesh, float size) { float dim[] = getBoundingSize(mesh); float maxsize = 0.0f; if (dim[0] > maxsize) maxsize = dim[0]; if (dim[1] > maxsize) maxsize = dim[1]; if (dim[2] > maxsize) maxsize = dim[2]; scale(mesh, size / maxsize); }
[ "Resize the given mesh keeping its aspect ration.\n@param mesh Mesh to be resized.\n@param size Max size for the axis." ]
[ "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have been wrapped with \"\".\n@return an iterable containing info about all the groups.", "Adds a criterion to given pipeline which filters out vertices representing given WindupVertexFrame.", "Set the property on the given object to the new value.\n\n@param object on which to set the property\n@param newValue the new value of the property\n@throws RuntimeException if the property could not be set", "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.", "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", "Given the alias of the entity and the path to the relationship it will return the alias\nof the component.\n\n@param entityAlias the alias of the entity\n@param propertyPathWithoutAlias the path to the property without the alias\n@return the alias the relationship or null", "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.", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance." ]
private long getTime(Date start1, Date end1, Date start2, Date end2) { long total = 0; if (start1 != null && end1 != null && start2 != null && end2 != null) { long start; long end; if (start1.getTime() < start2.getTime()) { start = start2.getTime(); } else { start = start1.getTime(); } if (end1.getTime() < end2.getTime()) { end = end1.getTime(); } else { end = end2.getTime(); } if (start < end) { total = end - start; } } return (total); }
[ "This method returns the length of overlapping time between two time\nranges.\n\n@param start1 start of first range\n@param end1 end of first range\n@param start2 start start of second range\n@param end2 end of second range\n@return overlapping time in milliseconds" ]
[ "Calculate the layout offset", "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint", "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day", "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized", "get the getter method corresponding to given property", "Extracts the list of columns from the given field list.\n\n@param fields The fields\n@return The corresponding columns", "Returns the bundle descriptor for the bundle with the provided base name.\n@param cms {@link CmsObject} used for searching.\n@param basename the bundle base name, for which the descriptor is searched.\n@return the bundle descriptor, or <code>null</code> if it does not exist or searching fails.", "Use this API to unset the properties of callhome resource.\nProperties that need to be unset are specified in args array.", "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to." ]
public byte byteAt(int i) { if (i < 0) { throw new IndexOutOfBoundsException("i < 0, " + i); } if (i >= length) { throw new IndexOutOfBoundsException("i >= length, " + i + " >= " + length); } return data[offset + i]; }
[ "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" ]
[ "Internal method used to retrieve a integer from an\nembedded data block.\n\n@param blocks list of data blocks\n@return int value", "Create an IPv6 mixed address using the given ipv6 segments and using this address for the embedded IPv4 segments\n\n@param segs\n@return", "Use this API to restore appfwprofile.", "Checks anonymous fields.\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", "Sets the necessary height for all bands in the report, to hold their children", "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return", "Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.\n\nUse as follows:<p>\nFuture&lt;Connection&gt; result = pool.getAsyncConnection();<p>\n... do something else in your application here ...<p>\nConnection connection = result.get(); // get the connection<p>\n\n@return A Future task returning a connection.", "Use this API to export application.", "This method performs database modification at the very and of transaction." ]
public void addModuleDir(final String moduleDir) { if (moduleDir == null) { throw LauncherMessages.MESSAGES.nullParam("moduleDir"); } // Validate the path final Path path = Paths.get(moduleDir).normalize(); modulesDirs.add(path.toString()); }
[ "Adds a directory to the collection of module paths.\n\n@param moduleDir the module directory to add\n\n@throws java.lang.IllegalArgumentException if the path is {@code null}" ]
[ "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task", "This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve from which the swap rate is calculated. The discount curve, associated with this forward curve is used for discounting this option.\n@param swaprateVolatility The volatility of the log-swaprate.\n@return Value of this product", "Use this API to fetch all the snmpalarm resources that are configured on netscaler.", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return", "Call with pathEntries lock taken", "Searches the variables layers, top to bottom, for given name, and returns if found; null otherwise.\n\nIf maxDepth is set to {@link Variables#SEARCH_ALL_LAYERS}, then search all layers.", "Whether the address is IPv4-mapped\n\n::ffff:x:x/96 indicates IPv6 address mapped to IPv4", "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported" ]
public void writeNameValuePair(String name, double value) throws IOException { internalWriteNameValuePair(name, Double.toString(value)); }
[ "Write a double attribute.\n\n@param name attribute name\n@param value attribute value" ]
[ "Launch Sample Activity residing in the same module", "Send the message using the JavaMail session defined in the message\n\n@param mimeMessage Message to send", "Decode '%HH'.", "Set the repeat count of an override at ordinal index\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param repeatCount new repeat count to set\n@return true if success, false otherwise", "Create a text message that will be stored in the database. Must be called inside a transaction.", "Gets the last element in the address.\n\n@return the element, or {@code null} if {@link #size()} is zero.", "Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(tau)\nif( u[j] &lt; 0 )\ntau = -tau;\n</pre>\n\n@param j Element in 'u' that it starts at.\n@param numRows Element in 'u' that it stops at.\n@param u Array\n@param max Max value in 'u' that is used to normalize it.\n@return norm2 of 'u'", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animation.\n@param newCycleInterval" ]