query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static base_response add(nitro_service client, sslcipher resource) throws Exception { sslcipher addresource = new sslcipher(); addresource.ciphergroupname = resource.ciphergroupname; addresource.ciphgrpalias = resource.ciphgrpalias; return addresource.add_resource(client); }
[ "Use this API to add sslcipher." ]
[ "Update the descriptor content with values from the editor.\n@throws CmsXmlException thrown if update fails due to a wrong XML structure (should never happen)", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration.", "Determine the enum value corresponding to the third play state found in the packet.\n\n@return the proper value", "Resets the generator state.", "Use this API to fetch all the dnspolicylabel resources that are configured on netscaler.", "Resets all override settings for the clientUUID and disables it\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@throws Exception exception", "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method", "Process the module and bundle roots and cross check with the installed information.\n\n@param conf the installed configuration\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the processed layers\n@throws IOException" ]
public static systemcore[] get(nitro_service service, systemcore_args args) throws Exception{ systemcore obj = new systemcore(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systemcore[] response = (systemcore[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the systemcore resources that are configured on netscaler.\nThis uses systemcore_args which is a way to provide additional arguments while fetching the resources." ]
[ "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Alias accessor provided for JSON serialization only", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "Injects bound fields\n\n@param instance The instance to inject into", "Returns true if the specified name is NOT allowed. It isn't allowed if it matches a built in operator\nor if it contains a restricted character.", "A specific, existing custom field can be deleted by making a DELETE request on the URL for that custom field.\n\nReturns an empty data record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Remove the group and all references to it\n\n@param groupId ID of group", "Computes A-B\n\n@param listA\n@param listB\n@return" ]
public void set(float val, Layout.Axis axis) { switch (axis) { case X: x = val; break; case Y: y = val; break; case Z: z = val; break; default: throw new RuntimeAssertion("Bad axis specified: %s", axis); } }
[ "Sets axis dimension\n@param val dimension\n@param axis Axis. It might be either {@link Layout.Axis#X X} or\n{@link Layout.Axis#Y Y} or {@link Layout.Axis#Z Z}" ]
[ "Are we running in Jetty with JMX enabled?", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .", "return either the first space or the first nbsp", "Use this API to update nd6ravariables resources.", "Read task relationships.", "Use this API to fetch authenticationlocalpolicy_authenticationvserver_binding resources of given name .", "Release all memory addresses taken by this allocator.\nBe careful in using this method, since all of the memory addresses become invalid.", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context" ]
public static Info neg(final Variable A, ManagerTempVariables manager) { Info ret = new Info(); if( A instanceof VariableInteger ) { final VariableInteger output = manager.createInteger(); ret.output = output; ret.op = new Operation("neg-i") { @Override public void process() { output.value = -((VariableInteger)A).value; } }; } else if( A instanceof VariableScalar ) { final VariableDouble output = manager.createDouble(); ret.output = output; ret.op = new Operation("neg-s") { @Override public void process() { output.value = -((VariableScalar)A).getDouble(); } }; } else if( A instanceof VariableMatrix ) { final VariableMatrix output = manager.createMatrix(); ret.output = output; ret.op = new Operation("neg-m") { @Override public void process() { DMatrixRMaj a = ((VariableMatrix)A).matrix; output.matrix.reshape(a.numRows, a.numCols); CommonOps_DDRM.changeSign(a, output.matrix); } }; } else { throw new RuntimeException("Unsupported variable "+A); } return ret; }
[ "Returns the negative of the input variable" ]
[ "Gets the first row for a query\n\n@param query query to execute\n@return result or NULL", "Sets the left and right frame margin.\n@param frameLeft margin\n@param frameRight margin\n@return this to allow chaining", "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add.", "Trim the trailing spaces.\n\n@param line", "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Add a post-effect to this camera's render chain.\n\nPost-effects are GL shaders, applied to the texture (hardware bitmap)\ncontaining the rendered scene graph. Each post-effect combines a shader\nselector with a set of parameters: This lets you pass different\nparameters to the shaders for each eye.\n\n@param postEffectData\nPost-effect to append to this camera's render chain", "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@return default projectCalendar instance", "Create a new custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Get this property from the given object.\n@param object an array\n@return the length of the array object\n@throws IllegalArgumentException if object is not an array" ]
public static byte[] explodeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode contentItem = getContentItem(deploymentResource); ModelNode explodedPath = DEPLOYMENT_CONTENT_PATH.resolveModelAttribute(context, operation); byte[] oldHash = CONTENT_HASH.resolveModelAttribute(context, contentItem).asBytes(); final byte[] hash; if (explodedPath.isDefined()) { hash = contentRepository.explodeSubContent(oldHash, explodedPath.asString()); } else { hash = contentRepository.explodeContent(oldHash); } // Clear the contents and update with the hash final ModelNode slave = operation.clone(); ModelNode addedContent = new ModelNode().setEmptyObject(); addedContent.get(HASH).set(hash); addedContent.get(TARGET_PATH.getName()).set("./"); slave.get(CONTENT).setEmptyList().add(addedContent); // Add the domain op transformer List<DomainOperationTransmuter> transformers = context.getAttachment(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS); if (transformers == null) { context.attach(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS, transformers = new ArrayList<>()); } transformers.add(new CompositeOperationAwareTransmuter(slave)); return hash; }
[ "Explode the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException" ]
[ "Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\notherwise.", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition.", "Get the parameters of determining this parametric\ncovariance model. The parameters are usually free parameters\nwhich may be used in calibration.\n\n@return Parameter vector.", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Use this API to link sslcertkey resources.", "Add the given query parameters.\n@param params the params\n@return this UriComponentsBuilder", "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.", "Pauses the playback of a sound.", "In common shader cases, NaN makes little sense. Correspondingly, GVRF is\ngoing to use Float.NaN as illegal flag in many cases. Therefore, we need\na function to check if there is any setX that is using NaN as input.\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 data\nA single float data.\n@throws IllegalArgumentException\nif the data includes NaN." ]
public void useNewSOAPServiceWithOldClientAndRedirection() throws Exception { URL wsdlURL = getClass().getResource("/CustomerService.wsdl"); com.example.customerservice.CustomerServiceService service = new com.example.customerservice.CustomerServiceService(wsdlURL); com.example.customerservice.CustomerService customerService = service.getCustomerServiceRedirectPort(); System.out.println("Using new SOAP CustomerService with old client and the redirection"); customer.v1.Customer customer = createOldCustomer("Barry Old to New SOAP With Redirection"); customerService.updateCustomer(customer); customer = customerService.getCustomerByName("Barry Old to New SOAP With Redirection"); printOldCustomerDetails(customer); }
[ "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side" ]
[ "Creates a list of all permutations for a set with N elements.\n\n@param N Number of elements in the list being permuted.\n@return A list containing all the permutations.", "Figures out the correct class loader to use for a proxy for a given bean", "Get the class name without the qualified package name.\n@param className the className to get the short name for\n@return the class name of the class without the package name\n@throws IllegalArgumentException if the className is empty", "Populate a sorted list of custom fields to ensure that these fields\nare written to the file in a consistent order.", "Construct a new instance.\n\n@return the new instance", "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange", "Get a TokenizerFactory that does Penn Treebank tokenization.\nThis is now the recommended factory method to use.\n\n@param factory A TokenFactory that determines what form of token is returned by the Tokenizer\n@param options A String specifying options (see the class javadoc for details)\n@param <T> The type of the tokens built by the LexedTokenFactory\n@return A TokenizerFactory that does Penn Treebank tokenization", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception" ]
public void forAllMemberTags(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { forAllMemberTags(template, attributes, FOR_FIELD, XDocletTagshandlerMessages.ONLY_CALL_FIELD_NOT_NULL, new String[]{"forAllMemberTags"}); } else if (getCurrentMethod() != null) { forAllMemberTags(template, attributes, FOR_METHOD, XDocletTagshandlerMessages.ONLY_CALL_METHOD_NOT_NULL, new String[]{"forAllMemberTags"}); } }
[ "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.\"" ]
[ "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "Escape a value to be HTML friendly.\n@param value the Object value.\n@return the HTML-escaped String, or <null> if the value is null.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project.\n\n@param projectId The project in which to search for tasks.\n@return Request object", "Process task dependencies.", "apply the base fields to other views if configured to do so.", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Gets a design document from the database.\n\n@param id the design document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}" ]
public static String readCorrelationId(Message message) { if (!(message instanceof SoapMessage)) { return null; } String correlationId = null; Header hdCorrelationId = ((SoapMessage) message).getHeader(CORRELATION_ID_QNAME); if (hdCorrelationId != null) { if (hdCorrelationId.getObject() instanceof String) { correlationId = (String) hdCorrelationId.getObject(); } else if (hdCorrelationId.getObject() instanceof Node) { Node headerNode = (Node) hdCorrelationId.getObject(); correlationId = headerNode.getTextContent(); } else { LOG.warning("Found CorrelationId soap header but value is not a String or a Node! Value: " + hdCorrelationId.getObject().toString()); } } return correlationId; }
[ "Read correlation id.\n\n@param message the message\n@return correlation id from the message" ]
[ "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Get a list of path transformers for a given address.\n\n@param address the path address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return a list of path transformations", "If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline.\nOnce offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled.\nCalling this method again with offline set to false will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline.\n\n@param value boolean, true sets the sdk offline, false sets the sdk back online", "Read task relationships.", "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", "Create a string from bytes using the given encoding\n\n@param bytes The bytes to create a string from\n@param encoding The encoding of the string\n@return The created string", "Use this API to fetch all the gslbservice resources that are configured on netscaler.", "Factory for 'and' and 'or' predicates.", "Keep a cache of items files associated with classification in order to improve performance." ]
public String getAttribute(String section, String name) { Attributes attr = getManifest().getAttributes(section); return attr != null ? attr.getValue(name) : null; }
[ "Returns an attribute's value from a non-main section of this JAR's manifest.\n\n@param section the manifest's section\n@param name the attribute's name" ]
[ "2-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Converts the given dislect to a human-readable datasource type.", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "Plots a list of charts in matrix with 2 columns.\n@param charts", "Process the host info and determine which configuration elements are required on the slave host.\n\n@param hostInfo the host info\n@param root the model root\n@param extensionRegistry the extension registry\n@return", "Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur.", "Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}.", "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible", "Creates a new CRFDatum from the preprocessed allData format, given the\ndocument number, position number, and a List of Object labels.\n\n@return A new CRFDatum" ]
private static <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> AppendableConfigurationContext invokeOptionConfigurator( OptionConfigurator configurator) { ConfigurableImpl configurable = new ConfigurableImpl(); configurator.configure( configurable ); return configurable.getContext(); }
[ "Invokes the given configurator, obtaining the correct global context type via the datastore configuration type of\nthe current datastore provider.\n\n@param configurator the configurator to invoke\n@return a context object containing the options set via the given configurator" ]
[ "Calculates the Black-Scholes option value of an atm call option.\n\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param forward The forward, i.e., the expectation of the index under the measure associated with payoff unit.\n@param payoffUnit The payoff unit, i.e., the discount factor or the anuity associated with the payoff.\n@return Returns the value of a European at-the-money call option under the Black-Scholes model", "Creates the request.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship", "in truth we probably only need the types as injected by the metadata binder", "Print the class's attributes fd", "Returns the associated SQL WHERE statement.", "Will auto format the given string to provide support for pickadate.js formats.", "Join N sets.", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history" ]
public void processField(String template, Properties attributes) throws XDocletException { String name = OjbMemberTagsHandler.getMemberName(); String defaultType = getDefaultJdbcTypeForCurrentMember(); String defaultConversion = getDefaultJdbcConversionForCurrentMember(); FieldDescriptorDef fieldDef = _curClassDef.getField(name); String attrName; if (fieldDef == null) { fieldDef = new FieldDescriptorDef(name); _curClassDef.addField(fieldDef); } LogHelper.debug(false, OjbTagsHandler.class, "processField", " Processing field "+fieldDef.getName()); for (Enumeration attrNames = attributes.propertyNames(); attrNames.hasMoreElements(); ) { attrName = (String)attrNames.nextElement(); fieldDef.setProperty(attrName, attributes.getProperty(attrName)); } // storing additional info for later use fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_JAVA_TYPE, OjbMemberTagsHandler.getMemberType().getQualifiedName()); fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_JDBC_TYPE, defaultType); if (defaultConversion != null) { fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_CONVERSION, defaultConversion); } _curFieldDef = fieldDef; generate(template); _curFieldDef = null; }
[ "Sets the current field 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=\"access\" optional=\"true\" description=\"The accessibility of the column\" values=\"readonly,readwrite\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"none,ojb,database\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"column-documentation\" optional=\"true\" description=\"Documentation on the column\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"" ]
[ "Locates the services in the context classloader of the current thread.\n\n@param serviceType the type of the services to locate\n@param <X> the type of the service\n@return the service type loader", "Reads and returns the mediator URN from the JSON content.\n\n@see #RegistrationConfig(String)", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value.", "Convert the value to requested quoting convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param value The value to convert.\n@param key The key of the value.\n@param toConvention The convention to convert to.\n@param toDisplacement The displacement to be used, if converting to log normal implied volatility.\n@param fromConvention The current convention of the value.\n@param fromDisplacement The current displacement.\n@param model The model for context.\n\n@return The converted value.", "Scans a path on the filesystem for resources inside the given classpath location.\n\n@param location The system-independent location on the classpath.\n@param locationUri The system-specific physical location URI.\n@return a sorted set containing all the resources inside the given location\n@throws IOException if an error accessing the filesystem happens", "Performs the conversion from standard XPath to xpath with parameterization support.", "Handle changes of the series check box.\n@param event the change event.", "Initialize the key set for an xml bundle." ]
public static final Boolean parseBoolean(String value) { return (value == null || value.charAt(0) != '1' ? Boolean.FALSE : Boolean.TRUE); }
[ "Parse a boolean.\n\n@param value boolean\n@return Boolean value" ]
[ "Test for equality.\n@param obj1 the first object\n@param obj2 the second object\n@return true if both are null or the two objects are equal", "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost", "Create a random permutation of the numbers 0, ..., size - 1.\n\nsee Algorithm P, D.E. Knuth: The Art of Computer Programming, Vol. 2, p. 145", "This constructs and returns the request object for the producer pool\n\n@param topic the topic to which the data should be published\n@param bidPid the broker id and partition id\n@param data the data to be published\n@return producer data of builder", "Closes the output. Should be called after the JSON serialization was\nfinished.\n\n@throws IOException\nif there was a problem closing the output", "Updates event definitions for all throwing events.\n@param def Definitions", "convenience method for setting working or non-working days.\n\n@param day required day\n@param working flag indicating if the day is a working day", "create logs with given partition number\n\n@param topic the topic name\n@param partitions partition number\n@param forceEnlarge enlarge the partition number of log if smaller than runtime\n@return the partition number of the log after enlarging", "Returns the List value of the field.\n\n@return the List value of the field. It returns a reference of the value if the type is <code>LIST</code>, if\nthe type is <code>LIST_MAP</code> it returns a copy of the value.\n@throws IllegalArgumentException if the value cannot be converted to List." ]
@Override public ProjectFile read(String accessDatabaseFileName) throws MPXJException { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=" + accessDatabaseFileName; m_connection = DriverManager.getConnection(url); m_projectID = Integer.valueOf(1); return (read()); } catch (ClassNotFoundException ex) { throw new MPXJException("Failed to load JDBC driver", ex); } catch (SQLException ex) { throw new MPXJException("Failed to create connection", ex); } finally { if (m_connection != null) { try { m_connection.close(); } catch (SQLException ex) { // silently ignore exceptions when closing connection } } } }
[ "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException" ]
[ "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "URLEncode a string\n@param s\n@return", "Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name ." ]
private YearWeek with(int newYear, int newWeek) { if (year == newYear && week == newWeek) { return this; } return of(newYear, newWeek); }
[ "Returns a copy of this year-week with the new year and week, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newWeek the week to represent, validated from 1 to 53\n@return the year-week, not null" ]
[ "Removes all items from the list box.", "Notifies that multiple footer items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Add an entry to the cache.\n@param key key to use.\n@param value access token information to store.", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Returns a copy of the given document.\n@param document the document to copy.\n@return a copy of the given document.", "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", "Closes the server socket. No new clients are accepted afterwards.", "Subtracts vector v1 from v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*SECONDS_PER_DAY) seconds to referenceDate, where one day has SECONDS_PER_DAY seconds and SECONDS_PER_DAY is a constant 365*24*60*60" ]
public static final int findValueInListBox(ListBox list, String value) { for (int i=0; i<list.getItemCount(); i++) { if (value.equals(list.getValue(i))) { return i; } } return -1; }
[ "Utility function to find the first index of a value in a\nListBox." ]
[ "Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.\n@return ClassDescriptor or null", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the highest to the lowest score.\nDescending lexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "Sets the duration for the animation to be played.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code start} is either negative value, greater than\n{@code end} value or {@code end} is greater than duration", "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.\nThis uses dnsnsecrec_args which is a way to provide additional arguments while fetching the resources.", "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", "Scans given archive for files passing given filter, adds the results into given list.", "Initialize the class if this is being called with Spring." ]
private PreparedStatement prepareBatchStatement(String sql) { String sqlCmd = sql.substring(0, 7); if (sqlCmd.equals("UPDATE ") || sqlCmd.equals("DELETE ") || (_useBatchInserts && sqlCmd.equals("INSERT "))) { PreparedStatement stmt = (PreparedStatement) _statements.get(sql); if (stmt == null) { // [olegnitz] for JDK 1.2 we need to list both PreparedStatement and Statement // interfaces, otherwise proxy.jar works incorrectly stmt = (PreparedStatement) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{ PreparedStatement.class, Statement.class, BatchPreparedStatement.class}, new PreparedStatementInvocationHandler(this, sql, m_jcd)); _statements.put(sql, stmt); } return stmt; } else { return null; } }
[ "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null." ]
[ "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Use this API to rename a nsacl6 resource.", "Locks a file.\n\n@param expiresAt expiration date of the lock.\n@param isDownloadPrevented is downloading of file prevented when locked.\n@return the lock returned from the server.", "Check if this type is assignable from the given Type.", "Use this API to unset the properties of csparameter resource.\nProperties that need to be unset are specified in args array.", "Record the checkout queue length\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param queueLength The number of entries in the \"synchronous\" checkout\nqueue.", "Subtracts v1 from this vector and places the result in this vector.\n\n@param v1\nright-hand vector", "Whether the specified JavaBeans property exists on the given type or not.\n\n@param clazz the type of interest\n@param property the JavaBeans property name\n@param elementType the element type to check, must be either {@link ElementType#FIELD} or\n{@link ElementType#METHOD}.\n@return {@code true} if the specified property exists, {@code false} otherwise" ]
public static double HighAccuracyFunction(double x) { if (x < -8 || x > 8) return 0; double sum = x; double term = 0; double nextTerm = x; double pwr = x * x; double i = 1; // Iterate until adding next terms doesn't produce // any change within the current numerical accuracy. while (sum != term) { term = sum; // Next term nextTerm *= pwr / (i += 2); sum += nextTerm; } return 0.5 + sum * Math.exp(-0.5 * pwr - 0.5 * Constants.Log2PI); }
[ "High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result." ]
[ "Dump the contents of a row from an MPD file.\n\n@param row row data", "Sets the SCXML model with a string\n\n@param model the model text", "Creates a statement with parameters that should work with most RDBMS.", "Parses a single query facet item with query and label.\n@param prefix path to the query facet item (with trailing '/').\n@return the query facet item.", "This method is used to extract the resource hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param resource resource instance\n@param data hyperlink data block", "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", "Release the connection back to the pool.\n\n@throws SQLException Never really thrown", "Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return", "Read hints from a file and merge with the given hints map." ]
public FailureDetectorConfig setCluster(Cluster cluster) { Utils.notNull(cluster); this.cluster = cluster; /* * FIXME: this is the hacky way to refresh the admin connection * verifier, but it'll just work. The clean way to do so is to have a * centralized metadata management, and all references of cluster object * point to that. */ if(this.connectionVerifier instanceof AdminConnectionVerifier) { ((AdminConnectionVerifier) connectionVerifier).setCluster(cluster); } return this; }
[ "Look at the comments on cluster variable to see why this is problematic" ]
[ "Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault", "Clones the given reference.\n\n@param refDef The reference descriptor\n@param prefix A prefix for the name\n@return The cloned reference", "Use this API to update cmpparameter.", "Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used multiple times with the same connection when gathering\nall track metadata.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved metadata, or {@code null} if there is no such track\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyAsText the story text\n@param storyId the story Id, which will be returned as story path\n@return The parsed Story", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Returns an integer array that contains the default values for all the\ntexture parameters.\n\n@return an integer array that contains the default values for all the\ntexture parameters.", "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input", "Stops all servers.\n\n{@inheritDoc}" ]
public static String getVersionString() { String versionString = "UNKNOWN"; Properties propeties = getProperites(); if(propeties != null) { versionString = propeties.getProperty("finmath-lib.version"); } return versionString; }
[ "Return the version string of this instance of finmath-lib.\n\n@return The version string of this instance of finmath-lib." ]
[ "Use this API to enable clusterinstance resources of given names.", "flushes log queue, this actually writes combined log message into system log", "Generate Allure report data from directories with allure report results.\n\n@param args a list of directory paths. First (args.length - 1) arguments -\nresults directories, last argument - the folder to generated data", "Visit this and all child nodes.\n\n@param visitor The visitor to use.", "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative", "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\"", "Add \"ORDER BY\" clause to the SQL query statement. This can be called multiple times to add additional \"ORDER BY\"\nclauses. Ones earlier are applied first.", "Read the given number of bytes into a long\n\n@param bytes The byte array to read from\n@param offset The offset at which to begin reading\n@param numBytes The number of bytes to read\n@return The long value read", "generates a Meta Object Protocol method, that is used to call a non public\nmethod, or to make a call to super.\n\n@param mopCalls list of methods a mop call method should be generated for\n@param useThis true if \"this\" should be used for the naming" ]
public static boolean isSafe(Expression expression) { if (expression instanceof MethodCallExpression) { return ((MethodCallExpression) expression).isSafe(); } if (expression instanceof PropertyExpression) { return ((PropertyExpression) expression).isSafe(); } return false; }
[ "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference." ]
[ "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Returns the corresponding mac section, or null if this address section does not correspond to a mac section.\nIf this address section has a prefix length it is ignored.\n\n@param extended\n@return", "Look up record by identity.", "If task completed success or failure from response.\n\n@param myResponse\nthe my response\n@return true, if successful", "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException", "Use this API to convert sslpkcs12.", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Set the dither matrix.\n@param matrix the dither matrix\n@see #getMatrix", "Prints a suggestion to stderr for the argument based on the levenshtein distance metric\n\n@param arg the argument which could not be assigned to a flag\n@param co the {@link ConfigOption} List where every flag is stored" ]
void addSomeValuesRestriction(Resource subject, String propertyUri, String rangeUri) { this.someValuesQueue.add(new PropertyRestriction(subject, propertyUri, rangeUri)); }
[ "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri" ]
[ "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Search for photos which match the given search parameters.\n\n@param params\nThe search parameters\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return A PhotoList\n@throws FlickrException", "This method lists all resources defined in the file.\n\n@param file MPX file", "Called when a previously created loader has finished its load.\n\n@param loader The Loader that has finished.\n@param data The data generated by the Loader.", "Print the visibility adornment of element e prefixed by\nany stereotypes", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "if you want to convert some string to an object, you have an argument to parse", "Overridden to do only the clean-part of the linking but not\nthe actual linking. This is deferred until someone wants to access\nthe content of the resource.", "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test" ]
private static void deleteOldAndEmptyFiles() { File dir = LOG_FILE_DIR; if (dir.exists()) { File[] files = dir.listFiles(); for (File f : files) { if (f.length() == 0 || f.lastModified() + MAXFILEAGE < System.currentTimeMillis()) { f.delete(); } } } }
[ "delete of files more than 1 day old" ]
[ "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file", "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Assign to the data object the val corresponding to the fieldType.", "Use this API to reset Interface.", "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if \"linking\" is done while insert or update.", "Removes a tag from the resource.\n@param key the key of the tag to remove\n@return the next stage of the definition/update", "Use this API to update cachecontentgroup.", "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance" ]
public void bind(T service, Map<String, Object> props) { synchronized (serviceMap) { serviceMap.put(ServiceUtil.getComparableForServiceRanking(props), service); updateSortedServices(); } }
[ "Handle bind service event.\n@param service Service instance\n@param props Service reference properties" ]
[ "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception", "Uncompresses the given textual content and writes it to the given file.\n\n@param file The file to write to\n@param compressedContent The content\n@throws IOException If an error occurred", "Creates the save and exit button UI Component.\n@return the save and exit button.", "Add the currentSceneObject to an active Level-of-Detail", "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Called internally to actually process the Iteration.", "Over simplistic helper to compare two strings to check radio buttons.\n\n@param value1 the first value\n@param value2 the second value\n@return \"checked\" if both values are equal, the empty String \"\" otherwise", "Returns the text color for the JSONObject of Link provided\n@param jsonObject of Link\n@return String" ]
public Metadata setMetadata(String templateName, String scope, Metadata metadata) { Metadata metadataValue = null; try { metadataValue = this.createMetadata(templateName, scope, metadata); } catch (BoxAPIException e) { if (e.getResponseCode() == 409) { Metadata metadataToUpdate = new Metadata(scope, templateName); for (JsonValue value : metadata.getOperations()) { if (value.asObject().get("value").isNumber()) { metadataToUpdate.add(value.asObject().get("path").asString(), value.asObject().get("value").asFloat()); } else if (value.asObject().get("value").isString()) { metadataToUpdate.add(value.asObject().get("path").asString(), value.asObject().get("value").asString()); } else if (value.asObject().get("value").isArray()) { ArrayList<String> list = new ArrayList<String>(); for (JsonValue jsonValue : value.asObject().get("value").asArray()) { list.add(jsonValue.asString()); } metadataToUpdate.add(value.asObject().get("path").asString(), list); } } metadataValue = this.updateMetadata(metadataToUpdate); } } return metadataValue; }
[ "Sets the provided metadata on the folder, overwriting any existing metadata keys already present.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server." ]
[ "Get history for a specific database ID\n\n@param id ID of history entry\n@return History entry", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields", "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "Returns the currently scheduled job description identified by the given id.\n\n@param id the job id\n\n@return a job or <code>null</code> if not found", "Gets all checked widgets in the group\n@return list of checked widgets", "Sets the max.\n\n@param n the new max", "return a prepared Update Statement fitting to the given ClassDescriptor", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download." ]
public static String encodePathSegment(String segment, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents.encodeUriComponent(segment, encoding, HierarchicalUriComponents.Type.PATH_SEGMENT); }
[ "Encodes the given URI path segment with the given encoding.\n@param segment the segment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded segment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
[ "Use this API to fetch all the appfwwsdl resources that are configured on netscaler.", "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.", "Close the Closeable. Logging a warning if any problems occur.\n\n@param c the thing to close", "Add contents to the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "Convenience method dispatches this object to the source appender, which\nwill result in the custom message being appended to the new file.\n\n@param message\nThe custom logging message to be appended.", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing.", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Check real offset.\n\n@return the boolean" ]
public final void setExceptions(SortedSet<Date> dates) { m_exceptions.clear(); if (null != dates) { m_exceptions.addAll(dates); } }
[ "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set." ]
[ "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Returns a string representation of the receiver, containing\nthe String representation of each key-value pair, sorted ascending by value.", "Add a '&lt;' clause so the column must be less-than the value.", "This method reads a six byte long from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Gets the URL of the service with the given name that has been created during the current session.\n\n@param name to return its URL\n@return URL of the service.", "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.", "Locks the bundle descriptor.\n@throws CmsException thrown if locking fails.", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>", "Creates an operation to list the deployments.\n\n@return the operation" ]
public static DMatrixRMaj triangularUpper(int dimen , int hessenberg , double min , double max , Random rand ) { if( hessenberg < 0 ) throw new RuntimeException("hessenberg must be more than or equal to 0"); double range = max-min; DMatrixRMaj A = new DMatrixRMaj(dimen,dimen); for( int i = 0; i < dimen; i++ ) { int start = i <= hessenberg ? 0 : i-hessenberg; for( int j = start; j < dimen; j++ ) { A.set(i,j, rand.nextDouble()*range+min); } } return A; }
[ "Creates an upper triangular matrix whose values are selected from a uniform distribution. If hessenberg\nis greater than zero then a hessenberg matrix of the specified degree is created instead.\n\n@param dimen Number of rows and columns in the matrix..\n@param hessenberg 0 for triangular matrix and &gt; 0 for hessenberg matrix.\n@param min minimum value an element can be.\n@param max maximum value an element can be.\n@param rand random number generator used.\n@return The randomly generated matrix." ]
[ "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "low-level Graph API operations", "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance", "Returns the corresponding module resolved service name for the given module.\n\nThe module resolved service is basically a latch that prevents the module from being loaded\nuntil all the transitive dependencies that it depends upon have have their module spec services\ncome up.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "Downloads this version of the file to a given OutputStream while reporting the progress to a ProgressListener.\n@param output the stream to where the file will be written.\n@param listener a listener for monitoring the download's progress.", "Does the headset the device is docked into have a dedicated home key\n@return", "Converts a sequence of Java characters to a sequence of unicode code points.\n\n@return the number of code points written to the destination buffer" ]
List<MwDumpFile> findDumpsLocally(DumpContentType dumpContentType) { String directoryPattern = WmfDumpFile.getDumpFileDirectoryName( dumpContentType, "*"); List<String> dumpFileDirectories; try { dumpFileDirectories = this.dumpfileDirectoryManager .getSubdirectories(directoryPattern); } catch (IOException e) { logger.error("Unable to access dump directory: " + e.toString()); return Collections.emptyList(); } List<MwDumpFile> result = new ArrayList<>(); for (String directory : dumpFileDirectories) { String dateStamp = WmfDumpFile .getDateStampFromDumpFileDirectoryName(dumpContentType, directory); if (dateStamp.matches(WmfDumpFileManager.DATE_STAMP_PATTERN)) { WmfLocalDumpFile dumpFile = new WmfLocalDumpFile(dateStamp, this.projectName, dumpfileDirectoryManager, dumpContentType); if (dumpFile.isAvailable()) { result.add(dumpFile); } else { logger.error("Incomplete local dump file data. Maybe delete " + dumpFile.getDumpfileDirectory() + " to attempt fresh download."); } } // else: silently ignore directories that don't match } result.sort(Collections.reverseOrder(new MwDumpFile.DateComparator())); logger.info("Found " + result.size() + " local dumps of type " + dumpContentType + ": " + result); return result; }
[ "Finds out which dump files of the given type have been downloaded\nalready. The result is a list of objects that describe the available dump\nfiles, in descending order by their date. Not all of the dumps included\nmight be actually available.\n\n@param dumpContentType\nthe type of dump to consider\n@return list of objects that provide information on available dumps" ]
[ "Creates a resource key with given id for bundle specified by given class.\n@param clazz the class owning the bundle.\n@param id value identifier\n@return the resource key", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.", "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Try to fire a given event on the Browser.\n\n@param eventable the eventable to fire\n@return true iff the event is fired", "Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.\n@param className\n@param resourceLoader\n@return the loaded class or null if the given class cannot be loaded", "Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order.\n\nThis method does not require authentication.\n\n@param namespace\noptional, can be null\n@param predicate\noptional, can be null\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList containing Pair-objects\n@throws FlickrException", "Parse a command line with the defined command as base of the rules.\nIf any options are found, but not defined in the command object an\nCommandLineParserException will be thrown.\nAlso, if a required option is not found or options specified with value,\nbut is not given any value an CommandLineParserException will be thrown.\n\n@param line input\n@param mode parser mode", "See also WELD-1454.\n\n@param ij\n@return the formatted string" ]
private void emitSuiteStart(Description description, long startTimestamp) throws IOException { String suiteName = description.getDisplayName(); if (useSimpleNames) { if (suiteName.lastIndexOf('.') >= 0) { suiteName = suiteName.substring(suiteName.lastIndexOf('.') + 1); } } logShort(shortTimestamp(startTimestamp) + "Suite: " + FormattingUtils.padTo(maxClassNameColumns, suiteName, "[...]")); }
[ "Suite prologue." ]
[ "Implement the persistence handler for storing the user properties.", "Creates an internal project and repositories such as a token storage.", "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 the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cache arrays for information about that beat", "Set the replace of the uri and return the new URI.\n\n@param initialUri the starting URI, the URI to update\n@param path the path to set on the baeURI", "Process the settings when we are going to consume them.", "Command-line version of the classifier. See the class\ncomments for examples of use, and SeqClassifierFlags\nfor more information on supported flags.", "Delete rows that match the prepared statement." ]
public Where<T, ID> and() { ManyClause clause = new ManyClause(pop("AND"), ManyClause.AND_OPERATION); push(clause); addNeedsFuture(clause); return this; }
[ "AND operation which takes the previous clause and the next clause and AND's them together." ]
[ "Reads next frame image.", "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "Finds all variables in the context with the given names, and also attaches all WindupFreeMarkerMethods from all addons into the map.\n\nThis allows external addons to extend the capabilities in the freemarker reporting system.", "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed", "Use this API to add snmpuser.", "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Performs all actions that have been configured.", "Get a property as a json object or null.\n\n@param key the property name", "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance" ]
private Map<String, Integer> runSampling( final ProctorContext proctorContext, final Set<String> targetTestNames, final TestType testType, final int determinationsToRun ) { final Set<String> targetTestGroups = getTargetTestGroups(targetTestNames); final Map<String, Integer> testGroupToOccurrences = Maps.newTreeMap(); for (final String testGroup : targetTestGroups) { testGroupToOccurrences.put(testGroup, 0); } for (int i = 0; i < determinationsToRun; ++i) { final Identifiers identifiers = TestType.RANDOM.equals(testType) ? new Identifiers(Collections.<TestType, String>emptyMap(), /* randomEnabled */ true) : Identifiers.of(testType, Long.toString(random.nextLong())); final AbstractGroups groups = supplier.getRandomGroups(proctorContext, identifiers); for (final Entry<String, TestBucket> e : groups.getProctorResult().getBuckets().entrySet()) { final String testName = e.getKey(); if (targetTestNames.contains(testName)) { final int group = e.getValue().getValue(); final String testGroup = testName + group; testGroupToOccurrences.put(testGroup, testGroupToOccurrences.get(testGroup) + 1); } } } return testGroupToOccurrences; }
[ "test, how many times the group was present in the list of groups." ]
[ "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name .", "Use this API to fetch all the snmpuser resources that are configured on netscaler.", "Initializes the set of report implementation.", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Append field with quotes and escape characters added, if required.\n\n@return this", "Places a disabled marker file in the directory of the specified version.\n\n@param version to disable\n@throws PersistenceFailureException if the marker file could not be created (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "Start unmarshalling using the parser.\n@param parser\n@param preProcessingData\n@return the root element of a bpmn2 document.\n@throws java.io.IOException", "Clear all overrides, reset repeat counts for a response path\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@throws Exception exception" ]
private void attachLocaleGroups(CmsResource copiedPage) throws CmsException { CmsLocaleGroupService localeGroupService = getRootCms().getLocaleGroupService(); if (Status.linkable == localeGroupService.checkLinkable(m_originalPage, copiedPage)) { try { localeGroupService.attachLocaleGroupIndirect(m_originalPage, copiedPage); } catch (CmsException e) { LOG.error(e.getLocalizedMessage(), e); } } }
[ "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved." ]
[ "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Stops the compressor.", "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances", "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON", "Creates a bridge accessory, capable of holding multiple child accessories. This has the\nadvantage over multiple standalone accessories of only requiring a single pairing from iOS for\nthe bridge.\n\n@param authInfo authentication information for this accessory. These values should be persisted\nand re-supplied on re-start of your application.\n@param label label for the bridge. This will show in iOS during pairing.\n@param manufacturer manufacturer of the bridge. This information is exposed to iOS for unknown\npurposes.\n@param model model of the bridge. This is also exposed to iOS for unknown purposes.\n@param serialNumber serial number of the bridge. Also exposed. Purposes also unknown.\n@return the bridge, from which you can {@link HomekitRoot#addAccessory add accessories} and\nthen {@link HomekitRoot#start start} handling requests.\n@throws IOException when mDNS cannot connect to the network", "Alias accessor provided for JSON serialization only", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add." ]
public ItemRequest<Project> removeMembers(String project) { String path = String.format("/projects/%s/removeMembers", project); return new ItemRequest<Project>(this, Project.class, path, "POST"); }
[ "Removes the specified list of members from the project. Returns the updated project record.\n\n@param project The project to remove members from.\n@return Request object" ]
[ "Given a BSON document, remove any forbidden fields and return the document. If no changes are\nmade, the original document reference is returned. If changes are made, a cloned copy of the\ndocument with the changes will be returned.\n\n@param document the document from which to remove forbidden fields\n\n@return a BsonDocument without any forbidden fields.", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Get the cached entry or null if no valid cached entry is found.", "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map", "Set the TableAlias for ClassDescriptor", "Converts this address to a prefix length\n\n@return the prefix of the indicated IP type represented by this address or null if this address is valid but cannot be represented by a network prefix length\n@throws AddressStringException if the address is invalid", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Get the SPIProviderResolver instance using the provided classloader for lookup\n\n@param cl classloader to use for lookup\n@return instance of this class", "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log." ]
private int[] getPrimaryCodewords() { assert mode == 2 || mode == 3; if (primaryData.length() != 15) { throw new OkapiException("Invalid Primary String"); } for (int i = 9; i < 15; i++) { /* check that country code and service are numeric */ if (primaryData.charAt(i) < '0' || primaryData.charAt(i) > '9') { throw new OkapiException("Invalid Primary String"); } } String postcode; if (mode == 2) { postcode = primaryData.substring(0, 9); int index = postcode.indexOf(' '); if (index != -1) { postcode = postcode.substring(0, index); } } else { // if (mode == 3) postcode = primaryData.substring(0, 6); } int country = Integer.parseInt(primaryData.substring(9, 12)); int service = Integer.parseInt(primaryData.substring(12, 15)); if (debug) { System.out.println("Using mode " + mode); System.out.println(" Postcode: " + postcode); System.out.println(" Country Code: " + country); System.out.println(" Service: " + service); } if (mode == 2) { return getMode2PrimaryCodewords(postcode, country, service); } else { // mode == 3 return getMode3PrimaryCodewords(postcode, country, service); } }
[ "Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message\ncodewords.\n\n@return the primary message codewords" ]
[ "Creates a random Hermitian matrix with elements from min to max value.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "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", "Parses a code block with no parentheses and no commas. After it is done there should be a single token left,\nwhich is returned.", "Returns the adapter position of the Parent associated with this ChildViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Return an instance of this class.\n\n@param container Solr CoreContainer container object in order to create a server object.\n\n@return instance of CmsSolrSpellchecker", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Unregister all MBeans", "Create a list out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a list.\n@return A list consisting of the items of the Iterable, in the same order.", "Handles the response of the SendData request.\n@param incomingMessage the response message to process." ]
public static base_response update(nitro_service client, tmtrafficaction resource) throws Exception { tmtrafficaction updateresource = new tmtrafficaction(); updateresource.name = resource.name; updateresource.apptimeout = resource.apptimeout; updateresource.sso = resource.sso; updateresource.formssoaction = resource.formssoaction; updateresource.persistentcookie = resource.persistentcookie; updateresource.initiatelogout = resource.initiatelogout; updateresource.kcdaccount = resource.kcdaccount; updateresource.samlssoprofile = resource.samlssoprofile; return updateresource.update_resource(client); }
[ "Use this API to update tmtrafficaction." ]
[ "Returns the proxies real subject. The subject will be materialized if\nnecessary.\n\n@return The subject", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Initializes the upper left component. Does not show the mode switch.", "Tokenize the the string as a package hierarchy\n\n@param str\n@return", "Return a collection of product descriptors for each option in the smile.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@return a collection of product descriptors for each option in the smile.", "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "Use this API to convert sslpkcs12.", "Send an album art update announcement to all registered listeners.", "Use this API to add sslcipher resources." ]
public int count() { int n = 0; for (ConcurrentMap<?, ?> bag : registry.values()) { n += bag.size(); } return n; }
[ "Returns the connection count in this registry.\n\nNote it might count connections that are closed but not removed from registry yet\n\n@return the connection count" ]
[ "Obtains a Symmetry454 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry454 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Retrieve a number of rows matching the supplied query.\n\n@param sql query statement\n@return result set\n@throws SQLException", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Sends the events to monitoring service client.\n\n@param events the events", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Returns the AirMapView implementation as requested by the mapType argument. Use this method if\nyou need to request a specific AirMapView implementation that is not necessarily the preferred\ntype. For example, you can use it to explicit request a web-based map implementation.\n\n@param mapType Map type for the requested AirMapView implementation.\n@return An {@link AirMapViewBuilder} for the requested {@link AirMapViewTypes} mapType.", "Read an element which contains only a single list attribute of a given\ntype, returning it as an array.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list as an array\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids" ]
public SerialMessage getMessage(AlarmType alarmType) { logger.debug("Creating new message for application command SENSOR_ALARM_GET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessage.SerialMessageClass.SendData, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.ApplicationCommandHandler, SerialMessage.SerialMessagePriority.Get); byte[] newPayload = { (byte) this.getNode().getNodeId(), 3, (byte) getCommandClass().getKey(), (byte) SENSOR_ALARM_GET, (byte) alarmType.getKey() }; result.setMessagePayload(newPayload); return result; }
[ "Gets a SerialMessage with the SENSOR_ALARM_GET command\n@return the serial message" ]
[ "Moves our current playback position to the specified beat; this will be reflected in any status and beat packets\nthat we are sending. An incoming value less than one will jump us to the first beat.\n\n@param beat the beat that we should pretend to be playing", "Extract resource provider from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Use this API to Import application.", "Returns the complete record for a single section.\n\n@param section The section to get.\n@return Request object", "Distributed process finish.\n\n@param rb the rb\n@param mtasFields the mtas fields\n@throws IOException Signals that an I/O exception has occurred.", "Requests the cue list for a specific track ID, given a dbserver connection to a player that has already\nbeen set up.\n\n@param rekordboxId the track of interest\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved cue list, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Compares two vectors and determines if they are numeric equals,\nindependent of its type.\n\n@param vector1\nthe first vector\n@param vector2\nthe second vector\n@return true if the vectors are numeric equals", "Gets the interpolated text of a query from cache. If key does not exist, an exception is thrown.\n\n@param key\nname of the query\n@return the query text", "This method lists all resource assignments defined in the file.\n\n@param file MPX file" ]
private void initAdapter() { Connection tmp = null; DatabaseMetaData meta = null; try { tmp = _ds.getConnection(); meta = tmp.getMetaData(); product = meta.getDatabaseProductName().toLowerCase(); } catch (SQLException e) { throw new DatabaseException("Cannot connect to the database", e); } finally { try { if (tmp != null) { tmp.close(); } } catch (SQLException e) { // Nothing to do. } } DbAdapter newAdpt = null; for (String s : ADAPTERS) { try { Class<? extends DbAdapter> clazz = Db.class.getClassLoader().loadClass(s).asSubclass(DbAdapter.class); newAdpt = clazz.newInstance(); if (newAdpt.compatibleWith(meta)) { adapter = newAdpt; break; } } catch (Exception e) { throw new DatabaseException("Issue when loading database adapter named: " + s, e); } } if (adapter == null) { throw new DatabaseException("Unsupported database! There is no JQM database adapter compatible with product name " + product); } else { jqmlogger.info("Using database adapter {}", adapter.getClass().getCanonicalName()); } }
[ "Creates the adapter for the target database." ]
[ "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query", "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", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "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.", "Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used multiple times with the same connection when gathering\nall track metadata.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved metadata, or {@code null} if there is no such track\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data", "from IsoFields in ThreeTen-Backport", "Return the name of the current conf set\n@return the conf set name", "Record a Screen View event\n@param screenName String, the name of the screen" ]
public byte[] getByteArray(int offset) { byte[] result = null; if (offset > 0 && offset < m_data.length) { int nextBlockOffset = MPPUtility.getInt(m_data, offset); offset += 4; int itemSize = MPPUtility.getInt(m_data, offset); offset += 4; if (itemSize > 0 && itemSize < m_data.length) { int blockRemainingSize = 28; if (nextBlockOffset != -1 || itemSize <= blockRemainingSize) { int itemRemainingSize = itemSize; result = new byte[itemSize]; int resultOffset = 0; while (nextBlockOffset != -1) { MPPUtility.getByteArray(m_data, offset, blockRemainingSize, result, resultOffset); resultOffset += blockRemainingSize; offset += blockRemainingSize; itemRemainingSize -= blockRemainingSize; if (offset != nextBlockOffset) { offset = nextBlockOffset; } nextBlockOffset = MPPUtility.getInt(m_data, offset); offset += 4; blockRemainingSize = 32; } MPPUtility.getByteArray(m_data, offset, itemRemainingSize, result, resultOffset); } } } return (result); }
[ "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" ]
[ "Use this API to fetch netbridge_vlan_binding resources of given name .", "Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder", "Use this API to update snmpmanager resources.", "Use this API to fetch linkset_interface_binding resources of given name .", "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", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nmetadata updates will use available caches only\n\n@return the metadata found, if any", "Use this API to link sslcertkey resources.", "Function to perform backward softmax", "Resolves current full path with .yml and .yaml extensions\n\n@param fullpath\nwithout extension.\n\n@return Path of existing definition or null" ]
public final void visitChildren(final Visitor visitor) { for (final DiffNode child : children.values()) { try { child.visit(visitor); } catch (final StopVisitationException e) { return; } } }
[ "Visit all child nodes but not this one.\n\n@param visitor The visitor to use." ]
[ "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Make a list value containing the specified values.", "Splits switch in specialStateTransition containing more than maxCasesPerSwitch\ncases into several methods each containing maximum of maxCasesPerSwitch cases\nor less.\n@since 2.9", "Populates a calendar hours instance.\n\n@param record MPX record\n@param hours calendar hours instance\n@throws MPXJException", "Image scale method\n@param imageToScale The image to be scaled\n@param dWidth Desired width, the new image object is created to this size\n@param dHeight Desired height, the new image object is created to this size\n@param fWidth What to multiply the width by. value < 1 scales down, and value > one scales up\n@param fHeight What to multiply the height by. value < 1 scales down, and value > one scales up\n@return A scaled image", "Builds a configuration object based on given properties.\n\n@param properties the properties.\n@return a configuration and never null.", "Use this API to update route6 resources.", "Use this API to unset the properties of nslimitselector resource.\nProperties that need to be unset are specified in args array." ]
public Criteria copy(boolean includeGroupBy, boolean includeOrderBy, boolean includePrefetchedRelationships) { Criteria copy = new Criteria(); copy.m_criteria = new Vector(this.m_criteria); copy.m_negative = this.m_negative; if (includeGroupBy) { copy.groupby = this.groupby; } if (includeOrderBy) { copy.orderby = this.orderby; } if (includePrefetchedRelationships) { copy.prefetchedRelationships = this.prefetchedRelationships; } return copy; }
[ "make a copy of the criteria\n@param includeGroupBy if true\n@param includeOrderBy if ture\n@param includePrefetchedRelationships if true\n@return a copy of the criteria" ]
[ "Method to build Mail Channel Adapter for IMAP.\n@param urlName Mail source URL.\n@return Mail Channel for IMAP", "Set the values using the specified Properties object\n\n@param properties Properties object containing specific property values\nfor the Coordinator config", "Returns the full record for a single team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Register an active operation with a specific operation id.\n\n@param id the operation id\n@param attachment the shared attachment\n@param callback the completed callback\n@return the created active operation\n\n@throws java.lang.IllegalStateException if an operation with the same id is already registered", "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer", "That is, of size 6, which become 8, since HashMaps are powers of 2. Still, it's half the size", "Returns the adapter position of the Child associated with this ChildViewHolder\n\n@return The adapter position of the Child if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes" ]
public void sendMessageUntilStopCount(int stopCount) { // always send with valid data. for (int i = processedWorkerCount; i < workers.size(); ++i) { ActorRef worker = workers.get(i); try { /** * !!! This is a must; without this sleep; stuck occured at 5K. * AKKA seems cannot handle too much too fast message send out. */ Thread.sleep(1L); } catch (InterruptedException e) { logger.error("sleep exception " + e + " details: ", e); } // send as if the sender is the origin manager; so reply back to // origin manager worker.tell(OperationWorkerMsgType.PROCESS_REQUEST, originalManager); processedWorkerCount++; if (processedWorkerCount > stopCount) { return; } logger.debug("REQ_SENT: {} / {} taskId {}", processedWorkerCount, requestTotalCount, taskIdTrim); }// end for loop }
[ "Note that if there is sleep in this method.\n\n@param stopCount\nthe stop count" ]
[ "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value", "Look up a shaper by a short String name.\n\n@param name Shaper name. Known names have patterns along the lines of:\ndan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?.\n@return An integer constant for the shaper", "Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs", "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "Generate a string with all selected checkboxes separated with ','.\n\n@return a string with all selected checkboxes", "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", "Set a proxy with authentication for REST-requests.\n\n@param proxyHost\n@param proxyPort\n@param username\n@param password", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException", "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result" ]
public synchronized T get(Scope scope) { if (instance != null) { return instance; } if (providerInstance != null) { if (isProvidingSingletonInScope) { instance = providerInstance.get(); //gc providerInstance = null; return instance; } return providerInstance.get(); } if (factoryClass != null && factory == null) { factory = FactoryLocator.getFactory(factoryClass); //gc factoryClass = null; } if (factory != null) { if (!factory.hasScopeAnnotation() && !isCreatingSingletonInScope) { return factory.createInstance(scope); } instance = factory.createInstance(scope); //gc factory = null; return instance; } if (providerFactoryClass != null && providerFactory == null) { providerFactory = FactoryLocator.getFactory(providerFactoryClass); //gc providerFactoryClass = null; } if (providerFactory != null) { if (providerFactory.hasProvidesSingletonInScopeAnnotation() || isProvidingSingletonInScope) { instance = providerFactory.createInstance(scope).get(); //gc providerFactory = null; return instance; } if (providerFactory.hasScopeAnnotation() || isCreatingSingletonInScope) { providerInstance = providerFactory.createInstance(scope); //gc providerFactory = null; return providerInstance.get(); } return providerFactory.createInstance(scope).get(); } throw new IllegalStateException("A provider can only be used with an instance, a provider, a factory or a provider factory. Should not happen."); }
[ "of the unbound provider (" ]
[ "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null", "Expands the cluster to include density-reachable items.\n\n@param cluster Cluster to expand\n@param point Point to add to cluster\n@param neighbors List of neighbors\n@param points the data set\n@param visited the set of already visited points\n@return the expanded cluster", "Add a single header key-value pair. If one with the name already exists,\nboth stay in the header map.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Compares current cluster with final cluster. Uses pertinent store defs\nfor each cluster to determine if a node that hosts a zone-primary in the\ncurrent cluster will no longer host any zone-nary in the final cluster.\nThis check is the precondition for a server returning an invalid metadata\nexception to a client on a normal-case put or get. Normal-case being that\nthe zone-primary receives the pseudo-master put or the get operation.\n\n@param currentCluster\n@param currentStoreDefs\n@param finalCluster\n@param finalStoreDefs\n@return pretty-printed string documenting invalid metadata rates for each\nzone.", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Stops the compressor.", "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters." ]
public static Day getDay(Integer day) { Day result = null; if (day != null) { result = DAY_ARRAY[day.intValue()]; } return (result); }
[ "Convert MPX day index to Day instance.\n\n@param day day index\n@return Day instance" ]
[ "This method will add a DemoInterceptor into every in and every out phase\nof the interceptor chains.\n\n@param provider", "Execute a slave process. Pump events to the given event bus.", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "Create an ephemeral node with the given path and data. Create parents if necessary.\n@param zkClient client of zookeeper\n@param path node path of zookeeper\n@param data node data", "Calls the specified Stitch function.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.", "Removes the given value to the set.\n\n@return true if the value was actually removed", "Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value." ]
protected void recycleChildren() { for (ListItemHostWidget host: getAllHosts()) { recycle(host); } mContent.onTransformChanged(); mContent.requestLayout(); }
[ "Recycle all views in the list. The host views might be reused for other data to\nsave resources on creating new widgets." ]
[ "Log a message line to the output.", "Wrap Statement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a statement.", "Returns the data sources belonging to a particular group of data\nsources. Data sources are grouped in record linkage mode, but not\nin deduplication mode, so only use this method in record linkage\nmode.", "Returns a new macro resolver that loads message keys from the workplace bundle in the user setting's language.\n@param cms the CmsObject.\n@return a new macro resolver with messages from the workplace bundle in the current users locale.", "Creates a solver for symmetric positive definite matrices.\n\n@return A new solver for symmetric positive definite matrices.", "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}.", "Provides a normalized string which is lowercase for host strings, and which is a normalized string for addresses.\n@return", "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name .", "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value" ]
public static appfwprofile_csrftag_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_csrftag_binding obj = new appfwprofile_csrftag_binding(); obj.set_name(name); appfwprofile_csrftag_binding response[] = (appfwprofile_csrftag_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appfwprofile_csrftag_binding resources of given name ." ]
[ "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization", "Marks a given list of statements for insertion into the current document.\nInserted statements can have an id if they should update an existing\nstatement, or use an empty string as id if they should be added. The\nmethod removes duplicates and avoids unnecessary modifications by\nchecking the current content of the given document before marking\nstatements for being written.\n\n@param currentDocument\nthe document with the current statements\n@param addStatements\nthe list of new statements to be added", "Use this API to add dnstxtrec.", "Creates a producer field\n\n@param field The underlying method abstraction\n@param declaringBean The declaring bean abstraction\n@param beanManager the current manager\n@return A producer field", "Used by Pipeline jobs only", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid.", "Boyer Moore scan that proceeds backwards from the end of the file looking for endsig\n\n@param file the file being checked\n@param channel the channel\n@param context the scan context\n@return\n@throws IOException", "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" ]
public static boolean distributeAndCheckResponse(DistributionBuilder distributionBuilder, ArtifactoryBuildInfoClient client, TaskListener listener, String buildName, String buildNumber, boolean dryRun) throws IOException { // do a dry run first listener.getLogger().println("Performing dry run distribution (no changes are made during dry run) ..."); if (!distribute(distributionBuilder, client, listener, buildName, buildNumber, true)) { return false; } listener.getLogger().println("Dry run finished successfully"); if (!dryRun) { listener.getLogger().println("Performing distribution ..."); if (!distribute(distributionBuilder, client, listener, buildName, buildNumber, false)) { return false; } listener.getLogger().println("Distribution completed successfully!"); } return true; }
[ "Two stage distribution, dry run and actual promotion to verify correctness.\n\n@param distributionBuilder\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException" ]
[ "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "todo move to commonops", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "Delivers the correct JSON Object for the dockers\n\n@param dockers\n@throws org.json.JSONException", "Extract Primavera project data and export in another format.\n\n@param driverClass JDBC driver class name\n@param connectionString JDBC connection string\n@param projectID project ID\n@param outputFile output file\n@throws Exception", "Handles subscription verification callback from Facebook.\n@param subscription The subscription name.\n@param challenge A challenge that Facebook expects to be returned.\n@param verifyToken A verification token that must match with the subscription's token given when the controller was created.\n@return The challenge if the verification token matches; blank string otherwise.", "for bpm connector", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Assigns retention policy with givenID to the enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@return info about created assignment." ]
public Where<T, ID> like(String columnName, Object value) throws SQLException { addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value, SimpleComparison.LIKE_OPERATION)); return this; }
[ "Add a LIKE clause so the column must mach the value using '%' patterns." ]
[ "Processes and computes column counts of A\n\n@param A (Input) Upper triangular matrix\n@param parent (Input) Elimination tree.\n@param post (Input) Post order permutation of elimination tree. See {@link TriangularSolver_DSCC#postorder}\n@param counts (Output) Storage for column counts.", "If this represents an ip address, returns that address.\nIf this represents a host, returns the resolved ip address of that host.\nOtherwise, returns null, but only for strings that are considered valid address strings but cannot be converted to address objects.\n\nThis method will throw exceptions for invalid formats and failures to resolve the address. The equivalent method {@link #getAddress()} will simply return null rather than throw those exceptions.\n\nIf you wish to get the represented address and avoid DNS resolution, use {@link #asAddress()} or {@link #asAddressString()}\n\n@return", "Populate a Command instance with the values parsed from a command line\nIf any parser errors are detected it will throw an exception\n@param processedCommand command line\n@param mode do validation or not\n@throws CommandLineParserException any incorrectness in the parser will abort the populate", "Determine the enum value corresponding to the third play state found in the packet.\n\n@return the proper value", "Return a Halton number, sequence starting at index = 0, base &gt; 1.\n\n@param index The index of the sequence.\n@param base The base of the sequence. Has to be greater than one (this is not checked).\n@return The Halton number.", "Command to select a document from the POIFS for viewing.\n\n@param entry document to view", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object", "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification." ]
public static Class<?> resolveTypeArgument(Class<?> clazz, Class<?> genericIfc) { Class<?>[] typeArgs = resolveTypeArguments(clazz, genericIfc); if (typeArgs == null) { return null; } if (typeArgs.length != 1) { throw new IllegalArgumentException("Expected 1 type argument on generic interface [" + genericIfc.getName() + "] but found " + typeArgs.length); } return typeArgs[0]; }
[ "Resolve the single type argument of the given generic interface against\nthe given target class which is assumed to implement the generic interface\nand possibly declare a concrete type for its type variable.\n@param clazz the target class to check against\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved type of the argument, or {@code null} if not resolvable" ]
[ "Traverses the test case annotations. Will inject a HiveShell in the test case that envelopes the HiveServer.", "Checks if the specified bytecode version string represents a JDK 1.5+ compatible\nbytecode version.\n@param bytecodeVersion the bytecode version string (1.4, 1.5, 1.6, 1.7 or 1.8)\n@return true if the bytecode version is JDK 1.5+", "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name .", "See also WELD-1454.\n\n@param ij\n@return the formatted string", "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Creates a new subtask and adds it to the parent task. Returns the full record\nfor the newly created subtask.\n\n@param task The task to add a subtask to.\n@return Request object", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException" ]
protected void writeRow(final String... columns) throws IOException { if( columns == null ) { throw new NullPointerException(String.format("columns to write should not be null on line %d", lineNumber)); } else if( columns.length == 0 ) { throw new IllegalArgumentException(String.format("columns to write should not be empty on line %d", lineNumber)); } StringBuilder builder = new StringBuilder(); for( int i = 0; i < columns.length; i++ ) { columnNumber = i + 1; // column no used by CsvEncoder if( i > 0 ) { builder.append((char) preference.getDelimiterChar()); // delimiter } final String csvElement = columns[i]; if( csvElement != null ) { final CsvContext context = new CsvContext(lineNumber, rowNumber, columnNumber); final String escapedCsv = encoder.encode(csvElement, context, preference); builder.append(escapedCsv); lineNumber = context.getLineNumber(); // line number can increment when encoding multi-line columns } } builder.append(preference.getEndOfLineSymbols()); // EOL writer.write(builder.toString()); }
[ "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null" ]
[ "Retrieve the currently cached value for the given document.", "This method tokenizes a string by space characters,\nbut ignores spaces in quoted parts,that are parts in\n'' or \"\". The method does allows the usage of \"\" in ''\nand '' in \"\". The space character between tokens is not\nreturned.\n\n@param s the string to tokenize\n@return the tokens", "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value", "Initialize the class if this is being called with Spring.", "Determine if a CharSequence can be parsed as a BigDecimal.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigDecimal(String)\n@since 1.8.2", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input", "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", "Returns a single template.\n\n@param id id of the template to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Use this API to fetch all the lbsipparameters resources that are configured on netscaler." ]
public boolean hasUppercaseVariations(int base, boolean lowerOnly) { if(base > 10) { int count = getSegmentCount(); for(int i = 0; i < count; i++) { IPv6AddressSegment seg = getSegment(i); if(seg.hasUppercaseVariations(base, lowerOnly)) { return true; } } } return false; }
[ "Returns whether this subnet or address has alphabetic digits when printed.\n\nNote that this method does not indicate whether any address contained within this subnet has alphabetic digits,\nonly whether the subnet itself when printed has alphabetic digits.\n\n@return whether the section has alphabetic digits when printed." ]
[ "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.", "Sets the replacement var map.\n\n@param replacementVarMap\nthe replacement var map\n@return the parallel task builder", "Use this API to fetch linkset resource of given name .", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table", "Get the OAuth request token - this is step one of authorization.\n\n@param callbackUrl\noptional callback URL - required for web auth flow, will be set to \"oob\" if not specified.\n@return the {@link OAuth1RequestToken}, store this for when the user returns from the Flickr website.", "Load the given configuration file.", "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.", "Returns the URL of the first route.\n@return URL backed by the first route." ]
public void retrieveEngine() throws GeneralSecurityException, IOException { if (serverEngineFactory == null) { return; } engine = serverEngineFactory.retrieveHTTPServerEngine(nurl.getPort()); if (engine == null) { engine = serverEngineFactory.getHTTPServerEngine(nurl.getHost(), nurl.getPort(), nurl.getProtocol()); } assert engine != null; TLSServerParameters serverParameters = engine.getTlsServerParameters(); if (serverParameters != null && serverParameters.getCertConstraints() != null) { CertificateConstraintsType constraints = serverParameters.getCertConstraints(); if (constraints != null) { certConstraints = CertConstraintsJaxBUtils.createCertConstraints(constraints); } } // When configuring for "http", however, it is still possible that // Spring configuration has configured the port for https. if (!nurl.getProtocol().equals(engine.getProtocol())) { throw new IllegalStateException("Port " + engine.getPort() + " is configured with wrong protocol \"" + engine.getProtocol() + "\" for \"" + nurl + "\""); } }
[ "Post-configure retreival of server engine." ]
[ "This method takes the textual version of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param locale target locale\n@param priority text version of the priority\n@return Priority class instance", "Create constant name.\n@param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED.\n@return cconstanname as String", "Sets the site root.\n\n@param siteRoot the site root", "Here we start a intern odmg-Transaction to hide transaction demarcation\nThis method could be invoked several times within a transaction, but only\nthe first call begin a intern odmg transaction", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance", "Sends a multipart response. Each body part represents a versioned value\nof the given key.\n\n@throws IOException\n@throws MessagingException", "Creates the code mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param realOffsetStart\nthe real offset start\n@param realOffsetEnd\nthe real offset end\n@param codePositions\nthe code positions\n@throws IOException\nSignals that an I/O exception has occurred.", "Fetch all relevant attributes from the backing store and copy instances which are not present in the local bean store." ]
private void applyAliases() { CustomFieldContainer fields = m_projectFile.getCustomFields(); for (Map.Entry<FieldType, String> entry : ALIASES.entrySet()) { fields.getCustomField(entry.getKey()).setAlias(entry.getValue()); } }
[ "Configure column aliases." ]
[ "Given a field node, checks if we are calling a private field from an inner class.", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Determines the prefix of an accessor method based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting prefix", "Splits switch in specialStateTransition containing more than maxCasesPerSwitch\ncases into several methods each containing maximum of maxCasesPerSwitch cases\nor less.\n@since 2.9", "Returns a Bic object holding the value of the specified String.\n\n@param bic the String to be parsed.\n@return a Bic object holding the value represented by the string argument.\n@throws BicFormatException if the String doesn't contain parsable Bic.\nUnsupportedCountryException if bic's country is not supported.", "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "set custom response or request for a profile's default client, ensures profile and path are enabled\n\n@param profileName profileName to modift, default client is used\n@param pathName friendly name of path\n@param isResponse true if response, false for request\n@param customData custom response/request data\n@return true if success, false otherwise", "read messages beginning from offset\n\n@param offset next message offset\n@param length the max package size\n@return a MessageSet object with length data or empty\n@see MessageSet#Empty\n@throws IOException any exception", "Returns the \"msgCount\" belief\n\n@return int - the count" ]
public double getValueWithGivenSpreadOverCurve(double evaluationTime,Curve referenceCurve, double spread, AnalyticModel model) { double value=0; for(int periodIndex=0; periodIndex<schedule.getNumberOfPeriods();periodIndex++) { double paymentDate = schedule.getPayment(periodIndex); value+= paymentDate>evaluationTime ? getCouponPayment(periodIndex,model)*Math.exp(-spread*paymentDate)*referenceCurve.getValue(paymentDate): 0.0; } double paymentDate = schedule.getPayment(schedule.getNumberOfPeriods()-1); return paymentDate>evaluationTime ? value+Math.exp(-spread*paymentDate)*referenceCurve.getValue(paymentDate):0.0; }
[ "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given reference curve and an additional spread.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param spread The spread which should be added to the discount curve.\n@param model The model under which the product is valued.\n@return The value of the bond for the given curve and spread." ]
[ "Copy a single named resource from the classpath to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param resourceName The filename of the resource.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the resource cannot be copied.", "Sets divider padding for axis. If axis does not match the orientation, it has no effect.\n@param padding\n@param axis {@link Axis}", "Samples with replacement from a collection\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number", "Return configuration tweaks in a format appropriate for ness-jdbc DatabaseModule.", "Update the object in the database.", "Makes it possible to uniquify a collection of objects which are normally\nnon-hashable. Alternatively, it lets you define an alternate hash function\nfor them for limited-use hashing.", "Perform the entire sort operation", "Add the given pair into the map.\n\n<p>\nIf the pair key already exists in the map, its value is replaced\nby the value in the pair, and the old value in the map is returned.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to add into the map.\n@return the value previously associated to the key, or <code>null</code>\nif the key was not present in the map before the addition.\n@since 2.15" ]
public static base_response update(nitro_service client, responderparam resource) throws Exception { responderparam updateresource = new responderparam(); updateresource.undefaction = resource.undefaction; return updateresource.update_resource(client); }
[ "Use this API to update responderparam." ]
[ "Wait to shutdown service\n\n@param executorService Executor service to shutdown\n@param timeOutSec Time we wait for", "End building the script\n@param config the configuration for the script to build\n@return the new {@link LuaScript} instance", "Button onClick listener.\n\n@param v", "Clear any custom configurations to Redwood\n@return this", "Use this API to fetch authenticationvserver_binding resource of given name .", "Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html\"", "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows" ]
@Override public PaxDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "Obtains a local date in Pax calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Pax era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Pax local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code PaxEra}" ]
[ "This is a very ugly workaround to get the method arguments from the JUnit 5 context via reflection.", "Propagate onTouchStart events to listeners\n@param hit collision object", "Stores template parameters for OpenShiftAssistantTemplate.\n\n@param name template parameter name\n@param value template parameter value", "Another method to force an input string into a fixed width field\nand set it on the right with the left side filled with space ' ' characters.\n\n@param input input string\n@param width required width\n@return formatted string", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "Use this API to fetch a tmglobal_binding resource .", "Use this API to fetch dnsnsecrec resource of given name .", "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI", "Get a property of type java.util.Properties or return the default if\nno such property is defined\n@param props properties\n@param name the key\n@param defaultProperties default property if empty\n@return value from the property" ]
public static void indexResourceRoot(final ResourceRoot resourceRoot) throws DeploymentUnitProcessingException { if (resourceRoot.getAttachment(Attachments.ANNOTATION_INDEX) != null) { return; } VirtualFile indexFile = resourceRoot.getRoot().getChild(ModuleIndexBuilder.INDEX_LOCATION); if (indexFile.exists()) { try { IndexReader reader = new IndexReader(indexFile.openStream()); resourceRoot.putAttachment(Attachments.ANNOTATION_INDEX, reader.read()); ServerLogger.DEPLOYMENT_LOGGER.tracef("Found and read index at: %s", indexFile); return; } catch (Exception e) { ServerLogger.DEPLOYMENT_LOGGER.cannotLoadAnnotationIndex(indexFile.getPathName()); } } // if this flag is present and set to false then do not index the resource Boolean shouldIndexResource = resourceRoot.getAttachment(Attachments.INDEX_RESOURCE_ROOT); if (shouldIndexResource != null && !shouldIndexResource) { return; } final List<String> indexIgnorePathList = resourceRoot.getAttachment(Attachments.INDEX_IGNORE_PATHS); final Set<String> indexIgnorePaths; if (indexIgnorePathList != null && !indexIgnorePathList.isEmpty()) { indexIgnorePaths = new HashSet<String>(indexIgnorePathList); } else { indexIgnorePaths = null; } final VirtualFile virtualFile = resourceRoot.getRoot(); final Indexer indexer = new Indexer(); try { final VisitorAttributes visitorAttributes = new VisitorAttributes(); visitorAttributes.setLeavesOnly(true); visitorAttributes.setRecurseFilter(new VirtualFileFilter() { public boolean accepts(VirtualFile file) { return indexIgnorePaths == null || !indexIgnorePaths.contains(file.getPathNameRelativeTo(virtualFile)); } }); final List<VirtualFile> classChildren = virtualFile.getChildren(new SuffixMatchFilter(".class", visitorAttributes)); for (VirtualFile classFile : classChildren) { InputStream inputStream = null; try { inputStream = classFile.openStream(); indexer.index(inputStream); } catch (Exception e) { ServerLogger.DEPLOYMENT_LOGGER.cannotIndexClass(classFile.getPathNameRelativeTo(virtualFile), virtualFile.getPathName(), e); } finally { VFSUtils.safeClose(inputStream); } } final Index index = indexer.complete(); resourceRoot.putAttachment(Attachments.ANNOTATION_INDEX, index); ServerLogger.DEPLOYMENT_LOGGER.tracef("Generated index for archive %s", virtualFile); } catch (Throwable t) { throw ServerLogger.ROOT_LOGGER.deploymentIndexingFailed(t); } }
[ "Creates and attaches the annotation index to a resource root, if it has not already been attached" ]
[ "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Use this API to fetch bridgegroup_vlan_binding resources of given name .", "legacy helper for setting background", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "splits a string into a list of strings, ignoring the empty string", "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Answer the primary key query to retrieve an Object\n\n@param oid the Identity of the Object to retrieve\n@return The resulting query", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written" ]
@Override @Deprecated public List<CardWithActions> getBoardMemberActivity(String boardId, String memberId, String actionFilter, Argument... args) { if (actionFilter == null) actionFilter = "all"; Argument[] argsAndFilter = Arrays.copyOf(args, args.length + 1); argsAndFilter[args.length] = new Argument("actions", actionFilter); return asList(() -> get(createUrl(GET_BOARD_MEMBER_CARDS).params(argsAndFilter).asString(), CardWithActions[].class, boardId, memberId)); }
[ "FIXME Remove this method" ]
[ "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", "Checks if the object with the given identity has been deleted\nwithin the transaction.\n@param id The identity\n@return true if the object has been deleted\n@throws PersistenceBrokerException", "Support the range subscript operator for String\n\n@param text a String\n@param range a Range\n@return a substring corresponding to the Range\n@since 1.0", "Perform a security check against OpenCms.\n\n@param cms The OpenCms object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user", "Calculates the LatLong position of the end point of a line the specified\ndistance from this LatLong, along the provided bearing, where North is 0,\nEast is 90 etc.\n\n@param bearing The bearing, in degrees, with North as 0, East as 90 etc.\n@param distance The distance in metres.\n@return A new LatLong indicating the end point.", "Converts a standard optimizer to one which the given amount of l1 or l2 regularization.", "Get a scalar value for the DOM diversity using the Robust Tree Edit Distance\n\n@param dom1\n@param dom2\n@return", "A property tied to the map, updated when the idle state event is fired.\n\n@return", "Entry point for processing filter definitions.\n\n@param properties project properties\n@param filters project filters\n@param fixedData filter fixed data\n@param varData filter var data" ]
public static Double checkLatitude(String name, Double latitude) { if (latitude == null) { throw new IndexException("{} required", name); } else if (latitude < MIN_LATITUDE || latitude > MAX_LATITUDE) { throw new IndexException("{} must be in range [{}, {}], but found {}", name, MIN_LATITUDE, MAX_LATITUDE, latitude); } return latitude; }
[ "Checks if the specified latitude is correct.\n\n@param name the name of the latitude field\n@param latitude the value of the latitude field\n@return the latitude" ]
[ "Use this API to fetch sslocspresponder resource of given name .", "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad", "Gets the site label for the entry.\n\n@param cms the current CMS context\n@param entry the entry\n@return the site label for the entry", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Use this API to add sslcertkey resources.", "Makes this pose the inverse of the input pose.\n@param src pose to invert.", "Add the given person to the photo. Optionally, send in co-ordinates\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException", "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed." ]
public static DMatrixSparseCSC rectangle(int numRows , int numCols , int nz_total , double min , double max , Random rand ) { nz_total = Math.min(numCols*numRows,nz_total); int[] selected = UtilEjml.shuffled(numRows*numCols, nz_total, rand); Arrays.sort(selected,0,nz_total); DMatrixSparseCSC ret = new DMatrixSparseCSC(numRows,numCols,nz_total); ret.indicesSorted = true; // compute the number of elements in each column int hist[] = new int[ numCols ]; for (int i = 0; i < nz_total; i++) { hist[selected[i]/numRows]++; } // define col_idx ret.histogramToStructure(hist); for (int i = 0; i < nz_total; i++) { int row = selected[i]%numRows; ret.nz_rows[i] = row; ret.nz_values[i] = rand.nextDouble()*(max-min)+min; } return ret; }
[ "Randomly generates matrix with the specified number of non-zero elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix" ]
[ "Build resolution context in which message will be discovered and built\n@param components resolution components, used to identify message bundle\n@param messageParams message parameters will be substituted in message and used in pattern matching\n@since 3.1\n@return immutable resolution context instance for given parameters", "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Checks the given class descriptor for correct procedure settings.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Sets the debug JPDA remote socket debugging argument.\n\n@param suspend {@code true} to suspend otherwise {@code false}\n@param port the port to listen on\n\n@return the builder", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Collection of methods found\n@throws Exception exception", "Returns the URL of the class file where the given class has been loaded from.\n\n@throws IllegalArgumentException\nif failed to determine.\n@since 2.24", "Get the last modified time for a set of files.", "Creates a new broker instance.\n\n@param jcdAlias The jdbc connection descriptor name as defined in the repository\n@param user The user name to be used for connecting to the database\n@param password The password to be used for connecting to the database\n@return The persistence broker\n@see org.apache.ojb.broker.core.PersistenceBrokerFactoryIF#createPersistenceBroker(java.lang.String, java.lang.String, java.lang.String)" ]
public static java.sql.Time newTime() { return new java.sql.Time(System.currentTimeMillis() % DAY_MILLIS); }
[ "Create a new Time, with no date component." ]
[ "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", "Read a text file from assets into a single string\n\n@param context\nA non-null Android Context\n@param asset\nThe asset file to read\n@return The contents or null on error.", "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion above.\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Parameter alpha\n@param b Shape parameter 1\n@param c Shape parameter 2\n@param d Diffusion coefficient", "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return", "Returns the connection that has been saved or null if none.", "Uniformly random numbers", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Returns the value of the matrix at the specified index of the 1D row major array.\n\n@see DMatrixRMaj#get(int)\n\n@param index The element's index whose value is to be returned\n@return The value of the specified element.", "Get the scale at the given index.\n\n@param index the index of the zoom level to access.\n@param unit the unit." ]
public static void writeProcessorOutputToValues( final Object output, final Processor<?, ?> processor, final Values values) { Map<String, String> mapper = processor.getOutputMapperBiMap(); if (mapper == null) { mapper = Collections.emptyMap(); } final Collection<Field> fields = getAllAttributes(output.getClass()); for (Field field: fields) { String name = getOutputValueName(processor.getOutputPrefix(), mapper, field); try { final Object value = field.get(output); if (value != null) { values.put(name, value); } else { values.remove(name); } } catch (IllegalAccessException e) { throw ExceptionUtils.getRuntimeException(e); } } }
[ "Read the values from the output object and write them to the values object.\n\n@param output the output object from a processor\n@param processor the processor the output if from\n@param values the object for sharing values between processors" ]
[ "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation", "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border.", "Use this API to fetch vpnclientlessaccesspolicy resource of given name .", "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Generates a unique signature for an annotated type. Members without\nannotations are omitted to reduce the length of the signature\n\n@param <X>\n@param annotatedType\n@return hash of a signature for a concrete annotated type", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Removes any metadata cache file that might have been assigned to a particular player media slot, so metadata\nwill be looked up from the player itself.\n\n@param slot the media slot to which a meta data cache is to be attached", "Commit all written data to the physical disk\n\n@throws IOException any io exception", "used for encoding queries or form data" ]
BsonDocument getNextVersion() { if (!this.hasVersion() || this.getVersionDoc() == null) { return getFreshVersionDocument(); } final BsonDocument nextVersion = BsonUtils.copyOfDocument(this.getVersionDoc()); nextVersion.put( Fields.VERSION_COUNTER_FIELD, new BsonInt64(this.getVersion().getVersionCounter() + 1)); return nextVersion; }
[ "Given a DocumentVersionInfo, returns a BSON document representing the next version. This means\nand incremented version count for a non-empty version, or a fresh version document for an\nempty version.\n@return a BsonDocument representing a synchronization version" ]
[ "Sets an element in at the specified index.", "Given a string with method or package name, creates a Class Name with no\nspaces and first letter lower case\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "Returns all the version directories present in the root directory\nspecified\n\n@param rootDir The parent directory\n@param maxId The\n@return An array of version directories", "at this point definition below is not really needed as it is the same as for 1.1, but it is here as place holder when subsystem parser evolves.", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Set the map attribute.\n\n@param name the attribute name\n@param attribute the attribute", "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Given a list of store definitions, find out and return a map of similar\nstore definitions + count of them\n\n@param storeDefs All store definitions\n@return Map of a unique store definition + counts", "Resolve an operation transformer entry.\n\n@param address the address\n@param operationName the operation name\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the transformer entry" ]
protected void createNewFile(final File file) { try { file.createNewFile(); setFileNotWorldReadablePermissions(file); } catch (IOException e){ throw new RuntimeException(e); } }
[ "This creates a new audit log file with default permissions.\n\n@param file File to create" ]
[ "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not", "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Optionally specify the variable name to use for the output of this condition", "Retrieve the number of minutes per year for this calendar.\n\n@return minutes per year", "Use this API to disable Interface resources of given names.", "Gets the '.disabled' file for a given version of this store. That file may or may not\nexist.\n\n@param version of the store for which to get the '.disabled' file.\n@return an instance of {@link File} pointing to the '.disabled' file.\n@throws PersistenceFailureException if the requested version cannot be found." ]
private static int readObjectData(int offset, String text, List<RTFEmbeddedObject> objects) { LinkedList<byte[]> blocks = new LinkedList<byte[]>(); offset += (OBJDATA.length()); offset = skipEndOfLine(text, offset); int length; int lastOffset = offset; while (offset != -1) { length = getBlockLength(text, offset); lastOffset = readDataBlock(text, offset, length, blocks); offset = skipEndOfLine(text, lastOffset); } RTFEmbeddedObject headerObject; RTFEmbeddedObject dataObject; while (blocks.isEmpty() == false) { headerObject = new RTFEmbeddedObject(blocks, 2); objects.add(headerObject); if (blocks.isEmpty() == false) { dataObject = new RTFEmbeddedObject(blocks, headerObject.getTypeFlag2()); objects.add(dataObject); } } return (lastOffset); }
[ "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document" ]
[ "Use this API to fetch all the inat resources that are configured on netscaler.", "Put features in a tile. This will assure all features are only added in one tile. When a feature's unique tile\nis different from this one a link is added in the tile.\n\n@param tile\ntile to put features in\n@param maxTileExtent\nthe maximum tile extent\n@throws GeomajasException oops", "Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'\nwith the value escaped if necessary.", "Read a single weekday from the provided JSON value.\n@param val the value to read the week day from.\n@return the week day read\n@throws IllegalArgumentException thrown if the provided JSON value is not the representation of a week day.", "Searches all descendant folders using a given query and query parameters.\n@param offset is the starting position.\n@param limit the maximum number of items to return. The default is 30 and the maximum is 200.\n@param bsp containing query and advanced search capabilities.\n@return a PartialCollection containing the search results.", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Information about a specific release.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param releaseName Release name. See {@link #listReleases} for a list of the app's releases.\n@return the release object", "Get a property as an int or throw an exception.\n\n@param key the property name", "Use this API to flush nssimpleacl." ]
private void readResource(Document.Resources.Resource resource) { Resource mpxjResource = m_projectFile.addResource(); mpxjResource.setName(resource.getName()); mpxjResource.setResourceCalendar(m_calendarMap.get(resource.getCalendarID())); mpxjResource.setStandardRate(new Rate(resource.getCost(), resource.getCostTimeUnit())); mpxjResource.setEmailAddress(resource.getEMail()); mpxjResource.setGroup(resource.getGroup()); //resource.getHyperlinks() mpxjResource.setUniqueID(resource.getID()); //resource.getMarkerID() mpxjResource.setNotes(resource.getNote()); mpxjResource.setID(Integer.valueOf(resource.getOutlineNumber())); //resource.getStyleProject() mpxjResource.setType(resource.getSubType() == null ? resource.getType() : resource.getSubType()); }
[ "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource" ]
[ "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException", "Wraps a linear solver of any type with a safe solver the ensures inputs are not modified", "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.", "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list", "Default settings set type loader to ClasspathTypeLoader if not set before.", "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Creates metadata on this folder using a specified template.\n\n@param templateName the name of the metadata template.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Updates the options panel for a special configuration.\n@param gitConfig the git configuration.", "Returns iterable with all assignments of given type of this retention policy.\n@param type the type of the retention policy assignment to retrieve. Can either be \"folder\" or \"enterprise\".\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments of given type." ]
private void mapText(String oldText, Map<String, String> replacements) { char c2 = 0; if (oldText != null && oldText.length() != 0 && !replacements.containsKey(oldText)) { StringBuilder newText = new StringBuilder(oldText.length()); for (int loop = 0; loop < oldText.length(); loop++) { char c = oldText.charAt(loop); if (Character.isUpperCase(c)) { newText.append('X'); } else { if (Character.isLowerCase(c)) { newText.append('x'); } else { if (Character.isDigit(c)) { newText.append('0'); } else { if (Character.isLetter(c)) { // Handle other codepages etc. If possible find a way to // maintain the same code page as original. // E.g. replace with a character from the same alphabet. // This 'should' work for most cases if (c2 == 0) { c2 = c; } newText.append(c2); } else { newText.append(c); } } } } } replacements.put(oldText, newText.toString()); } }
[ "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs" ]
[ "Utility function that fetches quota types.", "Compute the proportional padding for all items in the cache\n@param cache Cache data set\n@return the uniform padding amount", "Get the authentication info for this layer.\n\n@return authentication info.", "Deploys application reading resources from specified URLs\n\n@param applicationName to configure in cluster\n@param urls where resources are read\n@return the name of the application\n@throws IOException", "Ensure that the given connection is established.\n\n@param jedis\na connection to Redis\n@return true if the supplied connection was already connected", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "return a prepared Insert Statement fitting for the given ClassDescriptor", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Write correlation id.\n\n@param message the message\n@param correlationId the correlation id" ]
public static ClassLoader resolveClassLoaderForBeanProxy(String contextId, Class<?> proxiedType, TypeInfo typeInfo, ProxyServices proxyServices) { Class<?> superClass = typeInfo.getSuperClass(); if (superClass.getName().startsWith(JAVA)) { ClassLoader cl = proxyServices.getClassLoader(proxiedType); if (cl == null) { cl = Thread.currentThread().getContextClassLoader(); } return cl; } return Container.instance(contextId).services().get(ProxyServices.class).getClassLoader(superClass); }
[ "Figures out the correct class loader to use for a proxy for a given bean" ]
[ "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.", "Starts the named animation.\n@see GVRAvatar#stop(String)\n@see GVRAnimationEngine#start(GVRAnimation)", "Use this API to fetch dnssuffix resources of given names .", "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", "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus", "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Returns all values that can be selected in the widget.\n@param cms the current CMS object\n@param rootPath the root path to the currently edited xml file (sitemap config)\n@param allRemoved flag, indicating if all inheritedly available formatters should be disabled\n@return all values that can be selected in the widget.", "Sets the currently edited locale.\n@param locale the locale to set.", "Seeks forward or backwards to a particular holiday based on the current date\n\n@param holidayString The holiday to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek" ]
public long indexOf(final String element) { return doWithJedis(new JedisCallable<Long>() { @Override public Long call(Jedis jedis) { return doIndexOf(jedis, element); } }); }
[ "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found" ]
[ "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "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", "key function to execute a parallel task.\n\n@param task the parallel task\n@return the batch response from manager", "Opens a file from the volume. The filePath is relative to the\ndefaultPath.\n\n@param filePath\nFile path of the resource to open.\n\n@throws IOException", "Convert an integer to a RelationType instance.\n\n@param type integer value\n@return RelationType instance", "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", "Parser for forecast\n\n@param feed\n@return", "Set the role info for this user. If set, this will be used to set the user's authorizations.\n\n@param roles the roles\n@since 1.10.0" ]
public T find(AbstractProject<?, ?> project, Class<T> type) { // First check that the Flexible Publish plugin is installed: if (Jenkins.getInstance().getPlugin(FLEXIBLE_PUBLISH_PLUGIN) != null) { // Iterate all the project's publishers and find the flexible publisher: for (Publisher publisher : project.getPublishersList()) { // Found the flexible publisher: if (publisher instanceof FlexiblePublisher) { // See if it wraps a publisher of the specified type and if it does, return it: T pub = getWrappedPublisher(publisher, type); if (pub != null) { return pub; } } } } return null; }
[ "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher" ]
[ "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files.", "Generate a call to the delegate object.", "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value.", "Read metadata by populating an instance of the target class\nusing SAXParser.", "Wraps a StatisticsMatrix around 'm'. Does NOT create a copy of 'm' but saves a reference\nto it.", "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version", "Removes obsolete elements from names and shared elements.\n\n@param names Shared element names.\n@param sharedElements Shared elements.\n@param elementsToRemove The elements that should be removed.", "Checks if the given argument is null and throws an exception with a\nmessage containing the argument name if that it true.\n\n@param argument the argument to check for null\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@param <T> the type of the argument\n@return the argument itself\n@throws IllegalArgumentException in case argument is null" ]
public double convert(double value, double temperatur, double viscosity){ return temperatur*kB / (Math.PI*viscosity*value); }
[ "Converters the diffusion coefficient to hydrodynamic diameter and vice versa\n@param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m]\n@param temperatur Temperatur in [Kelvin]\n@param viscosity Viscosity in [kg m^-1 s^-1]\n@return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1]" ]
[ "FIXME Remove this method", "Retrieve table data, return an empty result set if no table data is present.\n\n@param name table name\n@return table data", "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@param mv\nthe method visitor to be used to visit the try catch block\nannotations.\n@param context\ninformation about the class being parsed.\n@param visible\nif the type annotation table to parse contains runtime visible\nannotations.\n@return the start offset of each type annotation in the parsed table.", "Creates a proxy object which implements a given bean interface.\n\n@param proxyInterface\nthe interface the the proxy will implement\n@param <T>\nthe proxy implementation type\n@return the proxy implementation\n@throws NullPointerException\nif proxyInterface is null", "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.", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "This method finds the start of the next working period.\n\n@param cal current Calendar instance" ]
final void end() { final Thread thread = this.threadRef; this.keepRunning.set(false); if (thread != null) { // thread.interrupt(); try { thread.join(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } this.threadRef = null; }
[ "Stops the compressor." ]
[ "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Evaluates an EL.\n\n@param vars the variables to be available for the evaluation.\n@param el the EL string to evaluate.\n@param returnType the class the EL evaluates to.\n@return the evaluated EL as an instance of the specified return type.\n@throws ELEvalException if the EL could not be evaluated.", "Updates the story and returns the full record for the updated story.\nOnly comment stories can have their text updated, and only comment stories and\nattachment stories can be pinned. Only one of `text` and `html_text` can be specified.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "Adds the scroll position CSS extension to the given component\n\n@param componentContainer the component to extend\n@param scrollBarrier the scroll barrier\n@param barrierMargin the margin\n@param styleName the style name to set beyond the scroll barrier", "Wrapper to avoid throwing an exception over JMX", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "sets the class object described by this descriptor.\n@param c the class to describe" ]
public AsciiTable setPaddingBottomChar(Character paddingBottomChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingBottomChar(paddingBottomChar); } } return this; }
[ "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Return a String of length a minimum of totalChars characters by\npadding the input String str at the right end with spaces.\nIf str is already longer\nthan totalChars, it is returned unchanged.", "Updates the terms and statements of the item document identified by the\ngiven item id. The updates are computed with respect to the current data\nfound online, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param itemIdValue\nid of the document to be updated\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Search for interesting photos using the Flickr Interestingness algorithm.\n\n@param params\nAny search parameters\n@param perPage\nNumber of items per page\n@param page\nThe page to start on\n@return A PhotoList\n@throws FlickrException", "Get the contents from the request URL.\n\n@param url URL to get the response from\n@param layer the raster layer\n@return {@link InputStream} with the content\n@throws IOException cannot get content", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Creates builder for passed path element\n\n@param elementName name of xml element that is used as decorator\n@return PersistentResourceXMLBuilder\n@deprecated decorator element support is currently considered as preview\n@since 4.0", "For each node, checks if the store exists and then verifies that the remote schema\nmatches the new one. If the remote store doesn't exist, it creates it.", "This method extracts task data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Scans the scene graph to collect picked items\nand generates appropriate pick and touch events.\nThis function is called by the cursor controller\ninternally but can also be used to funnel a\nstream of Android motion events into the picker.\n@see #pickObjects(GVRScene, float, float, float, float, float, float)\n@param touched true if the \"touched\" button is pressed.\nWhich button indicates touch is controller dependent.\n@param event Android MotionEvent which caused the pick\n@see IPickEvents\n@see ITouchEvents" ]
private void deselectChildren(CmsTreeItem item) { for (String childId : m_childrens.get(item.getId())) { CmsTreeItem child = m_categories.get(childId); deselectChildren(child); child.getCheckBox().setChecked(false); if (m_selectedCategories.contains(childId)) { m_selectedCategories.remove(childId); } } }
[ "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d" ]
[ "Use this API to count linkset_interface_binding resources configued on NetScaler.", "Emits a sentence fragment combining all the merge actions.", "Gets a method based on data in the override_db table\n\n@param overrideId ID of override\n@return Method found", "Shutdown the socket server", "Converts from RGB to Hexadecimal notation.", "Reset hard on HEAD.\n\n@throws GitAPIException", "Turn json string into map\n\n@param json\n@return", "Toggles a style name on a ui object\n\n@param uiObject Object to toggle style on\n@param toggleStyle whether or not to toggle the style name on the object\n@param styleName Style name", "Create a ModelNode representing the operating system the instance is running on.\n\n@return a ModelNode representing the operating system the instance is running on.\n@throws OperationFailedException" ]
public static double[][] toDouble(int[][] array) { double[][] n = new double[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (double) array[i][j]; } } return n; }
[ "2-D Integer array to double array.\n\n@param array Integer array.\n@return Double array." ]
[ "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Load a JSON file from the application's \"asset\" directory.\n\n@param context Valid {@link Context}\n@param asset Name of the JSON file\n@return New instance of {@link JSONObject}", "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException", "Determines the median value of the data set.\n@return If the number of elements is odd, returns the middle element.\nIf the number of elements is even, returns the midpoint of the two\nmiddle elements.\n@since 1.0.1", "Store the char in the internal buffer", "Change the color of the center which indicates the new color.\n\n@param color int of the color.", "Searches the variables layers, top to bottom, for given name, and returns if found; null otherwise.\n\nIf maxDepth is set to {@link Variables#SEARCH_ALL_LAYERS}, then search all layers.", "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix Prefix that should be prepended to all handler's command names." ]
protected List<Versioned<V>> resolveAndConstructVersionsToPersist(List<Versioned<V>> valuesInStorage, List<Versioned<V>> multiPutValues) { List<Versioned<V>> obsoleteVals = new ArrayList<Versioned<V>>(multiPutValues.size()); // Go over all the values and determine whether the version is // acceptable for(Versioned<V> value: multiPutValues) { Iterator<Versioned<V>> iter = valuesInStorage.iterator(); boolean obsolete = false; // Compare the current version with a set of accepted versions while(iter.hasNext()) { Versioned<V> curr = iter.next(); Occurred occurred = value.getVersion().compare(curr.getVersion()); if(occurred == Occurred.BEFORE) { obsolete = true; break; } else if(occurred == Occurred.AFTER) { iter.remove(); } } if(obsolete) { // add to return value if obsolete obsoleteVals.add(value); } else { // else update the set of accepted versions valuesInStorage.add(value); } } return obsoleteVals; }
[ "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete" ]
[ "Remove all scene objects.", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Returns iban length for the specified country.\n\n@param countryCode {@link org.iban4j.CountryCode}\n@return the length of the iban for the specified country.", "Find and select the next searchable matching text.\n\n@param reverse look forwards or backwards\n@param pos the starting index to start finding from\n@return the location of the next selected, or -1 if not found", "Use this API to fetch gslbsite resources of given names .", "Gets the pathClasses.\nA Map containing hints about what Class to be used for what path segment\nIf local instance not set, try parent Criteria's instance. If this is\nthe top-level Criteria, try the m_query's instance\n@return Returns a Map", "Delete an object from the database by id.", "Destroys the context", "Get all the names of inputs that are required to be in the Values object when this graph is executed." ]
public static <T> T splitEachLine(InputStream stream, String regex, String charset, @ClosureParams(value=FromString.class,options="List<String>") Closure<T> closure) throws IOException { return splitEachLine(new BufferedReader(new InputStreamReader(stream, charset)), regex, closure); }
[ "Iterates through the given InputStream line by line using the specified\nencoding, splitting each line using the given separator. The list of tokens\nfor each line is then passed to the given closure. Finally, the stream\nis closed.\n\n@param stream an InputStream\n@param regex the delimiting regular expression\n@param charset opens the stream with a specified charset\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see #splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5" ]
[ "Serialize specified object to directory with specified name. Given output stream will be closed.\n\n@param obj object to serialize\n@return number of bytes written to directory", "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", "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process.", "Gets the final transform of the bone.\n\n@return the 4x4 matrix representing the final transform of the\nbone during animation, which comprises bind pose and skeletal\ntransform at the current time of the animation.", "Wrap getOperationStatus to avoid throwing exception over JMX", "Returns a single sort option configuration as configured via the methods parameter, or null if the parameter does not specify a sort option.\n@param json The JSON sort option configuration.\n@return The sort option configuration, or null if the JSON could not be read.", "Logs the time taken by this rule, and attaches this to the total for the RuleProvider", "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side", "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment" ]
private void setMax(MtasRBTreeNode n) { n.max = n.right; if (n.leftChild != null) { n.max = Math.max(n.max, n.leftChild.max); } if (n.rightChild != null) { n.max = Math.max(n.max, n.rightChild.max); } }
[ "Sets the max.\n\n@param n the new max" ]
[ "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection.", "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "returns null if no device is found.", "Unescape and unquote the path. Ready for translation.", "Check config.\n\n@param context the context\n@return true, if successful\n@throws Exception the exception", "Get top deployment unit.\n\n@param unit the current deployment unit\n@return top deployment unit", "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance", "Get an image using the specified URL suffix.\n\n@deprecated\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException", "Use this API to fetch appfwjsoncontenttype resources of given names ." ]
protected void setResults(GraphRewrite event, String variable, Iterable<? extends WindupVertexFrame> results) { Variables variables = Variables.instance(event); Iterable<? extends WindupVertexFrame> existingVariables = variables.findVariable(variable, 1); if (existingVariables != null) { variables.setVariable(variable, Iterables.concat(existingVariables, results)); } else { variables.setVariable(variable, results); } }
[ "This sets the variable with the given name to the given value. If there is already a variable with the same name in the top-most stack frame,\nwe will combine them here.\n\nThis helps in the case of multiple conditions tied together with \"or\" or \"and\"." ]
[ "Obtains a local date in Symmetry454 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry454 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry454 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing.", "Private helper function that performs some assignability checks for the\nprovided GenericArrayType.", "Prepare a parallel HTTP DELETE 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", "Decode '%HH'.", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache", "Adds an index to the table for the given index descriptor.\n\n@param indexDescDef The index descriptor\n@param tableDef The table", "Returns a new Set containing all the objects in the specified array.", "Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened" ]
synchronized void transitionFailed(final InternalState state) { final InternalState current = this.internalState; if(state == current) { // Revert transition and mark as failed switch (current) { case PROCESS_ADDING: this.internalState = InternalState.PROCESS_STOPPED; break; case PROCESS_STARTED: internalSetState(getTransitionTask(InternalState.PROCESS_STOPPING), InternalState.PROCESS_STARTED, InternalState.PROCESS_ADDED); break; case PROCESS_STARTING: this.internalState = InternalState.PROCESS_ADDED; break; case SEND_STDIN: case SERVER_STARTING: this.internalState = InternalState.PROCESS_STARTED; break; } this.requiredState = InternalState.FAILED; notifyAll(); } }
[ "Notification that a state transition failed.\n\n@param state the failed transition" ]
[ "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified.", "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar", "Processes the template for all procedures 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\"", "Set the method arguments for an enabled method override\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise", "Assigns this retention policy to folder.\n@param folder the folder to assign policy to.\n@return info about created assignment.", "Add the buildInfo to step variables if missing and set its cps script.\n\n@param cpsScript the cps script\n@param stepVariables step variables map\n@return the build info", "Returns the query string currently in the text field.\n\n@return the query string", "Get the MVT type mapping for the provided JTS Geometry.\n\n@param geometry JTS Geometry to get MVT type for\n@return MVT type for the given JTS Geometry, may return\n{@link com.wdtinc.mapbox_vector_tile.VectorTile.Tile.GeomType#UNKNOWN}", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup." ]
private void ensureReferencedPKs(ModelDef modelDef, CollectionDescriptorDef collDef) throws ConstraintException { String elementClassName = collDef.getProperty(PropertyHelper.OJB_PROPERTY_ELEMENT_CLASS_REF); ClassDescriptorDef elementClassDef = modelDef.getClass(elementClassName); String indirTable = collDef.getProperty(PropertyHelper.OJB_PROPERTY_INDIRECTION_TABLE); String localKey = collDef.getProperty(PropertyHelper.OJB_PROPERTY_FOREIGNKEY); String remoteKey = collDef.getProperty(PropertyHelper.OJB_PROPERTY_REMOTE_FOREIGNKEY); boolean hasRemoteKey = remoteKey != null; ArrayList fittingCollections = new ArrayList(); // we're checking for the fitting remote collection(s) and also // use their foreignkey as remote-foreignkey in the original collection definition for (Iterator it = elementClassDef.getAllExtentClasses(); it.hasNext();) { ClassDescriptorDef subTypeDef = (ClassDescriptorDef)it.next(); // find the collection in the element class that has the same indirection table for (Iterator collIt = subTypeDef.getCollections(); collIt.hasNext();) { CollectionDescriptorDef curCollDef = (CollectionDescriptorDef)collIt.next(); if (indirTable.equals(curCollDef.getProperty(PropertyHelper.OJB_PROPERTY_INDIRECTION_TABLE)) && (collDef != curCollDef) && (!hasRemoteKey || CommaListIterator.sameLists(remoteKey, curCollDef.getProperty(PropertyHelper.OJB_PROPERTY_FOREIGNKEY))) && (!curCollDef.hasProperty(PropertyHelper.OJB_PROPERTY_REMOTE_FOREIGNKEY) || CommaListIterator.sameLists(localKey, curCollDef.getProperty(PropertyHelper.OJB_PROPERTY_REMOTE_FOREIGNKEY)))) { fittingCollections.add(curCollDef); } } } if (!fittingCollections.isEmpty()) { // if there is more than one, check that they match, i.e. that they all have the same foreignkeys if (!hasRemoteKey && (fittingCollections.size() > 1)) { CollectionDescriptorDef firstCollDef = (CollectionDescriptorDef)fittingCollections.get(0); String foreignKey = firstCollDef.getProperty(PropertyHelper.OJB_PROPERTY_FOREIGNKEY); for (int idx = 1; idx < fittingCollections.size(); idx++) { CollectionDescriptorDef curCollDef = (CollectionDescriptorDef)fittingCollections.get(idx); if (!CommaListIterator.sameLists(foreignKey, curCollDef.getProperty(PropertyHelper.OJB_PROPERTY_FOREIGNKEY))) { throw new ConstraintException("Cannot determine the element-side collection that corresponds to the collection "+ collDef.getName()+" in type "+collDef.getOwner().getName()+ " because there are at least two different collections that would fit."+ " Specifying remote-foreignkey in the original collection "+collDef.getName()+ " will perhaps help"); } } // store the found keys at the collections collDef.setProperty(PropertyHelper.OJB_PROPERTY_REMOTE_FOREIGNKEY, foreignKey); for (int idx = 0; idx < fittingCollections.size(); idx++) { CollectionDescriptorDef curCollDef = (CollectionDescriptorDef)fittingCollections.get(idx); curCollDef.setProperty(PropertyHelper.OJB_PROPERTY_REMOTE_FOREIGNKEY, localKey); } } } // copy subclass pk fields into target class (if not already present) ensurePKsFromHierarchy(elementClassDef); }
[ "Ensures that the primary keys required by the given collection with indirection table are present in\nthe element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the fitting collection (if any) or the primary keys" ]
[ "Utility function that fetches all stores on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@return List of all store names", "Extracts the last revision id from the JSON response returned\nby the API after an edit\n\n@param response\nthe response as returned by Mediawiki\n@return\nthe new revision id of the edited entity\n@throws JsonMappingException", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Register the ChangeHandler to become notified if the user changes the slider.\nThe Handler is called when the user releases the mouse only at the end of the slide\noperation.", "Use this API to disable nsfeature.", "determine the what state a transaction is in by inspecting the primary column", "Return a list of photos for a user at a specific latitude, longitude and accuracy.\n\n@param location\n@param extras\n@param perPage\n@param page\n@return The collection of Photo objects\n@throws FlickrException\n@see com.flickr4java.flickr.photos.Extras", "Get a scalar value for the DOM diversity using the Robust Tree Edit Distance\n\n@param dom1\n@param dom2\n@return", "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file" ]
@Override protected void stopInner() { /* * TODO REST-Server Need to handle inflight operations. What happens to * the existing async operations when a channel.close() is issued in * Netty? */ if(this.nettyServerChannel != null) { this.nettyServerChannel.close(); } if(allChannels != null) { allChannels.close().awaitUninterruptibly(); } this.bootstrap.releaseExternalResources(); }
[ "Closes the Netty Channel and releases all resources" ]
[ "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Use this API to delete snmpmanager.", "Return true only if the node has the named annotation\n@param node - the AST Node to check\n@param name - the name of the annotation\n@return true only if the node has the named annotation", "Computes the cross product of v1 and v2 and places the result in this\nvector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return set", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return", "Check that a list allowing null and empty item contains at least one element that is\nnot blank.\n@param list can't be null\n@return", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException", "Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'\nwith the value escaped if necessary." ]
private String parseRssFeed(String feed) { String[] result = feed.split("<br />"); String[] result2 = result[2].split("<BR />"); return result2[0]; }
[ "Parser for actual conditions\n\n@param feed\n@return" ]
[ "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", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Mark root of this task task group depends on the given task group's root.\nThis ensure this task group's root get picked for execution only after the completion\nof all tasks in the given group.\n\n@param dependencyTaskGroup the task group that this task group depends on", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Hides the Loader component", "Add all headers in a header map.\n\n@param headers a map of headers.\n@return the interceptor instance itself.", "Return all Clients for a profile\n\n@param profileId ID of profile clients belong to\n@return collection of the Clients found\n@throws Exception exception", "Given a container, and a set of raw data blocks, this method extracts\nthe field data and writes it into the container.\n\n@param type expected type\n@param container field container\n@param id entity ID\n@param fixedData fixed data block\n@param varData var data block", "Get a property as a boolean or null.\n\n@param key the property name" ]
public static spilloverpolicy_stats get(nitro_service service, String name) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); obj.set_name(name); spilloverpolicy_stats response = (spilloverpolicy_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of spilloverpolicy_stats resource of given name ." ]
[ "Encodes the given URI user info with the given encoding.\n@param userInfo the user info to be encoded\n@param encoding the character encoding to encode to\n@return the encoded user info\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Sets a string-valued additional info entry on the user.\n\n@param username the name of the user\n@param infoName the additional info key\n@param value the additional info value\n\n@throws CmsException if something goes wrong", "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path", "Use this API to fetch hanode_routemonitor6_binding resources of given name .", "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", "Creates an attachment from a given array of bytes.\nThe bytes will be Base64 encoded.\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Use this API to delete ntpserver resources.", "Determine the color of the waveform given an index into it.\n\n@param segment the index of the first waveform byte to examine\n@param front if {@code true} the front (brighter) segment of a color waveform preview is returned,\notherwise the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return the color of the waveform at that segment, which may be based on an average\nof a number of values starting there, determined by the scale", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15" ]
public void setAttributeEditable(Attribute attribute, boolean editable) { attribute.setEditable(editable); if (!(attribute instanceof LazyAttribute)) { // should not instantiate lazy attributes! if (attribute instanceof ManyToOneAttribute) { setAttributeEditable(((ManyToOneAttribute) attribute).getValue(), editable); } else if (attribute instanceof OneToManyAttribute) { List<AssociationValue> values = ((OneToManyAttribute) attribute).getValue(); for (AssociationValue value : values) { setAttributeEditable(value, editable); } } } }
[ "Set editable state on an attribute. This needs to also set the state on the associated attributes.\n\n@param attribute attribute for which the editable state needs to be set\n@param editable new editable state" ]
[ "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code EthiopicEra}", "Retrieves an object that has been attached to this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Are we running in Jetty with JMX enabled?", "Check if the property is part of the identifier of the entity.\n\n@param persister the {@link OgmEntityPersister} of the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is part of the id, {@code false} otherwise.", "Returns true if the grammar element that is associated with the given param is filtered due to guard conditions\nof parameterized rules in the current call stack.\n\nIf the grammar element is the only element contained in a group, its container is checked, too.\n\n@see #isFiltered(AbstractElement, Param)", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name", "Returns the aliased certificate. Certificates are aliased by their hostname.\n@see ThumbprintUtil\n@param alias\n@return\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchProviderException\n@throws NoSuchAlgorithmException\n@throws CertificateException\n@throws SignatureException\n@throws CertificateNotYetValidException\n@throws CertificateExpiredException\n@throws InvalidKeyException\n@throws CertificateParsingException", "Start ssh session and obtain session.\n\n@return the session", "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution" ]
protected String getLocaleSpecificTitle(Locale locale) { String result = null; try { if (isDetailRequest()) { // this is a request to a detail page CmsResource res = getDetailContent(); CmsFile file = m_cms.readFile(res); CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, file); result = content.getHandler().getTitleMapping(m_cms, content, m_cms.getRequestContext().getLocale()); if (result == null) { // title not found, maybe no mapping OR not available in the current locale // read the title of the detail resource as fall back (may contain mapping from another locale) result = m_cms.readPropertyObject( res, CmsPropertyDefinition.PROPERTY_TITLE, false, locale).getValue(); } } if (result == null) { // read the title of the requested resource as fall back result = m_cms.readPropertyObject( m_cms.getRequestContext().getUri(), CmsPropertyDefinition.PROPERTY_TITLE, true, locale).getValue(); } } catch (CmsException e) { LOG.debug(e.getLocalizedMessage(), e); } if (CmsStringUtil.isEmptyOrWhitespaceOnly(result)) { result = ""; } return result; }
[ "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale" ]
[ "Performs MAC signing of the SMB. This is done as follows.\nThe signature field of the SMB is overwritted with the sequence number;\nThe MD5 digest of the MAC signing key + the entire SMB is taken;\nThe first 8 bytes of this are placed in the signature field.\n\n@param data The data.\n@param offset The starting offset at which the SMB header begins.\n@param length The length of the SMB data starting at offset.", "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "Returns the context menu for the table item.\n@param itemId the table item.\n@return the context menu for the given item.", "Reads the XER file table and row structure ready for processing.\n\n@param is input stream\n@throws MPXJException", "Verify that the given queues are all valid.\n\n@param queues the given queues", "This will blur the view behind it and set it in\na imageview over the content with a alpha value\nthat corresponds to slideOffset.", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient" ]
public void stopListenting() { if (channel != null) { log.info("closing server channel"); channel.close().syncUninterruptibly(); channel = null; } }
[ "Closes the server socket. No new clients are accepted afterwards." ]
[ "Gets the current page\n@return", "Write the text to the Path, using the specified encoding.\n\n@param self a Path\n@param text the text to write to the Path\n@param charset the charset used\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Returns all the pixels for the image\n\n@return an array of pixels for this image", "Check position type.\n\n@param type the type\n@return the boolean", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "This filter uses a 9-patch to overlay the image.\n\n@param imageUrl Watermark image URL. It is very important to understand that the same image\nloader that Thumbor uses will be used here.", "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties", "We have obtained album art for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this art\n@param art the album art which we retrieved", "Closes the connection to the dbserver. This instance can no longer be used after this action." ]
private void fillWeekPanel() { addCheckBox(WeekOfMonth.FIRST.toString(), Messages.GUI_SERIALDATE_WEEKDAYNUMBER_1_0); addCheckBox(WeekOfMonth.SECOND.toString(), Messages.GUI_SERIALDATE_WEEKDAYNUMBER_2_0); addCheckBox(WeekOfMonth.THIRD.toString(), Messages.GUI_SERIALDATE_WEEKDAYNUMBER_3_0); addCheckBox(WeekOfMonth.FOURTH.toString(), Messages.GUI_SERIALDATE_WEEKDAYNUMBER_4_0); addCheckBox(WeekOfMonth.LAST.toString(), Messages.GUI_SERIALDATE_WEEKDAYNUMBER_5_0); }
[ "Fills the week panel with checkboxes." ]
[ "Reads and returns the mediator URN from the JSON content.\n\n@see #RegistrationConfig(String)", "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "find all accessibility object and set active true for enable talk back.", "Constraint that ensures that the field has precision and scale settings if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Setter for the file format.\n@param fileFormat File format the configuration file is in.", "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance", "Returns a single template.\n\n@param id id of the template to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Deletes this collaboration whitelist.", "Convert a name into initials.\n\n@param name source name\n@return initials" ]
void writeInterPropertyLinks(PropertyDocument document) throws RDFHandlerException { Resource subject = this.rdfWriter.getUri(document.getEntityId() .getIri()); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_DIRECT_CLAIM_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.DIRECT)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_CLAIM_PROP), Vocabulary.getPropertyUri( document.getEntityId(), PropertyContext.STATEMENT)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_STATEMENT_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.VALUE_SIMPLE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_STATEMENT_VALUE_PROP), Vocabulary.getPropertyUri(document.getEntityId(), PropertyContext.VALUE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_QUALIFIER_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.QUALIFIER_SIMPLE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_QUALIFIER_VALUE_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.QUALIFIER)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_REFERENCE_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.REFERENCE_SIMPLE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_REFERENCE_VALUE_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.REFERENCE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_NO_VALUE_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.NO_VALUE)); this.rdfWriter.writeTripleUriObject(subject, this.rdfWriter .getUri(Vocabulary.WB_NO_QUALIFIER_VALUE_PROP), Vocabulary .getPropertyUri(document.getEntityId(), PropertyContext.NO_QUALIFIER_VALUE)); // TODO something more with NO_VALUE }
[ "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" ]
[ "This method sends the same message to many agents.\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param connector\nThe connector to get the external access", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "used for upload progress", "Recycle all views in the list. The host views might be reused for other data to\nsave resources on creating new widgets.", "Return the map bounds rotated with the set rotation. The bounds are adapted to rounding changes of the\nsize of the set paint area.\n\n@return Rotated bounds.", "Removes file from your assembly.\n\n@param name field name of the file to remove.", "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "as we know nothing has changed.", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nmetadata updates will use available caches only\n\n@return the metadata found, if any" ]
public void setMat4(String key, float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2, float x3, float y3, float z3, float w3, float x4, float y4, float z4, float w4) { checkKeyIsUniform(key); NativeLight.setMat4(getNative(), key, x1, y1, z1, w1, x2, y2, z2, w2, x3, y3, z3, w3, x4, y4, z4, w4); }
[ "Set the value for a floating point 4x4 matrix.\n@param key name of uniform to set.\n@see #getFloatVec(String)" ]
[ "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "Submit a command to the server.\n\n@param command The CLI command\n@return The DMR response as a ModelNode\n@throws CommandFormatException\n@throws IOException", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value.", "Use this API to save cachecontentgroup.", "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", "Retrieve the number of minutes per year for this calendar.\n\n@return minutes per year", "Handle a \"current till end\" change event.\n@param event the change event.", "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)" ]
private String getCacheFormatEntry() throws IOException { ZipEntry zipEntry = zipFile.getEntry(CACHE_FORMAT_ENTRY); InputStream is = zipFile.getInputStream(zipEntry); try { Scanner s = new Scanner(is, "UTF-8").useDelimiter("\\A"); String tag = null; if (s.hasNext()) tag = s.next(); return tag; } finally { is.close(); } }
[ "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file" ]
[ "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Unlocks a file.", "Generates a sub-trajectory", "Add a post-effect to this camera's render chain.\n\nPost-effects are GL shaders, applied to the texture (hardware bitmap)\ncontaining the rendered scene graph. Each post-effect combines a shader\nselector with a set of parameters: This lets you pass different\nparameters to the shaders for each eye.\n\n@param postEffectData\nPost-effect to append to this camera's render chain", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "High-accuracy Complementary normal distribution function.\n\n@param x Value.\n@return Result.", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Get a bean value from the context.\n\n@param name bean name\n@return bean value or null", "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist" ]
public boolean isHomeKeyPresent() { final GVRApplication application = mApplication.get(); if (null != application) { final String model = getHmtModel(); if (null != model && model.contains("R323")) { return true; } } return false; }
[ "Does the headset the device is docked into have a dedicated home key\n@return" ]
[ "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition", "Use this API to fetch filtered set of vpnclientlessaccesspolicy resources.\nset the filter parameter values in filtervalue object.", "Use this API to fetch dnszone_domain_binding resources of given name .", "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals.", "Only call async", "Returns a new intern odmg-transaction for the current database.", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry." ]
public static List<String> getAllUserStoreNamesOnNode(AdminClient adminClient, Integer nodeId) { List<String> storeNames = Lists.newArrayList(); List<StoreDefinition> storeDefinitionList = adminClient.metadataMgmtOps.getRemoteStoreDefList(nodeId) .getValue(); for(StoreDefinition storeDefinition: storeDefinitionList) { storeNames.add(storeDefinition.getName()); } return storeNames; }
[ "Utility function that fetches all stores on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@return List of all store names" ]
[ "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise", "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}", "Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of comments", "Use this API to update snmpalarm.", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>.", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events.", "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record", "Adds format information to eval.", "Check, if the resource should be exported with minimal meta-data.\nThis holds for resources that are not part of the export, but must be\nexported as super-folders.\n\n@param path export-site relative path of the resource to check.\n\n@return flag, indicating if the resource should be exported with minimal meta data." ]
private void addColumns(MpxjTreeNode parentNode, Table table) { for (Column column : table.getColumns()) { final Column c = column; MpxjTreeNode childNode = new MpxjTreeNode(column) { @Override public String toString() { return c.getTitle(); } }; parentNode.add(childNode); } }
[ "Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container" ]
[ "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Use this API to update cmpparameter.", "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Gets the specified SPI, using the current thread context classloader\n\n@param <T> type of spi class\n@param spiType spi class to retrieve\n@return object", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself.", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value" ]
@SuppressWarnings("unchecked") public static void executeCommand(String[] args) throws IOException { OptionParser parser = getParser(); // declare parameters List<String> metaKeys = null; String url = null; // parse command-line input args = AdminToolUtils.copyArrayAddFirst(args, "--" + OPT_HEAD_META_CHECK); OptionSet options = parser.parse(args); if(options.has(AdminParserUtils.OPT_HELP)) { printHelp(System.out); return; } // check required options and/or conflicting options AdminParserUtils.checkRequired(options, OPT_HEAD_META_CHECK); AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL); // load parameters metaKeys = (List<String>) options.valuesOf(OPT_HEAD_META_CHECK); url = (String) options.valueOf(AdminParserUtils.OPT_URL); // execute command if(metaKeys.size() == 0 || (metaKeys.size() == 1 && metaKeys.get(0).equals(METAKEY_ALL))) { metaKeys = Lists.newArrayList(); metaKeys.add(MetadataStore.CLUSTER_KEY); metaKeys.add(MetadataStore.STORES_KEY); metaKeys.add(MetadataStore.SERVER_STATE_KEY); } AdminClient adminClient = AdminToolUtils.getAdminClient(url); doMetaCheck(adminClient, metaKeys); }
[ "Parses command-line and checks if metadata is consistent 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" ]
[ "Builds a instance of the class for a map containing the values\n\n@param clazz Class to build\n@param values Values map\n@param differenceHandler The difference handler\n@return The created instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "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>", "Returns the compact tag records for all tags in the workspace.\n\n@param workspace The workspace or organization to find tags in.\n@return Request object", "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy.", "Check the given JWT\n\n@param jwtString the JSON Web Token\n@return the parsed and verified token or null if token is invalid\n@throws ParseException if the token cannot be parsed", "Transforms an input file into HTML.\n\n@param file\nThe File to process.\n@param safeMode\nSet to <code>true</code> to escape unsafe HTML tags.\n@return The processed String.\n@throws IOException\nif an IO error occurs\n@see Configuration#DEFAULT", "Test to determine if this is a split task.\n\n@param calendar current calendar\n@param list timephased resource assignment list\n@return boolean flag", "This will set the last nestingLevel elements in the dotPositions to the values present in the dollarPositions.\nThe rest will be set to -1.\n\n<p>In another words the dotPositions array will contain the rightmost dollar positions.\n\n@param dollarPositions the positions of the $ in the binary class name\n@param dotPositions the positions of the dots to initialize from the dollarPositions\n@param nestingLevel the number of dots (i.e. how deep is the nesting of the classes)" ]
public static base_response delete(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl deleteresource = new nssimpleacl(); deleteresource.aclname = resource.aclname; return deleteresource.delete_resource(client); }
[ "Use this API to delete nssimpleacl." ]
[ "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}.", "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Count the statements and property uses of an item or property document.\n\n@param usageStatistics\nstatistics object to store counters in\n@param statementDocument\ndocument to count the statements of", "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.", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context", "Use this API to fetch all the rnatparam resources that are configured on netscaler.", "Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction\n\n@param path\nFilePath (relative to a root directory - cf. Node)\n@param originalFileName\nFileName\n@param fileFamily\nFile family (may be null). E.g.: \"daily report\"\n@param jobId\nJob Instance ID\n@param cnx\nthe DbConn to use.", "Remove write.lock file in the data directory to ensure the index is unlocked.\n@param dataDir the data directory of the Solr index that should be unlocked.", "Post a license to the server\n\n@param license\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException" ]
private int getItemViewType(Class prototypeClass) { int itemViewType = -1; for (Renderer renderer : prototypes) { if (renderer.getClass().equals(prototypeClass)) { itemViewType = getPrototypeIndex(renderer); break; } } if (itemViewType == -1) { throw new PrototypeNotFoundException( "Review your RendererBuilder implementation, you are returning one" + " prototype class not found in prototypes collection"); } return itemViewType; }
[ "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass." ]
[ "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false", "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.", "This produces the dotted hexadecimal format aaaa.bbbb.cccc", "Computes the determinant for the specified matrix. It must be square and have\nthe same width and height as what was specified in the constructor.\n\n@param mat The matrix whose determinant is to be computed.\n@return The determinant.", "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "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", "Answer the TableAlias for aPath\n@param aPath\n@param hintClasses\n@return TableAlias, null if none", "Do some magic to turn request parameters into a context object", "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list" ]
public static cacheobject[] get(nitro_service service) throws Exception{ cacheobject obj = new cacheobject(); cacheobject[] response = (cacheobject[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the cacheobject resources that are configured on netscaler." ]
[ "Renders in LI tags, Wraps with UL tags optionally.", "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by.", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found", "static expansion helpers", "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Deserialize a javascript design document file to a DesignDocument object.\n\n@param file the design document javascript file (UTF-8 encoded)\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Create a model mbean from an object using the description given in the\nJmx annotation if present. Only operations are supported so far, no\nattributes, constructors, or notifications\n\n@param o The object to create an MBean for\n@return The ModelMBean for the given object", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License" ]
public void synchTransaction(SimpleFeatureStore featureStore) { // check if transaction is active, otherwise do nothing (auto-commit mode) if (TransactionSynchronizationManager.isActualTransactionActive()) { DataAccess<SimpleFeatureType, SimpleFeature> dataStore = featureStore.getDataStore(); if (!transactions.containsKey(dataStore)) { Transaction transaction = null; if (dataStore instanceof JDBCDataStore) { JDBCDataStore jdbcDataStore = (JDBCDataStore) dataStore; transaction = jdbcDataStore.buildTransaction(DataSourceUtils .getConnection(jdbcDataStore.getDataSource())); } else { transaction = new DefaultTransaction(); } transactions.put(dataStore, transaction); } featureStore.setTransaction(transactions.get(dataStore)); } }
[ "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource" ]
[ "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}", "Use this API to fetch lbmonitor_binding resource of given name .", "dst is just for log information", "Add a clause where the ID is from an existing object.", "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return", "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Send message to all connections labeled with tag specified.\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@param excludeSelf specify whether the connection of this context should be send\n@return this context", "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function" ]
public boolean evaluate(Object feature) { // Checks to ensure that the attribute has been set if (attribute == null) { return false; } // Note that this converts the attribute to a string // for comparison. Unlike the math or geometry filters, which // require specific types to function correctly, this filter // using the mandatory string representation in Java // Of course, this does not guarantee a meaningful result, but it // does guarantee a valid result. // LOGGER.finest("pattern: " + pattern); // LOGGER.finest("string: " + attribute.getValue(feature)); // return attribute.getValue(feature).toString().matches(pattern); Object value = attribute.evaluate(feature); if (null == value) { return false; } Matcher matcher = getMatcher(); matcher.reset(value.toString()); return matcher.matches(); }
[ "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter." ]
[ "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled.", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign.", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "Count the number of working hours in a day, based in the\ninteger representation of the working hours.\n\n@param hours working hours\n@return number of hours", "Read the domain controller data from an S3 file.\n\n@param directoryName the name of the directory in the bucket that contains the S3 file\n@return the domain controller data", "Attaches a morph to scene object with a base mesh\n@param sceneObj is the base mesh.\n@throws IllegalStateException if component is null\n@throws IllegalStateException if mesh is null\n@throws IllegalStateException if material is null", "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment entity", "Use this API to update dbdbprofile.", "Gets the date time str standard.\n\n@param d\nthe d\n@return the date time str standard" ]