query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@Override public FileModel resolvePayload(GraphRewrite event, EvaluationContext context, WindupVertexFrame payload) { checkVariableName(event, context); if (payload instanceof FileReferenceModel) { return ((FileReferenceModel) payload).getFile(); } if (payload instanceof FileModel) { return (FileModel) payload; } return null; }
[ "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it." ]
[ "Prints some basic documentation about this program.", "Gets the progress.\n\n@return the progress", "Build the crosstab. Throws LayoutException if anything is wrong\n@return", "Sets the maximum time to wait before a call to getConnection is timed out.\n\nSetting this to zero is similar to setting it to Long.MAX_VALUE\n\n@param connectionTimeout\n@param timeUnit the unit of the connectionTimeout argument", "Reads a nested table. Uses the supplied reader class instance.\n\n@param readerClass reader class instance\n@return table rows", "Changes to cluster OR store definition metadata results in routing\nstrategies changing. These changes need to be propagated to all the\nlisteners.\n\n@param cluster The updated cluster metadata\n@param storeDefs The updated list of store definition", "Remove the given pair from a given map for obtaining a new map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n<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 left the map to consider.\n@param right the entry (key, value) to remove from the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15", "Builds a configuration object based on given properties.\n\n@param properties the properties.\n@return a configuration and never null.", "Sets maintenance mode for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param enable true to enable; false to disable" ]
public static final String printCurrencySymbolPosition(CurrencySymbolPosition value) { String result; switch (value) { default: case BEFORE: { result = "0"; break; } case AFTER: { result = "1"; break; } case BEFORE_WITH_SPACE: { result = "2"; break; } case AFTER_WITH_SPACE: { result = "3"; break; } } return (result); }
[ "Prints a currency symbol position value.\n\n@param value CurrencySymbolPosition instance\n@return currency symbol position" ]
[ "The location for this elevation.\n\n@return", "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", "This method is used by JNI, do not call or modify.\n\n@param type the type\n@param number the number", "Get the last modified time for a set of files.", "Performs a request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return a {@link Response} to the request.", "Convert a Throwable into a list containing all of its causes.\n@param t The throwable for which the causes are to be returned.\n@return A (possibly empty) list of {@link Throwable}s.", "Use this API to link sslcertkey resources.", "Get the target file for misc items.\n\n@param item the misc item\n@return the target location", "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise" ]
public void setPickingEnabled(boolean enabled) { if (enabled != getPickingEnabled()) { if (enabled) { attachComponent(new GVRSphereCollider(getGVRContext())); } else { detachComponent(GVRCollider.getComponentType()); } } }
[ "Simple, high-level API to enable or disable eye picking for this scene\nobject.\n\nThe {@linkplain #attachCollider low-level\nAPI} gives you a lot of control over eye picking, but it does involve an\nawful lot of details. This method\n(and {@link #getPickingEnabled()}) provides a simple boolean property.\nIt attaches a GVRSphereCollider to the scene object. If you want more\naccurate picking, you can use {@link #attachComponent(GVRComponent)} to attach a\nmesh collider instead. The mesh collider is more accurate but also\ncosts more to compute.\n\n@param enabled\nShould eye picking 'see' this scene object?\n\n@since 2.0.2\n@see GVRSphereCollider\n@see GVRMeshCollider" ]
[ "Determines the number bytes required to store a variable length\n\n@param i length of Bytes\n@return number of bytes needed", "Presents the Cursor Settings to the User. Only works if scene is set.", "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception", "Creates a scheduled thread pool where each thread has the daemon\nproperty set to true. This allows the program to quit without\nexplicitly calling shutdown on the pool\n\n@param corePoolSize the number of threads to keep in the pool,\neven if they are idle\n\n@return a newly created scheduled thread pool", "Helper function to return the minimum size of the index space to be passed to the reduction given the input and\noutput tensors", "Copy a path recursively.\n@param source a Path pointing to a file or a directory that must exist\n@param target a Path pointing to a directory where the contents will be copied.\n@param overwrite overwrite existing files - if set to false fails if the target file already exists.\n@throws IOException", "Use this API to disable nsfeature.", "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale" ]
@PostConstruct public final void addMetricsAppenderToLogback() { final LoggerContext factory = (LoggerContext) LoggerFactory.getILoggerFactory(); final Logger root = factory.getLogger(Logger.ROOT_LOGGER_NAME); final InstrumentedAppender metrics = new InstrumentedAppender(this.metricRegistry); metrics.setContext(root.getLoggerContext()); metrics.start(); root.addAppender(metrics); }
[ "Add an appender to Logback logging framework that will track the types of log messages made." ]
[ "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Returns a list of files in given addon passing given filter.", "Exports json encoded content to CrashReport object\n\n@param json valid json body.\n@return new instance of CrashReport", "Check that each requirement is satisfied.\n\n@param currentPath the json path to the element being checked", "Private helper method which decodes the Stitch error from the body of an HTTP `Response`\nobject. If the error is successfully decoded, this function will throw the error for the end\nuser to eventually consume. If the error cannot be decoded, this is likely not an error from\nthe Stitch server, and this function will return an error message that the calling function\nshould use as the message of a StitchServiceException with an unknown code.", "Get a value from a date metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the metadata value as a Date.\n@throws ParseException when the value cannot be parsed as a valid date", "Load the given metadata profile for the current thread.", "Register the ChangeHandler to become notified if the user changes the slider.\nThe Handler is called when the user releases the mouse only at the end of the slide\noperation.", "Adds a shutdown hook for the process.\n\n@param process the process to add a shutdown hook for\n\n@return the thread set as the shutdown hook\n\n@throws java.lang.SecurityException If a security manager is present and it denies {@link\njava.lang.RuntimePermission <code>RuntimePermission(\"shutdownHooks\")</code>}" ]
public T update(T entity) throws RowNotFoundException, OptimisticLockException { if (!hasPrimaryKey(entity)) { throw new RuntimeException(String.format("Tried to update entity of type %s without a primary key", entity .getClass().getSimpleName())); } UpdateCreator update = new UpdateCreator(table); update.whereEquals(idColumn.getColumnName(), getPrimaryKey(entity)); if (versionColumn != null) { update.set(versionColumn.getColumnName() + " = " + versionColumn.getColumnName() + " + 1"); update.whereEquals(versionColumn.getColumnName(), getVersion(entity)); } for (Column column : columns) { if (!column.isReadOnly()) { update.setValue(column.getColumnName(), getFieldValueAsColumn(entity, column)); } } int rows = new JdbcTemplate(ormConfig.getDataSource()).update(update); if (rows == 1) { if (versionColumn != null) { ReflectionUtils.setFieldValue(entity, versionColumn.getFieldName(), getVersion(entity) + 1); } return entity; } else if (rows > 1) { throw new RuntimeException( String.format("Updating table %s with id %s updated %d rows. There must be a mapping problem. Is column %s really the primary key?", table, getPrimaryKey(entity), rows, idColumn)); } else { // // Updated zero rows. This could be because our ID is wrong, or // because our object is out-of date. Let's try querying just by ID. // SelectCreator selectById = new SelectCreator() .column("count(*)") .from(table) .whereEquals(idColumn.getColumnName(), getPrimaryKey(entity)); rows = new JdbcTemplate(ormConfig.getDataSource()).query(selectById, new ResultSetExtractor<Integer>() { @Override public Integer extractData(ResultSet rs) throws SQLException, DataAccessException { rs.next(); return rs.getInt(1); } }); if (rows == 0) { throw new RowNotFoundException(table, getPrimaryKey(entity)); } else { throw new OptimisticLockException(table, getPrimaryKey(entity)); } } }
[ "Updates value of entity in the table." ]
[ "Take four bytes from the specified position in the specified\nblock and convert them into a 32-bit int, using the big-endian\nconvention.\n@param bytes The data to read from.\n@param offset The position to start reading the 4-byte int from.\n@return The 32-bit integer represented by the four bytes.", "Formats the supplied value using the specified DateTimeFormat.\n\n@return \"\" if the value is null", "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap.", "Checks the second, hour, month, day, month and year are equal.", "Handles incoming Application Update Request.\n@param incomingMessage the request message to process.", "If the `invokerClass` specified is singleton, or without field or all fields are\nstateless, then return an instance of the invoker class. Otherwise, return null\n@param invokerClass the invoker class\n@param app the app\n@return an instance of the invokerClass or `null` if invoker class is stateful class", "Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements\nare not displayed.\n@return\nstring form of node with some generic elements suppressed", "Get all parameter keys.\n@return a set of parameter keys", "Set new point coordinates somewhere on screen and apply new direction\n\n@param position the point position to apply new values to" ]
public ApiResponse<String> getPingWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = getPingValidateBeforeCall(null); Type localVarReturnType = new TypeToken<String>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
[ "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body" ]
[ "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "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.", "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", "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise", "Method called when the renderer is going to be created. This method has the responsibility of\ninflate the xml layout using the layoutInflater and the parent ViewGroup, set itself to the\ntag and call setUpView and hookListeners methods.\n\n@param content to render. If you are using Renderers with RecyclerView widget the content will\nbe null in this method.\n@param layoutInflater used to inflate the view.\n@param parent used to inflate the view.", "Build and return a foreign collection based on the field settings that matches the id argument. This can return\nnull in certain circumstances.\n\n@param parent\nThe parent object that we will set on each item in the collection.\n@param id\nThe id of the foreign object we will look for. This can be null if we are creating an empty\ncollection.", "Read hints from a file and merge with the given hints map.", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account" ]
public double getCouponPayment(int periodIndex, AnalyticModel model) { ForwardCurve forwardCurve = model.getForwardCurve(forwardCurveName); if(forwardCurve == null && forwardCurveName != null && forwardCurveName.length() > 0) { throw new IllegalArgumentException("No forward curve with name '" + forwardCurveName + "' was found in the model:\n" + model.toString()); } double periodLength = schedule.getPeriodLength(periodIndex); double couponPayment=fixedCoupon ; if(forwardCurve != null ) { couponPayment = floatingSpread+forwardCurve.getForward(model, schedule.getFixing(periodIndex)); } return couponPayment*periodLength; }
[ "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." ]
[ "Support the range subscript operator for CharSequence\n\n@param text a CharSequence\n@param range a Range\n@return the subsequence CharSequence\n@since 1.0", "Set the color for the statusBar\n\n@param statusBarColor", "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "Creates the name of the .story file to be wrote with the testcase. The\nname of the scenario must be given with spaces.\n\n@param scenarioName\n- The scenario name, with spaces\n@return the .story file name.", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "Return the current handedness of the Gear Controller.\n\n@return returns whether the user is using the controller left or right handed. This function\nreturns <code>null</code> if the controller is unavailable or the data is stale.", "creates option map for remoting connections\n@param resolver\n@param model\n@param defaults\n@return\n@throws OperationFailedException\n@deprecated configuring xnio worker options is no longer supported and should be replaced for referencing IO subsystem", "Add the list with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The list of all packages to add.", "Remove the given pair from a given map for obtaining a new map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n<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 left the map to consider.\n@param right the entry (key, value) to remove from the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15" ]
public void setFilePath(String filePath) throws IOException, GVRScriptException { GVRResourceVolume.VolumeType volumeType = GVRResourceVolume.VolumeType.ANDROID_ASSETS; String fname = filePath.toLowerCase(); mLanguage = FileNameUtils.getExtension(fname); if (fname.startsWith("sd:")) { volumeType = GVRResourceVolume.VolumeType.ANDROID_SDCARD; } else if (fname.startsWith("http:") || fname.startsWith("https:")) { volumeType = GVRResourceVolume.VolumeType.NETWORK; } GVRResourceVolume volume = new GVRResourceVolume(getGVRContext(), volumeType, FileNameUtils.getParentDirectory(filePath)); GVRAndroidResource resource = volume.openResource(filePath); setScriptFile((GVRScriptFile)getGVRContext().getScriptManager().loadScript(resource, mLanguage)); }
[ "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs." ]
[ "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", "Gets the JsonObject representation of the Field Operation.\n@param fieldOperation represents the template update operation\n@return the json object", "Quits server by closing server socket and closing client socket handlers.", "Fill the attributes in the processor.\n\n@param processors The processors\n@param initialAttributes The attributes\n@see RequireAttributes\n@see ProvideAttributes", "ten less than Cube Q", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return", "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query", "flushes log queue, this actually writes combined log message into system log" ]
private String getProperty(String name) { return System.getSecurityManager() == null ? System.getProperty(name) : doPrivileged(new ReadPropertyAction(name)); }
[ "Get a System property by its name.\n\n@param name the name of the wanted System property.\n@return the System property value - null if it is not defined." ]
[ "Blocks until the server has started successfully or an exception is\nthrown.\n\n@throws VoldemortException if a problem occurs during start-up wrapping\nthe original exception.", "Get the log if exists or return null\n\n@param topic topic name\n@param partition partition index\n@return a log for the topic or null if not exist", "Returns a projection object for specifying the fields to retrieve during a specific find operation.", "Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Sets the text alignment for all cells in the row.\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", "Retrieves the registar linked to the bus.\nCreates a new registar is not present.\n\n@param bus\n@return", "Builds a new instance for the class represented by the given class descriptor.\n\n@param cld The class descriptor\n@return The instance", "Produces a string identifying this half-edge by the point index values of\nits tail and head vertices.\n\n@return identifying string", "Get the permission information for the specified photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nThe photo id\n@return The Permissions object\n@throws FlickrException" ]
public static final PhotoList<Photo> createPhotoList(Element photosElement) { PhotoList<Photo> photos = new PhotoList<Photo>(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perpage")); photos.setTotal(photosElement.getAttribute("total")); NodeList photoNodes = photosElement.getElementsByTagName("photo"); for (int i = 0; i < photoNodes.getLength(); i++) { Element photoElement = (Element) photoNodes.item(i); photos.add(PhotoUtils.createPhoto(photoElement)); } return photos; }
[ "Parse a list of Photos from given Element.\n\n@param photosElement\n@return PhotoList" ]
[ "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so.", "Updates the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template\n@param fieldOperations the fields that needs to be updated / added in the template\n@return the updated metadata template", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails.", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Helper method to create a string template source for a given formatter and content.\n\n@param formatter the formatter\n@param contentSupplier the content supplier\n\n@return the string template provider", "Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of comments", "Determine whether all references are available locally.\n\n@param domain the domain model\n@param hostElement the host path element\n@return whether to a sync with the master is required", "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", "Queries a Search Index and returns grouped results in a map where key\nof the map is the groupName. In case the query didnt use grouping,\nan empty map is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the grouped search query as a ordered {@code Map<String,T> }" ]
public Token add( Function function ) { Token t = new Token(function); push( t ); return t; }
[ "Adds a function to the end of the token list\n@param function Function which is to be added\n@return The new Token created around function" ]
[ "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Use this API to fetch all the nsfeature resources that are configured on netscaler.", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Adjusts the site root and returns a cloned CmsObject, iff the module has set an import site that differs\nfrom the site root of the CmsObject provided as argument. Otherwise returns the provided CmsObject unchanged.\n@param cms The original CmsObject.\n@param module The module where the import site is read from.\n@return The original CmsObject, or, if necessary, a clone with adjusted site root\n@throws CmsException see {@link OpenCms#initCmsObject(CmsObject)}", "Assign FK values and store entries in indirection table\nfor all objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Provide array of String results from inputOutput MFString field named url.\n@array saved in valueDestination", "Returns the ordered Map value of the field.\n\n@return the ordered Map value of the field. It returns a reference of the value.\n@throws IllegalArgumentException if the value cannot be converted to ordered Map.", "Returns all the deployment runtime names associated with an overlay accross all server groups.\n\n@param context the current OperationContext.\n@param overlay the name of the overlay.\n@return all the deployment runtime names associated with an overlay accross all server groups.", "Returns flag whose value indicates if the string is null, empty or\nonly contains whitespace characters\n\n@param s a string\n@return true if the string is null, empty or only contains whitespace characters" ]
public ConfigurableMessages getConfigurableMessages(CmsMessages defaultMessages, Locale locale) { return new ConfigurableMessages(defaultMessages, locale, m_configuredBundle); }
[ "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle." ]
[ "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Utility function to get the current text.", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Obtain plugin information\n\n@return", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object", "Use this API to update nsacl6 resources.", "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group", "Get the bone index for the given scene object.\n\n@param bone GVRSceneObject bone to search for\n@return bone index or -1 for root bone.\n@see #getParentBoneIndex" ]
public static final double round(double value, double precision) { precision = Math.pow(10, precision); return Math.round(value * precision) / precision; }
[ "Utility method used to round a double to the given precision.\n\n@param value value to truncate\n@param precision Number of decimals to round to.\n@return double value" ]
[ "Use this API to fetch rewritepolicy_csvserver_binding resources of given name .", "Created a fresh CancelIndicator", "Permanently deletes a trashed file.\n@param fileID the ID of the trashed folder to permanently delete.", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Try to provide an escaped, ready-to-use shell line to repeat a given command line.", "Sets the body filter for this ID\n\n@param pathId ID of path\n@param bodyFilter Body filter to set", "Computes the likelihood of the random draw\n\n@return The likelihood.", "Filters a dot at the end of the passed package name if present.\n\n@param pkgName\na package name\n@return a filtered package name", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error" ]
private void remove() { if (removing) { return; } if (deactiveNotifications.size() == 0) { return; } removing = true; final NotificationPopupView view = deactiveNotifications.get(0); final LinearFadeOutAnimation fadeOutAnimation = new LinearFadeOutAnimation(view) { @Override public void onUpdate(double progress) { super.onUpdate(progress); for (int i = 0; i < activeNotifications.size(); i++) { NotificationPopupView v = activeNotifications.get(i); final int left = v.getPopupLeft(); final int top = (int) (((i + 1) * SPACING) - (progress * SPACING)); v.setPopupPosition(left, top); } } @Override public void onComplete() { super.onComplete(); view.hide(); deactiveNotifications.remove(view); activeNotifications.remove(view); removing = false; remove(); } }; fadeOutAnimation.run(500); }
[ "Remove a notification message. Recursive until all pending removals have been completed." ]
[ "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Split an artifact gavc to get the groupId\n@param gavc\n@return String", "Returns the map from resourcetype names to default timestamp modes.\n@return the map from resourcetype names to default timestamp modes.", "Process the hours and exceptions for an individual calendar.\n\n@param calendar project calendar\n@param calendarData hours and exception rows for this calendar", "Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder", "Mbeans for FETCH_KEYS", "Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animation.\n@param newCycleInterval", "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "Use this API to fetch clusterinstance resources of given names ." ]
public static void doPriorityEnqueue(final Jedis jedis, final String namespace, final String queue, final String jobJson) { jedis.sadd(JesqueUtils.createKey(namespace, QUEUES), queue); jedis.lpush(JesqueUtils.createKey(namespace, QUEUE, queue), jobJson); }
[ "Helper method that encapsulates the minimum logic for adding a high\npriority job to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON" ]
[ "Use this API to fetch dnsview_binding resource of given name .", "Creates a CostRateTable instance from a block of data.\n\n@param resource parent resource\n@param index cost rate table index\n@param data data block", "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wordshaper on the String.\n\n@param inStr String to calculate word shape of\n@param wordShaper Constant for which shaping formula to use\n@param knownLCWords A Collection of known lowercase words, which some shapers use\nto decide the class of capitalized words.\n<i>Note: while this code works with any Collection, you should\nprovide a Set for decent performance.</i> If this parameter is\nnull or empty, then this option is not used (capitalized words\nare treated the same, regardless of whether the lowercased\nversion of the String has been seen).\n@return The wordshape String", "Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end", "This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException", "Prepares Artifactory server either from serverID or from ArtifactoryServer.\n\n@param artifactoryServerID\n@param pipelineServer\n@return" ]
private static void handleSignals() { if (DaemonStarter.isRunMode()) { try { // handle SIGHUP to prevent process to get killed when exiting the tty Signal.handle(new Signal("HUP"), arg0 -> { // Nothing to do here System.out.println("SIG INT"); }); } catch (IllegalArgumentException e) { System.err.println("Signal HUP not supported"); } try { // handle SIGTERM to notify the program to stop Signal.handle(new Signal("TERM"), arg0 -> { System.out.println("SIG TERM"); DaemonStarter.stopService(); }); } catch (IllegalArgumentException e) { System.err.println("Signal TERM not supported"); } try { // handle SIGINT to notify the program to stop Signal.handle(new Signal("INT"), arg0 -> { System.out.println("SIG INT"); DaemonStarter.stopService(); }); } catch (IllegalArgumentException e) { System.err.println("Signal INT not supported"); } try { // handle SIGUSR2 to notify the life-cycle listener Signal.handle(new Signal("USR2"), arg0 -> { System.out.println("SIG USR2"); DaemonStarter.getLifecycleListener().signalUSR2(); }); } catch (IllegalArgumentException e) { System.err.println("Signal USR2 not supported"); } } }
[ "I KNOW WHAT I AM DOING" ]
[ "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "Add an exception to a calendar.\n\n@param parentNode parent node\n@param exception calendar exceptions", "Returns an input stream that applies the required decompression to the\ngiven input stream.\n\n@param inputStream\nthe input stream with the (possibly compressed) data\n@param compressionType\nthe kind of compression\n@return an input stream with decompressed data\n@throws IOException\nif there was a problem creating the decompression streams", "replace the counter for K1-index o by new counter c", "A tie-in for subclasses such as AdaGrad.", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "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", "Adds OPT_F | OPT_FILE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
public void invalidate() { synchronized (mMeasuredChildren) { Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "invalidate all [%d]", mMeasuredChildren.size()); mMeasuredChildren.clear(); } }
[ "Invalidate layout setup." ]
[ "Start the timer.", "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID", "Get a property as a json array or throw exception.\n\n@param key the property name", "Uploads a new large file.\n@param boxApi the API connection to be used by the upload session.\n@param folderId the id of the folder in which the file will be uploaded.\n@param stream the input stream that feeds the content of the file.\n@param url the upload session URL.\n@param fileName the name of the file to be created.\n@param fileSize the total size of the file.\n@return the created file instance.\n@throws InterruptedException when a thread gets interupted.\n@throws IOException when reading a stream throws exception.", "Sets the values of this vector to those of v1.\n\n@param v1\nvector whose values are copied", "Removes the observation that fits the model the worst and recomputes the coefficients.\nThis is done efficiently by using an adjustable solver. Often times the elements with\nthe largest errors are outliers and not part of the system being modeled. By removing them\na more accurate set of coefficients can be computed.", "Given a json node, find a nested node using given composed key.\n\n@param jsonNode the parent json node\n@param composedKey a key combines multiple keys using flattening dots.\nFlattening dots are dot character '.' those are not preceded by slash '\\'\nEach flattening dot represents a level with following key as field key in that level\n@return nested json node located using given composed key", "Appends the given string to the given StringBuilder, replacing '&amp;',\n'&lt;' and '&gt;' by their respective HTML entities.\n\n@param out\nThe StringBuilder to append to.\n@param value\nThe string to append.\n@param offset\nThe character offset into value from where to start", "Update the object in the database." ]
private static long scanForLocSig(FileChannel channel) throws IOException { channel.position(0); ByteBuffer bb = getByteBuffer(CHUNK_SIZE); long end = channel.size(); while (channel.position() <= end) { read(bb, channel); int bufferPos = 0; while (bufferPos <= bb.limit() - SIG_PATTERN_LENGTH) { // Following is based on the Boyer Moore algorithm but simplified to reflect // a) the size of the pattern is static // b) the pattern is static and has no repeating bytes int patternPos; for (patternPos = SIG_PATTERN_LENGTH - 1; patternPos >= 0 && LOCSIG_PATTERN[patternPos] == bb.get(bufferPos + patternPos); --patternPos) { // empty loop while bytes match } // Outer switch gives same results as checking the "good suffix array" in the Boyer Moore algorithm switch (patternPos) { case -1: { // Pattern matched. Confirm is this is the start of a valid local file record long startLocRecord = channel.position() - bb.limit() + bufferPos; long currentPos = channel.position(); if (validateLocalFileRecord(channel, startLocRecord, -1)) { return startLocRecord; } // Restore position in case it shifted channel.position(currentPos); // wasn't a valid local file record; continue scan bufferPos += 4; break; } case 3: { // No bytes matched; the common case. // With our pattern, this is the only case where the Boyer Moore algorithm's "bad char array" may // produce a shift greater than the "good suffix array" (which would shift 1 byte) int idx = bb.get(bufferPos + patternPos) - Byte.MIN_VALUE; bufferPos += LOC_BAD_BYTE_SKIP[idx]; break; } default: // 1 or more bytes matched bufferPos += 4; } } } return -1; }
[ "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG" ]
[ "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will do combine the WHERE statement of the two query builders with a SQL \"AND\". See\n{@link #joinOr(QueryBuilder)}.\n</p>", "Prints to a file. If the file does not exist, rewrites the file;\ndoes not append.", "touch event without ripple support", "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Saves the loaded XML bundle as property bundle.\n@throws UnsupportedEncodingException thrown if localizations from the XML bundle could not be loaded correctly.\n@throws CmsException thrown if any of the interactions with the VFS fails.\n@throws IOException thrown if localizations from the XML bundle could not be loaded correctly.", "Sets the specified range of elements in the specified array to the specified value.\n\n@param from the index of the first element (inclusive) to be filled with the specified value.\n@param to the index of the last element (inclusive) to be filled with the specified value.\n@param val the value to be stored in the specified elements of the receiver.", "Use this API to fetch bridgegroup_nsip_binding resources of given name .", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width" ]
void nextExecuted(String sql) throws SQLException { count++; if (_order.contains(sql)) { return; } String sqlCmd = sql.substring(0, 7); String rest = sql.substring(sqlCmd.equals("UPDATE ") ? 7 // "UPDATE " : 12); // "INSERT INTO " or "DELETE FROM " String tableName = rest.substring(0, rest.indexOf(' ')); HashSet fkTables = (HashSet) _fkInfo.get(tableName); // we should not change order of INSERT/DELETE/UPDATE // statements for the same table if (_touched.contains(tableName)) { executeBatch(); } if (sqlCmd.equals("INSERT ")) { if (_dontInsert != null && _dontInsert.contains(tableName)) { // one of the previous INSERTs contained a table // that references this table. // Let's execute that previous INSERT right now so that // in the future INSERTs into this table will go first // in the _order array. executeBatch(); } } else //if (sqlCmd.equals("DELETE ") || sqlCmd.equals("UPDATE ")) { // We process UPDATEs in the same way as DELETEs // because setting FK to NULL in UPDATE is equivalent // to DELETE from the referential integrity point of view. if (_deleted != null && fkTables != null) { HashSet intersection = (HashSet) _deleted.clone(); intersection.retainAll(fkTables); if (!intersection.isEmpty()) { // one of the previous DELETEs contained a table // that is referenced from this table. // Let's execute that previous DELETE right now so that // in the future DELETEs into this table will go first // in the _order array. executeBatch(); } } } _order.add(sql); _touched.add(tableName); if (sqlCmd.equals("INSERT ")) { if (fkTables != null) { if (_dontInsert == null) { _dontInsert = new HashSet(); } _dontInsert.addAll(fkTables); } } else if (sqlCmd.equals("DELETE ")) { if (_deleted == null) { _deleted = new HashSet(); } _deleted.add(tableName); } }
[ "Remember the order of execution" ]
[ "Returns a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.\n\n@param ptbText A String in PTB3-escaped form\n@return An approximation to the original String", "Retrieves the registar linked to the bus.\nCreates a new registar is not present.\n\n@param bus\n@return", "Sets the value if the date only should be shown.\n@param dateOnly if the date only should be shown", "Get an SQL condition to match this address section representation\n\n@param builder\n@param columnName\n@return the condition", "Generates a set of excluded method names.\n\n@param methodNames method names\n@return set of method names", "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "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.", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public void pushEvent(String eventName) { if (eventName == null || eventName.trim().equals("")) return; pushEvent(eventName, null); }
[ "Pushes a basic event.\n\n@param eventName The name of the event" ]
[ "Retrieves all Metadata Cascade Policies on a folder.\n\n@param fields optional fields to retrieve for cascade policies.\n@return the Iterable of Box Metadata Cascade Policies in your enterprise.", "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 because it's used by other packages that use Duke", "Pass the activity you use the drawer in ;)\nThis is required if you want to set any values by resource\n\n@param activity\n@return", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment" ]
public Conditionals ifModifiedSince(LocalDateTime time) { Preconditions.checkArgument(match.isEmpty(), String.format(ERROR_MESSAGE, HeaderConstants.IF_MODIFIED_SINCE, HeaderConstants.IF_MATCH)); Preconditions.checkArgument(!unModifiedSince.isPresent(), String.format(ERROR_MESSAGE, HeaderConstants.IF_MODIFIED_SINCE, HeaderConstants.IF_UNMODIFIED_SINCE)); time = time.withNano(0); return new Conditionals(empty(), noneMatch, Optional.of(time), Optional.empty()); }
[ "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the time to check.\n@return the conditionals with the If-Modified-Since date set." ]
[ "Creates multiple aliases at once.", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "Get a list of referring domains for 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 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.getPhotoDomains.html\"", "Decrease the indent level.", "Closes the outbound socket binding connection.\n\n@throws IOException", "Retrieve a map of custom document properties.\n\n@return the Document Summary Information Map", "Gets Widget layout dimension\n@param axis The {@linkplain Layout.Axis axis} to obtain layout size for\n@return dimension", "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise." ]
public synchronized void removeAllSceneObjects() { final GVRCameraRig rig = getMainCameraRig(); final GVRSceneObject head = rig.getOwnerObject(); rig.removeAllChildren(); NativeScene.removeAllSceneObjects(getNative()); for (final GVRSceneObject child : mSceneRoot.getChildren()) { child.getParent().removeChildObject(child); } if (null != head) { mSceneRoot.addChildObject(head); } final int numControllers = getGVRContext().getInputManager().clear(); if (numControllers > 0) { getGVRContext().getInputManager().selectController(); } getGVRContext().runOnGlThread(new Runnable() { @Override public void run() { NativeScene.deleteLightsAndDepthTextureOnRenderThread(getNative()); } }); }
[ "Remove all scene objects." ]
[ "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", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail", "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "Add a new download. The download will start automatically once the download manager is\nready to execute it and connectivity is available.\n\n@param request the parameters specifying this download\n@return an ID for the download, unique across the application. This ID is used to make future\ncalls related to this download.\n@throws IllegalArgumentException", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "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", "Starts all streams.", "Parses an RgbaColor from an rgba value.\n\n@return the parsed color" ]
public double Function1D(double x) { double frequency = initFrequency; double amplitude = initAmplitude; double sum = 0; // octaves for (int i = 0; i < octaves; i++) { sum += SmoothedNoise(x * frequency) * amplitude; frequency *= 2; amplitude *= persistence; } return sum; }
[ "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x." ]
[ "Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash of input.\n@throws IllegalArgumentException if {@code input} is blank.", "Sets an error message that will be displayed in a popup when the EditText has focus along\nwith an icon displayed at the right-hand side.\n\n@param error error message to show", "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Add a dependency to the graph\n\n@param dependency\n@param graph\n@param depth\n@param parentId", "Invoke to tell listeners that an step started event processed", "Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTimeout the watchTimeout to set\n@param timeUnit Time granularity", "Reset autoCommit state.", "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info.", "Returns a builder that is initialized with the given path.\n@param path the path to initialize with\n@return the new {@code UriComponentsBuilder}" ]
public static void inner_reorder_lower(DMatrix1Row A , DMatrix1Row B ) { final int cols = A.numCols; B.reshape(cols,cols); Arrays.fill(B.data,0); for (int i = 0; i <cols; i++) { for (int j = 0; j <=i; j++) { B.data[i*cols+j] += A.data[i]*A.data[j]; } for (int k = 1; k < A.numRows; k++) { int indexRow = k*cols; double valI = A.data[i+indexRow]; int indexB = i*cols; for (int j = 0; j <= i; j++) { B.data[indexB++] += valI*A.data[indexRow++]; } } } }
[ "Computes the inner product of A times A and stores the results in B. The inner product is symmetric and this\nfunction will only store the lower triangle. The value of the upper triangular matrix is undefined.\n\n<p>B = A<sup>T</sup>*A</sup>\n\n@param A (Input) Matrix\n@param B (Output) Storage for output." ]
[ "look for zero after country code, and remove if present", "Return the array of field objects pulled from the data object.", "Use this API to fetch clusternodegroup resource of given name .", "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last).", "Delivers the correct JSON Object for the dockers\n\n@param dockers\n@throws org.json.JSONException", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "Create a JsonParser for a given json node.\n@param jsonNode the json node\n@return the json parser\n@throws IOException", "Checks if the child is currently in ViewPort\n@param dataIndex child index\n@return true if the child is in viewport, false - otherwise", "Returns the cost rate table index for this assignment.\n\n@return cost rate table index" ]
public static void timeCheck(String extra) { if (startCheckTime > 0) { long now = System.currentTimeMillis(); long diff = now - nextCheckTime; nextCheckTime = now; Log.d(Log.SUBSYSTEM.TRACING, "FPSCounter", "[%d, %d] timeCheck: %s", now, diff, extra); } }
[ "Computes execution time\n@param extra" ]
[ "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "Processes the template for all column pairs of the current foreignkey.\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\"", "Calculate the pointer's coordinates on the color wheel using the supplied\nangle.\n\n@param angle The position of the pointer expressed as angle (in rad).\n\n@return The coordinates of the pointer's center in our internal\ncoordinate system.", "Layout children inside the layout container", "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", "Retrieve the index of the table entry valid for the supplied date.\n\n@param date required date\n@return cost rate table entry index", "Cuts the string at the end if it's longer than maxLength and appends the given end string to it. The length of\nthe resulting string is always less or equal to the given maxLength. It's valid to pass a null text; in this\ncase null is returned.", "Plots the MSD curve with the trajectory t and adds the fitted model for directed motion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param velocity velocity of the active transport" ]
private void addSuperClasses(Integer directSuperClass, ClassRecord subClassRecord) { if (subClassRecord.superClasses.contains(directSuperClass)) { return; } subClassRecord.superClasses.add(directSuperClass); ClassRecord superClassRecord = getClassRecord(directSuperClass); if (superClassRecord == null) { return; } for (Integer superClass : superClassRecord.directSuperClasses) { addSuperClasses(superClass, subClassRecord); } }
[ "Recursively add indirect subclasses to a class record.\n\n@param directSuperClass\nthe superclass to add (together with its own superclasses)\n@param subClassRecord\nthe subclass to add to" ]
[ "Remove all scene objects.", "Set the specular intensity of the light.\n\nThis designates the color of the specular reflection.\nIt is multiplied by the material specular color to derive\nthe hue of the specular reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code specular_intensity} to control the specular intensity.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Validates aliases.\n\n@param uuid The structure id for which the aliases should be valid\n@param aliasPaths a map from id strings to alias paths\n@param callback the callback which should be called with the validation results", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task.", "Reads the XER file table and row structure ready for processing.\n\n@param is input stream\n@throws MPXJException", "Gets Widget bounds depth\n@return depth", "bind attribute and value\n@param stmt\n@param index\n@param attributeOrQuery\n@param value\n@param cld\n@return\n@throws SQLException", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise", "Use this API to fetch aaagroup_aaauser_binding resources of given name ." ]
public static <T> void setBeanInstance(String contextId, T proxy, BeanInstance beanInstance, Bean<?> bean) { if (proxy instanceof ProxyObject) { ProxyObject proxyView = (ProxyObject) proxy; proxyView.weld_setHandler(new ProxyMethodHandler(contextId, beanInstance, bean)); } }
[ "Convenience method to set the underlying bean instance for a proxy.\n\n@param proxy the proxy instance\n@param beanInstance the instance of the bean" ]
[ "Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.\n@param enterpriseId the enterprise ID to use for requesting access token.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Visits a parameter of this method.\n\n@param name\nparameter name or null if none is provided.\n@param access\nthe parameter's access flags, only <tt>ACC_FINAL</tt>,\n<tt>ACC_SYNTHETIC</tt> or/and <tt>ACC_MANDATED</tt> are\nallowed (see {@link Opcodes}).", "returns a proxy or a fully materialized Object from the current row of the\nunderlying resultset.", "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value", "Shutdown the server\n\n@throws Exception exception", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id", "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size" ]
public void deleteShovel(String vhost, String shovelname) { this.deleteIgnoring404(uriWithPath("./parameters/shovel/" + encodePathSegment(vhost) + "/" + encodePathSegment(shovelname))); }
[ "Deletes the specified shovel from specified virtual host.\n\n@param vhost virtual host from where to delete the shovel\n@param shovelname Shovel to be deleted." ]
[ "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs.", "Draws the specified image with the first rectangle's bounds, clipping with the second one.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds\n@param opacity opacity of the image (1 = opaque, 0= transparent)", "Use this API to unset the properties of nsspparams resource.\nProperties that need to be unset are specified in args array.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "Use this API to add snmpuser.", "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", "Renders in LI tags, Wraps with UL tags optionally." ]
public void setT(int t) { this.t = Math.min((radius * 2 + 1) * (radius * 2 + 1) / 2, Math.max(0, t)); }
[ "Set trimmed value.\n\n@param t Trimmed value." ]
[ "Use this API to update vpnclientlessaccesspolicy.", "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type", "Obtain all groups\n\n@return All Groups", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "The indices space is ignored for reduce ops other than min or max.", "Flatten a list of test suite results into a collection of results grouped by test class.\nThis method basically strips away the TestNG way of organising tests and arranges\nthe results by test class.", "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.", "Create an object of the given type using a constructor that matches the\nsupplied arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception" ]
public void setVec3(String key, float x, float y, float z) { checkKeyIsUniform(key); NativeLight.setVec3(getNative(), key, x, y, z); }
[ "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)" ]
[ "Saves the current translations from the container to the respective localization.", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Initialize the ui elements for the management part.", "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration", "Restores a trashed folder to a new location with a new name.\n@param folderID the ID of the trashed folder.\n@param newName an optional new name to give the folder. This can be null to use the folder's original name.\n@param newParentID an optional new parent ID for the folder. This can be null to use the folder's original\nparent.\n@return info about the restored folder.", "At the moment we only support the case where one entity type is returned", "Remove paths with no active overrides\n\n@throws Exception", "Change the value that is returned by this generator.\n@param value The new value to return.", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value" ]
public static vpnsessionaction get(nitro_service service, String name) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); obj.set_name(name); vpnsessionaction response = (vpnsessionaction) obj.get_resource(service); return response; }
[ "Use this API to fetch vpnsessionaction resource of given name ." ]
[ "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", "Specialized version of readValue just for reading map keys, because the StdDeserializer methods like\n_parseIntPrimitive blow up when the current JsonToken is FIELD_NAME", "The grammar elements that may occur at the given offset.", "Type variables are not supported.\n\n@param value\n@return the type", "Create the image elements for the banners tha goes into the\ntitle and header bands depending on the case", "Print a day.\n\n@param day Day instance\n@return day value", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "Returns true if this instance has the same config as a given config.\n@param that\n@return true if the instance has the same config, false otherwise." ]
public Client findClient(String clientUUID, Integer profileId) throws Exception { Client client = null; /* ERROR CODE: 500 WHEN TRYING TO DELETE A SERVER GROUP. THIS APPEARS TO BE BECAUSE CLIENT UUID IS NULL. */ /* CODE ADDED TO PREVENT NULL POINTERS. */ if (clientUUID == null) { clientUUID = ""; } // first see if the clientUUID is actually a uuid.. it might be a friendlyName and need conversion /* A UUID IS A UNIVERSALLY UNIQUE IDENTIFIER. */ if (clientUUID.compareTo(Constants.PROFILE_CLIENT_DEFAULT_ID) != 0 && !clientUUID.matches("[\\w]{8}-[\\w]{4}-[\\w]{4}-[\\w]{4}-[\\w]{12}")) { Client tmpClient = this.findClientFromFriendlyName(profileId, clientUUID); // if we can't find a client then fall back to the default ID if (tmpClient == null) { clientUUID = Constants.PROFILE_CLIENT_DEFAULT_ID; } else { return tmpClient; } } PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { String queryString = "SELECT * FROM " + Constants.DB_TABLE_CLIENT + " WHERE " + Constants.CLIENT_CLIENT_UUID + " = ?"; if (profileId != null) { queryString += " AND " + Constants.GENERIC_PROFILE_ID + "=?"; } statement = sqlConnection.prepareStatement(queryString); statement.setString(1, clientUUID); if (profileId != null) { statement.setInt(2, profileId); } results = statement.executeQuery(); if (results.next()) { client = this.getClientFromResultSet(results); } } catch (Exception e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return client; }
[ "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception" ]
[ "Reads the current properties for a language. If not already done, the properties are read from the respective file.\n@param locale the locale for which the localization should be returned.\n@return the properties.\n@throws IOException thrown if reading the properties from a file fails.\n@throws CmsException thrown if reading the properties from a file fails.", "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n@throws IOException I/O Error", "Returns the output path specified on the javadoc options", "Controls whether we are currently staying in sync with the tempo master. Will only be meaningful if we are\nsending status packets.\n\n@param sync if {@code true}, our status packets will be tempo and beat aligned with the tempo master", "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", "Function to perform backward softmax", "Detects Opera Mobile or Opera Mini.\n@return detection of an Opera browser for a mobile device", "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url", "Override this method to change the default splash screen size or\nposition.\n\nThis method will be called <em>before</em> {@link #onInit(GVRContext)\nonInit()} and before the normal render pipeline starts up. In particular,\nthis means that any {@linkplain GVRAnimation animations} will not start\nuntil the first {@link #onStep()} and normal rendering starts.\n\n@param splashScreen\nThe splash object created from\n{@link #getSplashTexture(GVRContext)},\n{@link #getSplashMesh(GVRContext)}, and\n{@link #getSplashShader(GVRContext)}.\n\n@since 1.6.4" ]
public Set<? extends Processor<?, ?>> getAllProcessors() { IdentityHashMap<Processor<?, ?>, Void> all = new IdentityHashMap<>(); all.put(this.getProcessor(), null); for (ProcessorGraphNode<?, ?> dependency: this.dependencies) { for (Processor<?, ?> p: dependency.getAllProcessors()) { all.put(p, null); } } return all.keySet(); }
[ "Create a set containing all the processor at the current node and the entire subgraph." ]
[ "Set the amount of offset between child objects and parent.\n@param axis {@link Axis}\n@param offset", "Return all valid tenors for a given moneyness and maturity.\nUses the payment times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@param maturity The maturities as year fraction from the reference date.\n@return The tenors as year fraction from reference date.", "Use this API to delete dnssuffix resources of given names.", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Method called when the renderer is going to be created. This method has the responsibility of\ninflate the xml layout using the layoutInflater and the parent ViewGroup, set itself to the\ntag and call setUpView and hookListeners methods.\n\n@param content to render. If you are using Renderers with RecyclerView widget the content will\nbe null in this method.\n@param layoutInflater used to inflate the view.\n@param parent used to inflate the view.", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Get the list of build numbers that are to be kept forever.", "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal", "Method to send Request messages to a specific df_service\n\n@param df_service\nThe name of the df_service\n@param msgContent\nThe content of the message to be sent\n@return Message sent to + the name of the df_service" ]
private void setCrosstabOptions() { if (djcross.isUseFullWidth()){ jrcross.setWidth(layoutManager.getReport().getOptions().getPrintableWidth()); } else { jrcross.setWidth(djcross.getWidth()); } jrcross.setHeight(djcross.getHeight()); jrcross.setColumnBreakOffset(djcross.getColumnBreakOffset()); jrcross.setIgnoreWidth(djcross.isIgnoreWidth()); }
[ "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width" ]
[ "Support the range subscript operator for CharSequence with IntRange\n\n@param text a CharSequence\n@param range an IntRange\n@return the subsequence CharSequence\n@since 1.0", "DISPATCHING - COMMANDS", "Retrieves list of inbox messages based on given userId\n@param userId String userid\n@return ArrayList of {@link CTMessageDAO}", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value", "Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .", "Use this API to fetch snmpalarm resource of given name .", "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test" ]
private boolean isNullOrEmpty(Object paramValue) { boolean isNullOrEmpty = false; if (paramValue == null) { isNullOrEmpty = true; } if (paramValue instanceof String) { if (((String) paramValue).trim().equalsIgnoreCase("")) { isNullOrEmpty = true; } } else if (paramValue instanceof List) { return ((List) paramValue).isEmpty(); } return isNullOrEmpty; }
[ "Checks String to see if the parameter is null.\n@param paramValue Object that will be checked if null.\n@return this.true if the parameter that is being checked is not null" ]
[ "URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.\nNo UnsupportedEncodingException to handle as it is dealt with in this method.", "Given counters of true positives, false positives, and false\nnegatives, prints out precision, recall, and f1 for each key.", "Display mode for output streams.", "Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler.", "Creates an attachment from a binary input stream.\nThe content of the stream will be transformed into a Base64 encoded string\n@throws IOException if an I/O error occurs\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "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", "Provides a method that compares two comparables using Groovy's\ndefault number aware comparator.\n\n@param self a Comparable\n@param other another Comparable\n@return a -ve number, 0 or a +ve number according to Groovy's compareTo contract\n@since 1.6.0", "Retrieves the notes text for this resource.\n\n@return notes text", "Start a task. The id is needed to end the task\n\n@param id\n@param taskName" ]
private void addTypes(Injector injector, List<Class<?>> types) { for (Binding<?> binding : injector.getBindings().values()) { Key<?> key = binding.getKey(); Type type = key.getTypeLiteral().getType(); if (hasAnnotatedMethods(type)) { types.add(((Class<?>)type)); } } if (injector.getParent() != null) { addTypes(injector.getParent(), types); } }
[ "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types" ]
[ "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods. Date rolling is ignored.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "Sets the target translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException", "Gets the thread usage.\n\n@return the thread usage", "Append a Handler to every parent of the given class\n@param parent The class of the parents to add the child to\n@param child The Handler to add.", "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Log table contents.\n\n@param label label text\n@param klass reader class name\n@param map table data", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus." ]
public Range<Dyno> listDynos(String appName) { return connection.execute(new DynoList(appName), apiKey); }
[ "List app dynos for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used." ]
[ "Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.", "Scans a single class for Swagger annotations - does not invoke ReaderListeners", "Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p<\n\n@param resource the resource\n@param childMap map from parent to child resources\n@param filterMatches the resources matching the filter\n@param parentPaths root paths of resources which are not leaves\n@param isRoot true if this the root node\n\n@return the VFS entry bean for the client\n\n@throws CmsException if something goes wrong", "Returns the \"short rate\" from timeIndex to timeIndex+1.\n\n@param timeIndex The time index (corresponding to {@link getTime()).\n@return The \"short rate\" from timeIndex to timeIndex+1.\n@throws CalculationException Thrown if simulation failed.", "adds the qualified names to the export-package attribute, if not already\npresent.\n\n@param packages - passing parameterized packages is not supported", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Get a list of path transformers for a given address.\n\n@param address the path address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return a list of path transformations", "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 global and adds it ot the BatchExecutionresults using the alternative outIdentifier.\n\n@param identifier\nThe identifier of the global\n@param outIdentifier\nThe identifier used in the ExecutionResults to store the global.\n@return" ]
private void validatePermissions(final File dirPath, final File file) { // Check execute and read permissions for parent dirPath if( !dirPath.canExecute() || !dirPath.canRead() ) { validFilePermissions = false; filePermissionsProblemPath = dirPath.getAbsolutePath(); return; } // Check read and write permissions for properties file if( !file.canRead() || !file.canWrite() ) { validFilePermissions = false; filePermissionsProblemPath = dirPath.getAbsolutePath(); } }
[ "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." ]
[ "Checks if the path leads to an embedded property or association.\n\n@param targetTypeName the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is an embedded, {@code false} otherwise.", "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "Stops the background data synchronization thread.", "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document." ]
protected String sp_createSequenceQuery(String sequenceName, long maxKey) { return "insert into " + SEQ_TABLE_NAME + " (" + SEQ_NAME_STRING + "," + SEQ_ID_STRING + ") values ('" + sequenceName + "'," + maxKey + ")"; }
[ "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement" ]
[ "static expansion helpers", "Links the form with an HTML element which can be clicked.\n\n@param form the collection of the input fields\n@return a FormAction\n@see Form", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Transits a float propertyId from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "Send JSON representation of given data object to all connections of a user\n@param data the data object\n@param username the username", "Get the SuggestionsInterface.\n\n@return The SuggestionsInterface", "Finds any clients which are not currently in use, and which have been idle for longer than the\nidle timeout, and closes them.", "Validates bic.\n\n@param bic to be validated.\n@throws BicFormatException if bic is invalid.\nUnsupportedCountryException if bic's country is not supported." ]
public Class getSearchClass() { Object obj = getExampleObject(); if (obj instanceof Identity) { return ((Identity) obj).getObjectsTopLevelClass(); } else { return obj.getClass(); } }
[ "Answer the search class.\nThis is the class of the example object or\nthe class represented by Identity.\n@return Class" ]
[ "Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()", "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Load a table configuration in from a text-file reader.\n\n@return A config if any of the fields were set otherwise null if we reach EOF.", "Returns true if the request should continue.\n\n@return", "Adds a type to collection with inheriting base type properties.\n\n@param type the type definition to add\n\n@return true if the type definition was added", "The click handler for the add button.", "When we execute a single statement we only need the corresponding Row with the result.\n\n@param results a list of {@link StatementResult}\n@return the result of a single query", "use this method to construct the ChainingIterator\niterator by iterator." ]
public static TransactionalProtocolClient.PreparedOperation<TransactionalProtocolClient.Operation> executeBlocking(final ModelNode operation, TransactionalProtocolClient client) throws IOException, InterruptedException { final BlockingQueueOperationListener<TransactionalProtocolClient.Operation> listener = new BlockingQueueOperationListener<>(); client.execute(listener, operation, OperationMessageHandler.DISCARD, OperationAttachments.EMPTY); return listener.retrievePreparedOperation(); }
[ "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException" ]
[ "Computes the null space using SVD. Slowest bust most stable way to find the solution\n\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "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", "Create an import declaration and delegates its registration for an upper class.", "This method is called to alert project listeners to the fact that\na resource assignment has been written to a project file.\n\n@param resourceAssignment resourceAssignment instance", "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint", "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", "Handle a start time change.\n\n@param event the change event", "Sets the current reference definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"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=\"true\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[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)\"" ]
public void terminateAllConnections(){ this.terminationLock.lock(); try{ // close off all connections. for (int i=0; i < this.pool.partitionCount; i++) { this.pool.partitions[i].setUnableToCreateMoreTransactions(false); // we can create new ones now, this is an optimization List<ConnectionHandle> clist = new LinkedList<ConnectionHandle>(); this.pool.partitions[i].getFreeConnections().drainTo(clist); for (ConnectionHandle c: clist){ this.pool.destroyConnection(c); } } } finally { this.terminationLock.unlock(); } }
[ "Closes off all connections in all partitions." ]
[ "Sets that there are some pending writes that occurred at a time for an associated\nlocally emitted change event. This variant maintains the last version set.\n\n@param atTime the time at which the write occurred.\n@param changeEvent the description of the write/change.", "Use this API to fetch sslcipher resource of given name .", "Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<\n\n@param cms the CMS context to use to generate the permalink\n\n@return the permalink", "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value.", "Use this API to save nsconfig.", "Shifts are performed based upon singular values computed previously. If it does not converge\nusing one of those singular values it uses a Wilkinson shift instead.", "Replaces the translations in an existing container with the translations for the provided locale.\n@param locale the locale for which translations should be loaded.\n@return <code>true</code> if replacing succeeded, <code>false</code> otherwise.", "If this Aztec Code symbol is part of a series of Aztec Code symbols appended in a structured format,\nthis method sets the unique message ID for the series. Values may not contain spaces and must contain\nonly printable ASCII characters. Message IDs are optional.\n\n@param messageId the unique message ID for the series that this symbol is part of", "Use this API to update vridparam." ]
public double d(double x){ int intervalNumber =getIntervalNumber(x); if (intervalNumber==0 || intervalNumber==points.length) { return x; } return getIntervalReferencePoint(intervalNumber-1); }
[ "If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any interval of the partition, this method returns x.\n\n@param x The point of interest.\n@return The discretized value." ]
[ "Redirect standard streams so that the output can be passed to listeners.", "Loads the data from the database. Override this method if the objects\nshall be loaded in a specific way.\n\n@return The loaded data", "Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler.", "Add a \"post-run\" dependent task item for this task item.\n\n@param dependent the \"post-run\" dependent task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "Answer the foreign key query to retrieve the collection\ndefined by CollectionDescriptor", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "Old SOAP client uses new SOAP service", "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Read a single weekday from the provided JSON value.\n@param val the value to read the week day from.\n@return the week day read\n@throws IllegalArgumentException thrown if the provided JSON value is not the representation of a week day." ]
public static systemmemory_stats get(nitro_service service) throws Exception{ systemmemory_stats obj = new systemmemory_stats(); systemmemory_stats[] response = (systemmemory_stats[])obj.stat_resources(service); return response[0]; }
[ "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler." ]
[ "Set sizes to override the generated URLs of the different sizes.\n\n@param sizes\n@see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)", "Whether the given column is part of this key family or not.\n\n@return {@code true} if the given column is part of this key, {@code false} otherwise.", "Creates a Blob holding a single-sheet spreadsheet with a pivot of the domain objects. The sheet name is derived from the\nclass name.\n\n<p>\nMinimal requirements for the domain object are:\n</p>\n<ul>\n<li>\nOne property has annotation {@link PivotRow} and will be used as row identifier in left column of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotColumn}. Its values will be used in columns of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotValue}. Its values will be distributed in the pivot.\n</li>\n</ul>", "Adds listeners and reads from a file.\n\n@param reader reader for file type\n@param file schedule data\n@return ProjectFile instance", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID.", "Fires given event for non-web modules. Used for @BeforeDestroyed and @Destroyed events.", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter embedded in the String, which is useful for bio.", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add." ]
public void setWeekDay(String dayString) { final WeekDay day = WeekDay.valueOf(dayString); if (m_model.getWeekDay() != day) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDay(day); onValueChange(); } }); } }
[ "Set the week day the event should take place.\n@param dayString the day as string." ]
[ "Adds all items from the iterable to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed", "Creates the main component of the editor with all sub-components.\n@return the completely filled main component of the editor.\n@throws IOException thrown if setting the table's content data source fails.\n@throws CmsException thrown if setting the table's content data source fails.", "Calls all initializers of the bean\n\n@param instance The bean instance", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration", "Wrapper delayed emission, based on delayProvider.\n\n@param event the event to emit\n@param milliseconds the delay in milliseconds\n@param <T> the type of event\n@return delayed observable", "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero" ]
static String md5(String input) { if (input == null || input.length() == 0) { throw new IllegalArgumentException("Input string must not be blank."); } try { MessageDigest algorithm = MessageDigest.getInstance("MD5"); algorithm.reset(); algorithm.update(input.getBytes()); byte[] messageDigest = algorithm.digest(); StringBuilder hexString = new StringBuilder(); for (byte messageByte : messageDigest) { hexString.append(Integer.toHexString((messageByte & 0xFF) | 0x100).substring(1, 3)); } return hexString.toString(); } catch (Exception e) { throw new RuntimeException(e); } }
[ "Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash of input.\n@throws IllegalArgumentException if {@code input} is blank." ]
[ "Notifies that multiple content items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Ask the specified player for the specified waveform detail from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform detail\n\n@return the waveform detail, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Adds a materialization listener.\n\n@param listener\nThe listener to add", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e., the implementation of {@link #setValues(RandomVariable[], RandomVariable[])} and\nthat of {@link #setDerivatives(RandomVariable[], RandomVariable[][])} is reused.\n\nThe initial values of the cloned optimizer will either be the original\ninitial values of this object or the best parameters obtained by this\noptimizer, the latter is used only if this optimized signals a {@link #done()}.\n\n@param newTargetVaues New list of target values.\n@param newWeights New list of weights.\n@param isUseBestParametersAsInitialParameters If true and this optimizer is done(), then the clone will use this.{@link #getBestFitParameters()} as initial parameters.\n@return A new LevenbergMarquardt optimizer, cloning this one except modified target values and weights.\n@throws CloneNotSupportedException Thrown if this optimizer cannot be cloned.", "Creates a proxy object which implements a given bean interface.\n\n@param proxyInterface\nthe interface the the proxy will implement\n@param <T>\nthe proxy implementation type\n@return the proxy implementation\n@throws NullPointerException\nif proxyInterface is null", "Give next index i where i and i+timelag is valid", "Given counters of true positives, false positives, and false\nnegatives, prints out precision, recall, and f1 for each key." ]
public void addStep(String name, String robot, Map<String, Object> options) { all.put(name, new Step(name, robot, options)); }
[ "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step." ]
[ "Send post request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws IOException the io exception", "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data", "Retrieves the notes text for this resource.\n\n@return notes text", "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Returns the list of the configured sort options, or the empty list if no sort options are configured.\n@return The list of the configured sort options, or the empty list if no sort options are configured.", "Set the method arguments for an enabled method override\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 arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise", "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 given source byte buffer into this buffer at the given offset\n@param src source byte buffer\n@param destOffset offset in this buffer to read to\n@return the number of bytes read", "Gets the appropriate cache dir\n\n@param ctx\n@return" ]
public void setIsSeries(Boolean isSeries) { if (null != isSeries) { final boolean series = isSeries.booleanValue(); if ((null != m_model.getParentSeriesId()) && series) { m_removeSeriesBindingConfirmDialog.show(new Command() { public void execute() { m_model.setParentSeriesId(null); setPattern(PatternType.DAILY.toString()); } }); } else { setPattern(series ? PatternType.DAILY.toString() : PatternType.NONE.toString()); } } }
[ "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events." ]
[ "This method writes predecessor data to an MSPDI 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 xml MSPDI task data\n@param mpx MPX task data", "Returns all base types.\n\n@return An iterator of the base types", "Use this API to flush cachecontentgroup.", "Removes a filter from this project file.\n\n@param filterName The name of the filter", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request", "Use this API to delete route6 resources.", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "Sets the model that the handling works on.\n\n@param databaseModel The database model\n@param objModel The object model" ]
static final TimeBasedRollStrategy findRollStrategy( final AppenderRollingProperties properties) { if (properties.getDatePattern() == null) { LogLog.error("null date pattern"); return ROLL_ERROR; } // Strip out quoted sections so that we may safely scan the undecorated // pattern for characters that are meaningful to SimpleDateFormat. final LocalizedDateFormatPatternHelper localizedDateFormatPatternHelper = new LocalizedDateFormatPatternHelper( properties.getDatePatternLocale()); final String undecoratedDatePattern = localizedDateFormatPatternHelper .excludeQuoted(properties.getDatePattern()); if (ROLL_EACH_MINUTE.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_MINUTE; } if (ROLL_EACH_HOUR.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_HOUR; } if (ROLL_EACH_HALF_DAY.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_HALF_DAY; } if (ROLL_EACH_DAY.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_DAY; } if (ROLL_EACH_WEEK.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_WEEK; } if (ROLL_EACH_MONTH.isRequiredStrategy(localizedDateFormatPatternHelper, undecoratedDatePattern)) { return ROLL_EACH_MONTH; } return ROLL_ERROR; }
[ "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy." ]
[ "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface.", "Create a JMX ObjectName\n\n@param domain The domain of the object\n@param type The type of the object\n@return An ObjectName representing the name", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "Use this API to fetch all the auditmessages resources that are configured on netscaler.", "Remove a connection from all keys.\n\n@param connection\nthe connection", "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function", "Empirical data from 3.x, actual =40", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Converts a collection of dates to a JSON array with the long representation of the dates as strings.\n@param dates the list to convert.\n@return JSON array with long values of dates as string" ]
public static GVRTexture loadFutureCubemapTexture( GVRContext gvrContext, ResourceCache<GVRImage> textureCache, GVRAndroidResource resource, int priority, Map<String, Integer> faceIndexMap) { GVRTexture tex = new GVRTexture(gvrContext); GVRImage cached = textureCache.get(resource); if (cached != null) { Log.v("ASSET", "Future Texture: %s loaded from cache", cached.getFileName()); tex.setImage(cached); } else { AsyncCubemapTexture.get().loadTexture(gvrContext, CancelableCallbackWrapper.wrap(GVRCubemapImage.class, tex), resource, priority, faceIndexMap); } return tex; }
[ "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param resource\nA steam containing a zip file which contains six bitmaps. The\nsix bitmaps correspond to +x, -x, +y, -y, +z, and -z faces of\nthe cube map texture respectively. The default names of the\nsix images are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\",\n\"posz.png\", and \"negz.png\", which can be changed by calling\n{@link GVRCubemapImage#setFaceNames(String[])}.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}" ]
[ "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", "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", "Loads a CRF classifier from a filepath, and returns it.\n\n@param file\nFile to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Retrieve the default number of minutes per month.\n\n@return minutes per month", "Writes the data collected about properties to a file.", "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.", "Reads the given source byte buffer into this buffer at the given offset\n@param src source byte buffer\n@param destOffset offset in this buffer to read to\n@return the number of bytes read", "Returns PatternParser used to parse the conversion string. Subclasses may\noverride this to return a subclass of PatternParser which recognize\ncustom conversion characters.\n\n@since 0.9.0" ]
public void fire(TestCaseStartedEvent event) { //init root step in parent thread if needed stepStorage.get(); TestCaseResult testCase = testCaseStorage.get(); event.process(testCase); synchronized (TEST_SUITE_ADD_CHILD_LOCK) { testSuiteStorage.get(event.getSuiteUid()).getTestCases().add(testCase); } notifier.fire(event); }
[ "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process" ]
[ "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second).", "Update server mapping's host header\n\n@param serverMappingId ID of server mapping\n@param hostHeader value of host header\n@return updated ServerRedirect", "Paint a check pattern, used for a background to indicate image transparency.\n@param c the component to draw into\n@param g the Graphics objects\n@param x the x position\n@param y the y position\n@param width the width\n@param height the height", "Update the state of the picker. If it has an owner, the picker\nwill use that object to derive its position and orientation.\nThe \"active\" state of this controller is used to indicate touch.\nThe cursor position is updated after picking.", "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Validates the type", "Get the scale at the given index.\n\n@param index the index of the zoom level to access.\n@param unit the unit." ]
List<W3CEndpointReference> lookupEndpoints(QName serviceName, MatcherDataType matcherData) throws ServiceLocatorFault, InterruptedExceptionFault { SLPropertiesMatcher matcher = createMatcher(matcherData); List<String> names = null; List<W3CEndpointReference> result = new ArrayList<W3CEndpointReference>(); String adress; try { initLocator(); if (matcher == null) { names = locatorClient.lookup(serviceName); } else { names = locatorClient.lookup(serviceName, matcher); } } catch (ServiceLocatorException e) { ServiceLocatorFaultDetail serviceFaultDetail = new ServiceLocatorFaultDetail(); serviceFaultDetail.setLocatorFaultDetail(serviceName.toString() + "throws ServiceLocatorFault"); throw new ServiceLocatorFault(e.getMessage(), serviceFaultDetail); } catch (InterruptedException e) { InterruptionFaultDetail interruptionFaultDetail = new InterruptionFaultDetail(); interruptionFaultDetail.setInterruptionDetail(serviceName .toString() + "throws InterruptionFault"); throw new InterruptedExceptionFault(e.getMessage(), interruptionFaultDetail); } if (names != null && !names.isEmpty()) { for (int i = 0; i < names.size(); i++) { adress = names.get(i); result.add(buildEndpoint(serviceName, adress)); } } else { if (LOG.isLoggable(Level.WARNING)) { LOG.log(Level.WARNING, "lookup Endpoints for " + serviceName + " failed, service is not known."); } ServiceLocatorFaultDetail serviceFaultDetail = new ServiceLocatorFaultDetail(); serviceFaultDetail.setLocatorFaultDetail("lookup Endpoint for " + serviceName + " failed, service is not known."); throw new ServiceLocatorFault("Can not find Endpoint", serviceFaultDetail); } return result; }
[ "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <code>null</code>" ]
[ "Parser for actual conditions\n\n@param feed\n@return", "Pass the activity you use the drawer in ;)\nThis is required if you want to set any values by resource\n\n@param activity\n@return", "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 permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response.", "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Finds out which dump files of the given type are available for download.\nThe result is a list of objects that describe the available dump files,\nin descending order by their date. Not all of the dumps included might be\nactually available.\n\n@return list of objects that provide information on available full dumps", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set", "As already described, but if separator is not null, then objects\nsuch as TaggedWord\n\n@param separator The string used to separate Word and Tag\nin TaggedWord, etc", "Clears the internal used cache for object materialization." ]
protected static String getTimePrecisionString(byte precision) { switch (precision) { case TimeValue.PREC_SECOND: return "sec"; case TimeValue.PREC_MINUTE: return "min"; case TimeValue.PREC_HOUR: return "hour"; case TimeValue.PREC_DAY: return "day"; case TimeValue.PREC_MONTH: return "month"; case TimeValue.PREC_YEAR: return "year"; case TimeValue.PREC_DECADE: return "decade"; case TimeValue.PREC_100Y: return "100 years"; case TimeValue.PREC_1KY: return "1000 years"; case TimeValue.PREC_10KY: return "10K years"; case TimeValue.PREC_100KY: return "100K years"; case TimeValue.PREC_1MY: return "1 million years"; case TimeValue.PREC_10MY: return "10 million years"; case TimeValue.PREC_100MY: return "100 million years"; case TimeValue.PREC_1GY: return "1000 million years"; default: return "Unsupported precision " + precision; } }
[ "Returns a human-readable string representation of a reference to a\nprecision that is used for a time value.\n\n@param precision\nthe numeric precision\n@return a string representation of the precision" ]
[ "Returns the metallic factor for PBR shading", "Remove a partition from the node provided\n\n@param node The node from which we're removing the partition\n@param donatedPartition The partitions to remove\n@return The new node without the partition", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Purges the JSP repository.<p<\n\n@param afterPurgeAction the action to execute after purging", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Returns a list of objects for each line in the spreadsheet, of the specified type.\n\n<p>\nIf the class is a view model then the objects will be properly instantiated (that is, using\n{@link DomainObjectContainer#newViewModelInstance(Class, String)}, with the correct\nview model memento); otherwise the objects will be simple transient objects (that is, using\n{@link DomainObjectContainer#newTransientInstance(Class)}).\n</p>" ]
public void setRegularExpression(String regularExpression) { if (regularExpression != null) this.regularExpression = Pattern.compile(regularExpression); else this.regularExpression = null; }
[ "Filter the URI based on a regular expression.\nCan be combined with an additional file-extension filter." ]
[ "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", "Save a weak reference to the resource", "Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget.", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Sets the request type for this ID. Defaults to GET\n\n@param pathId ID of path\n@param requestType type of request to service", "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "Transfer the data from the inputStream to the outputStream. Then close both streams.", "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.\n@param lexRange\n@return the range of elements" ]
public String getEditorParameter(CmsObject cms, String editor, String param) { String path = OpenCms.getSystemInfo().getConfigFilePath(cms, "editors/" + editor + ".properties"); CmsVfsMemoryObjectCache cache = CmsVfsMemoryObjectCache.getVfsMemoryObjectCache(); CmsParameterConfiguration config = (CmsParameterConfiguration)cache.getCachedObject(cms, path); if (config == null) { try { CmsFile file = cms.readFile(path); try (ByteArrayInputStream input = new ByteArrayInputStream(file.getContents())) { config = new CmsParameterConfiguration(input); // Uses ISO-8859-1, should be OK for config parameters cache.putCachedObject(cms, path, config); } } catch (CmsVfsResourceNotFoundException e) { return null; } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); return null; } } return config.getString(param, null); }
[ "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value" ]
[ "Fetch the latest versions for cluster metadata", "Write a date field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Process a single outline code.\n\n@param parentRow outline code to task mapping table\n@throws SQLException", "Get the service implementations for a given type name.\n\n@param serviceTypeName the type name\n@return the possibly empty list of services", "Write the criteria elements, extracting the information of the sub-model.\n\n@param writer the xml stream writer\n@param subModel the interface model\n@param nested whether it the criteria elements are nested as part of <not /> or <any />\n@throws XMLStreamException", "Converts a submatrix into an extract matrix operation.\n@param variableTarget The variable in which the submatrix is extracted from", "Creates a householder reflection.\n\n(I-gamma*v*v')*x = tau*e1\n\n<p>NOTE: Same as cs_house in csparse</p>\n@param x (Input) Vector x (Output) Vector v. Modified.\n@param xStart First index in X that is to be processed\n@param xEnd Last + 1 index in x that is to be processed.\n@param gamma (Output) Storage for computed gamma\n@return variable tau", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x.", "Use this API to add gslbservice." ]
void resetCurrentRevisionData() { this.revisionId = NO_REVISION_ID; // impossible as an id in MediaWiki this.parentRevisionId = NO_REVISION_ID; this.text = null; this.comment = null; this.format = null; this.timeStamp = null; this.model = null; }
[ "Resets all member fields that hold information about the revision that is\ncurrently being processed." ]
[ "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Writes the object to the specified document, optionally creating a child\nelement. The object in this case should be a point.\n\n@param o the object (of type Point).\n@param document the document to write to.\n@param asChild create child element if true.\n@throws RenderException", "Set the url for the shape file.\n\n@param url shape file url\n@throws LayerException file cannot be accessed\n@since 1.7.1", "Replaces the translations in an existing container with the translations for the provided locale.\n@param locale the locale for which translations should be loaded.\n@return <code>true</code> if replacing succeeded, <code>false</code> otherwise.", "Tells you if the expression is true, which can be true or Boolean.TRUE.\n@param expression\nexpression\n@return\nas described", "add a FK column pointing to the item Class", "Sets the appropriate headers to response of this request.\n\n@param response The HttpServletResponse response object.", "Embeds the given SVG element into a new SVG element scaling the graphic to the given dimension and\napplying the given rotation.", "Inserts a Parcelable 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 Parcelable object, or null\n@return this bundler instance to chain method calls" ]
private FieldConversion[] getPkFieldConversion(ClassDescriptor cld) { FieldDescriptor[] pks = cld.getPkFields(); FieldConversion[] fc = new FieldConversion[pks.length]; for (int i= 0; i < pks.length; i++) { fc[i] = pks[i].getFieldConversion(); } return fc; }
[ "Answer the FieldConversions for the PkFields\n@param cld\n@return the pk FieldConversions" ]
[ "add a foreign key field ID", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Validations specific to GET and GET ALL", "Return the authorization URL which is used to perform the authorization_code based OAuth2 flow.\n@param clientID the client ID to use with the connection.\n@param redirectUri the URL to which Box redirects the browser when authentication completes.\n@param state the text string that you choose.\nBox sends the same string to your redirect URL when authentication is complete.\n@param scopes this optional parameter identifies the Box scopes available\nto the application once it's authenticated.\n@return the authorization URL", "Set the minimum date limit.", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Sets the action label to be displayed, if any. Note that if this is not set, the action\nbutton will not be displayed\n\n@param actionButtonLabel\n@return", "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "Formats the value provided with the specified DateTimeFormat" ]
public JavadocComment toComment(String indentation) { for (char c : indentation.toCharArray()) { if (!Character.isWhitespace(c)) { throw new IllegalArgumentException("The indentation string should be composed only by whitespace characters"); } } StringBuilder sb = new StringBuilder(); sb.append(EOL); final String text = toText(); if (!text.isEmpty()) { for (String line : text.split(EOL)) { sb.append(indentation); sb.append(" * "); sb.append(line); sb.append(EOL); } } sb.append(indentation); sb.append(" "); return new JavadocComment(sb.toString()); }
[ "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation." ]
[ "Insert a new value prior to the index location in the existing value array,\nincreasing the field length accordingly.\n@param index - where the new values in an SFVec2f object will be placed in the array list\n@param newValue - the new x, y value for the array list", "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one", "Clear JobContext of current thread", "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", "Reads the entity hosting the association from the datastore and applies any property changes from the server\nside.", "Reads a line from the input stream, where a line is terminated by \\r, \\n, or \\r\\n\n@param trim whether to trim trailing \\r and \\ns", "Starts the named animation.\n@see GVRAvatar#stop(String)\n@see GVRAnimationEngine#start(GVRAnimation)", "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.", "Checks the given model.\n\n@param modelDef The model\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated" ]
public CustomHeadersInterceptor addHeaderMap(Map<String, String> headers) { for (Map.Entry<String, String> header : headers.entrySet()) { this.headers.put(header.getKey(), Collections.singletonList(header.getValue())); } return this; }
[ "Add all headers in a header map.\n\n@param headers a map of headers.\n@return the interceptor instance itself." ]
[ "Note that the index can only be built once.\n\n@param beans The set of beans the index should be built from, only instances of {@link CommonBean} and implementations of {@link PassivationCapable} are\nincluded\n@throws IllegalStateException If the index is built already", "Create the ResourceIgnoredTransformationRegistry when fetching missing content, only including relevant pieces\nto a server-config.\n\n@param rc the resolution context\n@param delegate the delegate ignored resource transformation registry for manually ignored resources\n@return", "Use this API to fetch a aaaglobal_binding resource .", "Executes the API action \"wbremoveclaims\" for the given parameters.\n\n@param statementIds\nthe statement ids to delete\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", "Log a byte array as a hex dump.\n\n@param data byte array", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value", "resumed a given deployment\n\n@param deployment The deployment to resume", "retrieve a single reference- or collection attribute\nof a persistent instance.\n@param pInstance the persistent instance\n@param pAttributeName the name of the Attribute to load", "Decode PKWare Compression Library stream.\n\nFormat notes:\n\n- First byte is 0 if literals are uncoded or 1 if they are coded. Second\nbyte is 4, 5, or 6 for the number of extra bits in the distance code.\nThis is the base-2 logarithm of the dictionary size minus six.\n\n- Compressed data is a combination of literals and length/distance pairs\nterminated by an end code. Literals are either Huffman coded or\nuncoded bytes. A length/distance pair is a coded length followed by a\ncoded distance to represent a string that occurs earlier in the\nuncompressed data that occurs again at the current location.\n\n- A bit preceding a literal or length/distance pair indicates which comes\nnext, 0 for literals, 1 for length/distance.\n\n- If literals are uncoded, then the next eight bits are the literal, in the\nnormal bit order in the stream, i.e. no bit-reversal is needed. Similarly,\nno bit reversal is needed for either the length extra bits or the distance\nextra bits.\n\n- Literal bytes are simply written to the output. A length/distance pair is\nan instruction to copy previously uncompressed bytes to the output. The\ncopy is from distance bytes back in the output stream, copying for length\nbytes.\n\n- Distances pointing before the beginning of the output data are not\npermitted.\n\n- Overlapped copies, where the length is greater than the distance, are\nallowed and common. For example, a distance of one and a length of 518\nsimply copies the last byte 518 times. A distance of four and a length of\ntwelve copies the last four bytes three times. A simple forward copy\nignoring whether the length is greater than the distance or not implements\nthis correctly.\n\n@param input InputStream instance\n@param output OutputStream instance\n@return status code" ]
protected void mergeImmutableContainerTypesFrom(Configuration otherConfiguration) { Set<Dotted> union = Sets.union(hardcodedImmutableContainerClasses.build(), otherConfiguration.immutableContainerClasses()); hardcodedImmutableContainerClasses = ImmutableSet.<Dotted>builder().addAll(union); }
[ "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with." ]
[ "Creates an operations that targets the valiadating handler.\n\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Creates a general purpose solver. Use this if you are not sure what you need.\n\n@param numRows The number of rows that the decomposition is optimized for.\n@param numCols The number of columns that the decomposition is optimized for.", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise", "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", "init database with demo data", "Add several jvm metrics.", "Try to open a file at the given position.", "Returns the average event value in the current interval", "Returns a new color that has the alpha adjusted by the\nspecified amount." ]
public static List<String> getParameterNames(MethodNode node) { ArrayList<String> result = new ArrayList<String>(); if (node.getParameters() != null) { for (Parameter parameter : node.getParameters()) { result.add(parameter.getName()); } } return result; }
[ "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null" ]
[ "Returns the position of the specified value in the specified array.\n\n@param value the value to search for\n@param array the array to search in\n@return the position of the specified value in the specified array", "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "This method reads a six byte long from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "Converts a standard optimizer to one which the given amount of l1 or l2 regularization.", "Gets constructors with given annotation type\n\n@param annotationType The annotation type to match\n@return A set of abstracted constructors with given annotation type. If\nthe constructors set is empty, initialize it first. Returns an\nempty set if there are no matches.\n@see org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType#getEnhancedConstructors(Class)", "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.", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day", "Call rollback on the underlying connection." ]
public ChangesResult getChanges() { final URI uri = this.databaseHelper.changesUri("feed", "normal"); return client.get(uri, ChangesResult.class); }
[ "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes" ]
[ "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Function to go through all the store definitions contained in the STORES\ndirectory and\n\n1. Update metadata cache.\n\n2. Update STORES_KEY by stitching together all these keys.\n\n3. Update 'storeNames' list.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will correctly handle concurrency issues. Currently this is not an\nissue since its invoked by init, put, add and delete store all of which\nuse locks to deal with any concurrency related issues.", "Release the broker instance.", "Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSceneObject\nThe root of the scene object tree to which the scripts are bound.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Process the response by reporting proper log and feeding failure\ndetectors\n\n@param response\n@param pipeline", "Create a temporary directory under a given workspace", "Create and return a new Violation for this rule and the specified import className and alias\n@param sourceCode - the SourceCode\n@param className - the class name (as specified within the import statement)\n@param alias - the alias for the import statement\n@param violationMessage - the violation message; may be null\n@return a new Violation object" ]
public InsertIntoTable addRowsFromDelimited(File file, String delimiter, Object nullValue) { builder.addRowsFromDelimited(file, delimiter, nullValue); return this; }
[ "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}" ]
[ "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists", "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Retrieves the working hours on the given date.\n\n@param date required date\n@param cal optional calendar instance\n@param day optional day instance\n@return working hours", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there is no such collection", "Acquires a read lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Does the slice contain only 7-bit ASCII characters.", "Create a new builder for multiple unpaginated requests on the view.\n\n@param keyType {@link com.cloudant.client.api.views.Key.Type} of the key emitted by the\nview\n@param valueType class of the type of value emitted by the view\n@param <K> type of key emitted by the view\n@param <V> type of value emitted by the view\n@return a new {@link MultipleRequestBuilder} for the database view specified by this\nViewRequestBuilder" ]
public List depthFirst() { List answer = new NodeList(); answer.add(this); answer.addAll(depthFirstRest()); return answer; }
[ "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" ]
[ "Encodes the given URI user info with the given encoding.\n@param userInfo the user info to be encoded\n@param encoding the character encoding to encode to\n@return the encoded user info\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler.", "Add a new value to the array map.\n@param key The key under which to store the value. <b>Must not be null.</b> If\nthis key already exists in the array, its value will be replaced.\n@param value The value to store for the given key.\n@return Returns the old value that was stored for the given key, or null if there\nwas no such key.", "AND operation which takes the previous clause and the next clause and AND's them together.", "Find the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Calculates the column width according to its type.\n@param _property the property.\n@return the column width.", "Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.", "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a class is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeHardcodedResultsFrom(Configuration)}.\n\n@param otherConfiguration - Configuration to merge hardcoded results with.", "Use this API to fetch all the appfwprofile resources that are configured on netscaler." ]
public Set<String> findResourceNames(String location, URI locationUri) throws IOException { String filePath = toFilePath(locationUri); File folder = new File(filePath); if (!folder.isDirectory()) { LOGGER.debug("Skipping path as it is not a directory: " + filePath); return new TreeSet<>(); } String classPathRootOnDisk = filePath.substring(0, filePath.length() - location.length()); if (!classPathRootOnDisk.endsWith(File.separator)) { classPathRootOnDisk = classPathRootOnDisk + File.separator; } LOGGER.debug("Scanning starting at classpath root in filesystem: " + classPathRootOnDisk); return findResourceNamesFromFileSystem(classPathRootOnDisk, location, folder); }
[ "Scans a path on the filesystem for resources inside the given classpath location.\n\n@param location The system-independent location on the classpath.\n@param locationUri The system-specific physical location URI.\n@return a sorted set containing all the resources inside the given location\n@throws IOException if an error accessing the filesystem happens" ]
[ "Ensures that the primary keys required by the given reference are present in the referenced class.\n\n@param modelDef The model\n@param refDef The reference\n@throws ConstraintException If there is a conflict between the primary keys", "Decodes a signed request, returning the payload of the signed request as a specified type.\n@param signedRequest the value of the signed_request parameter sent by Facebook.\n@param type the type to bind the signed_request to.\n@param <T> the Java type to bind the signed_request to.\n@return the payload of the signed request as an object\n@throws SignedRequestException if there is an error decoding the signed request", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Creates a temporary folder using the given prefix to generate its name.\n@param prefix the prefix string to be used in generating the directory's name; may be <i>null</i>\n@return the <code>File</code> to the newly created folder\n@throws IOException", "Get a property as an long or throw an exception.\n\n@param key the property name", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Read the header from the Phoenix file.\n\n@param stream input stream\n@return raw header data", "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" ]
private String filterAttributes(String html) { String filteredHtml = html; for (String attribute : this.filterAttributes) { String regex = "\\s" + attribute + "=\"[^\"]*\""; Pattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(html); filteredHtml = m.replaceAll(""); } return filteredHtml; }
[ "Filters attributes from the HTML string.\n\n@param html The HTML to filter.\n@return The filtered HTML string." ]
[ "Returns the secret key matching the specified identifier.\n\n@param input the input stream containing the keyring collection\n@param keyId the 4 bytes identifier of the key", "Adds a data set with date-time value to IIM file.\n\n@param ds\ndata set id (see constants in IIM class)\n@param date\ndate to set. Null values are silently ignored.\n@throws SerializationException\nif value can't be serialized by data set's serializer\n@throws InvalidDataSetException\nif data set isn't defined", "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception.", "This method is called to try to catch any invalid tasks that may have sneaked past all our other checks.\nThis is done by validating the tasks by task ID.", "Prepare the filter for the transiton at a given time.\nThe default implementation sets the given filter property, but you could override this method to make other changes.\n@param transition the transition time in the range 0 - 1", "Add an additional binary type", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Internal utility to help JNI add hit objects to the pick list. Specifically for MeshColliders with picking\nfor UV, Barycentric, and normal coordinates enabled" ]
public void addDateTimeHelper(int ds, Date date) throws SerializationException, InvalidDataSetException { if (date == null) { return; } DataSetInfo dsi = dsiFactory.create(ds); SimpleDateFormat df = new SimpleDateFormat(dsi.getSerializer().toString()); String value = df.format(date); byte[] data = dsi.getSerializer().serialize(value, activeSerializationContext); DataSet dataSet = new DefaultDataSet(dsi, data); add(dataSet); }
[ "Adds a data set with date-time value to IIM file.\n\n@param ds\ndata set id (see constants in IIM class)\n@param date\ndate to set. Null values are silently ignored.\n@throws SerializationException\nif value can't be serialized by data set's serializer\n@throws InvalidDataSetException\nif data set isn't defined" ]
[ "don't run on main thread", "Calculate start dates for a monthly relative recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Read relationship data from a PEP file.", "Extract where the destination is reshaped to match the extracted region\n@param src The original matrix which is to be copied. Not modified.\n@param srcX0 Start column.\n@param srcX1 Stop column+1.\n@param srcY0 Start row.\n@param srcY1 Stop row+1.\n@param dst Where the submatrix are stored. Modified.", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "set custom request for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Use this API to add gslbservice resources.", "Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param 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.getPhotostreamDomains.html\"", "Computes the inner product of A times A and stores the results in B. The inner product is symmetric and this\nfunction will only store the lower triangle. The value of the upper triangular matrix is undefined.\n\n<p>B = A<sup>T</sup>*A</sup>\n\n@param A (Input) Matrix\n@param B (Output) Storage for output." ]
public static base_response convert(nitro_service client, sslpkcs12 resource) throws Exception { sslpkcs12 convertresource = new sslpkcs12(); convertresource.outfile = resource.outfile; convertresource.Import = resource.Import; convertresource.pkcs12file = resource.pkcs12file; convertresource.des = resource.des; convertresource.des3 = resource.des3; convertresource.export = resource.export; convertresource.certfile = resource.certfile; convertresource.keyfile = resource.keyfile; convertresource.password = resource.password; convertresource.pempassphrase = resource.pempassphrase; return convertresource.perform_operation(client,"convert"); }
[ "Use this API to convert sslpkcs12." ]
[ "Set dates with the provided check states.\n@param datesWithCheckInfo the dates to set, accompanied with the check state to set.", "Get the Upper triangular factor.\n\n@return U.", "The default field facets.\n\n@param categoryConjunction flag, indicating if category selections in the facet should be \"AND\" combined.\n@return the default field facets.", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Sets the polling status.\n\n@param status the polling status.\n@param statusCode the HTTP status code\n@throws IllegalArgumentException thrown if status is null.", "Returns the end time of the event.\n@return the end time of the event.", "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\n@param filename File name of the attachment\n@param description Description of the attachment\n@return New multipart", "Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a property fails", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection." ]
public CrosstabBuilder setRowStyles(Style headerStyle, Style totalStyle, Style totalHeaderStyle) { crosstab.setRowHeaderStyle(headerStyle); crosstab.setRowTotalheaderStyle(totalHeaderStyle); crosstab.setRowTotalStyle(totalStyle); return this; }
[ "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return" ]
[ "Get the scale at the given index.\n\n@param index the index of the zoom level to access.\n@param unit the unit.", "Encodes the given URI user info with the given encoding.\n@param userInfo the user info to be encoded\n@param encoding the character encoding to encode to\n@return the encoded user info\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Returns a matrix of StatisticsMatrix type so that SimpleMatrix functions create matrices\nof the correct type.", "Pushes a class type onto the stack from the string representation This can\nalso handle primitives\n\n@param b the bytecode\n@param classType the type descriptor for the class or primitive to push.\nThis will accept both the java.lang.Object form and the\nLjava/lang/Object; form", "Returns the Euclidean distance between this vector and vector v.\n\n@return distance between this vector and v", "Sets the parent node.\n\n@param parentNode The parent of this node. May be null, if this is a root node.", "Use this API to update onlinkipv6prefix.", "Marks the start of a query identified by the provided correlationId\n\n@param query - Query data\n@param correlationId - Identifier\n@return Start event to pass to the Events systems EventBus", "Executes the given supplier within the context of a read lock.\n\n@param <E> The result type.\n@param sup The supplier.\n@return The result of {@link Supplier#get()}." ]
protected final void setDefaultValue() { m_start = null; m_end = null; m_patterntype = PatternType.NONE; m_dayOfMonth = 0; m_exceptions.clear(); m_individualDates.clear(); m_interval = 0; m_isEveryWorkingDay = false; m_isWholeDay = false; m_month = Month.JANUARY; m_seriesEndDate = null; m_seriesOccurrences = 0; m_weekDays.clear(); m_weeksOfMonth.clear(); m_endType = EndType.SINGLE; m_parentSeriesId = null; }
[ "Sets the value to a default." ]
[ "helper method to set the TranslucentNavigationFlag\n\n@param on", "Shuts down the server. Active connections are not affected.", "Initializes data structures", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Invalidate layout setup.", "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)", "Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.\n\n@param inv Where the value of the inverse will be stored. Modified.", "Creates a real valued diagonal matrix of the specified type" ]
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." ]
[ "Returns the y-coordinate of a vertex tangent.\n\n@param vertex the vertex index\n@return the y coordinate", "Returns an iterable containing all the enterprise users that matches the filter and specifies which child fields\nto retrieve from the API.\n@param api the API connection to be used when retrieving the users.\n@param filterTerm used to filter the results to only users starting with this string in either the name or the\nlogin. Can be null to not filter the results.\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing all the enterprise users that matches the filter.", "Update the repeat number for a client path\n\n@param newNum new repeat number of the path\n@param path_id ID of the path\n@param client_uuid UUID of the client\n@throws Exception exception", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animation.\n@param newCycleInterval", "Use this API to fetch filtered set of dospolicy resources.\nset the filter parameter values in filtervalue object.", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Use this API to fetch appfwwsdl resource of given name .", "Create a WebDriver backed EmbeddedBrowser.\n\n@param driver The WebDriver to use.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser." ]
public static base_response clear(nitro_service client) throws Exception { nssimpleacl clearresource = new nssimpleacl(); return clearresource.perform_operation(client,"clear"); }
[ "Use this API to clear nssimpleacl." ]
[ "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "Use this API to add ipset.", "Reads an HTML snippet with the given name.\n\n@return the HTML data", "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:\n\n- The codes as stored in the compressed data are bit-reversed relative to\na simple integer ordering of codes of the same lengths. Hence below the\nbits are pulled from the compressed data one at a time and used to\nbuild the code value reversed from what is in the stream in order to\npermit simple integer comparisons for decoding.\n\n- The first code for the shortest length is all ones. Subsequent codes of\nthe same length are simply integer decrements of the previous code. When\nmoving up a length, a one bit is appended to the code. For a complete\ncode, the last code of the longest length will be all zeros. To support\nthis ordering, the bits pulled during decoding are inverted to apply the\nmore \"natural\" ordering starting with all zeros and incrementing.\n\n@param h Huffman table\n@return status code", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails.", "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.", "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization", "Use this API to update nsspparams." ]
public FloatBuffer getFloatVec(String attributeName) { int size = getAttributeSize(attributeName); if (size <= 0) { return null; } size *= 4 * getVertexCount(); ByteBuffer buffer = ByteBuffer.allocateDirect(size).order(ByteOrder.nativeOrder()); FloatBuffer data = buffer.asFloatBuffer(); if (!NativeVertexBuffer.getFloatVec(getNative(), attributeName, data, 0, 0)) { throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be accessed"); } return data; }
[ "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)" ]
[ "Add the list with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The list of all packages to add.", "Add new control at the control bar with specified touch listener, resource and position.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param listener touch listener\n@param position control position in the bar", "Calls the stored procedure stored procedure throws an\nerror if it doesn't exist.\n@param broker\n@param cld\n@param sequenceName\n@return\n@throws LookupException\n@throws SQLException", "Iterates over the elements of an iterable collection of items, starting from\na specified startIndex, and returns the index values of the items that match\nthe condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "Saves the loaded XML bundle as property bundle.\n@throws UnsupportedEncodingException thrown if localizations from the XML bundle could not be loaded correctly.\n@throws CmsException thrown if any of the interactions with the VFS fails.\n@throws IOException thrown if localizations from the XML bundle could not be loaded correctly.", "Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name .", "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", "Send a failed operation response.\n\n@param context the request context\n@param errorCode the error code\n@param message the operation message\n@throws IOException for any error" ]
private static String wordShapeDigits(final String s) { char[] outChars = null; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (Character.isDigit(c)) { if (outChars == null) { outChars = s.toCharArray(); } outChars[i] = '9'; } } if (outChars == null) { // no digit found return s; } else { return new String(outChars); } }
[ "Just collapses digits to 9 characters.\nDoes lazy copying of String.\n\n@param s String to find word shape of\n@return The same string except digits are equivalence classed to 9." ]
[ "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will do combine the WHERE statement of the two query builders with a SQL \"AND\". See\n{@link #joinOr(QueryBuilder)}.\n</p>", "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "Called to reset current sensor data.\n\n@param timeStamp\ncurrent time stamp\n@param rotationW\nQuaternion rotation W\n@param rotationX\nQuaternion rotation X\n@param rotationY\nQuaternion rotation Y\n@param rotationZ\nQuaternion rotation Z\n@param gyroX\nGyro rotation X\n@param gyroY\nGyro rotation Y\n@param gyroZ\nGyro rotation Z", "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Generate a map of UUID values to field types.\n\n@return UUID field value map", "Read the header from the Phoenix file.\n\n@param stream input stream\n@return raw header data", "Determines total number of partition-stores moved across zones.\n\n@return number of cross zone partition-store moves", "Use this API to fetch statistics of rnatip_stats resource of given name ." ]
protected static String createDotStoryName(String scenarioName) { String[] words = scenarioName.trim().split(" "); String result = ""; for (int i = 0; i < words.length; i++) { String word1 = words[i]; String word2 = word1.toLowerCase(); if (!word1.equals(word2)) { String finalWord = ""; for (int j = 0; j < word1.length(); j++) { if (i != 0) { char c = word1.charAt(j); if (Character.isUpperCase(c)) { if (j==0) { finalWord += Character.toLowerCase(c); } else { finalWord += "_" + Character.toLowerCase(c); } } else { finalWord += c; } } else { finalWord = word2; break; } } result += finalWord; } else { result += word2; } // I don't add the '_' to the last word. if (!(i == words.length - 1)) result += "_"; } return result; }
[ "Creates the name of the .story file to be wrote with the testcase. The\nname of the scenario must be given with spaces.\n\n@param scenarioName\n- The scenario name, with spaces\n@return the .story file name." ]
[ "Performs validation of the observer method for compliance with the specifications.", "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label", "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message", "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Return true if c has a @hidden tag associated with it", "Returns the value for a given key from the database properties.\n\n@param key the property key\n\n@return the string value for a given key", "Returns true if string starts and ends with double-quote\n@param str\n@return", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value" ]
public ItemRequest<Task> addTag(String task) { String path = String.format("/tasks/%s/addTag", task); return new ItemRequest<Task>(this, Task.class, path, "POST"); }
[ "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object" ]
[ "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error", "Create a set out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a set.\n@return A set consisting of the items from the Iterable.", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Factory method that returns an Identity object created from a serializated representation.\n\n@param anArray The serialized representation\n@return The identity\n@see {@link #serialize}.\n@deprecated", "Calculate the determinant.\n\n@return Determinant.", "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.", "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Given a year, month, and day, find the number of occurrences of that day in the month\n\n@param year the year\n@param month the month\n@param day the day\n@return the number of occurrences of the day in the month" ]
public static void extract( DMatrixRMaj src, int rows[] , int rowsSize , int cols[] , int colsSize , DMatrixRMaj dst ) { if( rowsSize != dst.numRows || colsSize != dst.numCols ) throw new MatrixDimensionException("Unexpected number of rows and/or columns in dst matrix"); int indexDst = 0; for (int i = 0; i < rowsSize; i++) { int indexSrcRow = src.numCols*rows[i]; for (int j = 0; j < colsSize; j++) { dst.data[indexDst++] = src.data[indexSrcRow + cols[j]]; } } }
[ "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape." ]
[ "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)", "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails", "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception", "Generates a Map of query parameters for Artifact regarding the filters\n\n@return Map<String, Object>", "Sets the body of this request to a given JSON string.\n@param body the JSON string to use as the body.", "Use this API to delete onlinkipv6prefix of given name.", "Get a list of tags for the specified photo.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param photoId\nThe photo ID\n@return The collection of Tag objects", "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.", "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded" ]
private void printClassRecord(PrintStream out, ClassRecord classRecord, EntityIdValue entityIdValue) { printTerms(out, classRecord.itemDocument, entityIdValue, "\"" + getClassLabel(entityIdValue) + "\""); printImage(out, classRecord.itemDocument); out.print("," + classRecord.itemCount + "," + classRecord.subclassCount); printClassList(out, classRecord.superClasses); HashSet<EntityIdValue> superClasses = new HashSet<>(); for (EntityIdValue superClass : classRecord.superClasses) { addSuperClasses(superClass, superClasses); } printClassList(out, superClasses); printRelatedProperties(out, classRecord); out.println(""); }
[ "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" ]
[ "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.", "A convenience method for creating an immutable sorted set.\n\n@param self a SortedSet\n@return an immutable SortedSet\n@see java.util.Collections#unmodifiableSortedSet(java.util.SortedSet)\n@since 1.0", "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "List of releases for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return a list of releases", "Takes a string of the form \"x1=y1,x2=y2,...\" and returns Map\n@param map A string of the form \"x1=y1,x2=y2,...\"\n@return A Map m is returned such that m.get(xn) = yn", "Check if new license pattern is valid and doesn't match any existing one\n@param newComer License being added or edited\n@throws WebApplicationException if conflicts involving the newComer are detected", "Counts the packages prefixes appearing in this project and if some of them make more than half of the total of existing packages, this prefix\nis returned. Otherwise, returns null.\n\nThis is just a helper, it isn't something really hard-setting the package. It's something to use if the user didn't specify using\n--mavenize.groupId, and the archive or project name is something insane, like few sencences paragraph (a description) or a number or such.", "provides a safe toString" ]
private void buildJoinTree(Criteria crit) { Enumeration e = crit.getElements(); while (e.hasMoreElements()) { Object o = e.nextElement(); if (o instanceof Criteria) { buildJoinTree((Criteria) o); } else { SelectionCriteria c = (SelectionCriteria) o; // BRJ skip SqlCriteria if (c instanceof SqlCriteria) { continue; } // BRJ: Outer join for OR boolean useOuterJoin = (crit.getType() == Criteria.OR); // BRJ: do not build join tree for subQuery attribute if (c.getAttribute() != null && c.getAttribute() instanceof String) { //buildJoinTreeForColumn((String) c.getAttribute(), useOuterJoin, c.getAlias(), c.getPathClasses()); buildJoinTreeForColumn((String) c.getAttribute(), useOuterJoin, c.getUserAlias(), c.getPathClasses()); } if (c instanceof FieldCriteria) { FieldCriteria cc = (FieldCriteria) c; buildJoinTreeForColumn((String) cc.getValue(), useOuterJoin, c.getUserAlias(), c.getPathClasses()); } } } }
[ "Build the tree of joins for the given criteria" ]
[ "Function to delete the specified store from Metadata store. This involves\n\n1. Remove entry from the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeName specifies name of the store to be deleted.", "Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Checks if the child is currently in ViewPort\n@param dataIndex child index\n@return true if the child is in viewport, false - otherwise", "Download a specified URL to a file\n\n@param stringUrl URL to use\n@param parameters HTTP Headers\n@param fileToSave File to save content\n@throws IOException I/O error happened", "Finds out which dump files of the given type are available for download.\nThe result is a list of objects that describe the available dump files,\nin descending order by their date. Not all of the dumps included might be\nactually available.\n\n@return list of objects that provide information on available full dumps", "Get a property of type java.util.Properties or return the default if\nno such property is defined\n@param props properties\n@param name the key\n@param defaultProperties default property if empty\n@return value from the property", "Use this API to enable nsfeature.", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return" ]
public static void writeFully(ByteBuffer buffer, WritableByteChannel channel) throws IOException { while (buffer.hasRemaining()) { channel.write(buffer); } }
[ "Writes the entire remaining contents of the buffer to the channel. May complete in one operation, but the\ndocumentation is vague, so this keeps going until we are sure.\n\n@param buffer the data to be written\n@param channel the channel to which we want to write data\n\n@throws IOException if there is a problem writing to the channel" ]
[ "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException", "Use this API to fetch gslbsite resource of given name .", "Creates a statement with parameters that should work with most RDBMS.", "Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException", "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion above.\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Parameter alpha\n@param b Shape parameter 1\n@param c Shape parameter 2\n@param d Diffusion coefficient", "Locks a file.\n\n@param expiresAt expiration date of the lock.\n@param isDownloadPrevented is downloading of file prevented when locked.\n@return the lock returned from the server.", "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "Inserts a vertex into this list before another specificed vertex." ]
public com.squareup.okhttp.Call postUiAutopilotWaypointCall(Boolean addToBeginning, Boolean clearOtherWaypoints, Long destinationId, String datasource, String token, final ApiCallback callback) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/v2/ui/autopilot/waypoint/"; List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); if (addToBeginning != null) { localVarQueryParams.addAll(apiClient.parameterToPair("add_to_beginning", addToBeginning)); } if (clearOtherWaypoints != null) { localVarQueryParams.addAll(apiClient.parameterToPair("clear_other_waypoints", clearOtherWaypoints)); } if (datasource != null) { localVarQueryParams.addAll(apiClient.parameterToPair("datasource", datasource)); } if (destinationId != null) { localVarQueryParams.addAll(apiClient.parameterToPair("destination_id", destinationId)); } if (token != null) { localVarQueryParams.addAll(apiClient.parameterToPair("token", token)); } Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "evesso" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, callback); }
[ "Build call for postUiAutopilotWaypoint\n\n@param addToBeginning\nWhether this solar system should be added to the beginning of\nall waypoints (required)\n@param clearOtherWaypoints\nWhether clean other waypoints beforing adding this one\n(required)\n@param destinationId\nThe destination to travel to, can be solar system, station or\nstructure&#39;s id (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object" ]
[ "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.", "Creates the final artifact name.\n\n@return the artifact name", "Extracts the rank of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The rank of the decomposed matrix.", "Capture stdout and route them through Redwood\n@return this", "Returns a single item from the Iterator.\nIf there's none, returns null.\nIf there are more, throws an IllegalStateException.\n\n@throws IllegalStateException", "Renders a given graphic into a new image, scaled to fit the new size and rotated.", "Processes the template for all procedure arguments of the current procedure.\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\"", "Adds the specified list of objects at the end of the array.\n\n@param collection The objects to add at the end of the array.", "Detach a scope from its parent, this will trigger the garbage collection of this scope and it's\nsub-scopes\nif they are not referenced outside of Toothpick.\n\n@param name the name of the scope to close." ]
public int getModifiers() { MetaMethod getter = getGetter(); MetaMethod setter = getSetter(); if (setter != null && getter == null) return setter.getModifiers(); if (getter != null && setter == null) return getter.getModifiers(); int modifiers = getter.getModifiers() | setter.getModifiers(); int visibility = 0; if (Modifier.isPublic(modifiers)) visibility = Modifier.PUBLIC; if (Modifier.isProtected(modifiers)) visibility = Modifier.PROTECTED; if (Modifier.isPrivate(modifiers)) visibility = Modifier.PRIVATE; int states = getter.getModifiers() & setter.getModifiers(); states &= ~(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE); states |= visibility; return states; }
[ "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist" ]
[ "Return the number of ignored or assumption-ignored tests.", "Returns all the retention policies.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable with all the retention policies.", "Reset the combination generator.", "Traverses the test case annotations. Will inject a HiveShell in the test case that envelopes the HiveServer.", "Combines adjacent blocks of the same type.", "Provides a consistent ordering over lists. First compares by the first\nelement. If that element is equal, the next element is considered, and so\non.", "Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget.", "Declares additional internal data structures.", "Sets whether an individual list value is selected.\n\n@param value the value of the item to be selected or unselected\n@param selected <code>true</code> to select the item" ]
public void copyCategories(CmsObject cms, CmsResource fromResource, String toResourceSitePath) throws CmsException { List<CmsCategory> categories = readResourceCategories(cms, fromResource); for (CmsCategory category : categories) { addResourceToCategory(cms, toResourceSitePath, category); } }
[ "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails." ]
[ "Replace bad xml charactes in given array by space\n\n@param cbuf buffer to replace in\n@param off Offset from which to start reading characters\n@param len Number of characters to be replaced", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Adds an additional description to the constructed document.\n\n@param text\nthe text of the description\n@param languageCode\nthe language code of the description\n@return builder object to continue construction", "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.", "Returns the real key object.", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance" ]
public void setTimeWarp(String l) { long warp = CmsContextInfo.CURRENT_TIME; try { warp = Long.parseLong(l); } catch (NumberFormatException e) { // if parsing the time warp fails, it will be set to -1 (i.e. disabled) } m_settings.setTimeWarp(warp); }
[ "Sets the time warp.\n\n@param l the new time warp" ]
[ "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.", "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value.", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException", "Persists the current set of versions buffered for the current key into\nstorage, using the multiVersionPut api\n\nNOTE: Now, it could be that the stream broke off and has more pending\nversions. For now, we simply commit what we have to disk. A better design\nwould rely on in-stream markers to do the flushing to storage.", "Gets a design document using the id and revision from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Returns the index of the median of the three indexed chars.", "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException", "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed" ]
private JSONValue dateToJson(Date d) { return null != d ? new JSONString(Long.toString(d.getTime())) : null; }
[ "Convert a date to the String representation we use in the JSON.\n@param d the date to convert\n@return the String representation we use in the JSON." ]
[ "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Get new vector clock based on this clock but incremented on index nodeId\n\n@param nodeId The id of the node to increment\n@return A vector clock equal on each element execept that indexed by\nnodeId", "Tries to guess location of the user secure keyring using various\nheuristics.\n\n@return path to the keyring file\n@throws FileNotFoundException if no keyring file found", "creates a point array of all dockers and add it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Signal that this thread will not log any more messages in the multithreaded\nenvironment", "end class CoNLLIterator", "Get the remote address.\n\n@return the remote address, {@code null} if not available", "Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists", "Construct an InterestRateSwapProductDescriptor from a node in a FpML file.\n\n@param trade The node containing the swap.\n@return Descriptor of the swap." ]
protected Integer parseOptionalIntValue(final String path) { final I_CmsXmlContentValue value = m_xml.getValue(path, m_locale); if (value == null) { return null; } else { final String stringValue = value.getStringValue(null); try { final Integer intValue = Integer.valueOf(stringValue); return intValue; } catch (final NumberFormatException e) { LOG.info(Messages.get().getBundle().key(Messages.LOG_OPTIONAL_INTEGER_MISSING_1, path), e); return null; } } }
[ "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored in the XML, or <code>null</code> if the value could not be read." ]
[ "Returns a SimpleConfiguration clientConfig with properties set from this configuration\n\n@return SimpleConfiguration", "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "Use this API to delete dnssuffix resources of given names.", "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", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Loads configuration from InputStream. Later loads have lower priority.\n\n@param in InputStream to load from\n@since 1.2.0", "Sets up internal data structures and creates a copy of the input matrix.\n\n@param A The input matrix. Not modified.", "Normalize the list of selected categories to fit for the ids of the tree items." ]
public static String defaultString(final String str, final String fallback) { return isNullOrEmpty(str) ? fallback : str; }
[ "Return fallback if first string is null or empty" ]
[ "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted.", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "Closes all the producers in the pool", "Returns a human-readable string representation of a reference to a\nprecision that is used for a time value.\n\n@param precision\nthe numeric precision\n@return a string representation of the precision", "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "Starts listening for shakes on devices with appropriate hardware.\n\n@return true if the device supports shake detection.", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "Extract task data." ]
protected float getViewPortSize(final Axis axis) { float size = mViewPort == null ? 0 : mViewPort.get(axis); Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "getViewPortSize for %s %f mViewPort = %s", axis, size, mViewPort); return size; }
[ "Get viewport size along the axis\n@param axis {@link Axis}\n@return size" ]
[ "set custom request for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Get a loader that lists the Files in the current path,\nand monitors changes.", "Adds a data set to IIM file.\n\n@param ds\ndata set id (see constants in IIM class)\n@param value\ndata set value. Null values are silently ignored.\n@throws SerializationException\nif value can't be serialized by data set's serializer\n@throws InvalidDataSetException\nif data set isn't defined", "Use this API to update cacheselector.", "Remove all unnecessary comments from a lexer or parser file", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified", "Execute the physical query and initialize the various entities and collections\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query", "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception" ]
@Nonnull public static InterfaceAnalysis analyze(@Nonnull final String code) { Check.notNull(code, "code"); final CompilationUnit unit = Check.notNull(SourceCodeReader.parse(code), "compilationUnit"); final List<TypeDeclaration> types = Check.notEmpty(unit.getTypes(), "typeDeclarations"); Check.stateIsTrue(types.size() == 1, "only one interface declaration per analysis is supported"); final ClassOrInterfaceDeclaration type = (ClassOrInterfaceDeclaration) types.get(0); final Imports imports = SourceCodeReader.findImports(unit.getImports()); final Package pkg = unit.getPackage() != null ? new Package(unit.getPackage().getName().toString()) : Package.UNDEFINED; final List<Annotation> annotations = SourceCodeReader.findAnnotations(type.getAnnotations(), imports); final List<Method> methods = SourceCodeReader.findMethods(type.getMembers(), imports); Check.stateIsTrue(!hasPossibleMutatingMethods(methods), "The passed interface '%s' seems to have mutating methods", type.getName()); final List<Interface> extendsInterfaces = SourceCodeReader.findExtends(type); final String interfaceName = type.getName(); return new ImmutableInterfaceAnalysis(annotations, extendsInterfaces, imports.asList(), interfaceName, methods, pkg); }
[ "Analyzes the source code of an interface. The specified interface must not contain methods, that changes the\nstate of the corresponding object itself.\n\n@param code\nsource code of an interface which describes how to generate the <i>immutable</i>\n@return analysis result" ]
[ "Configure high fps settings in the camera for VR mode\n\n@param fpsMode integer indicating the desired fps: 0 means 30 fps, 1 means 60\nfps, and 2 means 120 fps. Any other value is invalid.\n@return A boolean indicating the status of the method call. It may be false due\nto multiple reasons including: 1) supplying invalid fpsMode as the input\nparameter, 2) VR mode not supported.", "public for testing purpose", "Gives an sequence of ByteBuffers of a specified range. Writing to these ByteBuffers modifies the contents of this LBuffer.\n@param offset\n@param size\n@return", "This is the profiles page. this is the 'regular' page when the url is typed in", "Random string from string array\n\n@param s Array\n@return String", "Adds the specified class to the internal class graph along with its\nrelations and dependencies, eventually inferring them, according to the\nOptions specified for this matcher\n@param cd", "Get the Query Paramaters to be used for search request.\n@return this.QueryStringBuilder.", "Retrieve the default number of minutes per month.\n\n@return minutes per month", "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." ]
private T getWrappedPublisher(Publisher flexiblePublisher, Class<T> type) { if (!(flexiblePublisher instanceof FlexiblePublisher)) { throw new IllegalArgumentException(String.format("Publisher should be of type: '%s'. Found type: '%s'", FlexiblePublisher.class, flexiblePublisher.getClass())); } List<ConditionalPublisher> conditions = ((FlexiblePublisher) flexiblePublisher).getPublishers(); for (ConditionalPublisher condition : conditions) { if (type.isInstance(condition.getPublisher())) { return type.cast(condition.getPublisher()); } } return null; }
[ "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}" ]
[ "Use this API to fetch vpnvserver_appcontroller_binding resources of given name .", "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Runs a Story with the given steps factory, applying the given meta\nfilter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param stepsFactory the InjectableStepsFactory used to created the\ncandidate steps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.\n\n@param deploymentRootResource\n@param runtimeNames\n@return the deployment names with the specified runtime names at the specified deploymentRootAddress.", "Binds a script bundle to a scene.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param scene\nThe scene to bind to.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if script processing error occurs.", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value", "Convert this object to a json array.", "Scans all Forge addons for classes accepted by given filter.\n\nTODO: Could be refactored - scan() is almost the same.", "Use this API to fetch a responderglobal_responderpolicy_binding resources." ]
static void export(String path, String queueName, DbConn cnx) throws JqmXmlException { // Argument tests if (queueName == null) { throw new IllegalArgumentException("queue name cannot be null"); } if (cnx == null) { throw new IllegalArgumentException("database connection cannot be null"); } Queue q = CommonXml.findQueue(queueName, cnx); if (q == null) { throw new IllegalArgumentException("there is no queue named " + queueName); } List<Queue> l = new ArrayList<>(); l.add(q); export(path, l, cnx); }
[ "Exports a single queue to an XML file." ]
[ "Examines the list of variables for any unknown variables and throws an exception if one is found", "Indicates if this file represents a directory on the underlying file system.\n\n@param directoryPath\n@return", "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created browser.\n\n@param newBrowser the new created browser object", "Sets the model that the handling works on.\n\n@param databaseModel The database model\n@param objModel The object model", "Returns a count of in-window events.\n\n@return the the count of in-window events.", "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", "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step.", "Returns the currently set filters in a map column -> filter.\n\n@return the currently set filters in a map column -> filter.", "Runs a queued task, if the queue is not already empty.\n\nNote that this will decrement the request count if there are no queued tasks to be run\n\n@param hasPermit If the caller has already called {@link #beginRequest(boolean force)}" ]
@Override public List<String> setTargetHostsFromLineByLineText(String sourcePath, HostsSourceType sourceType) throws TargetHostsLoadException { List<String> targetHosts = new ArrayList<String>(); try { String content = getContentFromPath(sourcePath, sourceType); targetHosts = setTargetHostsFromString(content); } catch (IOException e) { throw new TargetHostsLoadException("IEException when reading " + sourcePath, e); } return targetHosts; }
[ "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception" ]
[ "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Shuts down a managed domain container. The servers are first stopped, then the host controller is shutdown.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to shutdown the managed domain failed", "Interfaces, enums, annotations, and abstract classes cannot be\ninstantiated.\n\n@param actionClass\nclass to check\n@return returns true if the class cannot be instantiated or should be\nignored", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@param dateRollConvention Adjustment to be applied to the all dates.\n@param businessdayCalendar Businessday calendar (holiday calendar) to be used for date roll adjustment.\n@param fixingOffsetDays Number of business days to be added to period start to get the fixing date.\n@param paymentOffsetDays Number of business days to be added to period end to get the payment date.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned", "Updates all inverse associations managed by a given entity.", "this callback is invoked after an Object is materialized\nwithin an IndirectionHandler.\nthis callback allows to defer registration of objects until\nit's really neccessary.\n@param handler the invoking handler\n@param materializedObject the materialized Object", "Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of known currencies, never null.", "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5" ]
public void fireResourceWrittenEvent(Resource resource) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.resourceWritten(resource); } } }
[ "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance" ]
[ "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param msdeval Evaluates the mean squared displacment", "Returns true if required properties for FluoClient are set", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Read calendar data.", "Configure a selector to choose documents that should be added to the index.", "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "Set the minimum date limit.", "Adds OPT_F | OPT_FILE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Return a logger associated with a particular class name." ]
@Override protected Deque<Step> childValue(Deque<Step> parentValue) { Deque<Step> queue = new LinkedList<>(); queue.add(parentValue.getFirst()); return queue; }
[ "In case parent thread spawn thread we need create a new queue\nfor child thread but use the only one root step. In the end all steps will be\nchildren of root step, all we need is sync adding steps\n@param parentValue value from parent thread\n@return local copy of queue in this thread with parent root as first element" ]
[ "Create a temporary directory under a given workspace", "Implements the AAD Algorithm\n@return HashMap where the key is the internal index of the random variable with respect to which the partial derivative was computed. This key then gives access to the actual derivative.", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "Returns status help message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Creates a player wrapper for the Android MediaPlayer.", "Read properties from the raw header data.\n\n@param stream input stream", "Returns the plugins classpath elements.", "Finds all nWise combinations of a set of variables, each with a given domain of values\n\n@param nWise the number of variables in each combination\n@param coVariables the varisbles\n@param variableDomains the domains\n@return all nWise combinations of the set of variables" ]
@Override public void deploy(InputStream inputStream) throws IOException { final List<? extends HasMetadata> entities = deploy("application", inputStream); if (this.applicationName == null) { Optional<String> deploymentConfig = entities.stream() .filter(hm -> hm instanceof DeploymentConfig) .map(hm -> (DeploymentConfig) hm) .map(dc -> dc.getMetadata().getName()).findFirst(); deploymentConfig.ifPresent(name -> this.applicationName = name); } }
[ "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException" ]
[ "Create a list of operations required to a boot a managed server.\n\n@param serverName the server name\n@param domainModel the complete domain model\n@param hostModel the local host model\n@param domainController the domain controller\n@return the list of boot operations", "Returns the header with the specified name from the supplied map. The\nheader lookup is case-insensitive.\n\n@param headers A <code>Map</code> containing the HTTP request headers.\n@param name The name of the header to return.\n@return The value of specified header, or a comma-separated list if there\nwere multiple headers of that name.", "Set the dither matrix.\n@param matrix the dither matrix\n@see #getMatrix", "Determine whether the given property matches this element.\nA property matches this element when property name and this key are equal,\nvalues are equal or this element value is a wildcard.\n@param property the property to check\n@return {@code true} if the property matches", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException", "Prints the data of one property to the given output. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param propertyRecord\nthe data to write\n@param propertyIdValue\nthe property that the data refers to", "Use this API to delete sslcipher of given name.", "Processes the template for all columns of the current table index.\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\"", "Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords" ]
private OperationResponse executeForResult(final OperationExecutionContext executionContext) throws IOException { try { return execute(executionContext).get(); } catch(Exception e) { throw new IOException(e); } }
[ "Execute for result.\n\n@param executionContext the execution context\n@return the result\n@throws IOException for any error" ]
[ "Decides and returns the preferred deployment credentials to use from this builder settings and selected server\n\n@param deployerOverrider Deploy-overriding capable builder\n@param server Selected Artifactory server\n@return Preferred deployment credentials", "Creates an element that represents an image drawn at the specified coordinates in the page.\n@param x the X coordinate of the image\n@param y the Y coordinate of the image\n@param width the width coordinate of the image\n@param height the height coordinate of the image\n@param type the image type: <code>\"png\"</code> or <code>\"jpeg\"</code>\n@param resource the image data depending on the specified type\n@return", "Creates an instance of a NewSimpleBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewSimpleBean instance", "Process the module and bundle roots and cross check with the installed information.\n\n@param conf the installed configuration\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the processed layers\n@throws IOException", "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance", "This method returns the actual raw class associated with the specified\ntype.", "To store an object in a quick & dirty way.", "This method is used by JNI, do not call or modify.\n\n@param type the type\n@param number the number", "Reads the categories assigned to a resource.\n\n@return map from the resource path (root path) to the assigned categories" ]
public T copy() { T ret = createLike(); ret.getMatrix().set(this.getMatrix()); return ret; }
[ "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix." ]
[ "Serializes any char sequence and writes it into specified buffer.", "Get a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route.", "Triggers a replication request.", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Retrieves the work variance.\n\n@return work variance", "get the property source method corresponding to given destination\nproperty\n\n@param sourceObject\n@param destinationObject\n@param destinationProperty\n@return", "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Disallow the job type from being executed.\n@param jobType the job type to disallow", "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>." ]
public static void log(String label, byte[] data) { if (LOG != null) { LOG.write(label); LOG.write(": "); LOG.println(ByteArrayHelper.hexdump(data, true)); LOG.flush(); } }
[ "Log a byte array.\n\n@param label label text\n@param data byte array" ]
[ "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.", "Decompiles the given .class file and creates the specified output source file.\n\n@param classFilePath the .class file to be decompiled.\n@param outputDir The directory where decompiled .java files will be placed.", "Create and register the declaration of class D with the given metadata.\n\n@param metadata the metadata to create the declaration\n@return the created declaration of class D", "Returns the configured request parameter for the current query string, or the default parameter if the core is not specified.\n@return The configured request parameter for the current query string, or the default parameter if the core is not specified.", "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "Use this API to enable clusterinstance resources of given names.", "seeks to a particular month\n\n@param direction the direction to seek: two possibilities\n'<' go backward\n'>' go forward\n\n@param seekAmount the amount to seek. Must be guaranteed to parse as an integer\n\n@param month the month to seek to. Must be guaranteed to parse as an integer\nbetween 1 and 12", "Registers add operation\n\n@param registration resource on which to register\n@param handler operation handler to register\n@param flags with flags\n@deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.controller.registry.OperationEntry.Flag...)}" ]
public String stripUnnecessaryComments(String javaContent, AntlrOptions options) { if (!options.isOptimizeCodeQuality()) { return javaContent; } javaContent = stripMachineDependentPaths(javaContent); if (options.isStripAllComments()) { javaContent = stripAllComments(javaContent); } return javaContent; }
[ "Remove all unnecessary comments from a lexer or parser file" ]
[ "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", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient", "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array.", "Flushes all changes to disk.", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param msg The message you would like logged.\n@return", "Calculates the legend bounds for a custom list of legends.", "Convert an object to a list.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target list element type\n@return list" ]
public void addRequest(long timeNS, long numEmptyResponses, long valueBytes, long keyBytes, long getAllAggregatedCount) { // timing instrumentation (trace only) long startTimeNs = 0; if(logger.isTraceEnabled()) { startTimeNs = System.nanoTime(); } long currentTime = time.milliseconds(); timeSensor.record((double) timeNS / voldemort.utils.Time.NS_PER_MS, currentTime); emptyResponseKeysSensor.record(numEmptyResponses, currentTime); valueBytesSensor.record(valueBytes, currentTime); keyBytesSensor.record(keyBytes, currentTime); getAllKeysCountSensor.record(getAllAggregatedCount, currentTime); // timing instrumentation (trace only) if(logger.isTraceEnabled()) { logger.trace("addRequest took " + (System.nanoTime() - startTimeNs) + " ns."); } }
[ "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls" ]
[ "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in.", "Set the permissions for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param permissions\nThe permissions object\n@throws FlickrException", "Use this API to fetch responderpolicy_binding resource of given name .", "Adds a constructor for the proxy for each constructor declared by the base\nbean type.\n\n@param proxyClassType the Javassist class for the proxy\n@param initialValueBytecode", "Sets up Log4J to write log messages to the console. Low-priority messages\nare logged to stdout while high-priority messages go to stderr.", "Matches the styles and adjusts the size. This needs to be\ncalled after the input is added to the DOM, so we do it in\nonLoad.", "Searches the model for all variable assignments and makes a default map of those variables, setting them to \"\"\n\n@return the default variable assignment map", "Read a two byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Appends to the statement table and all tables joined to it.\n@param alias the table alias\n@param where append conditions for WHERE clause here" ]