query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static base_responses disable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 disableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ disableresources[i] = new nsacl6(); disableresources[i].acl6name = acl6name[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
[ "Use this API to disable nsacl6 resources of given names." ]
[ "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "Use this API to fetch all the sslparameter resources that are configured on netscaler.", "add trace information for received frame", "Make this item active.", "Sets the jdbc connection to use.\n\n@param jcd The connection to use\n@throws PlatformException If the target database cannot be handled with torque", "This must be called with the write lock held.\n@param requirement the requirement", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position.", "Creates a new file.\n\n@param inputStream the stream instance that contains the data.\n@param fileName the name of the file to be created.\n@param fileSize the size of the file that will be uploaded.\n@return the created file instance.\n@throws InterruptedException when a thread execution is interrupted.\n@throws IOException when reading a stream throws exception." ]
public void setKnots(int[] x, int[] y, byte[] types, int offset, int count) { numKnots = count; xKnots = new int[numKnots]; yKnots = new int[numKnots]; knotTypes = new byte[numKnots]; System.arraycopy(x, offset, xKnots, 0, numKnots); System.arraycopy(y, offset, yKnots, 0, numKnots); System.arraycopy(types, offset, knotTypes, 0, numKnots); sortKnots(); rebuildGradient(); }
[ "Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots" ]
[ "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "This method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions.\n\n@param date Date to be tested\n@return boolean value", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Use this API to fetch ipset_nsip6_binding resources of given name .", "Accesses a property from the DB configuration for the selected DB.\n\n@param name the name of the property\n@return the value of the property", "Returns a new iterable filtering any null references.\n\n@param unfiltered\nthe unfiltered iterable. May not be <code>null</code>.\n@return an unmodifiable iterable containing all elements of the original iterable without any <code>null</code> references. Never <code>null</code>.", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code" ]
@Override public ImageSource apply(ImageSource input) { int w = input.getWidth(); int h = input.getHeight(); MatrixSource output = new MatrixSource(input); Vector3 n = new Vector3(0, 0, 1); for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { if (x < border || x == w - border || y < border || y == h - border) { output.setRGB(x, y, VectorHelper.Z_NORMAL); continue; } float s0 = input.getR(x - 1, y + 1); float s1 = input.getR(x, y + 1); float s2 = input.getR(x + 1, y + 1); float s3 = input.getR(x - 1, y); float s5 = input.getR(x + 1, y); float s6 = input.getR(x - 1, y - 1); float s7 = input.getR(x, y - 1); float s8 = input.getR(x + 1, y - 1); float nx = -(s2 - s0 + 2 * (s5 - s3) + s8 - s6); float ny = -(s6 - s0 + 2 * (s7 - s1) + s8 - s2); n.set(nx, ny, scale); n.nor(); int rgb = VectorHelper.vectorToColor(n); output.setRGB(x, y, rgb); } } return new MatrixSource(output); }
[ "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map" ]
[ "Finds and returns the date for the given event summary and year within the given ics file,\nor null if not present.", "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "Get stream for URL only\n\n@param stringUrl URL to get content\n@return the input stream\n@throws IOException I/O error happened", "this method looks up the appropriate JDOClass for a given persistent Class.\nIt uses the JDOModel to perfom this lookup.\n@param c the persistent Class\n@return the JDOCLass object", "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "helper extracts the cursor data from the db object", "Set work connection.\n\n@param db the db setup bean", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance" ]
public List<String> split(String s) { List<String> result = new ArrayList<String>(); if (s == null) { return result; } boolean seenEscape = false; // Used to detect if the last char was a separator, // in which case we append an empty string boolean seenSeparator = false; StringBuilder sb = new StringBuilder(); for (int i = 0; i < s.length(); i++) { seenSeparator = false; char c = s.charAt(i); if (seenEscape) { if (c == escapeChar || c == separator) { sb.append(c); } else { sb.append(escapeChar).append(c); } seenEscape = false; } else { if (c == escapeChar) { seenEscape = true; } else if (c == separator) { if (sb.length() == 0 && convertEmptyToNull) { result.add(null); } else { result.add(sb.toString()); } sb.setLength(0); seenSeparator = true; } else { sb.append(c); } } } // Clean up if (seenEscape) { sb.append(escapeChar); } if (sb.length() > 0 || seenSeparator) { if (sb.length() == 0 && convertEmptyToNull) { result.add(null); } else { result.add(sb.toString()); } } return result; }
[ "Splits the given string." ]
[ "We have more input since wait started", "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "Adds the supplied marker to the map.\n\n@param marker", "Samples without replacement from a collection.\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "Parse currency.\n\n@param value currency value\n@return currency value", "Determines whether the object is a materialized object, i.e. no proxy or a\nproxy that has already been loaded from the database.\n\n@param object The object to test\n@return <code>true</code> if the object is materialized", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by the specified comparator.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@param comparator\nthe comparator to be used. May be <code>null</code> to indicate that the natural ordering of the\nelements should be used.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List, Comparator)\n@see #sort(Iterable)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List, Comparator)\n@since 2.7", "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy" ]
private ArrayTypeSignature getArrayTypeSignature( GenericArrayType genericArrayType) { FullTypeSignature componentTypeSignature = getFullTypeSignature(genericArrayType .getGenericComponentType()); ArrayTypeSignature arrayTypeSignature = new ArrayTypeSignature( componentTypeSignature); return arrayTypeSignature; }
[ "get the ArrayTypeSignature corresponding to given generic array type\n\n@param genericArrayType\n@return" ]
[ "private int numCalls = 0;", "Adds a measure to the crosstab. A crosstab can have many measures. DJ will lay out one measure above\nthe other.\n\nA measure is what is shown on each intersection of a column and a row. A calculation is performed to\nall occurrences in the datasource where the column and row values matches (between elements)\n\nThe only difference between the prior methods is that this method sets \"visible\" to false\n\n@param property\n@param className\n@param title\n@return", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2", "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "Removes all candidates from this collection which are not\nassociated with an initialising method.\n\n@return a {@code Collection} containing the removed\nunassociated candidates. This list is empty if none\nwere removed, i. e. the result is never {@code null}.", "Stores the gathered usage statistics about property uses to a CSV file.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Log an audit record of this operation.", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object" ]
public static final Integer getInteger(Locale locale, String key) { ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale); return ((Integer) bundle.getObject(key)); }
[ "Convenience method for retrieving an Integer resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
[ "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "Set the view frustum to pick against from the field of view, aspect\nratio and near, far clip planes. The viewpoint of the frustum\nis the center of the scene object the picker is attached to.\nThe view direction is the forward direction of that scene object.\nThe frustum will pick what a camera attached to the scene object\nwith that view frustum would see. If the frustum is not attached\nto a scene object, it defaults to the view frustum of the main camera of the scene.\n\n@param fovy vertical field of view in degrees\n@param aspect aspect ratio (width / height)", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Get the items for the key.\n\n@param key\n@return the items for the given key", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Formats a date or a time range according to the local conventions.\n\nYou should ensure that start/end are in the same timezone; formatDateRange()\ndoesn't handle start/end in different timezones well.\n\nSee {@link android.text.format.DateUtils#formatDateRange} for full docs.\n\n@param context the context is required only if the time is shown\n@param start the start time\n@param end the end time\n@param flags a bit mask of options\n@return a string containing the formatted date/time range", "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@param mv\nthe method visitor to be used to visit the try catch block\nannotations.\n@param context\ninformation about the class being parsed.\n@param visible\nif the type annotation table to parse contains runtime visible\nannotations.\n@return the start offset of each type annotation in the parsed table.", "Clears all checked widgets in the group" ]
public static int scanright(Color color, int height, int width, int col, PixelsExtractor f, int tolerance) { if (col == width || !PixelTools.colorMatches(color, tolerance, f.apply(new Area(col, 0, 1, height)))) return col; else return scanright(color, height, width, col + 1, f, tolerance); }
[ "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color." ]
[ "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Use this API to disable clusterinstance of given name.", "Utility function that checks if store names are valid on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@param storeNames Store names to check", "Retrieve a map of custom document properties.\n\n@return the Document Summary Information Map", "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Helper to read an optional String value list.\n@param path The XML path of the element to read.\n@return The String list stored in the XML, or <code>null</code> if the value could not be read.", "Use this API to unset the properties of bridgetable resources.\nProperties that need to be unset are specified in args array.", "Stops the compressor." ]
protected boolean intersect(GVRSceneObject.BoundingVolume bv1, GVRSceneObject.BoundingVolume bv2) { return (bv1.maxCorner.x >= bv2.minCorner.x) && (bv1.maxCorner.y >= bv2.minCorner.y) && (bv1.maxCorner.z >= bv2.minCorner.z) && (bv1.minCorner.x <= bv2.maxCorner.x) && (bv1.minCorner.y <= bv2.maxCorner.y) && (bv1.minCorner.z <= bv2.maxCorner.z); }
[ "Determines whether or not two axially aligned bounding boxes in\nthe same coordinate space intersect.\n@param bv1 first bounding volume to test.\n@param bv2 second bounding volume to test.\n@return true if the boxes intersect, false if not." ]
[ "Return a list of unique values for a namespace and predicate.\n\nThis method does not require authentication.\n\n@param namespace\nThe namespace that all values should be restricted to.\n@param predicate\nThe predicate that all values should be restricted to.\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList\n@throws FlickrException", "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return", "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds.", "Searches the type and its sub types for the nearest ojb-persistent type and returns its name.\n\n@param type The type to search\n@return The qualified name of the found type or <code>null</code> if no type has been found", "Format the message using the pattern and the arguments.\n\n@param pattern the pattern in the format of \"{1} this is a {2}\"\n@param arguments the arguments.\n@return the formatted result.", "Initializes the bean name defaulted", "Adds a new floating point variable. If one already has the same name it is written over.\n@param value Value of the number\n@param name Name in code", "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2" ]
static String md5(String input) { if (input == null || input.length() == 0) { throw new IllegalArgumentException("Input string must not be blank."); } try { MessageDigest algorithm = MessageDigest.getInstance("MD5"); algorithm.reset(); algorithm.update(input.getBytes()); byte[] messageDigest = algorithm.digest(); StringBuilder hexString = new StringBuilder(); for (byte messageByte : messageDigest) { hexString.append(Integer.toHexString((messageByte & 0xFF) | 0x100).substring(1, 3)); } return hexString.toString(); } catch (Exception e) { throw new RuntimeException(e); } }
[ "Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash of input.\n@throws IllegalArgumentException if {@code input} is blank." ]
[ "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration", "Abort and close the transaction.\nCalling abort abandons all persistent object modifications and releases the\nassociated locks.\nIf transaction is not in progress a TransactionNotInProgressException is thrown", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "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", "Use this API to fetch all the ipset resources that are configured on netscaler.", "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Removes and returns a random element from the set.\n@return the removed element, or <code>null</code> when the key does not exist.", "Use this API to fetch all the ntpserver resources that are configured on netscaler." ]
public static Project dependsOnArtifact(Artifact artifact) { Project project = new Project(); project.artifact = artifact; return project; }
[ "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return" ]
[ "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly.", "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Convert the Primavera string representation of a UUID into a Java UUID instance.\n\n@param value Primavera UUID\n@return Java UUID instance", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server.", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "Read the domain controller data from an S3 file.\n\n@param directoryName the name of the directory in the bucket that contains the S3 file\n@return the domain controller data", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "This method merges together assignment data for the same cost.\n\n@param list assignment data" ]
public int getPropertyId(@NotNull final PersistentStoreTransaction txn, @NotNull final String propertyName, final boolean allowCreate) { return allowCreate ? propertyIds.getOrAllocateId(txn, propertyName) : propertyIds.getId(txn, propertyName); }
[ "Gets id of a property and creates the new one if necessary.\n\n@param txn transaction\n@param propertyName name of the property.\n@param allowCreate if set to true and if there is no property named as propertyName,\ncreate the new id for the propertyName.\n@return < 0 if there is no such property and create=false, else id of the property" ]
[ "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Initialize the local plugins registry\n@param context the servlet context necessary to grab\nthe files inside the servlet.\n@return the set of local plugins organized by name", "Static method to convert a binary operator into a string.\n\n@param oper is the binary comparison operator to be converted", "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "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", "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment.", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object", "Abort the daemon\n\n@param error the error causing the abortion", "Set the scrollbar used for vertical scrolling.\n\n@param scrollbar the scrollbar, or null to clear it\n@param width the width of the scrollbar in pixels" ]
@NotThreadsafe private void initFileStreams(int chunkId) { /** * {@link Set#add(Object)} returns false if the element already existed in the set. * This ensures we initialize the resources for each chunk only once. */ if (chunksHandled.add(chunkId)) { try { this.indexFileSizeInBytes[chunkId] = 0L; this.valueFileSizeInBytes[chunkId] = 0L; this.checkSumDigestIndex[chunkId] = CheckSum.getInstance(checkSumType); this.checkSumDigestValue[chunkId] = CheckSum.getInstance(checkSumType); this.position[chunkId] = 0; this.taskIndexFileName[chunkId] = new Path(FileOutputFormat.getOutputPath(conf), getStoreName() + "." + Integer.toString(chunkId) + "_" + this.taskId + INDEX_FILE_EXTENSION + fileExtension); this.taskValueFileName[chunkId] = new Path(FileOutputFormat.getOutputPath(conf), getStoreName() + "." + Integer.toString(chunkId) + "_" + this.taskId + DATA_FILE_EXTENSION + fileExtension); if(this.fs == null) this.fs = this.taskIndexFileName[chunkId].getFileSystem(conf); if(isValidCompressionEnabled) { this.indexFileStream[chunkId] = new DataOutputStream(new BufferedOutputStream(new GZIPOutputStream(fs.create(this.taskIndexFileName[chunkId]), DEFAULT_BUFFER_SIZE))); this.valueFileStream[chunkId] = new DataOutputStream(new BufferedOutputStream(new GZIPOutputStream(fs.create(this.taskValueFileName[chunkId]), DEFAULT_BUFFER_SIZE))); } else { this.indexFileStream[chunkId] = fs.create(this.taskIndexFileName[chunkId]); this.valueFileStream[chunkId] = fs.create(this.taskValueFileName[chunkId]); } fs.setPermission(this.taskIndexFileName[chunkId], new FsPermission(HadoopStoreBuilder.HADOOP_FILE_PERMISSION)); logger.info("Setting permission to 755 for " + this.taskIndexFileName[chunkId]); fs.setPermission(this.taskValueFileName[chunkId], new FsPermission(HadoopStoreBuilder.HADOOP_FILE_PERMISSION)); logger.info("Setting permission to 755 for " + this.taskValueFileName[chunkId]); logger.info("Opening " + this.taskIndexFileName[chunkId] + " and " + this.taskValueFileName[chunkId] + " for writing."); } catch(IOException e) { throw new RuntimeException("Failed to open Input/OutputStream", e); } } }
[ "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem." ]
[ "Map event type enum.\n\n@param eventType the event type\n@return the event type enum", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.", "Send the message with the given attributes and the given body using the specified SMTP settings\n\n@param to Destination address(es)\n@param from Sender address\n@param subject Message subject\n@param body Message content. May either be a MimeMultipart or another body that java mail recognizes\n@param contentType MIME content type of body\n@param serverSetup Server settings to use for connecting to the SMTP server", "end AnchorImplementation class", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape.", "Finds the last entry of the address list and returns it as a property.\n\n@param address the address to get the last part of\n\n@return the last part of the address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty", "Create a RemoteWebDriver backed EmbeddedBrowser.\n\n@param hubUrl Url of the server.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points", "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException" ]
public static List<Object> listOfEntities(SharedSessionContractImplementor session, Type[] resultTypes, ClosableIterator<Tuple> tuples) { Class<?> returnedClass = resultTypes[0].getReturnedClass(); TupleBasedEntityLoader loader = getLoader( session, returnedClass ); OgmLoadingContext ogmLoadingContext = new OgmLoadingContext(); ogmLoadingContext.setTuples( getTuplesAsList( tuples ) ); return loader.loadEntitiesFromTuples( session, LockOptions.NONE, ogmLoadingContext ); }
[ "At the moment we only support the case where one entity type is returned" ]
[ "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name .", "Removes an element from the observation matrix.\n\n@param index which element is to be removed", "Creates a new subtask and adds it to the parent task. Returns the full record\nfor the newly created subtask.\n\n@param task The task to add a subtask to.\n@return Request object", "Deserialize an `AppDescriptor` from byte array\n\n@param bytes\nthe byte array\n@return\nan `AppDescriptor` instance", "do 'Distinct' operation\n\n@param queryDescriptor descriptor of MongoDB query\n@param collection collection for execute the operation\n@return result iterator\n@see <a href =\"https://docs.mongodb.com/manual/reference/method/db.collection.distinct/\">distinct</a>", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data", "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count." ]
public <T> T find(Class<T> classType, String id) { return db.find(classType, id); }
[ "Retrieve the document with the specified ID from the database and deserialize to an\ninstance of the POJO of type T.\n\n@param <T> object type\n@param classType the class of type T\n@param id the document id\n@return an object of type T\n@throws NoDocumentException if the document is not found in the database\n@see #find(Class, String, String)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/document.html#read\"\ntarget=\"_blank\">Documents - read</a>" ]
[ "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant", "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Finds an entity given its primary key.\n\n@throws RowNotFoundException\nIf no such object was found.\n@throws TooManyRowsException\nIf more that one object was returned for the given ID.", "Send message to socket's output stream.\n\n@param messageToSend message to send.\n\n@return {@code true} if message was sent successfully, {@code false} otherwise.", "scans right to left until max to maintain latest max values for the multi-value property specified by key.\n\n@param key the property key\n@param left original list\n@param right new list\n@param remove if remove new list from original\n@param vr ValidationResult for error and merged list return", "Clones the given reference.\n\n@param refDef The reference descriptor\n@param prefix A prefix for the name\n@return The cloned reference", "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed", "Sets the bean store\n\n@param beanStore The bean store" ]
public static systemglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationldappolicy_binding obj = new systemglobal_authenticationldappolicy_binding(); systemglobal_authenticationldappolicy_binding response[] = (systemglobal_authenticationldappolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources." ]
[ "Add a newline to this sequence according to the configured lineDelimiter if the last line contains\nsomething besides whitespace.", "Used by Pipeline jobs only", "Fill the attributes in the processor.\n\n@param processors The processors\n@param initialAttributes The attributes\n@see RequireAttributes\n@see ProvideAttributes", "Sets the elements in this matrix to be equal to the elements in the passed in matrix.\nBoth matrix must have the same dimension.\n\n@param a The matrix whose value this matrix is being set to.", "Returns the integer value o the given belief", "Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockMode The lock mode\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Performs a null edit on a property. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param propertyId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false.", "Get a property as a string or throw an exception.\n\n@param key the property name" ]
public void setSpecularIntensity(float r, float g, float b, float a) { setVec4("specular_intensity", r, g, b, a); }
[ "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)" ]
[ "Returns the path to java executable.", "Sets the last operation response.\n\n@param response the last operation response.", "Reads next frame image.", "Returns an empty model of a Dependency in Json\n\n@return String\n@throws IOException", "Sets the values of this vector to those of v1.\n\n@param v1\nvector whose values are copied", "Computes the inner product of A times A and stores the results in B. The inner product is symmetric and this\nfunction will only store the lower triangle. The value of the upper triangular matrix is undefined.\n\n<p>B = A<sup>T</sup>*A</sup>\n\n@param A (Input) Matrix\n@param B (Output) Storage for output.", "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Adds descriptions to the item.\n\n@param descriptions\nthe descriptions to add" ]
public static SpinXmlElement XML(Object input) { return SpinFactory.INSTANCE.createSpin(input, DataFormats.xml()); }
[ "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be XML.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')" ]
[ "Swap the current version folder for a new one\n\n@param newStoreDirectory The path to the new version directory", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Add a task to the project.\n\n@return new task instance", "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;() { });", "Utils for making collections out of arrays of primitive types.", "Returns the value of an option, or the default if the value is null or the key is not part of the map.\n@param configOptions the map with the config options.\n@param optionKey the option to get the value of\n@param defaultValue the default value to return if the option is not set.\n@return the value of an option, or the default if the value is null or the key is not part of the map.", "Makes the scene object pickable by eyes. However, the object has to be touchable to process\nthe touch events.\n\n@param sceneObject", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient" ]
public static void showUserInfo(CmsSessionInfo session) { final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide); CmsUserInfoDialog dialog = new CmsUserInfoDialog(session, new Runnable() { public void run() { window.close(); } }); window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_SHOW_USER_0)); window.setContent(dialog); A_CmsUI.get().addWindow(window); }
[ "Shows a dialog with user information for given session.\n\n@param session to show information for" ]
[ "Convert an Object to a Date.", "Term value.\n\n@param term\nthe term\n@return the string", "blocks until there is a connection", "Set the individual dates where the event should take place.\n@param dates the dates to set.", "Create the ResourceIgnoredTransformationRegistry when fetching missing content, only including relevant pieces\nto a server-config.\n\n@param rc the resolution context\n@param delegate the delegate ignored resource transformation registry for manually ignored resources\n@return", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "Calculates all dates of the series.\n@return all dates of the series in milliseconds.", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported." ]
public static Object executeXPath(Node document, String xpathExpression, Map<String, String> namespaceMapping, QName result) throws XPathException, MarshallingException { NamespaceMapContext mapContext = new NamespaceMapContext(namespaceMapping); try { XPathFactory xPathfactory = XPathFactory.newInstance(); XPath xpath = xPathfactory.newXPath(); xpath.setNamespaceContext(mapContext); XPathExpression expr = xpath.compile(xpathExpression); return executeXPath(document, expr, result); } catch (XPathExpressionException e) { throw new XPathException("Xpath(" + xpathExpression + ") cannot be compiled", e); } catch (Exception e) { throw new MarshallingException("Exception unmarshalling XML.", e); } }
[ "Executes the given xpath and returns the result with the type specified." ]
[ "Read the name of a table and prepare to populate it with column data.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Adds a free connection.\n\n@param connectionHandle\n@throws SQLException on error", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way", "Checks if a new version of the file can be uploaded with the specified name and size.\n@param name the new name for the file.\n@param fileSize the size of the new version content in bytes.\n@return whether or not the file version can be uploaded.", "Adds a collection of listeners to the current project.\n\n@param listeners collection of listeners", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases", "Sets the yearly absolute date.\n\n@param date yearly absolute date" ]
public int getBoneIndex(GVRSceneObject bone) { for (int i = 0; i < getNumBones(); ++i) if (mBones[i] == bone) return i; return -1; }
[ "Get the bone index for the given scene object.\n\n@param bone GVRSceneObject bone to search for\n@return bone index or -1 for root bone.\n@see #getParentBoneIndex" ]
[ "Returns the perma link for the given resource and optional detail content.<p<\n\n@param cms the CMS context to use\n@param resourceName the page to generate the perma link for\n@param detailContentId the structure id of the detail content (may be null)\n\n@return the perma link", "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return", "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2", "On host controller reload, remove a not running server registered in the process controller declared as down.", "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "Get the service name of a top-level deployment unit.\n\n@param name the simple name of the deployment\n@param phase the deployment phase\n@return the service name", "Add new control at the end of control bar with specified touch listener and resource.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param listener touch listener", "Adds an artifact to the module.\n\n<P>\nINFO: If the module is promoted, all added artifacts will be promoted.\n\n@param artifact Artifact" ]
public static String makeAsciiTable(Object[][] table, Object[] rowLabels, Object[] colLabels, int padLeft, int padRight, boolean tsv) { StringBuilder buff = new StringBuilder(); // top row buff.append(makeAsciiTableCell("", padLeft, padRight, tsv)); // the top left cell for (int j = 0; j < table[0].length; j++) { // assume table is a rectangular matrix buff.append(makeAsciiTableCell(colLabels[j], padLeft, padRight, (j != table[0].length - 1) && tsv)); } buff.append('\n'); // all other rows for (int i = 0; i < table.length; i++) { // one row buff.append(makeAsciiTableCell(rowLabels[i], padLeft, padRight, tsv)); for (int j = 0; j < table[i].length; j++) { buff.append(makeAsciiTableCell(table[i][j], padLeft, padRight, (j != table[0].length - 1) && tsv)); } buff.append('\n'); } return buff.toString(); }
[ "Returns an text table containing the matrix of Strings passed in.\nThe first dimension of the matrix should represent the rows, and the\nsecond dimension the columns." ]
[ "Get a list of tags for the specified photo.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param photoId\nThe photo ID\n@return The collection of Tag objects", "Specifies the container object class to be instantiated\n\n@param containerObjectClass\ncontainer object class to be instantiated\n\n@return the current builder instance", "Use this API to fetch all the rsskeytype resources that are configured on netscaler.", "Adds descriptions to the item.\n\n@param descriptions\nthe descriptions to add", "Creates the .story file necessary for every Beast Test Case.\n\n@param scenarioName\n- The name of the scenario, with spaces\n@param srcTestRootFolder\n- The test root folder\n@param packagePath\n- The package of the BeastTestCase\n@param scenarioDescription\n- the scenario name\n@param givenDescription\n- The given description\n@param whenDescription\n- The when description\n@param thenDescription\n- The then description\n@throws BeastException", "This method merges together assignment data for the same cost.\n\n@param list assignment data", "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException" ]
@SuppressWarnings("unused") public static void changeCredentials(String accountID, String token) { changeCredentials(accountID, token, null); }
[ "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token" ]
[ "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.", "Returns the configured page sizes, or the default page size if no core is configured.\n@return The configured page sizes, or the default page size if no core is configured.", "Empirical data from 3.x, actual =40", "Reads a UUID from a JSON object.\n\nReturns null if the JSON value for the given key is not present or not a valid UUID\n\n@param obj the JSON object\n@param key the JSON key\n\n@return the UUID", "Get result report.\n\n@param reportURI the URI of the report\n@return the result report.", "Assembles an avro format string of single store config from store\nproperties\n\n@param props Store properties\n@return String in avro format that contains single store configs", "Resolve the given string using any plugin and the DMR resolve method", "Returns the AirMapView implementation as requested by the mapType argument. Use this method if\nyou need to request a specific AirMapView implementation that is not necessarily the preferred\ntype. For example, you can use it to explicit request a web-based map implementation.\n\n@param mapType Map type for the requested AirMapView implementation.\n@return An {@link AirMapViewBuilder} for the requested {@link AirMapViewTypes} mapType.", "Get a date range that correctly handles the case where the end time\nis midnight. In this instance the end time should be the start of the\nnext day.\n\n@param hours calendar hours\n@param start start date\n@param end end date" ]
public Photoset getInfo(String photosetId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); parameters.put("photoset_id", photosetId); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosetElement = response.getPayload(); Photoset photoset = new Photoset(); photoset.setId(photosetElement.getAttribute("id")); User owner = new User(); owner.setId(photosetElement.getAttribute("owner")); photoset.setOwner(owner); Photo primaryPhoto = new Photo(); primaryPhoto.setId(photosetElement.getAttribute("primary")); primaryPhoto.setSecret(photosetElement.getAttribute("secret")); // TODO verify that this is the secret for the photo primaryPhoto.setServer(photosetElement.getAttribute("server")); // TODO verify that this is the server for the photo primaryPhoto.setFarm(photosetElement.getAttribute("farm")); photoset.setPrimaryPhoto(primaryPhoto); // TODO remove secret/server/farm from photoset? // It's rather related to the primaryPhoto, then to the photoset itself. photoset.setSecret(photosetElement.getAttribute("secret")); photoset.setServer(photosetElement.getAttribute("server")); photoset.setFarm(photosetElement.getAttribute("farm")); photoset.setPhotoCount(photosetElement.getAttribute("count_photos")); photoset.setVideoCount(Integer.parseInt(photosetElement.getAttribute("count_videos"))); photoset.setViewCount(Integer.parseInt(photosetElement.getAttribute("count_views"))); photoset.setCommentCount(Integer.parseInt(photosetElement.getAttribute("count_comments"))); photoset.setDateCreate(photosetElement.getAttribute("date_create")); photoset.setDateUpdate(photosetElement.getAttribute("date_update")); photoset.setIsCanComment("1".equals(photosetElement.getAttribute("can_comment"))); photoset.setTitle(XMLUtilities.getChildValue(photosetElement, "title")); photoset.setDescription(XMLUtilities.getChildValue(photosetElement, "description")); photoset.setPrimaryPhoto(primaryPhoto); return photoset; }
[ "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException" ]
[ "For missing objects associated by one-to-one with another object in the\nresult set, register the fact that the object is missing with the\nsession.\n\ncopied form Loader#registerNonExists", "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", "Creates a player wrapper for the Android MediaPlayer.", "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException", "Sets the right padding for all cells in the table.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining", "Get the Avro Schema of the input path, assuming the path contains just one\nschema version in all files under that path.", "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 are warning about", "Matches the styles and adjusts the size. This needs to be\ncalled after the input is added to the DOM, so we do it in\nonLoad.", "Delete a server group by id\n\n@param id server group ID" ]
public void updateRequestByAddingReplaceVarPair( ParallelTask task, String replaceVarKey, String replaceVarValue) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) { NodeReqResponse nodeReqResponse = entry.getValue(); nodeReqResponse.getRequestParameters() .put(PcConstants.NODE_REQUEST_PREFIX_REPLACE_VAR + replaceVarKey, replaceVarValue); nodeReqResponse.getRequestParameters().put( PcConstants.NODE_REQUEST_WILL_EXECUTE, Boolean.toString(true)); }// end for loop }
[ "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value" ]
[ "Build the context name.\n\n@param objs the objects\n@return the global context name", "Signal that this thread will not log any more messages in the multithreaded\nenvironment", "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem.", "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException", "Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name", "Return the value of field in the data argument if it is not the default value for the class. If it is the default\nthen null is returned.", "Creates a new broker instance.\n\n@param jcdAlias The jdbc connection descriptor name as defined in the repository\n@param user The user name to be used for connecting to the database\n@param password The password to be used for connecting to the database\n@return The persistence broker\n@see org.apache.ojb.broker.core.PersistenceBrokerFactoryIF#createPersistenceBroker(java.lang.String, java.lang.String, java.lang.String)" ]
public List<String> asList() { final List<String> result = new ArrayList<>(); for (Collection<Argument> args : map.values()) { for (Argument arg : args) { result.add(arg.asCommandLineArgument()); } } return result; }
[ "Returns the arguments as a list in their command line form.\n\n@return the arguments for the command line" ]
[ "Copy bytes from an input stream to a file and log progress\n@param is the input stream to read\n@param destFile the file to write to\n@throws IOException if an I/O error occurs", "Given a method node, checks if we are calling a private method from an inner class.", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Unregister all servlets registered by this exporter.", "Use this API to fetch sslfipskey resource of given name .", "Use this API to add snmpmanager.", "Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service", "Gets the JsonObject representation of the Field Operation.\n@param fieldOperation represents the template update operation\n@return the json object", "Sign off a group of connections from the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections" ]
public void strokeEllipse(Rectangle rect, Color color, float linewidth) { template.saveState(); setStroke(color, linewidth, null); template.ellipse(origX + rect.getLeft(), origY + rect.getBottom(), origX + rect.getRight(), origY + rect.getTop()); template.stroke(); template.restoreState(); }
[ "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" ]
[ "1.5 and on, 2.0 and on, 3.0 and on.", "Sets the current collection definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the collection as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\ncollection on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe collection\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\ncollection\"\[email protected] name=\"collection-class\" optional=\"true\" description=\"The type of the collection if not a\njava.util type or an array\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the collection\"\[email protected] name=\"element-class-ref\" optional=\"true\" description=\"The fully qualified name of\nthe element type\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The name of the\nforeign keys (columns when an indirection table is given)\"\[email protected] name=\"foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the foreign keys as a comma-separated list if using an indirection table\"\[email protected] name=\"indirection-table\" optional=\"true\" description=\"The name of the indirection\ntable for m:n associations\"\[email protected] name=\"indirection-table-documentation\" optional=\"true\" description=\"Documentation\non the indirection table\"\[email protected] name=\"indirection-table-primarykeys\" optional=\"true\" description=\"Whether the\nfields referencing the collection and element classes, should also be primarykeys\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the collection is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the collection\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"query-customizer\" optional=\"true\" description=\"The query customizer for this collection\"\[email protected] name=\"query-customizer-attributes\" optional=\"true\" description=\"Attributes for the query customizer\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\ncollection\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The name of the\nforeign key columns pointing to the elements if using an indirection table\"\[email protected] name=\"remote-foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the remote foreign keys as a comma-separated list if using an indirection table\"", "Propagates node table of given DAG to all of it ancestors.", "Emits a sentence fragment combining all the merge actions.", "Checks that given directory if readable & writable and prints a warning if the check fails. Warning is only\nprinted once and is not repeated until the condition is fixed and broken again.\n\n@param directory deployment directory\n@return does given directory exist and is readable and writable?", "Set the serial pattern type.\n@param patternType the pattern type to set.", "Sets the baseline duration text value.\n\n@param baselineNumber baseline number\n@param value baseline duration text value", "Handles Multi Instance Report message. Handles Report on\nthe number of instances for the command class.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder" ]
private static EndpointReferenceType createEPR(String address, SLProperties props) { EndpointReferenceType epr = WSAEndpointReferenceUtils.getEndpointReference(address); if (props != null) { addProperties(epr, props); } return epr; }
[ "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return" ]
[ "Get a property as an long or default value.\n\n@param key the property name\n@param defaultValue the default value", "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "Helper method fro providers to fire hotkey event in a separate thread\n\n@param hotKey hotkey to fire", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account", "Describe the model as a list of resources with their address and model, which\nthe HC can directly apply to create the model. Although the format might appear\nsimilar as the operations generated at boot-time this description is only useful\nto create the resource tree and cannot be used to invoke any operation.\n\n@param rootAddress the address of the root resource being described\n@param resource the root resource\n@return the list of resources", "Use this API to fetch dospolicy resource of given name .", "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", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "Should be called each frame." ]
private Date seasonalDateFromIcs(String icsFileName, String eventSummary, int year) { Map<Integer, Date> dates = getDatesFromIcs(icsFileName, eventSummary, year, year); return dates.get(year - (eventSummary.equals(Holiday.NEW_YEARS_EVE.getSummary()) ? 1 : 0)); }
[ "Finds and returns the date for the given event summary and year within the given ics file,\nor null if not present." ]
[ "Returns a BoxStoragePolicyAssignment information.\n@param api the API connection to be used by the resource.\n@param resolvedForType the assigned entity type for the storage policy.\n@param resolvedForID the assigned entity id for the storage policy.\n@return information about this {@link BoxStoragePolicyAssignment}.", "Returns a list of resource wrappers created from the input list of resources.\n\n@param cms the current OpenCms user context\n@param list the list to create the resource wrapper list from\n\n@return the list of wrapped resources.", "Curries a function that takes four arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes three arguments. Never <code>null</code>.", "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", "Removes a named property from the object.\n\nIf the property is not found, no action is taken.\n\n@param name the name of the property", "This functions reads SAM flowId and sets it\nas message property for subsequent store in CallContext\n@param message", "Updates the polling state from a DELETE or POST operation.\n\n@param response the response from Retrofit REST call\n@throws IOException thrown by deserialization", "Makes sure that the operation name and the address have been set and returns a ModelNode\nrepresenting the operation request.", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}" ]
public static String joinStrings(List<String> strings, boolean fixCase, char withChar) { if (strings == null || strings.size() == 0) { return ""; } StringBuilder result = null; for (String s : strings) { if (fixCase) { s = fixCase(s); } if (result == null) { result = new StringBuilder(s); } else { result.append(withChar); result.append(s); } } return result.toString(); }
[ "Generic string joining function.\n@param strings Strings to be joined\n@param fixCase does it need to fix word case\n@param withChar char to join strings with.\n@return joined-string" ]
[ "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)", "Return the most appropriate log type. This should _never_ return null.", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "Returns all keys of all rows contained within this association.\n\n@return all keys of all rows contained within this association", "The max possible width can be calculated doing the sum of of the inner cells and its totals\n@param crosstabColumn\n@return", "Get the JSON string representation of the selector configured for this index.\n\n@return selector JSON as string", "Add the given pair into the map.\n\n<p>\nIf the pair key already exists in the map, its value is replaced\nby the value in the pair, and the old value in the map is returned.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to add into the map.\n@return the value previously associated to the key, or <code>null</code>\nif the key was not present in the map before the addition.\n@since 2.15", "Adds a table to this model.\n\n@param table The table" ]
private void writeCalendarHours(ProjectCalendar parentCalendar, ProjectCalendarHours record) throws IOException { m_buffer.setLength(0); int recordNumber; if (!parentCalendar.isDerived()) { recordNumber = MPXConstants.BASE_CALENDAR_HOURS_RECORD_NUMBER; } else { recordNumber = MPXConstants.RESOURCE_CALENDAR_HOURS_RECORD_NUMBER; } DateRange range1 = record.getRange(0); if (range1 == null) { range1 = DateRange.EMPTY_RANGE; } DateRange range2 = record.getRange(1); if (range2 == null) { range2 = DateRange.EMPTY_RANGE; } DateRange range3 = record.getRange(2); if (range3 == null) { range3 = DateRange.EMPTY_RANGE; } m_buffer.append(recordNumber); m_buffer.append(m_delimiter); m_buffer.append(format(record.getDay())); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range1.getStart()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range1.getEnd()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range2.getStart()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range2.getEnd()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range3.getStart()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatTime(range3.getEnd()))); stripTrailingDelimiters(m_buffer); m_buffer.append(MPXConstants.EOL); m_writer.write(m_buffer.toString()); }
[ "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException" ]
[ "Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources.", "Returns the value of the indicated property of the current object on the specified level.\n\n@param level The level\n@param name The name of the property\n@return The property value", "Returns the value of the element with the largest value\n@param A (Input) Matrix. Not modified.\n@return scalar", "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.", "Features are only cacheable when not converted lazily as lazy features are incomplete, it would put detached\nobjects in the cache.\n\n@return true when features are not converted lazily", "Performs all actions that have been configured.", "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Closes the connection to the Z-Wave controller." ]
private void gobble(Iterator iter) { if (eatTheRest) { while (iter.hasNext()) { tokens.add(iter.next()); } } }
[ "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens" ]
[ "Parse a boolean.\n\n@param value boolean\n@return Boolean value", "This method writes project properties to a Planner file.", "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport.", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Calculates the tiles width and height.\n\n@param code\nThe unique tile code. Determines what tile we're talking about.\n@param maxExtent\nThe maximum extent of the grid to which this tile belongs.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile width and the second value is the\ntile height.", "Returns the expression string required\n\n@param ds\n@return", "Create a patch element for the rollback patch.\n\n@param entry the entry\n@return the new patch element", "Parses a tag formatted as defined by the HTTP standard.\n\n@param httpTag The HTTP tag string; if it starts with 'W/' the tag will be\nmarked as weak and the data following the 'W/' used as the tag;\notherwise it should be surrounded with quotes (e.g.,\n\"sometag\").\n\n@return A new tag instance.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Factory method that returns an Identity object created from a serializated representation.\n\n@param anArray The serialized representation\n@return The identity\n@see {@link #serialize}.\n@deprecated" ]
private ClassMatcher buildMatcher(String tagText) { // check there are at least @match <type> and a parameter String[] strings = StringUtil.tokenize(tagText); if (strings.length < 2) { System.err.println("Skipping uncomplete @match tag, type missing: " + tagText + " in view " + viewDoc); return null; } try { if (strings[0].equals("class")) { return new PatternMatcher(Pattern.compile(strings[1])); } else if (strings[0].equals("context")) { return new ContextMatcher(root, Pattern.compile(strings[1]), getGlobalOptions(), false); } else if (strings[0].equals("outgoingContext")) { return new ContextMatcher(root, Pattern.compile(strings[1]), getGlobalOptions(), false); } else if (strings[0].equals("interface")) { return new InterfaceMatcher(root, Pattern.compile(strings[1])); } else if (strings[0].equals("subclass")) { return new SubclassMatcher(root, Pattern.compile(strings[1])); } else { System.err.println("Skipping @match tag, unknown match type, in view " + viewDoc); } } catch (PatternSyntaxException pse) { System.err.println("Skipping @match tag due to invalid regular expression '" + tagText + "'" + " in view " + viewDoc); } catch (Exception e) { System.err.println("Skipping @match tag due to an internal error '" + tagText + "'" + " in view " + viewDoc); e.printStackTrace(); } return null; }
[ "Factory method that builds the appropriate matcher for @match tags" ]
[ "Returns an Array with an Objects PK VALUES if convertToSql is true, any\nassociated java-to-sql conversions are applied. If the Object is a Proxy\nor a VirtualProxy NO conversion is necessary.\n\n@param objectOrProxy\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Execute for result.\n\n@param executionContext the execution context\n@return the result\n@throws IOException for any error", "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", "delegate to each contained OJBIterator and release\nits resources.", "Returns the precedence of the specified operator. Non-operator's will\nreceive -1 or a GroovyBugError, depending on your preference.", "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", "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q.", "Returns the effective batch size. If the dialect is multiget capable and a batch size has been configured, use\nthat one, otherwise the default.", "Used to parse the dividend dates. Returns null if the date cannot be\nparsed.\n\n@param date String received that represents the date\n@return Calendar object representing the parsed date" ]
protected static PropertyDescriptor findPropertyDescriptor(Class aClass, String aPropertyName) { BeanInfo info; PropertyDescriptor[] pd; PropertyDescriptor descriptor = null; try { info = Introspector.getBeanInfo(aClass); pd = info.getPropertyDescriptors(); for (int i = 0; i < pd.length; i++) { if (pd[i].getName().equals(aPropertyName)) { descriptor = pd[i]; break; } } if (descriptor == null) { /* * Daren Drummond: Throw here so we are consistent * with PersistentFieldDefaultImpl. */ throw new MetadataException("Can't find property " + aPropertyName + " in " + aClass.getName()); } return descriptor; } catch (IntrospectionException ex) { /* * Daren Drummond: Throw here so we are consistent * with PersistentFieldDefaultImpl. */ throw new MetadataException("Can't find property " + aPropertyName + " in " + aClass.getName(), ex); } }
[ "Get the PropertyDescriptor for aClass and aPropertyName" ]
[ "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "Get the QNames of the port components to be declared\nin the namespaces\n\n@return collection of QNames", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "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.", "This implementation returns whether the underlying asset exists.", "Two stage distribution, dry run and actual promotion to verify correctness.\n\n@param distributionBuilder\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException", "Retrieve the frequency of an exception.\n\n@param exception XML calendar exception\n@return frequency", "Calculate the value of a digital caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@return Returns the price of a digital caplet under the Black'76 model", "Emits a sentence fragment combining all the merge actions." ]
protected void updatePicker(MotionEvent event, boolean isActive) { final MotionEvent newEvent = (event != null) ? event : null; final ControllerPick controllerPick = new ControllerPick(mPicker, newEvent, isActive); context.runOnGlThread(controllerPick); }
[ "Update the state of the picker. If it has an owner, the picker\nwill use that object to derive its position and orientation.\nThe \"active\" state of this controller is used to indicate touch.\nThe cursor position is updated after picking." ]
[ "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout", "Straight conversion from an ObjectName to a PathAddress.\n\nThere may not necessarily be a Resource at this path address (if that correspond to a pattern) but it must\nmatch a model in the registry.\n\n@param domain the name of the caller's JMX domain\n@param registry the root resource for the management model\n@param name the ObjectName to convert\n\n@return the PathAddress, or {@code null} if no address matches the object name", "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "Processes the template if the current object on the specified level has a non-empty name.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"", "generate a message for loglevel DEBUG\n\n@param pObject the message Object", "Get the metadata cache files that are currently configured to be automatically attached when matching media is\nmounted in a player on the network.\n\n@return the current auto-attache cache files, sorted by name", "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array.", "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string.", "Validate that the Unique IDs for the entities in this container are valid for MS Project.\nIf they are not valid, i.e one or more of them are too large, renumber them." ]
public static base_response update(nitro_service client, cacheselector resource) throws Exception { cacheselector updateresource = new cacheselector(); updateresource.selectorname = resource.selectorname; updateresource.rule = resource.rule; return updateresource.update_resource(client); }
[ "Use this API to update cacheselector." ]
[ "Convert an array of column definitions into a map keyed by column name.\n\n@param columns array of column definitions\n@return map of column definitions", "Initialize elements of the panel displayed for the deactivated widget.", "Finish initialization of the configuration.", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "for bpm connector", "Process the requestJsonAttributes using the attributes and the MapfishParser and add all resulting\nvalues to this values object.\n\n@param template the template of the current request.\n@param attributes the attributes that will be used to add values to this values object\n@param requestJsonAttributes the json data for populating the attribute values", "Transforms user name and icon size into the image path.\n\n@param name the user name\n@param size IconSize to get icon for\n\n@return the path", "Connect to the HC and retrieve the current model updates.\n\n@param controller the server controller\n@param callback the operation completed callback\n\n@throws IOException for any error", "Write the auxiliary RDF data for encoding the given value.\n\n@param value\nthe value to write\n@param resource\nthe (subject) URI to use to represent this value in RDF\n@throws RDFHandlerException" ]
@Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Jenkins Artifactory Plugin version: " + ActionableHelper.getArtifactoryPluginVersion()); EnvVars env = build.getEnvironment(listener); FilePath workDir = build.getModuleRoot(); FilePath ws = build.getWorkspace(); FilePath mavenHome = getMavenHome(listener, env, launcher); if (!mavenHome.exists()) { listener.error("Couldn't find Maven home: " + mavenHome.getRemote()); throw new Run.RunnerAbortedException(); } ArgumentListBuilder cmdLine = buildMavenCmdLine(build, listener, env, launcher, mavenHome, ws, ws); String[] cmds = cmdLine.toCommandArray(); return RunMaven(build, launcher, listener, env, workDir, cmds); }
[ "Used by FreeStyle Maven jobs only" ]
[ "Serialize a parameterized object to an OutputStream.\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;() { }, os);\n@param os The OutputStream being written to.", "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Converts a boolean array containing the pixel data in BINARY mode to an\ninteger array with the pixel data in RGB mode.\n\n@param binaryArray pixel binary data\n@return pixel integer data in RGB mode.", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Notification that the configuration has been written, and its current content should be stored to the .last file", "Create a KnowledgeBuilderConfiguration on which properties can be set. Use\nthe given properties file and ClassLoader - either of which can be null.\n@return\nThe KnowledgeBuilderConfiguration.", "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device" ]
@JsonProperty("paging") void paging(String paging) { builder.paging(IndexPagingState.fromByteBuffer(ByteBufferUtils.byteBuffer(paging))); }
[ "Sets the specified starting partition key.\n\n@param paging a paging state" ]
[ "Indicate whether the given URI matches this template.\n@param uri the URI to match to\n@return {@code true} if it matches; {@code false} otherwise", "Configures the log context.\n\n@param configFile the configuration file\n@param classLoader the class loader to use for the configuration\n@param logContext the log context to configure\n\n@return {@code true} if the log context was successfully configured, otherwise {@code false}\n\n@throws DeploymentUnitProcessingException if the configuration fails", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch store definitions from\n@return The map container that maps store names to store definitions", "Configure file logging and stop console logging.\n\n@param filename\nLog to this file.", "Populate data for analytics.", "Returns the tags that were root in the definition files. These serve as entry point shortcuts when browsing the graph. We could reduce this to\njust fewer as the root tags may be connected through parents=\"...\".", "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one." ]
@Override public final Float optFloat(final String key, final Float defaultValue) { Float result = optFloat(key); return result == null ? defaultValue : result; }
[ "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value" ]
[ "Given a json node, find a nested node using given composed key.\n\n@param jsonNode the parent json node\n@param composedKey a key combines multiple keys using flattening dots.\nFlattening dots are dot character '.' those are not preceded by slash '\\'\nEach flattening dot represents a level with following key as field key in that level\n@return nested json node located using given composed key", "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported.", "Use this API to delete dnspolicylabel of given name.", "Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature.", "Unregister all servlets registered by this exporter.", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event", "Return input mapper from processor.", "Checks to see if a valid deployment parameter has been defined.\n\n@param operation the operation to check.\n\n@return {@code true} of the parameter is valid, otherwise {@code false}." ]
private void setTableAliasForPath(String aPath, List hintClasses, TableAlias anAlias) { m_pathToAlias.put(buildAliasKey(aPath, hintClasses), anAlias); }
[ "Set the TableAlias for aPath\n@param aPath\n@param hintClasses\n@param TableAlias" ]
[ "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle.", "List app dynos for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n@param length length of data to dump\n@param ascii true if ASCII should also be printed\n@param columns number of columns\n@param prefix prefix when printing\n@return hex dump", "Creates a region from a name and a label.\n\n@param name the uniquely identifiable name of the region\n@param label the label of the region\n@return the newly created region", "get all parts of module name apart from first", "Unicast addresses allocated for private use\n\n@see java.net.InetAddress#isSiteLocalAddress()", "Adds a new Token to the end of the linked list", "Add an addon to the app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAllAddons} to get a list of addons that can be used.\n@return The request object", "Find out which method to call on the service bean." ]
public void applyTo(Context ctx, GradientDrawable drawable) { if (mColorInt != 0) { drawable.setColor(mColorInt); } else if (mColorRes != -1) { drawable.setColor(ContextCompat.getColor(ctx, mColorRes)); } }
[ "set the textColor of the ColorHolder to an drawable\n\n@param ctx\n@param drawable" ]
[ "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", "get children nodes name\n\n@param zkClient zkClient\n@param path full path\n@return children nodes name or null while path not exist", "Validates the producer method", "123.2.3.4 is 4.3.2.123.in-addr.arpa.", "Use this API to add dnssuffix.", "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "make it public for CLI interaction to reuse JobContext", "Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a CharSequence array object, or null\n@return this bundler instance to chain method calls", "This method converts a node to text.\n\nLeading and trailing text from hidden tokens (whitespace/comments) is removed. Text from hidden tokens that is\nsurrounded by text from non-hidden tokens is summarized to a single whitespace.\n\nThe preferred use case of this method is to convert the {@link ICompositeNode} that has been created for a data\ntype rule to text.\n\nThis is also the recommended way to convert a node to text if you want to invoke\n{@link org.eclipse.xtext.conversion.IValueConverterService#toValue(String, String, INode)}" ]
public synchronized void start() { if ((todoFlags & RECORD_CPUTIME) != 0) { currentStartCpuTime = getThreadCpuTime(threadId); } else { currentStartCpuTime = -1; } if ((todoFlags & RECORD_WALLTIME) != 0) { currentStartWallTime = System.nanoTime(); } else { currentStartWallTime = -1; } isRunning = true; }
[ "Start the timer." ]
[ "Pretty prints the given source code.\n\n@param code\nsource code to format\n@param options\nformatter options\n@param lineEnding\ndesired line ending\n@return formatted source code", "Writes triples to determine the statements with the highest rank.", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unmodifiableMap(java.util.Map)\n@since 1.0", "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.", "Obtains a local date in Ethiopic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date", "Retuns the Windows UNC style path with backslashs intead of forward slashes.\n\n@return The UNC path.", "Retrieve the date range at the specified index.\nThe index is zero based, and this method will return\nnull if the requested date range does not exist.\n\n@param index range index\n@return date range instance", "Sets the specified starting partition key.\n\n@param paging a paging state", "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes" ]
public double distanceSquared(Vector3d v) { double dx = x - v.x; double dy = y - v.y; double dz = z - v.z; return dx * dx + dy * dy + dz * dz; }
[ "Returns the squared of the Euclidean distance between this vector and\nvector v.\n\n@return squared distance between this vector and v" ]
[ "Stops the scavenger.", "This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Set dates with the provided check states.\n@param datesWithCheckInfo the dates to set, accompanied with the check state to set.", "This intro hides the system bars.", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Gets the info for a running build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildId the unique identifier of the build", "Convert a date to the String representation we use in the JSON.\n@param d the date to convert\n@return the String representation we use in the JSON.", "Responsible for executing file rolls as and when required, in addition to\ndelegating to the super class to perform the actual append operation.\nSynchronized for safety during enforced file roll.\n\n@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent)" ]
public static Field getDeclaredFieldWithPath(Class<?> clazz, String path) { int lastDot = path.lastIndexOf('.'); if (lastDot > -1) { String parentPath = path.substring(0, lastDot); String fieldName = path.substring(lastDot + 1); Field parentField = getDeclaredFieldWithPath(clazz, parentPath); return getDeclaredFieldInHierarchy(parentField.getType(), fieldName); } else { return getDeclaredFieldInHierarchy(clazz, path); } }
[ "Returns the Field for a given parent class and a dot-separated path of\nfield names.\n\n@param clazz\nParent class.\n@param path\nPath to the desired field." ]
[ "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise", "Add parameter to testCase\n\n@param context which can be changed", "Decide whether failure should trigger a rollback.\n\n@param cause\nthe cause of the failure, or {@code null} if failure is not\nthe result of catching a throwable\n@return the result action", "Returns the bit at the specified index.\n@param index The index of the bit to look-up (0 is the least-significant bit).\n@return A boolean indicating whether the bit is set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Helper method that encapsulates the logic to acquire a lock.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param lockName\nall calls to this method will contend for a unique lock with\nthe name of lockName\n@param timeout\nseconds until the lock will expire\n@param lockHolder\na unique string used to tell if you are the current holder of\na lock for both acquisition, and extension\n@return Whether or not the lock was acquired.", "Get the hours difference", "Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder", "Returns the field definition with the specified name.\n\n@param name The name of the desired field\n@return The field definition or <code>null</code> if there is no such field", "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line." ]
public static nslimitidentifier_stats[] get(nitro_service service) throws Exception{ nslimitidentifier_stats obj = new nslimitidentifier_stats(); nslimitidentifier_stats[] response = (nslimitidentifier_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all nslimitidentifier_stats resources that are configured on netscaler." ]
[ "Returns the device push token or null\n\n@param type com.clevertap.android.sdk.PushType (FCM or GCM)\n@return String device token or null\nNOTE: on initial install calling getDevicePushToken may return null, as the device token is\nnot yet available\nImplement CleverTapAPI.DevicePushTokenRefreshListener to get a callback once the token is\navailable", "Look up a shaper by a short String name.\n\n@param name Shaper name. Known names have patterns along the lines of:\ndan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?.\n@return An integer constant for the shaper", "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.", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Use this API to unset the properties of ipv6 resource.\nProperties that need to be unset are specified in args array.", "Parses coordinates into a Spatial4j point shape.", "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs.", "Insert a new value prior to the index location in the existing value array,\nincreasing the field length accordingly.\n@param index - where the new values in an SFVec2f object will be placed in the array list\n@param newValue - the new x, y value for the array list", "Given a RendererViewHolder passed as argument and a position renders the view using the\nRenderer previously stored into the RendererViewHolder.\n\n@param viewHolder with a Renderer class inside.\n@param position to render." ]
public static Object getFieldValue(Object object, String fieldName) { try { return getDeclaredFieldInHierarchy(object.getClass(), fieldName).get(object); } catch (IllegalArgumentException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }
[ "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field whose value to return." ]
[ "Gets the '.disabled' file for a given version of this store. That file may or may not\nexist.\n\n@param version of the store for which to get the '.disabled' file.\n@return an instance of {@link File} pointing to the '.disabled' file.\n@throws PersistenceFailureException if the requested version cannot be found.", "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param msdeval Evaluates the mean squared displacment", "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value 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.", "This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "Deletes the VFS XML bundle file.\n@throws CmsException thrown if the delete operation fails.", "seeks to a specified day of the week in the past or future.\n\n@param direction the direction to seek: two possibilities\n'<' go backward\n'>' go forward\n\n@param seekType the type of seek to perform (by_day or by_week)\nby_day means we seek to the very next occurrence of the given day\nby_week means we seek to the first occurrence of the given day week in the\nnext (or previous,) week (or multiple of next or previous week depending\non the seek amount.)\n\n@param seekAmount the amount to seek. Must be guaranteed to parse as an integer\n\n@param dayOfWeek the day of the week to seek to, represented as an integer from\n1 to 7 (1 being Sunday, 7 being Saturday.) Must be guaranteed to parse as an Integer", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Set the values of all the knots.\nThis version does not require the \"extra\" knots at -1 and 256\n@param x the knot positions\n@param rgb the knot colors\n@param types the knot types" ]
public static <T> T createProxy(final Class<T> proxyInterface) { if( proxyInterface == null ) { throw new NullPointerException("proxyInterface should not be null"); } return proxyInterface.cast(Proxy.newProxyInstance(proxyInterface.getClassLoader(), new Class[] { proxyInterface }, new BeanInterfaceProxy())); }
[ "Creates a proxy object which implements a given bean interface.\n\n@param proxyInterface\nthe interface the the proxy will implement\n@param <T>\nthe proxy implementation type\n@return the proxy implementation\n@throws NullPointerException\nif proxyInterface is null" ]
[ "Adds a word to the end of the token list\n@param word word which is to be added\n@return The new Token created around symbol", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type", "Use this API to fetch csvserver_appflowpolicy_binding resources of given name .", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "get the ArrayTypeSignature corresponding to given generic array type\n\n@param genericArrayType\n@return", "Try to get a system property for obsolete keys. The value is automatically converted - a runtime exception may be thrown during conversion.\n\n@return all the properties whose system property keys were different in previous versions", "Used to read the domain model when a slave host connects to the DC\n\n@param transformers the transformers for the host\n@param transformationInputs parameters for the transformation\n@param ignoredTransformationRegistry registry of resources ignored by the transformation target\n@param domainRoot the root resource for the domain resource tree\n@return a read master domain model util instance", "Validates the input parameters." ]
public BufferedImage getNewImageInstance() { BufferedImage buf = new BufferedImage(image.getWidth(), image.getHeight(), image.getType()); buf.setData(image.getData()); return buf; }
[ "Return a new instance of the BufferedImage\n\n@return BufferedImage" ]
[ "Exit the Application", "Use this API to fetch autoscalepolicy_binding resource of given name .", "Record a new event.", "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance", "Open the given url in default system browser.", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Build a standard-format UDP packet for sending to port 50001 or 50002 in the protocol.\n\n@param type the type of packet to create.\n@param deviceName the 0x14 (twenty) bytes of the device name to send in the packet.\n@param payload the remaining bytes which come after the device name.\n@return the packet to send.", "adds the qualified names to the require-bundle attribute, if not already\npresent.\n\n@param bundles - passing parameterized bundled (e.g. versions, etc.) is\nnot supported", "Generate a map of UUID values to field types.\n\n@return UUID field value map" ]
public int sum() { int total = 0; int N = getNumElements(); for (int i = 0; i < N; i++) { if( data[i] ) total += 1; } return total; }
[ "Returns the total number of elements which are true.\n@return number of elements which are set to true" ]
[ "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Checks if is single position prefix.\n\n@param fieldInfo\nthe field info\n@param prefix\nthe prefix\n@return true, if is single position prefix\n@throws IOException\nSignals that an I/O exception has occurred.", "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Write a Date attribute.\n\n@param name attribute name\n@param value attribute value", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Use this API to fetch nsrpcnode resource of given name .", "Use this API to delete appfwjsoncontenttype of given name.", "Seeks forward or backwards to a particular holiday based on the current date\n\n@param holidayString The holiday to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek" ]
public List<Callouts.Callout> getCallout() { if (callout == null) { callout = new ArrayList<Callouts.Callout>(); } return this.callout; }
[ "Gets the value of the callout property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the callout property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetCallout().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link Callouts.Callout }" ]
[ "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired.", "Finds out which dump files of the given type are available for download.\nThe result is a list of objects that describe the available dump files,\nin descending order by their date. Not all of the dumps included might be\nactually available.\n\n@return list of objects that provide information on available full dumps", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index", "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&lt;TXT&gt;</code>", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer", "Stores all entries contained in the given map in the cache.", "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input" ]
protected void createSequence(PersistenceBroker broker, FieldDescriptor field, String sequenceName, long maxKey) throws Exception { Statement stmt = null; try { stmt = broker.serviceStatementManager().getGenericStatement(field.getClassDescriptor(), Query.NOT_SCROLLABLE); stmt.execute(sp_createSequenceQuery(sequenceName, maxKey)); } catch (Exception e) { log.error(e); throw new SequenceManagerException("Could not create new row in "+SEQ_TABLE_NAME+" table - TABLENAME=" + sequenceName + " field=" + field.getColumnName(), e); } finally { try { if (stmt != null) stmt.close(); } catch (SQLException sqle) { if(log.isDebugEnabled()) log.debug("Threw SQLException while in createSequence and closing stmt", sqle); // ignore it } } }
[ "Creates new row in table\n@param broker\n@param field\n@param sequenceName\n@param maxKey\n@throws Exception" ]
[ "Load the properties from the resource file if one is specified", "Returns the metallic factor for PBR shading", "Ensures that the foreign keys required by the given collection are present in the element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the foreign keys", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name .", "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "refresh the most recent history entries\n\n@param limit number of entries to populate\n@param offset number of most recent entries to skip\n@return populated history entries\n@throws Exception exception", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class" ]
public static hanode_routemonitor_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor_binding obj = new hanode_routemonitor_binding(); obj.set_id(id); hanode_routemonitor_binding response[] = (hanode_routemonitor_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch hanode_routemonitor_binding resources of given name ." ]
[ "Method indicating whether a day is a working or non-working day.\n\n@param day required day\n@return true if this is a working day", "Load the installation state based on the identity\n\n@param installedIdentity the installed identity\n@return the installation state\n@throws IOException", "Use this API to flush cacheobject.", "Use this API to fetch onlinkipv6prefix resources of given names .", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field.", "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances", "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar", "Return the list of module ancestors\n\n@param moduleName\n@param moduleVersion\n@return List<Dependency>\n@throws GrapesCommunicationException", "Use this API to add snmpuser." ]
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{ dnssuffix obj = new dnssuffix(); obj.set_Dnssuffix(Dnssuffix); dnssuffix response = (dnssuffix) obj.get_resource(service); return response; }
[ "Use this API to fetch dnssuffix resource of given name ." ]
[ "Make a WMS getLayer request and return the image read from the server.\n\n@param wmsLayerParam the wms request parameters\n@param commonURI the uri to use for the requests (excepting parameters of course.)\n@param imageSize the size of the image to request\n@param dpi the dpi of the image to request\n@param angle the angle of the image to request\n@param bounds the area and projection of the request on the world.", "remove an objects entry from the object registry", "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Updates the font table by adding new fonts used at the current page.", "Does the headset the device is docked into have a dedicated home key\n@return", "Obtains the Constructor specified from the given Class and argument types\n\n@throws NoSuchMethodException", "Merge this ExecutionStatistics with all the statistics created within the child threads. All the child threads had to be created using Windup-specific\nThreadFactory in order to contain a reference to the parent thread.", "Return the number of days between startDate and endDate given the\nspecific daycount convention.\n\n@param startDate The start date given as a {@link org.threeten.bp.LocalDate}.\n@param endDate The end date given as a {@link org.threeten.bp.LocalDate}.\n@param convention A convention string.\n@return The number of days within the given period." ]
public void setWeeklyDaysFromBitmap(Integer days, int[] masks) { if (days != null) { int value = days.intValue(); for (Day day : Day.values()) { setWeeklyDay(day, ((value & masks[day.getValue()]) != 0)); } } }
[ "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values" ]
[ "Associate a name with an object and make it persistent.\nAn object instance may be bound to more than one name.\nBinding a previously transient object to a name makes that object persistent.\n@param object The object to be named.\n@param name The name to be given to the object.\n@exception org.odmg.ObjectNameNotUniqueException\nIf an attempt is made to bind a name to an object and that name is already bound\nto an object.", "Retrieves child nodes from a directory entry.\n\n@param parent parent directory entry\n@return list of child nodes", "A recursive getAttribute method. In case a one-to-many is passed, an array will be returned.\n\n@param feature The feature wherein to search for the attribute\n@param name The attribute's full name. (can be attr1.attr2)\n@return Returns the value. In case a one-to-many is passed along the way, an array will be returned.\n@throws LayerException oops", "Append the given char as a decimal HTML entity.\n\n@param out\nThe StringBuilder to write to.\n@param value\nThe character.", "Start the chain of execution running.\n\n@throws IllegalStateException\nif the chain of execution has already been started.", "Convert an Object to a Date, without an Exception", "Validate that the configuration is valid.\n\n@return any validation errors.", "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution.", "Recurses the given folder and adds references to these files to the graph as FileModels.\n\nWe don't set the parent file model in the case of the initial children, as the direct parent is really the archive itself. For example for file\n\"root.zip/pom.xml\" - the parent for pom.xml is root.zip, not the directory temporary directory that happens to hold it." ]
private void readFormDataFromFile() { List<FormInput> formInputList = FormInputValueHelper.deserializeFormInputs(config.getSiteDir()); if (formInputList != null) { InputSpecification inputSpecs = config.getCrawlRules().getInputSpecification(); for (FormInput input : formInputList) { inputSpecs.inputField(input); } } }
[ "Reads input data from a JSON file in the output directory." ]
[ "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return", "helper to calculate the actionBar height\n\n@param context\n@return", "Facade method for operating the Unix-like terminal supporting line editing and command\nhistory.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Returns true if the given dump file type contains page revisions and\nfalse if it does not. Dumps that do not contain pages are for auxiliary\ninformation such as linked sites.\n\n@param dumpContentType\nthe type of dump\n@return true if the dumpfile contains revisions\n@throws IllegalArgumentException\nif the given dump file type is not known", "Verify JUnit presence and version.", "Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day", "Invalidate layout setup.", "Selects the single element of the collection for which the provided OQL query\npredicate is true.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return The element that evaluates to true for the predicate. If no element\nevaluates to true, null is returned.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid." ]
public String processObjectCache(Properties attributes) throws XDocletException { ObjectCacheDef objCacheDef = _curClassDef.setObjectCache(attributes.getProperty(ATTRIBUTE_CLASS)); String attrName; attributes.remove(ATTRIBUTE_CLASS); for (Enumeration attrNames = attributes.propertyNames(); attrNames.hasMoreElements(); ) { attrName = (String)attrNames.nextElement(); objCacheDef.setProperty(attrName, attributes.getProperty(attrName)); } return ""; }
[ "Processes an object cache 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=\"attributes\" optional=\"true\" description=\"Attributes of the object-cache as name-value pairs 'name=value',\[email protected] name=\"class\" optional=\"false\" description=\"The object cache implementation\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the object cache\"" ]
[ "Launches the client with the specified parameters.\n\n@param args\ncommand line parameters\n@throws ParseException\n@throws IOException", "Emit an enum event with parameters supplied.\n\nThis will invoke all {@link SimpleEventListener} bound to the specific\nenum value and all {@link SimpleEventListener} bound to the enum class\ngiven the listeners has the matching argument list.\n\nFor example, given the following enum definition:\n\n```java\npublic enum UserActivity {LOGIN, LOGOUT}\n```\n\nWe have the following simple event listener methods:\n\n```java\n{@literal @}OnEvent\npublic void handleUserActivity(UserActivity, User user) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGIN)\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}OnUserActivity(UserActivity.LOGOUT)\npublic void logUserLogout(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` method:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGIN, user, System.currentTimeMills());\n```\n\nThe `handleUserActivity` is not invoked because\n\n* The method parameter `(UserActivity, User, long)` does not match the declared argument list `(UserActivity, User)`\n\nWhile the following code will invoke both `handleUserActivity` and `logUserLogout` methods:\n\n```java\nUser user = ...;\neventBus.emit(UserActivity.LOGOUT, user);\n```\n\nThe `logUserLogin` method will not be invoked because\n\n1. the method is bound to `UserActivity.LOGIN` enum value specifically, while `LOGOUT` is triggered\n2. the method has a `long timestamp` in the argument list and it is not passed to `eventBus.emit`\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Returns the current version info for a provided remote document.\n@param remoteDocument the remote BSON document from which to extract version info\n@return a DocumentVersionInfo", "Find a toBuilder method, if the user has provided one.", "Returns the smallest prefix length possible such that this address division grouping includes the block of addresses for that prefix.\n\n@return the prefix length", "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Set the featureModel.\n\n@param featureModel\nfeature model\n@throws LayerException\nproblem setting the feature model\n@since 1.8.0", "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib." ]
private ClassDescriptor[] getMultiJoinedClassDescriptors(ClassDescriptor cld) { DescriptorRepository repository = cld.getRepository(); Class[] multiJoinedClasses = repository.getSubClassesMultipleJoinedTables(cld, true); ClassDescriptor[] result = new ClassDescriptor[multiJoinedClasses.length]; for (int i = 0 ; i < multiJoinedClasses.length; i++) { result[i] = repository.getDescriptorFor(multiJoinedClasses[i]); } return result; }
[ "Get MultiJoined ClassDescriptors\n@param cld" ]
[ "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Deletes the concrete representation of the specified object in the underlying\npersistence system. This method is intended for use in top-level api or\nby internal calls.\n\n@param obj The object to delete.\n@param ignoreReferences With this flag the automatic deletion/unlinking\nof references can be suppressed (independent of the used auto-delete setting in metadata),\nexcept {@link org.apache.ojb.broker.metadata.SuperReferenceDescriptor}\nthese kind of reference (descriptor) will always be performed. If <em>true</em>\nall \"normal\" referenced objects will be ignored, only the specified object is handled.\n@throws PersistenceBrokerException", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "a small helper to get the color from the colorHolder\n\n@param ctx\n@return", "Get the ActivityInterface.\n\n@return The ActivityInterface", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "Add a task to the project.\n\n@return new task instance", "Find the fields in which the Activity ID and Activity Type are stored." ]
public static MethodNode findSAM(ClassNode type) { if (!Modifier.isAbstract(type.getModifiers())) return null; if (type.isInterface()) { List<MethodNode> methods = type.getMethods(); MethodNode found=null; for (MethodNode mi : methods) { // ignore methods, that are not abstract and from Object if (!Modifier.isAbstract(mi.getModifiers())) continue; // ignore trait methods which have a default implementation if (Traits.hasDefaultImplementation(mi)) continue; if (mi.getDeclaringClass().equals(OBJECT_TYPE)) continue; if (OBJECT_TYPE.getDeclaredMethod(mi.getName(), mi.getParameters())!=null) continue; // we have two methods, so no SAM if (found!=null) return null; found = mi; } return found; } else { List<MethodNode> methods = type.getAbstractMethods(); MethodNode found = null; if (methods!=null) { for (MethodNode mi : methods) { if (!hasUsableImplementation(type, mi)) { if (found!=null) return null; found = mi; } } } return found; } }
[ "Returns the single abstract method of a class node, if it is a SAM type, or null otherwise.\n@param type a type for which to search for a single abstract method\n@return the method node if type is a SAM type, null otherwise" ]
[ "This method extracts calendar data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param map Map of calendar UIDs to names", "Retrieve the jdbc type for the field descriptor that is related\nto this argument.", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service", "Whether the given value generation strategy requires to read the value from the database or not.", "Tests correctness.", "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", "Clears the internal used cache for object materialization.", "Check the given JWT\n\n@param jwtString the JSON Web Token\n@return the parsed and verified token or null if token is invalid\n@throws ParseException if the token cannot be parsed" ]
public static Info neg(final Variable A, ManagerTempVariables manager) { Info ret = new Info(); if( A instanceof VariableInteger ) { final VariableInteger output = manager.createInteger(); ret.output = output; ret.op = new Operation("neg-i") { @Override public void process() { output.value = -((VariableInteger)A).value; } }; } else if( A instanceof VariableScalar ) { final VariableDouble output = manager.createDouble(); ret.output = output; ret.op = new Operation("neg-s") { @Override public void process() { output.value = -((VariableScalar)A).getDouble(); } }; } else if( A instanceof VariableMatrix ) { final VariableMatrix output = manager.createMatrix(); ret.output = output; ret.op = new Operation("neg-m") { @Override public void process() { DMatrixRMaj a = ((VariableMatrix)A).matrix; output.matrix.reshape(a.numRows, a.numCols); CommonOps_DDRM.changeSign(a, output.matrix); } }; } else { throw new RuntimeException("Unsupported variable "+A); } return ret; }
[ "Returns the negative of the input variable" ]
[ "This method lists all tasks defined in the file.\n\n@param file MPX file", "Encrypt a string with AES-128 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "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", "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message." ]
public static TxInfo getTransactionInfo(Environment env, Bytes prow, Column pcol, long startTs) { // TODO ensure primary is visible IteratorSetting is = new IteratorSetting(10, RollbackCheckIterator.class); RollbackCheckIterator.setLocktime(is, startTs); Entry<Key, Value> entry = ColumnUtil.checkColumn(env, is, prow, pcol); TxInfo txInfo = new TxInfo(); if (entry == null) { txInfo.status = TxStatus.UNKNOWN; return txInfo; } ColumnType colType = ColumnType.from(entry.getKey()); long ts = entry.getKey().getTimestamp() & ColumnConstants.TIMESTAMP_MASK; switch (colType) { case LOCK: { if (ts == startTs) { txInfo.status = TxStatus.LOCKED; txInfo.lockValue = entry.getValue().get(); } else { txInfo.status = TxStatus.UNKNOWN; // locked by another tx } break; } case DEL_LOCK: { DelLockValue dlv = new DelLockValue(entry.getValue().get()); if (ts != startTs) { // expect this to always be false, must be a bug in the iterator throw new IllegalStateException(prow + " " + pcol + " (" + ts + " != " + startTs + ") "); } if (dlv.isRollback()) { txInfo.status = TxStatus.ROLLED_BACK; } else { txInfo.status = TxStatus.COMMITTED; txInfo.commitTs = dlv.getCommitTimestamp(); } break; } case WRITE: { long timePtr = WriteValue.getTimestamp(entry.getValue().get()); if (timePtr != startTs) { // expect this to always be false, must be a bug in the iterator throw new IllegalStateException( prow + " " + pcol + " (" + timePtr + " != " + startTs + ") "); } txInfo.status = TxStatus.COMMITTED; txInfo.commitTs = ts; break; } default: throw new IllegalStateException("unexpected col type returned " + colType); } return txInfo; }
[ "determine the what state a transaction is in by inspecting the primary column" ]
[ "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.", "Performs the actual spell check query using Solr.\n\n@param request the spell check request\n\n@return Results of the Solr spell check of type SpellCheckResponse or null if something goes wrong.", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "Use this API to fetch all the filterhtmlinjectionparameter resources that are configured on netscaler.", "Create the Grid Point style.", "Sets Idle max age.\n\nThe time, for a connection to remain unused before it is closed off. Do not use aggressive values here!\n@param idleMaxAge time after which a connection is closed off\n@param timeUnit idleMaxAge time granularity.", "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Modify the transform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param quatW\n'W' component of the rotation quaternion.\n@param quatX\n'X' component of the rotation quaternion.\n@param quatY\n'Y' component of the rotation quaternion.\n@param quatZ\n'Z' component of the rotation quaternion.\n@param pivotX\n'X' component of the pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location." ]
private void removeObsoleteElements(List<String> names, Map<String, View> sharedElements, List<String> elementsToRemove) { if (elementsToRemove.size() > 0) { names.removeAll(elementsToRemove); for (String elementToRemove : elementsToRemove) { sharedElements.remove(elementToRemove); } } }
[ "Removes obsolete elements from names and shared elements.\n\n@param names Shared element names.\n@param sharedElements Shared elements.\n@param elementsToRemove The elements that should be removed." ]
[ "Set the weekdays at which the event should take place.\n@param weekDays the weekdays at which the event should take place.", "Returns the output path specified on the javadoc options", "Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.", "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", "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds.", "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", "Log a byte array as a hex dump.\n\n@param data byte array", "Tokenizes lookup fields and returns all matching buckets in the\nindex.", "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects" ]
public Integer getBlockMaskPrefixLength(boolean network) { Integer prefixLen; if(network) { if(hasNoPrefixCache() || (prefixLen = prefixCache.networkMaskPrefixLen) == null) { prefixLen = setNetworkMaskPrefix(checkForPrefixMask(network)); } } else { if(hasNoPrefixCache() || (prefixLen = prefixCache.hostMaskPrefixLen) == null) { prefixLen = setHostMaskPrefix(checkForPrefixMask(network)); } } if(prefixLen < 0) { return null; } return prefixLen; }
[ "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length" ]
[ "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Given a container, and a set of raw data blocks, this method extracts\nthe field data and writes it into the container.\n\n@param type expected type\n@param container field container\n@param id entity ID\n@param fixedData fixed data block\n@param varData var data block", "Populate a resource assignment workgroup instance.\n\n@param record MPX record\n@param workgroup workgroup instance\n@throws MPXJException", "Unlinks a set of dependencies from this task.\n\n@param task The task to remove dependencies from.\n@return Request object", "Sets orientation of loopbar\n\n@param orientation int value of orientation. Must be one of {@link Orientation}", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "Get the filters ExporterServiceFilter and ExportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Forceful cleanup the logs", "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes" ]
public static DMatrixRBlock transpose(DMatrixRBlock A , DMatrixRBlock A_tran ) { if( A_tran != null ) { if( A.numRows != A_tran.numCols || A.numCols != A_tran.numRows ) throw new IllegalArgumentException("Incompatible dimensions."); if( A.blockLength != A_tran.blockLength ) throw new IllegalArgumentException("Incompatible block size."); } else { A_tran = new DMatrixRBlock(A.numCols,A.numRows,A.blockLength); } for( int i = 0; i < A.numRows; i += A.blockLength ) { int blockHeight = Math.min( A.blockLength , A.numRows - i); for( int j = 0; j < A.numCols; j += A.blockLength ) { int blockWidth = Math.min( A.blockLength , A.numCols - j); int indexA = i*A.numCols + blockHeight*j; int indexC = j*A_tran.numCols + blockWidth*i; transposeBlock( A , A_tran , indexA , indexC , blockWidth , blockHeight ); } } return A_tran; }
[ "Transposes a block matrix.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified." ]
[ "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written", "Create a field map for enterprise custom fields.\n\n@param props props data\n@param c target class", "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved.", "Checks the component type of the given array against the expected component type.\n\n@param array\nthe array to be checked. May not be <code>null</code>.\n@param expectedComponentType\nthe expected component type of the array. May not be <code>null</code>.\n@return the unchanged array.\n@throws ArrayStoreException\nif the expected runtime {@code componentType} does not match the actual runtime component type.", "Checks to see if the token is an integer scalar\n\n@return true if integer or false if not", "Checks to see if the two matrices are inverses of each other.\n\n@param a A matrix. Not modified.\n@param b A matrix. Not modified.", "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value 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.", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Shows the Loader component" ]
protected String colorString(PDColor pdcolor) { String color = null; try { float[] rgb = pdcolor.getColorSpace().toRGB(pdcolor.getComponents()); color = colorString(rgb[0], rgb[1], rgb[2]); } catch (IOException e) { log.error("colorString: IOException: {}", e.getMessage()); } catch (UnsupportedOperationException e) { log.error("colorString: UnsupportedOperationException: {}", e.getMessage()); } return color; }
[ "Creates a CSS rgb specification from a PDF color\n@param pdcolor\n@return the rgb() string" ]
[ "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance", "Returns a String summarizing overall accuracy that will print nicely.", "Plots the MSD curve with the trajectory t and adds the fitted model for directed motion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param velocity velocity of the active transport", "Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id", "Use this API to fetch a responderglobal_responderpolicy_binding resources.", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Returns the total count of partitions across all stores.\n\n@return returns the total count of partitions across all stores.", "Use this API to fetch a tmglobal_tmsessionpolicy_binding resources.", "Use this API to update route6 resources." ]
private Map<String, Criteria> getCriterias(Map<String, String[]> params) { Map<String, Criteria> result = new HashMap<String, Criteria>(); for (Map.Entry<String, String[]> param : params.entrySet()) { for (Criteria criteria : FILTER_CRITERIAS) { if (criteria.getName().equals(param.getKey())) { try { Criteria[] parsedCriterias = criteria.parseValue(param.getValue()[0]); for (Criteria parsedCriteria : parsedCriterias) { result.put(parsedCriteria.getName(), parsedCriteria); } } catch (Exception e) { // Exception happened during paring LOG.log(Level.SEVERE, "Error parsing parameter " + param.getKey(), e); } break; } } } return result; }
[ "Reads filter parameters.\n\n@param params the params\n@return the criterias" ]
[ "Set the dates for the specified photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param datePosted\nThe date the photo was posted or null\n@param dateTaken\nThe date the photo was taken or null\n@param dateTakenGranularity\nThe granularity of the taken date or null\n@throws FlickrException", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "characters callback.", "Use this API to update sslparameter.", "Read correlation id.\n\n@param message the message\n@return correlation id from the message", "123.2.3.4 is 4.3.2.123.in-addr.arpa.", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event." ]
public void setLocale(String locale) { try { m_locale = LocaleUtils.toLocale(locale); } catch (IllegalArgumentException e) { LOG.error(Messages.get().getBundle().key(Messages.ERR_TAG_INVALID_LOCALE_1, "cms:navigation"), e); m_locale = null; } }
[ "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read." ]
[ "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "if you have a default, it's automatically optional", "A convenience method for creating an immutable sorted set.\n\n@param self a SortedSet\n@return an immutable SortedSet\n@see java.util.Collections#unmodifiableSortedSet(java.util.SortedSet)\n@since 1.0", "Performs an inline lower Cholesky decomposition on an inner row-major matrix. Only\nthe lower triangular portion of the matrix is read or written to.\n\n@param T Array containing an inner row-major matrix. Modified.\n@param indexT First index of the inner row-major matrix.\n@param n Number of rows and columns of the matrix.\n@return If the decomposition succeeded.", "Indicates if this file represents a file on the underlying file system.\n\n@param filePath\n@return", "Creates the given directory. Fails if it already exists.", "replaces the old with the new item. The new item will not be added when the old one is not\nfound.\n\n@param oldObject will be removed\n@param newObject is added only when hte old item is removed", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels" ]
public void setWeekDay(String dayString) { final WeekDay day = WeekDay.valueOf(dayString); if (m_model.getWeekDay() != day) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDay(day); onValueChange(); } }); } }
[ "Set the week day the event should take place.\n@param dayString the day as string." ]
[ "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "Use this API to fetch rewritepolicy_csvserver_binding resources of given name .", "Extract WOEID after XML loads", "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "Evaluates the body if value for the member tag equals the specified value.\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=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"value\" optional=\"false\" description=\"The expected value.\"", "Get a subset of the attributes of the provided class. An attribute is each public field in the class\nor super class.\n\n@param classToInspect the class to inspect\n@param filter a predicate that returns true when a attribute should be kept in resulting\ncollection.", "Use this API to update responderpolicy.", "Use this API to enable the mode on Netscaler.\n@param mode mode to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Term value.\n\n@param term\nthe term\n@return the string" ]
@Override public void onClick(View v) { String tag = (String) v.getTag(); mContentTextView.setText(String.format("%s clicked.", tag)); mMenuDrawer.setActiveView(v); }
[ "Click handler for bottom drawer items." ]
[ "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Pad or trim so as to produce a string of exactly a certain length.\n\n@param str The String to be padded or truncated\n@param num The desired length", "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>", "Changes the message of this comment.\n@param newMessage the new message for this comment.\n@return updated info about this comment.", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object." ]
protected void eciProcess() { EciMode eci = EciMode.of(content, "ISO8859_1", 3) .or(content, "ISO8859_2", 4) .or(content, "ISO8859_3", 5) .or(content, "ISO8859_4", 6) .or(content, "ISO8859_5", 7) .or(content, "ISO8859_6", 8) .or(content, "ISO8859_7", 9) .or(content, "ISO8859_8", 10) .or(content, "ISO8859_9", 11) .or(content, "ISO8859_10", 12) .or(content, "ISO8859_11", 13) .or(content, "ISO8859_13", 15) .or(content, "ISO8859_14", 16) .or(content, "ISO8859_15", 17) .or(content, "ISO8859_16", 18) .or(content, "Windows_1250", 21) .or(content, "Windows_1251", 22) .or(content, "Windows_1252", 23) .or(content, "Windows_1256", 24) .or(content, "SJIS", 20) .or(content, "UTF8", 26); if (EciMode.NONE.equals(eci)) { throw new OkapiException("Unable to determine ECI mode."); } eciMode = eci.mode; inputData = toBytes(content, eci.charset); encodeInfo += "ECI Mode: " + eci.mode + "\n"; encodeInfo += "ECI Charset: " + eci.charset.name() + "\n"; }
[ "Chooses the ECI mode most suitable for the content of this symbol." ]
[ "Creates a new RDF serializer based on the current configuration of this\nobject.\n\n@return the newly created RDF serializer\n@throws IOException\nif there were problems opening the output files", "Set the week day.\n@param weekDayStr the week day to set.", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Creates a copy of a matrix but swaps the rows as specified by the order array.\n\n@param order Specifies which row in the dest corresponds to a row in the src. Not modified.\n@param src The original matrix. Not modified.\n@param dst A Matrix that is a row swapped copy of src. Modified.", "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", "Get the property name of a method name. For example the property name of\nsetSomeValue would be someValue. Names not beginning with set or get are\nnot changed.\n\n@param name The name to process\n@return The property name", "Create a discount curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this discount curve.\n@param times Array of times as doubles.\n@param givenDiscountFactors Array of corresponding discount factors.\n@return A new discount factor object.", "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Registers an image to the images cache, so that it can be captured by the build-info proxy.\n\n@param imageId\n@param imageTag\n@param targetRepo\n@param buildInfoId\n@throws IOException" ]
public void close() { Iterator<SocketDestination> it = getStatsMap().keySet().iterator(); while(it.hasNext()) { try { SocketDestination destination = it.next(); JmxUtils.unregisterMbean(JmxUtils.createObjectName(JmxUtils.getPackageName(ClientRequestExecutor.class), "stats_" + destination.toString() .replace(':', '_') + identifierString)); } catch(Exception e) {} } }
[ "Unregister all MBeans" ]
[ "Get the available sizes of a Photo.\n\nThe boolean toggle allows to (api-)sign the call.\n\nThis way the calling user can retrieve sizes for <b>his own</b> private photos.\n\n@param photoId\nThe photo ID\n@param sign\ntoggle to allow optionally signing the call (Authenticate)\n@return A collection of {@link Size}\n@throws FlickrException", "Update the plane based on arcore best knowledge of the world\n\n@param scale", "Visit all child nodes but not this one.\n\n@param visitor The visitor to use.", "Gets information about this user.\n@param fields the optional fields to retrieve.\n@return info about this user.", "Update server mapping's host header\n\n@param serverMappingId ID of server mapping\n@param hostHeader value of host header\n@return updated ServerRedirect", "Attempt to send the specified field to the dbserver.\nThis low-level function is available only to the package itself for use in setting up the connection. It was\npreviously also used for sending parts of larger-scale messages, but because that sometimes led to them being\nfragmented into multiple network packets, and Windows rekordbox cannot handle that, full message sending no\nlonger uses this method.\n\n@param field the field to be sent\n\n@throws IOException if the field cannot be sent", "Use this API to fetch all the ipset resources that are configured on netscaler.", "Combines adjacent blocks of the same type.", "Get a View that displays the data at the specified\nposition in the data set.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View" ]
public void createInsertionSql(Database model, Platform platform, Writer writer) throws IOException { for (Iterator it = _beans.iterator(); it.hasNext();) { writer.write(platform.getInsertSql(model, (DynaBean)it.next())); if (it.hasNext()) { writer.write("\n"); } } }
[ "Generates and writes the sql for inserting the currently contained data objects.\n\n@param model The database model\n@param platform The platform\n@param writer The output stream" ]
[ "Returns a compact representation of all of the subtasks of a task.\n\n@param task The task to get the subtasks of.\n@return Request object", "Initialize dates panel elements.", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Use this API to add route6 resources.", "Read a FastTrack file.\n\n@param file FastTrack file", "Creates a list of placeholders for use in a PreparedStatement\n\n@param length number of placeholders\n@return String of placeholders, seperated by comma", "Returns an integer array that contains the default values for all the\ntexture parameters.\n\n@return an integer array that contains the default values for all the\ntexture parameters.", "Seeks to the given season within the given year\n\n@param seasonString\n@param yearString", "Use this API to fetch wisite_accessmethod_binding resources of given name ." ]
Object lookup(String key) throws ObjectNameNotFoundException { Object result = null; NamedEntry entry = localLookup(key); // can't find local bound object if(entry == null) { try { PersistenceBroker broker = tx.getBroker(); // build Identity to lookup entry Identity oid = broker.serviceIdentity().buildIdentity(NamedEntry.class, key); entry = (NamedEntry) broker.getObjectByIdentity(oid); } catch(Exception e) { log.error("Can't materialize bound object for key '" + key + "'", e); } } if(entry == null) { log.info("No object found for key '" + key + "'"); } else { Object obj = entry.getObject(); // found a persistent capable object associated with that key if(obj instanceof Identity) { Identity objectIdentity = (Identity) obj; result = tx.getBroker().getObjectByIdentity(objectIdentity); // lock the persistance capable object RuntimeObject rt = new RuntimeObject(result, objectIdentity, tx, false); tx.lockAndRegister(rt, Transaction.READ, tx.getRegistrationList()); } else { // nothing else to do result = obj; } } if(result == null) throw new ObjectNameNotFoundException("Can't find named object for name '" + key + "'"); return result; }
[ "Return a named object associated with the specified key." ]
[ "Writes a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.", "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})", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Notifies that multiple content items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Modify a bundle.\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", "Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box", "Use this API to delete application.", "Use this API to fetch all the gslbsite resources that are configured on netscaler." ]
private void plan() { // Mapping of stealer node to list of primary partitions being moved final TreeMultimap<Integer, Integer> stealerToStolenPrimaryPartitions = TreeMultimap.create(); // Output initial and final cluster if(outputDir != null) RebalanceUtils.dumpClusters(currentCluster, finalCluster, outputDir); // Determine which partitions must be stolen for(Node stealerNode: finalCluster.getNodes()) { List<Integer> stolenPrimaryPartitions = RebalanceUtils.getStolenPrimaryPartitions(currentCluster, finalCluster, stealerNode.getId()); if(stolenPrimaryPartitions.size() > 0) { numPrimaryPartitionMoves += stolenPrimaryPartitions.size(); stealerToStolenPrimaryPartitions.putAll(stealerNode.getId(), stolenPrimaryPartitions); } } // Determine plan batch-by-batch int batches = 0; Cluster batchCurrentCluster = Cluster.cloneCluster(currentCluster); List<StoreDefinition> batchCurrentStoreDefs = this.currentStoreDefs; List<StoreDefinition> batchFinalStoreDefs = this.finalStoreDefs; Cluster batchFinalCluster = RebalanceUtils.getInterimCluster(this.currentCluster, this.finalCluster); while(!stealerToStolenPrimaryPartitions.isEmpty()) { int partitions = 0; List<Entry<Integer, Integer>> partitionsMoved = Lists.newArrayList(); for(Entry<Integer, Integer> stealerToPartition: stealerToStolenPrimaryPartitions.entries()) { partitionsMoved.add(stealerToPartition); batchFinalCluster = UpdateClusterUtils.createUpdatedCluster(batchFinalCluster, stealerToPartition.getKey(), Lists.newArrayList(stealerToPartition.getValue())); partitions++; if(partitions == batchSize) break; } // Remove the partitions moved for(Iterator<Entry<Integer, Integer>> partitionMoved = partitionsMoved.iterator(); partitionMoved.hasNext();) { Entry<Integer, Integer> entry = partitionMoved.next(); stealerToStolenPrimaryPartitions.remove(entry.getKey(), entry.getValue()); } if(outputDir != null) RebalanceUtils.dumpClusters(batchCurrentCluster, batchFinalCluster, outputDir, "batch-" + Integer.toString(batches) + "."); // Generate a plan to compute the tasks final RebalanceBatchPlan RebalanceBatchPlan = new RebalanceBatchPlan(batchCurrentCluster, batchCurrentStoreDefs, batchFinalCluster, batchFinalStoreDefs); batchPlans.add(RebalanceBatchPlan); numXZonePartitionStoreMoves += RebalanceBatchPlan.getCrossZonePartitionStoreMoves(); numPartitionStoreMoves += RebalanceBatchPlan.getPartitionStoreMoves(); nodeMoveMap.add(RebalanceBatchPlan.getNodeMoveMap()); zoneMoveMap.add(RebalanceBatchPlan.getZoneMoveMap()); batches++; batchCurrentCluster = Cluster.cloneCluster(batchFinalCluster); // batchCurrentStoreDefs can only be different from // batchFinalStoreDefs for the initial batch. batchCurrentStoreDefs = batchFinalStoreDefs; } logger.info(this); }
[ "Create a plan. The plan consists of batches. Each batch involves the\nmovement of no more than batchSize primary partitions. The movement of a\nsingle primary partition may require migration of other n-ary replicas,\nand potentially deletions. Migrating a primary or n-ary partition\nrequires migrating one partition-store for every store hosted at that\npartition." ]
[ "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Adds all direct subtypes to the given list.\n\n@param type The type for which to determine the direct subtypes\n@param subTypes The list to receive the subtypes", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>", "Start and configure GreenMail using given properties.\n\n@param properties the properties such as System.getProperties()", "Sets the distance from the origin to the far clipping plane for the\nwhole camera rig.\n\n@param far\nDistance to the far clipping plane.", "Get the target file for misc items.\n\n@param item the misc item\n@return the target location", "Closes all the producers in the pool", "Gets all checked widget indexes in the group. The indexes are counted from 0 to size -1,\nwhere size is the number of Checkable widgets in the group. It does not take into account\nany non-Checkable widgets added to the group widget.\n\n@return list of checked widget indexes", "Use this API to clear nssimpleacl." ]
public void loadWithTimeout(int timeout) { for (String stylesheet : m_stylesheets) { boolean alreadyLoaded = checkStylesheet(stylesheet); if (alreadyLoaded) { m_loadCounter += 1; } else { appendStylesheet(stylesheet, m_jsCallback); } } checkAllLoaded(); if (timeout > 0) { Timer timer = new Timer() { @SuppressWarnings("synthetic-access") @Override public void run() { callCallback(); } }; timer.schedule(timeout); } }
[ "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been" ]
[ "Go over the task list and create a map of stealerId -> Tasks\n\n@param sbTaskList List of all stealer-based rebalancing tasks to be\nscheduled.", "Checks given permissions are needed to show rationale.\n\n@return returns true if one of the permission is needed to show rationale.", "Disposes resources created to service this connection context", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "The click handler for the add button.", "Adds a \"Post Run\" task to the collection.\n\n@param taskItem the \"Post Run\" task", "Establishes a thread that on one second intervals reports the number of remaining WorkBlocks enqueued and the\ntotal number of lines written and reported by consumers", "Extract calendar data." ]
protected void appendGroupByClause(List groupByFields, StringBuffer buf) { if (groupByFields == null || groupByFields.size() == 0) { return; } buf.append(" GROUP BY "); for (int i = 0; i < groupByFields.size(); i++) { FieldHelper cf = (FieldHelper) groupByFields.get(i); if (i > 0) { buf.append(","); } appendColName(cf.name, false, null, buf); } }
[ "Appends the GROUP BY clause for the Query\n@param groupByFields\n@param buf" ]
[ "Write a priority field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Extract a Class from the given Type.", "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "Search for a publisher of the given type in a project and return it, or null if it is not found.\n\n@return The publisher", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Digest format to layer file name.\n\n@param digest\n@return", "Get a list of the members of a group. The call must be signed on behalf of a Flickr member, and the ability to see the group membership will be\ndetermined by the Flickr member's group privileges.\n\n@param groupId\nReturn a list of members for this group. The group must be viewable by the Flickr member on whose behalf the API call is made.\n@param memberTypes\nA set of Membertypes as available as constants in {@link Member}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A members-list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.members.getList.html\">API Documentation</a>", "Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@param mv\nthe method visitor to be used to visit the try catch block\nannotations.\n@param context\ninformation about the class being parsed.\n@param visible\nif the type annotation table to parse contains runtime visible\nannotations.\n@return the start offset of each type annotation in the parsed table.", "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed" ]
public void append(Object object, String indentation) { append(object, indentation, segments.size()); }
[ "Add the string representation of the given object to this sequence. The given indentation will be prepended to\neach line except the first one if the object has a multi-line string representation.\n\n@param object\nthe appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>." ]
[ "Make all elements of a String array upper case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements upper case", "Set the amount of offset between child objects and parent.\n@param axis {@link Axis}\n@param offset", "Scan the segments to find the largest height value present.\n\n@return the largest waveform height anywhere in the preview.", "Use this API to enable nsfeature.", "Get an Iterator based on the ReportQuery\n\n@param query\n@return Iterator", "Returns all the elements in the sorted set with a score in the given range.\nIn contrary to the default ordering of sorted sets, for this command the elements are considered to be ordered\nfrom high to low scores.\nThe elements having the same score are returned in reverse lexicographical order.\n@param scoreRange\n@return elements in the specified score range", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "Returns a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.\n\n@param ptbText A String in PTB3-escaped form\n@return An approximation to the original String" ]
public void fireResourceReadEvent(Resource resource) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.resourceRead(resource); } } }
[ "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance" ]
[ "Returns all program element docs that have a visibility greater or\nequal than the specified level", "Record a device announcement in the devices map, so we know whe saw it.\n\n@param announcement the announcement to be recorded", "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "Returns a new created connection\n\n@param jcd the connection descriptor\n@return an instance of Connection from the drivermanager", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "refresh all deliveries dependencies for a particular product", "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Use this API to fetch linkset resource of given name .", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile" ]
private void doBatchWork(BatchBackend backend) throws InterruptedException { ExecutorService executor = Executors.newFixedThreadPool( typesToIndexInParallel, "BatchIndexingWorkspace" ); for ( IndexedTypeIdentifier indexedTypeIdentifier : rootIndexedTypes ) { executor.execute( new BatchIndexingWorkspace( gridDialect, searchFactoryImplementor, sessionFactory, indexedTypeIdentifier, cacheMode, endAllSignal, monitor, backend, tenantId ) ); } executor.shutdown(); endAllSignal.await(); // waits for the executor to finish }
[ "Will spawn a thread for each type in rootEntities, they will all re-join\non endAllSignal when finished.\n\n@param backend\n\n@throws InterruptedException\nif interrupted while waiting for endAllSignal." ]
[ "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null}\n@return The source of the requested POM, never {@code null}\n@since Apache-Maven-3.2.2 (MNG-5639)", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Validates the input parameters.", "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name .", "Given a storedefinition, constructs the xml string to be sent out in\nresponse to a \"schemata\" fetch request\n\n@param storeDefinition\n@return serialized store definition", "Ensures that the primary keys required by the given collection with indirection table are present in\nthe element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the fitting collection (if any) or the primary keys", "Finish initialization of state object.\n\n@param geoService geo service\n@param converterService converter service\n@throws GeomajasException oops", "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.", "Returns a compact representation of all of the projects the task is in.\n\n@param task The task to get projects on.\n@return Request object" ]
public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken, Integer paginationPageSize) { LOG.debug("Factory call to instantiate class: " + type.getName()); RestClient restClient = new RefreshingRestClient(); @SuppressWarnings("unchecked") Class<T> concreteClass = (Class<T>)readerMap.get(type); if (concreteClass == null) { throw new UnsupportedOperationException("No implementation for requested interface found: " + type.getName()); } LOG.debug("got class: " + concreteClass); try { Constructor<T> constructor = concreteClass.getConstructor(String.class, Integer.class, OauthToken.class, RestClient.class, Integer.TYPE, Integer.TYPE, Integer.class, Boolean.class); return constructor.newInstance(canvasBaseUrl, CANVAS_API_VERSION, oauthToken, restClient, connectTimeout, readTimeout, paginationPageSize, false); } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException | InstantiationException e) { throw new UnsupportedOperationException("Unknown error instantiating the concrete API class: " + type.getName(), e); } }
[ "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the server side which could change. The default page size\nis 10 which can be limiting when, for example, trying to get all users in a 800 person course.\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 paginationPageSize Requested pagination page size\n@param <T> The reader type to request an instance of\n@return An instance of the requested reader class" ]
[ "Use this API to fetch all the sslfipskey resources that are configured on netscaler.", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Set the refresh frequency of this scene object.\nUse NONE for improved performance when the text is set initially and never\nchanged.\n\n@param frequency\nThe refresh frequency of this TextViewSceneObject.", "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world.", "Returns the specified element, or null.", "Generate a where clause for a prepared Statement.\nOnly primary key and locking fields are used in this where clause\n\n@param cld the ClassDescriptor\n@param useLocking true if locking fields should be included\n@param stmt the StatementBuffer", "Start offering shared dbserver sessions.\n\n@throws SocketException if there is a problem opening connections", "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object" ]
@Override public InternationalFixedDate date(int prolepticYear, int month, int dayOfMonth) { return InternationalFixedDate.of(prolepticYear, month, dayOfMonth); }
[ "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date" ]
[ "Finds or creates a ResourceStorageLoadable for the given resource.\nClients should first call shouldLoadFromStorage to check whether there exists a storage version\nof the given resource.\n\n@return an IResourceStorageLoadable", "Retrieve the next available field.\n\n@return FieldType instance for the next available field", "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset", "A modified version of abs that always returns a non-negative value.\nMath.abs returns Integer.MIN_VALUE if a == Integer.MIN_VALUE and this\nmethod returns Integer.MAX_VALUE in that case.", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .", "Send an event to other applications\n\n@param context context in which to send the broadcast\n@param event event to send", "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.", "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", "Use this API to fetch cachecontentgroup resource of given name ." ]
public static CredentialsConfig getPreferredDeployer(DeployerOverrider deployerOverrider, ArtifactoryServer server) { if (deployerOverrider.isOverridingDefaultDeployer()) { CredentialsConfig deployerCredentialsConfig = deployerOverrider.getDeployerCredentialsConfig(); if (deployerCredentialsConfig != null) { return deployerCredentialsConfig; } } if (server != null) { CredentialsConfig deployerCredentials = server.getDeployerCredentialsConfig(); if (deployerCredentials != null) { return deployerCredentials; } } return CredentialsConfig.EMPTY_CREDENTIALS_CONFIG; }
[ "Decides and returns the preferred deployment credentials to use from this builder settings and selected server\n\n@param deployerOverrider Deploy-overriding capable builder\n@param server Selected Artifactory server\n@return Preferred deployment credentials" ]
[ "Write the field to the specified channel.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel", "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "Sets Idle max age.\n\nThe time, for a connection to remain unused before it is closed off. Do not use aggressive values here!\n@param idleMaxAge time after which a connection is closed off\n@param timeUnit idleMaxAge time granularity.", "Responsible for executing file rolls as and when required, in addition to\ndelegating to the super class to perform the actual append operation.\nSynchronized for safety during enforced file roll.\n\n@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent)", "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}", "Use this API to delete appfwlearningdata.", "combines all the lists in a collection to a single list", "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters", "Get image parent ID from imageID on the current agent.\n\n@param imageID\n@return" ]
public static vpnclientlessaccesspolicy_binding get(nitro_service service, String name) throws Exception{ vpnclientlessaccesspolicy_binding obj = new vpnclientlessaccesspolicy_binding(); obj.set_name(name); vpnclientlessaccesspolicy_binding response = (vpnclientlessaccesspolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch vpnclientlessaccesspolicy_binding resource of given name ." ]
[ "Notify all shutdown listeners that the shutdown completed.", "Select the specific vertex and fragment shader to use.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the vertex, material and light properties. This\nfunction may compile the shader if it does not already exist.\n\n@param context\nGVRContext\n@param rdata\nrenderable entity with mesh and rendering options\n@param scene\nlist of light sources", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Presents the Cursor Settings to the User. Only works if scene is set.", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "Builds the path for a closed arc, returning a PolygonOptions that can be\nfurther customised before use.\n\n@param center\n@param start\n@param end\n@param arcType Pass in either ArcType.CHORD or ArcType.ROUND\n@return PolygonOptions with the paths element populated.", "Support the subscript operator for GString.\n\n@param text a GString\n@param index the index of the Character to get\n@return the Character at the given index\n@since 2.3.7", "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return" ]
public void linkOneToOne(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean insert) { storeAndLinkOneToOne(true, obj, cld, rds, true); }
[ "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if \"linking\" is done while insert or update." ]
[ "set ViewPager scroller to change animation duration when sliding", "Performs the closure within a transaction using a cached connection.\nIf the closure takes a single argument, it will be called\nwith the connection, otherwise it will be called with no arguments.\n\n@param closure the given closure\n@throws SQLException if a database error occurs", "This main method provides an easy command line tool to compare two\nschemas.", "Get the int resource id with specified type definition\n@param context\n@param id String resource id\n@return int resource id", "Sets the character 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 charTranslator translator\n@return this to allow chaining", "Set the month.\n@param monthStr the month to set.", "Retrieve the recurrence type.\n\n@param value integer value\n@return RecurrenceType instance", "Creates a scatter query from the given user query\n\n@param query the user's query.\n@param numSplits the number of splits to create.", "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name ." ]
public static sslcertkey_crldistribution_binding[] get(nitro_service service, String certkey) throws Exception{ sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding(); obj.set_certkey(certkey); sslcertkey_crldistribution_binding response[] = (sslcertkey_crldistribution_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslcertkey_crldistribution_binding resources of given name ." ]
[ "Reloads the synchronization config. This wipes all in-memory synchronization settings.", "Reads the current properties for a language. If not already done, the properties are read from the respective file.\n@param locale the locale for which the localization should be returned.\n@return the properties.\n@throws IOException thrown if reading the properties from a file fails.\n@throws CmsException thrown if reading the properties from a file fails.", "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance", "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running", "Send message to socket's output stream.\n\n@param messageToSend message to send.\n\n@return {@code true} if message was sent successfully, {@code false} otherwise.", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Renders a given graphic into a new image, scaled to fit the new size and rotated.", "Get the collection of public contacts for the specified user ID.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The Collection of Contact objects\n@throws FlickrException", "Add profile to database, return collection of profile data. Called when 'enter' is hit in the UI\ninstead of 'submit' button\n\n@param model\n@param name\n@return\n@throws Exception" ]
@Override public boolean isSinglePrefixBlock() { Integer networkPrefixLength = getNetworkPrefixLength(); if(networkPrefixLength == null) { return false; } return containsSinglePrefixBlock(networkPrefixLength); }
[ "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." ]
[ "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Time since last time the store was swapped\n\n@return Time in milliseconds since the store was swapped", "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Cancel a particular download in progress. Returns 1 if the download Id is found else returns 0.\n\n@param downloadId\n@return int", "Return the command line argument\n\n@return \" --server-groups=\" plus a comma-separated list\nof selected server groups. Return empty String if none selected.", "Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.", "Stores a public key mapping.\n@param original\n@param substitute" ]
public void reportCompletion(NodeT completed) { completed.setPreparer(true); String dependency = completed.key(); for (String dependentKey : nodeTable.get(dependency).dependentKeys()) { DAGNode<DataT, NodeT> dependent = nodeTable.get(dependentKey); dependent.lock().lock(); try { dependent.onSuccessfulResolution(dependency); if (dependent.hasAllResolved()) { queue.add(dependent.key()); } } finally { dependent.lock().unlock(); } } }
[ "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed" ]
[ "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Checks if a given number is in the range of a long.\n\n@param number\na number which should be in the range of a long (positive or negative)\n\n@see java.lang.Long#MIN_VALUE\n@see java.lang.Long#MAX_VALUE\n\n@return number as a long (rounding might occur)", "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path.", "Adjusts the site root and returns a cloned CmsObject, iff the module has set an import site that differs\nfrom the site root of the CmsObject provided as argument. Otherwise returns the provided CmsObject unchanged.\n@param cms The original CmsObject.\n@param module The module where the import site is read from.\n@return The original CmsObject, or, if necessary, a clone with adjusted site root\n@throws CmsException see {@link OpenCms#initCmsObject(CmsObject)}", "Adds to this set all of the elements in the specified map of members and their score.\n@param scoredMember the members to add together with their scores\n@return the number of members actually added", "Adds an item to the list box, specifying an initial value for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param text the text of the item to be added\n@param reload perform a 'material select' reload to update the DOM.", "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "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", "If credentials are incorrect or not provided for Basic Auth, then Android\nmay throw this exception when an HTTP 401 is received. A separate exception\nis thrown for proxy authentication errors. Checking for this response and\nreturning the proper status.\n@param ex the exception raised from Android\n@return HTTP Status Code" ]
public static final Duration parseDuration(String value) { return value == null ? null : Duration.getInstance(Double.parseDouble(value), TimeUnit.DAYS); }
[ "Parse a duration value.\n\n@param value duration value\n@return Duration instance" ]
[ "we can't call this method 'of', cause it won't compile on JDK7", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException", "Remove a part of a CharSequence. This replaces the first occurrence\nof the pattern within self with '' and returns the result.\n\n@param self a String\n@param pattern a Pattern representing the part to remove\n@return a String minus the part to be removed\n@since 2.2.0", "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 a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, voldemort.server.protocol.admin.AsyncOperationStatus, String, long, voldemort.store.metadata.MetadataStore, Long diskQuotaSizeInKB)} instead.", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix.", "Removes a tag from the task. Returns an empty data block.\n\n@param task The task to remove a tag from.\n@return Request object" ]
@Nullable public StitchUserT getUser() { authLock.readLock().lock(); try { return activeUser; } finally { authLock.readLock().unlock(); } }
[ "Returns the active logged in user." ]
[ "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference", "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", "Sets the replacement var map.\n\n@param replacementVarMap\nthe replacement var map\n@return the parallel task builder", "Use this API to fetch all the rnatparam resources that are configured on netscaler.", "Returns all program element docs that have a visibility greater or\nequal than the specified level", "Synthesize and forward a KeyEvent to the library.\n\nThis call is made from the native layer.\n\n@param code id of the button\n@param action integer representing the action taken on the button", "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection", "End building the prepared script\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance", "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException" ]
protected void propagateOnEnter(GVRPickedObject hit) { GVRSceneObject hitObject = hit.getHitObject(); GVREventManager eventManager = getGVRContext().getEventManager(); if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { eventManager.sendEvent(this, ITouchEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_HIT_OBJECT)) { eventManager.sendEvent(hitObject, ITouchEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { eventManager.sendEvent(mScene, ITouchEvents.class, "onEnter", hitObject, hit); } } if (mEventOptions.contains(EventOptions.SEND_PICK_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { eventManager.sendEvent(this, IPickEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_HIT_OBJECT)) { eventManager.sendEvent(hitObject, IPickEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { eventManager.sendEvent(mScene, IPickEvents.class, "onEnter", hitObject, hit); } } }
[ "Propagate onEnter events to listeners\n@param hit collision object" ]
[ "Enables lifecycle callbacks for Android devices\n@param application App's Application object", "Reads the cost rate tables from the file.\n\n@param resource parent resource\n@param rates XML cot rate tables", "Specify the artifact configuration to be searched for\n@param artifact configured artifact object\n@return", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "low-level Graph API operations", "Exit the Application", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "Scans the jar file and returns the paths that match the includes and excludes.\n\n@return A List of paths\n@throws An IllegalStateException when an I/O error occurs in reading the jar file.", "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corresponding argument\n@return the object whose index is the integer argument." ]
public void close() { logger.info("Closing all sync producers"); if (sync) { for (SyncProducer p : syncProducers.values()) { p.close(); } } else { for (AsyncProducer<V> p : asyncProducers.values()) { p.close(); } } }
[ "Closes all the producers in the pool" ]
[ "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Given a list of typedDependencies, returns true if the node \"node\" is the\ngovernor of a conj relation with a dependent which is not a preposition\n\n@param node\nA node in this GrammaticalStructure\n@param list\nA list of typedDependencies\n@return true If node is the governor of a conj relation in the list with\nthe dep not being a preposition", "Creates the parents of nested XML elements if necessary.\n@param xmlContent the XML content that is edited.\n@param xmlPath the path of the (nested) element, for which the parents should be created\n@param l the locale for which the XML content is edited.", "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "read broker info for watching topics\n\n@param zkClient the zookeeper client\n@param topics topic names\n@return topic-&gt;(brokerid-0,brokerid-1...brokerid2-0,brokerid2-1...)", "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function.", "Use this API to fetch sslservice resource of given name .", "Updates the image information.", "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." ]
public static vpnglobal_auditnslogpolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); options option = new options(); option.set_filter(filter); vpnglobal_auditnslogpolicy_binding[] response = (vpnglobal_auditnslogpolicy_binding[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources.\nset the filter parameter values in filtervalue object." ]
[ "Use this API to update clusterinstance.", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "Determines whether the boolean value of the given string value.\n\n@param value The value\n@param defaultValue The boolean value to use if the string value is neither 'true' nor 'false'\n@return The boolean value of the string", "Check config.\n\n@param context the context\n@return true, if successful\n@throws Exception the exception", "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "Deletes an organization\n\n@param organizationId String", "Print the common class node's properties", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Use this API to fetch all the cacheselector resources that are configured on netscaler." ]
public void executeDelete(ClassDescriptor cld, Object obj) throws PersistenceBrokerException { if (logger.isDebugEnabled()) { logger.debug("executeDelete: " + obj); } final StatementManagerIF sm = broker.serviceStatementManager(); PreparedStatement stmt = null; try { stmt = sm.getDeleteStatement(cld); if (stmt == null) { logger.error("getDeleteStatement returned a null statement"); throw new PersistenceBrokerException("JdbcAccessImpl: getDeleteStatement returned a null statement"); } sm.bindDelete(stmt, cld, obj); if (logger.isDebugEnabled()) logger.debug("executeDelete: " + stmt); // @todo: clearify semantics // thma: the following check is not secure. The object could be deleted *or* changed. // if it was deleted it makes no sense to throw an OL exception. // does is make sense to throw an OL exception if the object was changed? if (stmt.executeUpdate() == 0 && cld.isLocking()) //BRJ { /** * Kuali Foundation modification -- 6/19/2009 */ String objToString = ""; try { objToString = obj.toString(); } catch (Exception ex) {} throw new OptimisticLockException("Object has been modified or deleted by someone else: " + objToString, obj); /** * End of Kuali Foundation modification */ } // Harvest any return values. harvestReturnValues(cld.getDeleteProcedure(), obj, stmt); } catch (OptimisticLockException e) { // Don't log as error if (logger.isDebugEnabled()) logger.debug("OptimisticLockException during the execution of delete: " + e.getMessage(), e); throw e; } catch (PersistenceBrokerException e) { logger.error("PersistenceBrokerException during the execution of delete: " + e.getMessage(), e); throw e; } catch (SQLException e) { final String sql = broker.serviceSqlGenerator().getPreparedDeleteStatement(cld).getStatement(); throw ExceptionHelper.generateException(e, sql, cld, logger, obj); } finally { sm.closeResources(stmt, null); } }
[ "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted." ]
[ "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", "Returns the compact records for all sections in the specified project.\n\n@param project The project to get sections from.\n@return Request object", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Do the search, called as a \"page action\"", "Add an element assigned with its score\n@param member the member to add\n@param score the score to assign\n@return <code>true</code> if the set has been changed", "Linear interpolation of ARGB values.\n@param t the interpolation parameter\n@param rgb1 the lower interpolation range\n@param rgb2 the upper interpolation range\n@return the interpolated value", "Non-blocking call\n\n@param key\n@param value\n@return", "Register the ChangeHandler to become notified if the user changes the slider.\nThe Handler is called when the user releases the mouse only at the end of the slide\noperation.", "persist decorator and than continue to children without touching the model" ]
private String getTypeString(Class<?> c) { String result = TYPE_MAP.get(c); if (result == null) { result = c.getName(); if (!result.endsWith(";") && !result.startsWith("[")) { result = "L" + result + ";"; } } return result; }
[ "Converts a class into a signature token.\n\n@param c class\n@return signature token text" ]
[ "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects.", "Looks for sequences of integer lists and combine them into one big sequence", "parse when there are two date-times", "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Overridden to do only the clean-part of the linking but not\nthe actual linking. This is deferred until someone wants to access\nthe content of the resource.", "set the property destination type for given property\n\n@param propertyName\n@param destinationType", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Return a list of place IDs for a query string.\n\nThe flickr.places.find method is not a geocoder. It will round \"up\" to the nearest place type to which place IDs apply. For example, if you pass it a\nstreet level address it will return the city that contains the address rather than the street, or building, itself.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param query\n@return PlacesList\n@throws FlickrException", "Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler." ]
public static snmpoption get(nitro_service service) throws Exception{ snmpoption obj = new snmpoption(); snmpoption[] response = (snmpoption[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the snmpoption resources that are configured on netscaler." ]
[ "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation", "Intercepts calls for setting a key and value for a JSON object\n\n@param name the key name\n@param args the value associated with the key", "Sets the value to a default.", "Make a composite filter from the given sub-filters using AND to combine filters.", "Attempts to clear the global log context used for embedded servers.", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException", "Deregister shutdown hook and execute it immediately", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance" ]
public static locationfile get(nitro_service service) throws Exception{ locationfile obj = new locationfile(); locationfile[] response = (locationfile[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the locationfile resources that are configured on netscaler." ]
[ "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", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Loads the currently known phases from Furnace to the map.", "Returns PatternParser used to parse the conversion string. Subclasses may\noverride this to return a subclass of PatternParser which recognize\ncustom conversion characters.\n\n@since 0.9.0", "Finds a child resource with the given key.\n\n@param key the child resource key\n@return null if no child resource exists with the given name else the child resource", "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DMatrixRMaj. Modified.", "Returns the classDescriptor.\n\n@return ClassDescriptor", "Performs a get all operation with the specified composite request object\n\n@param requestWrapper Composite request object containing a reference to\nthe Iterable keys\n\n@return Map of the keys to the corresponding versioned values", "Updates the font table by adding new fonts used at the current page." ]
private static String toColumnName(String fieldName) { int lastDot = fieldName.indexOf('.'); if (lastDot > -1) { return fieldName.substring(lastDot + 1); } else { return fieldName; } }
[ "Returns the portion of the field name after the last dot, as field names\nmay actually be paths." ]
[ "Fired whenever a browser event is received.\n@param event Event to process", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Redirect to page\n\n@param model\n@return", "Clear JobContext of current thread", "Update an object in the database to change its id to the newId parameter.", "Establish connection to the ChromeCast device", "Adds the index input to list.\n\n@param name the name\n@param in the in\n@param postingsFormatName the postings format name\n@return the string\n@throws IOException Signals that an I/O exception has occurred.", "Implements getAll by delegating to get.", "Counts one entity. Every once in a while, the current time is checked so\nas to print an intermediate report roughly every ten seconds." ]
public Formation scale(String appName, String processType, int quantity) { return connection.execute(new FormationUpdate(appName, processType, quantity), apiKey); }
[ "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain" ]
[ "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Writes a vInt directly to a byte array\n\n@param dest The destination array for the vInt to be written to\n@param offset The location where to write the vInt to\n@param i The Value being written into byte array\n@return Returns the new offset location", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "Checks the foreignkeys of all references in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Only sets and gets that are by row and column are used.", "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Writes data to delegate stream if it has been set.\n\n@param data the data to write", "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "Put the core auto-code algorithm here so an external class can call it" ]
public DbInfo info() { return client.couchDbClient.get(new DatabaseURIHelper(db.getDBUri()).getDatabaseUri(), DbInfo.class); }
[ "Get information about this database.\n\n@return DbInfo encapsulating the database info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/database.html#getting-database-details\"\ntarget=\"_blank\">Databases - read</a>" ]
[ "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "This method prints plan information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return plans the IPlan[] with all the information, so the tester can\nlook for information", "Analyzes a failure thrown connecting to the master for causes that indicate\nsome problem not likely to be resolved by immediately retrying. If found,\nthrows an exception highlighting the underlying cause. If the cause is not\none of the ones understood by this method, the method returns normally.\n\n@throws org.jboss.as.domain.controller.SlaveRegistrationException if the remote HC rejected the request\n@throws IllegalStateException for other failures understood by this method", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements", "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value", "Add join info to the query. This can be called multiple times to join with more than one table.", "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\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"true\" description=\"The name of the attribute containg attributes (defaults to 'attributes')\"\[email protected] name=\"default-right\" optional=\"true\" description=\"The default right value if none is given (defaults to empty value)\"", "Go through all nodes and determine how many partition Ids each node\nhosts.\n\n@param cluster\n@return map of nodeId to number of primary partitions hosted on node.", "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client" ]
public static boolean hasAnnotation(Method method, Class<? extends Annotation> annotation) { return !searchForAnnotation(method, annotation).isEmpty(); }
[ "Checks if there is an annotation 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@return <i>true</i> if the given annotation is present on method or type level annotations in the type hierarchy" ]
[ "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "Returns a diagonal matrix with the specified diagonal elements.\n@param values values of diagonal elements\n@return A diagonal matrix", "Use this API to update snmpmanager.", "Execute a redirected request\n\n@param stringStatusCode\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@throws Exception", "Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message\ncodewords.\n\n@return the primary message codewords", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "The click handler for the add button.", "Write flow id to message.\n\n@param message the message\n@param flowId the flow id", "Retrieve and validate the timeout value from the REST request.\n\"X_VOLD_REQUEST_TIMEOUT_MS\" is the timeout header.\n\n@return true if present, false if missing" ]
public static void addInterceptors(InterceptorProvider provider) { PhaseManager phases = BusFactory.getDefaultBus().getExtension(PhaseManager.class); for (Phase p : phases.getInPhases()) { provider.getInInterceptors().add(new DemoInterceptor(p.getName())); provider.getInFaultInterceptors().add(new DemoInterceptor(p.getName())); } for (Phase p : phases.getOutPhases()) { provider.getOutInterceptors().add(new DemoInterceptor(p.getName())); provider.getOutFaultInterceptors().add(new DemoInterceptor(p.getName())); } }
[ "This method will add a DemoInterceptor into every in and every out phase\nof the interceptor chains.\n\n@param provider" ]
[ "Creates the tcpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Sets the target directory.", "This method is used to launch mock agents. First it creates them, with\nthe generic df_service_name \\\"mock_agent\\\", and then the method sends to\nthe agent a message with the new df_service_name and its behaviour.\n\n@param agent_name\nThe name of the mock agent\n@param agent_path\nThe path of the agent, described in\nmocks/jadex/common/Definitions file\n@param configuration\nWhere the new df_service_name and the agents behaviour is\nsaved\n@param scenario\nThe Scenario of the Test", "Convert an Object to a DateTime.", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes", "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "Notification that the configuration has been written, and its current content should be stored to the .last file", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "Add a raw SQL \"GROUP BY\" clause to the SQL query statement. This should not include the \"GROUP BY\"." ]
public static base_response sync(nitro_service client, gslbconfig resource) throws Exception { gslbconfig syncresource = new gslbconfig(); syncresource.preview = resource.preview; syncresource.debug = resource.debug; syncresource.forcesync = resource.forcesync; syncresource.nowarn = resource.nowarn; syncresource.saveconfig = resource.saveconfig; syncresource.command = resource.command; return syncresource.perform_operation(client,"sync"); }
[ "Use this API to sync gslbconfig." ]
[ "Use this API to update snmpuser.", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable.", "Sets the top padding character for all cells in the table.\n@param paddingTopChar new padding character, ignored if null\n@return this to allow chaining", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Returns width and height that allow the given source width, height to fit inside the target width, height\nwithout losing aspect ratio", "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Checks if a parameter exists. If it exists, it is left untouched. If it doesn't, it is created. Only works for parameters which key\nis unique. Must be called from within an open transaction.", "Use this API to fetch statistics of tunnelip_stats resource of given name ." ]