query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void setValue(Vector3f pos) { mX = pos.x; mY = pos.y; mZ = pos.z; }
[ "Sets the position vector of the keyframe." ]
[ "Gets the message payload.\n\n@param message the message\n@return the payload", "Returns a matrix of StatisticsMatrix type so that SimpleMatrix functions create matrices\nof the correct type.", "Processes the template for all extents of the current class.\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\"", "Gets the message payload.\n\n@param message the message\n@return the payload", "Adds tags to the If-Match header.\n\n@param tag the tag to add, may be null. This means the same as adding {@link Tag#ALL}\n@throws IllegalArgumentException if ALL is supplied more than once, or you add a null tag more than once.\n@return a new Conditionals object with the If-Match tag added.", "Provides an object that can build SQL clauses to match this string representation.\n\nThis method can be overridden for other IP address types to match in their own ways.\n\n@param isEntireAddress\n@param translator\n@return", "Record a new event.", "Returns a new Set containing all the objects in the specified array.", "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2" ]
private void updateBaseCalendarNames(List<Pair<ProjectCalendar, Integer>> baseCalendars) { for (Pair<ProjectCalendar, Integer> pair : baseCalendars) { ProjectCalendar cal = pair.getFirst(); Integer baseCalendarID = pair.getSecond(); ProjectCalendar baseCal = m_calendarMap.get(baseCalendarID); if (baseCal != null) { cal.setParent(baseCal); } } }
[ "The way calendars are stored in an MPP8 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs" ]
[ "Get the FieldDescriptors of the extent based on the FieldDescriptors of the parent.", "Returns a list of resource wrappers created from the input list of resources.\n\n@param cms the current OpenCms user context\n@param list the list to create the resource wrapper list from\n\n@return the list of wrapped resources.", "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Create an image of the proper size to hold a new waveform preview image and draw it.", "Determine if a CharSequence can be parsed as a Long.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isLong(String)\n@since 1.8.2", "This method extracts data for a single resource from a Planner file.\n\n@param plannerResource Resource data", "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects", "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude", "Modify a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder" ]
public static base_response unset(nitro_service client, snmpmanager resource, String[] args) throws Exception{ snmpmanager unsetresource = new snmpmanager(); unsetresource.ipaddress = resource.ipaddress; unsetresource.netmask = resource.netmask; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of snmpmanager resource.\nProperties that need to be unset are specified in args array." ]
[ "Use this API to renumber nspbr6 resources.", "Gets the message payload.\n\n@param message the message\n@return the payload", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Returns an array of normalized strings for this host name instance.\n\nIf this represents an IP address, the address segments are separated into the returned array.\nIf this represents a host name string, the domain name segments are separated into the returned array,\nwith the top-level domain name (right-most segment) as the last array element.\n\nThe individual segment strings are normalized in the same way as {@link #toNormalizedString()}\n\nPorts, service name strings, prefix lengths, and masks are all omitted from the returned array.\n\n@return", "Reads a \"flags\" argument from the request.", "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties", "given is at the begining, of is at the end", "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", "Use this API to update systemuser resources." ]
public ThumborUrlBuilder trim(TrimPixelColor value, int colorTolerance) { if (colorTolerance < 0 || colorTolerance > 442) { throw new IllegalArgumentException("Color tolerance must be between 0 and 442."); } if (colorTolerance > 0 && value == null) { throw new IllegalArgumentException("Trim pixel color value must not be null."); } isTrim = true; trimPixelColor = value; trimColorTolerance = colorTolerance; return this; }
[ "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." ]
[ "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document", "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "If there are any observer methods, they must be static or business\nmethods.", "Throws an exception if at least one results directory is missing.", "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "Returns only the leaf categories of the wrapped categories.\n\nThe method assumes that categories are ordered in the list, i.e., parents are directly followed by their children.\n\nNOTE: In the complete category tree a leaf of the wrapped tree part may not be a leaf.\n\n@return only the leaf categories of the wrapped categories.", "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle." ]
public ServerSetup[] build(Properties properties) { List<ServerSetup> serverSetups = new ArrayList<>(); String hostname = properties.getProperty("greenmail.hostname", ServerSetup.getLocalHostAddress()); long serverStartupTimeout = Long.parseLong(properties.getProperty("greenmail.startup.timeout", "-1")); // Default setups addDefaultSetups(hostname, properties, serverSetups); // Default setups for test addTestSetups(hostname, properties, serverSetups); // Default setups for (String protocol : ServerSetup.PROTOCOLS) { addSetup(hostname, protocol, properties, serverSetups); } for (ServerSetup setup : serverSetups) { if (properties.containsKey(GREENMAIL_VERBOSE)) { setup.setVerbose(true); } if (serverStartupTimeout >= 0L) { setup.setServerStartupTimeout(serverStartupTimeout); } } return serverSetups.toArray(new ServerSetup[serverSetups.size()]); }
[ "Creates a server setup based on provided properties.\n\n@param properties the properties.\n@return the server setup, or an empty array." ]
[ "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set", "Calculate the units percent complete.\n\n@param row task data\n@return percent complete", "Inserts a marshalled endpoint reference to a given DOM tree rooted by parent.\n@param wsAddr\n@param parent\n@throws ServiceLocatorException", "Create a Vendor from a Func0", "Build a request URL.\n\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException\n@deprecated use {@link #buildSecureUrl(java.lang.String, int, java.lang.String, java.util.Map) }", "Enqueues a message for sending on the send thread.\n@param serialMessage the serial message to enqueue.", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Uploads chunk of a stream to an open upload session.\n@param stream the stream that is used to read the chunck using the offset and part size.\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size." ]
@Override public boolean addAll(Collection<? extends T> collection) { boolean changed = false; for (T data : collection) { try { if (addElement(data)) { changed = true; } } catch (SQLException e) { throw new IllegalStateException("Could not create data elements in dao", e); } } return changed; }
[ "Add the collection of elements to this collection. This will also them to the associated database table.\n\n@return Returns true if any of the items did not already exist in the collection otherwise false." ]
[ "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.", "Start the socket server and waiting for finished\n\n@throws InterruptedException thread interrupted", "Deletes a chain of vertices from this list.", "sorts are a bit more awkward and need a helper...", "Draw a rectangular boundary with this color and linewidth.\n\n@param rect\nrectangle\n@param color\ncolor\n@param linewidth\nline width", "Checks if the given group of statements contains the given value as the\nvalue of a main snak of some statement.\n\n@param statementGroup\nthe statement group to scan\n@param value\nthe value to scan for\n@return true if value was found", "Finds all lazily-declared classes and methods and adds their definitions to the source.", "This method is currently in use only by the SvnCoordinator", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not." ]
public static Platform detect() throws UnsupportedPlatformException { String osArch = getProperty("os.arch"); String osName = getProperty("os.name"); for (Arch arch : Arch.values()) { if (arch.pattern.matcher(osArch).matches()) { for (OS os : OS.values()) { if (os.pattern.matcher(osName).matches()) { return new Platform(arch, os); } } } } String msg = String.format("Unsupported platform %s %s", osArch, osName); throw new UnsupportedPlatformException(msg); }
[ "Attempt to detect the current platform.\n\n@return The current platform.\n\n@throws UnsupportedPlatformException if the platform cannot be detected." ]
[ "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "call with lock on 'children' held", "Encodes the given source into an encoded String using the rules specified\nby the given component and with the given options.\n@param source the source string\n@param encoding the encoding of the source string\n@param type the URI component for the source\n@return the encoded URI\n@throws IllegalArgumentException when the given uri parameter is not a valid URI", "Use this API to fetch all the auditmessages resources that are configured on netscaler.", "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position.", "Keep a cache of items files associated with classification in order to improve performance.", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "Gets an overrideID for a class name, method name\n\n@param className name of class\n@param methodName name of method\n@return override ID of method", "Use this API to fetch statistics of gslbdomain_stats resource of given name ." ]
public static String get(Properties props, String name, String defval) { String value = props.getProperty(name); if (value == null) value = defval; return value; }
[ "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned." ]
[ "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "Gets constructors with given annotation type\n\n@param annotationType The annotation type to match\n@return A set of abstracted constructors with given annotation type. If\nthe constructors set is empty, initialize it first. Returns an\nempty set if there are no matches.\n@see org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType#getEnhancedConstructors(Class)", "Returns the given dialect, narrowed down to the given dialect facet in case it is implemented by the dialect.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return the given dialect, narrowed down to the given dialect facet or {@code null} in case the given dialect\ndoes not implement the given facet", "Register a loader with the 'sniffer'.\n\n'Factory loaders' are pre-registered. To load a format we don't support,\ncreate a {@link GVRCompressedTextureLoader} descendant. Then, before\ntrying to load any files in that format, create an instance and call\n{@link #register()}:\n\n<pre>\n\nnew MyCompressedFormat().register();\n</pre>", "Use this API to update spilloverpolicy.", "Add the dependencies if the deployment contains a service activator loader entry.\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Use this API to update snmpmanager.", "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds", "Executes a batch plan.\n\n@param batchId Used as the ID of the batch plan. This allows related\ntasks on client- & server-side to pretty print messages in a\nmanner that debugging can track specific batch plans across the\ncluster.\n@param batchPlan The batch plan..." ]
private String checkinScriptCommand() { String exportModules = ""; if ((m_modulesToExport != null) && !m_modulesToExport.isEmpty()) { StringBuffer exportModulesParam = new StringBuffer(); for (String moduleName : m_modulesToExport) { exportModulesParam.append(" ").append(moduleName); } exportModulesParam.replace(0, 1, " \""); exportModulesParam.append("\" "); exportModules = " --modules " + exportModulesParam.toString(); } String commitMessage = ""; if (m_commitMessage != null) { commitMessage = " -msg \"" + m_commitMessage.replace("\"", "\\\"") + "\""; } String gitUserName = ""; if (m_gitUserName != null) { if (m_gitUserName.trim().isEmpty()) { gitUserName = " --ignore-default-git-user-name"; } else { gitUserName = " --git-user-name \"" + m_gitUserName + "\""; } } String gitUserEmail = ""; if (m_gitUserEmail != null) { if (m_gitUserEmail.trim().isEmpty()) { gitUserEmail = " --ignore-default-git-user-email"; } else { gitUserEmail = " --git-user-email \"" + m_gitUserEmail + "\""; } } String autoPullBefore = ""; if (m_autoPullBefore != null) { autoPullBefore = m_autoPullBefore.booleanValue() ? " --pull-before " : " --no-pull-before"; } String autoPullAfter = ""; if (m_autoPullAfter != null) { autoPullAfter = m_autoPullAfter.booleanValue() ? " --pull-after " : " --no-pull-after"; } String autoPush = ""; if (m_autoPush != null) { autoPush = m_autoPush.booleanValue() ? " --push " : " --no-push"; } String exportFolder = " --export-folder \"" + m_currentConfiguration.getModuleExportPath() + "\""; String exportMode = " --export-mode " + m_currentConfiguration.getExportMode(); String excludeLibs = ""; if (m_excludeLibs != null) { excludeLibs = m_excludeLibs.booleanValue() ? " --exclude-libs" : " --no-exclude-libs"; } String commitMode = ""; if (m_commitMode != null) { commitMode = m_commitMode.booleanValue() ? " --commit" : " --no-commit"; } String ignoreUncleanMode = ""; if (m_ignoreUnclean != null) { ignoreUncleanMode = m_ignoreUnclean.booleanValue() ? " --ignore-unclean" : " --no-ignore-unclean"; } String copyAndUnzip = ""; if (m_copyAndUnzip != null) { copyAndUnzip = m_copyAndUnzip.booleanValue() ? " --copy-and-unzip" : " --no-copy-and-unzip"; } String configFilePath = m_currentConfiguration.getFilePath(); return "\"" + DEFAULT_SCRIPT_FILE + "\"" + exportModules + commitMessage + gitUserName + gitUserEmail + autoPullBefore + autoPullAfter + autoPush + exportFolder + exportMode + excludeLibs + commitMode + ignoreUncleanMode + copyAndUnzip + " \"" + configFilePath + "\""; }
[ "Returns the command to run by the shell to normally run the checkin script.\n@return the command to run by the shell to normally run the checkin script." ]
[ "Prints to a file. If the file does not exist, rewrites the file;\ndoes not append.", "Writes this JAR to an output stream, and closes the stream.", "Randomly shuffle partitions between nodes within every zone.\n\n@param nextCandidateCluster cluster object.\n@param randomSwapAttempts See RebalanceCLI.\n@param randomSwapSuccesses See RebalanceCLI.\n@param randomSwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs List of store definitions\n@return updated cluster", "performs a SELECT operation against RDBMS.\n@param query the query string.\n@param cld ClassDescriptor providing JDBC information.", "Gets the actual type arguments of a Type\n\n@param type The type to examine\n@return The type arguments", "Build a URL with Query String and URL Parameters.\n@param base base URL\n@param queryString query string\n@param values URL Parameters\n@return URL", "Register this broker in ZK for the first time.", "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 given dialect, narrowed down to the given dialect facet in case it is implemented by the dialect.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return the given dialect, narrowed down to the given dialect facet or {@code null} in case the given dialect\ndoes not implement the given facet" ]
public static Artifact withArtifactId(String artifactId) { Artifact artifact = new Artifact(); artifact.artifactId = new RegexParameterizedPatternParser(artifactId); return artifact; }
[ "Start with specifying the artifactId" ]
[ "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong", "Updates the existing cluster such that we remove partitions mentioned\nfrom the stealer node and add them to the donor node\n\n@param currentCluster Existing cluster metadata. Both stealer and donor\nnode should already exist in this metadata\n@param stealerNodeId Id of node for which we are stealing the partitions\n@param donatedPartitions List of partitions we are moving\n@return Updated cluster metadata", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "1-D Gaussian kernel.\n\n@param size Kernel size (should be odd), [3, 101].\n@return Returns 1-D Gaussian kernel of the specified size.", "Converts to a link-local Ipv6 address. Any MAC prefix length is ignored. Other elements of this address section are incorporated into the conversion.\nThis will provide the latter 4 segments of an IPv6 address, to be paired with the link-local IPv6 prefix of 4 segments.\n\n@return", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Use this API to fetch the statistics of all nsacl6_stats resources that are configured on netscaler.", "Extract name of the resource from a resource ID.\n@param id the resource ID\n@return the name of the resource" ]
private String createMethodSignature(Method method) { StringBuilder sb = new StringBuilder(); sb.append("("); for (Class<?> type : method.getParameterTypes()) { sb.append(getTypeString(type)); } sb.append(")"); Class<?> type = method.getReturnType(); if (type.getName().equals("void")) { sb.append("V"); } else { sb.append(getTypeString(type)); } return sb.toString(); }
[ "Creates a method signature.\n\n@param method Method instance\n@return method signature" ]
[ "Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found", "Handles adding a key. Calls the registered listener and wraps it's method in some GUI adjustments.", "Set the offsets in the compressed data area for each mip-map level.\n@param offsets array of offsets", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Returns the description of the running container.\n\n@param client the client used to query the server\n\n@return the description of the running container\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to query the container fails", "Read a Synchro time from an input stream.\n\n@param is input stream\n@return Date instance", "Use this API to fetch bridgegroup_nsip_binding resources of given name .", "Clear tmpData in subtree rooted in this node.", "Get the real Object for already materialized Handler\n\n@param objectOrProxy\n@return Object or null if the Handel is not materialized" ]
private synchronized static Cluster getCluster(URI baseUrl, String[] personalities) throws IOException { final Entry<URI, Set<String>> key = Maps.immutableEntry(baseUrl, (Set<String>)ImmutableSet.copyOf(personalities)); Cluster result = CLUSTERS.get(key); if (result != null) { return result; } result = new Cluster(EmbeddedPostgreSQL.start()); final DBI dbi = new DBI(result.getPg().getTemplateDatabase()); final Migratory migratory = new Migratory(new MigratoryConfig() {}, dbi, dbi); migratory.addLocator(new DatabasePreparerLocator(migratory, baseUrl)); final MigrationPlan plan = new MigrationPlan(); int priority = 100; for (final String personality : personalities) { plan.addMigration(personality, Integer.MAX_VALUE, priority--); } migratory.dbMigrate(plan); result.start(); CLUSTERS.put(key, result); return result; }
[ "Each schema set has its own database cluster. The template1 database has the schema preloaded so that\neach test case need only create a new database and not re-invoke Migratory." ]
[ "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters", "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Sets the initial MoificationState of the wrapped object myObj. The initial state will be StateNewDirty if myObj\nis not persisten already. The state will be set to StateOldClean if the object is already persistent.", "Mark the top level deployment as being a JPA deployment. If the deployment is not a top level deployment the parent is\nmarked instead", "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", "Write a standard CoNLL format output file.\n\n@param doc The document: A List of CoreLabel\n@param out Where to send the answers to", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred." ]
public static Info rand( final Variable A , final Variable B , ManagerTempVariables manager) { Info ret = new Info(); final VariableMatrix output = manager.createMatrix(); ret.output = output; if( A instanceof VariableInteger && B instanceof VariableInteger ) { ret.op = new Operation("rand-ii") { @Override public void process() { int numRows = ((VariableInteger)A).value; int numCols = ((VariableInteger)B).value; output.matrix.reshape(numRows,numCols); RandomMatrices_DDRM.fillUniform(output.matrix, 0,1,manager.getRandom()); } }; } else { throw new RuntimeException("Expected two integers got "+A+" "+B); } return ret; }
[ "Uniformly random numbers" ]
[ "Schedule at most one task.\n\nThe scheduled task *must* invoke 'doneTask()' upon\ncompletion/termination.\n\n@param executeService flag to control execution of the service, some tests pass\nin value 'false'\n@return The task scheduled or null if not possible to schedule a task at\nthis time.", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Uses current variable assignments and info in an NWiseActionTag to expand on an n wise combinatorial set\n\n@param action an NWiseAction Action\n@param possibleStateList a current list of possible states produced so far from expanding a model state\n@return every input possible state expanded on an n wise combinatorial set defined by that input possible state", "Process a single outline code.\n\n@param parentRow outline code to task mapping table\n@throws SQLException", "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", "Execute push docker image on agent\n\n@param launcher\n@param log\n@param imageTag\n@param username\n@param password\n@param host @return\n@throws IOException\n@throws InterruptedException", "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects", "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param expectedLength\nThe expected array length", "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name" ]
public static String load(LoadConfiguration config, String prefix) { if (config.getMode() == Mode.INSERT) { return loadInsert(config, prefix); } else if (config.getMode() == Mode.UPDATE) { return loadUpdate(config, prefix); } throw new IllegalArgumentException("Unsupported mode " + config.getMode()); }
[ "Builds sql clause to load data into a database.\n\n@param config Load configuration.\n@param prefix Prefix for temporary resources.\n@return the load DDL" ]
[ "Compute a Catmull-Rom spline for RGB values, but with variable knot spacing.\n@param x the input parameter\n@param numKnots the number of knots in the spline\n@param xknots the array of knot x values\n@param yknots the array of knot y values\n@return the spline value", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Sets whether an individual list value is selected.\n\n@param value the value of the item to be selected or unselected\n@param selected <code>true</code> to select the item", "This method returns the value random variable of the product within the specified model,\nevaluated at a given evalutationTime.\nCash-flows prior evaluationTime are not considered.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model The model used to price the product.\n@return The random variable representing the value of the product discounted to evaluation time.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive", "Helper method for getting the current parameter values from a list of annotated parameters.\n\n@param parameters The list of annotated parameter to look up\n@param manager The Bean manager\n@return The object array of looked up values", "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Use this API to fetch all the nsfeature resources that are configured on netscaler." ]
@SuppressWarnings("unchecked") public <T> Map<String, T> find(final Class<T> valueTypeToFind) { return (Map<String, T>) this.values.entrySet().stream() .filter(input -> valueTypeToFind.isInstance(input.getValue())) .collect( Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }
[ "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." ]
[ "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data", "Get top deployment unit.\n\n@param unit the current deployment unit\n@return top deployment unit", "Converts the given string to a clob object\n\n@param stringName string name to clob\n@param sqlConnection Connection object\n@return Clob object or NULL", "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object", "Gathers all parameters' annotations for the given method, starting from the third parameter.", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping.", "Helper method to Close all open socket connections and checkin back to\nthe pool\n\n@param storeNamesToCleanUp List of stores to be cleanedup from the current\nstreaming session", "Reads a command \"tag\" from the request.", "Reads basic summary details from the project properties.\n\n@param file MPX file" ]
public String getAlias(String path) { if (m_allPathsAliased && m_attributePath.lastIndexOf(path) != -1) { return m_name; } Object retObj = m_mapping.get(path); if (retObj != null) { return (String) retObj; } return null; }
[ "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias" ]
[ "Verifies that the TestMatrix is correct and sane without using a specification.\nThe Proctor API doesn't use a test specification so that it can serve all tests in the matrix\nwithout restriction.\nDoes a limited set of sanity checks that are applicable when there is no specification,\nand thus no required tests or provided context.\n\n@param testMatrix the {@link TestMatrixArtifact} to be verified.\n@param matrixSource a {@link String} of the source of proctor artifact. For example a path of proctor artifact file.\n@return a {@link ProctorLoadResult} to describe the result of verification. It contains errors of verification and a list of missing test.", "Flush the in-memory data to the file", "Makes http GET request.\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException", "Sets all padding to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Restore the recorded state from the rollback xml.\n\n@param target the patchable target\n@param rollbackPatchId the rollback patch id\n@param patchType the the current patch type\n@param history the recorded history\n@throws PatchingException", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Creates the name of the .story file to be wrote with the testcase. The\nname of the scenario must be given with spaces.\n\n@param scenarioName\n- The scenario name, with spaces\n@return the .story file name.", "sets the row reader class name for thie class descriptor", "Sets currency symbol.\n\n@param symbol currency symbol" ]
private void validateSameDay(ProjectCalendar calendar, LinkedList<TimephasedWork> list) { for (TimephasedWork assignment : list) { Date assignmentStart = assignment.getStart(); Date calendarStartTime = calendar.getStartTime(assignmentStart); Date assignmentStartTime = DateHelper.getCanonicalTime(assignmentStart); Date assignmentFinish = assignment.getFinish(); Date calendarFinishTime = calendar.getFinishTime(assignmentFinish); Date assignmentFinishTime = DateHelper.getCanonicalTime(assignmentFinish); double totalWork = assignment.getTotalAmount().getDuration(); if (assignmentStartTime != null && calendarStartTime != null) { if ((totalWork == 0 && assignmentStartTime.getTime() != calendarStartTime.getTime()) || (assignmentStartTime.getTime() < calendarStartTime.getTime())) { assignmentStart = DateHelper.setTime(assignmentStart, calendarStartTime); assignment.setStart(assignmentStart); } } if (assignmentFinishTime != null && calendarFinishTime != null) { if ((totalWork == 0 && assignmentFinishTime.getTime() != calendarFinishTime.getTime()) || (assignmentFinishTime.getTime() > calendarFinishTime.getTime())) { assignmentFinish = DateHelper.setTime(assignmentFinish, calendarFinishTime); assignment.setFinish(assignmentFinish); } } } }
[ "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data" ]
[ "process all messages in this batch, provided there is plenty of output space.", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "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", "Checks length and compare order of field names with declared PK fields in metadata.", "get children nodes name\n\n@param zkClient zkClient\n@param path full path\n@return children nodes name or null while path not exist", "Set new particle coordinates somewhere off screen and apply new direction towards the screen\n\n@param position the particle position to apply new values to", "Get a property as a double or null.\n\n@param key the property name", "Get the Query Paramaters to be used for search request.\n@return this.QueryStringBuilder.", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer" ]
public void updateInfo(Info info) { BoxAPIConnection api = this.getAPI(); URL url = COLLABORATION_URL_TEMPLATE.build(api.getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(api, url, "PUT"); request.setBody(info.getPendingChanges()); BoxAPIResponse boxAPIResponse = request.send(); if (boxAPIResponse instanceof BoxJSONResponse) { BoxJSONResponse response = (BoxJSONResponse) boxAPIResponse; JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); info.update(jsonObject); } }
[ "Updates the information about this collaboration with any info fields that have been modified locally.\n\n@param info the updated info." ]
[ "Parses an RgbaColor from a hexadecimal, rgb, rgba, hsl, or hsla\nvalue.\n\n@return returns the parsed color", "Return all server groups for a profile\n\n@param profileId ID of profile\n@return collection of ServerGroups for a profile", "Called from the native side\n@param eye", "Use this API to fetch snmpalarm resource of given name .", "Obtains a Discordian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter.", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "Adds search fields from elements on a container page to a container page's document.\n@param document The document for the container page\n@param cms The current CmsObject\n@param resource The resource of the container page\n@param systemFields The list of field names for fields where mappings to should be discarded, since these fields are used system internally.\n@return the manipulated document", "Creates a map of identifiers or page titles to documents retrieved via\nthe API URL\n\n@param properties\nparameter setting for wbgetentities\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\nif we encounter network issues or HTTP 500 errors from Wikibase" ]
public int getMinutesPerMonth() { return m_minutesPerMonth == null ? NumberHelper.getInt(getParentFile().getProjectProperties().getMinutesPerMonth()) : m_minutesPerMonth.intValue(); }
[ "Retrieve the number of minutes per month for this calendar.\n\n@return minutes per month" ]
[ "Retrieves a field type from a location in a data block.\n\n@param data data block\n@param offset offset into data block\n@return field type", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "Add a dependency task group for this model.\n\n@param dependency the dependency.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependency task group", "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", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "convenience factory method for the most usual case.", "Reads the table data from an input stream and breaks\nit down into rows.\n\n@param is input stream", "Handler for week of month changes.\n@param event the change event." ]
public static base_response delete(nitro_service client, String id) throws Exception { linkset deleteresource = new linkset(); deleteresource.id = id; return deleteresource.delete_resource(client); }
[ "Use this API to delete linkset of given name." ]
[ "call with lock on 'children' held", "Returns the associated SQL WHERE statement.", "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\".", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Use this API to fetch sslcertkey_crldistribution_binding resources of given name .", "Extract calendar data from the file.\n\n@throws SQLException", "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public String getPermalinkForCurrentPage(CmsObject cms) { return getPermalink(cms, cms.getRequestContext().getUri(), cms.getRequestContext().getDetailContentId()); }
[ "Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<\n\n@param cms the CMS context to use to generate the permalink\n\n@return the permalink" ]
[ "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>.", "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation", "Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list", "Unmarshal test suite from given file.", "Confirm that all nodes shared between clusters host exact same partition\nIDs and that nodes only in the super set cluster have no partition IDs.\n\n@param subsetCluster\n@param supersetCluster", "Apply filters to a method name.\n@param methodName", "Replies the elements of the given map except the pair with the given key.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the map with the content of the map except the key.\n@since 2.15", "Use this API to fetch all the autoscaleaction resources that are configured on netscaler.", "Removes an element from the observation matrix.\n\n@param index which element is to be removed" ]
public String asString() throws IOException { long len = getContentLength(); ByteArrayOutputStream buf; if (0 < len) { buf = new ByteArrayOutputStream((int) len); } else { buf = new ByteArrayOutputStream(); } writeTo(buf); return decode(buf.toByteArray(), getCharacterEncoding()); }
[ "Return a copy of the result as a String.\n\n<p>The default version of this method copies the result into a temporary byte array and then\ntries to decode it using the configured encoding.\n\n@return string version of the result.\n@throws IOException if the data cannot be produced or could not be decoded to a String." ]
[ "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process.", "Returns the response error stream, handling the case when it contains gzipped data.\n@return gzip decoded (if needed) error stream or null", "Remove an existing Corporate GroupId from an organization.\n\n@return Response", "Creates a spin wrapper for a data input of a given data format.\n\n@param input the input to wrap\n@param format the data format of the input\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Helper method to send message on outputStream and account for network\ntime stats.\n\n@param outputStream\n@param message\n@throws IOException", "Adds all options from the passed container to this container.\n\n@param container a container with options to add", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "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", "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step." ]
public static byte[] getContentBytes(String stringUrl) throws IOException { URL url = new URL(stringUrl); byte[] data = MyStreamUtils.readContentBytes(url.openStream()); return data; }
[ "Return the content from an URL in byte array\n\n@param stringUrl URL to get\n@return byte array\n@throws IOException I/O error happened" ]
[ "Helper method that stores in a hash map how often a certain key occurs.\nIf the key has not been encountered yet, a new entry is created for it in\nthe map. Otherwise the existing value for the key is incremented.\n\n@param map\nthe map where the counts are stored\n@param key\nthe key to be counted\n@param count\nvalue by which the count should be incremented; 1 is the usual\ncase", "Applies the given filter to each of the given elems, and returns the\nlist of elems that were accepted. The runtime type of the returned\narray is the same as the passed in array.", "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Use this API to update autoscaleprofile resources.", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException", "Use this API to expire cacheobject.", "Is the user password reset?\n\n@param user User to check\n@return boolean", "Parses a duration and returns the corresponding number of milliseconds.\n\nDurations consist of a space-separated list of components of the form {number}{time unit},\nfor example 1d 5m. The available units are d (days), h (hours), m (months), s (seconds), ms (milliseconds).<p>\n\n@param durationStr the duration string\n@param defaultValue the default value to return in case the pattern does not match\n@return the corresponding number of milliseconds", "Adds OPT_X | OPT_HEX option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
public <T> T convert(Object source, TypeReference<T> typeReference) throws ConverterException { return (T) convert(new ConversionContext(), source, typeReference); }
[ "Convert an object to another object with given type\n\n@param <T>\n@param source\nobject to convert\n@param typeReference\nreference to {@link java.lang.reflect.Type}\n@return the converted object if conversion failed\n@throws ConverterException" ]
[ "Get a patch entry for either a layer or add-on.\n\n@param name the layer name\n@param addOn whether the target is an add-on\n@return the patch entry, {@code null} if it there is no such layer", "Runs a Story with the given steps factory, applying the given meta\nfilter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param stepsFactory the InjectableStepsFactory used to created the\ncandidate steps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Return a list of Flickr supported blogging services.\n\nThis method does not require authentication.\n\n@return List of Services\n@throws FlickrException", "The normalized string returned by this method is consistent with java.net.Inet6address.\n\nIPs are not compressed nor mixed in this representation. If this has a prefix length, that will be included in the string.", "Append the given item to the end of the list\n@param segment segment to append", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus.", "Use this API to add onlinkipv6prefix.", "Create a forward curve from given times and discount factors.\n\nThe forward curve will have times.length-1 fixing times from times[0] to times[times.length-2]\n<code>\nforward[timeIndex] = (givenDiscountFactors[timeIndex]/givenDiscountFactors[timeIndex+1]-1.0) / (times[timeIndex+1] - times[timeIndex]);\n</code>\nNote: If time[0] &gt; 0, then the discount factor 1.0 will inserted at time 0.0\n\n@param name The name of this curve.\n@param times A vector of given time points.\n@param givenDiscountFactors A vector of given discount factors (corresponding to the given time points).\n@param paymentOffset The maturity of the underlying index modeled by this curve.\n@return A new ForwardCurve object.", "only TOP or Bottom" ]
public void releaseDbResources() { Iterator it = m_rsIterators.iterator(); while (it.hasNext()) { ((OJBIterator) it.next()).releaseDbResources(); } }
[ "delegate to each contained OJBIterator and release\nits resources." ]
[ "obtains the internal JDO lifecycle state of the input StatemanagerInternal.\nThis Method is helpful to display persistent objects internal state.\n@param sm the StateManager to be inspected\n@return the LifeCycleState of a StateManager instance", "Returns an MBeanServer with the specified name\n\n@param name\n@return", "Sets a new image\n\n@param BufferedImage imagem", "Returns a flag indicating if the query given by the parameters should be ignored.\n@return A flag indicating if the query given by the parameters should be ignored.", "Flush the in-memory data to the file", "Assign an ID value to this field.", "Select which view to display based on the state of the promotion. Will return the form if user selects to perform\npromotion. Progress will be returned if the promotion is currently in progress.", "Check whether the patch can be applied to a given target.\n\n@param condition the conditions\n@param target the target\n@throws PatchingException", "Save current hostname and reuse it.\n\n@return hostname as String" ]
public void removeLicenseFromArtifact(final String gavc, final String licenseId) { final DbArtifact dbArtifact = getArtifact(gavc); // // The artifact may not have the exact string associated with it, but rather one // matching license regexp expression. // repositoryHandler.removeLicenseFromArtifact(dbArtifact, licenseId, licenseMatcher); }
[ "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed." ]
[ "Creates the style definition used for a rectangle element based on the given properties of the rectangle\n@param x The X coordinate of the rectangle.\n@param y The Y coordinate of the rectangle.\n@param width The width of the rectangle.\n@param height The height of the rectangle.\n@param stroke Should there be a stroke around?\n@param fill Should the rectangle be filled?\n@return The resulting element style definition.", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "Launch Navigation Service residing in the navigation module", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException", "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "Notify all WorkerListeners currently registered for the given WorkerEvent.\n@param event the WorkerEvent that occurred\n@param worker the Worker that the event occurred in\n@param queue the queue the Worker is processing\n@param job the Job related to the event (only supply for JOB_PROCESS, JOB_EXECUTE, JOB_SUCCESS, and\nJOB_FAILURE events)\n@param runner the materialized object that the Job specified (only supply for JOB_EXECUTE and\nJOB_SUCCESS events)\n@param result the result of the successful execution of the Job (only set for JOB_SUCCESS and if the Job was\na Callable that returned a value)\n@param t the Throwable that caused the event (only supply for JOB_FAILURE and ERROR events)" ]
@SuppressWarnings("unchecked") public <T extends ReportModel> T getReportByName(String name, Class<T> clazz) { WindupVertexFrame model = this.getUniqueByProperty(ReportModel.REPORT_NAME, name); try { return (T) model; } catch (ClassCastException ex) { throw new WindupException("The vertex is not of expected frame type " + clazz.getName() + ": " + model.toPrettyString()); } }
[ "Returns the ReportModel with given name." ]
[ "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp", "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second).", "Run a CLI script from a File.\n\n@param script The script file.", "Define the set of extensions.\n\n@param extensions\n@return self", "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears." ]
public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
[ "Add a content modification.\n\n@param modification the content modification" ]
[ "Uploads bytes to an open upload session.\n@param data data\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size.", "Un-serialize a Json into Organization\n@param organization String\n@return Organization\n@throws IOException", "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name", "Detach a scope from its parent, this will trigger the garbage collection of this scope and it's\nsub-scopes\nif they are not referenced outside of Toothpick.\n\n@param name the name of the scope to close.", "Returns the default table name for this class which is the unqualified class name.\n\n@return The default table name", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "return a prepared Insert Statement fitting for the given ClassDescriptor", "Attempts to locate the activity type value extracted from an existing P6 schedule.\nIf necessary converts to the form which can be used in the PMXML file.\nReturns \"Resource Dependent\" as the default value.\n\n@param task parent task\n@return activity type", "Sets the model that the handling works on.\n\n@param databaseModel The database model\n@param objModel The object model" ]
public static base_response unset(nitro_service client, onlinkipv6prefix resource, String[] args) throws Exception{ onlinkipv6prefix unsetresource = new onlinkipv6prefix(); unsetresource.ipv6prefix = resource.ipv6prefix; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array." ]
[ "Adds a new Pie Slice to the PieChart. After inserting and calculation of the highlighting color\na complete recalculation is initiated.\n\n@param _Slice The newly added PieSlice.", "a small static helper to set the color to a GradientDrawable null save\n\n@param colorHolder\n@param ctx\n@param gradientDrawable", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nthe name mappings\n@return the populated bean\n@throws SuperCsvReflectionException\nif there was a reflection exception while populating the bean", "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", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Called when the scene object gets a new parent.\n\n@param parent New parent of this scene object.", "Convert string to qname.\n\n@param str the string\n@return the qname", "updates the values for locking fields , BRJ\nhandles int, long, Timestamp\nrespects updateLock so locking field are only updated when updateLock is true\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "High-accuracy Complementary normal distribution function.\n\n@param x Value.\n@return Result." ]
@Override protected Class getPrototypeClass(Video content) { Class prototypeClass; if (content.isFavorite()) { prototypeClass = FavoriteVideoRenderer.class; } else if (content.isLive()) { prototypeClass = LiveVideoRenderer.class; } else { prototypeClass = LikeVideoRenderer.class; } return prototypeClass; }
[ "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class." ]
[ "Inject external stylesheets.", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "Closes the output. Should be called after the JSON serialization was\nfinished.\n\n@throws IOException\nif there was a problem closing the output", "Encrypts data.\n\n@param plainData {@code initVector || payload || zeros:4}\n@return {@code initVector || E(payload) || I(signature)}", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Use this API to update route6 resources.", "Read flow id from message.\n\n@param message the message\n@return the FlowId as string", "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value.", "Log a warning for the resource at the provided address and the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about" ]
private void validateQuery(Query query) throws IllegalArgumentException { if (query.getKindCount() != 1) { throw new IllegalArgumentException("Query must have exactly one kind."); } if (query.getOrderCount() != 0) { throw new IllegalArgumentException("Query cannot have any sort orders."); } if (query.hasFilter()) { validateFilter(query.getFilter()); } }
[ "Verifies that the given query can be properly scattered.\n\n@param query the query to verify\n@throws IllegalArgumentException if the query is invalid." ]
[ "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified signature.\n\n@param className The qualified name of the class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Register the given Converter objects with the given target ConverterRegistry.\n@param converters the converter objects: implementing {@link Converter},\n{@link ConverterFactory}, or {@link GenericConverter}\n@param registry the target registry", "Use this API to fetch wisite_accessmethod_binding resources of given name .", "Stop interpolating playback position for all active players.", "Creates an upload session to create a new version of a file in chunks.\nThis will first verify that the version can be created and then open a session for uploading pieces of the file.\n@param fileSize the size of the file that will be uploaded.\n@return the created upload session instance.", "Support the subscript operator for String.\n\n@param text a String\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Determine whether all references are available locally.\n\n@param domain the domain model\n@param hostElement the host path element\n@return whether to a sync with the master is required", "Returns all entries in no particular order.", "Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency" ]
private static void addRedeployOperationStep(final CompositeOperationBuilder builder, final DeploymentDescription deployment) { final String deploymentName = deployment.getName(); final Set<String> serverGroups = deployment.getServerGroups(); if (serverGroups.isEmpty()) { builder.addStep(createOperation(DEPLOYMENT_REDEPLOY_OPERATION, createAddress(DEPLOYMENT, deploymentName))); } else { for (String serverGroup : serverGroups) { builder.addStep(createOperation(DEPLOYMENT_REDEPLOY_OPERATION, createAddress(SERVER_GROUP, serverGroup, DEPLOYMENT, deploymentName))); } } }
[ "Adds a redeploy step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment being redeployed" ]
[ "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "Determine the relevant pieces of configuration which need to be included when processing the domain model.\n\n@param root the resource root\n@param requiredConfigurationHolder the resolution context\n@param serverConfig the server config\n@param extensionRegistry the extension registry", "Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockMode The lock mode\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Use this API to fetch statistics of servicegroup_stats resource of given name .", "Compute pose of skeleton at the given time from the animation channels.\n@param timeInSec animation time in seconds.", "Converts a collection of dates to a JSON array with the long representation of the dates as strings.\n@param dates the list to convert.\n@return JSON array with long values of dates as string", "Filter everything until we found the first NL character.", "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows" ]
private void processProject(PrimaveraDatabaseReader reader, int projectID, String outputFile) throws Exception { long start = System.currentTimeMillis(); reader.setProjectID(projectID); ProjectFile projectFile = reader.read(); long elapsed = System.currentTimeMillis() - start; System.out.println("Reading database completed in " + elapsed + "ms."); System.out.println("Writing output file started."); start = System.currentTimeMillis(); ProjectWriter writer = ProjectWriterUtility.getProjectWriter(outputFile); writer.write(projectFile, outputFile); elapsed = System.currentTimeMillis() - start; System.out.println("Writing output completed in " + elapsed + "ms."); }
[ "Process a single project.\n\n@param reader Primavera reader\n@param projectID required project ID\n@param outputFile output file name" ]
[ "Fetch the outermost Hashmap as a TwoDHashMap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Sets the last operation response.\n\n@param response the last operation response.", "Add a module to a module tree\n\n@param module\n@param tree", "Is the user password reset?\n\n@param user User to check\n@return boolean", "Copies the jdb log files, with additional verification of the checksums.\n\n@param sourceFile\n@param destFile\n@throws IOException", "Use this API to update clusterinstance resources.", "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "Get a list of referring domains for a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html\"", "Drop down selected view\n\n@param position position of selected item\n@param convertView View of selected item\n@param parent parent of selected view\n@return convertView" ]
public static void applyDecidedIconOrSetGone(ImageHolder imageHolder, ImageView imageView, int iconColor, boolean tint) { if (imageHolder != null && imageView != null) { Drawable drawable = ImageHolder.decideIcon(imageHolder, imageView.getContext(), iconColor, tint); if (drawable != null) { imageView.setImageDrawable(drawable); imageView.setVisibility(View.VISIBLE); } else if (imageHolder.getBitmap() != null) { imageView.setImageBitmap(imageHolder.getBitmap()); imageView.setVisibility(View.VISIBLE); } else { imageView.setVisibility(View.GONE); } } else if (imageView != null) { imageView.setVisibility(View.GONE); } }
[ "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint" ]
[ "Add the operation at the end of Stage MODEL if this operation has not already been registered.\n\nThis operation should be added if any of the following occur: -\n- The authorization configuration is removed from a security realm.\n- The rbac provider is changed to rbac.\n- A role is removed.\n- An include is removed from a role.\n- A management interface is removed.\n\nNote: This list only includes actions that could invalidate the configuration, actions that would not invalidate the\nconfiguration do not need this operation registering. e.g. Adding a role, if the configuration was already valid this\ncould not invalidate it.\n\n@param context - The OperationContext to use to register the step.", "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance", "Decide which donor node to steal from. This is a policy implementation.\nI.e., in the future, additional policies could be considered. At that\ntime, this method should be overridden in a sub-class, or a policy object\nought to implement this algorithm.\n\nCurrent policy:\n\n1) If possible, a stealer node that is the zone n-ary in the finalCluster\nsteals from the zone n-ary in the currentCluster in the same zone.\n\n2) If there are no partition-stores to steal in the same zone (i.e., this\nis the \"zone expansion\" use case), then a differnt policy must be used.\nThe stealer node that is the zone n-ary in the finalCluster determines\nwhich pre-existing zone in the currentCluster hosts the primary partition\nid for the partition-store. The stealer then steals the zone n-ary from\nthat pre-existing zone.\n\nThis policy avoids unnecessary cross-zone moves and distributes the load\nof cross-zone moves approximately-uniformly across pre-existing zones.\n\nOther policies to consider:\n\n- For zone expansion, steal all partition-stores from one specific\npre-existing zone.\n\n- Replace heuristic to approximately uniformly distribute load among\nexisting zones to something more concrete (i.e. track steals from each\npre-existing zone and forcibly balance them).\n\n- Select a single donor for all replicas in a new zone. This will require\ndonor-based rebalancing to be run (at least for this specific part of the\nplan). This would reduce the number of donor-side scans of data. (But\nstill send replication factor copies over the WAN.) This would require\napparatus in the RebalanceController to work.\n\n- Set up some sort of chain-replication in which a single stealer in the\nnew zone steals some replica from a pre-exising zone, and then other\nn-aries in the new zone steal from the single cross-zone stealer in the\nzone. This would require apparatus in the RebalanceController to work.\n\n@param currentSRP\n@param finalSRP\n@param stealerZoneId\n@param stealerNodeId\n@param stealerPartitionId\n@return the node id of the donor for this partition Id.", "Writes triples which conect properties with there corresponding rdf\nproperties for statements, simple statements, qualifiers, reference\nattributes and values.\n\n@param document\n@throws RDFHandlerException", "Create a new remote proxy controller.\n\n@param client the transactional protocol client\n@param pathAddress the path address\n@param addressTranslator the address translator\n@param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process\n@return the proxy controller", "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped", "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value", "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag", "Saves the project file displayed in this panel.\n\n@param file target file\n@param type file type" ]
public Map<Integer, String> getSignatures() { ensureRunning(); // Make a copy so callers get an immutable snapshot of the current state. return Collections.unmodifiableMap(new HashMap<Integer, String>(signatures)); }
[ "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running" ]
[ "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Computes the square root of the complex number.\n\n@param input Input complex number.\n@param root Output. The square root of the input", "Use this API to fetch all the Interface resources that are configured on netscaler.", "Delete rows that match the prepared statement.", "Set the host running the Odo instance to configure\n\n@param hostName name of host", "Close all JDBC objects related to this connection.", "Converts a TimeUnit instance to an integer value suitable for\nwriting to an MPX file.\n\n@param recurrence RecurringTask instance\n@return integer value", "Use this API to fetch appfwsignatures resource of given name .", "Reconnect the context if the RedirectException is valid." ]
public void processReference(String template, Properties attributes) throws XDocletException { String name = OjbMemberTagsHandler.getMemberName(); XClass type = OjbMemberTagsHandler.getMemberType(); int dim = OjbMemberTagsHandler.getMemberDimension(); ReferenceDescriptorDef refDef = _curClassDef.getReference(name); String attrName; if (refDef == null) { refDef = new ReferenceDescriptorDef(name); _curClassDef.addReference(refDef); } LogHelper.debug(false, OjbTagsHandler.class, "processReference", " Processing reference "+refDef.getName()); for (Enumeration attrNames = attributes.propertyNames(); attrNames.hasMoreElements(); ) { attrName = (String)attrNames.nextElement(); refDef.setProperty(attrName, attributes.getProperty(attrName)); } // storing default info for later use if (type == null) { throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class, XDocletModulesOjbMessages.COULD_NOT_DETERMINE_TYPE_OF_MEMBER, new String[]{name})); } if (dim > 0) { throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class, XDocletModulesOjbMessages.MEMBER_CANNOT_BE_A_REFERENCE, new String[]{name, _curClassDef.getName()})); } refDef.setProperty(PropertyHelper.OJB_PROPERTY_VARIABLE_TYPE, type.getQualifiedName()); // searching for default type String typeName = searchForPersistentSubType(type); if (typeName != null) { refDef.setProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_CLASS_REF, typeName); } _curReferenceDef = refDef; generate(template); _curReferenceDef = null; }
[ "Sets the current reference definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"true\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"" ]
[ "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful", "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Put the core auto-code algorithm here so an external class can call it", "Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output\ntensors", "Returns the steps instances associated to CandidateSteps\n\n@param candidateSteps\nthe List of CandidateSteps\n@return The List of steps instances", "Parses the resource String id and get back the int res id\n@param context\n@param id String resource id\n@return int resource id" ]
public Collection<Group> getPublicGroups(String userId) throws FlickrException { List<Group> groups = new ArrayList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PUBLIC_GROUPS); parameters.put("user_id", userId); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element groupsElement = response.getPayload(); NodeList groupNodes = groupsElement.getElementsByTagName("group"); for (int i = 0; i < groupNodes.getLength(); i++) { Element groupElement = (Element) groupNodes.item(i); Group group = new Group(); group.setId(groupElement.getAttribute("nsid")); group.setName(groupElement.getAttribute("name")); group.setAdmin("1".equals(groupElement.getAttribute("admin"))); group.setEighteenPlus(groupElement.getAttribute("eighteenplus").equals("0") ? false : true); groups.add(group); } return groups; }
[ "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException" ]
[ "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "get the type signature corresponding to given class\n\n@param clazz\n@return", "A specific, existing project can be updated by making a PUT request on the\nURL for that project. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated project record.\n\n@param project The project to update.\n@return Request object", "flushes log queue, this actually writes combined log message into system log", "Sets any application-specific custom fields. The values\nare presented to the application and the iPhone doesn't\ndisplay them automatically.\n\nThis can be used to pass specific values (urls, ids, etc) to\nthe application in addition to the notification message\nitself.\n\n@param key the custom field name\n@param value the custom field value\n@return this", "Provides the scrollableList implementation for page scrolling\n@return {@link LayoutScroller.ScrollableList} implementation, passed to {@link LayoutScroller}\nfor the processing the scrolling", "Use this API to fetch dnszone_domain_binding resources of given name .", "Digest format to layer file name.\n\n@param digest\n@return", "Gets all of the column names for a result meta data\n\n@param rsmd Resultset metadata\n@return Array of column names\n@throws Exception exception" ]
public boolean mapsCell(String cell) { return mappers.values().stream().anyMatch(mapper -> mapper.mapsCell(cell)); }
[ "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise" ]
[ "Use this API to update responderpolicy.", "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "Recurses the given folder and creates the FileModels vertices for the child files to the graph.", "Use this API to fetch aaauser_binding resource of given name .", "Remove the report directory.", "Read a list of sub projects.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset", "Get a patch entry for either a layer or add-on.\n\n@param name the layer name\n@param addOn whether the target is an add-on\n@return the patch entry, {@code null} if it there is no such layer", "get the real data without message header\n@return message data(without header)", "Set the value of a field using its alias.\n\n@param alias field alias\n@param value field value" ]
public boolean canUpdateServer(ServerIdentity server) { if (!serverGroupName.equals(server.getServerGroupName()) || !servers.contains(server)) { throw DomainControllerLogger.HOST_CONTROLLER_LOGGER.unknownServer(server); } if (!parent.canChildProceed()) return false; synchronized (this) { return failureCount <= maxFailed; } }
[ "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif the update should be cancelled\n\n@throws IllegalStateException if this policy is not expecting a request\nto update the given server" ]
[ "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Emit an enum event with parameters supplied.\n\nThis will invoke all {@link SimpleEventListener} bound to the specific\nenum value and all {@link SimpleEventListener} bound to the enum class\ngiven the listeners has the matching argument list.\n\nFor example, given the following enum definition:\n\n```java\npublic enum UserActivity {LOGIN, LOGOUT}\n```\n\nWe have the following simple event listener methods:\n\n```java\n{@literal @}OnEvent\npublic void handleUserActivity(UserActivity, User user) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGIN)\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGOUT)\npublic void logUserLogout(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` method:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGIN, user, System.currentTimeMills());\n```\n\nThe `handleUserActivity` is not invoked because\n\n* The method parameter `(UserActivity, User, long)` does not match the declared argument list `(UserActivity, User)`\n\nWhile the following code will invoke both `handleUserActivity` and `logUserLogout` methods:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGOUT, user);\n```\n\nThe `logUserLogin` method will not be invoked because\n\n1. the method is bound to `UserActivity.LOGIN` enum value specifically, while `LOGOUT` is triggered\n2. the method has a `long timestamp` in the argument list and it is not passed to `eventBus.emit`\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "helper to calculate the statusBar height\n\n@param context\n@param force pass true to get the height even if the device has no translucent statusBar\n@return", "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException", "So that we get these packages caught Java class analysis.", "Merge the contents of the given plugin.xml into this one.", "Renames this file.\n\n@param newName the new name of the file." ]
public ChannelInfo getChannel(String name) { final URI uri = uriWithPath("./channels/" + encodePathSegment(name)); return this.rt.getForObject(uri, ChannelInfo.class); }
[ "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information" ]
[ "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key", "Use this API to save cacheobject.", "Returns true if the query result has at least one row.", "Sets the value for the API's \"sitefilter\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "Normalize the list of selected categories to fit for the ids of the tree items.", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "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", "Stop interpolating playback position for all active players." ]
public boolean ignoreOperation(final Resource domainResource, final Collection<ServerConfigInfo> serverConfigs, final PathAddress pathAddress) { if (pathAddress.size() == 0) { return false; } boolean ignore = ignoreResourceInternal(domainResource, serverConfigs, pathAddress); return ignore; }
[ "For the DC to check whether an operation should be ignored on the slave, if the slave is set up to ignore config not relevant to it\n\n@param domainResource the domain root resource\n@param serverConfigs the server configs the slave is known to have\n@param pathAddress the address of the operation to check if should be ignored or not" ]
[ "Lookup an object instance from JNDI context.\n\n@param jndiName JNDI lookup name\n@return Matching object or <em>null</em> if none found.", "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors", "Navigate to this address in the given model node.\n\n@param model the model node\n@param create {@code true} to create the last part of the node if it does not exist\n@return the submodel\n@throws NoSuchElementException if the model contains no such element\n\n@deprecated manipulating a deep DMR node tree via PathAddress is no longer how the management layer works\ninternally, so this method has become legacy cruft. Management operation handlers\nshould obtain a {@link org.jboss.as.controller.registry.Resource Resource} from the\n{@link org.jboss.as.controller.OperationContext#readResource(PathAddress) OperationContext}\nand use the {@code Resource} API to access child resources", "add converter at given index. The index can be changed during conversion\nif canReorder is true\n\n@param index\n@param converter", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Converts an MPXJ Duration instance into the string representation\nof a Planner duration.\n\nPlanner represents durations as a number of seconds in its\nfile format, however it displays durations as days and hours,\nand seems to assume that a working day is 8 hours.\n\n@param value string representation of a duration\n@return Duration instance", "Flips the output buffer, and lets the Selector know we're ready to write.\n\n@param selectionKey", "Use this API to fetch linkset_interface_binding resources of given 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" ]
protected void applyBanners() { DynamicReportOptions options = getReport().getOptions(); if (options.getFirstPageImageBanners().isEmpty() && options.getImageBanners().isEmpty()){ return; } /* First create image banners for the first page only */ JRDesignBand title = (JRDesignBand) getDesign().getTitle(); //if there is no title band, but there are banner images for the first page, we create a title band if (title == null && !options.getFirstPageImageBanners().isEmpty()){ title = new JRDesignBand(); getDesign().setTitle(title); } applyImageBannersToBand(title, options.getFirstPageImageBanners().values(), null, true); /* Now create image banner for the rest of the pages */ JRDesignBand pageHeader = (JRDesignBand) getDesign().getPageHeader(); //if there is no title band, but there are banner images for the first page, we create a title band if (pageHeader == null && !options.getImageBanners().isEmpty()){ pageHeader = new JRDesignBand(); getDesign().setPageHeader(pageHeader); } JRDesignExpression printWhenExpression = null; if (!options.getFirstPageImageBanners().isEmpty()){ printWhenExpression = new JRDesignExpression(); printWhenExpression.setValueClass(Boolean.class); printWhenExpression.setText(EXPRESSION_TRUE_WHEN_NOT_FIRST_PAGE); } applyImageBannersToBand(pageHeader, options.getImageBanners().values(),printWhenExpression, true); }
[ "Create the image elements for the banners tha goes into the\ntitle and header bands depending on the case" ]
[ "Record the duration of a put operation, along with the size of the values\nreturned.", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Check the given URI to see if it matches.\n\n@param matchInfo the matchInfo to validate.\n@return True if it matches.", "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script.", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed", "This is a service method that takes care of putting al the target values in a single array.\n@return", "Sets the values of this vector to those of v1.\n\n@param v1\nvector whose values are copied", "Access the customInfo of a message using this accessor. The CustomInfo\nmap will be automatically created and stored in the event if it is not yet present\n\n@param message\n@return", "Send a data to Incoming Webhook endpoint." ]
private void wrapSetterMethod(ClassNode classNode, boolean bindable, String propertyName) { String getterName = "get" + MetaClassHelper.capitalize(propertyName); MethodNode setter = classNode.getSetterMethod("set" + MetaClassHelper.capitalize(propertyName)); if (setter != null) { // Get the existing code block Statement code = setter.getCode(); Expression oldValue = varX("$oldValue"); Expression newValue = varX("$newValue"); Expression proposedValue = varX(setter.getParameters()[0].getName()); BlockStatement block = new BlockStatement(); // create a local variable to hold the old value from the getter block.addStatement(declS(oldValue, callThisX(getterName))); // add the fireVetoableChange method call block.addStatement(stmt(callThisX("fireVetoableChange", args( constX(propertyName), oldValue, proposedValue)))); // call the existing block, which will presumably set the value properly block.addStatement(code); if (bindable) { // get the new value to emit in the event block.addStatement(declS(newValue, callThisX(getterName))); // add the firePropertyChange method call block.addStatement(stmt(callThisX("firePropertyChange", args(constX(propertyName), oldValue, newValue)))); } // replace the existing code block with our new one setter.setCode(block); } }
[ "Wrap an existing setter." ]
[ "Switches from a dense to sparse matrix", "Get a new token.\n\n@return 14 character String", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Executes the mojo.", "Add join info to the query. This can be called multiple times to join with more than one table.", "Writes the results of the processing to a file.", "Split a span into two by adding a knot in the middle.\n@param n the span index", "Load the given metadata profile for the current thread.", "Creates a collection from the given stream, casting each object to the\nprovided listener class. The returned collection must not necessarily be\nmutable.\n\n@param <T> Type of the listeners in the given list.\n@param listenerClass The class of the objects in the provided list.\n@param listeners The stream to obtain the listeners for the resulting\ncollection from.\n@param sizeHint Expected size of the input stream.\n@return A typed copy of the list." ]
@Override public AccountingDate date(int prolepticYear, int month, int dayOfMonth) { return AccountingDate.of(this, prolepticYear, month, dayOfMonth); }
[ "Obtains a local date in Accounting calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date" ]
[ "Read the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar object\n@param mpxjCalendar MPXJ calendar object", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "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.", "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array", "those could be incorporated with above, but that would blurry everything.", "Creates SLD rules for each old style.", "Create a Map composed of the entries of the first map minus the\nentries of the given map.\n\n@param self a map object\n@param removeMe the entries to remove from the map\n@return the resulting map\n@since 1.7.4", "Sets a new image\n\n@param BufferedImage imagem", "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." ]
public void removeEntity(GraphDatabaseService executionEngine, Object[] columnValues) { Map<String, Object> params = params( columnValues ); executionEngine.execute( getRemoveEntityQuery(), params ); }
[ "Remove the nodes representing the entity and the embedded elements attached to it.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values of the key identifying the entity to remove" ]
[ "Make sure the result index points to the next available key in the scan result, if exists.", "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance", "Gets a collection of all the email aliases for this user.\n\n<p>Note that the user's primary login email is not included in the collection of email aliases.</p>\n\n@return a collection of all the email aliases for this user.", "New REST client uses new REST service", "Processes one item document. This is often the main workhorse that\ngathers the data you are interested in. You can modify this code as you\nwish.", "Returns code number of Task field supplied.\n\n@param field - name\n@return - code no", "Creates the tcpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}", "Makes an ancestor filter." ]
public CmsJspDateSeriesBean getToDateSeries() { if (m_dateSeries == null) { m_dateSeries = new CmsJspDateSeriesBean(this, m_cms.getRequestContext().getLocale()); } return m_dateSeries; }
[ "Converts a date series configuration to a date series bean.\n@return the date series bean." ]
[ "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "Gets all data set values.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned", "Get history for a specific database ID\n\n@param id ID of history entry\n@return History entry", "For missing objects associated by one-to-one with another object in the\nresult set, register the fact that the object is missing with the\nsession.\n\ncopied form Loader#registerNonExists", "Wrap an existing setter.", "Get the group URL for the specified group ID\n\n@param groupId\nThe group ID\n@return The group URL\n@throws FlickrException", "Converts any path into something that can be placed in an Android directory.\n\nTraverses any subdirectories and flattens it all into a single filename. Also\ngets rid of commonly seen illegal characters in tz identifiers, and lower cases\nthe entire thing.\n\n@param path the path to convert\n@return a flat path with no directories (and lower-cased)", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return" ]
protected Element createRectangleElement(float x, float y, float width, float height, boolean stroke, boolean fill) { float lineWidth = transformWidth(getGraphicsState().getLineWidth()); float wcor = stroke ? lineWidth : 0.0f; float strokeOffset = wcor == 0 ? 0 : wcor / 2; width = width - wcor < 0 ? 1 : width - wcor; height = height - wcor < 0 ? 1 : height - wcor; StringBuilder pstyle = new StringBuilder(50); pstyle.append("left:").append(style.formatLength(x - strokeOffset)).append(';'); pstyle.append("top:").append(style.formatLength(y - strokeOffset)).append(';'); pstyle.append("width:").append(style.formatLength(width)).append(';'); pstyle.append("height:").append(style.formatLength(height)).append(';'); if (stroke) { String color = colorString(getGraphicsState().getStrokingColor()); pstyle.append("border:").append(style.formatLength(lineWidth)).append(" solid ").append(color).append(';'); } if (fill) { String fcolor = colorString(getGraphicsState().getNonStrokingColor()); pstyle.append("background-color:").append(fcolor).append(';'); } Element el = doc.createElement("div"); el.setAttribute("class", "r"); el.setAttribute("style", pstyle.toString()); el.appendChild(doc.createEntityReference("nbsp")); return el; }
[ "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\n@param x the X coordinate of the rectangle\n@param y the Y coordinate of the rectangle\n@param width the width of the rectangle\n@param height the height of the rectangle\n@param stroke should there be a stroke around?\n@param fill should the rectangle be filled?\n@return the resulting DOM element" ]
[ "For recovery from the latest consistent snapshot, we should clean up the\nold files from the previous backup set, else we will fill the disk with\nuseless log files\n\n@param backupDir", "Put a new resource description into the index, or remove one if the delta has no new description. A delta for a\nparticular URI may be registered more than once; overwriting any earlier registration.\n\n@param delta\nThe resource change.\n@since 2.9", "Delete a module\n\n@param moduleId String", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance", "Prints the help on the command line\n\n@param options Options object from commons-cli", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object." ]
public static String getVariablesMapExpression(Collection variables) { StringBuilder variablesMap = new StringBuilder("new " + PropertiesMap.class.getName() + "()"); for (Object variable : variables) { JRVariable jrvar = (JRVariable) variable; String varname = jrvar.getName(); variablesMap.append(".with(\"").append(varname).append("\",$V{").append(varname).append("})"); } return variablesMap.toString(); }
[ "Collection of JRVariable\n\n@param variables\n@return" ]
[ "Write a boolean field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Search down all extent classes and return max of all found\nPK values.", "The read timeout for the underlying URLConnection to the twitter stream.", "Updates the style of the field label according to the field value if the\nfield value is empty - null or \"\" - removes the label 'active' style else\nwill add the 'active' style to the field label.", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server", "Tells you if an expression is the expected constant.\n@param expression\nany expression\n@param expected\nthe expected int or String\n@return\nas described", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Function to perform the forward pass for batch convolution" ]
private void processDependencies() { Set<Task> tasksWithBars = new HashSet<Task>(); FastTrackTable table = m_data.getTable(FastTrackTableType.ACTBARS); for (MapRow row : table) { Task task = m_project.getTaskByUniqueID(row.getInteger(ActBarField._ACTIVITY)); if (task == null || tasksWithBars.contains(task)) { continue; } tasksWithBars.add(task); String predecessors = row.getString(ActBarField.PREDECESSORS); if (predecessors == null || predecessors.isEmpty()) { continue; } for (String predecessor : predecessors.split(", ")) { Matcher matcher = RELATION_REGEX.matcher(predecessor); matcher.matches(); Integer id = Integer.valueOf(matcher.group(1)); RelationType type = RELATION_TYPE_MAP.get(matcher.group(3)); if (type == null) { type = RelationType.FINISH_START; } String sign = matcher.group(4); double lag = NumberHelper.getDouble(matcher.group(5)); if ("-".equals(sign)) { lag = -lag; } Task targetTask = m_project.getTaskByID(id); if (targetTask != null) { Duration lagDuration = Duration.getInstance(lag, m_data.getDurationTimeUnit()); Relation relation = task.addPredecessor(targetTask, type, lagDuration); m_eventManager.fireRelationReadEvent(relation); } } } }
[ "Process task dependencies." ]
[ "Determine if the start of the buffer matches a fingerprint byte array.\n\n@param buffer bytes from file\n@param fingerprint fingerprint bytes\n@return true if the file matches the fingerprint", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "1-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Remove an write lock.", "Apply the matching client UUID for the request\n\n@param httpServletRequest\n@param history", "Returns a description a block of work, or \"exit\" if no more blocks exist\n\n@param name the assigned name of the consumer requesting a block of work\n@return a description a block of work, or \"exit\" if no more blocks exist", "Get the metadata of all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the track information reported by all current players, including any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the MetadataFinder is not running", "Read data for a single table and store it.\n\n@param is input stream\n@param table table header", "Filters all exceptions from the provided dates.\n@param dates the dates to filter.\n@return the provided dates, except the ones that match some exception." ]
public void addFkToThisClass(String column) { if (fksToThisClass == null) { fksToThisClass = new Vector(); } fksToThisClass.add(column); fksToThisClassAry = null; }
[ "add a FK column pointing to This Class" ]
[ "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Reset the crawler to its initial state.", "Insert entity object. The caller must first initialize the primary key\nfield.", "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one", "Should this request URI be compressed?\n\n@param requestUri request URI\n@return true when should be compressed", "Use this API to update autoscaleaction resources.", "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index" ]
private boolean findBinding(Injector injector, Class<?> type) { boolean found = false; for (Key<?> key : injector.getBindings().keySet()) { if (key.getTypeLiteral().getRawType().equals(type)) { found = true; break; } } if (!found && injector.getParent() != null) { return findBinding(injector.getParent(), type); } return found; }
[ "Finds binding for a type in the given injector and, if not found,\nrecurses to its parent\n\n@param injector\nthe current Injector\n@param type\nthe Class representing the type\n@return A boolean flag, <code>true</code> if binding found" ]
[ "Destroys an instance of the bean\n\n@param instance The instance", "Parse units.\n\n@param value units value\n@return units value", "Use this API to Force clustersync.", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Tell a device to turn sync on or off.\n\n@param deviceNumber the device whose sync state is to be set\n@param synced {@code} true if sync should be turned on, else it will be turned off\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", "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second).", "Layout which gets displayed if table is empty.\n\n@see org.opencms.ui.apps.user.I_CmsFilterableTable#getEmptyLayout()", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails" ]
public CustomHeadersInterceptor addHeaderMap(Map<String, String> headers) { for (Map.Entry<String, String> header : headers.entrySet()) { this.headers.put(header.getKey(), Collections.singletonList(header.getValue())); } return this; }
[ "Add all headers in a header map.\n\n@param headers a map of headers.\n@return the interceptor instance itself." ]
[ "Adds the provided map of key-value pairs as a new row in the table represented by this DataSet.\n\n@param map the key (column-name), value pairs to add as a new row\n@throws SQLException if a database error occurs", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException", "Gets next node in the DAG which has no dependency or all of it's dependencies are resolved and\nready to be consumed.\n\n@return next node or null if all the nodes have been explored or no node is available at this moment.", "Start pushing the element off to the right.", "Formats a date or a time range according to the local conventions.\n\nYou should ensure that start/end are in the same timezone; formatDateRange()\ndoesn't handle start/end in different timezones well.\n\nSee {@link android.text.format.DateUtils#formatDateRange} for full docs.\n\n@param context the context is required only if the time is shown\n@param start the start time\n@param end the end time\n@param flags a bit mask of options\n@return a string containing the formatted date/time range", "Set new list data set\n@param list new data set", "To use main report datasource. There should be nothing else in the detail band\n@param preSorted\n@return", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "Sets the bit at the specified index.\n@param index The index of the bit to set (0 is the least-significant bit).\n@param set A boolean indicating whether the bit should be set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string." ]
public static nspbr6[] get(nitro_service service, nspbr6_args args) throws Exception{ nspbr6 obj = new nspbr6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr6[] response = (nspbr6[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources." ]
[ "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?", "This method is used to push install referrer via UTM source, medium & campaign parameters\n@param source The UTM source parameter\n@param medium The UTM medium parameter\n@param campaign The UTM campaign parameter", "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.", "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Read all configuration files.\n@return the list with all available configurations", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed", "Adds error correction data to the specified binary string, which already contains the primary data", "capture screenshot of an eye", "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache" ]
private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) { if (c != null) { if (n.max < c.max) { n.max = c.max; } if (n.min > c.min) { n.min = c.min; } } }
[ "Update max min.\n\n@param n the n\n@param c the c" ]
[ "Issue the database statements to drop the table associated with a table configuration.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "Split a module Id to get the module version\n@param moduleId\n@return String", "Deletes data associated with the given profile ID\n\n@param profileId ID of profile", "Button onClick listener.\n\n@param v", "Get the Json Schema of the input path, assuming the path contains just one\nschema version in all files under that path.", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "Checks whether a character sequence matches against a specified pattern or not.\n\n@param pattern\npattern, that the {@code chars} must correspond to\n@param chars\na readable sequence of {@code char} values which should match the given pattern\n@return {@code true} when {@code chars} matches against the passed {@code pattern}, otherwise {@code false}", "Updates the exceptions panel.", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2" ]
public void setBeliefValue(String agent_name, final String belief_name, final Object new_value, Connector connector) { ((IExternalAccess) connector.getAgentsExternalAccess(agent_name)) .scheduleStep(new IComponentStep<Integer>() { public IFuture<Integer> execute(IInternalAccess ia) { IBDIInternalAccess bia = (IBDIInternalAccess) ia; bia.getBeliefbase().getBelief(belief_name) .setFact(new_value); return null; } }).get(new ThreadSuspendable()); }
[ "This method changes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent to change a belief\n@param belief_name\nThe name of the belief to change\n@param new_value\nThe new value of the belief to be changed\n@param connector\nThe connector to get the external access" ]
[ "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element", "Returns a list ordered from the highest priority to the lowest.", "Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.", "Called to update the cached formats when something changes.", "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID", "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>", "Use this API to save cacheobject.", "Adds a new child widget to the panel, attaching its Element to the\nspecified container Element.\n\n@param child the child widget to be added\n@param container the element within which the child will be contained" ]
@Override public boolean retainAll(Collection<?> collection) { if (dao == null) { return false; } boolean changed = false; CloseableIterator<T> iterator = closeableIterator(); try { while (iterator.hasNext()) { T data = iterator.next(); if (!collection.contains(data)) { iterator.remove(); changed = true; } } return changed; } finally { IOUtils.closeQuietly(iterator); } }
[ "Uses the iterator to run through the dao and retain only the items that are in the passed in collection. This\nwill remove the items from the associated database table as well.\n\n@return Returns true of the collection was changed at all otherwise false." ]
[ "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there", "Adds the specified type to this frame, and returns a new object that implements this type.", "Modify the tranform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param w\n'W' component of the quaternion.\n@param x\n'X' component of the quaternion.\n@param y\n'Y' component of the quaternion.\n@param z\n'Z' component of the quaternion.\n@param pivotX\n'X' component of the pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location.", "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "Returns a client object for a clientId\n\n@param clientId ID of client to return\n@return Client or null\n@throws Exception exception", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope" ]
public void fireResourceWrittenEvent(Resource resource) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.resourceWritten(resource); } } }
[ "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance" ]
[ "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Returns the value of the element with the minimum value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Start with specifying the groupId", "Removes a named property from the object.\n\nIf the property is not found, no action is taken.\n\n@param name the name of the property", "helper to calculate the statusBar height\n\n@param context\n@param force pass true to get the height even if the device has no translucent statusBar\n@return", "Accessor method used to retrieve a String object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Adds the complex number with a scalar value.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value." ]
protected void validateResultsDirectories() { for (String result : results) { if (Files.notExists(Paths.get(result))) { throw new AllureCommandException(String.format("Report directory <%s> not found.", result)); } } }
[ "Throws an exception if at least one results directory is missing." ]
[ "Resize the key data area.\nThis function will truncate the keys if the\ninitial setting was too large.\n\n@oaran numKeys the desired number of keys", "Set whether we should retrieve the waveform details in addition to the waveform previews.\n\n@param findDetails if {@code true}, both types of waveform will be retrieved, if {@code false} only previews\nwill be retrieved", "Opens a JDBC connection with the given parameters.", "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "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", "Retrieve and validate vector clock value from the REST request.\n\"X_VOLD_VECTOR_CLOCK\" is the vector clock header.\n\n@return true if present, false if missing", "Removes 'original' and places 'target' at the same location" ]
public ParallelTaskBuilder prepareHttpPut(String url) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.getHttpMeta().setHttpMethod(HttpMethod.PUT); cb.getHttpMeta().setRequestUrlPostfix(url); return cb; }
[ "Prepare a parallel HTTP PUT Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
[ "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "Reads the cost rate tables from the file.\n\n@param resource parent resource\n@param rates XML cot rate tables", "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set", "Update an object in the database to change its id to the newId parameter.", "add some validation to see if this miss anything.\n\n@return true, if successful\n@throws ParallelTaskInvalidException\nthe parallel task invalid exception", "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", "Read the given source byte array, then overwrite this buffer's contents\n\n@param src source byte array\n@param srcOffset offset in source byte array to read from\n@param destOffset offset in this buffer to read to\n@param length max number of bytes to read\n@return the number of bytes read", "Function to add a new Store to the Metadata store. This involves\n\n1. Create a new entry in the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeDef defines the new store to be created", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list" ]
public static <T, A extends Annotation> String getClassAnnotationValue(Class<T> classType, Class<A> annotationType, String attributeName) { String value = null; Annotation annotation = classType.getAnnotation(annotationType); if (annotation != null) { try { value = (String) annotation.annotationType().getMethod(attributeName).invoke(annotation); } catch (Exception ex) {} } return value; }
[ "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong" ]
[ "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Record the duration of a put operation, along with the size of the values\nreturned.", "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped.", "Adds a step to the steps.\n\n@param name {@link String} name of the step\n@param robot {@link String} name of the robot used by the step.\n@param options {@link Map} extra options required for the step.", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not", "Checks the status of one or more asynchronous photo upload tickets. This method does not require authentication.\n\n@param tickets\na set of ticket ids (Strings) or {@link Ticket} objects containing ids\n@return a list of {@link Ticket} objects.\n@throws FlickrException", "Indicates if a bean's scope type is passivating\n\n@param bean The bean to inspect\n@return True if the scope is passivating, false otherwise", "Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)", "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there" ]
public static sslservice[] get(nitro_service service, sslservice_args args) throws Exception{ sslservice obj = new sslservice(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); sslservice[] response = (sslservice[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources." ]
[ "Returns information for a specific path id\n\n@param pathId ID of path\n@param clientUUID client UUID\n@param filters filters to set on endpoint\n@return EndpointOverride\n@throws Exception exception", "Sets the bottom padding for all cells in the table.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "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", "Return the class's name, possibly by stripping the leading path", "Go through all node IDs and determine which node\n\n@param cluster\n@param storeRoutingPlan\n@return", "Returns whether the values of this division grouping contain the prefix block for the given prefix length\n\n@param prefixLength\n@return", "Handles a faulted task.\n\n@param faultedEntry the entry holding faulted task\n@param throwable the reason for fault\n@param context the context object shared across all the task entries in this group during execution\n\n@return an observable represents asynchronous operation in the next stage", "Get the days difference", "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped" ]
public final Set<String> getOutputFormatsNames() { SortedSet<String> formats = new TreeSet<>(); for (String formatBeanName: this.outputFormat.keySet()) { int endingIndex = formatBeanName.indexOf(MAP_OUTPUT_FORMAT_BEAN_NAME_ENDING); if (endingIndex < 0) { endingIndex = formatBeanName.indexOf(OUTPUT_FORMAT_BEAN_NAME_ENDING); } formats.add(formatBeanName.substring(0, endingIndex)); } return formats; }
[ "Return the available format ids." ]
[ "Provides lookup of elements by non-namespaced name.\n\n@param name the name or shortcut key for nodes of interest\n@return the nodes of interest which match name", "Use this API to update gslbsite.", "Prints the plan to a file.\n\n@param outputDirName\n@param plan", "Creates a solver for symmetric positive definite matrices.\n\n@return A new solver for symmetric positive definite matrices.", "Converts from an Accumulo Key to a Fluo RowColumn\n\n@param key Key\n@return RowColumn", "Get the QNames of the port components to be declared\nin the namespaces\n\n@return collection of QNames", "Process UDFs for a specific object.\n\n@param mpxj field container\n@param udfs UDF values", "Calculate Median value.\n@param values Values.\n@return Median.", "Print the lead string followed by centered formatted string. The whole\nlength of the line is 80 chars.\n\nExample:\n\n```java\nprintCenterWithLead(\" *\", \"Hello %s\", \"World\");\n```\n\nwill print something like\n\n```\n* Hello World\n```\n\nNote the above is just a demo, the exact number of whitespace might not be correct.\n\n\n@param lead\nthe lead string\n@param format\nThe string format pattern\n@param args\nThe string format arguments" ]
void applyFreshParticleOffScreen( @NonNull final Scene scene, final int position) { final int w = scene.getWidth(); final int h = scene.getHeight(); if (w == 0 || h == 0) { throw new IllegalStateException( "Cannot generate particles if scene width or height is 0"); } float x = random.nextInt(w); float y = random.nextInt(h); // The offset to make when creating point of out bounds final short offset = (short) (scene.getParticleRadiusMin() + scene.getLineLength()); // Point angle range final float startAngle; float endAngle; // Make random offset and calulate angles so that the direction of travel will always be // towards our View switch (random.nextInt(4)) { case 0: // offset to left x = (short) -offset; startAngle = angleDeg(pcc, pcc, x, y); endAngle = angleDeg(pcc, h - pcc, x, y); break; case 1: // offset to top y = (short) -offset; startAngle = angleDeg(w - pcc, pcc, x, y); endAngle = angleDeg(pcc, pcc, x, y); break; case 2: // offset to right x = (short) (w + offset); startAngle = angleDeg(w - pcc, h - pcc, x, y); endAngle = angleDeg(w - pcc, pcc, x, y); break; case 3: // offset to bottom y = (short) (h + offset); startAngle = angleDeg(pcc, h - pcc, x, y); endAngle = angleDeg(w - pcc, h - pcc, x, y); break; default: throw new IllegalArgumentException("Supplied value out of range"); } if (endAngle < startAngle) { endAngle += 360; } // Get random angle from angle range final float randomAngleInRange = startAngle + (random .nextInt((int) Math.abs(endAngle - startAngle))); final double direction = Math.toRadians(randomAngleInRange); final float dCos = (float) Math.cos(direction); final float dSin = (float) Math.sin(direction); final float speedFactor = newRandomIndividualParticleSpeedFactor(); final float radius = newRandomIndividualParticleRadius(scene); scene.setParticleData( position, x, y, dCos, dSin, radius, speedFactor); }
[ "Set new particle coordinates somewhere off screen and apply new direction towards the screen\n\n@param position the particle position to apply new values to" ]
[ "Adds a file to your assembly but automatically generates the field name of the file.\n\n@param file {@link File} the file to be uploaded.", "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", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "Sends the collected dependencies over to the master and record them.", "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler.", "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", "Clears the proxy. A cleared proxy is defined as loaded\n\n@see Collection#clear()", "Puts a message in the wake-up queue of this node to send the message on wake-up.\n@param serialMessage the message to put in the wake-up queue.", "return a prepared Insert Statement fitting for the given ClassDescriptor" ]
public void loadAnimation(GVRAndroidResource animResource, String boneMap) { String filePath = animResource.getResourcePath(); GVRContext ctx = mAvatarRoot.getGVRContext(); GVRResourceVolume volume = new GVRResourceVolume(ctx, animResource); if (filePath.endsWith(".bvh")) { GVRAnimator animator = new GVRAnimator(ctx); animator.setName(filePath); try { BVHImporter importer = new BVHImporter(ctx); GVRSkeletonAnimation skelAnim; if (boneMap != null) { GVRSkeleton skel = importer.importSkeleton(animResource); skelAnim = importer.readMotion(skel); animator.addAnimation(skelAnim); GVRPoseMapper retargeter = new GVRPoseMapper(mSkeleton, skel, skelAnim.getDuration()); retargeter.setBoneMap(boneMap); animator.addAnimation(retargeter); } else { skelAnim = importer.importAnimation(animResource, mSkeleton); animator.addAnimation(skelAnim); } addAnimation(animator); ctx.getEventManager().sendEvent(this, IAvatarEvents.class, "onAnimationLoaded", GVRAvatar.this, animator, filePath, null); } catch (IOException ex) { ctx.getEventManager().sendEvent(this, IAvatarEvents.class, "onAnimationLoaded", GVRAvatar.this, null, filePath, ex.getMessage()); } } else { EnumSet<GVRImportSettings> settings = GVRImportSettings.getRecommendedSettingsWith(EnumSet.of(GVRImportSettings.OPTIMIZE_GRAPH, GVRImportSettings.NO_TEXTURING)); GVRSceneObject animRoot = new GVRSceneObject(ctx); ctx.getAssetLoader().loadModel(volume, animRoot, settings, false, mLoadAnimHandler); } }
[ "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" ]
[ "Helper to read a line from the config file.\n@param propValue the property value\n@return the value of the variable set at this line.", "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names", "Creates and returns a temporary directory for a printing task.", "Adds the dependencies typical for particular deployment types.\nThis is not accurate and doesn't cover the real needs of the project.\nBasically it's just to have \"something\" for the initial implementation.", "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort.", "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection", "Get the bytes which represent the payload of this field, without the leading type tag and length header, as\na newly-allocated byte array.\n\n@return a new byte array containing a copy of the bytes this field contains", "Send a beat announcement to all registered master listeners.\n\n@param beat the beat sent by the tempo master", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions" ]
public Object getRealValue() { if(valueRealSubject != null) { return valueRealSubject; } else { TransactionExt tx = getTransaction(); if((tx != null) && tx.isOpen()) { prepareValueRealSubject(tx.getBroker()); } else { if(getPBKey() != null) { PBCapsule capsule = new PBCapsule(getPBKey(), null); try { prepareValueRealSubject(capsule.getBroker()); } finally { capsule.destroy(); } } else { getLog().warn("No tx, no PBKey - can't materialise value with Identity " + getKeyOid()); } } } return valueRealSubject; }
[ "Returns the real value object." ]
[ "Cancel a particular download in progress. Returns 1 if the download Id is found else returns 0.\n\n@param downloadId\n@return int", "Logic for timestamp\n@param time Epoch date of creation\n@return String timestamp", "Reads the next chunk for the intermediate work buffer.", "Returns the portion of the field name after the last dot, as field names\nmay actually be paths.", "Creates a converter function that converts value using a constructor that accepts a single String argument.\n\n@return A converter function or {@code null} if the given type doesn't have a public constructor that accepts\na single String argument.", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "The transform method for this DataTransformer\n@param cr a reference to DataPipe from which to read the current map", "Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries.", "Use this API to fetch lbmonbindings_servicegroup_binding resources of given name ." ]
private void registerPerformanceMonitor(String beanName, BeanDefinitionRegistry registry) { String perfMonitorName = beanName + "PerformanceMonitor"; if (!registry.containsBeanDefinition(perfMonitorName)) { BeanDefinitionBuilder initializer = BeanDefinitionBuilder.rootBeanDefinition(PerformanceMonitorBean.class); registry.registerBeanDefinition(perfMonitorName, initializer.getBeanDefinition()); } }
[ "Register a new PerformanceMonitor with Spring if it does not already exist.\n\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered" ]
[ "We have reason to believe we might have enough information to calculate a signature for the track loaded on a\nplayer. Verify that, and if so, perform the computation and record and report the new signature.", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "This method returns the value of the product using a Black-Scholes model for the swap rate\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve on which to value the swap.\n@param swaprateVolatility The Black volatility.\n@return Value of this product", "Invokes the exit logger if and only if no ExitLogger was previously invoked.\n@param logger the logger. Cannot be {@code null}", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.", "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "compares two java files", "Callback from the worker when it terminates" ]
public T reverse() { String id = getId(); String REVERSE = "_REVERSE"; if (id.endsWith(REVERSE)) { setId(id.substring(0, id.length() - REVERSE.length())); } float start = mStart; float end = mEnd; mStart = end; mEnd = start; mReverse = !mReverse; return self(); }
[ "Reverse how the transition is applied, such that the transition previously performed when progress=start of range is only performed when progress=end of range\n\n@return" ]
[ "Called from the native side\n@param eye", "Does this procedure return any values to the 'caller'?\n\n@return <code>true</code> if the procedure returns at least 1\nvalue that is returned to the caller.", "Retrieve a UUID field.\n\n@param type field type\n@return UUID instance", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "Calculate UserInfo strings.", "Retrieves the parent task for a Phoenix activity.\n\n@param activity Phoenix activity\n@return parent task", "Obtains a local date in Julian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Julian local date, not null\n@throws DateTimeException if unable to create the date", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the specified position, after everything has been shifted" ]
public static String fancyStringF(double value, DecimalFormat format, int length, int significant) { String formatted = fancyString(value, format, length, significant); int n = length-formatted.length(); if( n > 0 ) { StringBuilder builder = new StringBuilder(n); for (int i = 0; i < n; i++) { builder.append(' '); } return formatted + builder.toString(); } else { return formatted; } }
[ "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string" ]
[ "Copied from AbstractEntityPersister", "Creates a ServiceCall from a paging operation that returns a header response.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@param <V> the header object type\n@return the future based ServiceCall", "Returns true if the context has access to any given permissions.", "Add a file to notify the script that asked to stop the print that it is now done processing the remain\njobs.", "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "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 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.", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue." ]
public static int getActionBarHeight(Context context) { int actionBarHeight = UIUtils.getThemeAttributeDimensionSize(context, R.attr.actionBarSize); if (actionBarHeight == 0) { actionBarHeight = context.getResources().getDimensionPixelSize(R.dimen.abc_action_bar_default_height_material); } return actionBarHeight; }
[ "helper to calculate the actionBar height\n\n@param context\n@return" ]
[ "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed.", "Get the replication partitions list for the given partition.\n\n@param index Partition id for which we are generating the preference list\n@return The List of partitionId where this partition is replicated.", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "Given a particular id, return the correct contextual. For contextuals\nwhich aren't passivation capable, the contextual can't be found in another\ncontainer, and null will be returned.\n\n@param id An identifier for the contextual\n@return the contextual", "Request a scoped transactional token for a particular resource.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@param resource resource transactional token has access to.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "OR operation which takes the previous clause and the next clause and OR's them together.", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Extracts a house holder vector from the column of A and stores it in u\n@param A Complex matrix with householder vectors stored in the lower left triangle\n@param row0 first row in A (implicitly assumed to be r + i0)\n@param row1 last row + 1 in A\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U" ]
public double[] getRegressionCoefficients(RandomVariable value) { if(basisFunctions.length == 0) { return new double[] { }; } else if(basisFunctions.length == 1) { /* * Regression with one basis function is just a projection on that vector. <b,x>/<b,b> */ return new double[] { value.mult(basisFunctions[0]).getAverage() / basisFunctions[0].squared().getAverage() }; } else if(basisFunctions.length == 2) { /* * Regression with two basis functions can be solved explicitly if determinant != 0 (otherwise we will fallback to SVD) */ double a = basisFunctions[0].squared().getAverage(); double b = basisFunctions[0].mult(basisFunctions[1]).average().squared().doubleValue(); double c = b; double d = basisFunctions[1].squared().getAverage(); double determinant = (a * d - b * c); if(determinant != 0) { double x = value.mult(basisFunctions[0]).getAverage(); double y = value.mult(basisFunctions[1]).getAverage(); double alpha0 = (d * x - b * y) / determinant; double alpha1 = (a * y - c * x) / determinant; return new double[] { alpha0, alpha1 }; } } /* * General case */ // Build regression matrix double[][] BTB = new double[basisFunctions.length][basisFunctions.length]; for(int i=0; i<basisFunctions.length; i++) { for(int j=0; j<=i; j++) { double covariance = basisFunctions[i].mult(basisFunctions[j]).getAverage(); BTB[i][j] = covariance; BTB[j][i] = covariance; } } double[] BTX = new double[basisFunctions.length]; for(int i=0; i<basisFunctions.length; i++) { double covariance = basisFunctions[i].mult(value).getAverage(); BTX[i] = covariance; } return LinearAlgebra.solveLinearEquationLeastSquare(BTB, BTX); }
[ "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients." ]
[ "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise.", "The token was previously determined as potentially to-be-splitted thus we\nemit additional indentation or dedenting tokens.", "Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "The grammar elements that may occur at the given offset.", "Calculate the units percent complete.\n\n@param row task data\n@return percent complete", "Registers an event handler in the repository shared between Javascript\nand Java.\n\n@param h Event handler to be registered.\n@return Callback key that Javascript will use to find this handler.", "Obtains a Julian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public Slice newSlice(long address, int size, Object reference) { if (address <= 0) { throw new IllegalArgumentException("Invalid address: " + address); } if (reference == null) { throw new NullPointerException("Object reference is null"); } if (size == 0) { return Slices.EMPTY_SLICE; } return new Slice(null, address, size, size, reference); }
[ "Creates a slice for directly a raw memory address. This is\ninherently unsafe as it may be used to access arbitrary memory.\nThe slice will hold the specified object reference to prevent the\ngarbage collector from freeing it while it is in use by the slice.\n\n@param address the raw memory address base\n@param size the size of the slice\n@param reference the object reference\n@return the unsafe slice" ]
[ "Compute the CRC32 of the segment of the byte array given by the\nspecificed size and offset\n\n@param bytes The bytes to checksum\n@param offset the offset at which to begin checksumming\n@param size the number of bytes to checksum\n@return The CRC32", "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance", "Sets the server groups for the deployment.\n\n@param serverGroups the server groups to set\n\n@return this deployment", "Print a date time value.\n\n@param value date time value\n@return string representation", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "Checks the given class descriptor for correct object cache setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Add a content modification.\n\n@param modification the content modification", "Process any StepEvent. You can change last added to stepStorage\nstep using this method.\n\n@param event to process", "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value" ]
public static base_responses update(nitro_service client, tmtrafficaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmtrafficaction updateresources[] = new tmtrafficaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new tmtrafficaction(); updateresources[i].name = resources[i].name; updateresources[i].apptimeout = resources[i].apptimeout; updateresources[i].sso = resources[i].sso; updateresources[i].formssoaction = resources[i].formssoaction; updateresources[i].persistentcookie = resources[i].persistentcookie; updateresources[i].initiatelogout = resources[i].initiatelogout; updateresources[i].kcdaccount = resources[i].kcdaccount; updateresources[i].samlssoprofile = resources[i].samlssoprofile; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update tmtrafficaction resources." ]
[ "Get info for a given topic\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.topics.getInfo.html\">API Documentation</a>", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "Return cached object by key. The key will be concatenated with\ncurrent session id when fetching the cached object\n\n@param key\n@param <T>\nthe object type\n@return the cached object", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "Promotes this version of the file to be the latest version.", "Performs a get all operation with the specified composite request object\n\n@param requestWrapper Composite request object containing a reference to\nthe Iterable keys\n\n@return Map of the keys to the corresponding versioned values", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException" ]
public static void stopService() { DaemonStarter.currentPhase.set(LifecyclePhase.STOPPING); final CountDownLatch cdl = new CountDownLatch(1); Executors.newSingleThreadExecutor().execute(() -> { DaemonStarter.getLifecycleListener().stopping(); DaemonStarter.daemon.stop(); cdl.countDown(); }); try { int timeout = DaemonStarter.lifecycleListener.get().getShutdownTimeoutSeconds(); if (!cdl.await(timeout, TimeUnit.SECONDS)) { DaemonStarter.rlog.error("Failed to stop gracefully"); DaemonStarter.abortSystem(); } } catch (InterruptedException e) { DaemonStarter.rlog.error("Failure awaiting stop", e); Thread.currentThread().interrupt(); } }
[ "Stop the service and end the program" ]
[ "domain.xml", "Add an individual class to the map file.\n\n@param loader jar file class loader\n@param jarEntry jar file entry\n@param writer XML stream writer\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Use this API to update sslcertkey resources.", "Obtains a string from a PDF value\n@param value the PDF value of the String, Integer or Float type\n@return the corresponging string value", "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate", "Use this API to update gslbservice.", "Finds the last entry of the address list and returns it as a property.\n\n@param address the address to get the last part of\n\n@return the last part of the address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached." ]
public static aaagroup_vpnsessionpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_vpnsessionpolicy_binding obj = new aaagroup_vpnsessionpolicy_binding(); obj.set_groupname(groupname); aaagroup_vpnsessionpolicy_binding response[] = (aaagroup_vpnsessionpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name ." ]
[ "Use this API to update rnatparam.", "Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object", "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0.", "Returns true if this Bytes object equals another. This method doesn't check it's arguments.\n\n@since 1.2.0", "selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object", "Return a list of unique values for a namespace and predicate.\n\nThis method does not require authentication.\n\n@param namespace\nThe namespace that all values should be restricted to.\n@param predicate\nThe predicate that all values should be restricted to.\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList\n@throws FlickrException", "We have obtained a beat grid for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this beat grid\n@param beatGrid the beat grid which we retrieved", "Gets the declared bean type\n\n@return The bean type", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException" ]
protected void propagateOnNoPick(GVRPicker picker) { if (mEventOptions.contains(EventOptions.SEND_PICK_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { getGVRContext().getEventManager().sendEvent(this, IPickEvents.class, "onNoPick", picker); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { getGVRContext().getEventManager().sendEvent(mScene, IPickEvents.class, "onNoPick", picker); } } }
[ "Propagate onNoPick events to listeners\n@param picker GVRPicker which generated the event" ]
[ "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria", "Creates a single property declaration.\n@param property Property name.\n@param term Property value.\n@return The resulting declaration.", "Get a collection of methods declared on this object by method name and parameter count.\n\n@param name the name of the method\n@param paramCount the number of parameters\n@return the (possibly empty) collection of methods with the given name and parameter count", "If there are any observer methods, they must be static or business\nmethods.", "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>", "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif the update should be cancelled\n\n@throws IllegalStateException if this policy is not expecting a request\nto update the given server", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" optional=\"true\" description=\"The parameter name.\"", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound." ]
public String getPermalink(CmsObject cms, String resourceName, CmsUUID detailContentId) { String permalink = ""; try { permalink = substituteLink(cms, CmsPermalinkResourceHandler.PERMALINK_HANDLER); String id = cms.readResource(resourceName, CmsResourceFilter.ALL).getStructureId().toString(); permalink += id; if (detailContentId != null) { permalink += ":" + detailContentId; } String ext = CmsFileUtil.getExtension(resourceName); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(ext)) { permalink += ext; } CmsSite currentSite = OpenCms.getSiteManager().getCurrentSite(cms); String serverPrefix = null; if (currentSite == OpenCms.getSiteManager().getDefaultSite()) { Optional<CmsSite> siteForDefaultUri = OpenCms.getSiteManager().getSiteForDefaultUri(); if (siteForDefaultUri.isPresent()) { serverPrefix = siteForDefaultUri.get().getServerPrefix(cms, resourceName); } else { serverPrefix = OpenCms.getSiteManager().getWorkplaceServer(); } } else { serverPrefix = currentSite.getServerPrefix(cms, resourceName); } if (!permalink.startsWith(serverPrefix)) { permalink = serverPrefix + permalink; } } catch (CmsException e) { // if something wrong permalink = e.getLocalizedMessage(); if (LOG.isErrorEnabled()) { LOG.error(e.getLocalizedMessage(), e); } } return permalink; }
[ "Returns the perma link for the given resource and optional detail content.<p<\n\n@param cms the CMS context to use\n@param resourceName the page to generate the perma link for\n@param detailContentId the structure id of the detail content (may be null)\n\n@return the perma link" ]
[ "Creates new metadata template.\n@param api the API connection to be used.\n@param scope the scope of the object.\n@param templateKey a unique identifier for the template.\n@param displayName the display name of the field.\n@param hidden whether this template is hidden in the UI.\n@param fields the ordered set of fields for the template\n@return the metadata template returned from the server.", "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", "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar", "Obtain the annotation associated with this type descriptor of the specified type.\n@param annotationType the annotation type\n@return the annotation, or {@code null} if no such annotation exists on this type descriptor", "Creates and returns a temporary directory for a printing task.", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception", "defines the KEY in the parent report parameters map where to get the subreport parameters map.\n@param path where to get the parameter map for the subrerpot.\n@return", "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>" ]
private Duration getAssignmentWork(ProjectCalendar calendar, TimephasedWork assignment) { Date assignmentStart = assignment.getStart(); Date splitStart = assignmentStart; Date splitFinishTime = calendar.getFinishTime(splitStart); Date splitFinish = DateHelper.setTime(splitStart, splitFinishTime); Duration calendarSplitWork = calendar.getWork(splitStart, splitFinish, TimeUnit.MINUTES); Duration assignmentWorkPerDay = assignment.getAmountPerDay(); Duration splitWork; double splitMinutes = assignmentWorkPerDay.getDuration(); splitMinutes *= calendarSplitWork.getDuration(); splitMinutes /= (8 * 60); // this appears to be a fixed value splitWork = Duration.getInstance(splitMinutes, TimeUnit.MINUTES); return splitWork; }
[ "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration" ]
[ "Builds the DynamicReport object. Cannot be used twice since this produced\nundesired results on the generated DynamicReport object\n\n@return", "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID", "from IsoFields in ThreeTen-Backport", "Send JSON representation of given data object to all connections of a user\n@param data the data object\n@param username the username", "Set the value of the underlying component. Note that this will\nnot work for ListEditor components. Also, note that for a JComboBox,\nThe value object must have the same identity as an object in the drop-down.\n\n@param propName The DMR property name to set.\n@param value The value.", "Calculate a shift value that can be used to create a power-of-two value between\nthe specified maximum and minimum values.\n@param minimumValue the minimum value\n@param maximumValue the maximum value\n@return the calculated shift (use {@code 1 << shift} to obtain a value)", "Finish initialization of the configuration.", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Converts a gwt Date in the timezone of the current browser to a time in\nUTC.\n\n@return A Long corresponding to the number of milliseconds since January\n1, 1970, 00:00:00 GMT or null if the specified Date is null." ]
public Where<T, ID> in(String columnName, Object... objects) throws SQLException { return in(true, columnName, objects); }
[ "Add a IN clause so the column must be equal-to one of the objects passed in." ]
[ "Use this API to fetch appflowpolicylabel resource of given name .", "Mark unfinished test cases as interrupted for each unfinished test suite, then write\ntest suite result\n@see #createFakeTestcaseWithWarning(ru.yandex.qatools.allure.model.TestSuiteResult)\n@see #markTestcaseAsInterruptedIfNotFinishedYet(ru.yandex.qatools.allure.model.TestCaseResult)", "Estimate excluded volume fraction by monte carlo method\n@return excluded volume fraction", "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", "Calculate the summed conditional likelihood of this data by summing\nconditional estimates.", "read all brokers in the zookeeper\n\n@param zkClient zookeeper client\n@return all brokers", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Reads a command \"tag\" from the request.", "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" ]
public static Date getTime(int hour, int minutes) { Calendar cal = popCalendar(); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minutes); cal.set(Calendar.SECOND, 0); Date result = cal.getTime(); pushCalendar(cal); return result; }
[ "Create a Date instance representing a specific time.\n\n@param hour hour 0-23\n@param minutes minutes 0-59\n@return new Date instance" ]
[ "Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit.", "Use this API to Import sslfipskey.", "Use this API to fetch appqoepolicy resource of given name .", "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@param resource the resource for which the new token has to be obtained\n@return scopedToken which has access token and other details", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "decodes the uriFragment\n\n@param res the resource that contains the feature holder\n@param uriFragment the fragment that should be decoded\n@return the decoded information\n@see LazyURIEncoder#encode(EObject, EReference, INode)", "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "Estimate excluded volume fraction by monte carlo method\n@return excluded volume fraction", "Send JSON representation of given data object to all connections tagged with all give tag labels\n@param data the data object\n@param labels the tag labels" ]
public double compare(String v1, String v2) { // FIXME: it should be possible here to say that, actually, we // didn't learn anything from comparing these two values, so that // probability is set to 0.5. if (comparator == null) return 0.5; // we ignore properties with no comparator // first, we call the comparator, to get a measure of how similar // these two values are. note that this is not the same as what we // are going to return, which is a probability. double sim = comparator.compare(v1, v2); // we have been configured with a high probability (for equal // values) and a low probability (for different values). given // sim, which is a measure of the similarity somewhere in between // equal and different, we now compute our estimate of the // probability. // if sim = 1.0, we return high. if sim = 0.0, we return low. for // values in between we need to compute a little. the obvious // formula to use would be (sim * (high - low)) + low, which // spreads the values out equally spaced between high and low. // however, if the similarity is higher than 0.5 we don't want to // consider this negative evidence, and so there's a threshold // there. also, users felt Duke was too eager to merge records, // and wanted probabilities to fall off faster with lower // probabilities, and so we square sim in order to achieve this. if (sim >= 0.5) return ((high - 0.5) * (sim * sim)) + 0.5; else return low; }
[ "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc." ]
[ "This method is called to ensure that after a project file has been\nread, the cached unique ID values used to generate new unique IDs\nstart after the end of the existing set of unique IDs.", "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure", "Creates a converter function that converts value into primitive type.\n\n@return A converter function or {@code null} if the given type is not primitive type or boxed type", "Goes through the buckets from ix and out, checking for each\ncandidate if it's in one of the buckets, and if so, increasing\nits score accordingly. No new candidates are added.", "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Ensure that the node is not null.\n\n@param node the node to ensure to be not null\n@param expression the expression was used to find the node\n@throws SpinXPathException if the node is null", "Determines the partition ID that replicates the key on the given node.\n\n@param nodeId of the node\n@param key to look up.\n@return partitionId if found, otherwise null.", "Returns a single item from the Iterator.\nIf there's none, returns null.\nIf there are more, throws an IllegalStateException.\n\n@throws IllegalStateException" ]
public static void invert( final int blockLength , final boolean upper , final DSubmatrixD1 T , final DSubmatrixD1 T_inv , final double temp[] ) { if( upper ) throw new IllegalArgumentException("Upper triangular matrices not supported yet"); if( temp.length < blockLength*blockLength ) throw new IllegalArgumentException("Temp must be at least blockLength*blockLength long."); if( T.row0 != T_inv.row0 || T.row1 != T_inv.row1 || T.col0 != T_inv.col0 || T.col1 != T_inv.col1) throw new IllegalArgumentException("T and T_inv must be at the same elements in the matrix"); final int M = T.row1-T.row0; final double dataT[] = T.original.data; final double dataX[] = T_inv.original.data; final int offsetT = T.row0*T.original.numCols+M*T.col0; for( int i = 0; i < M; i += blockLength ) { int heightT = Math.min(T.row1-(i+T.row0),blockLength); int indexII = offsetT + T.original.numCols*(i+T.row0) + heightT*(i+T.col0); for( int j = 0; j < i; j += blockLength ) { int widthX = Math.min(T.col1-(j+T.col0),blockLength); for( int w = 0; w < temp.length; w++ ) { temp[w] = 0; } for( int k = j; k < i; k += blockLength ) { int widthT = Math.min(T.col1-(k+T.col0),blockLength); int indexL = offsetT + T.original.numCols*(i+T.row0) + heightT*(k+T.col0); int indexX = offsetT + T.original.numCols*(k+T.row0) + widthT*(j+T.col0); blockMultMinus(dataT,dataX,temp,indexL,indexX,0,heightT,widthT,widthX); } int indexX = offsetT + T.original.numCols*(i+T.row0) + heightT*(j+T.col0); InnerTriangularSolver_DDRB.solveL(dataT,temp,heightT,widthX,heightT,indexII,0); System.arraycopy(temp,0,dataX,indexX,widthX*heightT); } InnerTriangularSolver_DDRB.invertLower(dataT,dataX,heightT,indexII,indexII); } }
[ "Inverts an upper or lower triangular block submatrix.\n\n@param blockLength\n@param upper Is it upper or lower triangular.\n@param T Triangular matrix that is to be inverted. Must be block aligned. Not Modified.\n@param T_inv Where the inverse is stored. This can be the same as T. Modified.\n@param temp Work space variable that is size blockLength*blockLength." ]
[ "Use this API to save cacheobject.", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Get the primitive attributes for the associated object.\n\n@return attributes for associated objects\n@deprecated replaced by {@link #getAllAttributes()} after introduction of nested associations", "Iterates through the range of prefixes in this range instance using the given prefix length.\n\n@param prefixLength\n@return", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Generates a usable test specification for a given test definition\nUses the first bucket as the fallback value\n\n@param testDefinition a {@link TestDefinition}\n@return a {@link TestSpecification} which corresponding to given test definition.", "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", "Called when the pattern has changed.", "Use this API to unlink sslcertkey." ]
public static int cudnnGetConvolutionNdDescriptor( cudnnConvolutionDescriptor convDesc, int arrayLengthRequested, int[] arrayLength, int[] padA, int[] strideA, int[] dilationA, int[] mode, int[] computeType)/** convolution data type */ { return checkResult(cudnnGetConvolutionNdDescriptorNative(convDesc, arrayLengthRequested, arrayLength, padA, strideA, dilationA, mode, computeType)); }
[ "convolution data type" ]
[ "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise", "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs.", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long", "Add an entry to the cache.\n@param key key to use.\n@param value access token information to store.", "Returns true if the context has access to any given permissions.", "Use this API to save cacheobject resources.", "Determines the address for the host being used.\n\n@param client the client used to communicate with the server\n\n@return the address of the host\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to determine the host name fails", "We have received an update that invalidates the waveform detail for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated" ]
private void validateJUnit4() throws BuildException { try { Class<?> clazz = Class.forName("org.junit.runner.Description"); if (!Serializable.class.isAssignableFrom(clazz)) { throw new BuildException("At least JUnit version 4.10 is required on junit4's taskdef classpath."); } } catch (ClassNotFoundException e) { throw new BuildException("JUnit JAR must be added to junit4 taskdef's classpath."); } }
[ "Validate JUnit4 presence in a concrete version." ]
[ "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Create an IPv6 mixed address using the given ipv6 segments and using this address for the embedded IPv4 segments\n\n@param segs\n@return", "Encodes the given URI query with the given encoding.\n@param query the query to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "In case we cannot delete a directory create a marker to recheck whether we can garbage collect some not\nreferenced directories and files.\n\n@param file the directory", "Returns true if string starts and ends with double-quote\n@param str\n@return", "Use this API to fetch rnat6_nsip6_binding resources of given name .", "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object", "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray.", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions" ]
public static double distance(double lat1, double lon1, double lat2, double lon2) { double dLat = Math.toRadians(lat2-lat1); double dLon = Math.toRadians(lon2-lon1); lat1 = Math.toRadians(lat1); lat2 = Math.toRadians(lat2); double a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); return R * c; }
[ "Returns the distance between the two points in meters." ]
[ "Updates property of parent id for the image provided.\nReturns false if image was not captured true otherwise.\n\n@param log\n@param imageTag\n@param host\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Write the field to the specified channel.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel", "The read timeout for the underlying URLConnection to the twitter stream.", "Creates a new Box Developer Edition connection with App User token.\n@param userId the user ID to use for an App User.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@return A Location\n@throws FlickrException", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Converts a time in UTC to a gwt Date object which is in the timezone of\nthe current browser.\n\n@return The Date corresponding to the time, adjusted for the timezone of\nthe current browser. null if the specified time is null or\nrepresents a negative number." ]
public void addPathToRequestResponseTable(int profileId, String clientUUID, int pathId) throws Exception { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection .prepareStatement("INSERT INTO " + Constants.DB_TABLE_REQUEST_RESPONSE + "(" + Constants.REQUEST_RESPONSE_PATH_ID + "," + Constants.GENERIC_PROFILE_ID + "," + Constants.GENERIC_CLIENT_UUID + "," + Constants.REQUEST_RESPONSE_REPEAT_NUMBER + "," + Constants.REQUEST_RESPONSE_RESPONSE_ENABLED + "," + Constants.REQUEST_RESPONSE_REQUEST_ENABLED + "," + Constants.REQUEST_RESPONSE_CUSTOM_RESPONSE + "," + Constants.REQUEST_RESPONSE_CUSTOM_REQUEST + ")" + " VALUES (?, ?, ?, ?, ?, ?, ?, ?);"); statement.setInt(1, pathId); statement.setInt(2, profileId); statement.setString(3, clientUUID); statement.setInt(4, -1); statement.setInt(5, 0); statement.setInt(6, 0); statement.setString(7, ""); statement.setString(8, ""); statement.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception" ]
[ "Pushes a class type onto the stack from the string representation This can\nalso handle primitives\n\n@param b the bytecode\n@param classType the type descriptor for the class or primitive to push.\nThis will accept both the java.lang.Object form and the\nLjava/lang/Object; form", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value", "Computes the unbiased standard deviation of all the elements.\n\n@return standard deviation", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "If the file is compressed, handle this so that the stream is ready to read.\n\n@param stream input stream\n@return uncompressed input stream", "Parse a filter expression.\n\n@param filter the filter expression\n@return compiled nodes", "Calculate the arc length by angle and radius\n@param angle\n@return arc length" ]
public void processCalendar(Row calendarRow, Map<Integer, Row> workPatternMap, Map<Integer, List<Row>> workPatternAssignmentMap, Map<Integer, List<Row>> exceptionAssignmentMap, Map<Integer, List<Row>> timeEntryMap, Map<Integer, DayType> exceptionTypeMap) { // // Create the calendar and add the default working hours // ProjectCalendar calendar = m_project.addCalendar(); Integer dominantWorkPatternID = calendarRow.getInteger("DOMINANT_WORK_PATTERN"); calendar.setUniqueID(calendarRow.getInteger("CALENDARID")); processWorkPattern(calendar, dominantWorkPatternID, workPatternMap, timeEntryMap, exceptionTypeMap); calendar.setName(calendarRow.getString("NAMK")); // // Add any additional working weeks // List<Row> rows = workPatternAssignmentMap.get(calendar.getUniqueID()); if (rows != null) { for (Row row : rows) { Integer workPatternID = row.getInteger("WORK_PATTERN"); if (!workPatternID.equals(dominantWorkPatternID)) { ProjectCalendarWeek week = calendar.addWorkWeek(); week.setDateRange(new DateRange(row.getDate("START_DATE"), row.getDate("END_DATE"))); processWorkPattern(week, workPatternID, workPatternMap, timeEntryMap, exceptionTypeMap); } } } // // Add exceptions - not sure how exceptions which turn non-working days into working days are handled by Asta - if at all? // rows = exceptionAssignmentMap.get(calendar.getUniqueID()); if (rows != null) { for (Row row : rows) { Date startDate = row.getDate("STARU_DATE"); Date endDate = row.getDate("ENE_DATE"); calendar.addCalendarException(startDate, endDate); } } m_eventManager.fireCalendarReadEvent(calendar); }
[ "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calendar data\n@param workPatternMap work pattern map\n@param workPatternAssignmentMap work pattern assignment map\n@param exceptionAssignmentMap exception assignment map\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map" ]
[ "Extract and return the table name for a class.", "Return the number of ignored or assumption-ignored tests.", "Read a field into our table configuration for field=value line.", "This method can be used by child classes to apply the configuration that is stored in config.", "If a policy already exists on a folder, this will apply that policy to all existing files and sub folders within\nthe target folder.\n\n@param conflictResolution the desired behavior for conflict-resolution. Set to either none or overwrite.", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Carry out any post-processing required to tidy up\nthe data read from the database.", "Get the domain controller data from the given byte buffer.\n\n@param buffer the byte buffer\n@return the domain controller data\n@throws Exception", "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array." ]
public String getKeySchema() throws IOException { Schema schema = getInputPathAvroSchema(); String keySchema = schema.getField(keyFieldName).schema().toString(); return keySchema; }
[ "Extract schema of the key field" ]
[ "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <code>null</code>", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Parses a duration and returns the corresponding number of milliseconds.\n\nDurations consist of a space-separated list of components of the form {number}{time unit},\nfor example 1d 5m. The available units are d (days), h (hours), m (months), s (seconds), ms (milliseconds).<p>\n\n@param durationStr the duration string\n@param defaultValue the default value to return in case the pattern does not match\n@return the corresponding number of milliseconds", "Set the locking values\n@param cld\n@param obj\n@param oldLockingValues", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "When using a map rotation, there might be tiles that are outside the rotated map area. To avoid to load\nthese tiles, this method checks if a tile is really required to draw the map.", "Delete the partition steal information from the rebalancer state\n\n@param stealInfo The steal information to delete" ]
public void loadObject(Object object, Set<String> excludedMethods) { m_model.setTableModel(createTableModel(object, excludedMethods)); }
[ "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude" ]
[ "Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add", "Show multiple channels. All other channels will be unaffected.\n@param channels The channels to show", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator", "map a property id. Property id can only be an Integer or String", "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Finish configuration.", "Read flow id from message.\n\n@param message the message\n@return the FlowId as string" ]
protected Object checkUndefined(Object val) { if (val instanceof String && ((String) val).equals("undefined")) { return null; } return val; }
[ "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in." ]
[ "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value", "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "Determines whether the specified permission is permitted.\n\n@param permission\n@return <tt>false<tt> if the specified permission is not permitted, based on the current security policy; <tt>true<tt> otherwise", "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements", "Bilinear interpolation of ARGB values.\n@param x the X interpolation parameter 0..1\n@param y the y interpolation parameter 0..1\n@param rgb array of four ARGB values in the order NW, NE, SW, SE\n@return the interpolated value", "This handler will be triggered when search is finish", "misc utility methods", "Update the lastCheckTime of the given record.\n\n@param id the id\n@param lastCheckTime the new value", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity" ]
@Nullable public final String getStringContent(final long blobHandle, @NotNull final Transaction txn) throws IOException { String result; result = stringContentCache.tryKey(this, blobHandle); if (result == null) { final InputStream content = getContent(blobHandle, txn); if (content == null) { logger.error("Blob string not found: " + getBlobLocation(blobHandle), new FileNotFoundException()); } result = content == null ? null : UTFUtil.readUTF(content); if (result != null && result.length() <= config.getBlobStringsCacheMaxValueSize()) { if (stringContentCache.getObject(this, blobHandle) == null) { stringContentCache.cacheObject(this, blobHandle, result); } } } return result; }
[ "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong" ]
[ "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Configure all UI elements in the \"ending\"-options panel.", "Empirical data from 3.x, actual =40", "Set the week of month.\n@param weekOfMonthStr the week of month to set.", "this method will be invoked after methodToBeInvoked is invoked", "Goes through the first buckets, picking out candidate records and\ntallying up their scores.\n@return the index of the first bucket we did not process", "Use this API to fetch the statistics of all spilloverpolicy_stats resources that are configured on netscaler.", "Deletes all outgoing links of specified entity.\n\n@param entity the entity." ]
public MaterialAccount getAccountByTitle(String title) { for(MaterialAccount account : accountManager) if(currentAccount.getTitle().equals(title)) return account; return null; }
[ "Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists" ]
[ "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "Returns a builder that is initialized with the given path.\n@param path the path to initialize with\n@return the new {@code UriComponentsBuilder}", "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", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)", "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Write the configuration to a buffered writer." ]
public static String getStringProperty(String name, Map<String, String> map, String defaultValue) { if (map.containsKey(name) && Strings.isNotNullOrEmpty(map.get(name))) { defaultValue = map.get(name); } return getPropertyOrEnvironmentVariable(name, defaultValue); }
[ "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found." ]
[ "Sets the HTTP poller processor to handle Async API.\nWill auto enable the pollable mode with this call\n\n@param httpPollerProcessor\nthe http poller processor\n@return the parallel task builder", "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance", "Use this API to fetch tmtrafficaction resource of given name .", "Runs the given method with the specified arguments, substituting with proxies where necessary\n@param method\n@param target proxy target\n@param args\n@return Proxy-fied result for statements, actual call result otherwise\n@throws IllegalAccessException\n@throws InvocationTargetException", "Get the replication partitions list for the given partition.\n\n@param index Partition id for which we are generating the preference list\n@return The List of partitionId where this partition is replicated.", "Convert string to qname.\n\n@param str the string\n@return the qname", "Returns the smallest prefix length possible such that this address division grouping includes the block of addresses for that prefix.\n\n@return the prefix length", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value" ]
protected I_CmsSearchConfigurationFacetRange parseRangeFacet(String pathPrefix) { try { final String range = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_RANGE); final String name = parseOptionalStringValue(pathPrefix + XML_ELEMENT_FACET_NAME); final String label = parseOptionalStringValue(pathPrefix + XML_ELEMENT_FACET_LABEL); final Integer minCount = parseOptionalIntValue(pathPrefix + XML_ELEMENT_FACET_MINCOUNT); final String start = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_START); final String end = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_END); final String gap = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_GAP); final String sother = parseOptionalStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_OTHER); List<I_CmsSearchConfigurationFacetRange.Other> other = null; if (sother != null) { final List<String> sothers = Arrays.asList(sother.split(",")); other = new ArrayList<I_CmsSearchConfigurationFacetRange.Other>(sothers.size()); for (String so : sothers) { try { I_CmsSearchConfigurationFacetRange.Other o = I_CmsSearchConfigurationFacetRange.Other.valueOf( so); other.add(o); } catch (final Exception e) { LOG.error(Messages.get().getBundle().key(Messages.ERR_INVALID_OTHER_OPTION_1, so), e); } } } final Boolean hardEnd = parseOptionalBooleanValue(pathPrefix + XML_ELEMENT_RANGE_FACET_HARDEND); final Boolean isAndFacet = parseOptionalBooleanValue(pathPrefix + XML_ELEMENT_FACET_ISANDFACET); final List<String> preselection = parseOptionalStringValues(pathPrefix + XML_ELEMENT_FACET_PRESELECTION); final Boolean ignoreAllFacetFilters = parseOptionalBooleanValue( pathPrefix + XML_ELEMENT_FACET_IGNOREALLFACETFILTERS); return new CmsSearchConfigurationFacetRange( range, start, end, gap, other, hardEnd, name, minCount, label, isAndFacet, preselection, ignoreAllFacetFilters); } catch (final Exception e) { LOG.error( Messages.get().getBundle().key( Messages.ERR_RANGE_FACET_MANDATORY_KEY_MISSING_1, XML_ELEMENT_RANGE_FACET_RANGE + ", " + XML_ELEMENT_RANGE_FACET_START + ", " + XML_ELEMENT_RANGE_FACET_END + ", " + XML_ELEMENT_RANGE_FACET_GAP), e); return null; } }
[ "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured." ]
[ "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish", "Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity Time to maturity.\n@param swapAnnuity The swap annuity as seen on valuation time.\n@return The Bachelier implied volatility.", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file", "Use this API to delete gslbservice of given name.", "Return primary key values of given Identity object.\n\n@param cld\n@param oid\n@return Object[]\n@throws PersistenceBrokerException", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object", "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date", "Parse a duration value.\n\n@param value duration value\n@return Duration instance" ]
@Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; }
[ "Extracts location result from intent object\n\n@param intent valid intent object\n@return location result.\n@since 1.1.0" ]
[ "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default", "Sets the ojbQuery, needed only as long we\ndon't support the soda constraint stuff.\n@param ojbQuery The ojbQuery to set", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Generate JSON format as result of the scan.\n\n@since 1.2", "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", "I KNOW WHAT I AM DOING", "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator." ]
public void useSimpleProxy() { String webAppAddress = "http://localhost:" + port + "/services/personservice"; PersonService proxy = JAXRSClientFactory.create(webAppAddress, PersonService.class); new PersonServiceProxyClient(proxy).useService(); }
[ "This function uses a proxy which is capable of transforming typed invocations into proper HTTP calls\nwhich will be understood by RESTful services. This works for subresources as well. Interfaces and\nconcrete classes can be proxified, in the latter case a CGLIB runtime dependency is needed. CXF JAX-RS\nproxies can be configured the same way as HTTP-centric WebClients and response status and headers can\nalso be checked. HTTP response errors can be converted into typed exceptions." ]
[ "Switches from a dense to sparse matrix", "This method is called to alert project listeners to the fact that\na resource assignment has been written to a project file.\n\n@param resourceAssignment resourceAssignment instance", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Build a compact representation of the ModelNode.\n@param node The model\n@return A single line containing the multi lines ModelNode.toString() content.", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "Create a temporary directory under a given workspace", "Check that each requirement is satisfied.\n\n@param currentPath the json path to the element being checked" ]
public boolean canLockBecauseOfInactivity(CmsObject cms, CmsUser user) { return !user.isManaged() && !user.isWebuser() && !OpenCms.getDefaultUsers().isDefaultUser(user.getName()) && !OpenCms.getRoleManager().hasRole(cms, user.getName(), CmsRole.ROOT_ADMIN); }
[ "Checks whether a user account can be locked because of inactivity.\n\n@param cms the CMS context\n@param user the user to check\n@return true if the user may be locked after being inactive for too long" ]
[ "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", "Calculates the legend bounds for a custom list of legends.", "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Clean wait task queue.", "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", "Reads the next chunk for the intermediate work buffer.", "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Returns the associated SQL WHERE statement.", "Complete both operations and commands." ]
@Modified(id = "exporterServices") void modifiedExporterService(ServiceReference<ExporterService> serviceReference) { try { exportersManager.modified(serviceReference); } catch (InvalidFilterException invalidFilterException) { LOG.error("The ServiceProperty \"" + TARGET_FILTER_PROPERTY + "\" of the ExporterService " + bundleContext.getService(serviceReference) + " doesn't provides a valid Filter." + " To be used, it must provides a correct \"" + TARGET_FILTER_PROPERTY + "\" ServiceProperty.", invalidFilterException ); exportersManager.removeLinks(serviceReference); return; } if (exportersManager.matched(serviceReference)) { exportersManager.updateLinks(serviceReference); } else { exportersManager.removeLinks(serviceReference); } }
[ "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference" ]
[ "Prints the help on the command line\n\n@param options Options object from commons-cli", "See if there is an auto-attach cache file that seems to match the media in the specified slot, and if so,\nattach it.\n\n@param slot the player slot that is under consideration for automatic cache attachment", "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", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Get the best guess we have for the current track position on the specified player.\n\n@param player the player number whose position is desired\n\n@return the milliseconds into the track that we believe playback has reached, or -1 if we don't know\n\n@throws IllegalStateException if the TimeFinder is not running", "Determines whether the given type is an array type.\n\n@param type the given type\n@return true if the given type is a subclass of java.lang.Class or implements GenericArrayType", "Load the given configuration file.", "Returns code number of Task field supplied.\n\n@param field - name\n@return - code no", "Set the permissions for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param permissions\nThe permissions object\n@throws FlickrException" ]
private void writeComma() throws IOException { if (m_firstNameValuePair.peek().booleanValue()) { m_firstNameValuePair.pop(); m_firstNameValuePair.push(Boolean.FALSE); } else { m_writer.write(','); } }
[ "Write a comma to the output stream if required." ]
[ "Checks whether a character sequence matches against a specified pattern or not.\n\n@param pattern\npattern, that the {@code chars} must correspond to\n@param chars\na readable sequence of {@code char} values which should match the given pattern\n@return {@code true} when {@code chars} matches against the passed {@code pattern}, otherwise {@code false}", "Returns a JRDesignExpression that points to the main report connection\n\n@return", "Use this API to clear configuration on netscaler.\n@param force clear confirmation without prompting.\n@param level clear config according to the level. eg: basic, extended, full\n@return status of the operation performed.\n@throws Exception Nitro exception is thrown.", "Returns the end time of the event.\n@return the end time of the event.", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "Stop listening for beats.", "Clear any custom configurations to Redwood\n@return this", "Retrieve a UUID from an input stream.\n\n@param is input stream\n@return UUID instance", "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated." ]
protected void boot(final BootContext context) throws ConfigurationPersistenceException { List<ModelNode> bootOps = configurationPersister.load(); ModelNode op = registerModelControllerServiceInitializationBootStep(context); if (op != null) { bootOps.add(op); } boot(bootOps, false); finishBoot(); }
[ "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded" ]
[ "Obtains a Discordian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Sets the HTML entity 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 htmlElementTranslator translator\n@return this to allow chaining", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound.", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "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", "Helper to read an optional Boolean value.\n@param path The XML path of the element to read.\n@return The Boolean value stored in the XML, or <code>null</code> if the value could not be read.", "read the prefetchInLimit from Config based on OJB.properties", "Given a path to a VFS resource, the method removes the OpenCms context,\nin case the path is prefixed by that context.\n@param path the path where the OpenCms context should be removed\n@return the adjusted path", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency" ]
public static base_responses update(nitro_service client, autoscaleaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { autoscaleaction updateresources[] = new autoscaleaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new autoscaleaction(); updateresources[i].name = resources[i].name; updateresources[i].profilename = resources[i].profilename; updateresources[i].parameters = resources[i].parameters; updateresources[i].vmdestroygraceperiod = resources[i].vmdestroygraceperiod; updateresources[i].quiettime = resources[i].quiettime; updateresources[i].vserver = resources[i].vserver; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update autoscaleaction resources." ]
[ "Convert an object to a list of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return list", "Returns the plugins classpath elements.", "Use this API to count sslcipher_individualcipher_binding resources configued on NetScaler.", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Retrieves from all the Jenkins agents all the docker images, which have been registered for a specific build-info ID\nOnly images for which manifests have been captured are returned.\n\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Fetches a list of available photo licenses for Flickr.\n\nThis method does not require authentication.\n\n@return A collection of License objects\n@throws FlickrException", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nthe name mappings\n@return the populated bean\n@throws SuperCsvReflectionException\nif there was a reflection exception while populating the bean" ]