query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
void setPatternDefaultValues(Date startDate) { if ((m_patternDefaultValues == null) || !Objects.equals(m_patternDefaultValues.getDate(), startDate)) { m_patternDefaultValues = new PatternDefaultValues(startDate); } }
[ "Sets the default pattern values dependent on the provided start date.\n@param startDate the date, the default values are determined with." ]
[ "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "Polls from the provided URL and updates the polling state with the\npolling response.\n\n@param pollingState the polling state for the current operation.\n@param url the url to poll from\n@param <T> the return type of the caller.", "Closes the outbound socket binding connection.\n\n@throws IOException", "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Finds the first Field with given field name in the Class and in its super classes.\n\n@param type The Class type\n@param fieldName The field name to get\n@return an {@code Optional}. Use isPresent() to find out if the field name was found.", "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name ." ]
@Override protected void checkType() { if (!isDependent() && getEnhancedAnnotated().isParameterizedType()) { throw BeanLogger.LOG.managedBeanWithParameterizedBeanClassMustBeDependent(type); } boolean passivating = beanManager.isPassivatingScope(getScope()); if (passivating && !isPassivationCapableBean()) { if (!getEnhancedAnnotated().isSerializable()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } else if (hasDecorators() && !allDecoratorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableDecorator(this, getFirstNonPassivationCapableDecorator()); } else if (hasInterceptors() && !allInterceptorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableInterceptor(this, getFirstNonPassivationCapableInterceptor()); } } }
[ "Validates the type" ]
[ "Scroll to specific page. The final page might be different from the requested one if the\nrequested page is larger than the last page. To process the scrolling by pages\nLayoutScroller must be constructed with a pageSize greater than zero.\n@param pageNumber page to scroll to\n@return the new current item after the scrolling processed.", "Get the DMR path for this node. For leaves, the DMR path is the path of its parent.\n@return The DMR path for this node.", "Use this API to clear Interface resources.", "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException", "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", "Add join info to the query. This can be called multiple times to join with more than one table.", "only TOP or Bottom", "Returns an entry with the given proposal and prefix, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it." ]
public Response remove(String id) { assertNotEmpty(id, "id"); id = ensureDesignPrefix(id); String revision = null; // Get the revision ID from ETag, removing leading and trailing " revision = client.executeRequest(Http.HEAD(new DatabaseURIHelper(db.getDBUri() ).documentUri(id))).getConnection().getHeaderField("ETag"); if (revision != null) { revision = revision.substring(1, revision.length() - 1); return db.remove(id, revision); } else { throw new CouchDbException("No ETag header found for design document with id " + id); } }
[ "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}" ]
[ "Returns the latest change events, and clears them from the change stream listener.\n\n@return the latest change events.", "Log a warning for the given operation at the provided address for the given attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attribute attribute we that has problem", "Shuffle an array.\n\n@param array Array.\n@param seed Random seed.", "Save an HTTP response to a file\n@param response the response to save\n@param destFile the destination file\n@throws IOException if the response could not be downloaded", "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set", "Creates the main component of the editor with all sub-components.\n@return the completely filled main component of the editor.\n@throws IOException thrown if setting the table's content data source fails.\n@throws CmsException thrown if setting the table's content data source fails.", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into", "Explicitly set the end time of the event.\n\nIf the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.\n\n@param endDate the end time of the event.", "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name" ]
public void setGroupName(String name, int id) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_SERVER_GROUPS + " SET " + Constants.GENERIC_NAME + " = ?" + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setString(1, name); statement.setInt(2, id); statement.executeUpdate(); statement.close(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Set the group name\n\n@param name new name of server group\n@param id ID of group" ]
[ "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return", "Use this API to update ntpserver.", "Log a message line to the output.", "Returns a String summarizing overall accuracy that will print nicely.", "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@param auxHandlers Aux handlers to be passed to all subshells.\n@return subshell", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Clears the Parameters before performing a new search.\n@return this.true;" ]
public BoxFileUploadSessionPart uploadPart(InputStream stream, long offset, int partSize, long totalSizeOfFile) { URL uploadPartURL = this.sessionInfo.getSessionEndpoints().getUploadPartEndpoint(); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), uploadPartURL, HttpMethod.PUT); request.addHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_OCTET_STREAM); //Read the partSize bytes from the stream byte[] bytes = new byte[partSize]; try { stream.read(bytes); } catch (IOException ioe) { throw new BoxAPIException("Reading data from stream failed.", ioe); } return this.uploadPart(bytes, offset, partSize, totalSizeOfFile); }
[ "Uploads chunk of a stream to an open upload session.\n@param stream the stream that is used to read the chunck using the offset and part size.\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size." ]
[ "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have been wrapped with \"\".\n@return an iterable containing info about all the groups.", "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.", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Retrieve the configuration of the named template.\n\n@param name the template name;", "Return the current working directory\n\n@return the current working directory", "Creates an association row representing the given entry and adds it to the association managed by the given\npersister.", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "Adds two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the sum of specified complex numbers.", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException" ]
private void addProgressInterceptor() { httpClient.networkInterceptors().add(new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { final Request request = chain.request(); final Response originalResponse = chain.proceed(request); if (request.tag() instanceof ApiCallback) { final ApiCallback callback = (ApiCallback) request.tag(); return originalResponse.newBuilder() .body(new ProgressResponseBody(originalResponse.body(), callback)).build(); } return originalResponse; } }); }
[ "Add network interceptor to httpClient to track download progress for\nasync requests." ]
[ "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Use this API to update autoscaleaction.", "Checks given permissions are needed to show rationale.\n\n@return returns true if one of the permission is needed to show rationale.", "Construct a new simple attachment key.\n\n@param valueClass the value class\n@param <T> the attachment type\n@return the new instance", "get the bean property type\n\n@param clazz\n@param propertyName\n@param originalType\n@return", "Use this API to update clusterinstance resources.", "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers.", "Use this API to update gslbservice.", "FastJSON does not provide the API so we have to create our own" ]
public static void validateClusterPartitionCounts(final Cluster lhs, final Cluster rhs) { if(lhs.getNumberOfPartitions() != rhs.getNumberOfPartitions()) throw new VoldemortException("Total number of partitions should be equal [ lhs cluster (" + lhs.getNumberOfPartitions() + ") not equal to rhs cluster (" + rhs.getNumberOfPartitions() + ") ]"); }
[ "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs" ]
[ "Sets the specified integer attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Captures System.out and System.err and redirects them\nto Redwood logging.\n@param captureOut True is System.out should be captured\n@param captureErr True if System.err should be captured", "Increment the version info associated with the given node\n\n@param node The node", "Helper method to synchronously invoke a callback\n\n@param call", "Write 'properties' map to given log in given level - with pipe separator between each entry\nWrite exception stack trace to 'logger' in 'error' level, if not empty\n@param logger\n@param level - of logging", "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Converts the given string to a clob object\n\n@param stringName string name to clob\n@param sqlConnection Connection object\n@return Clob object or NULL", "Populates a calendar instance.\n\n@param record MPX record\n@param calendar calendar instance\n@param isBaseCalendar true if this is a base calendar" ]
private JSONValue toJsonStringList(Collection<? extends Object> list) { if (null != list) { JSONArray array = new JSONArray(); for (Object o : list) { array.set(array.size(), new JSONString(o.toString())); } return array; } else { return null; } }
[ "Convert a list of objects to a JSON array with the string representations of that objects.\n@param list the list of objects.\n@return the JSON array with the string representations." ]
[ "Creates a field map for tasks.\n\n@param props props data", "If provided with an AVRO schema, validates it and checks if there are\nbackwards compatible.\n\nTODO should probably place some similar checks for other serializer types\nas well?\n\n@param serializerDef", "Use this API to fetch sslcertkey_crldistribution_binding resources of given name .", "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Publish the changes to main registry", "Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler.", "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1", "Waits the given amount of time in seconds for a standalone server to start.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix." ]
public void stop() { syncLock.lock(); try { if (syncThread == null) { return; } instanceChangeStreamListener.stop(); syncThread.interrupt(); try { syncThread.join(); } catch (final InterruptedException e) { return; } syncThread = null; isRunning = false; } finally { syncLock.unlock(); } }
[ "Stops the background data synchronization thread." ]
[ "Finish initialization of the configuration.", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Use this API to update inat.", "retrieve a collection of type collectionClass matching the Query query\nif lazy = true return a CollectionProxy\n\n@param collectionClass\n@param query\n@param lazy\n@return ManageableCollection\n@throws PersistenceBrokerException", "Creates a new deployment for the URL. The target server will require access to the URL.\n\n@param url the URL representing the content\n\n@return the deployment", "Use this API to update aaaparameter.", "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node.", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Use this API to fetch rewritepolicy_csvserver_binding resources of given name ." ]
public BoxFileUploadSessionPart uploadPart(byte[] data, long offset, int partSize, long totalSizeOfFile) { URL uploadPartURL = this.sessionInfo.getSessionEndpoints().getUploadPartEndpoint(); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), uploadPartURL, HttpMethod.PUT); request.addHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_OCTET_STREAM); MessageDigest digestInstance = null; try { digestInstance = MessageDigest.getInstance(DIGEST_ALGORITHM_SHA1); } catch (NoSuchAlgorithmException ae) { throw new BoxAPIException("Digest algorithm not found", ae); } //Creates the digest using SHA1 algorithm. Then encodes the bytes using Base64. byte[] digestBytes = digestInstance.digest(data); String digest = Base64.encode(digestBytes); request.addHeader(HttpHeaders.DIGEST, DIGEST_HEADER_PREFIX_SHA + digest); //Content-Range: bytes offset-part/totalSize request.addHeader(HttpHeaders.CONTENT_RANGE, "bytes " + offset + "-" + (offset + partSize - 1) + "/" + totalSizeOfFile); //Creates the body request.setBody(new ByteArrayInputStream(data)); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); BoxFileUploadSessionPart part = new BoxFileUploadSessionPart((JsonObject) jsonObject.get("part")); return part; }
[ "Uploads bytes to an open upload session.\n@param data data\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size." ]
[ "commit all envelopes against the current broker", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Stores an new entry in the cache.", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value", "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Use this API to fetch statistics of cmppolicy_stats resource of given name .", "Delete a module from Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException" ]
public boolean contains(String id) { assertNotEmpty(id, "id"); InputStream response = null; try { response = couchDbClient.head(new DatabaseURIHelper(dbUri).documentUri(id)); } catch (NoDocumentException e) { return false; } finally { close(response); } return true; }
[ "Checks if a document exist in the database.\n\n@param id The document _id field.\n@return true If the document is found, false otherwise." ]
[ "This method extracts resource data from a GanttProject file.\n\n@param ganttProject parent node for resources", "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores", "Handles adding a key. Calls the registered listener and wraps it's method in some GUI adjustments.", "Assign an ID value to this field.", "Use this API to clear gslbldnsentries resources.", "Removes the value from the Collection mapped to by this key, leaving the\nrest of the collection intact.\n\n@param key\nthe key to the Collection to remove the value from\n@param value\nthe value to remove", "Generate the specified output file by merging the specified\nVelocity template with the supplied context.", "Sets an error message that will be displayed in a popup when the EditText has focus along\nwith an icon displayed at the right-hand side.\n\n@param error error message to show", "Does the headset the device is docked into have a dedicated home key\n@return" ]
public void setFrustum(Matrix4f projMatrix) { if (projMatrix != null) { if (mProjMatrix == null) { mProjMatrix = new float[16]; } mProjMatrix = projMatrix.get(mProjMatrix, 0); mScene.setPickVisible(false); if (mCuller != null) { mCuller.set(projMatrix); } else { mCuller = new FrustumIntersection(projMatrix); } } mProjection = projMatrix; }
[ "Set the view frustum to pick against from the given projection matrix.\n\nIf the projection matrix is null, the picker will revert to picking\nobjects that are visible from the viewpoint of the scene's current camera.\nIf a matrix is given, the picker will pick objects that are visible\nfrom the viewpoint of it's owner the given projection matrix.\n\n@param projMatrix 4x4 projection matrix or null\n@see GVRScene#setPickVisible(boolean)" ]
[ "Converts a collection of dates to a JSON array with the long representation of the dates as strings.\n@param dates the list to convert.\n@return JSON array with long values of dates as string", "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)", "Convert a Java date into a Planner date.\n\n20070222\n\n@param value Java Date instance\n@return Planner date", "Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns", "Returns the vertex with given ID framed into given interface.", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "Calculate UserInfo strings.", "Use this API to fetch aaauser_aaagroup_binding resources of given name .", "Get the relative path.\n\n@return the relative path" ]
public static void convert(DMatrixD1 input , ZMatrixD1 output ) { if( input.numCols != output.numCols || input.numRows != output.numRows ) { throw new IllegalArgumentException("The matrices are not all the same dimension."); } Arrays.fill(output.data, 0, output.getDataLength(), 0); final int length = output.getDataLength(); for( int i = 0; i < length; i += 2 ) { output.data[i] = input.data[i/2]; } }
[ "Converts the real matrix into a complex matrix.\n\n@param input Real matrix. Not modified.\n@param output Complex matrix. Modified." ]
[ "Reads a combined date and time value expressed in tenths of a minute.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "get the property source method corresponding to given destination\nproperty\n\n@param sourceObject\n@param destinationObject\n@param destinationProperty\n@return", "Sets the appropriate headers to response of this request.\n\n@param response The HttpServletResponse response object.", "Reads data from the SP file.\n\n@return Project File instance", "Reads Phoenix resource assignments.\n\n@param mpxjResource MPXJ resource\n@param res Phoenix resource", "Writes the given configuration to the given file.", "Setter for property value. Doesn't affect entity version and doesn't\ninvalidate any of the cached entity iterables.\n\n@param localId entity local id.\n@param value property value.\n@param oldValue property old value\n@param propertyId property id", "Retrieve the default number of minutes per year.\n\n@return minutes per year", "Determine which unit to use when creating grid labels.\n\n@param mapCrs the crs of the map, used if the {@link #labelProjection} is not defined." ]
public static Duration add(Duration a, Duration b, ProjectProperties defaults) { if (a == null && b == null) { return null; } if (a == null) { return b; } if (b == null) { return a; } TimeUnit unit = a.getUnits(); if (b.getUnits() != unit) { b = b.convertUnits(unit, defaults); } return Duration.getInstance(a.getDuration() + b.getDuration(), unit); }
[ "If a and b are not null, returns a new duration of a + b.\nIf a is null and b is not null, returns b.\nIf a is not null and b is null, returns a.\nIf a and b are null, returns null.\nIf needed, b is converted to a's time unit using the project properties.\n\n@param a first duration\n@param b second duration\n@param defaults project properties containing default values\n@return a + b" ]
[ "set custom response for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Parses an RgbaColor from an rgba value.\n\n@return the parsed color", "Reads the configuration of a field facet.\n@param pathPrefix The XML Path that leads to the field facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Used to load a classifier stored as a resource inside a jar file. THIS\nFUNCTION WILL ONLY WORK IF THE CODE WAS LOADED FROM A JAR FILE WHICH HAS A\nSERIALIZED CLASSIFIER STORED INSIDE IT.\n\n@param resourceName\nName of clasifier resource inside the jar file.\n@return A CRFClassifier stored in the jar file", "Determines the offset code of a forward contract from a schedule. Rounds the average period length to full months.\n\n@param schedule The schedule.\n@return The offset code as String", "Sets a configuration option to the specified value.", "The test that checks if clipping is needed.\n\n@param f\nfeature to test\n@param scale\nscale\n@return true if clipping is needed", "Reads data from the SP file.\n\n@return Project File instance", "Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin" ]
public double[] getTenors(double moneyness, double maturity) { int maturityInMonths = (int) Math.round(maturity * 12); int[] tenorsInMonths = getTenors(convertMoneyness(moneyness), maturityInMonths); double[] tenors = new double[tenorsInMonths.length]; for(int index = 0; index < tenors.length; index++) { tenors[index] = convertTenor(maturityInMonths, tenorsInMonths[index]); } return tenors; }
[ "Return all valid tenors for a given moneyness and maturity.\nUses the payment times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@param maturity The maturities as year fraction from the reference date.\n@return The tenors as year fraction from reference date." ]
[ "Write a Byte Order Mark at the beginning of the file\n\n@param stream the FileOutputStream to write the BOM to\n@param bigEndian true if UTF 16 Big Endian or false if Low Endian\n@throws IOException if an IOException occurs.\n@since 1.0", "Log original response\n\n@param httpServletResponse\n@param history\n@throws URIException", "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", "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Returns the given text with the first letter in upper case.\n\n<h2>Examples:</h2>\n<pre>\ncapitalize(\"hi\") == \"Hi\"\ncapitalize(\"Hi\") == \"Hi\"\ncapitalize(\"hi there\") == \"hi there\"\ncapitalize(\"\") == \"\"\ncapitalize(null) == null\n</pre>\n@param text the text to capitalize\n@return text with the first letter in upper case", "Use this API to Shutdown shutdown.", "OR operation which takes the previous clause and the next clause and OR's them together.", "Initialize the random generator with a seed." ]
private void processCalendarData(ProjectCalendar calendar, List<ResultSetRow> calendarData) { for (ResultSetRow row : calendarData) { processCalendarData(calendar, row); } }
[ "Process the hours and exceptions for an individual calendar.\n\n@param calendar project calendar\n@param calendarData hours and exception rows for this calendar" ]
[ "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "Use this API to Import sslfipskey resources.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "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>", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "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", "Return the structured backup data\n\n@return Backup of current configuration\n@throws Exception exception", "Convenience routine to return the specified error's\nunderlying SyntaxException, or null if it isn't one." ]
public static String getFilename(String path) throws IllegalArgumentException { if (Pattern.matches(sPatternUrl, path)) return getURLFilename(path); return new File(path).getName(); }
[ "Gets the filename from a path or URL.\n@param path or url.\n@return the file name." ]
[ "Adjusts the day in the provided month, that it fits the specified week day.\nIf there's no match for that provided month, the next possible month is checked.\n\n@param date the date to adjust, with the correct year and month already set.", "Returns the indices that would sort an array.\n\n@param array Array.\n@param ascending Ascending order.\n@return Array of indices.", "Use this API to update vpnclientlessaccesspolicy.", "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", "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name .", "cleanup tx and prepare for reuse", "Gets the default configuration for Freemarker within Windup.", "Creates new metadata template.\n@param api the API connection to be used.\n@param scope the scope of the object.\n@param templateKey a unique identifier for the template.\n@param displayName the display name of the field.\n@param hidden whether this template is hidden in the UI.\n@param fields the ordered set of fields for the template\n@return the metadata template returned from the server.", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date" ]
public ItemRequest<Section> insertInProject(String project) { String path = String.format("/projects/%s/sections/insert", project); return new ItemRequest<Section>(this, Section.class, path, "POST"); }
[ "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object" ]
[ "Used to populate Map with given annotations\n\n@param annotations initial value for annotations", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class.", "This method is used to retrieve the calendar associated\nwith a task. If no calendar is associated with a task, this method\nreturns null.\n\n@param task MSPDI task\n@return calendar instance", "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported", "Returns the duration of the measured tasks in ms", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "Adds a row for the given component at the end of the group.\n\n@param component the component to wrap in the row to be added" ]
public void actionPerformed(java.awt.event.ActionEvent actionEvent) { new Thread() { public void run() { final java.sql.Connection conn = new JDlgDBConnection(containingFrame, false).showAndReturnConnection(); if (conn != null) { javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { JIFrmDatabase frm = new JIFrmDatabase(conn); containingFrame.getContentPane().add(frm); frm.setVisible(true); } }); } } }.start(); }
[ "Called to execute this action.\n@param actionEvent" ]
[ "Bean types of a session bean.", "Deserialize a directory of javascript design documents to a List of DesignDocument objects.\n\n@param directory the directory containing javascript files\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Sets the quaternion of the keyframe.", "Heat Equation Boundary Conditions", "Creates a random symmetric matrix. The entire matrix will be filled in, not just a triangular\nportion.\n\n@param N Number of rows and columns\n@param nz_total Number of nonzero elements in the triangular portion of 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", "This method writes assignment data to a Planner file.", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "Returns the configured fields of the current field configuration.\n\n@return the configured fields of the current field configuration", "The length of the region left to the completion offset that is part of the\nreplace region." ]
public static String resolveSvnMigratedRevision(final Revision revision, final String branch) { if (revision == null) { return null; } final Pattern pattern = Pattern.compile("^git-svn-id: .*" + branch + "@([0-9]+) ", Pattern.MULTILINE); final Matcher matcher = pattern.matcher(revision.getMessage()); if (matcher.find()) { return matcher.group(1); } else { return revision.getRevision(); } }
[ "Helper method to retrieve a canonical revision for git commits migrated from SVN. Migrated commits are\ndetected by the presence of 'git-svn-id' in the commit message.\n\n@param revision the commit/revision to inspect\n@param branch the name of the branch it came from\n@return the original SVN revision if it was a migrated commit from the branch specified, otherwise the git revision" ]
[ "Counts the packages prefixes appearing in this project and if some of them make more than half of the total of existing packages, this prefix\nis returned. Otherwise, returns null.\n\nThis is just a helper, it isn't something really hard-setting the package. It's something to use if the user didn't specify using\n--mavenize.groupId, and the archive or project name is something insane, like few sencences paragraph (a description) or a number or such.", "Method to know if already exists one file with the same name in the same\nfolder\n\n@param scenario_name\n@param path\n@param dest_dir\n@return true when the file does not exist", "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track.", "This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters\nand callback will get updated.\n\n@param reconnectUri the updated connection uri\n@param authKey the updated authentication key\n@param callback the current callback", "Calculate the finish variance.\n\n@return finish variance", "Converts this IPv6 address segment into smaller segments,\ncopying them into the given array starting at the given index.\n\nIf a segment does not fit into the array because the segment index in the array is out of bounds of the array,\nthen it is not copied.\n\n@param segs\n@param index", "Use this API to fetch all the snmpuser resources that are configured on netscaler.", "Gets all rows.\n\n@return the list of all rows", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object." ]
private void saveToXmlVfsBundle() throws CmsException { if (m_lockedBundleFiles.get(null) != null) { // If the file was not locked, no changes were made, i.e., storing is not necessary. for (Locale l : m_locales) { SortedProperties props = m_localizations.get(l); if (null != props) { if (m_xmlBundle.hasLocale(l)) { m_xmlBundle.removeLocale(l); } m_xmlBundle.addLocale(m_cms, l); int i = 0; List<Object> keys = new ArrayList<Object>(props.keySet()); Collections.sort(keys, CmsCaseInsensitiveStringComparator.getInstance()); for (Object key : keys) { if ((null != key) && !key.toString().isEmpty()) { String value = props.getProperty(key.toString()); if (!value.isEmpty()) { m_xmlBundle.addValue(m_cms, "Message", l, i); i++; m_xmlBundle.getValue("Message[" + i + "]/Key", l).setStringValue(m_cms, key.toString()); m_xmlBundle.getValue("Message[" + i + "]/Value", l).setStringValue(m_cms, value); } } } } CmsFile bundleFile = m_lockedBundleFiles.get(null).getFile(); bundleFile.setContents(m_xmlBundle.marshal()); m_cms.writeFile(bundleFile); } } }
[ "Saves messages to a xmlvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails." ]
[ "This method retrieves a byte array of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return byte array containing required data", "Throws an exception if the request can for security reasons not be performed.\nSecurity restrictions can be set via parameters of the index.\n\n@param cms the current context.\n@param query the query.\n@param isSpell flag, indicating if the spellcheck handler is requested.\n@throws CmsSearchException thrown if the query cannot be executed due to security reasons.", "If the HttpRequest is valid and handled it will be sent upstream, if it cannot be invoked\nthe response will be written back immediately.", "Build data model for serialization.", "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with.", "Adds OPT_Z | OPT_ZONE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Returns a list that contains all the entries of the given iterator in the same order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a list with the same entries as the given iterator. Never <code>null</code>.", "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol", "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault" ]
public static Status from(Set<ServiceReference> serviceReferencesBound, Set<ServiceReference> serviceReferencesHandled) { if (serviceReferencesBound == null && serviceReferencesHandled == null) { throw new IllegalArgumentException("Cannot create a status with serviceReferencesBound == null" + "and serviceReferencesHandled == null"); } else if (serviceReferencesBound == null) { throw new IllegalArgumentException("Cannot create a status with serviceReferencesBound == null"); } else if (serviceReferencesHandled == null) { throw new IllegalArgumentException("Cannot create a status with serviceReferencesHandled == null"); } return new Status(serviceReferencesBound, serviceReferencesHandled); }
[ "Creates a status instance from the given serviceReferences.\nThe given list is copied to a new set made immutable.\n\n@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.\n@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.\n@return the new instance of status" ]
[ "The transaction will be executed. While it is running, any semantic state change\nin the given resource will be ignored and the cache will not be cleared.", "Returns the index of the given name.\n\n@param name The name of the index (null or empty string for the default index)\n@return The index def or <code>null</code> if it does not exist", "Returns the configuration value with the specified name.", "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", "Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name .", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread", "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})", "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this", "Print a day.\n\n@param day Day instance\n@return day value" ]
private void updateDb(String dbName, String webapp) { m_mainLayout.removeAllComponents(); m_setupBean.setDatabase(dbName); CmsDbSettingsPanel panel = new CmsDbSettingsPanel(m_setupBean); m_panel[0] = panel; panel.initFromSetupBean(webapp); m_mainLayout.addComponent(panel); }
[ "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name" ]
[ "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation", "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.", "Create and get actor system.\n\n@return the actor system", "Finish initialization of state object.\n\n@param geoService geo service\n@param converterService converter service\n@throws GeomajasException oops", "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", "Retrieves the members of the given type.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the Members attribute\n@param paramValue The feature to be added to the Members attribute\n@throws XDocletException If an error occurs", "Select a List of values from a Matcher using a Collection\nto identify the indices to be selected.\n\n@param self a Matcher\n@param indices a Collection of indices\n@return a String of the values at the given indices\n@since 1.6.0", "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\"", "Calculates the vega of a digital option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The vega of the digital option" ]
public static SQLException create(String message, Throwable cause) { SQLException sqlException; if (cause instanceof SQLException) { // if the cause is another SQLException, pass alot of the SQL state sqlException = new SQLException(message, ((SQLException) cause).getSQLState()); } else { sqlException = new SQLException(message); } sqlException.initCause(cause); return sqlException; }
[ "Convenience method to allow a cause. Grrrr." ]
[ "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Loads the configuration from file \"OBJ.properties\". If the system\nproperty \"OJB.properties\" is set, then the configuration in that file is\nloaded. Otherwise, the file \"OJB.properties\" is tried. If that is also\nunsuccessful, then the configuration is filled with default values.", "Sets an attribute in the main section of the manifest to a map.\nThe map entries will be joined with a single whitespace character, and each key-value pair will be joined with a '='.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Returns if a MongoDB document is a todo item.", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Print work units.\n\n@param value TimeUnit instance\n@return work units value", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "Create the grid feature type.\n\n@param mapContext the map context containing the information about the map the grid will be\nadded to.\n@param geomClass the geometry type", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>" ]
public static base_response Import(nitro_service client, application resource) throws Exception { application Importresource = new application(); Importresource.apptemplatefilename = resource.apptemplatefilename; Importresource.appname = resource.appname; Importresource.deploymentfilename = resource.deploymentfilename; return Importresource.perform_operation(client,"Import"); }
[ "Use this API to Import application." ]
[ "Removes file from your assembly.\n\n@param name field name of the file to remove.", "Places the real component of the input matrix into the output matrix.\n\n@param input Complex matrix. Not modified.\n@param output real matrix. Modified.", "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "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", "Creates SLD rules for each old style.", "Use this API to fetch all the sslocspresponder resources that are configured on netscaler.", "Creates a new Product in Grapes database\n\n@param dbProduct DbProduct" ]
public static ModelControllerClient createAndAdd(final ManagementChannelHandler handler) { final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(handler); handler.addHandlerFactory(client); return client; }
[ "Create and add model controller handler to an existing management channel handler.\n\n@param handler the channel handler\n@return the created client" ]
[ "Determines the component type for a given array type.\n\n@param type the given array type\n@return the component type of a given array type", "Assembles an avro format string that contains multiple fat client configs\nfrom map of store to properties\n\n@param mapStoreToProps A map of store names to their properties\n@return Avro string that contains multiple store configs", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Use this API to unset the properties of nsacl6 resource.\nProperties that need to be unset are specified in args array.", "Returns a list of Elements form the DOM tree, matching the tag element.", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script.", "Verifies application name. Avoids characters that Zookeeper does not like in nodes & Hadoop\ndoes not like in HDFS paths.\n\n@param name Application name\n@throws IllegalArgumentException If name contains illegal characters", "Check whether we have diverged from what we would predict from the last update that was sent to a particular\ntrack position listener.\n\n@param lastUpdate the last update that was sent to the listener\n@param currentUpdate the latest update available for the same player\n\n@return {@code true }if the listener will have diverged by more than our permitted amount of slack, and so\nshould be updated" ]
public void stop() { synchronized (mAnimQueue) { if (mIsRunning && (mAnimQueue.size() > 0)) { mIsRunning = false; GVRAnimator animator = mAnimQueue.get(0); mAnimQueue.clear(); animator.stop(); } } }
[ "Stops the currently running animation, if any.\n@see GVRAvatar#start(String)\n@see GVRAnimationEngine#stop(GVRAnimation)" ]
[ "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", "The Maven3Builder class is looking for the PATH+JDK environment variable due to legacy code.\nIn The pipeline flow we need to convert the JAVA_HOME to PATH+JDK in order to reuse the code.", "Read properties from the raw header data.\n\n@param stream input stream", "Retrieves the notes text for this resource.\n\n@return notes text", "Finds the next valid line of words in the stream and extracts them.\n\n@return List of valid words on the line. null if the end of the file has been reached.\n@throws java.io.IOException", "Clear out our DAO caches.", "Creates, writes and loads a new keystore and CA root certificate.", "Checks if the provided organization is valid and could be stored into the database\n\n@param organization Organization\n@throws WebApplicationException if the data is corrupted", "Destroys all resource requests in requestQueue.\n\n@param requestQueue The queue for which all resource requests are to be\ndestroyed." ]
public String userAgent() { return String.format("Azure-SDK-For-Java/%s OS:%s MacAddressHash:%s Java:%s", getClass().getPackage().getImplementationVersion(), OS, MAC_ADDRESS_HASH, JAVA_VERSION); }
[ "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string." ]
[ "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "Take a string and make it an iterable ContentStream", "This method attempts to locate a suitable directory by checking a number of different configuration sources.\n\n1 - serverConfigUserDirPropertyName - This value is used to check it a matching system property has been set. 2 -\nsuppliedConfigDir - If a path was specified on the command line it is expected to be passed in as this parameter. 3 -\nserverConfigDirPropertyName - This is a second system property to check.\n\nAnd finally if none of these match defaultBaseDir specifies the configuration being searched and is appended to the JBoss\nHome value discovered when the utility started.", "Pause component timer for current instance\n@param type - of component", "Use this API to fetch ipset_nsip_binding resources of given name .", "used for encoding url path segment", "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return", "Finish initialization of the configuration.", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set" ]
public void pushDryRun() throws Exception { if (releaseAction.isCreateVcsTag()) { if (scmManager.isTagExists(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), releaseAction.getTagUrl())) { throw new Exception(String.format("Tag with name '%s' already exists", releaseAction.getTagUrl())); } } String testTagName = releaseAction.getTagUrl() + "_test"; try { scmManager.testPush(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), testTagName); } catch (Exception e) { throw new Exception(String.format("Failed while attempting push dry-run: %s", e.getMessage()), e); } finally { if (scmManager.isTagExists(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), testTagName)) { scmManager.deleteLocalTag(testTagName); } } }
[ "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist" ]
[ "Remove any protocol-level headers from the clients request that\ndo not apply to the new request we are sending to the remote server.\n\n@param request\n@param destination", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "Evaluates the animation with the given index at the specified time.\n@param animIndex 0-based index of {@link GVRAnimator} to start\n@param timeInSec time to evaluate the animation at\n@see GVRAvatar#stop()\n@see #start(String)", "Populate the expanded exceptions list based on the main exceptions list.\nWhere we find recurring exception definitions, we generate individual\nexceptions for each recurrence to ensure that we account for them correctly.", "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on", "Use this API to fetch statistics of tunnelip_stats resource of given name .", "Verify that cluster is congruent to store def wrt zones.", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Makes an ancestor filter." ]
public void updateInfo(BoxTermsOfServiceUserStatus.Info info) { URL url = TERMS_OF_SERVICE_USER_STATUSES_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "PUT"); request.setBody(info.getPendingChanges()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); info.update(responseJSON); }
[ "Updates the information about the user status for this terms of service with any info fields that have\nbeen modified locally.\n@param info the updated info." ]
[ "Clones a BufferedImage.\n@param image the image to clone\n@return the cloned image", "Provides a reverse view on the given list which is especially useful to traverse a list backwards in a for-each\nloop. The list itself is not modified by calling this method.\n\n@param list\nthe list whose elements should be traversed in reverse. May not be <code>null</code>.\n@return a list with the same elements as the given list, in reverse", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "Sets the texture this render target will render to.\nIf no texture is provided, the render target will\nnot render anything.\n@param texture GVRRenderTexture to render to.", "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type", "Get the Avro Schema of the input path, assuming the path contains just one\nschema version in all files under that path.", "Abort the daemon\n\n@param error the error causing the abortion", "Use this API to update nsdiameter.", "Handles the response of the Request node request.\n@param incomingMessage the response message to process." ]
public static base_responses add(nitro_service client, tmtrafficaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmtrafficaction addresources[] = new tmtrafficaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new tmtrafficaction(); addresources[i].name = resources[i].name; addresources[i].apptimeout = resources[i].apptimeout; addresources[i].sso = resources[i].sso; addresources[i].formssoaction = resources[i].formssoaction; addresources[i].persistentcookie = resources[i].persistentcookie; addresources[i].initiatelogout = resources[i].initiatelogout; addresources[i].kcdaccount = resources[i].kcdaccount; addresources[i].samlssoprofile = resources[i].samlssoprofile; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add tmtrafficaction resources." ]
[ "Returns the configured request parameter for the current query string, or the default parameter if the core is not specified.\n@return The configured request parameter for the current query string, or the default parameter if the core is not specified.", "Updates the position and direction of this light from the transform of\nscene object that owns it.", "Parse work units.\n\n@param value work units value\n@return TimeUnit instance", "returns a dynamic Proxy that implements all interfaces of the\nclass described by this ClassDescriptor.\n\n@return Class the dynamically created proxy class", "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", "Calls the stored procedure stored procedure throws an\nerror if it doesn't exist.\n@param broker\n@param cld\n@param sequenceName\n@return\n@throws LookupException\n@throws SQLException", "Adds the given entity to the inverse associations it manages.", "Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.\n\n@param deploymentRootResource\n@param runtimeNames\n@return the deployment names with the specified runtime names at the specified deploymentRootAddress.", "Use this API to fetch appfwjsoncontenttype resource of given name ." ]
private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs) { for (UDFAssignmentType udf : udfs) { FieldType fieldType = m_fieldTypeMap.get(Integer.valueOf(udf.getTypeObjectId())); if (fieldType != null) { mpxj.set(fieldType, getUdfValue(udf)); } } }
[ "Process UDFs for a specific object.\n\n@param mpxj field container\n@param udfs UDF values" ]
[ "Increment the version info associated with the given node\n\n@param node The node", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing.", "Sets currency symbol.\n\n@param symbol currency symbol", "Note that the index can only be built once.\n\n@param beans The set of beans the index should be built from, only instances of {@link CommonBean} and implementations of {@link PassivationCapable} are\nincluded\n@throws IllegalStateException If the index is built already", "Returns the index of the eigenvalue which has the smallest magnitude.\n\n@return index of the smallest magnitude eigen value.", "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "Release the broker instance.", "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored", "This method returns the installed identity with the requested name and version.\nIf the product name is null, the default identity will be returned.\n\nIf the product name was recognized and the requested version was not null,\nthe version comparison will take place. If the version of the currently installed product\ndoesn't match the requested one, the exception will be thrown.\nIf the requested version is null, the currently installed identity with the requested name\nwill be returned.\n\nIf the product name was not recognized among the registered ones, a new installed identity\nwith the requested name will be created and returned. (This is because the patching system\nis not aware of how many and what the patching streams there are expected).\n\n@param productName\n@param productVersion\n@return\n@throws PatchingException" ]
protected AbsoluteURI getGeneratedLocation(PersistedTrace trace) { AbsoluteURI path = trace.getPath(); String fileName = traceFileNameProvider.getJavaFromTrace(path.getURI().toString()); return new AbsoluteURI(fileName); }
[ "Compute the location of the generated file from the given trace file." ]
[ "Checks length and compare order of field names with declared PK fields in metadata.", "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name .", "Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers", "Parse a parameterized object from an InputStream.\n\n@param is The InputStream, most likely from your networking library.\n@param jsonObjectType The ParameterizedType describing the object. Ex: LoganSquare.parse(is, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return", "Remove a path\n\n@param pathId ID of path", "Does the bitwise conjunction with this address. Useful when subnetting.\n\n@param mask\n@param retainPrefix whether to drop the prefix\n@return\n@throws IncompatibleAddressException", "Destroys an instance of the bean\n\n@param instance The instance", "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception" ]
void sendError(HttpResponseStatus status, Throwable ex) { String msg; if (ex instanceof InvocationTargetException) { msg = String.format("Exception Encountered while processing request : %s", ex.getCause().getMessage()); } else { msg = String.format("Exception Encountered while processing request: %s", ex.getMessage()); } // Send the status and message, followed by closing of the connection. responder.sendString(status, msg, new DefaultHttpHeaders().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE)); if (bodyConsumer != null) { bodyConsumerError(ex); } }
[ "Sends the error to responder." ]
[ "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Get the VCS revision from the Jenkins build environment. The search will one of \"SVN_REVISION\", \"GIT_COMMIT\",\n\"P4_CHANGELIST\" in the environment.\n\n@param env Th Jenkins build environment.\n@return The vcs revision for supported VCS", "find all accessibility object and set active true for enable talk back.", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally.", "Return the number of rows affected.", "Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message", "return a prepared DELETE Statement fitting for the given ClassDescriptor", "If needed declares and sets up internal data structures.\n\n@param A Matrix being decomposed." ]
@SuppressWarnings("unused") public boolean isValid() { Phonenumber.PhoneNumber phoneNumber = getPhoneNumber(); return phoneNumber != null && mPhoneUtil.isValidNumber(phoneNumber); }
[ "Check if number is valid\n\n@return boolean" ]
[ "Helper method to create a Dao object without having to define a class. Dao classes are supposed to be convenient\nbut if you have a lot of classes, they can seem to be a pain.\n\n<p>\n<b>NOTE:</b> You should use {@link DaoManager#createDao(ConnectionSource, DatabaseTableConfig)} instead of this\nmethod so you won't have to create the DAO multiple times.\n</p>", "Fancy print without a space added to positive numbers", "Unlinks a set of dependencies from this task.\n\n@param task The task to remove dependencies from.\n@return Request object", "Determines whether the given type is an array type.\n\n@param type the given type\n@return true if the given type is a subclass of java.lang.Class or implements GenericArrayType", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "Checks if the dependency server is available\n\n@return true if the server is reachable, false otherwise", "One of the two main methods in this class. Creates a RendererViewHolder instance with a\nRenderer inside ready to be used. The RendererBuilder to create a RendererViewHolder using the\ninformation given as parameter.\n\n@param viewGroup used to create the ViewHolder.\n@param viewType associated to the renderer.\n@return ViewHolder extension with the Renderer it has to use inside.", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Adds the given entity to the inverse associations it manages." ]
private void solveInternalL() { // This takes advantage of the diagonal elements always being real numbers // solve L*y=b storing y in x TriangularSolver_ZDRM.solveL_diagReal(t, vv, n); // solve L^T*x=y TriangularSolver_ZDRM.solveConjTranL_diagReal(t, vv, n); }
[ "Used internally to find the solution to a single column vector." ]
[ "Associate the specified value with the specified key in this map.\nIf the map previously contained a mapping for this key, the old\nvalue is replaced and returned.\n\n@param key the key with which the value is to be associated\n@param value the value to be associated with this key\n@return the value previously mapped to the key, or null", "A connection to the database. Should be short-lived. No transaction active by default.\n\n@return a new open connection.", "Appends formatted text to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "Checks that index is valid an throw an exception if not.\n\n@param type the type\n@param index the index to check", "Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException", "Use this API to fetch sslfipskey resource of given name .", "set the insetsFrameLayout to display the content in fullscreen\nunder the statusBar and navigationBar\n\n@param fullscreen", "2-D Complex Gabor function.\n\n@param x X axis coordinate.\n@param y Y axis coordinate.\n@param wavelength Wavelength.\n@param orientation Orientation.\n@param phaseOffset Phase offset.\n@param gaussVariance Gaussian variance.\n@param aspectRatio Aspect ratio.\n@return Gabor response." ]
@Override public EthiopicDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "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}" ]
[ "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Verifies if the new value is different from the field's old value. It's\nuseful, for example, in NoSQL databases that replicates data between\nservers. This verification prevents to mark a field as modified and to be\nreplicated needlessly.\n\n@param field\nthe field that we are checking before to be modified\n@param value\nthe new value\n@return true if the new and the old values are different and the value\nwas changed.", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException", "Builder method for specifying the name of an app.\n@param name The name to give an app.\n@return A copy of the {@link App}", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "Returns iterable containing assignments for this single legal hold policy.\nParameters can be used to filter retrieved assignments.\n@param type filter assignments of this type only.\nCan be \"file_version\", \"file\", \"folder\", \"user\" or null if no type filter is necessary.\n@param id filter assignments to this ID only. Can be null if no id filter is necessary.\n@param limit the limit of entries per page. Default limit is 100.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy.", "Use this API to add responderpolicy." ]
private void copyResources(File outputDirectory) throws IOException { copyClasspathResource(outputDirectory, "reportng.css", "reportng.css"); copyClasspathResource(outputDirectory, "reportng.js", "reportng.js"); // If there is a custom stylesheet, copy that. File customStylesheet = META.getStylesheetPath(); if (customStylesheet != null) { if (customStylesheet.exists()) { copyFile(outputDirectory, customStylesheet, CUSTOM_STYLE_FILE); } else { // If not found, try to read the file as a resource on the classpath // useful when reportng is called by a jarred up library InputStream stream = ClassLoader.getSystemClassLoader().getResourceAsStream(customStylesheet.getPath()); if (stream != null) { copyStream(outputDirectory, stream, CUSTOM_STYLE_FILE); } } } }
[ "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written." ]
[ "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance", "Resizes an image to the specified width, changing width in the same proportion\n@param originalImage Image in memory\n@param widthOut The width to resize\n@return New Image in memory", "Factory method to create EnumStringConverter\n\n@param <E>\nenum type inferred from enumType parameter\n@param enumType\nparticular enum class\n@return instance of EnumConverter", "Merge a subtree.\n\n@param targetRegistry the target registry\n@param subTree the subtree", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Resolve the server registry.\n\n@param mgmtVersion the mgmt version\n@param subsystems the subsystems\n@return the transformer registry", "Add a creatable \"post-run\" dependent for this task item.\n\n@param creatable the creatable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve created \"post-run\" dependent", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause" ]
public List<TimephasedCost> getTimephasedBaselineCost(int index) { return m_timephasedBaselineCost[index] == null ? null : m_timephasedBaselineCost[index].getData(); }
[ "Retrieve timephased baseline cost. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present" ]
[ "Checks the id value.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "This method is called to format a rate.\n\n@param value rate value\n@return formatted rate", "Add key value pair to extra info\n\n@param key Key of new item\n@param value New value to add", "returns a sorted array of properties", "Print a class's relations", "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key", "Reconnect to the HC.\n\n@return whether the server is still in sync\n@throws IOException", "Creates an Executor that is based on daemon threads.\nThis allows the program to quit without explicitly\ncalling shutdown on the pool\n\n@return the newly created single-threaded Executor", "Binds the Identities Primary key values to the statement." ]
public int color(Context ctx) { if (mColorInt == 0 && mColorRes != -1) { mColorInt = ContextCompat.getColor(ctx, mColorRes); } return mColorInt; }
[ "a small helper to get the color from the colorHolder\n\n@param ctx\n@return" ]
[ "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Entry point with no system exit", "Determines the field name based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting field name", "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "Returns true if templates are to be instantiated synchronously and false if\nasynchronously.", "Given a String the method uses Regex to check if the String only contains punctuation characters\n\n@param s a String to check using regex\n@return true if the String is valid", "Cleans up the given group and adds it to the list of groups if still valid\n@param group\n@param groups", "Convert an Integer value into a String.\n\n@param value Integer value\n@return String value" ]
public static boolean isExclusivelyKnownArchive(GraphRewrite event, String filePath) { String extension = StringUtils.substringAfterLast(filePath, "."); if (!StringUtils.equalsIgnoreCase(extension, "jar")) return false; ZipFile archive; try { archive = new ZipFile(filePath); } catch (IOException e) { return false; } WindupJavaConfigurationService javaConfigurationService = new WindupJavaConfigurationService(event.getGraphContext()); WindupJavaConfigurationModel javaConfigurationModel = WindupJavaConfigurationService.getJavaConfigurationModel(event.getGraphContext()); // indicates that the user did specify some packages to scan explicitly (as opposed to scanning everything) boolean customerPackagesSpecified = javaConfigurationModel.getScanJavaPackages().iterator().hasNext(); // this should only be true if: // 1) the package does not contain *any* customer packages. // 2) the package contains "known" vendor packages. boolean exclusivelyKnown = false; String organization = null; Enumeration<?> e = archive.entries(); // go through all entries... ZipEntry entry; while (e.hasMoreElements()) { entry = (ZipEntry) e.nextElement(); String entryName = entry.getName(); if (entry.isDirectory() || !StringUtils.endsWith(entryName, ".class")) continue; String classname = PathUtil.classFilePathToClassname(entryName); // if the package isn't current "known", try to match against known packages for this entry. if (!exclusivelyKnown) { organization = getOrganizationForPackage(event, classname); if (organization != null) { exclusivelyKnown = true; } else { // we couldn't find a package definitively, so ignore the archive exclusivelyKnown = false; break; } } // If the user specified package names and this is in those package names, then scan it anyway if (customerPackagesSpecified && javaConfigurationService.shouldScanPackage(classname)) { return false; } } if (exclusivelyKnown) LOG.info("Known Package: " + archive.getName() + "; Organization: " + organization); // Return the evaluated exclusively known value. return exclusivelyKnown; }
[ "Indicates that all of the packages within an archive are \"known\" by the package mapper. Generally\nthis indicates that the archive does not contain customer code." ]
[ "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Modify a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@param isDirectory whether the file is a directory or not\n@return the builder", "read all objects of this iterator. objects will be placed in cache", "Use this API to fetch all the transformpolicy resources that are configured on netscaler.", "Sets the protocol, hostname and port to connect to.\n\n@param protocol the protocol to use\n@param hostname the host name\n@param port the port\n\n@return the builder", "Returns a string representation of map of chunk id to number of chunks\n\n@return String of map of chunk id to number of chunks", "Finds the file at the provided path within the archive.\n\nEg, getChildFile(ArchiveModel, \"/META-INF/MANIFEST.MF\") will return a {@link FileModel} if a file named\n/META-INF/MANIFEST.MF exists within the archive\n\n@return Returns the located {@link FileModel} or null if no file with this path could be located", "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance", "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing" ]
private void writeActivity(Task mpxj) { ActivityType xml = m_factory.createActivityType(); m_project.getActivity().add(xml); Task parentTask = mpxj.getParentTask(); Integer parentObjectID = parentTask == null ? null : parentTask.getUniqueID(); xml.setActualStartDate(mpxj.getActualStart()); xml.setActualFinishDate(mpxj.getActualFinish()); xml.setAtCompletionDuration(getDuration(mpxj.getDuration())); xml.setCalendarObjectId(getCalendarUniqueID(mpxj.getCalendar())); xml.setDurationPercentComplete(getPercentage(mpxj.getPercentageComplete())); xml.setDurationType(DURATION_TYPE_MAP.get(mpxj.getType())); xml.setFinishDate(mpxj.getFinish()); xml.setGUID(DatatypeConverter.printUUID(mpxj.getGUID())); xml.setId(getActivityID(mpxj)); xml.setName(mpxj.getName()); xml.setObjectId(mpxj.getUniqueID()); xml.setPercentComplete(getPercentage(mpxj.getPercentageComplete())); xml.setPercentCompleteType("Duration"); xml.setPrimaryConstraintType(CONSTRAINT_TYPE_MAP.get(mpxj.getConstraintType())); xml.setPrimaryConstraintDate(mpxj.getConstraintDate()); xml.setPlannedDuration(getDuration(mpxj.getDuration())); xml.setPlannedFinishDate(mpxj.getFinish()); xml.setPlannedStartDate(mpxj.getStart()); xml.setProjectObjectId(PROJECT_OBJECT_ID); xml.setRemainingDuration(getDuration(mpxj.getRemainingDuration())); xml.setRemainingEarlyFinishDate(mpxj.getEarlyFinish()); xml.setRemainingEarlyStartDate(mpxj.getResume()); xml.setRemainingLaborCost(NumberHelper.DOUBLE_ZERO); xml.setRemainingLaborUnits(NumberHelper.DOUBLE_ZERO); xml.setRemainingNonLaborCost(NumberHelper.DOUBLE_ZERO); xml.setRemainingNonLaborUnits(NumberHelper.DOUBLE_ZERO); xml.setStartDate(mpxj.getStart()); xml.setStatus(getActivityStatus(mpxj)); xml.setType(extractAndConvertTaskType(mpxj)); xml.setWBSObjectId(parentObjectID); xml.getUDF().addAll(writeUDFType(FieldTypeClass.TASK, mpxj)); writePredecessors(mpxj); }
[ "Writes an activity to a PM XML file.\n\n@param mpxj MPXJ Task instance" ]
[ "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Checks if the specified longitude is correct.\n\n@param name the name of the longitude field\n@param longitude the value of the longitude field\n@return the longitude", "Use this API to fetch all the snmpoption resources that are configured on netscaler.", "Initializes the upper left component. Does not show the mode switch.", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "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", "Find the scheme to use to connect to the service.\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved scheme of 'http' as a fallback.", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x." ]
private static XMLStreamException unexpectedElement(final XMLStreamReader reader) { return SecurityManagerLogger.ROOT_LOGGER.unexpectedElement(reader.getName(), reader.getLocation()); }
[ "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}." ]
[ "Read all child tasks for a given parent.\n\n@param parentTask parent task", "Sets the specified short attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Reads basic summary details from the project properties.\n\n@param file MPX file", "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on", "Use this API to update Interface resources.", "Creates an observer\n\n@param method The observer method abstraction\n@param declaringBean The declaring bean\n@param manager The Bean manager\n@return An observer implementation built from the method abstraction", "Adds a handler for a mouse type event on the map.\n\n@param obj The object that the event should be registered on.\n@param type Type of the event to register against.\n@param h Handler that will be called when the event occurs.", "Returns the type of the current member which is the type in the case of a field, the return type for a getter\nmethod, or the type of the parameter for a setter method.\n\n@return The member type\n@exception XDocletException if an error occurs", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null" ]
private Object getColumnValue(String table, String column, String data, int type, boolean epochDateFormat) throws MPXJException { try { Object value = null; switch (type) { case Types.BIT: { value = DatatypeConverter.parseBoolean(data); break; } case Types.VARCHAR: case Types.LONGVARCHAR: { value = DatatypeConverter.parseString(data); break; } case Types.TIME: { value = DatatypeConverter.parseBasicTime(data); break; } case Types.TIMESTAMP: { if (epochDateFormat) { value = DatatypeConverter.parseEpochTimestamp(data); } else { value = DatatypeConverter.parseBasicTimestamp(data); } break; } case Types.DOUBLE: { value = DatatypeConverter.parseDouble(data); break; } case Types.INTEGER: { value = DatatypeConverter.parseInteger(data); break; } default: { throw new IllegalArgumentException("Unsupported SQL type: " + type); } } return value; } catch (Exception ex) { throw new MPXJException("Failed to parse " + table + "." + column + " (data=" + data + ", type=" + type + ")", ex); } }
[ "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException" ]
[ "This method retrieves a String of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return string containing required data", "Returns whether the division grouping range matches the block of values for its prefix length.\nIn other words, returns true if and only if it has a prefix length and it has just a single prefix.", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "Check if number is valid\n\n@return boolean", "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.", "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "List the greetings in the specified guestbook." ]
private void adjustOptionsColumn( CmsMessageBundleEditorTypes.EditMode oldMode, CmsMessageBundleEditorTypes.EditMode newMode) { if (m_model.isShowOptionsColumn(oldMode) != m_model.isShowOptionsColumn(newMode)) { m_table.removeGeneratedColumn(TableProperty.OPTIONS); if (m_model.isShowOptionsColumn(newMode)) { // Don't know why exactly setting the filter field invisible is necessary here, // it should be already set invisible - but apparently not setting it invisible again // will result in the field being visible. m_table.setFilterFieldVisible(TableProperty.OPTIONS, false); m_table.addGeneratedColumn(TableProperty.OPTIONS, m_optionsColumn); } } }
[ "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted." ]
[ "Sets the position of the currency symbol.\n\n@param posn currency symbol position.", "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection.", "Processes a procedure tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"arguments\" optional=\"true\" description=\"The arguments of the procedure as a comma-separated\nlist of names of procedure attribute tags\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"include-all-fields\" optional=\"true\" description=\"For insert/update: whether all fields of the current\nclass shall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"include-pk-only\" optional=\"true\" description=\"For delete: whether all primary key fields\nshall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the procedure\"\[email protected] name=\"return-field-ref\" optional=\"true\" description=\"Identifies the field that receives the return value\"\[email protected] name=\"type\" optional=\"false\" description=\"The type of the procedure\" values=\"delete,insert,update\"", "Add a property with the given name and the given list of values to this Properties object. Name\nand values are trimmed before the property is added.\n\n@param name the name of the property, must not be <code>null</code>.\n@param values the values of the property, must no be <code>null</code>,\nnone of the values must be <code>null</code>", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id", "Extract phrases from Korean input text\n\n@param tokens Korean tokens (output of tokenize(CharSequence text)).\n@return List of phrase CharSequences.", "Reads basic summary details from the project properties.\n\n@param file MPX file", "Exchange an auth token from the old Authentication API, to an OAuth access token.\n\nCalling this method will delete the auth token used to make the request.\n\n@param authToken\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html\"" ]
public static Boolean compareMultipleClientConfigAvro(String configAvro1, String configAvro2) { Map<String, Properties> mapStoreToProps1 = readMultipleClientConfigAvro(configAvro1); Map<String, Properties> mapStoreToProps2 = readMultipleClientConfigAvro(configAvro2); Set<String> keySet1 = mapStoreToProps1.keySet(); Set<String> keySet2 = mapStoreToProps2.keySet(); if(!keySet1.equals(keySet2)) { return false; } for(String storeName: keySet1) { Properties props1 = mapStoreToProps1.get(storeName); Properties props2 = mapStoreToProps2.get(storeName); if(!props1.equals(props2)) { return false; } } return true; }
[ "Compares two avro strings which contains multiple store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content" ]
[ "Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context", "Add the value to list of values to be used as part of the\nevaluation of this indicator.\n\n@param index position in the list\n@param value evaluation value", "Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern", "Write calendar exceptions.\n\n@param records list of ProjectCalendars\n@throws IOException", "Use this API to reset Interface.", "Get the spin scripting environment\n\n@param language the language name\n@return the environment script as string or null if the language is\nnot in the set of languages supported by spin.", "Reads an argument of type \"astring\" from the request.", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Update a note.\n\n@param note\nThe Note to update\n@throws FlickrException" ]
static String from(Class<?> entryClass) { List<String> tokens = tokenOf(entryClass); return fromTokens(tokens); }
[ "Infer app name from entry class\n\n@param entryClass\nthe entry class\n@return\napp name inferred from the entry class" ]
[ "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", "Creates a descriptor for the bundle in the same folder where the bundle files are located.\n@throws CmsException thrown if creation fails.", "apply the base fields to other views if configured to do so.", "Use this API to Force clustersync.", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "Extract a slice [from, to) of this buffer. This methods creates a copy of the specified region.\n@param from\n@param to\n@return", "Gets the thread dump.\n\n@return the thread dump", "Generate the next combination and return an array containing\nthe appropriate elements.\n@see #nextCombinationAsArray(Object[])\n@see #nextCombinationAsList()\n@return An array containing the elements that make up the next combination.", "Returns iterable with all enterprise assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all enterprise assignments." ]
void reset() { if (!hasStopped) { throw new IllegalStateException("cannot reset a non stopped queue poller"); } hasStopped = false; run = true; lastLoop = null; loop = new Semaphore(0); }
[ "Will make the thread ready to run once again after it has stopped." ]
[ "Attaches the menu drawer to the content view.", "Get a writer implementation to push data into Canvas.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> A writer implementation\n@return A writer implementation class", "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", "Check all abstract methods are declared by the decorated types.\n\n@param type\n@param beanManager\n@param delegateType\n@throws DefinitionException If any of the abstract methods is not declared by the decorated types", "Get the Upper triangular factor.\n\n@return U.", "Writes and reads the XOP attachment using a CXF JAX-RS WebClient.\nNote that WebClient is created with the help of JAXRSClientFactoryBean.\nJAXRSClientFactoryBean can be used when neither of the WebClient factory\nmethods is appropriate. For example, in this case, an \"mtom-enabled\"\nproperty is set on the factory bean first.\n\n\n@throws Exception", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Replace default values will null, allowing them to be ignored.\n\n@param value value to test\n@return filtered value", "Describes the scenario. Must be called before any step invocation.\n@param description the description\n@return this for a fluent interface" ]
private void swapROStores(List<String> swappedStoreNames, boolean useSwappedStoreNames) { try { for(StoreDefinition storeDef: metadataStore.getStoreDefList()) { // Only pick up the RO stores if(storeDef.getType().compareTo(ReadOnlyStorageConfiguration.TYPE_NAME) == 0) { if(useSwappedStoreNames && !swappedStoreNames.contains(storeDef.getName())) { continue; } ReadOnlyStorageEngine engine = (ReadOnlyStorageEngine) storeRepository.getStorageEngine(storeDef.getName()); if(engine == null) { throw new VoldemortException("Could not find storage engine for " + storeDef.getName() + " to swap "); } logger.info("Swapping RO store " + storeDef.getName()); // Time to swap this store - Could have used admin client, // but why incur the overhead? engine.swapFiles(engine.getCurrentDirPath()); // Add to list of stores already swapped if(!useSwappedStoreNames) swappedStoreNames.add(storeDef.getName()); } } } catch(Exception e) { logger.error("Error while swapping RO store"); throw new VoldemortException(e); } }
[ "Goes through all the RO Stores in the plan and swaps it\n\n@param swappedStoreNames Names of stores already swapped\n@param useSwappedStoreNames Swap only the previously swapped stores (\nHappens during error )" ]
[ "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "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", "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation.", "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred", "Returns the class of datatype URI that best characterizes the range of\nthe given property based on its datatype.\n\n@param propertyIdValue\nthe property for which to get a range\n@return the range URI or null if the datatype could not be identified.", "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "Get FieldDescriptor from joined superclass.", "Deletes an email alias from this user's account.\n\n<p>The IDs of the user's email aliases can be found by calling {@link #getEmailAliases}.</p>\n\n@param emailAliasID the ID of the email alias to delete." ]
public Envelope getMaxExtent() { final int minX = 0; final int maxX = 1; final int minY = 2; final int maxY = 3; return new Envelope(this.maxExtent[minX], this.maxExtent[minY], this.maxExtent[maxX], this.maxExtent[maxY]); }
[ "Get the max extent as a envelop object." ]
[ "Get a bean value from the context.\n\n@param name bean name\n@return bean value or null", "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "Scales the weights of this crfclassifier by the specified weight\n\n@param scale", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "A convenience method for creating an immutable list\n\n@param self a List\n@return an immutable List\n@see java.util.Collections#unmodifiableList(java.util.List)\n@since 1.0", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception", "convert selector used in an upsert statement into a document" ]
public String getHostAddress() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).getHostAddress(); } return ((InetAddress)addr).getHostAddress(); }
[ "Return the IP address as text such as \"192.168.1.15\"." ]
[ "Clear tmpData in subtree rooted in this node.", "Export modules and check them in. Assumes the log stream already open.\n@return exit code of the commit-script.", "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria", "Adds the given property and value to the constructed reference.\n\n@param propertyIdValue\nthe property to add\n@param value\nthe value to add\n@return builder object to continue construction", "Unloads the sound file for this source, if any.", "Handles incoming Application Update Request.\n@param incomingMessage the request message to process.", "Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Processes one item document. This is often the main workhorse that\ngathers the data you are interested in. You can modify this code as you\nwish.", "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query" ]
public synchronized void pauseDeployment(final String deployment, ServerActivityCallback listener) { final List<ControlPoint> eps = new ArrayList<ControlPoint>(); for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { if(!ep.isPaused()) { eps.add(ep); } } } CountingRequestCountCallback realListener = new CountingRequestCountCallback(eps.size(), listener); for (ControlPoint ep : eps) { ep.pause(realListener); } }
[ "Pauses a given deployment\n\n@param deployment The deployment to pause\n@param listener The listener that will be notified when the pause is complete" ]
[ "Returns the complete project record for a single project.\n\n@param project The project to get.\n@return Request object", "Writes the results of the processing to a CSV file.", "Examines the error data returned from Facebook and throws the most applicable exception.\n@param errorDetails a Map containing a \"type\" and a \"message\" corresponding to the Graph API's error response structure.", "Formats event output by key, usually equal to the method name.\n\n@param key the event key\n@param defaultPattern the default pattern to return if a custom pattern\nis not found\n@param args the args used to format output\n@return A formatted event output", "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.", "Writes the JavaScript code describing the tags as Tag classes to given writer.", "Set all unknown fields\n@param unknownFields the new unknown fields", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "splits a string into a list of strings, ignoring the empty string" ]
public static void checkRequired(OptionSet options, String opt) throws VoldemortException { List<String> opts = Lists.newArrayList(); opts.add(opt); checkRequired(options, opts); }
[ "Checks if the required option exists.\n\n@param options OptionSet to checked\n@param opt Required option to check\n@throws VoldemortException" ]
[ "Returns an integer array that contains the current values for all the\ntexture parameters.\n\n@return an integer array that contains the current values for all the\ntexture parameters.", "Adds the List of Lists of CRFDatums to the data and labels arrays, treating\neach datum as if it were its own document. Adds context labels in addition\nto the target label for each datum, meaning that for a particular document,\nthe number of labels will be windowSize-1 greater than the number of\ndatums.\n\n@param processedData\na List of Lists of CRFDatums", "Gets an array of of all registered ConstantMetaClassListener instances.", "Prints some basic documentation about this program.", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "Finds the first mesh in the given model.\n@param model root of a model loaded by the asset loader.\n@return GVRMesh found or null if model does not contain meshes\n@see #loadMesh(GVRAndroidResource.MeshCallback, GVRAndroidResource, int)", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Create a transformation which takes the alignment settings into account.", "Creates a general purpose solver. Use this if you are not sure what you need.\n\n@param numRows The number of rows that the decomposition is optimized for.\n@param numCols The number of columns that the decomposition is optimized for." ]
private static void parseStencil(JSONObject modelJSON, Shape current) throws JSONException { // get stencil type if (modelJSON.has("stencil")) { JSONObject stencil = modelJSON.getJSONObject("stencil"); // TODO other attributes of stencil String stencilString = ""; if (stencil.has("id")) { stencilString = stencil.getString("id"); } current.setStencil(new StencilType(stencilString)); } }
[ "parse the stencil out of a JSONObject and set it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid.", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Find out the scrollable child view from a ViewGroup.\n\n@param viewGroup", "Updates the font table by adding new fonts used at the current page.", "Use this API to add nspbr6 resources.", "Returns the compact records for all attachments on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "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.", "Add assignments to the tree.\n\n@param parentNode parent tree node\n@param file assignments container" ]
protected <T extends Listener> Collection<T> copyList(Class<T> listenerClass, Stream<Object> listeners, int sizeHint) { if (sizeHint == 0) { return Collections.emptyList(); } return listeners .map(listenerClass::cast) .collect(Collectors.toCollection(() -> new ArrayList<>(sizeHint))); }
[ "Creates a collection from the given stream, casting each object to the\nprovided listener class. The returned collection must not necessarily be\nmutable.\n\n@param <T> Type of the listeners in the given list.\n@param listenerClass The class of the objects in the provided list.\n@param listeners The stream to obtain the listeners for the resulting\ncollection from.\n@param sizeHint Expected size of the input stream.\n@return A typed copy of the list." ]
[ "Adds OPT_Z | OPT_ZONE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored in the XML, or <code>null</code> if the value could not be read.", "Color waveforms are represented by a series of sixteen bit integers into which color and height information are\npacked. This function returns the integer corresponding to a particular half-frame in the waveform.\n\n@param waveBytes the raw data making up the waveform\n@param segment the index of hte half-frame of interest\n\n@return the sixteen-bit number encoding the height and RGB values of that segment", "An extension point so we can control how the query gets executed.\nThis exists for testing purposes, not because we believe it will\nactually be used for real.", "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer\n@return new Date instance", "Create a forward curve from given times and discount factors.\n\nThe forward curve will have times.length-1 fixing times from times[0] to times[times.length-2]\n<code>\nforward[timeIndex] = (givenDiscountFactors[timeIndex]/givenDiscountFactors[timeIndex+1]-1.0) / (times[timeIndex+1] - times[timeIndex]);\n</code>\nNote: If time[0] &gt; 0, then the discount factor 1.0 will inserted at time 0.0\n\n@param name The name of this curve.\n@param times A vector of given time points.\n@param givenDiscountFactors A vector of given discount factors (corresponding to the given time points).\n@param paymentOffset The maturity of the underlying index modeled by this curve.\n@return A new ForwardCurve object.", "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)", "Print a booking type.\n\n@param value BookingType instance\n@return booking type value" ]
public static long getMaxId(PersistenceBroker brokerForClass, Class topLevel, FieldDescriptor original) throws PersistenceBrokerException { long max = 0; long tmp; ClassDescriptor cld = brokerForClass.getClassDescriptor(topLevel); // if class is not an interface / not abstract we have to search its directly mapped table if (!cld.isInterface() && !cld.isAbstract()) { tmp = getMaxIdForClass(brokerForClass, cld, original); if (tmp > max) { max = tmp; } } // if class is an extent we have to search through its subclasses if (cld.isExtent()) { Vector extentClasses = cld.getExtentClasses(); for (int i = 0; i < extentClasses.size(); i++) { Class extentClass = (Class) extentClasses.get(i); if (cld.getClassOfObject().equals(extentClass)) { throw new PersistenceBrokerException("Circular extent in " + extentClass + ", please check the repository"); } else { // fix by Mark Rowell // Call recursive tmp = getMaxId(brokerForClass, extentClass, original); } if (tmp > max) { max = tmp; } } } return max; }
[ "Search down all extent classes and return max of all found\nPK values." ]
[ "Use this API to update filterhtmlinjectionparameter.", "Gets information for a Box Storage Policy with optional fields.\n\n@param fields the fields to retrieve.\n@return info about this item containing only the specified fields, including storage policy.", "Take four bytes from the specified position in the specified\nblock and convert them into a 32-bit int, using the big-endian\nconvention.\n@param bytes The data to read from.\n@param offset The position to start reading the 4-byte int from.\n@return The 32-bit integer represented by the four bytes.", "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", "A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used\nbootstrap CL instead.\n\n@return the base CL to use.", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Print a work contour.\n\n@param value WorkContour instance\n@return work contour value", "Use this API to fetch filtered set of appfwlearningsettings resources.\nset the filter parameter values in filtervalue object." ]
@Deprecated public InputStream getOriginalAsStream() throws IOException, FlickrException { if (originalFormat != null) { return getOriginalImageAsStream("_o." + originalFormat); } return getOriginalImageAsStream(DEFAULT_ORIGINAL_IMAGE_SUFFIX); }
[ "Get an InputStream for the original image. Callers must close the stream upon completion.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@return The InputStream\n@throws IOException" ]
[ "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Checks if the provided duration information is valid.\n@return <code>null</code> if the information is valid, the key of the suitable error message otherwise.", "Remove the set of partitions from the node provided\n\n@param node The node from which we're removing the partitions\n@param donatedPartitions The list of partitions to remove\n@return The new node without the partitions", "Create a classname from a given path\n\n@param path\n@return", "Use this API to fetch the statistics of all gslbservice_stats resources that are configured on netscaler.", "Returns the JSON String representation of the payload\naccording to Apple APNS specification\n\n@return the String representation as expected by Apple", "Sanity-check a new non-beat update, make sure we are still interpolating a sensible position, and correct\nas needed.\n\n@param lastTrackUpdate the most recent digested update received from a player\n@param newDeviceUpdate a new status update from the player\n@param beatGrid the beat grid for the track that is playing, in case we have jumped\n\n@return the playback position we believe that player has reached at that point in time", "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", "Check if values in the column \"property\" are written to the bundle files.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle files." ]
private boolean findBinding(Injector injector, Class<?> type) { boolean found = false; for (Key<?> key : injector.getBindings().keySet()) { if (key.getTypeLiteral().getRawType().equals(type)) { found = true; break; } } if (!found && injector.getParent() != null) { return findBinding(injector.getParent(), type); } return found; }
[ "Finds binding for a type in the given injector and, if not found,\nrecurses to its parent\n\n@param injector\nthe current Injector\n@param type\nthe Class representing the type\n@return A boolean flag, <code>true</code> if binding found" ]
[ "This method is called to alert project listeners to the fact that\na resource assignment has been written to a project file.\n\n@param resourceAssignment resourceAssignment instance", "I pulled this out of internal store so that when doing multiple table\ninheritance, i can recurse this function.\n\n@param obj\n@param cld\n@param oid BRJ: what is it good for ???\n@param insert\n@param ignoreReferences", "Decide which donor node to steal from. This is a policy implementation.\nI.e., in the future, additional policies could be considered. At that\ntime, this method should be overridden in a sub-class, or a policy object\nought to implement this algorithm.\n\nCurrent policy:\n\n1) If possible, a stealer node that is the zone n-ary in the finalCluster\nsteals from the zone n-ary in the currentCluster in the same zone.\n\n2) If there are no partition-stores to steal in the same zone (i.e., this\nis the \"zone expansion\" use case), then a differnt policy must be used.\nThe stealer node that is the zone n-ary in the finalCluster determines\nwhich pre-existing zone in the currentCluster hosts the primary partition\nid for the partition-store. The stealer then steals the zone n-ary from\nthat pre-existing zone.\n\nThis policy avoids unnecessary cross-zone moves and distributes the load\nof cross-zone moves approximately-uniformly across pre-existing zones.\n\nOther policies to consider:\n\n- For zone expansion, steal all partition-stores from one specific\npre-existing zone.\n\n- Replace heuristic to approximately uniformly distribute load among\nexisting zones to something more concrete (i.e. track steals from each\npre-existing zone and forcibly balance them).\n\n- Select a single donor for all replicas in a new zone. This will require\ndonor-based rebalancing to be run (at least for this specific part of the\nplan). This would reduce the number of donor-side scans of data. (But\nstill send replication factor copies over the WAN.) This would require\napparatus in the RebalanceController to work.\n\n- Set up some sort of chain-replication in which a single stealer in the\nnew zone steals some replica from a pre-exising zone, and then other\nn-aries in the new zone steal from the single cross-zone stealer in the\nzone. This would require apparatus in the RebalanceController to work.\n\n@param currentSRP\n@param finalSRP\n@param stealerZoneId\n@param stealerNodeId\n@param stealerPartitionId\n@return the node id of the donor for this partition Id.", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "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 a sorted array of properties", "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "Add all the items from an iterable to a collection.\n\n@param <T>\nThe type of items in the iterable and the collection\n@param collection\nThe collection to which the items should be added.\n@param items\nThe items to add to the collection.", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data" ]
public void setDataOffsets(int[] offsets) { assert(mLevels == offsets.length); NativeBitmapImage.updateCompressed(getNative(), mWidth, mHeight, mImageSize, mData, mLevels, offsets); mData = null; }
[ "Set the offsets in the compressed data area for each mip-map level.\n@param offsets array of offsets" ]
[ "Generate the next permutation and return a list containing\nthe elements in the appropriate order.\n@see #nextPermutationAsList(java.util.List)\n@see #nextPermutationAsArray()\n@return The next permutation as a list.", "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", "Use this API to fetch all the cachecontentgroup resources that are configured on netscaler.", "Deletes a chain of vertices from this list.", "Iterates through the range of prefixes in this range instance using the given prefix length.\n\n@param prefixLength\n@return", "Returns the association row with the given key.\n\n@param key the key of the row to return.\n@return the association row with the given key or {@code null} if no row with that key is contained in this\nassociation", "Converts the string representation of a Planner duration into\nan MPXJ Duration instance.\n\nPlanner represents durations as a number of seconds in its\nfile format, however it displays durations as days and hours,\nand seems to assume that a working day is 8 hours.\n\n@param value string representation of a duration\n@return Duration instance", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary" ]
public static void checkFolderForFile(String fileName) throws IOException { if (fileName.lastIndexOf(File.separator) > 0) { String folder = fileName.substring(0, fileName.lastIndexOf(File.separator)); directoryCheck(folder); } }
[ "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception." ]
[ "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summary group (or at the project level if the user has not\ncreated summary groups) is the WBS. At the moment we are not including the WBS in the hierarchy.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data\n@return list containing the top level tasks", "Use this API to fetch nd6ravariables resources of given names .", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Scroll to specific page. The final page might be different from the requested one if the\nrequested page is larger than the last page. To process the scrolling by pages\nLayoutScroller must be constructed with a pageSize greater than zero.\n@param pageNumber page to scroll to\n@return the new current item after the scrolling processed.", "Starts recursive insert on all insert objects object graph", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Returns the union of sets s1 and s2.", "Deletes a chain of vertices from this list.", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString" ]
public void setLinearLowerLimits(float limitX, float limitY, float limitZ) { Native3DGenericConstraint.setLinearLowerLimits(getNative(), limitX, limitY, limitZ); }
[ "Sets the lower limits for the \"moving\" body translation relative to joint point.\n\n@param limitX the X axis lower translation limit\n@param limitY the Y axis lower translation limit\n@param limitZ the Z axis lower translation limit" ]
[ "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false that step will be skipped.", "Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Put everything smaller than days at 0\n@param cal calendar to be cleaned", "Return a list of the top 100 unique places clustered by a given placetype for a user.\n\n@param placeType\nUse Type-constants at {@link Place}\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null.\n@param placeId\nA Flickr Places ID. Optional, can be null.\n@param threshold\nThe minimum number of photos that a place type must have to be included. If the number of photos is lowered then the parent place type for\nthat place will be used. Optional, can be null.\n@param minUploadDate\nOptional, can be null.\n@param maxUploadDate\nOptional, can be null.\n@param minTakenDate\nOptional, can be null.\n@param maxTakenDate\nOptional, can be null.\n@return A PlacesList\n@throws FlickrException", "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Turn json string into map\n\n@param json\n@return", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "perform the actual matching", "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value" ]
public void setDuration(float start, float end) { for (GVRAnimation anim : mAnimations) { anim.setDuration(start,end); } }
[ "Sets the duration for the animations in this animator.\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@see GVRAnimation#setDuration(float, float)" ]
[ "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred", "Returns the name under which this dump file. This is the name used online\nand also locally when downloading the file.\n\n@param dumpContentType\nthe type of the dump\n@param projectName\nthe project name, e.g. \"wikidatawiki\"\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return file name string", "Use this API to fetch nsrpcnode resources of given names .", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Try to reconnect to a started server.", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Set the end time.\n@param date the end time to set." ]
private TreeMap<Integer, Integer> createTaskMap(FieldMap fieldMap, FixedMeta taskFixedMeta, FixedData taskFixedData, Var2Data taskVarData) { TreeMap<Integer, Integer> taskMap = new TreeMap<Integer, Integer>(); int uniqueIdOffset = fieldMap.getFixedDataOffset(TaskField.UNIQUE_ID); Integer taskNameKey = fieldMap.getVarDataKey(TaskField.NAME); int itemCount = taskFixedMeta.getAdjustedItemCount(); int uniqueID; Integer key; // // First three items are not tasks, so let's skip them // for (int loop = 3; loop < itemCount; loop++) { byte[] data = taskFixedData.getByteArrayValue(loop); if (data != null) { byte[] metaData = taskFixedMeta.getByteArrayValue(loop); // // Check for the deleted task flag // int flags = MPPUtility.getInt(metaData, 0); if ((flags & 0x02) != 0) { // Project stores the deleted tasks unique id's into the fixed data as well // and at least in one case the deleted task was listed twice in the list // the second time with data with it causing a phantom task to be shown. // See CalendarErrorPhantomTasks.mpp // // So let's add the unique id for the deleted task into the map so we don't // accidentally include the task later. // uniqueID = MPPUtility.getShort(data, TASK_UNIQUE_ID_FIXED_OFFSET); // Only a short stored for deleted tasks? key = Integer.valueOf(uniqueID); if (taskMap.containsKey(key) == false) { taskMap.put(key, null); // use null so we can easily ignore this later } } else { // // Do we have a null task? // if (data.length == NULL_TASK_BLOCK_SIZE) { uniqueID = MPPUtility.getInt(data, TASK_UNIQUE_ID_FIXED_OFFSET); key = Integer.valueOf(uniqueID); if (taskMap.containsKey(key) == false) { taskMap.put(key, Integer.valueOf(loop)); } } else { // // We apply a heuristic here - if we have more than 75% of the data, we assume // the task is valid. // int maxSize = fieldMap.getMaxFixedDataSize(0); if (maxSize == 0 || ((data.length * 100) / maxSize) > 75) { uniqueID = MPPUtility.getInt(data, uniqueIdOffset); key = Integer.valueOf(uniqueID); // Accept this task if it does not have a deleted unique ID or it has a deleted unique ID but the name is not null if (!taskMap.containsKey(key) || taskVarData.getUnicodeString(key, taskNameKey) != null) { taskMap.put(key, Integer.valueOf(loop)); } } } } } } return (taskMap); }
[ "This method maps the task unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param taskFixedMeta Fixed meta data for this task\n@param taskFixedData Fixed data for this task\n@param taskVarData Variable task data\n@return Mapping between task identifiers and block position" ]
[ "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Producers returned from this method are not validated. Internal use only.", "Returns a new color with a new value of the specified HSL\ncomponent.", "Compares two annotated types and returns true if they are the same", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Use this API to update cachecontentgroup.", "Calculate the value of a CMS strike using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS strike", "This method changes package_path into folder's path\n\n@param path\n, as es.upm.gsi\n@return the new path, es/upm/gsi", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)" ]
public void racRent() { pos = pos - 1; String userName = CarSearch.getLastSearchParams()[0]; String pickupDate = CarSearch.getLastSearchParams()[1]; String returnDate = CarSearch.getLastSearchParams()[2]; this.searcher.search(userName, pickupDate, returnDate); if (searcher!=null && searcher.getCars()!= null && pos < searcher.getCars().size() && searcher.getCars().get(pos) != null) { RESStatusType resStatus = reserver.reserveCar(searcher.getCustomer() , searcher.getCars().get(pos) , pickupDate , returnDate); ConfirmationType confirm = reserver.getConfirmation(resStatus , searcher.getCustomer() , searcher.getCars().get(pos) , pickupDate , returnDate); RESCarType car = confirm.getCar(); CustomerDetailsType customer = confirm.getCustomer(); System.out.println(MessageFormat.format(CONFIRMATION , confirm.getDescription() , confirm.getReservationId() , customer.getName() , customer.getEmail() , customer.getCity() , customer.getStatus() , car.getBrand() , car.getDesignModel() , confirm.getFromDate() , confirm.getToDate() , padl(car.getRateDay(), 10) , padl(car.getRateWeekend(), 10) , padl(confirm.getCreditPoints().toString(), 7))); } else { System.out.println("Invalid selection: " + (pos+1)); //$NON-NLS-1$ } }
[ "Rent a car available in the last serach result\n@param intp - the command interpreter instance" ]
[ "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Use this API to fetch appfwsignatures resource of given name .", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Pretty print a progress update after each batch complete.\n\n@param batchCount current batch\n@param numBatches total number of batches\n@param partitionStoreCount partition stores migrated\n@param numPartitionStores total number of partition stores to migrate\n@param totalTimeMs total time, in milliseconds, of execution thus far.", "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current dumpfiles\n@throws IllegalArgumentException\nif the given dump file type is not known", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Return input mapper from processor.", "Loads the leap second rules from a URL, often in a jar file.\n\n@param url the jar file to load, not null\n@throws Exception if an error occurs", "Updates the backing render texture. This method should not\nbe called when capturing is in progress.\n\n@param width The width of the backing texture in pixels.\n@param height The height of the backing texture in pixels.\n@param sampleCount The MSAA sample count." ]
@Deprecated public void parseAndSetParameter(String value, ModelNode operation, XMLStreamReader reader) throws XMLStreamException { //we use manual parsing here, and not #getParser().. to preserve backward compatibility. if (value != null) { for (String element : value.split(",")) { parseAndAddParameterElement(element.trim(), operation, reader); } } }
[ "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid" ]
[ "Extracts a numeric id from a string, which can be either a Wikidata\nentity URI or a short entity or property id.\n\n@param idString\n@param isUri\n@return numeric id, or 0 if there was an error", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Read arguments from a file. Newline delimited, UTF-8 encoded. No fanciness to\navoid dependencies.", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Returns the name from the inverse side if the given property de-notes a one-to-one association.", "Returns the name of the bone.\n\n@return the name", "Reads the next chunk for the intermediate work buffer.", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return" ]
public void sendJsonToUrl(Object data, String url) { sendToUrl(JSON.toJSONString(data), url); }
[ "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url" ]
[ "Internal utility to help JNI add hit objects to the pick list. Specifically for MeshColliders with picking\nfor UV, Barycentric, and normal coordinates enabled", "Determine if a CharSequence can be parsed as a BigInteger.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigInteger(String)\n@since 1.8.2", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "Creates the default editor state for editing a bundle with descriptor.\n@return the default editor state for editing a bundle with descriptor.", "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Loads treebank data from first argument and prints it.\n\n@param args Array of command-line arguments: specifies a filename" ]
public void forAllIndices(String template, Properties attributes) throws XDocletException { boolean processUnique = TypeConversionUtil.stringToBoolean(attributes.getProperty(ATTRIBUTE_UNIQUE), false); // first the default index _curIndexDef = _curTableDef.getIndex(null); if ((_curIndexDef != null) && (processUnique == _curIndexDef.isUnique())) { generate(template); } for (Iterator it = _curTableDef.getIndices(); it.hasNext(); ) { _curIndexDef = (IndexDef)it.next(); if (!_curIndexDef.isDefault() && (processUnique == _curIndexDef.isUnique())) { generate(template); } } _curIndexDef = null; }
[ "Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"" ]
[ "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "Remove all children that have been added to the owner object of this camera rig; except the\ncamera objects.", "Function to perform forward activation", "Very basic implementation of an inner join between two result sets.\n\n@param leftRows left result set\n@param leftColumn left foreign key column\n@param rightTable right table name\n@param rightRows right result set\n@param rightColumn right primary key column\n@return joined result set", "Gets all Checkable widgets in the group\n@return list of Checkable widgets", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Calculate Median value.\n@param values Values.\n@return Median.", "Run a CLI script from a File.\n\n@param script The script file.", "Set the specular intensity of the light.\n\nThis designates the color of the specular reflection.\nIt is multiplied by the material specular color to derive\nthe hue of the specular reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code specular_intensity} to control the specular intensity.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)" ]
public Stats getPhotostreamStats(Date date) throws FlickrException { return getStats(METHOD_GET_PHOTOSTREAM_STATS, null, null, date); }
[ "Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"" ]
[ "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", "Check whether the URL end with one of the given suffixes.\n\n@param uri URI\n@param patterns possible suffixes\n@return true when URL ends with one of the suffixes", "Creates a new instance with the given key and value.\nMay be used instead of the constructor for convenience reasons.\n\n@param k\nthe key. May be <code>null</code>.\n@param v\nthe value. May be <code>null</code>.\n@return a newly created pair. Never <code>null</code>.\n@since 2.3", "Prints some basic documentation about this program.", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Use this API to delete sslcipher resources of given names.", "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "Add the deployment scanner service to a batch.\n\n@param context context for the operation that is adding this service\n@param resourceAddress the address of the resource that manages the service\n@param relativeTo the relative to\n@param path the path\n@param scanInterval the scan interval\n@param unit the unit of {@code scanInterval}\n@param autoDeployZip whether zipped content should be auto-deployed\n@param autoDeployExploded whether exploded content should be auto-deployed\n@param autoDeployXml whether xml content should be auto-deployed\n@param scanEnabled scan enabled\n@param deploymentTimeout the deployment timeout\n@param rollbackOnRuntimeFailure rollback on runtime failures\n@param bootTimeService the deployment scanner used in the boot time scan\n@param scheduledExecutorService executor to use for asynchronous tasks\n@return the controller for the deployment scanner service", "Wrap CallableStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Callablestatement." ]
public static base_response enable(nitro_service client, nsfeature resource) throws Exception { nsfeature enableresource = new nsfeature(); enableresource.feature = resource.feature; return enableresource.perform_operation(client,"enable"); }
[ "Use this API to enable nsfeature." ]
[ "Return a vector of values corresponding to a given vector of times.\n@param times A given vector of times.\n@return A vector of values corresponding to the given vector of times.", "Obtain the realm used for authentication.\n\nThis realm name applies to both the user and the groups.\n\n@return The name of the realm used for authentication.", "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception", "Convenience method to convert a CSV string list to a set. Note that this\nwill suppress duplicates.\n\n@param str the input String\n@return a Set of String entries in the list", "Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data", "Should be called after new data is inserted. Will be automatically called, when the view dimensions\nhas changed.\n\nCalculates the start- and end-angles for every PieSlice.", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "Write flow id to message.\n\n@param message the message\n@param flowId the flow id", "append human message to JsonRtn class\n\n@param jsonRtn\n@return" ]
private boolean isClockwise(Point center, Point a, Point b) { double cross = (a.x - center.x) * (b.y - center.y) - (b.x - center.x) * (a.y - center.y); return cross > 0; }
[ "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return" ]
[ "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url", "Use this API to fetch filtered set of appfwlearningsettings resources.\nset the filter parameter values in filtervalue object.", "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Update the name of a script\n\n@param id ID of script\n@param name new name\n@return updated script\n@throws Exception exception", "Calculates Sine value of the complex number.\n\n@param z1 A Complex Number instance.\n@return Returns new ComplexNumber instance containing the Sine value of the specified complex number.", "Process an update packet from one of the CDJs. See if it has a valid track loaded; if not, clear any\nmetadata we had stored for that player. If so, see if it is the same track we already know about; if not,\nrequest the metadata associated with that track.\n\nAlso clears out any metadata caches that were attached for slots that no longer have media mounted in them,\nand updates the sets of which players have media mounted in which slots.\n\nIf any of these reflect a change in state, any registered listeners will be informed.\n\n@param update an update packet we received from a CDJ", "Use this API to update autoscaleaction resources." ]
public static String getStringProperty(String name, Map<String, String> map, String defaultValue) { if (map.containsKey(name) && Strings.isNotNullOrEmpty(map.get(name))) { defaultValue = map.get(name); } return getPropertyOrEnvironmentVariable(name, defaultValue); }
[ "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found." ]
[ "Puts value at given column\n\n@param value Will be encoded using UTF-8", "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.", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause.", "An endpoint to compile an array of soy templates to JavaScript.\n\nThis endpoint is a preferred way of compiling soy templates to JavaScript but it requires a user to compose a url\non their own or using a helper class TemplateUrlComposer, which calculates checksum of a file and puts this in url\nso that whenever a file changes, after a deployment a JavaScript, url changes and a new hash is appended to url, which enforces\ngetting of new compiles JavaScript resource.\n\nInvocation of this url may throw two types of http exceptions:\n1. notFound - usually when a TemplateResolver cannot find a template with an associated name\n2. error - usually when there is a permission error and a user is not allowed to compile a template into a JavaScript\n\n@param hash - some unique number that should be used when we are caching this resource in a browser and we use http cache headers\n@param templateFileNames - an array of template names, e.g. client-words,server-time, which may or may not contain extension\ncurrently three modes are supported - soy extension, js extension and no extension, which is preferred\n@param disableProcessors - whether the controller should run registered outputProcessors after the compilation is complete.\n@param request - HttpServletRequest\n@param locale - locale\n@return response entity, which wraps a compiled soy to JavaScript files.\n@throws IOException - io error", "Construct new path by replacing file directory part. No\nfiles are actually modified.\n@param file path to move\n@param target new path directory", "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "Parses the dictionary from an InputStream.\n\n@param client The SolrClient instance object.\n@param lang The language of the dictionary.\n@param is The InputStream object.\n@param documents List to put the assembled SolrInputObjects into.\n@param closeStream boolean flag that determines whether to close the inputstream\nor not.", "Return the par FRA rate for a given curve.\n\n@param model A given model.\n@return The par FRA rate." ]
private Observable<Response<ResponseBody>> pollAsync(String url, String loggingContext) { URL endpoint; try { endpoint = new URL(url); } catch (MalformedURLException e) { return Observable.error(e); } AsyncService service = restClient().retrofit().create(AsyncService.class); if (loggingContext != null && !loggingContext.endsWith(" (poll)")) { loggingContext += " (poll)"; } return service.get(endpoint.getFile(), serviceClientUserAgent, loggingContext) .flatMap(new Func1<Response<ResponseBody>, Observable<Response<ResponseBody>>>() { @Override public Observable<Response<ResponseBody>> call(Response<ResponseBody> response) { RuntimeException exception = createExceptionFromResponse(response, 200, 201, 202, 204); if (exception != null) { return Observable.error(exception); } else { return Observable.just(response); } } }); }
[ "Polls from the URL provided.\n\n@param url the URL to poll from.\n@return the raw response." ]
[ "Injects EJBs and other EE resources.\n\n@param resourceInjectionsHierarchy\n@param beanInstance\n@param ctx", "Verify that cluster is congruent to store def wrt zones.", "Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.", "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Logs to Info if the debug level is greater than or equal to 1.", "Replaces sequences of whitespaces with tabs within a line.\n\n@param self A line to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "Use this API to reset appfwlearningdata.", "Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value" ]
private void processLayouts(Project phoenixProject) { // // Find the active layout // Layout activeLayout = getActiveLayout(phoenixProject); // // Create a list of the visible codes in the correct order // for (CodeOption option : activeLayout.getCodeOptions().getCodeOption()) { if (option.isShown().booleanValue()) { m_codeSequence.add(getUUID(option.getCodeUuid(), option.getCode())); } } }
[ "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data" ]
[ "Use this API to fetch all the bridgetable resources that are configured on netscaler.", "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", "Use this API to fetch sslpolicylabel resource of given name .", "Deletes a chain of vertices from this list.", "Use this API to fetch aaapreauthenticationpolicy_binding resource of given name .", "Returns new instance of OptionalValue with given value\n@param value wrapped object\n@param <T> type of the wrapped object\n@return given object wrapped in OptionalValue", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Returns the organization of a given module\n\n@return Organization", "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array." ]
public static route6[] get(nitro_service service, route6_args args) throws Exception{ route6 obj = new route6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); route6[] response = (route6[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the route6 resources that are configured on netscaler.\nThis uses route6_args which is a way to provide additional arguments while fetching the resources." ]
[ "Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments.", "Returns a diagonal matrix with the specified diagonal elements.\n@param values values of diagonal elements\n@return A diagonal matrix", "Determines whether the given list contains a descriptor with the same name.\n\n@param defs The list to search\n@param obj The object that is searched for\n@return <code>true</code> if the list contains a descriptor with the same name", "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Finds the parent group of the given one and returns it\n\n@param group Group for which the parent is needed\n@return The parent group of the given one. If the given one is the first one, it returns the same group", "Create a model controller client which is exclusively receiving messages on an existing channel.\n\n@param channel the channel\n@param executorService an executor\n@return the created client", "Returns the first 24 photos for a given tag cluster.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\n@param clusterId\n@return PhotoList\n@throws FlickrException", "Add a variable to the scripting context.\n\n@param varName The variable name.\n@param value The variable value." ]
@RequestMapping(value = "/legendgraphic", method = RequestMethod.GET) public ModelAndView getGraphic(@RequestParam("layerId") String layerId, @RequestParam(value = "styleName", required = false) String styleName, @RequestParam(value = "ruleIndex", required = false) Integer ruleIndex, @RequestParam(value = "format", required = false) String format, @RequestParam(value = "width", required = false) Integer width, @RequestParam(value = "height", required = false) Integer height, @RequestParam(value = "scale", required = false) Double scale, @RequestParam(value = "allRules", required = false) Boolean allRules, HttpServletRequest request) throws GeomajasException { if (!allRules) { return getGraphic(layerId, styleName, ruleIndex, format, width, height, scale); } else { return getGraphics(layerId, styleName, format, width, height, scale); } }
[ "Gets a legend graphic with the specified metadata parameters. All parameters are passed as request parameters.\n\n@param layerId\nthe layer id\n@param styleName\nthe style name\n@param ruleIndex\nthe rule index\n@param format\nthe image format ('png','jpg','gif')\n@param width\nthe graphic's width\n@param height\nthe graphic's height\n@param scale\nthe scale denominator (not supported yet)\n@param allRules\nif true the image will contain all rules stacked vertically\n@param request\nthe servlet request object\n@return the model and view\n@throws GeomajasException\nwhen a style or rule does not exist or is not renderable" ]
[ "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Checks if the child is currently in ViewPort\n@param dataIndex child index\n@return true if the child is in viewport, false - otherwise", "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", "Use this API to enable Interface resources of given names.", "Returns the complete record for a single section.\n\n@param section The section to get.\n@return Request object", "Calculate power of a complex number.\n\n@param z1 Complex Number.\n@param n Power.\n@return Returns a new complex number containing the power of a specified number.", "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Starts the transition", "Sets the values of this vector to those of v1.\n\n@param v1\nvector whose values are copied" ]
public static <T> boolean addAll(Collection<T> self, Iterator<T> items) { boolean changed = false; while (items.hasNext()) { T next = items.next(); if (self.add(next)) changed = true; } return changed; }
[ "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed" ]
[ "URL-Decodes a given string using UTF-8. No UnsupportedEncodingException to handle as it is dealt with in this\nmethod.", "Convert event type.\n\n@param eventType the event type\n@return the event enum type", "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "Returns an array specifing the index of each hull vertex with respect to\nthe original input points.\n\n@return vertex indices with respect to the original points", "Adds each required substring, checking that it's not null.\n\n@param requiredSubStrings\nthe required substrings\n@throws NullPointerException\nif a required substring is null", "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list.", "Reset hard on HEAD.\n\n@throws GitAPIException", "Appends formatted text to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>", "Calculate delta with another vector\n@param v another vector\n@return delta vector" ]
public static sslvserver_sslcipher_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslcipher_binding obj = new sslvserver_sslcipher_binding(); obj.set_vservername(vservername); sslvserver_sslcipher_binding response[] = (sslvserver_sslcipher_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslvserver_sslcipher_binding resources of given name ." ]
[ "Handle value change event on the individual dates list.\n@param event the change event.", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes one argument. Never <code>null</code>.", "Get the class name without the package\n\n@param c The class name with package\n@return the class name without the package", "Adds a foreignkey to this table.\n\n@param relationName The name of the relation represented by the foreignkey\n@param remoteTable The referenced table\n@param localColumns The local columns\n@param remoteColumns The remote columns", "Remove a path\n\n@param pathId ID of path", "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Returns a new index creation statement using the session's keyspace.\n\n@param keyspace the keyspace name\n@param table the table name\n@param name the index name\n@return a new index creation statement", "submit the adminClient after usage is completed.\nBehavior is undefined, if checkin is called with objects not retrieved\nfrom checkout.\n\n@param client AdminClient retrieved from checkout" ]
public static boolean isPortletEnvSupported() { if (enabled == null) { synchronized (PortletSupport.class) { if (enabled == null) { try { PortletSupport.class.getClassLoader().loadClass("javax.portlet.PortletContext"); enabled = true; } catch (Throwable ignored) { enabled = false; } } } } return enabled; }
[ "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise" ]
[ "Build the context name.\n\n@param objs the objects\n@return the global context name", "Adds a file with the provided description.", "Specify the class represented by this `ClassNode` is annotated\nby an annotation class specified by the name\n@param name the name of the annotation class\n@return this `ClassNode` instance", "Opens the favorite dialog.\n\n@param explorer the explorer instance (null if not currently in explorer)", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections", "Takes a model and an SCXMLFrontier and decomposes the Frontier into a Map of Strings to Strings\nThese strings can be sent over a network to get a Frontier past a 'gap'\n\n@param frontier the Frontier\n@param modelText the model\n@return the map of strings representing a decomposition", "width of input section", "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels" ]
public static base_response reset(nitro_service client, Interface resource) throws Exception { Interface resetresource = new Interface(); resetresource.id = resource.id; return resetresource.perform_operation(client,"reset"); }
[ "Use this API to reset Interface." ]
[ "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}", "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created.", "Close tracks when the JVM shuts down.\n@return this", "Write calendar exceptions.\n\n@param records list of ProjectCalendars\n@throws IOException", "Sends a multipart response. Each body part represents a versioned value\nof the given key.\n\n@throws IOException\n@throws MessagingException", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key", "Do post exam of child inside the layout after it has been positioned in parent\n@param dataIndex data index", "Get MultiJoined ClassDescriptors\n@param cld", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer." ]
private List<Object> convertType(DataType type, byte[] data) { List<Object> result = new ArrayList<Object>(); int index = 0; while (index < data.length) { switch (type) { case STRING: { String value = MPPUtility.getUnicodeString(data, index); result.add(value); index += ((value.length() + 1) * 2); break; } case CURRENCY: { Double value = Double.valueOf(MPPUtility.getDouble(data, index) / 100); result.add(value); index += 8; break; } case NUMERIC: { Double value = Double.valueOf(MPPUtility.getDouble(data, index)); result.add(value); index += 8; break; } case DATE: { Date value = MPPUtility.getTimestamp(data, index); result.add(value); index += 4; break; } case DURATION: { TimeUnit units = MPPUtility.getDurationTimeUnits(MPPUtility.getShort(data, index + 4), m_properties.getDefaultDurationUnits()); Duration value = MPPUtility.getAdjustedDuration(m_properties, MPPUtility.getInt(data, index), units); result.add(value); index += 6; break; } case BOOLEAN: { Boolean value = Boolean.valueOf(MPPUtility.getShort(data, index) == 1); result.add(value); index += 2; break; } default: { index = data.length; break; } } } return result; }
[ "Convert raw data into Java types.\n\n@param type data type\n@param data raw data\n@return list of Java object" ]
[ "Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.\n@param enterpriseId the enterprise ID to use for requesting access token.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Scroll to the specific position\n@param position\n@return the new current item after the scrolling processed.", "Assigns an element a value based on its index in the internal array..\n\n@param index The matrix element that is being assigned a value.\n@param value The element's new value.", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "Inserts a vertex into this list before another specificed vertex.", "Returns an java object read from the specified ResultSet column.", "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info." ]
public int executeRefresh(DatabaseConnection databaseConnection, T data, ObjectCache objectCache) throws SQLException { @SuppressWarnings("unchecked") ID id = (ID) idField.extractJavaFieldValue(data); // we don't care about the cache here T result = super.execute(databaseConnection, id, null); if (result == null) { return 0; } // copy each field from the result into the passed in object for (FieldType fieldType : resultsFieldTypes) { if (fieldType != idField) { fieldType.assignField(connectionSource, data, fieldType.extractJavaFieldValue(result), false, objectCache); } } return 1; }
[ "Execute our refresh query statement and then update all of the fields in data with the fields from the result.\n\n@return 1 if we found the object in the table by id or 0 if not." ]
[ "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}.", "Populates a calendar instance.\n\n@param record MPX record\n@param calendar calendar instance\n@param isBaseCalendar true if this is a base calendar", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Returns flag whose value indicates if the string is null, empty or\nonly contains whitespace characters\n\n@param s a string\n@return true if the string is null, empty or only contains whitespace characters", "called periodically to check that the heartbeat has been received\n\n@return {@code true} if we have received a heartbeat recently", "Unilaterally merge an update description into this update description.\n@param otherDescription the update description to merge into this\n@return this merged update description", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running", "Set the attributes of a feature.\n\n@param feature the feature\n@param attributes the attributes\n@throws LayerException oops" ]
public void cleanup() { synchronized (_sslMap) { for (SslRelayOdo relay : _sslMap.values()) { if (relay.getHttpServer() != null && relay.isStarted()) { relay.getHttpServer().removeListener(relay); } } sslRelays.clear(); } }
[ "Cleanup function to remove all allocated listeners" ]
[ "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", "Specifies convergence criteria\n\n@param maxIterations Maximum number of iterations\n@param ftol convergence based on change in function value. try 1e-12\n@param gtol convergence based on residual magnitude. Try 1e-12", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "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.", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\n@param x the X coordinate of the rectangle\n@param y the Y coordinate of the rectangle\n@param width the width of the rectangle\n@param height the height of the rectangle\n@param stroke should there be a stroke around?\n@param fill should the rectangle be filled?\n@return the resulting DOM element", "Sets the SCXML model with an InputStream\n\n@param inputFileStream the model input stream", "Set the default size of the texture buffers. You can call this to reduce the buffer size\nof views with anti-aliasing issue.\n\nThe max value to the buffer size should be the Math.max(width, height) of attached view.\n\n@param size buffer size. Value > 0 and <= Math.max(width, height)." ]
public static void divideElementsCol(final int blockLength , final DSubmatrixD1 Y , final int col , final double val ) { final int width = Math.min(blockLength,Y.col1-Y.col0); final double dataY[] = Y.original.data; for( int i = Y.row0; i < Y.row1; i += blockLength ) { int height = Math.min( blockLength , Y.row1 - i ); int index = i*Y.original.numCols + height*Y.col0 + col; if( i == Y.row0 ) { index += width*(col+1); for( int k = col+1; k < height; k++ , index += width ) { dataY[index] /= val; } } else { int endIndex = index + width*height; //for( int k = 0; k < height; k++ for( ; index != endIndex; index += width ) { dataY[index] /= val; } } } }
[ "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one." ]
[ "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "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", "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query.", "Provides the results of a QR decomposition. These will be modified by adding or removing\nrows from the original 'A' matrix.\n\n@param Q The Q matrix which is to be modified. Is modified later and reference saved.\n@param R The R matrix which is to be modified. Is modified later and reference saved.", "Retrieve an instance of the ResourceField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return instance of this class", "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "Unpause the server, allowing it to resume normal operations", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width" ]
public static base_response update(nitro_service client, nsspparams resource) throws Exception { nsspparams updateresource = new nsspparams(); updateresource.basethreshold = resource.basethreshold; updateresource.throttle = resource.throttle; return updateresource.update_resource(client); }
[ "Use this API to update nsspparams." ]
[ "Binds the Identities Primary key values to the statement.", "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator", "Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder", "Performs an implicit double step given the set of two imaginary eigenvalues provided.\nSince one eigenvalue is the complex conjugate of the other only one set of real and imaginary\nnumbers is needed.\n\n@param x1 upper index of submatrix.\n@param x2 lower index of submatrix.\n@param real Real component of each of the eigenvalues.\n@param img Imaginary component of one of the eigenvalues.", "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes", "Process class properties.\n\n@param writer output stream\n@param methodSet set of methods processed\n@param aClass class being processed\n@throws IntrospectionException\n@throws XMLStreamException", "Sinc function.\n\n@param x Value.\n@return Sinc of the value.", "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error." ]
public boolean addMethodToResponseOverride(String pathName, String methodName) { // need to find out the ID for the method // TODO: change api for adding methods to take the name instead of ID try { Integer overrideId = getOverrideIdForMethodName(methodName); // now post to path api to add this is a selected override BasicNameValuePair[] params = { new BasicNameValuePair("addOverride", overrideId.toString()), new BasicNameValuePair("profileIdentifier", this._profileName) }; JSONObject response = new JSONObject(doPost(BASE_PATH + uriEncode(pathName), params)); // check enabled endpoints array to see if this overrideID exists JSONArray enabled = response.getJSONArray("enabledEndpoints"); for (int x = 0; x < enabled.length(); x++) { if (enabled.getJSONObject(x).getInt("overrideId") == overrideId) { return true; } } } catch (Exception e) { e.printStackTrace(); } return false; }
[ "Add a method to the enabled response overrides for a path\n\n@param pathName name of path\n@param methodName name of method\n@return true if success, false otherwise" ]
[ "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Add the deployment scanner service to a batch.\n\n@param context context for the operation that is adding this service\n@param resourceAddress the address of the resource that manages the service\n@param relativeTo the relative to\n@param path the path\n@param scanInterval the scan interval\n@param unit the unit of {@code scanInterval}\n@param autoDeployZip whether zipped content should be auto-deployed\n@param autoDeployExploded whether exploded content should be auto-deployed\n@param autoDeployXml whether xml content should be auto-deployed\n@param scanEnabled scan enabled\n@param deploymentTimeout the deployment timeout\n@param rollbackOnRuntimeFailure rollback on runtime failures\n@param bootTimeService the deployment scanner used in the boot time scan\n@param scheduledExecutorService executor to use for asynchronous tasks\n@return the controller for the deployment scanner service", "Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.\n@param D diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param confRadius Confinement radius\n@return Boundedness value", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Convert string to qname.\n\n@param str the string\n@return the qname", "Refactor the method into public CXF utility and reuse it from CXF instead copy&paste", "Checks if the path leads to an embedded property or association.\n\n@param targetTypeName the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is an embedded, {@code false} otherwise.", "Returns the Class object of the class specified in the OJB.properties\nfile for the \"PersistentFieldClass\" property.\n\n@return Class The Class object of the \"PersistentFieldClass\" class\nspecified in the OJB.properties file." ]
public void join(String groupId, Boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN); parameters.put("group_id", groupId); if (acceptRules != null) { parameters.put("accept_rules", acceptRules); } Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } }
[ "Join a group as a public member.\n\nNote: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules\nparameter indicates that the user has accepted those rules.\n\n@param groupId\n- the id of the group to join\n@param acceptRules\n- if a group has rules, true indicates the user has accepted the rules\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.join.html\">flickr.groups.join</a>" ]
[ "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.", "Build a request URL.\n\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException\n@deprecated use {@link #buildSecureUrl(java.lang.String, int, java.lang.String, java.util.Map) }", "Notify all shutdown listeners that the shutdown completed.", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid", "Add join info to the query. This can be called multiple times to join with more than one table.", "Re-maps a provided collection.\n\n@param <T_Result>\ntype of result\n@param <T_Source>\ntype of source\n@param source\nfor mapping\n@param mapper\nelement mapper\n@return mapped source", "Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found.", "Get all sub-lists of the given list of the given sizes.\n\nFor example:\n\n<pre>\nList&lt;String&gt; items = Arrays.asList(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;);\nSystem.out.println(CollectionUtils.getNGrams(items, 1, 2));\n</pre>\n\nwould print out:\n\n<pre>\n[[a], [a, b], [b], [b, c], [c], [c, d], [d]]\n</pre>\n\n@param <T>\nThe type of items contained in the list.\n@param items\nThe list of items.\n@param minSize\nThe minimum size of an ngram.\n@param maxSize\nThe maximum size of an ngram.\n@return All sub-lists of the given sizes.", "One of DEFAULT, or LARGE." ]
public String getShortMessage(Locale locale) { String message; message = translate(Integer.toString(exceptionCode), locale); if (message != null && msgParameters != null && msgParameters.length > 0) { for (int i = 0; i < msgParameters.length; i++) { boolean isIncluded = false; String needTranslationParam = "$${" + i + "}"; if (message.contains(needTranslationParam)) { String translation = translate(msgParameters[i], locale); if (null == translation && null != msgParameters[i]) { translation = msgParameters[i].toString(); } if (null == translation) { translation = "[null]"; } message = message.replace(needTranslationParam, translation); isIncluded = true; } String verbatimParam = "${" + i + "}"; String rs = null == msgParameters[i] ? "[null]" : msgParameters[i].toString(); if (message.contains(verbatimParam)) { message = message.replace(verbatimParam, rs); isIncluded = true; } if (!isIncluded) { message = message + " (" + rs + ")"; // NOSONAR replace/contains makes StringBuilder use difficult } } } return message; }
[ "Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message" ]
[ "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove.", "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.", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "Return a long value from a prepared query.", "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String", "Called by the engine to trigger the cleanup at the end of a payload thread.", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "slave=true", "Handles the response of the SerialApiGetInitData request.\n@param incomingMlivessage the response message to process." ]
@Override public final double getDouble(final String key) { Double result = optDouble(key); if (result == null) { throw new ObjectMissingException(this, key); } return result; }
[ "Get a property as a double or throw an exception.\n\n@param key the property name" ]
[ "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "Returns all headers with the headers from the Payload\n\n@return All the headers", "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", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "It will look for all the deployments under the deploymentsRootAddress with a runtimeName in the specified list of\nruntime names and then transform the operation so that every server having those deployments will redeploy the\naffected deployments.\n\n@see #transformOperation\n@param removeOperation\n@param context\n@param deploymentsRootAddress\n@param runtimeNames\n@throws OperationFailedException", "Pauses the playback of a sound.", "OR operation which takes 2 arguments and OR's them together.\n\n<p>\n<b>NOTE:</b> There is no guarantee of the order of the clauses that are generated in the final query.\n</p>\n<p>\n<b>NOTE:</b> I can't remove the generics code warning that can be associated with this method. You can instead\nuse the {@link #or(int)} method.\n</p>", "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 index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return" ]
private void handleTextWebSocketFrameInternal(TextWebSocketFrame frame, ChannelHandlerContext ctx) { if (logger.isTraceEnabled()) { logger.trace(String.format("%s received %s", ctx.channel(), frame.text())); } addTraceForFrame(frame, "text"); ctx.channel().write(new TextWebSocketFrame("Echo: " + frame.text())); }
[ "simple echo implementation" ]
[ "build a complete set of local files, files from referenced projects, and dependencies.", "Write an int to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The int to write\n@param offset The offset to begin writing at", "Use this API to fetch sslpolicylabel resource of given name .", "Returns the compact records for all teams to which user is assigned.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Checks given permissions are needed to show rationale.\n\n@return returns true if one of the permission is needed to show rationale.", "Returns a date and time string which is formatted as ISO-8601.", "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", "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference" ]
public ServerRedirect addServerMapping(String sourceHost, String destinationHost, String hostHeader) { JSONObject response = null; ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>(); params.add(new BasicNameValuePair("srcUrl", sourceHost)); params.add(new BasicNameValuePair("destUrl", destinationHost)); params.add(new BasicNameValuePair("profileIdentifier", this._profileName)); if (hostHeader != null) { params.add(new BasicNameValuePair("hostHeader", hostHeader)); } try { BasicNameValuePair paramArray[] = new BasicNameValuePair[params.size()]; params.toArray(paramArray); response = new JSONObject(doPost(BASE_SERVER, paramArray)); } catch (Exception e) { e.printStackTrace(); return null; } return getServerRedirectFromJSON(response); }
[ "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect" ]
[ "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "Wrap an operation's parameters in a simple encapsulating object\n@param operation the operation\n@param messageHandler the message handler\n@param attachments the attachments\n@return the encapsulating object", "Check if underlying connection was alive.", "decodes the uriFragment\n\n@param res the resource that contains the feature holder\n@param uriFragment the fragment that should be decoded\n@return the decoded information\n@see LazyURIEncoder#encode(EObject, EReference, INode)", "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "Parses the query facet configurations.\n@param rangeFacetObject The JSON sub-node with the query facet configurations.\n@return The query facet configurations.", "Compute morse.\n\n@param term the term\n@return the string" ]
public List<Map<String, String>> produceNWise(int nWise, String[] coVariables, Map<String, String[]> variableDomains) { List<Set<String>> tuples = makeNWiseTuples(coVariables, nWise); List<Map<String, String>> testCases = new ArrayList<>(); for (Set<String> tuple : tuples) { testCases.addAll(expandTupleIntoTestCases(tuple, variableDomains)); } return testCases; }
[ "Finds all nWise combinations of a set of variables, each with a given domain of values\n\n@param nWise the number of variables in each combination\n@param coVariables the varisbles\n@param variableDomains the domains\n@return all nWise combinations of the set of variables" ]
[ "Generates a column for the given field and adds it to the table.\n\n@param fieldDef The field\n@param tableDef The table\n@return The column def", "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Starts the Okapi Barcode UI.\n\n@param args the command line arguments", "Get's the user's current upload limits, User object only contains user_id\n\n@return Media Limits", "open a readable or writeable FileChannel\n\n@param file file object\n@param mutable writeable\n@return open the FileChannel\n@throws IOException any io exception", "Convert an object to a list.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target list element type\n@return list", "This method retrieves a double of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required double data", "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "Create and return a new Violation for this rule and the specified import\n@param sourceCode - the SourceCode\n@param importNode - the ImportNode for the import triggering the violation\n@return a new Violation object" ]
public void append(LogSegment segment) { while (true) { List<LogSegment> curr = contents.get(); List<LogSegment> updated = new ArrayList<LogSegment>(curr); updated.add(segment); if (contents.compareAndSet(curr, updated)) { return; } } }
[ "Append the given item to the end of the list\n@param segment segment to append" ]
[ "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array.", "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return", "Tells you if the ASTNode is a method node for the given name, arity, and return type.\n@param node\nthe node to inspect\n@param methodNamePattern\nthe expected name of the method\n@param numArguments\nthe expected number of arguments, optional\n@param returnType\nthe expected return type, optional\n@return\ntrue if this node is a MethodNode meeting the parameters. false otherwise", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition" ]
private synchronized void freeClient(Client client) { int current = useCounts.get(client); if (current > 0) { timestamps.put(client, System.currentTimeMillis()); // Mark that it was used until now. useCounts.put(client, current - 1); if ((current == 1) && (idleLimit.get() == 0)) { closeClient(client); // This was the last use, and we are supposed to immediately close idle clients. } } else { logger.error("Ignoring attempt to free a client that is not allocated: {}", client); } }
[ "Decrements the client's use count, and makes it eligible for closing if it is no longer in use.\n\n@param client the dbserver connection client which is no longer being used for a task" ]
[ "Reads a single byte from the input stream.", "Delete a record.\n\n@param referenceId the reference ID.", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Delete rows that match the prepared statement.", "Called on mouse down in the caption area, begins the dragging loop by\nturning on event capture.\n\n@see DOM#setCapture\n@see #continueDragging\n@param event the mouse down event that triggered dragging", "Pretty prints a task list of rebalancing tasks.\n\n@param infos list of rebalancing tasks (RebalancePartitionsInfo)\n@return pretty-printed string", "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <code>null</code>", "exposed only for tests", "Execute a CLI command. This can be any command that you might execute on\nthe CLI command line, including both server-side operations and local\ncommands such as 'cd' or 'cn'.\n\n@param cliCommand A CLI command.\n@return A result object that provides all information about the execution\nof the command." ]
public static <T> IteratorFromReaderFactory<T> getFactory(String delim, Function<String,T> op) { return new DelimitRegExIteratorFactory<T>(delim, op); }
[ "Returns a factory that vends DelimitRegExIterators that reads the contents of the\ngiven Reader, splits on the specified delimiter, applies op, then returns the result." ]
[ "Retrieve from the parent pom the path to the modules of the project", "Validates that this string is a valid host name or IP address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws HostNameException", "Add an extension to the set of extensions.\n\n@param extension an extension", "Get logs for an app by specifying additional parameters.\n@param logRequest See {LogRequestBuilder}\n@return log stream response", "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", "Gets the element view.\n\n@return the element view", "Read arguments from a file. Newline delimited, UTF-8 encoded. No fanciness to\navoid dependencies.", "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Deletes all of the Directories in root that match the FileFilter\n\n@param root\n@param filter" ]
public void setLabel(String label) { int ix = lstSizes.indexOf(label); if (ix != -1) { setLabel(ix); } }
[ "Set the String-representation of size.\n\nLike: Square, Thumbnail, Small, Medium, Large, Original.\n\n@param label" ]
[ "gets the first non annotation line number of a node, taking into account annotations.", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array.", "Use this API to fetch statistics of service_stats resource of given name .", "Gets or creates id of the entity type.\n\n@param entityType entity type name.\n@param allowCreate if set to true and if there is no entity type like entityType,\ncreate the new id for the entityType.\n@return entity type id.", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Within a single zone, swaps one random partition on one random node with\nanother random partition on different random node.\n\n@param nextCandidateCluster\n@param zoneId Zone ID within which to shuffle partitions\n@return updated cluster", "A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster", "Initializes the set of report implementation.", "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
@Modified(id = "exporterServices") void modifiedExporterService(ServiceReference<ExporterService> serviceReference) { try { exportersManager.modified(serviceReference); } catch (InvalidFilterException invalidFilterException) { LOG.error("The ServiceProperty \"" + TARGET_FILTER_PROPERTY + "\" of the ExporterService " + bundleContext.getService(serviceReference) + " doesn't provides a valid Filter." + " To be used, it must provides a correct \"" + TARGET_FILTER_PROPERTY + "\" ServiceProperty.", invalidFilterException ); exportersManager.removeLinks(serviceReference); return; } if (exportersManager.matched(serviceReference)) { exportersManager.updateLinks(serviceReference); } else { exportersManager.removeLinks(serviceReference); } }
[ "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference" ]
[ "Mirrors the given bitmap", "Gets the aggregate result count summary. only list the counts for brief\nunderstanding\n\n@return the aggregate result count summary", "Get the replication partitions list for the given partition.\n\n@param index Partition id for which we are generating the preference list\n@return The List of partitionId where this partition is replicated.", "Use this API to update vridparam.", "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "Checks the orderby attribute.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for orderby is invalid (unknown field or ordering)", "Returns the inverse of a given matrix.\n\n@param matrix A matrix given as double[n][n].\n@return The inverse of the given matrix.", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc." ]
public static ServiceController<DeploymentScanner> addService(final OperationContext context, final PathAddress resourceAddress, final String relativeTo, final String path, final int scanInterval, TimeUnit unit, final boolean autoDeployZip, final boolean autoDeployExploded, final boolean autoDeployXml, final boolean scanEnabled, final long deploymentTimeout, boolean rollbackOnRuntimeFailure, final FileSystemDeploymentService bootTimeService, final ScheduledExecutorService scheduledExecutorService) { final DeploymentScannerService service = new DeploymentScannerService(resourceAddress, relativeTo, path, scanInterval, unit, autoDeployZip, autoDeployExploded, autoDeployXml, scanEnabled, deploymentTimeout, rollbackOnRuntimeFailure, bootTimeService); final ServiceName serviceName = getServiceName(resourceAddress.getLastElement().getValue()); service.scheduledExecutorValue.inject(scheduledExecutorService); final ServiceBuilder<DeploymentScanner> sb = context.getServiceTarget().addService(serviceName, service); sb.addDependency(context.getCapabilityServiceName(PATH_MANAGER_CAPABILITY, PathManager.class), PathManager.class, service.pathManagerValue); sb.addDependency(context.getCapabilityServiceName("org.wildfly.management.notification-handler-registry", null), NotificationHandlerRegistry.class, service.notificationRegistryValue); sb.addDependency(context.getCapabilityServiceName("org.wildfly.management.model-controller-client-factory", null), ModelControllerClientFactory.class, service.clientFactoryValue); sb.requires(org.jboss.as.server.deployment.Services.JBOSS_DEPLOYMENT_CHAINS); sb.addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.controlledProcessStateServiceValue); return sb.install(); }
[ "Add the deployment scanner service to a batch.\n\n@param context context for the operation that is adding this service\n@param resourceAddress the address of the resource that manages the service\n@param relativeTo the relative to\n@param path the path\n@param scanInterval the scan interval\n@param unit the unit of {@code scanInterval}\n@param autoDeployZip whether zipped content should be auto-deployed\n@param autoDeployExploded whether exploded content should be auto-deployed\n@param autoDeployXml whether xml content should be auto-deployed\n@param scanEnabled scan enabled\n@param deploymentTimeout the deployment timeout\n@param rollbackOnRuntimeFailure rollback on runtime failures\n@param bootTimeService the deployment scanner used in the boot time scan\n@param scheduledExecutorService executor to use for asynchronous tasks\n@return the controller for the deployment scanner service" ]
[ "Checks the given class descriptor for correct object cache setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Reads a single byte from the input stream.", "Returns the JSON String representation of the payload\naccording to Apple APNS specification\n\n@return the String representation as expected by Apple", "Remove the set of partitions from the node provided\n\n@param node The node from which we're removing the partitions\n@param donatedPartitions The list of partitions to remove\n@return The new node without the partitions", "Adds the parent package to the java.protocol.handler.pkgs system property.", "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException", "Unzip a file or a folder\n@param zipFile\n@param unzippedFolder optional, if null the file/folder will be extracted in the same folder as zipFile\n@return", "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved.", "Get a list of all active server mappings defined for current profile\n\n@return Collection of ServerRedirects" ]
private Object instanceNotYetLoaded( final Tuple resultset, final int i, final Loadable persister, final String rowIdAlias, final org.hibernate.engine.spi.EntityKey key, final LockMode lockMode, final org.hibernate.engine.spi.EntityKey optionalObjectKey, final Object optionalObject, final List hydratedObjects, final SharedSessionContractImplementor session) throws HibernateException { final String instanceClass = getInstanceClass( resultset, i, persister, key.getIdentifier(), session ); final Object object; if ( optionalObjectKey != null && key.equals( optionalObjectKey ) ) { //its the given optional object object = optionalObject; } else { // instantiate a new instance object = session.instantiate( instanceClass, key.getIdentifier() ); } //need to hydrate it. // grab its state from the ResultSet and keep it in the Session // (but don't yet initialize the object itself) // note that we acquire LockMode.READ even if it was not requested LockMode acquiredLockMode = lockMode == LockMode.NONE ? LockMode.READ : lockMode; loadFromResultSet( resultset, i, object, instanceClass, key, rowIdAlias, acquiredLockMode, persister, session ); //materialize associations (and initialize the object) later hydratedObjects.add( object ); return object; }
[ "The entity instance is not in the session cache\n\nCopied from Loader#instanceNotYetLoaded" ]
[ "Returns the name from the inverse side if the given property de-notes a one-to-one association.", "Return the project name or the default project name.", "returns an Array with an Objects PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info", "Parses the date or returns null if it fails to do so.", "Use this API to fetch dnssuffix resource of given name .", "Gets a design document using the id and revision from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerException\noops", "Load the given class using the default constructor\n\n@param className The name of the class\n@return The class object" ]
public String getOriginalValue(ParsedCommandLine parsedLine, boolean required) throws CommandFormatException { String value = null; if(parsedLine.hasProperties()) { if(index >= 0) { List<String> others = parsedLine.getOtherProperties(); if(others.size() > index) { return others.get(index); } } value = parsedLine.getPropertyValue(fullName); if(value == null && shortName != null) { value = parsedLine.getPropertyValue(shortName); } } if(required && value == null && !isPresent(parsedLine)) { StringBuilder buf = new StringBuilder(); buf.append("Required argument "); buf.append('\'').append(fullName).append('\''); buf.append(" is missing."); throw new CommandFormatException(buf.toString()); } return value; }
[ "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing" ]
[ "Append the given String to the given String array, returning a new array\nconsisting of the input array contents plus the given String.\n\n@param array the array to append to (can be <code>null</code>)\n@param str the String to append\n@return the new array (never <code>null</code>)", "Calculates Sine value of the complex number.\n\n@param z1 A Complex Number instance.\n@return Returns new ComplexNumber instance containing the Sine value of the specified complex number.", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "Gets the gradient at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@param gradient The output gradient, a vector of partial derivatives.", "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget", "Use this API to fetch all the clusternodegroup resources that are configured on netscaler.", "This method is used to recreate the hierarchical structure of the\nproject file from scratch. The method sorts the list of all tasks,\nthen iterates through it creating the parent-child structure defined\nby the outline level field.", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object" ]
public static void recursiveAddZip(File parent, ZipOutputStream zout, File fileSource) throws IOException { File[] files = fileSource.listFiles(); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { recursiveAddZip(parent, zout, files[i]); continue; } byte[] buffer = new byte[1024]; FileInputStream fin = new FileInputStream(files[i]); ZipEntry zipEntry = new ZipEntry(files[i].getAbsolutePath() .replace(parent.getAbsolutePath(), "").substring(1)); //$NON-NLS-1$ zout.putNextEntry(zipEntry); int length; while ((length = fin.read(buffer)) > 0) { zout.write(buffer, 0, length); } zout.closeEntry(); fin.close(); } }
[ "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n@throws IOException I/O Error" ]
[ "Send Request Node info message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request", "This method merges together assignment data for the same cost.\n\n@param list assignment data", "Used to set the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Print the class's constructors m", "Finish initializing the service.", "Use this API to add snmpmanager resources.", "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array.", "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with differences" ]