query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public boolean isInBounds(int row, int col) { return row >= 0 && col >= 0 && row < mat.getNumRows() && col < mat.getNumCols(); }
[ "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix." ]
[ "Calculate Median value.\n@param values Values.\n@return Median.", "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created...
public String printHelp(String commandName) { int maxLength = 0; int width = 80; List<ProcessedOption> opts = getOptions(); for (ProcessedOption o : opts) { if(o.getFormattedLength() > maxLength) maxLength = o.getFormattedLength(); } StringBui...
[ "Returns a description String based on the defined command and options.\nUseful when printing \"help\" info etc." ]
[ "Handles logging tasks related to a failure to connect to a remote HC.\n@param uri the URI at which the connection attempt was made. Can be {@code null} indicating a failure to discover the HC\n@param discoveryOption the {@code DiscoveryOption} used to determine {@code uri}\n@param moreOptions {@code true} if there...
public boolean containsNonZeroHosts(IPAddressSection other) { if(!other.isPrefixed()) { return contains(other); } int otherPrefixLength = other.getNetworkPrefixLength(); if(otherPrefixLength == other.getBitCount()) { return contains(other); } return containsNonZeroHostsImpl(other, otherPrefixLength);...
[ "Returns whether this address contains the non-zero host addresses in other.\n@param other\n@return" ]
[ "make it public for CLI interaction to reuse JobContext", "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Assign an ID value to this field.", "Writ...
public static void checkDelegateType(Decorator<?> decorator) { Set<Type> types = new HierarchyDiscovery(decorator.getDelegateType()).getTypeClosure(); for (Type decoratedType : decorator.getDecoratedTypes()) { if(!types.contains(decoratedType)) { throw BeanLogger.LOG.delega...
[ "Check whether the delegate type implements or extends all decorated types.\n\n@param decorator\n@throws DefinitionException If the delegate type doesn't implement or extend all decorated types" ]
[ "Start a task. The id is needed to end the task\n\n@param id\n@param taskName", "Infer app name from entry class\n\n@param entryClass\nthe entry class\n@return\napp name inferred from the entry class", "Overridden to add transform.", "Add a photo to the user's favorites.\n\n@param photoId\nThe photo ID\n@thro...
public void process(DMatrixSparseCSC A , int parent[], int post[], int counts[] ) { if( counts.length < A.numCols ) throw new IllegalArgumentException("counts must be at least of length A.numCols"); initialize(A); int delta[] = counts; findFirstDescendant(parent, post, delt...
[ "Processes and computes column counts of A\n\n@param A (Input) Upper triangular matrix\n@param parent (Input) Elimination tree.\n@param post (Input) Post order permutation of elimination tree. See {@link TriangularSolver_DSCC#postorder}\n@param counts (Output) Storage for column counts." ]
[ "This method writes assignment data to a Planner file.", "Returns the ReportModel with given name.", "Initialize elements of the panel displayed for the deactivated widget.", "Adds an edge between the current and new state.\n\n@return true if the new state is not found in the state machine.", "Has to be cal...
public static byte[] getContentBytes(String stringUrl) throws IOException { URL url = new URL(stringUrl); byte[] data = MyStreamUtils.readContentBytes(url.openStream()); return data; }
[ "Return the content from an URL in byte array\n\n@param stringUrl URL to get\n@return byte array\n@throws IOException I/O error happened" ]
[ "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "Process a compilation unit already parsed and build.", "Returns a string to resolve apostrophe issu...
@Override public FileModel resolvePayload(GraphRewrite event, EvaluationContext context, WindupVertexFrame payload) { checkVariableName(event, context); if (payload instanceof FileReferenceModel) { return ((FileReferenceModel) payload).getFile(); } if (payload...
[ "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it." ]
[ "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "Return whether or not the data object has a default value passed for this field of this type.", "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constr...
public static BoxLegalHoldAssignment.Info create(BoxAPIConnection api, String policyID, String resourceType, String resourceID) { URL url = ASSIGNMENTS_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, "POST")...
[ "Creates new legal hold policy assignment.\n@param api the API connection to be used by the resource.\n@param policyID ID of policy to create assignment for.\n@param resourceType type of target resource. Can be 'file_version', 'file', 'folder', or 'user'.\n@param resourceID ID of the target resource.\n@return info ...
[ "Check the document field's type\nand object\n@param lhs The field to check\n@param rhs The type\n@return Expression: lhs $type rhs", "Adds a class to the unit.", "Retrieve the most recent storepoint.\n\n@param phoenixProject project data\n@return Storepoint instance", "Handles an initial response from a PUT ...
public static <T> Iterator<T> unique(Iterator<T> self) { return toList((Iterable<T>) unique(toList(self))).listIterator(); }
[ "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified ...
[ "Resolve the targeted license thanks to the license ID\nReturn null if no license is matching the licenseId\n\n@param licenseId\n@return DbLicense", "Add a '&lt;&gt;' clause so the column must be not-equal-to the value.", "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance th...
public ConfigOptionBuilder setDefaultWith( Object defaultValue ) { co.setHasDefault( true ); co.setValue( defaultValue ); return setOptional(); }
[ "if you have a default, it's automatically optional" ]
[ "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:\n\n- The codes a...
public List<PossibleState> bfs(int min) throws ModelException { List<PossibleState> bootStrap = new LinkedList<>(); TransitionTarget initial = model.getInitialTarget(); PossibleState initialState = new PossibleState(initial, fillInitialVariables()); bootStrap.add(initialState); ...
[ "Performs a partial BFS on model until the search frontier reaches the desired bootstrap size\n\n@param min the desired bootstrap size\n@return a list of found PossibleState\n@throws ModelException if the desired bootstrap can not be reached" ]
[ "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "Set default value\nWill try to retrieve phone number from device", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of...
public boolean isServerAvailable(){ final Client client = getClient(); final ClientResponse response = client.resource(serverURL).get(ClientResponse.class); if(ClientResponse.Status.OK.getStatusCode() == response.getStatus()){ return true; } if(LOG.isErrorEnabled())...
[ "Checks if the dependency server is available\n\n@return true if the server is reachable, false otherwise" ]
[ "Check if a position is within a circle\n\n@param x x position\n@param y y position\n@param centerX center x of circle\n@param centerY center y of circle\n@return true if within circle, false otherwise", "Creates an endpoint reference by duplicating the endpoint reference of a given server.\n@param se...
private void afterBatch(BatchBackend backend) { IndexedTypeSet targetedTypes = searchFactoryImplementor.getIndexedTypesPolymorphic( rootIndexedTypes ); if ( this.optimizeAtEnd ) { backend.optimize( targetedTypes ); } backend.flush( targetedTypes ); }
[ "Operations to do after all subthreads finished their work on index\n\n@param backend" ]
[ "Marks the start of a query identified by the provided correlationId\n\n@param query - Query data\n@param correlationId - Identifier\n@return Start event to pass to the Events systems EventBus", "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerExce...
@Pure public static <T> Iterator<T> filterNull(Iterator<T> unfiltered) { return Iterators.filter(unfiltered, Predicates.notNull()); }
[ "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>." ]
[ "Processes the template for all reference definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"", "Convert an object to a list.\...
private static final void writeJson(Writer os, // Object object, // SerializeConfig config, // SerializeFilter[] filters, // DateFormat dateFormat, // ...
[ "FastJSON does not provide the API so we have to create our own" ]
[ "Performs a HTTP DELETE request.\n\n@return {@link Response}", "Given a block of data representing completed work, this method will\nretrieve a set of TimephasedWork instances which represent\nthe day by day work carried out for a specific resource assignment.\n\n@param calendar calendar on which date calculation...
public static lbvserver[] get(nitro_service service) throws Exception{ lbvserver obj = new lbvserver(); lbvserver[] response = (lbvserver[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the lbvserver resources that are configured on netscaler." ]
[ "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Create a ModelNode representing the operating system the instance is running on.\n\n@return a ModelNode representing the operating system the instance is running on.\n@throws Operatio...
public static Type getArrayComponentType(Type type) { if (type instanceof GenericArrayType) { return GenericArrayType.class.cast(type).getGenericComponentType(); } if (type instanceof Class<?>) { Class<?> clazz = (Class<?>) type; if (clazz.isArray()) { ...
[ "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" ]
[ "Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"...
public static final void setSize(UIObject o, Rect size) { o.setPixelSize(size.w, size.h); }
[ "Sets the size of a UIObject" ]
[ "Shows the Loader component", "Parses command-line and checks if metadata is consistent across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Creates a new form session to edit the file with the given name usi...
public static InterceptorFactory getInstance() { if (instance == null) { instance = new InterceptorFactory(); OjbConfigurator.getInstance().configure(instance); } return instance; }
[ "Returns the instance.\n@return InterceptorFactory" ]
[ "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object", "Reinitializes the shader texture used to fill in\nthe Circle upon drawing.", "Prepare a p...
public void set(float val, Layout.Axis axis) { switch (axis) { case X: x = val; break; case Y: y = val; break; case Z: z = val; break; default: throw ne...
[ "Sets axis dimension\n@param val dimension\n@param axis Axis. It might be either {@link Layout.Axis#X X} or\n{@link Layout.Axis#Y Y} or {@link Layout.Axis#Z Z}" ]
[ "Converts B and X into block matrices and calls the block matrix solve routine.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified.", "Log a message line to the output.", "Prints a stores xml to a file....
public static vpnvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_cachepolicy_binding obj = new vpnvserver_cachepolicy_binding(); obj.set_name(name); vpnvserver_cachepolicy_binding response[] = (vpnvserver_cachepolicy_binding[]) obj.get_resources(service); retur...
[ "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name ." ]
[ "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance", "Updates the model. Ensures that we reset the columns widths.\n\n@param model table model", "This method is c...
SimpleJsonEncoder appendToJSON(final String key, final Object value) { if (closed) { throw new IllegalStateException("Encoder already closed"); } if (value != null) { appendKey(key); if (value instanceof Number) { sb.append(value.toString()); ...
[ "Append field with quotes and escape characters added, if required.\n\n@return this" ]
[ "Validate arguments and state.", "Update the project properties from the project summary task.\n\n@param task project summary task", "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param A The matrix that is...
public static void keyPresent(final String key, final Map<String, ?> map) { if (!map.containsKey(key)) { throw new IllegalStateException( String.format("expected %s to be present", key)); } }
[ "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map." ]
[ "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visi...
public void setEnable(boolean flag) { if (flag == mIsEnabled) return; mIsEnabled = flag; if (getNative() != 0) { NativeComponent.setEnable(getNative(), flag); } if (flag) { onEnable(); } else { ...
[ "Enable or disable this component.\n@param flag true to enable, false to disable.\n@see #enable()\n@see #disable()\n@see #isEnabled()" ]
[ "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "Creates updateable version of capability registry that on publish pushes all changes to main registry\nthis is used to create context local registry that only on completion commits changes to main registry\n\n@return writable...
@Deprecated public int getEntityTypeId(@NotNull final String entityType, final boolean allowCreate) { return getEntityTypeId(txnProvider, entityType, allowCreate); }
[ "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." ]
[ "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", "...
public static List<String> getNodeListFromStringLineSeperateOrSpaceSeperate( String listStr, boolean removeDuplicate) { List<String> nodes = new ArrayList<String>(); for (String token : listStr.split("[\\r?\\n| +]+")) { // 20131025: fix if fqdn has space in the end. ...
[ "Gets the node list from string line seperate or space seperate.\n\n@param listStr\nthe list str\n@param removeDuplicate\nthe remove duplicate\n@return the node list from string line seperate or space seperate" ]
[ "Join the Collection of Strings using the specified delimiter.\n\n@param s\nThe String collection\n@param delimiter\nThe delimiter String\n@return The joined String", "Use this API to add autoscaleaction resources.", "Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the conne...
private void writeCalendars() throws JAXBException { // // Create the new Planner calendar list // Calendars calendars = m_factory.createCalendars(); m_plannerProject.setCalendars(calendars); writeDayTypes(calendars); List<net.sf.mpxj.planner.schema.Calendar> calendar = cale...
[ "This method writes calendar data to a Planner file.\n\n@throws JAXBException on xml creation errors" ]
[ "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "Record a new event.", "Helper method to synchronously invoke a callback\n\n@param call", "use parseJsonResponse instead", "add a converted object to the pool\n\n@param converter\nthe converter that ...
public WebSocketContext sendToTagged(String message, String tag) { return sendToTagged(message, tag, false); }
[ "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context" ]
[ "Producers returned from this method are not validated. Internal use only.", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Allow the given job type to be executed.\n@param jobName the job name as seen\n@param jobType the job type to allow", "This is the main entry poi...
public static Integer convertPathIdentifier(String identifier, Integer profileId) throws Exception { Integer pathId = -1; try { pathId = Integer.parseInt(identifier); } catch (NumberFormatException ne) { // this is OK.. just means it's not a # if (profileId ==...
[ "Obtain the path ID for a profile\n\n@param identifier Can be the path ID, or friendly name\n@param profileId\n@return\n@throws Exception" ]
[ "Creates a PathAddress from the given ModelNode address. The given node is expected to be an address node.\n\n@param node the node (cannot be {@code null})\n\n@return the update identifier", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "M...
public void process(ProjectFile file, Var2Data varData, byte[] fixedData) throws IOException { Props props = getProps(varData); //System.out.println(props); if (props != null) { String viewName = MPPUtility.removeAmpersands(props.getUnicodeString(VIEW_NAME)); byte[] listData...
[ "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException" ]
[ "Adds the value to the Collection mapped to by the key.", "Send parallel task to execution manager.\n\n@param task\nthe parallel task\n@return the batch response from manager", "Use this API to fetch all the appfwsignatures resources that are configured on netscaler.", "Use this API to fetch all the cmpparame...
private void fillQueue(QueueItem item, Integer minStartPosition, Integer maxStartPosition, Integer minEndPosition) throws IOException { int newStartPosition; int newEndPosition; Integer firstRetrievedPosition = null; // remove everything below minStartPosition if ((minStartPosition != null) &&...
[ "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred." ]
[ "This method returns the string representation of an object. In most\ncases this will simply involve calling the normal toString method\non the object, but a couple of exceptions are handled here.\n\n@param o the object to formatted\n@return formatted string representing input Object", "Obtain collection of Param...
void createDirectory(Path path) throws IOException { if (Files.exists(path) && Files.isDirectory(path)) { return; } if (this.readOnly) { throw new FileNotFoundException( "The requested directory \"" + path.toString() + "\" does not exist and we are in read-only mode, so it cannot be crea...
[ "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath" ]
[ "Modify a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder", "Create a style from a list of rules.\n\n@param styleRules the rules", "Build and return a foreign collection bas...
public String getCsv() { StringWriter writer = new StringWriter(); try (CSVWriter csv = new CSVWriter(writer)) { List<String> headers = new ArrayList<>(); for (String col : m_columns) { headers.add(col); } csv.writeNext(headers.toArray(new...
[ "Converts the results to CSV data.\n\n@return the CSV data" ]
[ "Sets the HTML entity translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Sets a listener to inform when the user closes the SearchView.\n\n@param listener the ...
public static URL buildUrl(String scheme, String host, int port, String path, Map<String, String> parameters) throws MalformedURLException { checkSchemeAndPort(scheme, port); StringBuilder buffer = new StringBuilder(); if (!host.startsWith(scheme + "://")) { buffer.append(scheme)...
[ "Build a request URL using a given scheme.\n\n@param scheme the scheme, either {@code http} or {@code https}\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" ]
[ "Get logs for an app by specifying additional parameters.\n@param logRequest See {LogRequestBuilder}\n@return log stream response", "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.", "Use this API to fetch all the configstatus resources that ...
private static void setFields(final Object from, final Object to, final Field[] fields, final boolean accessible, final Map objMap, final Map metadataMap) { for (int f = 0, fieldsLength = fields.length; f < fieldsLength; ++f) { final Field fiel...
[ "copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal" ]
[ "Handles a failed SendData request. This can either be because of the stick actively reporting it\nor because of a time-out of the transaction in the send thread.\n@param originalMessage the original message that was sent", "This method only overrides properties that are specific from Cube like await strategy or ...
public AsciiTable setTargetTranslator(TargetTranslator targetTranslator) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setTargetTranslator(targetTranslator); } } return this; }
[ "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining" ]
[ "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", "used by Error template", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The si...
public static TransactionalProtocolClient.Operation wrap(final ModelNode operation, final OperationMessageHandler messageHandler, final OperationAttachments attachments) { return new TransactionalOperationImpl(operation, messageHandler, attachments); }
[ "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" ]
[ "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc.", "Sets the polling status.\n\n@param status the polling status.\n@param statusCode the HTTP status code\n@throws IllegalArgumentException thrown if status is null.", "Start...
public Sequence compile( String equation , boolean assignment, boolean debug ) { functions.setManagerTemp(managerTemp); Sequence sequence = new Sequence(); TokenList tokens = extractTokens(equation,managerTemp); if( tokens.size() < 3 ) throw new RuntimeException("Too few t...
[ "Parses the equation and compiles it into a sequence which can be executed later on\n@param equation String in simple equation format.\n@param assignment if true an assignment is expected and an exception if thrown if there is non\n@param debug if true it will print out debugging information\n@return Sequence of op...
[ "Extracts the version id from a string\n\n@param versionDir The string\n@return Returns the version id of the directory, else -1", "Create a REST call to artifactory with a generic request\n\n@param artifactoryRequest that should be sent to artifactory\n@return {@link ArtifactoryResponse} artifactory response as ...
@SuppressWarnings("unchecked") public Set<RateType> getRateTypes() { Set<RateType> result = get(KEY_RATE_TYPES, Set.class); if (result == null) { return Collections.emptySet(); } return result; }
[ "Get the rate types set.\n\n@return the rate types set, or an empty array, but never null." ]
[ "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 m...
protected void updateStep(int stepNo) { if ((0 <= stepNo) && (stepNo < m_steps.size())) { Class<? extends A_CmsSetupStep> cls = m_steps.get(stepNo); A_CmsSetupStep step; try { step = cls.getConstructor(I_SetupUiContext.class).newInstance(this); ...
[ "Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to" ]
[ "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Merge two ExecutionStatistics into one. This method is private in order not to be synchronized (merging.\n@param otherStatistics", "Gets the URL of the first service that have been created during the...
public static void createMetadataCache(SlotReference slot, int playlistId, File cache) throws Exception { createMetadataCache(slot, playlistId, cache, null); }
[ "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cac...
[ "Sets the global. Does not add the global to the ExecutionResults.\n\n@param identifier\nThe identifier of the global\n@param object\nThe instance to be set as the global.\n@return", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](...
List getOrderby() { List result = _getOrderby(); Iterator iter = getCriteria().iterator(); Object crit; while (iter.hasNext()) { crit = iter.next(); if (crit instanceof Criteria) { result.addAll(((Criteria) crit)...
[ "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List" ]
[ "Serialize a parameterized object to a JSON String.\n\n@param object The object to serialize.\n@param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "Use this API to delete cacheselector resources of...
public HttpRequestFactory makeClient(DatastoreOptions options) { Credential credential = options.getCredential(); HttpTransport transport = options.getTransport(); if (transport == null) { transport = credential == null ? new NetHttpTransport() : credential.getTransport(); transport = transport ...
[ "Constructs a Google APIs HTTP client with the associated credentials." ]
[ "Returns the query string of a URL from a parameter list.\n\n@param params\nMap with parameters\n@return query string", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Returns a list of your geo-tagged photos.\n\nThis method require...
public static void setDefaultConfiguration(SimpleConfiguration config) { config.setProperty(CONNECTION_ZOOKEEPERS_PROP, CONNECTION_ZOOKEEPERS_DEFAULT); config.setProperty(CONNECTION_ZOOKEEPER_TIMEOUT_PROP, CONNECTION_ZOOKEEPER_TIMEOUT_DEFAULT); config.setProperty(DFS_ROOT_PROP, DFS_ROOT_DEFAULT); config...
[ "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and will not be set." ]
[ "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "Use this API to clear bridgetable.", "This method lists all resources defined in the file.\n\n@param file MPX file", "Remove colProxy from list of pending c...
public CSTNode get( int index ) { CSTNode element = null; if( index < size() ) { element = (CSTNode)elements.get( index ); } return element; }
[ "Returns the specified element, or null." ]
[ "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to", "Finds all nWise combinati...
public static void pow(ComplexPolar_F64 a , int N , ComplexPolar_F64 result ) { result.r = Math.pow(a.r,N); result.theta = N*a.theta; }
[ "Computes the power of a complex number in polar notation\n\n@param a Complex number\n@param N Power it is to be multiplied by\n@param result Result" ]
[ "Logs binary string as hexadecimal", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Creates a field map for tasks.\n\n@param props props data", "Add a new profile with the profileName given.\n\n@param profileName name of new profile\n@return newly create...
public float rotateToFaceCamera(final Widget widget) { final float yaw = getMainCameraRigYaw(); GVRTransform t = getMainCameraRig().getHeadTransform(); widget.rotateWithPivot(t.getRotationW(), 0, t.getRotationY(), 0, 0, 0, 0); return yaw; }
[ "Apply the necessary rotation to the transform so that it is in front of\nthe camera. The actual rotation is performed not using the yaw angle but\nusing equivalent quaternion values for better accuracy. But the yaw angle\nis still returned for backward compatibility.\n\n@param widget The transform to modify.\n@ret...
[ "Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target type\n(typically 1; e.g. in case of a List of Lists, 1 would indicate the\nnested List, whereas 2 would indicate the element of the nested List)\n@return the ge...
public int scrollToNextPage() { Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "scrollToNextPage getCurrentPage() = %d currentIndex = %d", getCurrentPage(), mCurrentItemIndex); if (mSupportScrollByPage) { scrollToPage(getCurrentPage() + 1); } else { Log.w(TAG, "Paginat...
[ "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." ]
[ "Verify that the given queues are all valid.\n\n@param queues the given queues", "Return the number of rows affected.", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Make all elements of a String array upper case.\n@param strings string array, may ...
public ItemRequest<Task> delete(String task) { String path = String.format("/tasks/%s", task); return new ItemRequest<Task>(this, Task.class, path, "DELETE"); }
[ "A specific, existing task can be deleted by making a DELETE request on the\nURL for that task. Deleted tasks go into the \"trash\" of the user making\nthe delete request. Tasks can be recovered from the trash within a period\nof 30 days; afterward they are completely removed from the system.\n\nReturns an empty da...
[ "Perform construction.\n\n@param callbackHandler", "Removes a design document using DesignDocument object from the database.\n\n@param designDocument the design document object to be removed\n@return {@link DesignDocument}", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this...
private void ensurePKsFromHierarchy(ClassDescriptorDef classDef) throws ConstraintException { SequencedHashMap pks = new SequencedHashMap(); for (Iterator it = classDef.getAllExtentClasses(); it.hasNext();) { ClassDescriptorDef subTypeDef = (ClassDescriptorDef)it.next(); ...
[ "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields" ]
[ "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "a small static helper to set the text color to a textView null save\n\n@param colorHolder\n@pa...
public void sendMessageToAgents(String[] agent_name, String msgtype, Object message_content, Connector connector) { HashMap<String, Object> hm = new HashMap<String, Object>(); hm.put("performative", msgtype); hm.put(SFipa.CONTENT, message_content); IComponentIdentifier[] ici ...
[ "This method sends the same message to many agents.\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param connector\nThe connector to get the external access" ]
[ "Use this API to fetch dnsnsecrec resources of given names .", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored...
public static dbdbprofile[] get(nitro_service service) throws Exception{ dbdbprofile obj = new dbdbprofile(); dbdbprofile[] response = (dbdbprofile[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the dbdbprofile resources that are configured on netscaler." ]
[ "Set the pickers selection type.", "Add a content modification.\n\n@param modification the content modification", "Remove a notification message. Recursive until all pending removals have been completed.", "Saves the favorites.\n\n@param favorites the list of favorites to save\n@throws CmsException if somethi...
public boolean checkKeyBelongsToNode(byte[] key, int nodeId) { List<Integer> nodePartitions = cluster.getNodeById(nodeId).getPartitionIds(); List<Integer> replicatingPartitions = getReplicatingPartitionList(key); // remove all partitions from the list, except those that belong to the // ...
[ "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica" ]
[ "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Set the minimum date limit.", "Adds the given some-value restriction to the list of restrictions that\nshould still be s...
public MaterialAccount getAccountAtCurrentPosition(int position) { if (position < 0 || position >= accountManager.size()) throw new RuntimeException("Account Index Overflow"); return findAccountNumber(position); }
[ "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account" ]
[ "Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Set the duration option.\n@param value the duration option to set ({@link EndType} as string).", "Get the collection of contacts fo...
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.getU...
[ "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@para...
[ "Send post request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws IOException the io exception", "Use this API to update vpnsessionaction.", "Parses the dictionary from an InputStream.\n\n@param client The SolrClient instanc...
Response delete(URI uri) { HttpConnection connection = Http.DELETE(uri); return executeToResponse(connection); }
[ "Performs a HTTP DELETE request.\n\n@return {@link Response}" ]
[ "Initial setup of the service worker registration.", "Send a request to another handler internal to the server, getting back the response body and response code.\n\n@param request request to send to another handler.\n@return {@link InternalHttpResponse} containing the response code and body.", "Calculates the B...
@Override public String toNormalizedWildcardString() { String result; if(hasNoStringCache() || (result = stringCache.normalizedWildcardString) == null) { if(hasZone()) { stringCache.normalizedWildcardString = result = toNormalizedString(IPv6StringCache.wildcardNormalizedParams); } else { result = get...
[ "note this string is used by hashCode" ]
[ "performs a SELECT operation against RDBMS.\n@param query the query string.\n@param cld ClassDescriptor providing JDBC information.", "Toggles a style name on a ui object\n\n@param uiObject Object to toggle style on\n@param toggleStyle whether or not to toggle the style name on the object\n@param styleName S...
public ProjectCalendar getByName(String calendarName) { ProjectCalendar calendar = null; if (calendarName != null && calendarName.length() != 0) { Iterator<ProjectCalendar> iter = iterator(); while (iter.hasNext() == true) { calendar = iter.next(); ...
[ "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance" ]
[ "Obtain all groups\n\n@return All Groups", "Obtains a Coptic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Parse a map of objects from a Js...
public void revisitThrowEvents(Definitions def) { List<RootElement> rootElements = def.getRootElements(); List<Signal> toAddSignals = new ArrayList<Signal>(); Set<Error> toAddErrors = new HashSet<Error>(); Set<Escalation> toAddEscalations = new HashSet<Escalation>(); Set<Message>...
[ "Updates event definitions for all throwing events.\n@param def Definitions" ]
[ "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance", "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the...
@Override public boolean check(EmbeddedBrowser browser) { String js = "try{ if(" + expression + "){return '1';}else{" + "return '0';}}catch(e){" + " return '0';}"; try { Object object = browser.executeJavaScript(js); if (object == null) { return false; } return object.toString()...
[ "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs." ]
[ "2-D Double array to integer array.\n\n@param array Double array.\n@return Integer array.", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Executes a query using the given parameters. The query res...
public static base_response update(nitro_service client, gslbsite resource) throws Exception { gslbsite updateresource = new gslbsite(); updateresource.sitename = resource.sitename; updateresource.metricexchange = resource.metricexchange; updateresource.nwmetricexchange = resource.nwmetricexchange; updatereso...
[ "Use this API to update gslbsite." ]
[ "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 T...
private void useSearchService() throws Exception { System.out.println("Searching..."); WebClient wc = WebClient.create("http://localhost:" + port + "/services/personservice/search"); WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(10000000L); wc.accept(MediaType....
[ "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes" ]
[ "Given a BSON document, remove any forbidden fields and return the document. If no changes are\nmade, the original document reference is returned. If changes are made, a cloned copy of the\ndocument with the changes will be returned.\n\n@param document the document from which to remove forbidden fields\n\n@return a...
public void sendSyncModeCommand(int deviceNumber, boolean synced) throws IOException { final DeviceUpdate update = getLatestStatusFor(deviceNumber); if (update == null) { throw new IllegalArgumentException("Device " + deviceNumber + " not found on network."); } sendSyncModeCo...
[ "Tell a device to turn sync on or off.\n\n@param deviceNumber the device whose sync state is to be set\n@param synced {@code} true if sync should be turned on, else it will be turned off\n\n@throws IOException if there is a problem sending the command to the device\n@throws IllegalStateException if the {@code Virtu...
[ "Resolve a resource transformer for a given address.\n\n@param address the address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the resource transformer", "Render the scalebar.\n\n@param mapContext The context of the map for which the scalebar ...
public static AliasOperationTransformer replaceLastElement(final PathElement element) { return create(new AddressTransformer() { @Override public PathAddress transformAddress(final PathAddress original) { final PathAddress address = original.subAddress(0, original.size() ...
[ "Replace the last element of an address with a static path element.\n\n@param element the path element\n@return the operation address transformer" ]
[ "Format the label text.\n\n@param scaleUnit The unit used for the scalebar.\n@param value The scale value.\n@param intervalUnit The scaled unit for the intervals.", "Bounds are calculated locally, can use any filter, but slower than native.\n\n@param filter\nfilter which needs to be applied\n@return the bounds of...
private boolean hasNullifiedFK(FieldDescriptor[] fkFieldDescriptors, Object[] fkValues) { boolean result = true; for (int i = 0; i < fkValues.length; i++) { if (!pb.serviceBrokerHelper().representsNull(fkFieldDescriptors[i], fkValues[i])) { resu...
[ "to avoid creation of unmaterializable proxies" ]
[ "Locate a child block by byte pattern and validate by\nchecking the length of the string we are expecting\nto follow the pattern.\n\n@param bufferIndex start index\n@return true if a child block starts at this point", "Create a new instance of a single input function from an operator character\n@param op Which op...
private void handleIOException(IOException e, String action, int attempt) throws VoldemortException, InterruptedException { if ( // any of the following happens, we need to bubble up // FileSystem instance got closed, somehow e.getMessage().contains("Filesystem closed...
[ "This function is intended to detect the subset of IOException which are not\nconsidered recoverable, in which case we want to bubble up the exception, instead\nof retrying.\n\n@throws VoldemortException" ]
[ "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path", "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 pr...
public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception { base_responses result = null; if (ipv6address != null && ipv6address.length > 0) { nsip6 deleteresources[] = new nsip6[ipv6address.length]; for (int i=0;i<ipv6address.length;i++){ deleteresources[i] = new ns...
[ "Use this API to delete nsip6 resources of given names." ]
[ "Extracts a house holder vector from the column of A and stores it in u\n@param A Complex matrix with householder vectors stored in the lower left triangle\n@param row0 first row in A (implicitly assumed to be r + i0)\n@param row1 last row + 1 in A\n@param col Column in A\n@param u Output array storage\n@param offs...
public static tmtrafficpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding(); obj.set_name(name); tmtrafficpolicy_tmglobal_binding response[] = (tmtrafficpolicy_tmglobal_binding[]) obj.get_resources(service...
[ "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name ." ]
[ "Read metadata by populating an instance of the target class\nusing SAXParser.", "Creates a resource key for given enumeration value. By convention,\nresource bundle for enumerations has the name of enumeration class\nand value identifier is the same as enumeration value name.\n@param value the enumeration value\...
@Override public void onKeyDown(KeyDownEvent event) { char c = MiscUtils.getCharCode(event.getNativeEvent()); onKeyCodeEvent(event, box.getValue()+c); }
[ "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true." ]
[ "Sets the scale vector of the keyframe.", "Old SOAP client uses new SOAP service", "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@p...
public void onCreate(T content, LayoutInflater layoutInflater, ViewGroup parent) { this.content = content; this.rootView = inflate(layoutInflater, parent); if (rootView == null) { throw new NotInflateViewException( "Renderer instances have to return a not null view in inflateView method"); ...
[ "Method called when the renderer is going to be created. This method has the responsibility of\ninflate the xml layout using the layoutInflater and the parent ViewGroup, set itself to the\ntag and call setUpView and hookListeners methods.\n\n@param content to render. If you are using Renderers with RecyclerView wid...
[ "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string.", "Is the given resource type id free?\n@param id to be checked\n@return boolean", "flushes log queue, this actually writes combined log message into system log", "We have received an update...
public static Authentication build(String crypt) throws IllegalArgumentException { if(crypt == null) { return new PlainAuth(null); } String[] value = crypt.split(":"); if(value.length == 2 ) { String type = value[0].trim(); String password = v...
[ "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error" ]
[ "Notifies that a footer item is changed.\n\n@param position the position.", "Puts value at given column\n\n@param value Will be encoded using UTF-8", "In case parent thread spawn thread we need create a new queue\nfor child thread but use the only one root step. In the end all steps will be\nchildren of root st...
public void delete(String photoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_DELETE); parameters.put("photo_id", photoId); // Note: This method requires an HTTP POST request. Response response...
[ "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException" ]
[ "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Me...
public T removeModule(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createModuleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
[ "Remove a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder" ]
[ "Converts the node to JSON\n@return JSON object", "Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.", "Read resource baseline values.\n\n@param row result set row", "Inserts the result of the migration into the migration ...
public CliCommandBuilder setController(final String hostname, final int port) { setController(formatAddress(null, hostname, port)); return this; }
[ "Sets the hostname and port to connect to.\n\n@param hostname the host name\n@param port the port\n\n@return the builder" ]
[ "Unzip a file to a target directory.\n@param zip the path to the zip file.\n@param target the path to the target directory into which the zip file will be unzipped.\n@throws IOException", "Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of ...
@Override public String getInputToParse(String completeInput, int offset, int completionOffset) { int fixedOffset = getOffsetIncludingWhitespace(completeInput, offset, Math.min(completeInput.length(), completionOffset)); return super.getInputToParse(completeInput, fixedOffset, completionOffset); }
[ "Returns the input to parse including the whitespace left to the cursor position since\nit may be relevant to the list of proposals for whitespace sensitive languages." ]
[ "Reads the NTriples file from the reader, pushing statements into\nthe handler.", "This method retrieves an integer 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 integer da...
protected final void _onConnect(WebSocketContext context) { if (null != connectionListener) { connectionListener.onConnect(context); } connectionListenerManager.notifyFreeListeners(context, false); Act.eventBus().emit(new WebSocketConnectEvent(context)); }
[ "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context" ]
[ "Do the set-up that's needed to access Amazon S3.", "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 uploa...
public void addClass(ClassDescriptorDef classDef) { classDef.setOwner(this); // Regardless of the format of the class name, we're using the fully qualified format // This is safe because of the package & class naming constraints of the Java language _classDefs.put(classDef.getQu...
[ "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model" ]
[ "Use this API to fetch all the auditmessages resources that are configured on netscaler.", "Use this API to update nsip6 resources.", "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Coll...
public ItemRequest<Project> removeMembers(String project) { String path = String.format("/projects/%s/removeMembers", project); return new ItemRequest<Project>(this, Project.class, path, "POST"); }
[ "Removes the specified list of members from the project. Returns the updated project record.\n\n@param project The project to remove members from.\n@return Request object" ]
[ "Gets the property and casts to the appropriate type\n\n@param <T>\n@param key The property name\n@param type The property type\n@return The value of the property", "Sets the top and bottom frame margin.\n@param frameTop margin\n@param frameBottom margin\n@return this to allow chaining", "Close it and ignore an...
public void alias( Object ...args ) { if( args.length % 2 == 1 ) throw new RuntimeException("Even number of arguments expected"); for (int i = 0; i < args.length; i += 2) { aliasGeneric( args[i], (String)args[i+1]); } }
[ "Creates multiple aliases at once." ]
[ "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws IntrospectionException", ...
private static Data loadLeapSeconds() { Data bestData = null; URL url = null; try { // this is the new location of the file, working on Java 8, Java 9 class path and Java 9 module path Enumeration<URL> en = Thread.currentThread().getContextClassLoader().getResources("META...
[ "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs" ]
[ "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "Generate JSON format as result of the scan.\n\n@since 1.2", "Adds an additional interface that the proxy should implement. The default\nimplementation will be to forward invocations to the bean inst...
public static String getGroupId(final String gavc) { final int splitter = gavc.indexOf(':'); if(splitter == -1){ return gavc; } return gavc.substring(0, splitter); }
[ "Split an artifact gavc to get the groupId\n@param gavc\n@return String" ]
[ "Invoke an operation on an MBean by name.\nNote that only basic data types are supported for parameter values.\n@param operationName the operation name (can be URL-encoded).\n@param parameterMap the {@link Map} of parameter names and value arrays.\n@return the returned value from the operation.\n@throws JMException...
public static aaagroup_aaauser_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_aaauser_binding obj = new aaagroup_aaauser_binding(); obj.set_groupname(groupname); aaagroup_aaauser_binding response[] = (aaagroup_aaauser_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaagroup_aaauser_binding resources of given name ." ]
[ "Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity Time to maturity.\n@param swapAnnuity The swap annui...
public static sslservicegroup_sslcertkey_binding[] get(nitro_service service, String servicegroupname) throws Exception{ sslservicegroup_sslcertkey_binding obj = new sslservicegroup_sslcertkey_binding(); obj.set_servicegroupname(servicegroupname); sslservicegroup_sslcertkey_binding response[] = (sslservicegroup_s...
[ "Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name ." ]
[ "Compute pose of skeleton at the given time from the animation channels.\n@param timeInSec animation time in seconds.", "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add", "Summarizes balance for the given nodeId to PartitionCount.\n\n@param nodeIdToPartitionCoun...
void setFilters(Map<Object, Object> filters) { for (Object column : filters.keySet()) { Object filterValue = filters.get(column); if ((filterValue != null) && !filterValue.toString().isEmpty() && !m_table.isColumnCollapsed(column)) { m_table.setFilterFieldValue(column, f...
[ "Sets the provided filters.\n@param filters a map \"column id -> filter\"." ]
[ "return a prepared Insert Statement fitting for the given ClassDescriptor", "Extract predecessor data.", "Validate an injection point\n\n@param ij the injection point to validate\n@param beanManager the bean manager", "Retrieves a list of Terms of Service that belong to your Enterprise as an Iterable...
public void loadClassifier(InputStream in, Properties props) throws IOException, ClassCastException, ClassNotFoundException { loadClassifier(new ObjectInputStream(in), props); }
[ "Load a classifier from the specified InputStream. The classifier is\nreinitialized from the flags serialized in the classifier. This does not\nclose the InputStream.\n\n@param in\nThe InputStream to load the serialized classifier from\n@param props\nThis Properties object will be used to update the\nSeqClassifierF...
[ "Returns the configured sort options, or the empty list if no such options are configured.\n@return The configured sort options, or the empty list if no such options are configured.", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Adds the spec...
protected final void sendObjectToSocket(Object objectToSend, WriteCallback cb) { Session sess = this.getSession(); if (sess != null) { String json; try { json = this.mapper.writeValueAsString(objectToSend); } catch (JsonProcessingException e) { ...
[ "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message" ]
[ "Authenticates the API connection for Box Developer Edition.", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specif...
@Override public boolean setA(DMatrixRBlock A) { if( A.numRows < A.numCols ) throw new IllegalArgumentException("Number of rows must be more than or equal to the number of columns. " + "Can't solve an underdetermined system."); if( !decomposer.decompose(A)) ...
[ "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." ]
[ "Returns the y-coordinate of a vertex tangent.\n\n@param vertex the vertex index\n@return the y coordinate", "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_versio...
public synchronized void stop() { if (isRunning()) { running.set(false); DeviceFinder.getInstance().removeDeviceAnnouncementListener(announcementListener); dbServerPorts.clear(); for (Client client : openClients.values()) { try { ...
[ "Stop offering shared dbserver sessions." ]
[ "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Write a resource.\n\n@param record resource instance\n@throws IOException", "Use this API to fetch wisite_farmname_binding resources of given name .", "Extract the subscription ID from a resource ID string.\n@para...
public synchronized void setSendingStatus(boolean send) throws IOException { if (isSendingStatus() == send) { return; } if (send) { // Start sending status packets. ensureRunning(); if ((getDeviceNumber() < 1) || (getDeviceNumber() > 4)) { th...
[ "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which al...
[ "Executes the API action \"wbsetlabel\" for the given parameters.\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...
public Response save() throws RequestException, LocalOperationException { Map<String, Object> templateData = new HashMap<String, Object>(); templateData.put("name", name); options.put("steps", steps.toMap()); templateData.put("template", options); Request request = new Request(...
[ "Submits the configured template to Transloadit.\n\n@return {@link Response}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
[ "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "Establish connection to the ChromeCast device", "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Returns the names of the bun...
public ModelNode buildExecutableRequest(CommandContext ctx) throws Exception { try { for (FailureDescProvider h : providers) { effectiveProviders.add(h); } // In case some key-store needs to be persisted for (String ks : ksToStore) { ...
[ "Sort and order steps to avoid unwanted generation" ]
[ "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty.", "Adds api doc roots from a link. The folder reffered by the link should contain a package-list\nfile that will be parsed in order to add api doc roots to this configuration\n@param packageL...
public PhotoContext getContext(String photoId, String groupId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); parameters.put("group_id", groupId); ...
[ "Get the context for a photo in the group pool.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param groupId\nThe group ID\n@return The PhotoContext\n@throws FlickrException" ]
[ "Build a request URL using a given scheme.\n\n@param scheme the scheme, either {@code http} or {@code https}\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", "returns a new segment masked by the given mask\n\n...
public ILog getOrCreateLog(String topic, int partition) throws IOException { final int configPartitionNumber = getPartition(topic); if (partition >= configPartitionNumber) { throw new IOException("partition is bigger than the number of configuration: " + configPartitionNumber); } ...
[ "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException" ]
[ "Returns the output path specified on the javadoc options", "Reads an HTML snippet with the given name.\n\n@return the HTML data", "Returns an entry of kind snippet with the given proposal and label and the prefix from the context, or null if the proposal is not valid.\n@since 2.16", "Start listening for devi...
public void saveFile(File file, String type) { if (file != null) { m_treeController.saveFile(file, type); } }
[ "Saves the project file displayed in this panel.\n\n@param file target file\n@param type file type" ]
[ "Returns if a MongoDB document is a todo item.", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Consumes th...
public static base_responses add(nitro_service client, cmppolicylabel resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cmppolicylabel addresources[] = new cmppolicylabel[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] =...
[ "Use this API to add cmppolicylabel resources." ]
[ "Updates event definitions for all throwing events.\n@param def Definitions", "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved.", "The parameter must never be null\n\n@param queryParameters", "Get an ObjectReferenceDescriptor by name BRJ\n@param...
public void logAttributeWarning(PathAddress address, Set<String> attributes) { logAttributeWarning(address, null, null, attributes); }
[ "Log a warning for the resource at the provided address and the given attributes. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attributes attributes we ar...
[ "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 ...
List<MwDumpFile> mergeDumpLists(List<MwDumpFile> localDumps, List<MwDumpFile> onlineDumps) { List<MwDumpFile> result = new ArrayList<>(localDumps); HashSet<String> localDateStamps = new HashSet<>(); for (MwDumpFile dumpFile : localDumps) { localDateStamps.add(dumpFile.getDateStamp()); } for (MwDumpFile...
[ "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files" ]
[ "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) Stats will be returned for this date. A day ac...
private boolean checkAndSetManifestAndImagePathCandidates(String manifestPath, String candidateImagePath, ArtifactoryDependenciesClient dependenciesClient, TaskListener listener) throws IOException { String candidateManifest = getManifestFromArtifactory(dependenciesClient, manifestPath); if (candidateMa...
[ "Check if the provided manifestPath is correct.\nSet the manifest and imagePath in case of the correct manifest.\n@param manifestPath\n@param candidateImagePath\n@param dependenciesClient\n@param listener\n@return true if found the correct manifest\n@throws IOException" ]
[ "Return true only if the node has any of the named annotations\n@param node - the AST Node to check\n@param names - the names of the annotations\n@return true only if the node has any of the named annotations", "Sets the body filter for this ID\n\n@param pathId ID of path\n@param bodyFilter Body filter to set", ...
public static void main(String[] args) throws Exception { System.err.println("CRFBiasedClassifier invoked at " + new Date() + " with arguments:"); for (String arg : args) { System.err.print(" " + arg); } System.err.println(); Properties props = StringUtils.argsToProperties...
[ "The main method, which is essentially the same as in CRFClassifier. See the class documentation." ]
[ "Deletes a FilePath file.\n\n@param workspace The build workspace.\n@param path The path in the workspace.\n@throws IOException In case of missing file.", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadat...
static String fromPackageName(String packageName) { List<String> tokens = tokenOf(packageName); return fromTokens(tokens); }
[ "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name" ]
[ "Log a fatal message.", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it being in the list and false for it not being in the list", "Modifies the ...