query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@Override public <VALUEBASE, VALUE extends VALUEBASE, KEY extends Key<CoreMap, VALUEBASE>> VALUE set(Class<KEY> key, VALUE value) { if (immutableKeys.contains(key)) { throw new HashableCoreMapException("Attempt to change value " + "of immutable field "+key.getSimpleName()); } return super.set(key, value); }
[ "Sets the value associated with the given key; if the the key is one\nof the hashable keys, throws an exception.\n\n@throws HashableCoreMapException Attempting to set the value for an\nimmutable, hashable key." ]
[ "Calculate UserInfo strings.", "Use this API to fetch all the clusterinstance resources that are configured on netscaler.", "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running", "Remove the S3 file that contains the domain controller data.\n\n@param directoryName the name of the directory that contains the S3 file", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Adds all direct subtypes to the given list.\n\n@param type The type for which to determine the direct subtypes\n@param subTypes The list to receive the subtypes", "Defers an event for processing in a later phase of the current\ntransaction.\n\n@param metadata The event object", "Joins the given ints using the given separator into a single string.\n\n@return the joined string or an empty string if the int array is null", "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter." ]
public static void log(String label, String data) { if (LOG != null) { LOG.write(label); LOG.write(": "); LOG.println(data); LOG.flush(); } }
[ "Log a string.\n\n@param label label text\n@param data string data" ]
[ "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Obtains a British Cutover zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Computes eigenvalues only\n\n@return", "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-volume\">sender</a>", "Assign FK value to target object by reading PK values of referenced object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.\n@param referencedObject referenced object or proxy\n@param insert Show if \"linking\" is done while insert or update.", "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value", "Delivers the correct JSON Object for the Bounds\n\n@param bounds\n@throws org.json.JSONException" ]
public static sslcertkey get(nitro_service service, String certkey) throws Exception{ sslcertkey obj = new sslcertkey(); obj.set_certkey(certkey); sslcertkey response = (sslcertkey) obj.get_resource(service); return response; }
[ "Use this API to fetch sslcertkey resource of given name ." ]
[ "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Checks if the dependency server is available\n\n@return true if the server is reachable, false otherwise", "symbol for filling padding position in output", "Summarizes balance for the given nodeId to PartitionCount.\n\n@param nodeIdToPartitionCount\n@param title for use in pretty string\n@return Pair: getFirst() is utility value to be minimized, getSecond() is\npretty summary string of balance", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null", "alert, prompt, and confirm behave as if the OK button is always clicked.", "Convert the Primavera string representation of a UUID into a Java UUID instance.\n\n@param value Primavera UUID\n@return Java UUID instance", "Creates a replica of the node with the new partitions list\n\n@param node The node whose replica we are creating\n@param partitionsList The new partitions list\n@return Replica of node with new partitions list" ]
public TransformersSubRegistration getHostRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS.append(HOST); return new TransformersSubRegistrationImpl(range, domain, address); }
[ "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry" ]
[ "Clear any custom configurations to Redwood\n@return this", "Specifies an input field to assign a value to. Crawljax first tries to match the found HTML\ninput element's id and then the name attribute.\n\n@param type\nthe type of input field\n@param identification\nthe locator of the input field\n@return an InputField", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Convenience wrapper for message parameters\n@param params\n@return", "Ask the specified player for a Folder menu for exploring its raw filesystem.\nThis is a request for unanalyzed items, so we do a typed menu request.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n@param folderId identifies the folder whose contents should be listed, use -1 to get the root folder\n\n@return the entries in the folder menu\n\n@throws Exception if there is a problem obtaining the menu", "Use this API to fetch the statistics of all gslbservice_stats resources that are configured on netscaler.", "Embeds the given SVG element into a new SVG element scaling the graphic to the given dimension and\napplying the given rotation.", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "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" ]
public static Properties getProps(Properties props, String name, Properties defaultProperties) { final String propString = props.getProperty(name); if (propString == null) return defaultProperties; String[] propValues = propString.split(","); if (propValues.length < 1) { throw new IllegalArgumentException("Illegal format of specifying properties '" + propString + "'"); } Properties properties = new Properties(); for (int i = 0; i < propValues.length; i++) { String[] prop = propValues[i].split("="); if (prop.length != 2) throw new IllegalArgumentException("Illegal format of specifying properties '" + propValues[i] + "'"); properties.put(prop[0], prop[1]); } return properties; }
[ "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" ]
[ "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the event class.\n\nFor example, suppose we have the following Event defined:\n\n```java\npublic class UserActivityEvent extends ActEvent<User> {\npublic UserActivityEvent(User user) {super(user);}\n}\n```\n\nAnd we have the following event handler defined:\n\n```java\n{@literal @}OnEvent\npublic void logUserLogin(UserActivityEvent event, long timestamp) {...}\n\n{@literal @}OnEvent\npublic void checkDuplicateLoginAttempts(UserActivityEvent, Object... args) {...}\n\n{@literal @}OnEvent\npublic void foo(UserActivityEvent event) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(new UserActivityEvent(user), System.currentTimeMills());\n```\n\nThe `foo(UserActivityEvent)` will not invoked because:\n\n* The parameter list `(UserActivityEvent, long)` does not match the declared\nargument list `(UserActivityEvent)`. Here the `String` in the parameter\nlist is taken out because it is used to indicate the event, instead of being\npassing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(UserActivityEvent, Object ...)` will\nbe invoked because it declares a varargs typed arguments, meaning it matches\nany parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "Resets all member fields that hold information about the revision that is\ncurrently being processed.", "Returns the compact tag records for all tags in the workspace.\n\n@param workspace The workspace or organization to find tags in.\n@return Request object", "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Serialize specified object to directory with specified name.\n\n@param directory write to\n@param name serialize object with specified name\n@param obj object to serialize\n@return number of bytes written to directory", "Retrieve all References\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true loading is forced even if cld differs." ]
public static List<Integer> getAllPartitions(AdminClient adminClient) { List<Integer> partIds = Lists.newArrayList(); partIds = Lists.newArrayList(); for(Node node: adminClient.getAdminClientCluster().getNodes()) { partIds.addAll(node.getPartitionIds()); } return partIds; }
[ "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster" ]
[ "Returns the latest change events, and clears them from the change stream listener.\n\n@return the latest change events.", "Creates a new SimpleMatrix with the specified DMatrixRMaj used as its internal matrix. This means\nthat the reference is saved and calls made to the returned SimpleMatrix will modify the passed in DMatrixRMaj.\n\n@param internalMat The internal DMatrixRMaj of the returned SimpleMatrix. Will be modified.", "Shutdown the server\n\n@throws Exception exception", "Initialization method.\n\n@param t1\n@param t2", "Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction\n\n@param path\nFilePath (relative to a root directory - cf. Node)\n@param originalFileName\nFileName\n@param fileFamily\nFile family (may be null). E.g.: \"daily report\"\n@param jobId\nJob Instance ID\n@param cnx\nthe DbConn to use.", "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", "Use this API to update inatparam.", "Retrieves a specific range of child items in this folder.\n\n@param offset the index of the first child item to retrieve.\n@param limit the maximum number of children to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of child items.", "this method will be invoked after methodToBeInvoked is invoked" ]
public static <T_Result, T_Source> List<T_Result> map(Collection<T_Source> source, Mapper<T_Result, T_Source> mapper) { List<T_Result> result = new LinkedList<T_Result>(); for (T_Source element : source) { result.add(mapper.map(element)); } return result; }
[ "Re-maps a provided collection.\n\n@param <T_Result>\ntype of result\n@param <T_Source>\ntype of source\n@param source\nfor mapping\n@param mapper\nelement mapper\n@return mapped source" ]
[ "Before closing the PersistenceBroker ensure that the session\ncache is cleared", "Gets the favorite entries corresponding to the currently displayed favorite widgets.\n\n@return the list of favorite entries", "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Launch Sample Activity residing in the same module", "Opens the jar, wraps any IOException.", "Set whether we should obtain color versions of waveforms and previews when they are available. This will only\naffect waveforms loaded after the setting has been changed. If this changes the setting, and we were running,\nstop and restart in order to flush and reload the correct waveform versions.\n\n@param preferColor if {@code true}, the full-color versions of waveforms will be requested, if {@code false}\nonly the older blue versions will be retrieved", "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values", "Template-and-Hook method for generating the url required by the jdbc driver\nto allow for modifying an existing database.", "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values" ]
public EventBus emit(EventObject event, Object... args) { return _emitWithOnceBus(eventContext(event, args)); }
[ "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the event class.\n\nFor example, suppose we have the following Event defined:\n\n```java\npublic class UserActivityEvent extends ActEvent<User> {\npublic UserActivityEvent(User user) {super(user);}\n}\n```\n\nAnd we have the following event handler defined:\n\n```java\n{@literal @}OnEvent\npublic void logUserLogin(UserActivityEvent event, long timestamp) {...}\n\n{@literal @}OnEvent\npublic void checkDuplicateLoginAttempts(UserActivityEvent, Object... args) {...}\n\n{@literal @}OnEvent\npublic void foo(UserActivityEvent event) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(new UserActivityEvent(user), System.currentTimeMills());\n```\n\nThe `foo(UserActivityEvent)` will not invoked because:\n\n* The parameter list `(UserActivityEvent, long)` does not match the declared\nargument list `(UserActivityEvent)`. Here the `String` in the parameter\nlist is taken out because it is used to indicate the event, instead of being\npassing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(UserActivityEvent, Object ...)` will\nbe invoked because it declares a varargs typed arguments, meaning it matches\nany parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener" ]
[ "Lift a Java Func2 to a Scala Function2\n\n@param f the function to lift\n\n@returns the Scala function", "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array.", "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data", "Returns the foreignkey to the specified table.\n\n@param name The name of the foreignkey\n@param tableName The name of the referenced table\n@return The foreignkey def or <code>null</code> if it does not exist", "Clear tmpData in subtree rooted in this node.", "2-D Perlin noise function.\n\n@param x X Value.\n@param y Y Value.\n@return Returns function's value at point xy.", "Creates an Odata filter string that can be used for filtering list results by tags.\n\n@param tagName the name of the tag. If not provided, all resources will be returned.\n@param tagValue the value of the tag. If not provided, only tag name will be filtered.\n@return the Odata filter to pass into list methods", "Construct a pretty string documenting progress for this batch plan thus\nfar.\n\n@return pretty string documenting progress" ]
protected Boolean getIgnoreExpirationDate() { Boolean isIgnoreExpirationDate = parseOptionalBooleanValue(m_configObject, JSON_KEY_IGNORE_EXPIRATION_DATE); return (null == isIgnoreExpirationDate) && (m_baseConfig != null) ? Boolean.valueOf(m_baseConfig.getGeneralConfig().getIgnoreExpirationDate()) : isIgnoreExpirationDate; }
[ "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found." ]
[ "Find all the values of the requested type.\n\n@param valueTypeToFind the type of the value to return.\n@param <T> the type of the value to find.\n@return the key, value pairs found.", "Extract definition records from the table and divide into groups.", "Send the started notification", "Add profile to database, return collection of profile data. Called when 'enter' is hit in the UI\ninstead of 'submit' button\n\n@param model\n@param name\n@return\n@throws Exception", "Obtains a database connection, retrying if necessary.\n@param connectionHandle\n@return A DB connection.\n@throws SQLException", "Use this API to update autoscaleprofile resources.", "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object", "Get the root path where the build is located, the project may be checked out to\na sub-directory from the root workspace location.\n\n@param globalEnv EnvVars to take the workspace from, if workspace is not found\nthen it is take from project.getSomeWorkspace()\n@return The location of the root of the Gradle build.\n@throws IOException\n@throws InterruptedException", "Sets the target translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator" ]
private void processWorkWeeks(byte[] data, int offset, ProjectCalendar cal) { // System.out.println("Calendar=" + cal.getName()); // System.out.println("Work week block start offset=" + offset); // System.out.println(ByteArrayHelper.hexdump(data, true, 16, "")); // skip 4 byte header offset += 4; while (data.length >= offset + ((7 * 60) + 2 + 2 + 8 + 4)) { //System.out.println("Week start offset=" + offset); ProjectCalendarWeek week = cal.addWorkWeek(); for (Day day : Day.values()) { // 60 byte block per day processWorkWeekDay(data, offset, week, day); offset += 60; } Date startDate = DateHelper.getDayStartDate(MPPUtility.getDate(data, offset)); offset += 2; Date finishDate = DateHelper.getDayEndDate(MPPUtility.getDate(data, offset)); offset += 2; // skip unknown 8 bytes //System.out.println(ByteArrayHelper.hexdump(data, offset, 8, false)); offset += 8; // // Extract the name length - ensure that it is aligned to a 4 byte boundary // int nameLength = MPPUtility.getInt(data, offset); if (nameLength % 4 != 0) { nameLength = ((nameLength / 4) + 1) * 4; } offset += 4; if (nameLength != 0) { String name = MPPUtility.getUnicodeString(data, offset, nameLength); offset += nameLength; week.setName(name); } week.setDateRange(new DateRange(startDate, finishDate)); // System.out.println(week); } }
[ "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar" ]
[ "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", "AND operation which takes the previous clause and the next clause and AND's them together.", "Dump the contents of a row from an MPD file.\n\n@param row row data", "Initialization method.\n\n@param t1\n@param t2", "Send a kill signal to all running instances and return as soon as the signal is sent.", "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches.", "Gets an element of the matrix.\n\n@param row\nthe row\n@param col\nthe column\n@return the element at the given position", "This returns all profiles associated with a server name\n\n@param serverName server Name\n@return profile UUID\n@throws Exception exception", "Creates the DAO if we have config information cached and caches the DAO." ]
protected void updateModel(final ModelNode operation, final Resource resource) throws OperationFailedException { updateModel(operation, resource.getModel()); }
[ "Update the given resource in the persistent configuration model based on the values in the given operation.\n\n@param operation the operation\n@param resource the resource that corresponds to the address of {@code operation}\n\n@throws OperationFailedException if {@code operation} is invalid or populating the model otherwise fails" ]
[ "To use main report datasource. There should be nothing else in the detail band\n@param preSorted\n@return", "Adds descriptions to the item.\n\n@param descriptions\nthe descriptions to add", "Use this API to unlink sslcertkey.", "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the event class.\n\nFor example, suppose we have the following Event defined:\n\n```java\npublic class UserActivityEvent extends ActEvent<User> {\npublic UserActivityEvent(User user) {super(user);}\n}\n```\n\nAnd we have the following event handler defined:\n\n```java\n{@literal @}OnEvent\npublic void logUserLogin(UserActivityEvent event, long timestamp) {...}\n\n{@literal @}OnEvent\npublic void checkDuplicateLoginAttempts(UserActivityEvent, Object... args) {...}\n\n{@literal @}OnEvent\npublic void foo(UserActivityEvent event) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(new UserActivityEvent(user), System.currentTimeMills());\n```\n\nThe `foo(UserActivityEvent)` will not invoked because:\n\n* The parameter list `(UserActivityEvent, long)` does not match the declared\nargument list `(UserActivityEvent)`. Here the `String` in the parameter\nlist is taken out because it is used to indicate the event, instead of being\npassing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(UserActivityEvent, Object ...)` will\nbe invoked because it declares a varargs typed arguments, meaning it matches\nany parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation.", "Resets the calendar", "capture center eye", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "List app dynos for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used." ]
void endIfStarted(CodeAttribute b, ClassMethod method) { b.aload(getLocalVariableIndex(0)); b.dup(); final BranchEnd ifnotnull = b.ifnull(); b.checkcast(Stack.class); b.invokevirtual(Stack.class.getName(), END_INTERCEPTOR_CONTEXT_METHOD_NAME, EMPTY_PARENTHESES + VOID_CLASS_DESCRIPTOR); BranchEnd ifnull = b.gotoInstruction(); b.branchEnd(ifnotnull); b.pop(); // remove null Stack b.branchEnd(ifnull); }
[ "Ends interception context if it was previously stated. This is indicated by a local variable with index 0." ]
[ "Gets the default configuration for Freemarker within Windup.", "Get a fallback handler.\n\n@param header the protocol header\n@return the fallback handler", "This method can be used by child classes to apply the configuration that is stored in config.", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "Traces the time taken just by the fat client inside Coordinator to\nprocess this request\n\n\n@param operationType\n@param OriginTimeInMs - Original request time in Http Request\n@param RequestStartTimeInMs - Time recorded just before fat client\nstarted processing\n@param ResponseReceivedTimeInMs - Time when Response was received from\nfat client\n@param keyString - Hex denotation of the key(s)\n@param numVectorClockEntries - represents the sum of entries size of all\nvector clocks received in response. Size of a single vector clock\nrepresents the number of entries(nodes) in the vector", "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", "Returns the overtime cost of this resource assignment.\n\n@return cost", "Build a compact representation of the ModelNode.\n@param node The model\n@return A single line containing the multi lines ModelNode.toString() content.", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance" ]
public static HashMap<StoreDefinition, Integer> getUniqueStoreDefinitionsWithCounts(List<StoreDefinition> storeDefs) { HashMap<StoreDefinition, Integer> uniqueStoreDefs = Maps.newHashMap(); for(StoreDefinition storeDef: storeDefs) { if(uniqueStoreDefs.isEmpty()) { uniqueStoreDefs.put(storeDef, 1); } else { StoreDefinition sameStore = null; // Go over all the other stores to find if this is unique for(StoreDefinition uniqueStoreDef: uniqueStoreDefs.keySet()) { if(uniqueStoreDef.getReplicationFactor() == storeDef.getReplicationFactor() && uniqueStoreDef.getRoutingStrategyType() .compareTo(storeDef.getRoutingStrategyType()) == 0) { // Further check for the zone routing case if(uniqueStoreDef.getRoutingStrategyType() .compareTo(RoutingStrategyType.ZONE_STRATEGY) == 0) { boolean zonesSame = true; for(int zoneId: uniqueStoreDef.getZoneReplicationFactor().keySet()) { if(storeDef.getZoneReplicationFactor().get(zoneId) == null || storeDef.getZoneReplicationFactor().get(zoneId) != uniqueStoreDef.getZoneReplicationFactor() .get(zoneId)) { zonesSame = false; break; } } if(zonesSame) { sameStore = uniqueStoreDef; } } else { sameStore = uniqueStoreDef; } if(sameStore != null) { // Bump up the count int currentCount = uniqueStoreDefs.get(sameStore); uniqueStoreDefs.put(sameStore, currentCount + 1); break; } } } if(sameStore == null) { // New store uniqueStoreDefs.put(storeDef, 1); } } } return uniqueStoreDefs; }
[ "Given a list of store definitions, find out and return a map of similar\nstore definitions + count of them\n\n@param storeDefs All store definitions\n@return Map of a unique store definition + counts" ]
[ "Marks a given list of statements for insertion into the current document.\nInserted statements can have an id if they should update an existing\nstatement, or use an empty string as id if they should be added. The\nmethod removes duplicates and avoids unnecessary modifications by\nchecking the current content of the given document before marking\nstatements for being written.\n\n@param currentDocument\nthe document with the current statements\n@param addStatements\nthe list of new statements to be added", "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\".", "If a text contains double quotes, escape them.\n\n@param text the text to escape\n@return Escaped text or {@code null} if the text is null", "Process each regex group matched substring of the given string. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source string\n@param regex a Regex string\n@param closure a closure with one parameter or as much parameters as groups\n@return the source string\n@since 1.6.0", "Leave a group.\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.leave.html\">lickr.groups.leave</a> for a description of the various behaviors possible\nwhen a user leaves a group.\n\n@param groupId\n- the id of the group to leave\n@param deletePhotos\n- delete photos by this user from group", "Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+1.", "This will create a line in the SDEF file for each calendar\nif there are more than 9 calendars, you'll have a big error,\nas USACE numbers them 0-9.\n\n@param records list of ProjectCalendar instances", "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates", "Set HTTP headers to allow caching for the given number of seconds.\n\n@param response where to set the caching settings\n@param seconds number of seconds into the future that the response should be cacheable for" ]
public RgbaColor opacify(float amount) { return new RgbaColor(r, g, b, alphaCheck(a + amount)); }
[ "Returns a new color that has the alpha adjusted by the\nspecified amount." ]
[ "Stops the processing and prints the final time.", "Use to generate a file based on generator node.", "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception", "Adds the worker thread pool attributes to the subysystem add method", "Tests an observer method to see if it is transactional.\n\n@param observer The observer method\n@return true if the observer method is annotated as transactional", "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception", "Produces the Soundex key for the given string.", "at this point definition below is not really needed as it is the same as for 1.1, but it is here as place holder when subsystem parser evolves.", "Split a module Id to get the module name\n@param moduleId\n@return String" ]
public static String insertDumpInformation(String pattern, String dateStamp, String project) { if (pattern == null) { return null; } else { return pattern.replace("{DATE}", dateStamp).replace("{PROJECT}", project); } }
[ "Inserts the information about the dateStamp of a dump and the project\nname into a pattern.\n\n@param pattern\nString with wildcards\n@param dateStamp\n@param project\n@return String with injected information." ]
[ "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Set trimmed value.\n\n@param t Trimmed value.", "Load physics information for the current avatar\n@param filename name of physics file\n@param scene scene the avatar is part of\n@throws IOException if physics file cannot be parsed", "Build copyright map once.", "Performs case-sensitive depth-first search for a child object and then\nremoves it if found.\n\n@param name name of scene object to be removed.\n\n@return true if child was found (and removed), else false", "Creates an immutable copy that we can cache.", "Retrieve the document with the specified ID from the database and deserialize to an\ninstance of the POJO of type T.\n\n@param <T> object type\n@param classType the class of type T\n@param id the document id\n@return an object of type T\n@throws NoDocumentException if the document is not found in the database\n@see #find(Class, String, String)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/document.html#read\"\ntarget=\"_blank\">Documents - read</a>", "Additional objects to include with the requested group.\nNote that all the optional includes depend on \"assignments\" also being included.\n@param includes List of included objects to return\n@return this object to continue building options", "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length" ]
private int findIndexForName(String[] fieldNames, String searchName) { for(int i = 0; i < fieldNames.length; i++) { if(searchName.equals(fieldNames[i])) { return i; } } throw new PersistenceBrokerException("Can't find field name '" + searchName + "' in given array of field names"); }
[ "Find the index of the specified name in field name array." ]
[ "Calculate start dates for a monthly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resource.\n@param <T> the return type of the caller.\n@return the observable of which a subscription will lead to a final response.", "Returns the Euclidean distance between this vector and vector v.\n\n@return distance between this vector and v", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "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", "Extracts the words from a string. Words are seperated by a space character.\n\n@param line The line that is being parsed.\n@return A list of words contained on the line.", "Formats a connection string for CLI to use as it's controller connection.\n\n@return the controller string to connect CLI", "Fetch flag resource by Country\n\n@param country Country\n@return int of resource | 0 value if not exists", "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position." ]
public GroovyClassDoc[] innerClasses() { Collections.sort(nested); return nested.toArray(new GroovyClassDoc[nested.size()]); }
[ "returns a sorted array of nested classes and interfaces" ]
[ "Stops the current debug server. Active connections are\nnot affected.", "Updates the Q matrix to take inaccount the row that was removed by only multiplying e\nlements that need to be. There is still some room for improvement here...\n@param rowIndex", "Use this API to add cmppolicylabel.", "Use this API to clear nssimpleacl.", "Extract note text.\n\n@param row task data\n@return note text", "Gets the property and casts to the appropriate type\n\n@param <T>\n@param key The property name\n@param type The property type\n@return The value of the property", "Get list of Jobs from a queue.\n\n@param jedis\n@param queueName\n@param jobOffset\n@param jobCount\n@return", "Adds a command class to the list of supported command classes by this\nendpoint. Does nothing if command class is already added.\n@param commandClass the command class instance to add.", "OJB can handle only classes that declare at least one primary key attribute,\nthis method checks this condition.\n\n@param realObject The real object to check\n@throws ClassNotPersistenceCapableException thrown if no primary key is specified for the objects class" ]
public void logException(Level level) { if (!LOG.isLoggable(level)) { return; } final StringBuilder builder = new StringBuilder(); builder.append("\n----------------------------------------------------"); builder.append("\nMonitoringException"); builder.append("\n----------------------------------------------------"); builder.append("\nCode: ").append(code); builder.append("\nMessage: ").append(message); builder.append("\n----------------------------------------------------"); if (events != null) { for (Event event : events) { builder.append("\nEvent:"); if (event.getMessageInfo() != null) { builder.append("\nMessage id: ").append(event.getMessageInfo().getMessageId()); builder.append("\nFlow id: ").append(event.getMessageInfo().getFlowId()); builder.append("\n----------------------------------------------------"); } else { builder.append("\nNo message id and no flow id"); } } } builder.append("\n----------------------------------------------------\n"); LOG.log(level, builder.toString(), this); }
[ "Prints the error message as log message.\n\n@param level the log level" ]
[ "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "Locate the no arg constructor for the class.", "Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.", "Gets the data handler from event.\n\n@param event the event\n@return the data handler", "Returns the default jdbc type for the given java type.\n\n@param javaType The qualified java type\n@return The default jdbc type", "Computes eigenvalues only\n\n@return", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "Convert an Object to a Timestamp.", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException" ]
private boolean checkZoneRequirement(HashMap<Integer, Integer> requiredRepFactor, int zoneId) { if(requiredRepFactor.containsKey(zoneId)) { if(requiredRepFactor.get(zoneId) == 0) { return false; } else { requiredRepFactor.put(zoneId, requiredRepFactor.get(zoneId) - 1); return true; } } return false; }
[ "Check if we still need more nodes from the given zone and reduce the\nzoneReplicationFactor count accordingly.\n\n@param requiredRepFactor\n@param zoneId\n@return" ]
[ "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "Returns true if all pixels in the array have the same color", "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", "Returns a new List containing the given objects.", "Accessor method used to retrieve a Number instance representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Use this API to enable Interface resources of given names.", "Retrieve a value from the map, ensuring that a key exists in the map\nwith the specified name.\n\n@param name column name\n@return column value", "Use this API to update responderparam.", "Executes a query using the given parameters. The query results will be added to the\nExecutionResults using the given identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@param arguments\nThe arguments to be used for the query parameters\n@return" ]
private void addTransformInterceptors(List<Interceptor<?>> inInterceptors, List<Interceptor<?>> outInterceptors, boolean newClient) { // The old service expects the Customer data be qualified with // the 'http://customer/v1' namespace. // The new service expects the Customer data be qualified with // the 'http://customer/v2' namespace. // If it is an old client talking to the new service then: // - the out transformation interceptor is configured for // 'http://customer/v1' qualified data be transformed into // 'http://customer/v2' qualified data. // - the in transformation interceptor is configured for // 'http://customer/v2' qualified response data be transformed into // 'http://customer/v1' qualified data. // If it is a new client talking to the old service then: // - the out transformation interceptor is configured for // 'http://customer/v2' qualified data be transformed into // 'http://customer/v1' qualified data. // - the in transformation interceptor is configured for // 'http://customer/v1' qualified response data be transformed into // 'http://customer/v2' qualified data. // - new Customer type also introduces a briefDescription property // which needs to be dropped for the old service validation to succeed // this configuration can be provided externally Map<String, String> newToOldTransformMap = new HashMap<String, String>(); newToOldTransformMap.put("{http://customer/v2}*", "{http://customer/v1}*"); Map<String, String> oldToNewTransformMap = Collections.singletonMap("{http://customer/v1}*", "{http://customer/v2}*"); TransformOutInterceptor outTransform = new TransformOutInterceptor(); outTransform.setOutTransformElements(newClient ? newToOldTransformMap : oldToNewTransformMap); if (newClient) { newToOldTransformMap.put("{http://customer/v2}briefDescription", ""); //outTransform.setOutDropElements( // Collections.singletonList("{http://customer/v2}briefDescription")); } TransformInInterceptor inTransform = new TransformInInterceptor(); inTransform.setInTransformElements(newClient ? oldToNewTransformMap : newToOldTransformMap); inInterceptors.add(inTransform); outInterceptors.add(outTransform); }
[ "Prepares transformation interceptors for a client.\n\n@param clientConfig the client configuration\n@param newClient indicates if it is a new/updated client" ]
[ "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Returns the adapter position of the Parent associated with this ParentViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Curries a function that takes four arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes three arguments. Never <code>null</code>." ]
@Override public Integer getPrefixLengthForSingleBlock() { int count = getDivisionCount(); int totalPrefix = 0; for(int i = 0; i < count; i++) { AddressDivisionBase div = getDivision(i); Integer divPrefix = div.getPrefixLengthForSingleBlock(); if(divPrefix == null) { return null; } totalPrefix += divPrefix; if(divPrefix < div.getBitCount()) { //remaining segments must be full range or we return null for(i++; i < count; i++) { AddressDivisionBase laterDiv = getDivision(i); if(!laterDiv.isFullRange()) { return null; } } } } return cacheBits(totalPrefix); }
[ "Returns a prefix length for which the range of this segment grouping matches the the block of addresses for that prefix.\n\nIf no such prefix exists, returns null\n\nIf this segment grouping represents a single value, returns the bit length\n\n@return the prefix length or null" ]
[ "Removes a tag from the resource.\n@param key the key of the tag to remove\n@return the next stage of the definition/update", "Log original response\n\n@param httpServletResponse\n@param history\n@throws URIException", "This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException", "Method used to read the sub project details from a byte array.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset\n@return new SubProject instance", "Refresh's this connection's access token using Box Developer Edition.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "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.", "Load an animation for the current avatar.\n@param animResource resource with the animation\n@param boneMap optional bone map to map animation skeleton to avatar", "Returns the compact tag records for all tags in the workspace.\n\n@param workspace The workspace or organization to find tags in.\n@return Request object", "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" ]
@SuppressWarnings("unchecked") public static void executeCommand(String[] args) throws IOException { OptionParser parser = getParser(); // declare parameters List<String> metaKeys = null; String url = null; List<Integer> nodeIds = null; Boolean allNodes = true; List<String> storeNames = null; // parse command-line input args = AdminToolUtils.copyArrayAddFirst(args, "--" + OPT_HEAD_META_GET_RO); OptionSet options = parser.parse(args); if(options.has(AdminParserUtils.OPT_HELP)) { printHelp(System.out); return; } // check required options and/or conflicting options AdminParserUtils.checkRequired(options, OPT_HEAD_META_GET_RO); AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL); AdminParserUtils.checkOptional(options, AdminParserUtils.OPT_NODE, AdminParserUtils.OPT_ALL_NODES); AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_STORE); // load parameters metaKeys = (List<String>) options.valuesOf(OPT_HEAD_META_GET_RO); url = (String) options.valueOf(AdminParserUtils.OPT_URL); if(options.has(AdminParserUtils.OPT_NODE)) { nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE); allNodes = false; } storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE); // execute command AdminClient adminClient = AdminToolUtils.getAdminClient(url); if(allNodes) { nodeIds = AdminToolUtils.getAllNodeIds(adminClient); } if(metaKeys.size() == 1 && metaKeys.get(0).equals(METAKEY_ALL)) { metaKeys = Lists.newArrayList(); metaKeys.add(KEY_MAX_VERSION); metaKeys.add(KEY_CURRENT_VERSION); metaKeys.add(KEY_STORAGE_FORMAT); } doMetaGetRO(adminClient, nodeIds, storeNames, metaKeys); }
[ "Parses command-line and gets read-only metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
[ "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2.", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "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", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus.", "Registers a new site for specific data collection. If null is used as a\nsite key, then all data is collected.\n\n@param siteKey\nthe site to collect geo data for", "Parses a String email address to an IMAP address string.", "Use this API to fetch all the systementitydata resources that are configured on netscaler.\nThis uses systementitydata_args which is a way to provide additional arguments while fetching the resources.", "Retrieve list of task extended attributes.\n\n@return list of extended attributes", "Returns iterable with all enterprise assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all enterprise assignments." ]
public void detachMetadataCache(SlotReference slot) { MetadataCache oldCache = metadataCacheFiles.remove(slot); if (oldCache != null) { try { oldCache.close(); } catch (IOException e) { logger.error("Problem closing metadata cache", e); } deliverCacheUpdate(slot, null); } }
[ "Removes any metadata cache file that might have been assigned to a particular player media slot, so metadata\nwill be looked up from the player itself.\n\n@param slot the media slot to which a meta data cache is to be attached" ]
[ "Builds a configuration object based on given properties.\n\n@param properties the properties.\n@return a configuration and never null.", "Check whether the URL start with one of the given prefixes.\n\n@param uri URI\n@param patterns possible prefixes\n@return true when URL starts with one of the prefixes", "Use this API to update Interface.", "Logs binary string as hexadecimal", "To populate the dropdown list from the jelly", "Serialize a map of objects to a JSON String.\n\n@param map The map of objects to serialize.\n@param jsonObjectClass The @JsonObject class of the list elements", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return", "Curries a function that takes four arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes three arguments. Never <code>null</code>.", "Removing surrounding space in image. Get trim color from specified pixel.\n@param value orientation from where to get the pixel color.\n@param colorTolerance 0 - 442. This is the euclidian distance\nbetween the colors of the reference pixel and the surrounding pixels is used.\nIf the distance is within the tolerance they'll get trimmed." ]
private void readResource(net.sf.mpxj.ganttproject.schema.Resource gpResource) { Resource mpxjResource = m_projectFile.addResource(); mpxjResource.setUniqueID(Integer.valueOf(NumberHelper.getInt(gpResource.getId()) + 1)); mpxjResource.setName(gpResource.getName()); mpxjResource.setEmailAddress(gpResource.getContacts()); mpxjResource.setText(1, gpResource.getPhone()); mpxjResource.setGroup(m_roleDefinitions.get(gpResource.getFunction())); net.sf.mpxj.ganttproject.schema.Rate gpRate = gpResource.getRate(); if (gpRate != null) { mpxjResource.setStandardRate(new Rate(gpRate.getValueAttribute(), TimeUnit.DAYS)); } readResourceCustomFields(gpResource, mpxjResource); m_eventManager.fireResourceReadEvent(mpxjResource); }
[ "This method extracts data for a single resource from a GanttProject file.\n\n@param gpResource resource data" ]
[ "Checks if the specified max levels is correct.\n\n@param userMaxLevels the maximum number of levels in the tree\n@param defaultMaxLevels the default max number of levels\n@return the validated max levels", "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "Added in Gerrit 2.11.", "Obtain the class of a given className\n\n@param className\n@return\n@throws Exception", "Use this API to delete sslfipskey of given name.", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id." ]
public static <T> ConflictHandler<T> localWins() { return new ConflictHandler<T>() { @Override public T resolveConflict( final BsonValue documentId, final ChangeEvent<T> localEvent, final ChangeEvent<T> remoteEvent ) { return localEvent.getFullDocument(); } }; }
[ "The local event will decide the next state of the document in question.\n\n@param <T> the type of class represented by the document in the change event.\n@return the local full document which may be null." ]
[ "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "Sanity checks the input or declares a new matrix. Return matrix is an identity matrix.", "Reorder the objects in the table to resolve referential integrity dependencies.", "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>", "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Sets the background color of the scene rendered by this camera.\n\nIf you don't set the background color, the default is an opaque black.\nMeaningful parameter values are from 0 to 1, inclusive: values\n{@literal < 0} are clamped to 0; values {@literal > 1} are clamped to 1.", "Adds a new role to the list of defined roles.\n\n@param roleName - The name of the role being added.", "Sets the background color of the scene rendered by this camera.\n\nIf you don't set the background color, the default is an opaque black.\nMeaningful parameter values are from 0 to 1, inclusive: values\n{@literal < 0} are clamped to 0; values {@literal > 1} are clamped to 1." ]
public EventBus emitSync(Enum<?> event, Object... args) { return _emitWithOnceBus(eventContextSync(event, args)); }
[ "Emit an enum event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(Enum, Object...)" ]
[ "Main file parser. Reads GIF content blocks. Stops after reading maxFrames", "Returns a map of all variables in scope.\n@return map of all variables in scope.", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Stop offering shared dbserver sessions.", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Returns the end time of the event.\n@return the end time of the event.", "Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1.\n\n@param views\n@deprecated attribute no longer available", "Use this API to fetch all the systemuser resources that are configured on netscaler." ]
private void createFieldMap(byte[] data) { int index = 0; int lastDataBlockOffset = 0; int dataBlockIndex = 0; while (index < data.length) { long mask = MPPUtility.getInt(data, index + 0); //mask = mask << 4; int dataBlockOffset = MPPUtility.getShort(data, index + 4); //int metaFlags = MPPUtility.getByte(data, index + 8); FieldType type = getFieldType(MPPUtility.getInt(data, index + 12)); int category = MPPUtility.getShort(data, index + 20); //int sizeInBytes = MPPUtility.getShort(data, index + 22); //int metaIndex = MPPUtility.getInt(data, index + 24); // // Categories // // 02 - Short values [RATE_UNITS, WORKGROUP, ACCRUE, TIME_UNITS, PRIORITY, TASK_TYPE, CONSTRAINT, ACCRUE, PERCENTAGE, SHORT, WORK_UNITS] - BOOKING_TYPE, EARNED_VALUE_METHOD, DELIVERABLE_TYPE, RESOURCE_REQUEST_TYPE - we have as string in MPXJ???? // 03 - Int values [DURATION, INTEGER] - Recalc outline codes as Boolean? // 05 - Rate, Number [RATE, NUMERIC] // 08 - String (and some durations!!!) [STRING, DURATION] // 0B - Boolean (meta block 0?) - [BOOLEAN] // 13 - Date - [DATE] // 48 - GUID - [GUID] // 64 - Boolean (meta block 1?)- [BOOLEAN] // 65 - Work, Currency [WORK, CURRENCY] // 66 - Units [UNITS] // 1D - Raw bytes [BINARY, ASCII_STRING] - Exception: outline code indexes, they are integers, but stored as part of a binary block int varDataKey; if (useTypeAsVarDataKey()) { Integer substitute = substituteVarDataKey(type); if (substitute == null) { varDataKey = (MPPUtility.getInt(data, index + 12) & 0x0000FFFF); } else { varDataKey = substitute.intValue(); } } else { varDataKey = MPPUtility.getByte(data, index + 6); } FieldLocation location; int metaBlock; switch (category) { case 0x0B: { location = FieldLocation.META_DATA; metaBlock = 0; break; } case 0x64: { location = FieldLocation.META_DATA; metaBlock = 1; break; } default: { metaBlock = 0; if (dataBlockOffset != 65535) { location = FieldLocation.FIXED_DATA; if (dataBlockOffset < lastDataBlockOffset) { ++dataBlockIndex; } lastDataBlockOffset = dataBlockOffset; int typeSize = getFixedDataFieldSize(type); if (dataBlockOffset + typeSize > m_maxFixedDataSize[dataBlockIndex]) { m_maxFixedDataSize[dataBlockIndex] = dataBlockOffset + typeSize; } } else { if (varDataKey != 0) { location = FieldLocation.VAR_DATA; } else { location = FieldLocation.UNKNOWN; } } break; } } FieldItem item = new FieldItem(type, location, dataBlockIndex, dataBlockOffset, varDataKey, mask, metaBlock); if (m_debug) { System.out.println(ByteArrayHelper.hexdump(data, index, 28, false) + " " + item + " mpxjDataType=" + item.getType().getDataType() + " index=" + index); } m_map.put(type, item); index += 28; } }
[ "Generic method used to create a field map from a block of data.\n\n@param data field map data" ]
[ "Finds out which dump files of the given type have been downloaded\nalready. The result is a list of objects that describe the available dump\nfiles, in descending order by their date. Not all of the dumps included\nmight be actually available.\n\n@param dumpContentType\nthe type of dump to consider\n@return list of objects that provide information on available dumps", "Print a time value.\n\n@param value time value\n@return time value", "Creates a server setup based on provided properties.\n\n@param properties the properties.\n@return the server setup, or an empty array.", "except for the ones that make the content appear under the system bars.", "Dumps all properties of a material to stdout.\n\n@param material the material", "Sets up and declares internal data structures.\n\n@param diag Diagonal elements from tridiagonal matrix. Modified.\n@param off Off diagonal elements from tridiagonal matrix. Modified.\n@param numCols number of columns (and rows) in the matrix.", "Return a string that ensures that no line is longer then 512 characters\nand lines are broken according to manifest specification.\n\n@param input The buffer containing the content that should be made safe\n@param newline The string to use to create newlines (usually \"\\n\" or\n\"\\r\\n\")\n@return The string with no longer lines then 512, ready to be read again\nby {@link MergeableManifest2}.", "Use this API to update sslcertkey.", "Put object to session cache.\n\n@param oid The {@link org.apache.ojb.broker.Identity} of the object to cache\n@param entry The {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.CacheEntry} of the object\n@param onlyIfNew Flag, if set <em>true</em> only new objects (not already in session cache) be cached." ]
public static CombinedInterceptorAndDecoratorStackMethodHandler peekIfNotEmpty() { Stack stack = interceptionContexts.get(); if (stack == null) { return null; } return stack.peek(); }
[ "Peeks the current top of the stack or returns null if the stack is empty\n@return the current top of the stack or returns null if the stack is empty" ]
[ "Creates a new instance of this class.\n\n@param variableName\nname of the instance variable to search aliases for. Must\nneither be {@code null} nor empty.\n@param controlFlowBlockToExamine\na {@link ControlFlowBlock} which possibly contains the setup\nof an alias for a lazy variable. This method thereby examines\npredecessors of {@code block}, too. This parameter must not be\n{@code null}.\n@return a new instance of this class.", "Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if\nthe users are not already members of the project they will also become members as a result of this operation.\nReturns the updated project record.\n\n@param project The project to add followers to.\n@return Request object", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Use this API to disable Interface of given name.", "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Returns a new color that has the alpha adjusted by the\nspecified amount.", "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "Set the attributes for this template.\n\n@param attributes the attribute map" ]
public static InterceptorFactory getInstance() { if (instance == null) { instance = new InterceptorFactory(); OjbConfigurator.getInstance().configure(instance); } return instance; }
[ "Returns the instance.\n@return InterceptorFactory" ]
[ "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Validates the input parameters.", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "Specify the output format of the image.\n\n@see ImageFormat", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "Get logs for an app by specifying additional parameters.\n@param logRequest See {LogRequestBuilder}\n@return log stream response" ]
protected final boolean isGLThread() { final Thread glThread = sGLThread.get(); return glThread != null && glThread.equals(Thread.currentThread()); }
[ "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread." ]
[ "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Returns all tags that designate this tag. E.g., for \"tesla-model3\", this would return \"car\", \"vehicle\", \"vendor-tesla\" etc.", "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters.", "Gets the health memory.\n\n@return the health memory", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Updates the terms and statements of the current document.\nThe updates are computed with respect to the current data in the document,\nmaking sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param currentDocument\nthe document to be updated; needs to have a correct revision id and\nentity id\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Adds the given value to the set.\n\n@return true if the value was actually new", "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" ]
@SuppressWarnings("deprecation") public BUILDER addAccessConstraint(final AccessConstraintDefinition accessConstraint) { if (accessConstraints == null) { accessConstraints = new AccessConstraintDefinition[] {accessConstraint}; } else { accessConstraints = Arrays.copyOf(accessConstraints, accessConstraints.length + 1); accessConstraints[accessConstraints.length - 1] = accessConstraint; } return (BUILDER) this; }
[ "Adds an access constraint to the set used with the attribute\n@param accessConstraint the constraint\n@return a builder that can be used to continue building the attribute definition" ]
[ "Allocate a timestamp", "Old REST client uses old REST service", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Generates an artifact regarding the parameters.\n\n<P> <b>WARNING:</b> The parameters grId/arId/version should be filled!!! Only classifier and type are not mandatory.\n\n@param groupId String\n@param artifactId String\n@param version String\n@param classifier String\n@param type String\n@param extension String\n@return Artifact", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean", "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", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "Sets the target translator for all cells in the table.\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", "Checks to see if another AbstractTransition's states is isCompatible for merging.\n\n@param another\n@return" ]
void registerAlias(FieldType type, String alias) { m_aliasMap.put(new Pair<FieldTypeClass, String>(type.getFieldTypeClass(), alias), type); }
[ "When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias" ]
[ "Will create a JNDI Context and register it as the initial context factory builder\n\n@return the context\n@throws NamingException\non any issue during initial context factory builder registration", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Returns true if required properties for FluoClient are set", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance", "Checks that index is valid an throw an exception if not.\n\n@param type the type\n@param index the index to check", "Checks if the InputStream have the text\n\n@param in InputStream to read\n@param text Text to check\n@return whether the inputstream has the text" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher cancelPendingRequests() { if (pendingRequests.size() != 0) { for (int i = 0; i < pendingRequests.size(); i++) { int reqId = pendingRequests.keyAt(i); Request r = pendingRequests.valueAt(i); if (!r.isFinished() && !r.isCancelled()) { cancelRequest(r, reqId); } } } return this; }
[ "Cancels all requests still waiting for a response.\n\n@return this {@link Searcher} for chaining." ]
[ "Performs a HTTP DELETE request.\n\n@return {@link Response}", "Extracts the zip file to the output folder\n\n@param zipFile ZIP File to extract\n@param outputFolder Output Folder\n@return A Collection with the extracted files\n@throws IOException I/O Error", "Gets the Square Euclidean distance between two points.\n\n@param x A point in space.\n@param y A point in space.\n@return The Square Euclidean distance between x and y.", "Read configuration from zookeeper", "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Send a tempo changed announcement to all registered master listeners.\n\n@param tempo the new master tempo", "Used by TracedParallelBatch where its used to wrap a TraceContext and puts it in the\nregistry for the forked execution. This is marked deprecated as we prefer not to\nexpose details of the RatpackCurrentTraceContext implementation.\n\n@param traceContext a trace context.\n@return a holder for the trace context, which can be put into the registry." ]
public final void cancelOld( final long starttimeThreshold, final long checkTimeThreshold, final String message) { final CriteriaBuilder builder = getSession().getCriteriaBuilder(); final CriteriaUpdate<PrintJobStatusExtImpl> update = builder.createCriteriaUpdate(PrintJobStatusExtImpl.class); final Root<PrintJobStatusExtImpl> root = update.from(PrintJobStatusExtImpl.class); update.where(builder.and( builder.equal(root.get("status"), PrintJobStatus.Status.WAITING), builder.or( builder.lessThan(root.get("entry").get("startTime"), starttimeThreshold), builder.and(builder.isNotNull(root.get("lastCheckTime")), builder.lessThan(root.get("lastCheckTime"), checkTimeThreshold)) ) )); update.set(root.get("status"), PrintJobStatus.Status.CANCELLED); update.set(root.get("error"), message); getSession().createQuery(update).executeUpdate(); }
[ "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message" ]
[ "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value", "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Returns the total number of times the app has been launched\n@return Total number of app launches in int", "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value", "Return the releaseId\n\n@return releaseId", "Reads a time value. The time is represented as tenths of a\nminute since midnight.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Apply the matching client UUID for the request\n\n@param httpServletRequest\n@param history", "Obtains a Coptic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Resize the mesh to given size for each axis.\n\n@param mesh Mesh to be resized.\n@param xsize Size for x-axis.\n@param ysize Size for y-axis.\n@param zsize Size fof z-axis." ]
public int getJdbcType(String ojbType) throws SQLException { int result; if(ojbType == null) ojbType = ""; ojbType = ojbType.toLowerCase(); if (ojbType.equals("bit")) result = Types.BIT; else if (ojbType.equals("tinyint")) result = Types.TINYINT; else if (ojbType.equals("smallint")) result = Types.SMALLINT; else if (ojbType.equals("integer")) result = Types.INTEGER; else if (ojbType.equals("bigint")) result = Types.BIGINT; else if (ojbType.equals("float")) result = Types.FLOAT; else if (ojbType.equals("real")) result = Types.REAL; else if (ojbType.equals("double")) result = Types.DOUBLE; else if (ojbType.equals("numeric")) result = Types.NUMERIC; else if (ojbType.equals("decimal")) result = Types.DECIMAL; else if (ojbType.equals("char")) result = Types.CHAR; else if (ojbType.equals("varchar")) result = Types.VARCHAR; else if (ojbType.equals("longvarchar")) result = Types.LONGVARCHAR; else if (ojbType.equals("date")) result = Types.DATE; else if (ojbType.equals("time")) result = Types.TIME; else if (ojbType.equals("timestamp")) result = Types.TIMESTAMP; else if (ojbType.equals("binary")) result = Types.BINARY; else if (ojbType.equals("varbinary")) result = Types.VARBINARY; else if (ojbType.equals("longvarbinary")) result = Types.LONGVARBINARY; else if (ojbType.equals("clob")) result = Types.CLOB; else if (ojbType.equals("blob")) result = Types.BLOB; else throw new SQLException( "The type '"+ ojbType + "' is not a valid jdbc type."); return result; }
[ "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types" ]
[ "Executes the mojo.", "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Creates Accumulo connector given FluoConfiguration", "Get a property as a boolean or throw exception.\n\n@param key the property name", "Get the label distance..\n\n@param settings Parameters for rendering the scalebar.", "Sets the distance from the origin to the far clipping plane for the\nwhole camera rig.\n\n@param far\nDistance to the far clipping plane.", "Polls the next char from the stack\n\n@return next char", "Creates a sorted list that contains the items of the given iterable. The resulting list is in ascending order,\naccording to the natural ordering of the elements in the iterable.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List)\n@see #sort(Iterable, Comparator)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List)", "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared." ]
protected void createKeystore() { java.security.cert.Certificate signingCert = null; PrivateKey caPrivKey = null; if(_caCert == null || _caPrivKey == null) { try { log.debug("Keystore or signing cert & keypair not found. Generating..."); KeyPair caKeypair = getRSAKeyPair(); caPrivKey = caKeypair.getPrivate(); signingCert = CertificateCreator.createTypicalMasterCert(caKeypair); log.debug("Done generating signing cert"); log.debug(signingCert); _ks.load(null, _keystorepass); _ks.setCertificateEntry(_caCertAlias, signingCert); _ks.setKeyEntry(_caPrivKeyAlias, caPrivKey, _keypassword, new java.security.cert.Certificate[] {signingCert}); File caKsFile = new File(root, _caPrivateKeystore); OutputStream os = new FileOutputStream(caKsFile); _ks.store(os, _keystorepass); log.debug("Wrote JKS keystore to: " + caKsFile.getAbsolutePath()); // also export a .cer that can be imported as a trusted root // to disable all warning dialogs for interception File signingCertFile = new File(root, EXPORTED_CERT_NAME); FileOutputStream cerOut = new FileOutputStream(signingCertFile); byte[] buf = signingCert.getEncoded(); log.debug("Wrote signing cert to: " + signingCertFile.getAbsolutePath()); cerOut.write(buf); cerOut.flush(); cerOut.close(); _caCert = (X509Certificate)signingCert; _caPrivKey = caPrivKey; } catch(Exception e) { log.error("Fatal error creating/storing keystore or signing cert.", e); throw new Error(e); } } else { log.debug("Successfully loaded keystore."); log.debug(_caCert); } }
[ "Creates, writes and loads a new keystore and CA root certificate." ]
[ "Use this API to fetch statistics of appfwpolicy_stats resource of given name .", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "This is private. It is a helper function for the utils.", "This implementation checks whether a File can be opened,\nfalling back to whether an InputStream can be opened.\nThis will cover both directories and content resources.", "Calculate the layout container size along the axis\n@param axis {@link Axis}\n@return size", "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Obtain collection of Parameters from request\n\n@param dataArray request parameters\n@return Map of parameters\n@throws Exception exception" ]
public static Variable upcastToGeneratedBuilder( SourceBuilder code, Datatype datatype, String builder) { return code.scope().computeIfAbsent(Declaration.UPCAST, () -> { Variable base = new Variable("base"); code.addLine(UPCAST_COMMENT) .addLine("%s %s = %s;", datatype.getGeneratedBuilder(), base, builder); return base; }); }
[ "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance" ]
[ "Extracts the version id from a string\n\n@param versionDir The string\n@return Returns the version id of the directory, else -1", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Has to be called when the scenario is finished in order to execute after methods.", "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Check local saved copy first ??. If Auth by username is available, then we will not need to make the API call.\n\n@throws FlickrException", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "Get bean for given name in the \"thread\" scope.\n\n@param name name of bean\n@param factory factory for new instances\n@return bean for this scope", "Will prompt a user the \"Add to Homescreen\" feature\n\n@param callback A callback function after the method has been executed.", "Setter for \"addContentInfo\", indicating if content information should be added.\n@param doAddInfo The value of the \"addContentInfo\" attribute of the tag" ]
@JsonAnySetter public void setUnknownField(final String name, final Object value) { this.unknownFields.put(name, value); }
[ "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value" ]
[ "Creates the final artifact name.\n\n@return the artifact name", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Get all sub-lists of the given list of the given sizes.\n\nFor example:\n\n<pre>\nList&lt;String&gt; items = Arrays.asList(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;);\nSystem.out.println(CollectionUtils.getNGrams(items, 1, 2));\n</pre>\n\nwould print out:\n\n<pre>\n[[a], [a, b], [b], [b, c], [c], [c, d], [d]]\n</pre>\n\n@param <T>\nThe type of items contained in the list.\n@param items\nThe list of items.\n@param minSize\nThe minimum size of an ngram.\n@param maxSize\nThe maximum size of an ngram.\n@return All sub-lists of the given sizes.", "Obtains a Julian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Adds the headers.\n\n@param builder\nthe builder\n@param headerMap\nthe header map", "Only call async", "Tries to load a site specific error page. If\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 errorCode the error code to display\n@return a flag, indicating if the custom error page could be loaded.", "Sets the duration for the animation to be played.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code start} is either negative value, greater than\n{@code end} value or {@code end} is greater than duration" ]
@Override public String toHexString(boolean with0xPrefix) { String result; if(hasNoStringCache() || (result = (with0xPrefix ? stringCache.hexStringPrefixed : stringCache.hexString)) == null) { result = toHexString(with0xPrefix, null); if(with0xPrefix) { stringCache.hexStringPrefixed = result; } else { stringCache.hexString = result; } } return result; }
[ "Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix." ]
[ "Used to load a classifier stored as a resource inside a jar file. THIS\nFUNCTION WILL ONLY WORK IF THE CODE WAS LOADED FROM A JAR FILE WHICH HAS A\nSERIALIZED CLASSIFIER STORED INSIDE IT.\n\n@param resourceName\nName of clasifier resource inside the jar file.\n@return A CRFClassifier stored in the jar file", "Use this API to fetch responderpolicylabel_binding resource of given name .", "main class entry point.", "Handles week day changes.\n@param event the change event.", "Enable a host\n\n@param hostName\n@throws Exception", "Retrieves the registar linked to the bus.\nCreates a new registar is not present.\n\n@param bus\n@return", "Get a writer implementation to push data into Canvas.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> A writer implementation\n@return A writer implementation class", "TestNG returns a compound thread ID that includes the thread name and its numeric ID,\nseparated by an 'at' sign. We only want to use the thread name as the ID is mostly\nunimportant and it takes up too much space in the generated report.\n@param threadId The compound thread ID.\n@return The thread name.", "Marks inbox message as read for given messageId\n@param messageId String messageId\n@return boolean value depending on success of operation" ]
private List<Job> getJobs(final Jedis jedis, final String queueName, final long jobOffset, final long jobCount) throws Exception { final String key = key(QUEUE, queueName); final List<Job> jobs = new ArrayList<>(); if (JedisUtils.isDelayedQueue(jedis, key)) { // If delayed queue, use ZRANGEWITHSCORES final Set<Tuple> elements = jedis.zrangeWithScores(key, jobOffset, jobOffset + jobCount - 1); for (final Tuple elementWithScore : elements) { final Job job = ObjectMapperFactory.get().readValue(elementWithScore.getElement(), Job.class); job.setRunAt(elementWithScore.getScore()); jobs.add(job); } } else { // Else, use LRANGE final List<String> elements = jedis.lrange(key, jobOffset, jobOffset + jobCount - 1); for (final String element : elements) { jobs.add(ObjectMapperFactory.get().readValue(element, Job.class)); } } return jobs; }
[ "Get list of Jobs from a queue.\n\n@param jedis\n@param queueName\n@param jobOffset\n@param jobCount\n@return" ]
[ "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return", "Flush the in-memory data to the file", "Converts a tab delimited string into an object with given fields\nRequires the object has public access for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterPattern delimiter\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots", "Removes the expiration flag.", "Use this API to fetch all the nsfeature resources that are configured on netscaler.", "Returns an iterable containing the items in this folder and specifies which child fields to retrieve from the\nAPI.\n\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder.", "Utility method to convert an array of bytes into a long. Byte ordered is\nassumed to be big-endian.\n@param bytes The data to read from.\n@param offset The position to start reading the 8-byte long from.\n@return The 64-bit integer represented by the eight bytes.\n@since 1.1", "remove files from directory. All-or-nothing operation - if any of the files fails to be removed, all deleted files are restored.\n\nThe operation is performed in two steps - first all the files are moved to a backup folder, and afterwards backup folder is removed.\nIf an error occurs in the first step of the operation, all files are restored and the operation ends with status {@code false}.\nIf an error occurs in the second step, the operation ends with status {@code false}, but the files are not rolled back.\n\n@throws IOException if an error occurred" ]
public static void mergeHints(InputStream is, Map<String,List<Long>> hints) throws IOException { final BufferedReader reader = new BufferedReader( new InputStreamReader(is, Charsets.UTF_8)); String line; while ((line = reader.readLine()) != null) { line = line.trim(); if (line.isEmpty() || line.startsWith("#")) continue; final int equals = line.indexOf('='); if (equals <= 0) { throw new IOException("No '=' character on a non-comment line?: " + line); } else { String key = line.substring(0, equals); List<Long> values = hints.get(key); if (values == null) { hints.put(key, values = new ArrayList<>()); } for (String v : line.substring(equals + 1).split("[\\,]")) { if (!v.isEmpty()) values.add(Long.parseLong(v)); } } } }
[ "Read hints from a file and merge with the given hints map." ]
[ "Parameter validity check.", "Adds position noise to the trajectories\n@param t\n@param sd\n@return trajectory with position noise", "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", "Parse an extended attribute boolean value.\n\n@param value string representation\n@return boolean value", "Creates a new fixed size ThreadPoolExecutor\n\n@param threads\nthe number of threads\n@param groupname\na label to identify the threadpool; useful for profiling.\n@param queueSize\nthe size of the queue to store Runnables when all threads are busy\n@return the new ExecutorService", "Returns the shared prefix of these columns. Null otherwise.\n\n@param associationKeyColumns the columns sharing a prefix\n@return the shared prefix of these columns. {@code null} otherwise.", "Notification that a connection was closed.\n\n@param closed the closed connection", "Checks if two types are the same or are equivalent under a variable\nmapping given in the type map that was provided.", "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native coordinate system\nof the original image." ]
public static List<StoreDefinition> filterStores(List<StoreDefinition> storeDefs, final boolean isReadOnly) { List<StoreDefinition> filteredStores = Lists.newArrayList(); for(StoreDefinition storeDef: storeDefs) { if(storeDef.getType().equals(ReadOnlyStorageConfiguration.TYPE_NAME) == isReadOnly) { filteredStores.add(storeDef); } } return filteredStores; }
[ "Given a list of store definitions, filters the list depending on the\nboolean\n\n@param storeDefs Complete list of store definitions\n@param isReadOnly Boolean indicating whether filter on read-only or not?\n@return List of filtered store definition" ]
[ "Add nodes to the workers list\n\n@param nodeIds list of node ids.", "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Get the unique set of declared methods on the leaf class and all superclasses. Leaf\nclass methods are included first and while traversing the superclass hierarchy any methods found\nwith signatures matching a method already included are filtered out.", "Fancy print without a space added to positive numbers", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements", "Inserts a String value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null\n@return this bundler instance to chain method calls", "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted.", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs" ]
private Object mapToId(Object tmp) { if (tmp instanceof Double) { return new Integer(((Double)tmp).intValue()); } else { return Context.toString(tmp); } }
[ "map a property id. Property id can only be an Integer or String" ]
[ "Append a SubQuery the SQL-Clause\n@param subQuery the subQuery value of SelectionCriteria", "Throws one RendererException if the viewType, layoutInflater or parent are null.", "Handles a failed SendData request. This can either be because of the stick actively reporting it\nor because of a time-out of the transaction in the send thread.\n@param originalMessage the original message that was sent", "Get image parent ID from imageID on the current agent.\n\n@param imageID\n@return", "Gets a list of AssignmentRows based on the current Assignments\n@return", "Use this API to delete gslbsite resources of given names.", "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.", "Populates date time settings.\n\n@param record MPX record\n@param properties project properties", "Allow for the use of text shading and auto formatting." ]
public static authenticationtacacspolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_authenticationvserver_binding obj = new authenticationtacacspolicy_authenticationvserver_binding(); obj.set_name(name); authenticationtacacspolicy_authenticationvserver_binding response[] = (authenticationtacacspolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name ." ]
[ "Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON", "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Add a content modification.\n\n@param modification the content modification", "Retrieve a child that matches the given absolute path, starting from the current node.\n\n@param nodePath The path from the object root to the requested child node.\n@return The requested child node or <code>null</code>.", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "Adds OPT_Z | OPT_ZONE 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", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise" ]
public List<String> getListAttribute(String section, String name) { return split(getAttribute(section, name)); }
[ "Returns an attribute's list value from a non-main section of this JAR's manifest.\nThe attributes string value will be split on whitespace into the returned list.\nThe returned list may be safely modified.\n\n@param section the manifest's section\n@param name the attribute's name" ]
[ "Adds a variable to the end of the token list\n@param variable Variable which is to be added\n@return The new Token created around variable", "Get ComponentsMultiThread of current instance\n@return componentsMultiThread", "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Converts an image in RGB mode to BINARY mode\n\n@param img image\n@param threshold grays cale threshold\n@return new MarvinImage instance in BINARY mode", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Start with specifying the artifact version", "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout" ]
public synchronized final void closeStream() { try { if ((stream != null) && (streamState == StreamStates.OPEN)) { stream.close(); stream = null; } streamState = StreamStates.CLOSED; } catch (IOException e) { e.printStackTrace(); } }
[ "Close the open stream.\n\nClose the stream if it was opened before" ]
[ "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation.", "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context", "Creates the HikariCP configuration based on the configuration of a pool defined in opencms.properties.\n\n@param config the configuration object with the properties\n@param key the pool name (without the opencms prefix)\n\n@return the HikariCP configuration for the pool", "add a foreign key field", "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", "Use this API to apply nspbr6 resources.", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Extract definition records from the table and divide into groups." ]
public void addUIEventHandler(JavascriptObject obj, UIEventType type, UIEventHandler h) { String key = registerEventHandler(h); String mcall = "google.maps.event.addListener(" + obj.getVariableName() + ", '" + type.name() + "', " + "function(event) {document.jsHandlers.handleUIEvent('" + key + "', event);});";//.latLng //System.out.println("addUIEventHandler mcall: " + mcall); runtime.execute(mcall); }
[ "Adds a handler for a mouse type event on the map.\n\n@param obj The object that the event should be registered on.\n@param type Type of the event to register against.\n@param h Handler that will be called when the event occurs." ]
[ "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Delete a module\n\n@param moduleId String", "Returns a JSONObject keyed with the lastId retrieved and a value of a JSONArray of the retrieved JSONObject events\n\n@param table the table to read from\n@return JSONObject containing the max row ID and a JSONArray of the JSONObject events or null", "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled.", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "Processes the template for all foreignkeys of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Build the crosstab. Throws LayoutException if anything is wrong\n@return", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add" ]
@Override protected void _acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException { SerializerProvider prov = visitor.getProvider(); if ((prov != null) && useNanoseconds(prov)) { JsonNumberFormatVisitor v2 = visitor.expectNumberFormat(typeHint); if (v2 != null) { v2.numberType(NumberType.BIG_DECIMAL); } } else { JsonIntegerFormatVisitor v2 = visitor.expectIntegerFormat(typeHint); if (v2 != null) { v2.numberType(NumberType.LONG); } } }
[ "Overridden to ensure that our timestamp handling is as expected" ]
[ "Use this API to add gslbsite resources.", "Redirect to page\n\n@param model\n@return", "Returns all entries in no particular order.", "Use this API to add dnsaaaarec resources.", "Creates the request.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "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.", "Return the most appropriate log type. This should _never_ return null.", "Adds a resource collection with execution hints.", "Search one prototype using the prototype index which is equals to the view type. This method\nhas to be implemented because prototypes member is declared with Collection and that interface\ndoesn't allow the client code to get one element by index.\n\n@param prototypeIndex used to search.\n@return prototype renderer." ]
public Metadata setMetadata(String templateName, String scope, Metadata metadata) { Metadata metadataValue = null; try { metadataValue = this.createMetadata(templateName, scope, metadata); } catch (BoxAPIException e) { if (e.getResponseCode() == 409) { Metadata metadataToUpdate = new Metadata(scope, templateName); for (JsonValue value : metadata.getOperations()) { if (value.asObject().get("value").isNumber()) { metadataToUpdate.add(value.asObject().get("path").asString(), value.asObject().get("value").asFloat()); } else if (value.asObject().get("value").isString()) { metadataToUpdate.add(value.asObject().get("path").asString(), value.asObject().get("value").asString()); } else if (value.asObject().get("value").isArray()) { ArrayList<String> list = new ArrayList<String>(); for (JsonValue jsonValue : value.asObject().get("value").asArray()) { list.add(jsonValue.asString()); } metadataToUpdate.add(value.asObject().get("path").asString(), list); } } metadataValue = this.updateMetadata(metadataToUpdate); } } return metadataValue; }
[ "Sets the provided metadata on the folder, overwriting any existing metadata keys already present.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server." ]
[ "Implementation of FNV-1a hash algorithm.\n@see <a href=\"https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function\">\nttps://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function</a>\n@param doc the document to hash\n@return", "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.", "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Deletes the inbox message for given messageId\n@param messageId String messageId\n@return boolean value based on success of operation", "Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@param selectedIconColor\n@param tinted\n@param imageView" ]
public static responderpolicy[] get(nitro_service service) throws Exception{ responderpolicy obj = new responderpolicy(); responderpolicy[] response = (responderpolicy[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the responderpolicy resources that are configured on netscaler." ]
[ "calculate and set position to menu items", "Get a list of referrers from a given domain to a photoset.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photosetId\n(Optional) The id of the photoset to get stats for. If not provided, stats for all sets 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.getPhotosetReferrers.html\"", "Implementation of FNV-1a hash algorithm.\n@see <a href=\"https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function\">\nttps://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function</a>\n@param doc the document to hash\n@return", "Clears all checked widgets in the group", "Returns the bundle descriptor for the bundle with the provided base name.\n@param cms {@link CmsObject} used for searching.\n@param basename the bundle base name, for which the descriptor is searched.\n@return the bundle descriptor, or <code>null</code> if it does not exist or searching fails.", "Get the real Class\n\n@param objectOrProxy\n@return Class", "Tell a device to become tempo master.\n\n@param deviceNumber the device we want to take over the role of tempo master\n\n@throws IOException if there is a problem sending the command to the device\n@throws IllegalStateException if the {@code VirtualCdj} is not active\n@throws IllegalArgumentException if {@code deviceNumber} is not found on the network", "The Maven3Builder class is looking for the PATH+JDK environment variable due to legacy code.\nIn The pipeline flow we need to convert the JAVA_HOME to PATH+JDK in order to reuse the code.", "Creates the given directory. Fails if it already exists." ]
public static wisite_accessmethod_binding[] get(nitro_service service, String sitepath) throws Exception{ wisite_accessmethod_binding obj = new wisite_accessmethod_binding(); obj.set_sitepath(sitepath); wisite_accessmethod_binding response[] = (wisite_accessmethod_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch wisite_accessmethod_binding resources of given name ." ]
[ "Populate a Command instance with the values parsed from a command line\nIf any parser errors are detected it will throw an exception\n@param processedCommand command line\n@param mode do validation or not\n@throws CommandLineParserException any incorrectness in the parser will abort the populate", "Use this API to delete cacheselector resources of given names.", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "Delivers the correct JSON Object for the stencilId\n\n@param stencilId\n@throws org.json.JSONException", "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "We try to convert an Object to an Array and this is not easy in Java so we need a little bit of nasty magic.\n\n@param <T> Type of elements\n@param clazz Clazz of the Objct elements\n@param obj Object\n@return Array", "Read project calendars.", "Sets test status." ]
public void updateSequenceElement(int[] sequence, int pos, int oldVal) { if(models != null){ for(int i = 0; i < models.length; i++) models[i].updateSequenceElement(sequence, pos, oldVal); return; } model1.updateSequenceElement(sequence, pos, 0); model2.updateSequenceElement(sequence, pos, 0); }
[ "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired." ]
[ "Get FieldDescriptor from Reference", "Used for DI frameworks to inject values into stages.", "Allocates a database connection.\n\n@throws SQLException", "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Converts an object to an instance of the target type.\n\n@param mapper the object mapper\n@param source the source to convert\n@param targetType the target class type\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input", "Provides a normalized string which is lowercase for host strings, and which is a normalized string for addresses.\n@return", "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise" ]
public void addNamespace(final MongoNamespace namespace) { this.instanceLock.writeLock().lock(); try { if (this.nsStreamers.containsKey(namespace)) { return; } final NamespaceChangeStreamListener streamer = new NamespaceChangeStreamListener( namespace, instanceConfig.getNamespaceConfig(namespace), service, networkMonitor, authMonitor, getLockForNamespace(namespace)); this.nsStreamers.put(namespace, streamer); } finally { this.instanceLock.writeLock().unlock(); } }
[ "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on." ]
[ "Decode the password from the given data. Will decode the data block as well.\n\n@param data encrypted data block\n@param encryptionCode encryption code\n\n@return password", "Update the lastCheckTime of the given record.\n\n@param id the id\n@param lastCheckTime the new value", "Throws an IllegalStateException when the given value is not false.", "Put a new value in map.\n\n@param key id of the value for looking up.\n@param value the value.", "Use this API to update autoscaleaction resources.", "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Notifies all registered BufferChangeLogger instances of a change.\n\n@param newData the buffer that contains the new data being added\n@param numChars the number of valid characters in the buffer", "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data" ]
public GVRShaderId getShaderType(Class<? extends GVRShader> shaderClass) { GVRShaderId shaderId = mShaderTemplates.get(shaderClass); if (shaderId == null) { GVRContext ctx = getGVRContext(); shaderId = new GVRShaderId(shaderClass); mShaderTemplates.put(shaderClass, shaderId); shaderId.getTemplate(ctx); } return shaderId; }
[ "Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subclass\nGVRShaderTemplate to create your own shader templates.\n\n@param shaderClass shader class to find (subclass of GVRShader)\n@return GVRShaderId associated with that shader template\n@see GVRShaderTemplate GVRShader" ]
[ "Helper method that creates a Velocity context and initialises it\nwith a reference to the ReportNG utils, report metadata and localised messages.\n@return An initialised Velocity context.", "Function to filter files based on defined rules.", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile", "Builds the mapping table.", "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...)}", "Quits server by closing server socket and closing client socket handlers.", "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order." ]
public static float calculateMaxTextHeight(Paint _Paint, String _Text) { Rect height = new Rect(); String text = _Text == null ? "MgHITasger" : _Text; _Paint.getTextBounds(text, 0, text.length(), height); return height.height(); }
[ "Calculates the maximum text height which is possible based on the used Paint and its settings.\n\n@param _Paint Paint object which will be used to display a text.\n@param _Text The text which should be measured. If null, a default text is chosen, which\nhas a maximum possible height\n@return Maximum text height in px." ]
[ "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "Read, validate, and discard a single message, returning the next valid offset, and the\nmessage being validated\n\n@throws IOException any exception", "Print a date.\n\n@param value Date instance\n@return string representation of a date", "Gets the appropriate cache dir\n\n@param ctx\n@return", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields", "Use this API to add inat resources.", "Use this API to add dnstxtrec resources.", "This method evaluates a if a graphical indicator should\nbe displayed, given a set of Task or Resource data. The\nmethod will return -1 if no indicator should be displayed.\n\n@param container Task or Resource instance\n@return indicator index", "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object" ]
@Override public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) { this.problemReporter.abortDueToInternalError( Messages.bind(Messages.abort_againstSourceModel, new String[] { String.valueOf(sourceTypes[0].getName()), String.valueOf(sourceTypes[0].getFileName()) })); }
[ "Add additional source types" ]
[ "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.", "Returns the index of the given name.\n\n@param name The name of the index (null or empty string for the default index)\n@return The index def or <code>null</code> if it does not exist", "splits a string into a list of strings. Trims the results and ignores empty strings", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Used to ensure that the general footer label will be at the same Y position as the variables in the band.\n@param band\n@return", "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", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs" ]
private void lockOnChange(Object propertyId) throws CmsException { if (isDescriptorProperty(propertyId)) { lockDescriptor(); } else { Locale l = m_bundleType.equals(BundleType.PROPERTY) ? m_locale : null; lockLocalization(l); } }
[ "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails." ]
[ "Set ViewPort visibility of the object.\n\n@see ViewPortVisibility\n@param viewportVisibility\nThe ViewPort visibility of the object.\n@return {@code true} if the ViewPort visibility was changed, {@code false} if it\nwasn't.", "Build all children.\n\n@return the child descriptions", "Returns the organization of a given module\n\n@return Organization", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException", "Invokes the method on the class of the passed instance, not the declaring\nclass. Useful with proxies\n\n@param instance The instance to invoke\n@param manager The Bean manager\n@return A reference to the instance", "Returns true if the activity is a milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone", "To sql pattern.\n\n@param attribute the attribute\n@return the string", "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value", "Get the real Class\n\n@param objectOrProxy\n@return Class" ]
private String applyFilters(String methodName) { if (filters.isEmpty()) { return methodName; } Reader in = new StringReader(methodName); for (TokenFilter tf : filters) { in = tf.chain(in); } try { return CharStreams.toString(in); } catch (IOException e) { junit4.log("Could not apply filters to " + methodName + ": " + Throwables.getStackTraceAsString(e), Project.MSG_WARN); return methodName; } }
[ "Apply filters to a method name.\n@param methodName" ]
[ "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Handle changes of the series check box.\n@param event the change event.", "The ARP is additional request parameters, which must be sent once\nreceived after any HTTP call. This is sort of a proxy for cookies.\n\n@return A JSON object containing the ARP key/values. Can be null.", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Return total number of connections currently in use by an application\n@return no of leased connections", "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.\nIf the result has length 2, the two ranges are in increasing order.\n\n@param other\n@return", "Return the max bounds of the layer as envelope.\n\n@param layer the layer to get envelope from\n@return Envelope the envelope" ]
private void readTasks(Project phoenixProject, Storepoint storepoint) { processLayouts(phoenixProject); processActivityCodes(storepoint); processActivities(storepoint); updateDates(); }
[ "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data" ]
[ "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types", "Gets all tags that are \"prime\" tags.", "Converts the passed list of inners to unmodifiable map of impls.\n@param innerList list of the inners.\n@return map of the impls", "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Use this API to create sslfipskey.", "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it", "Convert this object to a json array.", "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace.", "Calculates a md5 hash for an url\n\nIf a passed in url is absent then this method will return absent as well\n\n@param url - an url to a soy template file\n@return - md5 checksum of a template file\n@throws IOException - in a case there is an IO error calculating md5 checksum" ]
public final void setExceptions(SortedSet<Date> dates) { m_exceptions.clear(); if (null != dates) { m_exceptions.addAll(dates); } }
[ "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set." ]
[ "Returns the effective batch size. If the dialect is multiget capable and a batch size has been configured, use\nthat one, otherwise the default.", "Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining.", "returns a Logger.\n\n@param loggerName the name of the Logger\n@return Logger the returned Logger", "Sets the set of language filters based on the given string.\n\n@param filters\ncomma-separates list of language codes, or \"-\" to filter all\nlanguages", "Return true if the class name is associated to an hidden class or matches a hide expression", "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Set the serial end date.\n@param date the serial end date.", "Adds service locator properties to an endpoint reference.\n@param epr\n@param props", "Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+1." ]
public boolean isIPv4Compatible() { return getSegment(0).isZero() && getSegment(1).isZero() && getSegment(2).isZero() && getSegment(3).isZero() && getSegment(4).isZero() && getSegment(5).isZero(); }
[ "Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()" ]
[ "get string from post stream\n\n@param is\n@param encoding\n@return", "Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model The original model\n@return The model representation", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}", "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function.", "Returns true if the query result has at least one row.", "Use this API to fetch all the bridgetable resources that are configured on netscaler.", "Set the week days the events should occur.\n@param weekDays the week days to set.", "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported." ]
protected void endPersistence(final BufferedWriter writer) throws IOException { // Append any additional users to the end of the file. for (Object currentKey : toSave.keySet()) { String key = (String) currentKey; if (!key.contains(DISABLE_SUFFIX_KEY)) { writeProperty(writer, key, null); } } toSave = null; }
[ "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException" ]
[ "Creates a field map for tasks.\n\n@param props props data", "Creates a player wrapper for the Android MediaPlayer.", "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current dumpfiles\n@throws IllegalArgumentException\nif the given dump file type is not known", "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Build and return the complete URI containing values\nsuch as the document ID, attachment ID, and query syntax.", "Registers all custom Externalizer implementations that Hibernate OGM needs into an Infinispan CacheManager\nconfiguration.\n\n@see ExternalizerIds\n@param cfg the Serialization section of a GlobalConfiguration builder", "Processes the template for all table definitions in the torque model.\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\"", "Compute a singular-value decomposition of A.\n\n@return A DoubleMatrix[3] array of U, S, V such that A = U * diag(S) * V'" ]
private void logOriginalRequestHistory(String requestType, HttpServletRequest request, History history) { logger.info("Storing original request history"); history.setRequestType(requestType); history.setOriginalRequestHeaders(HttpUtilities.getHeaders(request)); history.setOriginalRequestURL(request.getRequestURL().toString()); history.setOriginalRequestParams(request.getQueryString() == null ? "" : request.getQueryString()); logger.info("Done storing"); }
[ "Log original incoming request\n\n@param requestType\n@param request\n@param history" ]
[ "Extract site path, base name and locale from the resource opened with the editor.", "Retrieves the earliest start date for all assigned tasks.\n\n@return start date", "Sets the site root.\n\n@param siteRoot the site root", "Remove all unnecessary comments from a lexer or parser file", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Log a message with a throwable at the provided level.", "Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name .", "Alternate version of autoGeneratedKeys.\n@param sql\n@param autoGeneratedKeys\n@return cache key to use.", "Notify our own event listeners of a Z-Wave event.\n@param event the event to send." ]
public RedwoodConfiguration collapseExact(){ tasks.add(new Runnable() { public void run() { Redwood.spliceHandler(VisibilityHandler.class, new RepeatedRecordHandler(RepeatedRecordHandler.EXACT), OutputHandler.class); } }); return this; }
[ "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this" ]
[ "Creates a Bytes object by copying the data of a subsequence of the given byte array\n\n@param data Byte data\n@param offset Starting offset in byte array (inclusive)\n@param length Number of bytes to include", "This method finds the start of the next working period.\n\n@param cal current Calendar instance", "Use this API to add clusterinstance resources.", "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value", "Verify JUnit presence and version.", "Arrange to become the tempo master. Starts a sequence of interactions with the other players that should end\nup with us in charge of the group tempo and beat alignment.\n\n@throws IllegalStateException if we are not sending status updates\n@throws IOException if there is a problem sending the master yield request", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Checks that locking and update-lock are only used for fields of TIMESTAMP or INTEGER type.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Gets the explorer file entry options.\n\n@return the explorer file entry options" ]
public Widget findChildByName(final String name) { final List<Widget> groups = new ArrayList<>(); groups.add(this); return findChildByNameInAllGroups(name, groups); }
[ "Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found." ]
[ "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Read arguments from a file. Newline delimited, UTF-8 encoded. No fanciness to\navoid dependencies.", "Check that each requirement is satisfied.\n\n@param currentPath the json path to the element being checked", "Write an int attribute.\n\n@param name attribute name\n@param value attribute value", "Removes old entries in the history table for the given profile and client UUID\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param limit Maximum number of history entries to remove\n@throws Exception exception", "Logic for timestamp\n@param time Epoch date of creation\n@return String timestamp", "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution.", "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" ]
public BlurBuilder contrast(float contrast) { data.preProcessors.add(new ContrastProcessor(data.contextWrapper.getRenderScript(), Math.max(Math.min(1500.f, contrast), -1500.f))); return this; }
[ "Change contrast of the image\n\n@param contrast default is 0, pos values increase contrast, neg. values decrease contrast" ]
[ "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Processes one dump file with the given dump file processor, handling\nexceptions appropriately.\n\n@param dumpFile\nthe dump file to process\n@param dumpFileProcessor\nthe dump file processor to use", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Computes the d and H parameters.\n\nd = J'*(f(x)-y) <--- that's also the gradient\nH = J'*J", "Returns the complete project record for a single project.\n\n@param project The project to get.\n@return Request object", "Write a list of custom field attributes.", "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved", "Returns the JMX connector address of a child process.\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return a {@link JMXServiceURL} to the process's MBean server" ]
public void afterDeploymentValidation(@Observes @Priority(1) AfterDeploymentValidation event, BeanManager beanManager) { BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); probe.init(manager); if (isJMXSupportEnabled(manager)) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); mbs.registerMBean(new ProbeDynamicMBean(jsonDataProvider, JsonDataProvider.class), constructProbeJsonDataMBeanName(manager, probe)); } catch (MalformedObjectNameException | InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException e) { event.addDeploymentProblem(ProbeLogger.LOG.unableToRegisterMBean(JsonDataProvider.class, manager.getContextId(), e)); } } addContainerLifecycleEvent(event, null, beanManager); exportDataIfNeeded(manager); }
[ "any possible bean invocations from other ADV observers" ]
[ "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value", "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values", "Performs the actual spell check query using Solr.\n\n@param request the spell check request\n\n@return Results of the Solr spell check of type SpellCheckResponse or null if something goes wrong.", "Use this API to Import sslfipskey.", "Generic string joining function.\n@param strings Strings to be joined\n@param fixCase does it need to fix word case\n@param withChar char to join strings with.\n@return joined-string", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Close and remove expired streams. Package protected to allow unit tests to invoke it.", "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations." ]
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." ]
[ "Set the state of an individual day in a weekly recurrence.\n\n@param day Day instance\n@param value true if this day is included in the recurrence", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "1-D Backward Discrete Cosine Transform.\n\n@param data Data.", "Delivers the correct JSON Object for the target\n\n@param target\n@throws org.json.JSONException", "Tell a device to become tempo master.\n\n@param deviceNumber the device we want to take over the role of tempo master\n\n@throws IOException if there is a problem sending the command to the device\n@throws IllegalStateException if the {@code VirtualCdj} is not active\n@throws IllegalArgumentException if {@code deviceNumber} is not found on the network", "when divisionPrefixLen is null, isAutoSubnets has no effect", "Produces a string identifying this half-edge by the point index values of\nits tail and head vertices.\n\n@return identifying string", "Use this API to fetch all the appqoepolicy resources that are configured on netscaler.", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object." ]
public void addWatcher(final MongoNamespace namespace, final Callback<ChangeEvent<BsonDocument>, Object> watcher) { instanceChangeStreamListener.addWatcher(namespace, watcher); }
[ "Queues up a callback to be removed and invoked on the next change event." ]
[ "Use this API to fetch the statistics of all protocoludp_stats resources that are configured on netscaler.", "write CustomInfo list into table.\n\n@param event the event", "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "for bpm connector", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents", "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "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", "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor" ]
@Override public Set<String> getRoundingNames(String... providers) { Set<String> result = new HashSet<>(); String[] providerNames = providers; if (providerNames.length == 0) { providerNames = Monetary.getDefaultRoundingProviderChain().toArray(new String[Monetary.getDefaultRoundingProviderChain().size()]); } for (String providerName : providerNames) { for (RoundingProviderSpi prov : Bootstrap.getServices(RoundingProviderSpi.class)) { try { if (prov.getProviderName().equals(providerName) || prov.getProviderName().matches(providerName)) { result.addAll(prov.getRoundingNames()); } } catch (Exception e) { Logger.getLogger(DefaultMonetaryRoundingsSingletonSpi.class.getName()) .log(Level.SEVERE, "Error loading RoundingProviderSpi from provider: " + prov, e); } } } return result; }
[ "Allows to access the identifiers of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used, not null.\n@return the set of custom rounding ids, never {@code null}." ]
[ "Token Info\nReturns the Token Information\n@return ApiResponse&lt;TokenInfoSuccessResponse&gt;\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Get the inactive history directories.\n\n@return the inactive history", "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Set the host.\n\n@param host the host", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Convert a drawable object into a Bitmap.\n@param drawable Drawable to extract a Bitmap from.\n@return A Bitmap created from the drawable parameter.", "Stops the current debug server. Active connections are\nnot affected." ]
private void handleIOException(IOException e, String action, int attempt) throws VoldemortException, InterruptedException { if ( // any of the following happens, we need to bubble up // FileSystem instance got closed, somehow e.getMessage().contains("Filesystem closed") || // HDFS permission issues ExceptionUtils.recursiveClassEquals(e, AccessControlException.class)) { throw new VoldemortException("Got an IOException we cannot recover from while trying to " + action + ". Attempt # " + attempt + "/" + maxAttempts + ". Will not try again.", e); } else { logFailureAndWait(action, IO_EXCEPTION, attempt, e); } }
[ "This function is intended to detect the subset of IOException which are not\nconsidered recoverable, in which case we want to bubble up the exception, instead\nof retrying.\n\n@throws VoldemortException" ]
[ "Internal function that uses recursion to create the list", "Added in Gerrit 2.11.", "Initializes class data structures and parameters", "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token", "Converts milliseconds into a calendar object.\n\n@param millis a time given in milliseconds after epoch\n@return the calendar object for the given time", "Determines the median value of the data set.\n@return If the number of elements is odd, returns the middle element.\nIf the number of elements is even, returns the midpoint of the two\nmiddle elements.\n@since 1.0.1", "Reads color table as 256 RGB integer values.\n\n@param ncolors int number of colors to read.\n@return int array containing 256 colors (packed ARGB with full alpha).", "Registers the deployment resources needed.\n\n@param deploymentResourceSupport the deployment resource support\n@param service the service, which may be {@code null}, used to find the resource names that need to be registered", "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID" ]
public boolean isEUI64(boolean partial) { int segmentCount = getSegmentCount(); int endIndex = addressSegmentIndex + segmentCount; if(addressSegmentIndex <= 5) { if(endIndex > 6) { int index3 = 5 - addressSegmentIndex; IPv6AddressSegment seg3 = getSegment(index3); IPv6AddressSegment seg4 = getSegment(index3 + 1); return seg4.matchesWithMask(0xfe00, 0xff00) && seg3.matchesWithMask(0xff, 0xff); } else if(partial && endIndex == 6) { IPv6AddressSegment seg3 = getSegment(5 - addressSegmentIndex); return seg3.matchesWithMask(0xff, 0xff); } } else if(partial && addressSegmentIndex == 6 && endIndex > 6) { IPv6AddressSegment seg4 = getSegment(6 - addressSegmentIndex); return seg4.matchesWithMask(0xfe00, 0xff00); } return partial; }
[ "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return" ]
[ "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher", "Use this API to fetch a dnsglobal_binding resource .", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "Writes a number to the specified byte array field, breaking it into its component bytes in big-endian order.\nIf the number is too large to fit in the specified number of bytes, only the low-order bytes are written.\n\n@param number the number to be written to the array\n@param buffer the buffer to which the number should be written\n@param start where the high-order byte should be written\n@param length how many bytes of the number should be written", "Check if the right-hand side type may be assigned to the left-hand side\ntype following the Java generics rules.\n@param lhsType the target type\n@param rhsType the value type that should be assigned to the target type\n@return true if rhs is assignable to lhs", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Register the Rowgroup buckets and places the header cells for the rows", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException" ]
public static base_response unset(nitro_service client, systemcollectionparam resource, String[] args) throws Exception{ systemcollectionparam unsetresource = new systemcollectionparam(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array." ]
[ "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "Factory method to create EnumStringConverter\n\n@param <E>\nenum type inferred from enumType parameter\n@param enumType\nparticular enum class\n@return instance of EnumConverter", "Process a SQLite database PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Set the value as provided.\n@param value the serial date value as JSON string.", "If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent\nstarvation of low priority items\n\n@param groupClass\n@return", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Use this API to flush cacheobject resources.", "Search down all extent classes and return max of all found\nPK values.", "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" ]
private Collection<Locale> initLocales() { Collection<Locale> locales = null; switch (m_bundleType) { case DESCRIPTOR: locales = new ArrayList<Locale>(1); locales.add(Descriptor.LOCALE); break; case XML: case PROPERTY: locales = OpenCms.getLocaleManager().getAvailableLocales(m_cms, m_resource); break; default: throw new IllegalArgumentException(); } return locales; }
[ "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited." ]
[ "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "Download a file asynchronously.\n@param url the URL pointing to the file\n@param retrofit the retrofit client\n@return an Observable pointing to the content of the file", "Create a new instance for the specified host and encryption key.\n\n@see #create(String)", "Use this API to update sslcertkey resources.", "Returns the name of the bone.\n\n@return the name", "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value", "DISPATCHING - COMMANDS", "Normalizes the name so it can be used as Maven artifactId or groupId." ]
protected static void appendHandler(LogRecordHandler parent, LogRecordHandler child){ RecordHandlerTree p = handlers.find(parent); if(p != null){ p.addChild(child); } else { throw new IllegalArgumentException("No such parent handler: " + parent); } }
[ "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add." ]
[ "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution", "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path", "Returns if a MongoDB document is a todo item.", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style.", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "Specifies the timeout for a network request.\n\n@param timeout The timeout for a network request.\n@param unit The time unit of the specified timeout.\n@return This builder instance.", "Use this API to delete dnssuffix resources of given names.", "Processes text as a FreeMarker template. Usually used to process an inner body of a tag.\n\n@param text text of a template.\n@param params map with parameters for processing.\n@param writer writer to write output to.", "Returns the bundle descriptor for the bundle with the provided base name.\n@param cms {@link CmsObject} used for searching.\n@param basename the bundle base name, for which the descriptor is searched.\n@return the bundle descriptor, or <code>null</code> if it does not exist or searching fails." ]
public static long raiseToPower(int value, int power) { if (power < 0) { throw new IllegalArgumentException("This method does not support negative powers."); } long result = 1; for (int i = 0; i < power; i++) { result *= value; } return result; }
[ "Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}." ]
[ "Send a track metadata update announcement to all registered listeners.", "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.", "Tests whether the two field descriptors are equal, i.e. have same name, same column\nand same jdbc-type.\n\n@param first The first field\n@param second The second field\n@return <code>true</code> if they are equal", "Set the week day the events should occur.\n@param weekDay the week day to set.", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Use this API to fetch clusterinstance_binding resource of given name .", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "Compares two avro strings which contains multiple store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Throws if the given file is null, is not a file or directory, or is an empty directory." ]
public <T> T convert(ConversionContext context, Object source, TypeReference<T> destinationType) throws ConverterException { try { return (T) multiConverter.convert(context, source, destinationType); } catch (ConverterException e) { throw e; } catch (Exception e) { // There is a problem with one converter. This should not happen. // Either there is a bug in this converter or it is not properly // configured throw new ConverterException( MessageFormat .format( "Could not convert given object with class ''{0}'' to object with type signature ''{1}''", source == null ? "null" : source.getClass() .getName(), destinationType), e); } }
[ "Convert an object to another object given a parameterized type signature\n\n@param context\n@param destinationType\nthe destination type\n@param source\nthe source object\n\n@return the converted object\n@throws ConverterException\nif conversion failed" ]
[ "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", "BuildInteractiveObjectFromAnchor is a special type of interactive object in that it does not get\nbuilt using ROUTE's.\n\n@param anchorSensor is the Sensor that describes the sensor set to an Anchor\n@param anchorDestination is either another Viewpoint, url to a web site or another x3d scene", "Set the week day the event should take place.\n@param dayString the day as string.", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "Register the given common classes with the ClassUtils cache.", "Use this API to update cacheselector.", "Create parameter converters from methods annotated with @AsParameterConverter\n@see {@link AbstractStepsFactory}", "Return the class's name, possibly by stripping the leading path" ]
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); List<ResourceRoot> resourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit); for (ResourceRoot resourceRoot : resourceRoots) { if (IgnoreMetaInfMarker.isIgnoreMetaInf(resourceRoot)) { continue; } Manifest manifest = getManifest(resourceRoot); if (manifest != null) resourceRoot.putAttachment(Attachments.MANIFEST, manifest); } }
[ "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException" ]
[ "Creates and start an engine representing the node named as the given parameter.\n\n@param name\nname of the node, as present in the configuration (case sensitive)\n@param handler\ncan be null. A set of callbacks hooked on different engine life cycle events.\n@return an object allowing to stop the engine.", "Returns a String summarizing overall accuracy that will print nicely.", "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance", "Use this API to fetch lbvserver_servicegroupmember_binding resources of given name .", "A specific, existing task can be deleted by making a DELETE request on the\nURL for that task. Deleted tasks go into the \"trash\" of the user making\nthe delete request. Tasks can be recovered from the trash within a period\nof 30 days; afterward they are completely removed from the system.\n\nReturns an empty data record.\n\n@param task The task to delete.\n@return Request object", "Decode long from byte array at offset\n\n@param ba byte array\n@param offset Offset\n@return long value", "Notification that the configuration has been written, and its current content should be stored to the .last file", "Returns whether the division range includes the block of values for its prefix length", "Utils for making collections out of arrays of primitive types." ]
public Column getColumn(String columnName) { if (columnName == null) { return null; } for (Column column : columns) { if (columnName.equals(column.getData())) { return column; } } return null; }
[ "Find a column by its name\n\n@param columnName the name of the column\n@return the given Column, or <code>null</code> if not found" ]
[ "Print the common class node's properties", "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "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.", "Add a new profile with the profileName given.\n\n@param profileName name of new profile\n@return newly created profile\n@throws Exception exception", "Return the array of field objects pulled from the data object.", "Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context", "Update the context session to mark a user logged in\n\n@param userIdentifier\nthe user identifier, could be either userId or username", "Get the status of the upload session. It contains the number of parts that are processed so far,\nthe total number of parts required for the commit and expiration date and time of the upload session.\n@return the status.", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable." ]
public static FileOutputStream openResultFileOuputStream( Path resultDirectory, String filename) throws IOException { Path filePath = resultDirectory.resolve(filename); return new FileOutputStream(filePath.toFile()); }
[ "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to write to\n@return FileOutputStream for the file\n@throws IOException\nif the file or example output directory could not be created" ]
[ "Starts the transition", "Adds an HTTP header to this request.\n@param key the header key.\n@param value the header value.", "Creates a color item that represents a color field fond for a track.\n\n@param colorId the key of the color as found in the database\n@param label the corresponding color label as found in the database (or sent in the dbserver message)\n\n@return the color metadata field", "Executes the rebalance plan. Does so batch-by-batch. Between each batch,\nstatus is dumped to logger.info.\n\n@param rebalancePlan", "Checks if a given number is in the range of a short.\n\n@param number\na number which should be in the range of a short (positive or negative)\n\n@see java.lang.Short#MIN_VALUE\n@see java.lang.Short#MAX_VALUE\n\n@return number as a short (rounding might occur)", "Adds a row for the given component at the end of the group.\n\n@param component the component to wrap in the row to be added", "Polls from the URL provided.\n\n@param url the URL to poll from.\n@return the raw response.", "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it.", "Swaps two specified partitions.\n\nPair-wase partition swapping may be more prone to local minima than\nlarger perturbations. Could consider \"swapping\" a list of\n<nodeId/partitionId>. This would allow a few nodes to be identified\n(random # btw 2-5?) and then \"swapped\" (shuffled? rotated?).\n\n@return modified cluster metadata." ]
private Database readSingleSchemaFile(DatabaseIO reader, File schemaFile) { Database model = null; if (!schemaFile.isFile()) { log("Path "+schemaFile.getAbsolutePath()+" does not denote a schema file", Project.MSG_ERR); } else if (!schemaFile.canRead()) { log("Could not read schema file "+schemaFile.getAbsolutePath(), Project.MSG_ERR); } else { try { model = reader.read(schemaFile); log("Read schema file "+schemaFile.getAbsolutePath(), Project.MSG_INFO); } catch (Exception ex) { throw new BuildException("Could not read schema file "+schemaFile.getAbsolutePath()+": "+ex.getLocalizedMessage(), ex); } } return model; }
[ "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model" ]
[ "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "Adds all pairs from 'fromMap' to 'toMap' excluding once that matching the pattern", "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException", "Must be called with pathEntries lock taken", "Determines the component type for a given array type.\n\n@param type the given array type\n@return the component type of a given array type", "Prepares all files added for tus uploads.\n\n@param assemblyUrl the assembly url affiliated with the tus upload.\n@throws IOException when there's a failure with file retrieval.\n@throws ProtocolException when there's a failure with tus upload.", "Returns a matrix of StatisticsMatrix type so that SimpleMatrix functions create matrices\nof the correct type.", "Switches from a sparse to dense matrix", "Searches for cases where a minus sign means negative operator. That happens when there is a minus\nsign with a variable to its right and no variable to its left\n\nExample:\na = - b * c" ]
public static void showBooks(final ListOfBooks booksList){ if(booksList != null && booksList.getBook() != null && !booksList.getBook().isEmpty()){ List<BookType> books = booksList.getBook(); System.out.println("\nNumber of books: " + books.size()); int cnt = 0; for (BookType book : books) { System.out.println("\nBookNum: " + (cnt++ + 1)); List<PersonType> authors = book.getAuthor(); if(authors != null && !authors.isEmpty()){ for (PersonType author : authors) { System.out.println("Author: " + author.getFirstName() + " " + author.getLastName()); } } System.out.println("Title: " + book.getTitle()); System.out.println("Year: " + book.getYearPublished()); if(book.getISBN()!=null){ System.out.println("ISBN: " + book.getISBN()); } } }else{ System.out.println("List of books is empty"); } System.out.println(""); }
[ "Show books.\n\n@param booksList the books list" ]
[ "Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.", "Creates an IndexableTaskItem from provided FunctionalTaskItem.\n\n@param taskItem functional TaskItem\n@return IndexableTaskItem", "Gets type from super class's type parameter.", "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs.", "Use this API to delete ntpserver resources of given names.", "Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the duration\n@return Duration instance", "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance" ]
public static <T> OptionalValue<T> ofNullable(T value) { return new GenericOptionalValue<T>(RUNTIME_SOURCE, DEFAULT_KEY, value); }
[ "Returns new instance of OptionalValue with given value\n@param value wrapped object\n@param <T> type of the wrapped object\n@return given object wrapped in OptionalValue" ]
[ "Factory method, validates the given triplet year, month and dayOfMonth.\n\n@param prolepticYear the International fixed proleptic-year\n@param month the International fixed month, from 1 to 13\n@param dayOfMonth the International fixed day-of-month, from 1 to 28 (29 for Leap Day or Year Day)\n@return the International fixed date\n@throws DateTimeException if the date is invalid", "Retuns the Windows UNC style path with backslashs intead of forward slashes.\n\n@return The UNC path.", "Renders in LI tags, Wraps with UL tags optionally.", "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test.", "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function", "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Executes the sequence of operations", "Parses a tag formatted as defined by the HTTP standard.\n\n@param httpTag The HTTP tag string; if it starts with 'W/' the tag will be\nmarked as weak and the data following the 'W/' used as the tag;\notherwise it should be surrounded with quotes (e.g.,\n\"sometag\").\n\n@return A new tag instance.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Use this API to delete dnsaaaarec resources of given names." ]
private void processRanges(List<DateRange> ranges, ProjectCalendarDateRanges container) { if (ranges != null) { for (DateRange range : ranges) { container.addRange(range); } } }
[ "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
[ "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Use this API to fetch a sslglobal_sslpolicy_binding resources.", "running in App Engine", "Generates a diagonal matrix with the input vector on its diagonal\n\n@param vector The given matrix A.\n@return diagonalMatrix The matrix with the vectors entries on its diagonal", "Returns whether the division range includes the block of values for its prefix length", "Returns the current revision.", "Associate the batched Children with their owner object.\nLoop over owners", "Determines the field name based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting field name", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException" ]
public static KieRuntimeLogger newFileLogger(KieRuntimeEventManager session, String fileName) { return getKnowledgeRuntimeLoggerProvider().newFileLogger( session, fileName ); }
[ "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return" ]
[ "This main method provides an easy command line tool to compare two\nschemas.", "Use this API to unset the properties of sslocspresponder resource.\nProperties that need to be unset are specified in args array.", "Deletes the inbox message for given messageId\n@param messageId String messageId\n@return boolean value based on success of operation", "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", "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data", "Clears all properties of specified entity.\n\n@param entity to clear.", "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\n@param namespace namespace for the document\n@param documentId the id of the document to resume syncing\n@return true if successfully resumed, false if the document\ncould not be found or there was an error resuming", "Read relation data." ]
@RequestMapping(value = "api/servergroup", method = RequestMethod.POST) public @ResponseBody ServerGroup createServerGroup(Model model, @RequestParam(value = "name") String name, @RequestParam(value = "profileId", required = false) Integer profileId, @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception { if (profileId == null && profileIdentifier == null) { throw new Exception("profileId required"); } if (profileId == null) { profileId = ProfileService.getInstance().getIdFromName(profileIdentifier); } int groupId = ServerRedirectService.getInstance().addServerGroup(name, profileId); return ServerRedirectService.getInstance().getServerGroup(groupId, profileId); }
[ "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
[ "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", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Rotate list of String. Used for randomize selection of received endpoints\n\n@param strings\nlist of Strings\n@return the same list in random order", "Format a cue countdown indicator in the same way as the CDJ would at this point in the track.\n\n@return the value that the CDJ would display to indicate the distance to the next cue\n@see #getCueCountdown()", "Returns the connection count in this registry.\n\nNote it might count connections that are closed but not removed from registry yet\n\n@return the connection count", "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Release the broker instance.", "Use this API to unset the properties of nslimitselector resource.\nProperties that need to be unset are specified in args array.", "Construct an InterestRateSwapLegProductDescriptor from a node in a FIPXML file.\n\n@param leg The node containing the leg.\n@param forwardCurveName Forward curve name form outside the node.\n@param discountCurveName Discount curve name form outside the node.\n@param daycountConvention Daycount convention from outside the node.\n@return Descriptor of the swap leg." ]
@Override protected void onLoad() { super.onLoad(); // these styles need to be the same for the box and shadow so // that we can measure properly matchStyles("display"); matchStyles("fontSize"); matchStyles("fontFamily"); matchStyles("fontWeight"); matchStyles("lineHeight"); matchStyles("paddingTop"); matchStyles("paddingRight"); matchStyles("paddingBottom"); matchStyles("paddingLeft"); adjustSize(); }
[ "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." ]
[ "returns controller if a new device is found", "Post an artifact to the Grapes server\n\n@param artifact The artifact to post\n@param user The user posting the information\n@param password The user password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Enables lifecycle callbacks for Android devices\n@param application App's Application object", "Return whether or not the data object has a default value passed for this field of this type.", "Use this API to add inat resources.", "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface.", "Might not fill all of dst.", "Generate the init script from the Artifactory URL.\n\n@return The generated script.", "Search down all extent classes and return max of all found\nPK values." ]
public static vpnvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_auditnslogpolicy_binding obj = new vpnvserver_auditnslogpolicy_binding(); obj.set_name(name); vpnvserver_auditnslogpolicy_binding response[] = (vpnvserver_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vpnvserver_auditnslogpolicy_binding resources of given name ." ]
[ "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Deletes the metadata on this folder associated with a specified scope and template.\n\n@param templateName the metadata template type name.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").", "Associate the specified value with the specified key in this map.\nIf the map previously contained a mapping for this key, the old\nvalue is replaced and returned.\n\n@param key the key with which the value is to be associated\n@param value the value to be associated with this key\n@return the value previously mapped to the key, or null", "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback.", "This is more expensive.\n\n@param key key whose presence in this map is to be tested.\n@return <tt>true</tt> if this map contains a mapping for the specified\nkey.", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Produce an iterator over the input values in sorted order. Sorting will\noccur in the fixed space configured in the constructor, data will be\ndumped to disk as necessary.\n\n@param input An iterator over the input values\n@return An iterator over the values", "Answer the TableAlias for aPath\n@param aPath\n@param hintClasses\n@return TableAlias, null if none" ]
public static boolean uniform(Color color, Pixel[] pixels) { return Arrays.stream(pixels).allMatch(p -> p.toInt() == color.toRGB().toInt()); }
[ "Returns true if all pixels in the array have the same color" ]
[ "handles when a member leaves and hazelcast partition data is lost. We want\nto find the Futures that are waiting on lost data and error them", "Constructs a string representing this address according to the given parameters\n\n@param keepMixed if this address was constructed from a string with mixed representation (a:b:c:d:e:f:1.2.3.4), whether to keep it that way (ignored if makeMixed is true in the params argument)\n@param params the parameters for the address string", "returns a sorted array of properties", "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object", "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name .", "Polls the next char from the stack\n\n@return next char", "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@param selectedIconColor\n@param tinted\n@param imageView", "Use this API to fetch dnspolicy_dnspolicylabel_binding resources of given name .", "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions don't trigger infinite recursion." ]
public void registerServices(boolean force) { Injector injector = Guice.createInjector(getGuiceModule()); injector.injectMembers(this); registerInRegistry(force); }
[ "Inject members into this instance and register the services afterwards.\n@see #getGuiceModule()\n@see #registerInRegistry(boolean)\n@since 2.1" ]
[ "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name .", "Return the count of all objects found\nfor given class, using the PB-api within\nODMG - this may change in further versions.", "Helper method that encapsulates the logic to acquire a lock.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param lockName\nall calls to this method will contend for a unique lock with\nthe name of lockName\n@param timeout\nseconds until the lock will expire\n@param lockHolder\na unique string used to tell if you are the current holder of\na lock for both acquisition, and extension\n@return Whether or not the lock was acquired.", "Use this API to delete route6 resources.", "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "Retrieve a table by name.\n\n@param name table name\n@return Table instance", "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "Resizes an image to the specified width, changing width in the same proportion\n@param originalImage Image in memory\n@param widthOut The width to resize\n@return New Image in memory" ]
public void check(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { ensureNoTableInfoIfNoRepositoryInfo(classDef, checkLevel); checkModifications(classDef, checkLevel); checkExtents(classDef, checkLevel); ensureTableIfNecessary(classDef, checkLevel); checkFactoryClassAndMethod(classDef, checkLevel); checkInitializationMethod(classDef, checkLevel); checkPrimaryKey(classDef, checkLevel); checkProxyPrefetchingLimit(classDef, checkLevel); checkRowReader(classDef, checkLevel); checkObjectCache(classDef, checkLevel); checkProcedures(classDef, checkLevel); }
[ "Checks the given class descriptor.\n\n@param classDef The class descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated" ]
[ "Samples with replacement from a collection\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup.", "Rollback an app to a specific release.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param releaseUuid Release UUID. See {@link #listReleases} for a list of the app's releases.\n@return the release object", "Check if a given string is a template path or template content\n\nIf the string contains anyone the following characters then we assume it\nis content, otherwise it is path:\n\n* space characters\n* non numeric-alphabetic characters except:\n** dot \".\"\n** dollar: \"$\"\n\n@param string\nthe string to be tested\n@return `true` if the string literal is template content or `false` otherwise", "Walk project references recursively, adding thrift files to the provided list.", "Calculate the determinant.\n\n@return Determinant.", "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.", "Fires the event.\n\n@param source the event source\n@param date the date\n@param isTyping true if event was caused by user pressing key that may have changed the value", "Convert maturity given as offset in months to year fraction.\n\n@param maturityInMonths The maturity as offset in months.\n@return The maturity as year fraction." ]
public CurrencyQueryBuilder setNumericCodes(int... codes) { return set(CurrencyQuery.KEY_QUERY_NUMERIC_CODES, Arrays.stream(codes).boxed().collect(Collectors.toList())); }
[ "Set the numeric code. Setting it to -1 search for currencies that have no numeric code.\n\n@param codes the numeric codes.\n@return the query for chaining." ]
[ "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", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return", "Creates a new row with content with given cell context and a normal row style.\n@param content the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members\n@return a new row with content\n@throws {@link NullPointerException} if content was null", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "makes a deep clone of the object, using reflection.\n@param toCopy the object you want to copy\n@return", "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException" ]
private void validateAttributesToCreateANewRendererViewHolder() { if (viewType == null) { throw new NullContentException( "RendererBuilder needs a view type to create a RendererViewHolder"); } if (layoutInflater == null) { throw new NullLayoutInflaterException( "RendererBuilder needs a LayoutInflater to create a RendererViewHolder"); } if (parent == null) { throw new NullParentException( "RendererBuilder needs a parent to create a RendererViewHolder"); } }
[ "Throws one RendererException if the viewType, layoutInflater or parent are null." ]
[ "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "Find the animation associated with this avatar with the given name.\n@param name name of animation to look for\n@return {@link GVRAnimator} animation found or null if none with that name", "Verify that the given queues are all valid.\n\n@param queues the given queues", "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException", "Initialize. create the httpClientStore, tcpClientStore", "look for zero after country code, and remove if present", "Plots the rotated trajectory, spline and support points.", "Set the model used by the left table.\n\n@param model table model", "Function to filter files based on defined rules." ]
public static base_response update(nitro_service client, ipv6 resource) throws Exception { ipv6 updateresource = new ipv6(); updateresource.ralearning = resource.ralearning; updateresource.routerredirection = resource.routerredirection; updateresource.ndbasereachtime = resource.ndbasereachtime; updateresource.ndretransmissiontime = resource.ndretransmissiontime; updateresource.natprefix = resource.natprefix; updateresource.dodad = resource.dodad; return updateresource.update_resource(client); }
[ "Use this API to update ipv6." ]
[ "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", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Empirical data from 3.x, actual =40", "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)", "Returns the matrix's rank. Automatic selection of threshold\n\n@param A Matrix. Not modified.\n@return The rank of the decomposed matrix.", "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", "Extract the generic return type from the given method.\n@param method the method to check the return type for\n@param source the source class/interface defining the generic parameter types\n@param typeIndex the index of the type (e.g. 0 for Collections,\n0 for Map keys, 1 for Map values)\n@param nestingLevel the nesting level of the target type\n@return the generic type, or {@code null} if none", "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied data", "Set the model used by the left table.\n\n@param model table model" ]
private static Object getParam(final Object param) { final StringBuilder sb = new StringBuilder(); if(param instanceof String){ sb.append("'"); sb.append((String)param); sb.append("'"); } else if(param instanceof Boolean){ sb.append(String.valueOf((Boolean)param)); } else if(param instanceof Integer){ sb.append(String.valueOf((Integer)param)); } else if(param instanceof DBRegExp){ sb.append('/'); sb.append(((DBRegExp) param).toString()); sb.append('/'); } return sb.toString(); }
[ "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object" ]
[ "Downloads this version of the file to a given OutputStream while reporting the progress to a ProgressListener.\n@param output the stream to where the file will be written.\n@param listener a listener for monitoring the download's progress.", "Use this API to fetch the statistics of all appfwprofile_stats resources that are configured on netscaler.", "calculate distance of two points\n\n@param a\n@param b\n@return", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Use this API to fetch all the sslcertkey resources that are configured on netscaler.", "Interim and final clusters ought to have same partition counts, same\nzones, and same node state. Partitions per node may of course differ.\n\n@param interimCluster\n@param finalCluster", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException", "Constructs the appropriate MenuDrawer based on the position." ]
public static AssociationKeyMetadata getInverseAssociationKeyMetadata(OgmEntityPersister mainSidePersister, int propertyIndex) { Type propertyType = mainSidePersister.getPropertyTypes()[propertyIndex]; SessionFactoryImplementor factory = mainSidePersister.getFactory(); // property represents no association, so no inverse meta-data can exist if ( !propertyType.isAssociationType() ) { return null; } Joinable mainSideJoinable = ( (AssociationType) propertyType ).getAssociatedJoinable( factory ); OgmEntityPersister inverseSidePersister = null; // to-many association if ( mainSideJoinable.isCollection() ) { inverseSidePersister = (OgmEntityPersister) ( (OgmCollectionPersister) mainSideJoinable ).getElementPersister(); } // to-one else { inverseSidePersister = (OgmEntityPersister) mainSideJoinable; mainSideJoinable = mainSidePersister; } String mainSideProperty = mainSidePersister.getPropertyNames()[propertyIndex]; // property is a one-to-one association (a many-to-one cannot be on the inverse side) -> get the meta-data // straight from the main-side persister AssociationKeyMetadata inverseOneToOneMetadata = mainSidePersister.getInverseOneToOneAssociationKeyMetadata( mainSideProperty ); if ( inverseOneToOneMetadata != null ) { return inverseOneToOneMetadata; } // process properties of inverse side and try to find association back to main side for ( String candidateProperty : inverseSidePersister.getPropertyNames() ) { Type type = inverseSidePersister.getPropertyType( candidateProperty ); // candidate is a *-to-many association if ( type.isCollectionType() ) { OgmCollectionPersister inverseCollectionPersister = getPersister( factory, (CollectionType) type ); String mappedByProperty = inverseCollectionPersister.getMappedByProperty(); if ( mainSideProperty.equals( mappedByProperty ) ) { if ( isCollectionMatching( mainSideJoinable, inverseCollectionPersister ) ) { return inverseCollectionPersister.getAssociationKeyMetadata(); } } } } return null; }
[ "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" ]
[ "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info.", "Set the model used by the right table.\n\n@param model table model", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be thawed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\n@param isPaused whether or not this config is frozen", "Replace full request content.\n\n@param requestContentTemplate\nthe request content template\n@param replacementString\nthe replacement string\n@return the string", "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index", "End building the prepared script\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance" ]
public static SQLService getInstance() throws Exception { if (_instance == null) { _instance = new SQLService(); _instance.startServer(); // default pool size is 20 // can be overriden by env variable int dbPool = 20; if (Utils.getEnvironmentOptionValue(Constants.SYS_DATABASE_POOL_SIZE) != null) { dbPool = Integer.valueOf(Utils.getEnvironmentOptionValue(Constants.SYS_DATABASE_POOL_SIZE)); } // initialize connection pool PoolProperties p = new PoolProperties(); String connectString = "jdbc:h2:tcp://" + _instance.databaseHost + ":" + String.valueOf(_instance.port) + "/" + _instance.databaseName + "/proxydb;MULTI_THREADED=true;AUTO_RECONNECT=TRUE;AUTOCOMMIT=ON"; p.setUrl(connectString); p.setDriverClassName("org.h2.Driver"); p.setUsername("sa"); p.setJmxEnabled(true); p.setTestWhileIdle(false); p.setTestOnBorrow(true); p.setValidationQuery("SELECT 1"); p.setTestOnReturn(false); p.setValidationInterval(5000); p.setTimeBetweenEvictionRunsMillis(30000); p.setMaxActive(dbPool); p.setInitialSize(5); p.setMaxWait(30000); p.setRemoveAbandonedTimeout(60); p.setMinEvictableIdleTimeMillis(30000); p.setMinIdle(10); p.setLogAbandoned(true); p.setRemoveAbandoned(true); _instance.datasource = new DataSource(); _instance.datasource.setPoolProperties(p); } return _instance; }
[ "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception" ]
[ "Set default values for annotations.\nInitial annotation take precedence over the default annotation when both annotation types are present\n\n@param defaultAnnotations default value for annotations", "Use this API to update gslbservice resources.", "Use this API to fetch sslpolicylabel resource of given name .", "This takes into account objects that breaks the JavaBean convention\nand have as getter for Boolean objects an \"isXXX\" method.\n@param dest\n@param orig", "Set the visibility of the object.\n\n@see Visibility\n@param visibility\nThe visibility of the object.\n@return {@code true} if the visibility was changed, {@code false} if it\nwasn't.", "Get the current attribute type.\n@param key the entry's key, not null\n@return the current attribute type, or null, if no such attribute exists.", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing", "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified." ]
public ReferrerList getCollectionReferrers(Date date, String domain, String collectionId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_COLLECTION_REFERRERS, domain, "collection_id", collectionId, date, perPage, page); }
[ "Get a list of referrers from a given domain to a collection.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionReferrers.html\"" ]
[ "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", "Execute a Runnable on a thread pool thread\n\n@param priority\nThe thread priority. Be careful with this! <blockquote>\n<b>Note:</b> Use Thread.MIN_PRIORITY..Thread.MAX_PRIORITY\n(1..10), <b>not</b> the Process/Linux -20..19 range!\n</blockquote>\n@param threadProc\nThe code to run. It doesn't matter if this code never returns\n- by using spawn (and, hence the thread pool) there is at\nleast a chance that you will be reusing a thread, thus saving\nteardown/startup costs.\n\n@return A Future<?> that lets you wait for thread completion, if\nnecessary", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found.", "Parse priority.\n\n\n@param priority priority value\n@return Priority instance", "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", "SetLoop will either set the GVRNodeAnimation's Repeat Mode to REPEATED if loop is true.\nor it will set the GVRNodeAnimation's Repeat Mode to ONCE if loop is false\nif loop is set to TRUE, when it was previously FALSE, then start the Animation.\n@param doLoop\n@param gvrContext", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException" ]
public String join(List<String> list) { if (list == null) { return null; } StringBuilder sb = new StringBuilder(); boolean first = true; for (String s : list) { if (s == null) { if (convertEmptyToNull) { s = ""; } else { throw new IllegalArgumentException("StringListFlattener does not support null strings in the list. Consider calling setConvertEmptyToNull(true)."); } } if (!first) { sb.append(separator); } for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == escapeChar || c == separator) { sb.append(escapeChar); } sb.append(c); } first = false; } return sb.toString(); }
[ "Joins the given list into a single string." ]
[ "Adds a table to this model.\n\n@param table The table", "Utility function that copies a string array except for the first element\n\n@param arr Original array of strings\n@return Copied array of strings", "Filter the URI based on a regular expression.\nCan be combined with an additional file-extension filter.", "Join the Collection of Strings using the specified delimter and optionally quoting each\n\n@param s\nThe String collection\n@param delimiter\nthe delimiter String\n@param doQuote\nwhether or not to quote the Strings\n@return The joined String", "Set trimmed value.\n\n@param t Trimmed value.", "Apply the necessary rotation to the transform so that it is in front of\nthe camera.\n\n@param transform The transform to modify.", "Session connect generate channel.\n\n@param session\nthe session\n@return the channel\n@throws JSchException\nthe j sch exception", "Rename with retry.\n\n@param from\n@param to\n@return <tt>true</tt> if the file was successfully renamed.", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange" ]
protected void AddLODSceneObject(GVRSceneObject currentSceneObject) { if (this.transformLODSceneObject != null) { GVRSceneObject levelOfDetailSceneObject = null; if ( currentSceneObject.getParent() == this.transformLODSceneObject) { levelOfDetailSceneObject = currentSceneObject; } else { GVRSceneObject lodSceneObj = root.getSceneObjectByName((currentSceneObject.getName() + TRANSFORM_TRANSLATION_)); if ( lodSceneObj != null ) { if (lodSceneObj.getParent() == this.transformLODSceneObject) { levelOfDetailSceneObject = lodSceneObj; } } if (levelOfDetailSceneObject == null) { lodSceneObj = root.getSceneObjectByName((currentSceneObject.getName() + TRANSFORM_ROTATION_)); if ( lodSceneObj != null ) { if (lodSceneObj.getParent() == this.transformLODSceneObject) { levelOfDetailSceneObject = lodSceneObj; } } } if (levelOfDetailSceneObject == null) { lodSceneObj = root.getSceneObjectByName((currentSceneObject.getName() + TRANSFORM_SCALE_)); if ( lodSceneObj != null ) { if (lodSceneObj.getParent() == this.transformLODSceneObject) { levelOfDetailSceneObject = lodSceneObj; } } } } if ( levelOfDetailSceneObject != null) { final GVRLODGroup lodGroup = (GVRLODGroup) this.transformLODSceneObject.getComponent(GVRLODGroup.getComponentType()); lodGroup.addRange(this.getMinRange(), levelOfDetailSceneObject); this.increment(); } } }
[ "Add the currentSceneObject to an active Level-of-Detail" ]
[ "Remove the group and all references to it\n\n@param groupId ID of group", "Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Add a misc file.\n\n@param name the file name\n@param path the relative path\n@param newHash the new hash of the added content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Returns the proxies real subject. The subject will be materialized if\nnecessary.\n\n@return The subject", "An efficient method for exchanging data between two bit strings. Both bit strings must\nbe long enough that they contain the full length of the specified substring.\n@param other The bitstring with which this bitstring should swap bits.\n@param start The start position for the substrings to be exchanged. All bit\nindices are big-endian, which means position 0 is the rightmost bit.\n@param length The number of contiguous bits to swap.", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Use this API to delete sslcipher resources of given names.", "Executes the mojo." ]