query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
public void parseRawValue(String value)
{
int valueIndex = 0;
int elementIndex = 0;
m_elements.clear();
while (valueIndex < value.length() && elementIndex < m_elements.size())
{
int elementLength = m_lengths.get(elementIndex).intValue();
if (elementIndex > 0)
... | [
"Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value"
] | [
"Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation",
"Acquire the shared lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeou... |
public DocumentReaderAndWriter<IN> makeReaderAndWriter() {
DocumentReaderAndWriter<IN> readerAndWriter;
try {
readerAndWriter = ((DocumentReaderAndWriter<IN>)
Class.forName(flags.readerAndWriter).newInstance());
} catch (Exception e) {
throw new RuntimeException(St... | [
"Makes a DocumentReaderAndWriter based on the flags the CRFClassifier\nwas constructed with. Will create the flags.readerAndWriter and\ninitialize it with the CRFClassifier's flags."
] | [
"Get the element at the index as a json array.\n\n@param i the index of the element to access",
"Use this API to create sslfipskey resources.",
"Generate a path select string\n\n@return Select query string",
"Check if zone count policy is satisfied\n\n@return whether zone is satisfied",
"Uninstall current l... |
private List<String> generateDateTimePatterns(String datePattern, String[] timePatterns)
{
List<String> patterns = new ArrayList<String>();
for (String timePattern : timePatterns)
{
patterns.add(datePattern + " " + timePattern);
}
// Always fall back on the date-only pattern
... | [
"Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns"
] | [
"set custom request for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise",
"Set HTTP headers to allow caching for the given number of seconds.\n\n@param response where to set... |
private boolean evaluateLogicalOperator(FieldContainer container, Map<GenericCriteriaPrompt, Object> promptValues)
{
boolean result = false;
if (m_criteriaList.size() == 0)
{
result = true;
}
else
{
for (GenericCriteria criteria : m_criteriaList)
{
... | [
"Evalutes AND and OR operators.\n\n@param container data context\n@param promptValues responses to prompts\n@return operator result"
] | [
"The period of time to ban a node that gives an error on an operation.\n\n@param nodeBannagePeriod The period of time to ban the node\n@param unit The time unit of the given value\n\n@deprecated Use {@link #setFailureDetectorBannagePeriod(long)} instead",
"Generates a Map of query parameters for Module regarding ... |
public static <V> V doWorkInPool(final Pool<Jedis> pool, final PoolWork<Jedis, V> work) throws Exception {
if (pool == null) {
throw new IllegalArgumentException("pool must not be null");
}
if (work == null) {
throw new IllegalArgumentException("work must not be null");
... | [
"Perform the given work with a Jedis connection from the given pool.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work\n@throws Exception if something went wrong"
] | [
"Update the server group's name\n\n@param serverGroupId ID of server group\n@param name new name of server group\n@return updated ServerGroup",
"Puts value at given column\n\n@param value Will be encoded using UTF-8",
"Determines if a point is inside a box.",
"Converts a batch indexing into the sample, to a b... |
private List<ParameterConverter> methodReturningConverters(final Class<?> type) {
final List<ParameterConverter> converters = new ArrayList<>();
for (final Method method : type.getMethods()) {
if (method.isAnnotationPresent(AsParameterConverter.class)) {
converters.add(new Me... | [
"Create parameter converters from methods annotated with @AsParameterConverter\n@see {@link AbstractStepsFactory}"
] | [
"Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.",
"Clears all scopes. Useful for testing and not getting any leak...",
"Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws Il... |
public static void addOperation(final OperationContext context) {
RbacSanityCheckOperation added = context.getAttachment(KEY);
if (added == null) {
// TODO support managed domain
if (!context.isNormalServer()) return;
context.addStep(createOperation(), INSTANCE, Stage... | [
"Add the operation at the end of Stage MODEL if this operation has not already been registered.\n\nThis operation should be added if any of the following occur: -\n- The authorization configuration is removed from a security realm.\n- The rbac provider is changed to rbac.\n- A role is removed.\n- An include is remo... | [
"Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self",
"Create a single node representing an embedded element.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.m... |
public static void cacheParseFailure(XmlFileModel key)
{
map.put(getKey(key), new CacheDocument(true, null));
} | [
"Cache a parse failure for this document."
] | [
"read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request",
"Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.",
"Creates a collaboration whitelist for a Box User with a given ID.\n@param api the API connectio... |
private void addChildrenForRolesNode(String ouItem) {
try {
List<CmsRole> roles = OpenCms.getRoleManager().getRoles(m_cms, ouItem.substring(1), false);
CmsRole.applySystemRoleOrder(roles);
for (CmsRole role : roles) {
String roleId = ouItem + "/" + role.getId... | [
"Add roles for given role parent item.\n\n@param ouItem group parent item"
] | [
"Write a calendar.\n\n@param record calendar instance\n@throws IOException",
"Scans the given token global token stream for a list of sub-token\nstreams representing those portions of the global stream that\nmay contain date time information\n\n@param stream\n@return",
"Process events in the order as they were ... |
private void processEncodedPayload() throws IOException {
if (!readPayload) {
payloadSpanCollector.reset();
collect(payloadSpanCollector);
Collection<byte[]> originalPayloadCollection = payloadSpanCollector
.getPayloads();
if (originalPayloadCollection.iterator().hasNext()) {
... | [
"Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred."
] | [
"Set the payload to the fileModel of the given instance even though the variable is not directly of it's type. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.",
"Create a new queued pool using the defaults for key of type K, re... |
public String getShortMessage(Locale locale) {
String message;
message = translate(Integer.toString(exceptionCode), locale);
if (message != null && msgParameters != null && msgParameters.length > 0) {
for (int i = 0; i < msgParameters.length; i++) {
boolean isIncluded = false;
String needTranslationPar... | [
"Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message"
] | [
"Appends a formatted line of code to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).... |
public void update(int width, int height, float[] data)
throws IllegalArgumentException
{
if ((width <= 0) || (height <= 0) ||
(data == null) || (data.length < height * width * mFloatsPerPixel))
{
throw new IllegalArgumentException();
}
NativeFloat... | [
"Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection)... | [
"Finishes the current box - empties the text line buffer and creates a DOM element from it.",
"Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the spe... |
public void identifyNode(int nodeId) throws SerialInterfaceException {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessagePriority.High);
byte[] newP... | [
"Send Identify Node message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response."
] | [
"Checks if the provided organization is valid and could be stored into the database\n\n@param organization Organization\n@throws WebApplicationException if the data is corrupted",
"Gets the positive integer.\n\n@param number the number\n@return the positive integer",
"Determines the feature state\n\n@param cont... |
public synchronized int skip(int count) {
if (count > available) {
count = available;
}
idxGet = (idxGet + count) % capacity;
available -= count;
return count;
} | [
"Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)"
] | [
"Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-a... |
public static int randomIntBetween(int min, int max) {
Random rand = new Random();
return rand.nextInt((max - min) + 1) + min;
} | [
"Returns an integer between interval\n@param min Minimum value\n@param max Maximum value\n@return int number"
] | [
"Update the selection state of the item\n@param dataIndex data set index\n@param select if it is true the item is marked as selected, otherwise - unselected\n@return true if the selection state has been changed successfully, otherwise - false",
"Generate an opaque pagination token from the supplied PageMetadata.\... |
private static int getColumnWidth(final PropertyDescriptor _property) {
final Class type = _property.getPropertyType();
if (Float.class.isAssignableFrom(type) || Double.class.isAssignableFrom(type)) {
return 70;
} else if (type == Boolean.class) {
return 10;
} els... | [
"Calculates the column width according to its type.\n@param _property the property.\n@return the column width."
] | [
"The max possible width can be calculated doing the sum of of the inner cells and its totals\n@param crosstabColumn\n@return",
"Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e... |
public static void dumpClusters(Cluster currentCluster,
Cluster finalCluster,
String outputDirName) {
dumpClusters(currentCluster, finalCluster, outputDirName, "");
} | [
"Given the current and final cluster dumps it into the output directory\n\n@param currentCluster Initial cluster metadata\n@param finalCluster Final cluster metadata\n@param outputDirName Output directory where to dump this file\n@throws IOException"
] | [
"Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows",
"Similar to masking, checks that the range resulting from the bitwise or is contiguous.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException"... |
public static Class<?> getMapValueFieldType(Field mapField, int nestingLevel) {
return getGenericFieldType(mapField, Map.class, 1, null, nestingLevel);
} | [
"Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target type\n(typically 1; e.g. in case of a List of Lists, 1 would indicate the\nnested List, whereas 2 would indicate the element of the nested List)\n@return the ge... | [
"Write a list of custom field attributes.",
"Cancel request and workers.",
"Overridden to skip some symbolizers.",
"Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empt... |
@GET
@Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
@Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS)
public Response getCorporateGroupIdPrefix(@PathParam("name") final String organizationId){
LOG.info("Got a get corporate groupId prefix request for organization " + organizationId +"... | [
"Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON"
] | [
"Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.",
"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.",
"Sets a string-valued addit... |
public int getIndexByDate(Date date)
{
int result = -1;
int index = 0;
for (CostRateTableEntry entry : this)
{
if (DateHelper.compare(date, entry.getEndDate()) < 0)
{
result = index;
break;
}
++index;
}
return result;
... | [
"Retrieve the index of the table entry valid for the supplied date.\n\n@param date required date\n@return cost rate table entry index"
] | [
"Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists",
"Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the... |
public static base_responses update(nitro_service client, route6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route6 updateresources[] = new route6[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new route6();
... | [
"Use this API to update route6 resources."
] | [
"Tries to close off all the unused assigned connections back to the pool. Assumes that\nthe strategy mode has already been flipped prior to calling this routine.\nCalled whenever our no of connection requests > no of threads.",
"Generic version of getting value by key from the JobContext of current thread\n@param... |
public static float calculateMaxTextHeight(Paint _Paint, String _Text) {
Rect height = new Rect();
String text = _Text == null ? "MgHITasger" : _Text;
_Paint.getTextBounds(text, 0, text.length(), height);
return height.height();
} | [
"Calculates the maximum text height which is possible based on the used Paint and its settings.\n\n@param _Paint Paint object which will be used to display a text.\n@param _Text The text which should be measured. If null, a default text is chosen, which\nhas a maximum possible height\n@return Maximum text height i... | [
"Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>",
"Allows testsuites to shorten the domain timeout adder",
"Returns a new color that has the alpha adjusted by the\nspecified amount.",
"Use this API to fetch the statistics o... |
private DefBase getDefForLevel(String level)
{
if (LEVEL_CLASS.equals(level))
{
return _curClassDef;
}
else if (LEVEL_FIELD.equals(level))
{
return _curFieldDef;
}
else if (LEVEL_REFERENCE.equals(level))
{
... | [
"Returns the current definition on the indicated level.\n\n@param level The level\n@return The definition"
] | [
"Process the given batch of files and pass the results back to the listener as each file is processed.",
"The default field facets.\n\n@param categoryConjunction flag, indicating if category selections in the facet should be \"AND\" combined.\n@return the default field facets.",
"Callback from the worker when i... |
public static File createTempDirectory(String prefix) {
File temp = null;
try {
temp = File.createTempFile(prefix != null ? prefix : "temp", Long.toString(System.nanoTime()));
if (!(temp.delete())) {
throw new IOException("Could not delete temp file: "
+ temp.getAbsolutePath());
}
if (!(tem... | [
"Creates a temporary folder using the given prefix to generate its name.\n@param prefix the prefix string to be used in generating the directory's name; may be <i>null</i>\n@return the <code>File</code> to the newly created folder\n@throws IOException"
] | [
"Check that all nodes in the new cluster have a corresponding entry in\nstoreRepository and innerStores. add a NodeStore if not present, is\nneeded as with rebalancing we can add new nodes on the fly.",
"Reads a PEP file from the input stream.\n\n@param is input stream representing a PEP file",
"Helper to read ... |
public static <T, C extends Comparable<? super C>> List<T> sortInplaceBy(List<T> list,
final Functions.Function1<? super T, C> key) {
if (key == null)
throw new NullPointerException("key");
Collections.sort(list, new KeyComparator<T, C>(key));
return list;
} | [
"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... | [
"Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.",
"Use this API to unset the properties of nsip6 resource.\nProperties that need to be unset are specified in args array.",
"Get a random sample of k out of n elements.\n\nSee Algorithm S, D. E. Knuth, The Art of Compute... |
public double d(double x){
int intervalNumber =getIntervalNumber(x);
if (intervalNumber==0 || intervalNumber==points.length) {
return x;
}
return getIntervalReferencePoint(intervalNumber-1);
} | [
"If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any interval of the partition, this method returns x.\n\n@param x The point of interest.\n@return The discretized value."
] | [
"Convert an Object of type Class to an Object.",
"Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.",
"Sets the jdbcLevel. parse the string... |
public History[] filterHistory(String... filters) throws Exception {
BasicNameValuePair[] params;
if (filters.length > 0) {
params = new BasicNameValuePair[filters.length];
for (int i = 0; i < filters.length; i++) {
params[i] = new BasicNameValuePair("source_uri[]... | [
"Retrieve the request History based on the specified filters.\nIf no filter is specified, return the default size history.\n\n@param filters filters to be applied\n@return array of History items\n@throws Exception exception"
] | [
"Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .",
"Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output",
"Write a comma to the output stream if required.",
... |
private void flushHotCacheSlot(SlotReference slot) {
// Iterate over a copy to avoid concurrent modification issues
for (Map.Entry<DeckReference, TrackMetadata> entry : new HashMap<DeckReference,TrackMetadata>(hotCache).entrySet()) {
if (slot == SlotReference.getSlotReference(entry.getValue(... | [
"Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid."
] | [
"Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance",
"Convert a method name into a property name.\n\n@param method target method\n@return property name",
"Reads an HTML snippet with the given name.\n\n@return the HTML data",
"Handles w... |
public void setOccurence(int min, int max) throws ParseException {
if (!simplified) {
if ((min < 0) || (min > max) || (max < 1)) {
throw new ParseException("Illegal number {" + min + "," + max + "}");
}
if (min == 0) {
optional = true;
}
minimumOccurence = Math.max(1, m... | [
"Sets the occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception"
] | [
"width of input section",
"Resets the state of the scope.\nUseful for automation testing when we want to reset the scope used to install test modules.",
"Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target typ... |
private void ensureLength(FieldDescriptorDef fieldDef, String checkLevel)
{
if (!fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_LENGTH))
{
String defaultLength = JdbcTypeHelper.getDefaultLengthFor(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE));
if (defa... | [
"Constraint that ensures that the field has a length if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)"
] | [
"Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert into the histogram",
"Changes the index buffer associated with this mesh.\n@param ibuf new index buffer t... |
@Override
public final Job queueIn(final Job job, final long millis) {
return pushAt(job, System.currentTimeMillis() + millis);
} | [
"Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time."
] | [
"Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)",
"Obtains a Ethiopic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic local date... |
public static List<String> asListLinesIgnore(String content, Pattern ignorePattern) {
List<String> retorno = new ArrayList<String>();
content = content.replace(CARRIAGE_RETURN, RETURN);
content = content.replace(RETURN, CARRIAGE_RETURN);
for (String str : content.split(CARRIAGE_RETURN)) {
if (!ign... | [
"Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list"
] | [
"Sets the bit at the specified index.\n@param index The index of the bit to set (0 is the least-significant bit).\n@param set A boolean indicating whether the bit should be set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.",
"Returns a string describi... |
public RandomVariableInterface[] getBasisFunctions(double exerciseDate, LIBORModelMonteCarloSimulationInterface model) throws CalculationException {
ArrayList<RandomVariableInterface> basisFunctions = new ArrayList<RandomVariableInterface>();
RandomVariableInterface basisFunction;
// Constant
basisFunction =... | [
"Return the regression basis functions.\n\n@param exerciseDate The date w.r.t. which the basis functions should be measurable.\n@param model The model.\n@return Array of random variables.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code... | [
"returns a sorted array of fields",
"Parse a version String and add the components to a properties object.\n\n@param version the version to parse",
"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... |
protected void destroyRequest(AsyncResourceRequest<V> resourceRequest) {
if(resourceRequest != null) {
try {
// To hand control back to the owner of the
// AsyncResourceRequest, treat "destroy" as an exception since
// there is no resource to pass into... | [
"A safe wrapper to destroy the given resource request."
] | [
"Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMont... |
public GetSingleConversationOptions filters(List<String> filters) {
if(filters.size() == 1) { //Canvas API doesn't want the [] if it is only one value
addSingleItem("filter", filters.get(0));
} else {
optionsMap.put("filter[]", filters);
}
return this;
} | [
"Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options"
] | [
"joins a collection of objects together as a String using a separator",
"Returns the primary message codewords for mode 3.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords",
"Reads input data from a JSON file in the o... |
private TransactionManager getTransactionManager()
{
TransactionManager retval = null;
try
{
if (log.isDebugEnabled()) log.debug("getTransactionManager called");
retval = TransactionManagerFactoryFactory.instance().getTransactionManager();
}
ca... | [
"Return the TransactionManager of the external app"
] | [
"Creates a collection from the given stream, casting each object to the\nprovided listener class. The returned collection must not necessarily be\nmutable.\n\n@param <T> Type of the listeners in the given list.\n@param listenerClass The class of the objects in the provided list.\n@param listeners The stream to obta... |
public List<Artifact> getArtifacts(final Boolean hasLicense) throws GrapesCommunicationException {
final Client client = getClient();
final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactsPath());
final ClientResponse response = resource.queryParam(ServerAPI.HAS_L... | [
"Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException"
] | [
"Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier",
"Copies information between specified streams and... |
public Map getPathClasses()
{
if (m_pathClasses.isEmpty())
{
if (m_parentCriteria == null)
{
if (m_query == null)
{
return m_pathClasses;
}
else
{
return m_query.getPathClasses();
}
}
else
{
return m_parentCriteria.getPathClasses();
}
}
... | [
"Gets the pathClasses.\nA Map containing hints about what Class to be used for what path segment\nIf local instance not set, try parent Criteria's instance. If this is\nthe top-level Criteria, try the m_query's instance\n@return Returns a Map"
] | [
"Returns a list of all the eigenvalues",
"The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date",
"Returns a non-validating XML parser. The parser ignores both DTD... |
private int getIndicatorStartPos() {
switch (getPosition()) {
case TOP:
return mIndicatorClipRect.left;
case RIGHT:
return mIndicatorClipRect.top;
case BOTTOM:
return mIndicatorClipRect.left;
default:
... | [
"Returns the start position of the indicator.\n\n@return The start position of the indicator."
] | [
"Returns the foreignkey to the specified table.\n\n@param name The name of the foreignkey\n@param tableName The name of the referenced table\n@return The foreignkey def or <code>null</code> if it does not exist",
"Adds a measure to the crosstab. A crosstab can have many measures. DJ will lay out one measure ... |
public static base_responses delete(nitro_service client, String jsoncontenttypevalue[]) throws Exception {
base_responses result = null;
if (jsoncontenttypevalue != null && jsoncontenttypevalue.length > 0) {
appfwjsoncontenttype deleteresources[] = new appfwjsoncontenttype[jsoncontenttypevalue.length];
for (... | [
"Use this API to delete appfwjsoncontenttype resources of given names."
] | [
"Increases the maximum number of columns in the matrix.\n@param desiredColumns Desired number of columns.\n@param preserveValue If the array needs to be expanded should it copy the previous values?",
"Signals that the processor to finish and waits until it finishes.",
"Read the file header data.\n\n@param is in... |
public static authenticationldappolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationldappolicy_vpnglobal_binding obj = new authenticationldappolicy_vpnglobal_binding();
obj.set_name(name);
authenticationldappolicy_vpnglobal_binding response[] = (authenticationldappol... | [
"Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name ."
] | [
"Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.",
"Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector",
"Private helper function that performs some assignability checks for the\nprovided GenericArrayType.",
"Giv... |
public static String getFileFormat(POIFSFileSystem fs) throws IOException
{
String fileFormat = "";
DirectoryEntry root = fs.getRoot();
if (root.getEntryNames().contains("\1CompObj"))
{
CompObj compObj = new CompObj(new DocumentInputStream((DocumentEntry) root.getEntry("\1CompObj")))... | [
"This method allows us to peek into the OLE compound document to extract the file format.\nThis allows the UniversalProjectReader to determine if this is an MPP file, or if\nit is another type of OLE compound document.\n\n@param fs POIFSFileSystem instance\n@return file format name\n@throws IOException"
] | [
"Decodes stream data based on content encoding\n@param contentEncoding\n@param bytes\n@return String representing the stream data",
"Reverses a sequence of elements.\n@param array Array containing the sequence\n@param first Beginning of the range\n@param last One past the end of the range\n@except... |
protected byte[] readByteArray(InputStream is, int size) throws IOException
{
byte[] buffer = new byte[size];
if (is.read(buffer) != buffer.length)
{
throw new EOFException();
}
return (buffer);
} | [
"This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF"
] | [
"Create a new instance for the specified host and encryption key.\n\n@see #create(String)",
"Handles the response of the SendData request.\n@param incomingMessage the response message to process.",
"Code common to both XER and database readers to extract\ncurrency format data.\n\n@param row row containing curre... |
private long getTime(Date start, Date end)
{
long total = 0;
if (start != null && end != null)
{
Date startTime = DateHelper.getCanonicalTime(start);
Date endTime = DateHelper.getCanonicalTime(end);
Date startDay = DateHelper.getDayStartDate(start);
Date finishD... | [
"Retrieves the amount of time between two date time values. Note that\nthese values are converted into canonical values to remove the\ndate component.\n\n@param start start time\n@param end end time\n@return length of time"
] | [
"Is alternative.\n\n@param annotated the annotated\n@param mergedStereotypes merged stereotypes\n@return true if alternative, false otherwise",
"Returns the resolution of resolving the conflict between a local and remote event using\nthe given conflict resolver.\n\n@param conflictResolver the conflict resolver to... |
private String[] getFksToThisClass()
{
String indTable = getCollectionDescriptor().getIndirectionTable();
String[] fks = getCollectionDescriptor().getFksToThisClass();
String[] result = new String[fks.length];
for (int i = 0; i < result.length; i++)
{
res... | [
"prefix the this class fk columns with the indirection table"
] | [
"Sets the size of a UIObject",
"Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf",
"Determines whether the given array only contains unbounded type variables or Object.class.\n\n@param types the given array of types\n@return true if and only if the given arra... |
public Set<Class> entityClasses() {
EntityMetaInfoRepo repo = app().entityMetaInfoRepo().forDb(id);
return null == repo ? C.<Class>set() : repo.entityClasses();
} | [
"Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource"
] | [
"Returns a short class name for an object.\nThis is the class name stripped of any package name.\n\n@return The name of the class minus a package name, for example\n<code>ArrayList</code>",
"Add a '<>' clause so the column must be not-equal-to the value.",
"Tries to load a the bundle for a given locale, a... |
public static double[][] factorReductionUsingCommonsMath(double[][] correlationMatrix, int numberOfFactors) {
// Extract factors corresponding to the largest eigenvalues
double[][] factorMatrix = getFactorMatrix(correlationMatrix, numberOfFactors);
// Renormalize rows
for (int row = 0; row < correlationMatrix... | [
"Returns a correlation matrix which has rank < n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix."
] | [
"returns a sorted array of methods",
"Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface",
"Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder",
"Set the model used by the right table.\n\n@param model table model",
"Write a string field t... |
public static base_responses add(nitro_service client, gslbsite resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbsite addresources[] = new gslbsite[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new gslbsite();
... | [
"Use this API to add gslbsite resources."
] | [
"Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexistin... |
public Map<Integer, String> listProjects(InputStream is) throws MPXJException
{
try
{
m_tables = new HashMap<String, List<Row>>();
processFile(is);
Map<Integer, String> result = new HashMap<Integer, String>();
List<Row> rows = getRows("project", null, null);
... | [
"Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException"
] | [
"Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).",
"Use this API to fetch autoscaleprofile resource of given name .",
"Checks anonymous fields.\n\n@param fi... |
public void recordAsyncOpTimeNs(SocketDestination dest, long opTimeNs) {
if(dest != null) {
getOrCreateNodeStats(dest).recordAsyncOpTimeNs(null, opTimeNs);
recordAsyncOpTimeNs(null, opTimeNs);
} else {
this.asynOpTimeRequestCounter.addRequest(opTimeNs);
}
... | [
"Record operation for async ops time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param opTimeUs The number of us for the op to finish"
] | [
"This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it.",
"Enable clipping for the Widget. Widget content including its children will ... |
public Object get(String name, ObjectFactory<?> factory) {
ThreadScopeContext context = ThreadScopeContextHolder.getContext();
Object result = context.getBean(name);
if (null == result) {
result = factory.getObject();
context.setBean(name, result);
}
return result;
} | [
"Get bean for given name in the \"thread\" scope.\n\n@param name name of bean\n@param factory factory for new instances\n@return bean for this scope"
] | [
"Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@para... |
public static appfwsignatures get(nitro_service service, String name) throws Exception{
appfwsignatures obj = new appfwsignatures();
obj.set_name(name);
appfwsignatures response = (appfwsignatures) obj.get_resource(service);
return response;
} | [
"Use this API to fetch appfwsignatures resource of given name ."
] | [
"Create a new path address by appending more elements to the end of this address.\n\n@param additionalElements the elements to append\n@return the new path address",
"This intro hides the system bars.",
"Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A li... |
public void append(float[] newValue) {
if ( (newValue.length % 2) == 0) {
for (int i = 0; i < (newValue.length/2); i++) {
value.add( new SFVec2f(newValue[i*2], newValue[i*2+1]) );
}
}
else {
Log.e(TAG, "X3D MFVec3f append set with array length ... | [
"Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list"
] | [
"Use this API to clear gslbldnsentries resources.",
"gets the profile_name associated with a specific id",
"Invokes the ready tasks.\n\n@param context group level shared context that need be passed to\n{@link TaskGroupEntry#invokeTaskAsync(boolean, InvocationContext)}\nmethod of each entry in the group when it ... |
public ByteBuffer payload() {
ByteBuffer payload = buffer.duplicate();
payload.position(headerSize(magic()));
payload = payload.slice();
payload.limit(payloadSize());
payload.rewind();
return payload;
} | [
"get the real data without message header\n@return message data(without header)"
] | [
"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 reco... |
public static int cudnnConvolutionBackwardBias(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor dyDesc,
Pointer dy,
Pointer beta,
cudnnTensorDescriptor dbDesc,
Pointer db)
{
return checkResult(cudnnConvolutionBackwardBiasNative(handle, a... | [
"Function to compute the bias gradient for batch convolution"
] | [
"Use this API to add autoscaleprofile.",
"todo remove, here only for binary compatibility of elytron subsystem, drop once it is in.",
"Use this API to add nsip6 resources.",
"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 Colle... |
@SuppressWarnings({ "unchecked" })
public static <T> T[] readArrayAttributeElement(final XMLExtendedStreamReader reader, final String attributeName,
final Class<T> type) throws XMLStreamException {
final List<T> list = readListAttributeElement(reader, attributeName, type);
return list.to... | [
"Read an element which contains only a single list attribute of a given\ntype, returning it as an array.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list as an array\n@throws javax.xml.stream.XM... | [
"Get a property as a array or throw exception.\n\n@param key the property name",
"Gets all data set values.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation",
"Check re... |
protected boolean isDuplicate(String eventID) {
if (this.receivedEvents == null) {
this.receivedEvents = new LRUCache<String>();
}
return !this.receivedEvents.add(eventID);
} | [
"Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false."
] | [
"Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error",
"Delivers the correct JSON Object for the Stencilset Extensions\n\n@param extensions",
"Searches for a sequence of integers\n\nexample:\n1 2 3 4 6 7 -3",
"Merges the two classes into a single c... |
public void rotateToFaceCamera(final GVRTransform transform) {
//see http://stackoverflow.com/questions/5782658/extracting-yaw-from-a-quaternion
final GVRTransform t = getMainCameraRig().getHeadTransform();
final Quaternionf q = new Quaternionf(0, t.getRotationY(), 0, t.getRotationW()).normalize... | [
"Apply the necessary rotation to the transform so that it is in front of\nthe camera.\n\n@param transform The transform to modify."
] | [
"Determine if a CharSequence can be parsed as a BigDecimal.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigDecimal(String)\n@since 1.8.2",
"Get the service implementations for a given type name.\n\n@param serviceTypeName the type name\n@return the possibly empty list of ... |
public static void clearallLocalDBs() {
for (final Map.Entry<MongoClient, Boolean> entry : localInstances.entrySet()) {
for (final String dbName : entry.getKey().listDatabaseNames()) {
entry.getKey().getDatabase(dbName).drop();
}
}
} | [
"Helper function that drops all local databases for every client."
] | [
"As we merge several operations into one operation, we need to be sure the write concern applied to the aggregated\noperation respects all the requirements expressed for each separate operation.\n\nThus, for each parameter of the write concern, we keep the stricter one for the resulting merged write concern.",
"W... |
private void processCalendarHours(ProjectCalendar calendar, Record dayRecord)
{
// ... for each day of the week
Day day = Day.getInstance(Integer.parseInt(dayRecord.getField()));
// Get hours
List<Record> recHours = dayRecord.getChildren();
if (recHours.size() == 0)
{
// ... | [
"Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data"
] | [
"Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException",
"Set the attributes for this template.\n\n@param attributes the attribute map",
"Unlock all edited resources.... |
@Override
public DMatrixRMaj getA() {
if( A.data.length < numRows*numCols ) {
A = new DMatrixRMaj(numRows,numCols);
}
A.reshape(numRows,numCols, false);
CommonOps_DDRM.mult(Q,R,A);
return A;
} | [
"Compute the A matrix from the Q and R matrices.\n\n@return The A matrix."
] | [
"Visits an annotation on a local variable type.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#LOCAL_VARIABLE\nLOCAL_VARIABLE} or {@link TypeReference#RESOURCE_VARIABLE\nRESOURCE_VARIABLE}. See {@link TypeReference}.\n@param typePath\nthe path to ... |
public void writeTo(IIMWriter writer) throws IOException {
final boolean doLog = log != null;
for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) {
DataSet ds = i.next();
writer.write(ds);
if (doLog) {
log.debug("Wrote data set " + ds);
}
}
} | [
"Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to"
] | [
"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... |
public IdRange[] parseIdRange(ImapRequestLineReader request)
throws ProtocolException {
CharacterValidator validator = new MessageSetCharValidator();
String nextWord = consumeWord(request, validator);
int commaPos = nextWord.indexOf(',');
if (commaPos == -1) {
re... | [
"Reads a \"message set\" argument, and parses into an IdSet.\nCurrently only supports a single range of values."
] | [
"Read activities.",
"Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"\n@doc.param name=\"... |
@SuppressWarnings({"unused", "WeakerAccess"})
public int getInboxMessageCount(){
synchronized (inboxControllerLock) {
if (this.ctInboxController != null) {
return ctInboxController.count();
} else {
getConfigLogger().debug(getAccountId(),"Notification ... | [
"Returns the count of all inbox messages for the user\n@return int - count of all inbox messages"
] | [
"Copies from buffer to our internal strBufferIndex, expanding the internal buffer if necessary\n@param offset offset in the buffer to start copying from\n@param length length to copy",
"Add a line symbolizer definition to the rule.\n\n@param styleJson The old style.",
"Checks if a given number is in the range o... |
public static void acceptsFile(OptionParser parser) {
parser.acceptsAll(Arrays.asList(OPT_F, OPT_FILE), "file path for input/output")
.withRequiredArg()
.describedAs("file-path")
.ofType(String.class);
} | [
"Adds OPT_F | OPT_FILE 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"
] | [
"Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.",
"lookup current max... |
@UiThread
public void collapseParentRange(int startParentPosition, int parentCount) {
int endParentPosition = startParentPosition + parentCount;
for (int i = startParentPosition; i < endParentPosition; i++) {
collapseParent(i);
}
} | [
"Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse"
] | [
"Diagnostic method used to dump known field map data.\n\n@param props props block containing field map data",
"Merge the contents of the given plugin.xml into this one.",
"Runs the given xpath and returns a boolean result.",
"Use this API to update Interface resources.",
"Creates a simple deployment descrip... |
private void doFileRoll(final File from, final File to) {
final FileHelper fileHelper = FileHelper.getInstance();
if (!fileHelper.deleteExisting(to)) {
this.getAppender().getErrorHandler()
.error("Unable to delete existing " + to + " for rename");
}
final String original = from.toString(... | [
"Renames the current base log file to the roll file name.\n\n@param from\nThe current base log file.\n@param to\nThe backup file."
] | [
"Register a new PerformanceMonitor with Spring if it does not already exist.\n\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered",
"Utility method to read a percentage value.\n\n@param data data block\n@par... |
public static final int getInt(InputStream is) throws IOException
{
byte[] data = new byte[4];
is.read(data);
return getInt(data, 0);
} | [
"Read an int from an input stream.\n\n@param is input stream\n@return int value"
] | [
"Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0",
"Validate that the configuration is valid.\n\n@return any validation errors.",
"Prints a debug log message that details the time taken for the Http\nrequest to be parsed by the c... |
private static boolean hasSelfPermissions(Context context, String... permissions) {
for (String permission : permissions) {
if (checkSelfPermission(context, permission) == PackageManager.PERMISSION_GRANTED) {
return true;
}
}
return false;
} | [
"Returns true if the context has access to any given permissions."
] | [
"Upload a photo from a byte-array.\n\n@param data\nThe photo data as a byte array\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException",
"Converts from a Fluo RowColumn to a Accumulo Key\n\n@param rc RowColumn\n@return Key",
"Map the given region of the given file descriptor int... |
public PayloadBuilder category(final String category) {
if (category != null) {
aps.put("category", category);
} else {
aps.remove("category");
}
return this;
} | [
"Sets the category of the notification for iOS8 notification\nactions. See 13 minutes into \"What's new in iOS Notifications\"\n\nPassing {@code null} removes the category.\n\n@param category the name of the category supplied to the app\nwhen receiving the notification\n@return this"
] | [
"Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context",
"Copies entries in the source map to target map.\n\n@param source source map\n@param target targe... |
public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) {
final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT);
addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash));
return returnThis();
} | [
"Remove a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder"
] | [
"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.",
"Gets the value of the project property.\n\n<p>\nThis accessor method returns a reference to the live lis... |
public static void checkRequired(OptionSet options, List<String> opts)
throws VoldemortException {
List<String> optCopy = Lists.newArrayList();
for(String opt: opts) {
if(options.has(opt)) {
optCopy.add(opt);
}
}
if(optCopy.size() < 1) ... | [
"Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException"
] | [
"Return the association as cached in the entry state.\n\n@param collectionRole the role of the association\n@return the cached association",
"Checks to see if a standalone server is running.\n\n@param client the client used to communicate with the server\n\n@return {@code true} if the server is running, otherwise... |
private Object readMetadataFromXML(InputSource source, Class target)
throws MalformedURLException, ParserConfigurationException, SAXException, IOException
{
// TODO: make this configurable
boolean validate = false;
// get a xml reader instance:
SAXParserFa... | [
"Read metadata by populating an instance of the target class\nusing SAXParser."
] | [
"Pops resource requests off the queue until queue is empty or an unexpired\nresource request is found. Invokes .handleTimeout on all expired resource\nrequests popped off the queue.\n\n@return null or a valid ResourceRequest",
"Sets the underlying read timeout in milliseconds.\nA value of 0 specifies an infinite ... |
private void registerRows() {
for (int i = 0; i < rows.length; i++) {
DJCrosstabRow crosstabRow = rows[i];
JRDesignCrosstabRowGroup ctRowGroup = new JRDesignCrosstabRowGroup();
ctRowGroup.setWidth(crosstabRow.getHeaderWidth());
ctRowGroup.setName(crosstabRow.getProperty().getProperty());
JRDesignC... | [
"Register the Rowgroup buckets and places the header cells for the rows"
] | [
"Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault",
"Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator",
"Check from another Concurre... |
public static Module createModule(final String name,final String version){
final Module module = new Module();
module.setName(name);
module.setVersion(version);
module.setPromoted(false);
return module;
} | [
"Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module"
] | [
"Determine if the buffer, when expressed as text, matches a fingerprint regular expression.\n\n@param buffer bytes from file\n@param fingerprint fingerprint regular expression\n@return true if the file matches the fingerprint",
"Sets a parameter for the creator.",
"Replace bad xml charactes in given array by sp... |
public Set<AttributeAccess.Flag> getFlags() {
if (attributeAccess == null) {
return Collections.emptySet();
}
return attributeAccess.getFlags();
} | [
"Gets the flags associated with this attribute.\n@return the flags. Will not return {@code null}"
] | [
"Use this API to fetch nspbr6 resource of given name .",
"Finish initializing service.\n\n@throws IOException oop",
"Use this API to update ntpserver resources.",
"Read a short int from an input stream.\n\n@param is input stream\n@return int value",
"Wait for the template resources to come up after the test... |
public CurrencyQueryBuilder setCurrencyCodes(String... codes) {
return set(CurrencyQuery.KEY_QUERY_CURRENCY_CODES, Arrays.asList(codes));
} | [
"Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining."
] | [
"Parse a duration in minutes form a number of hours.\n\n@param value String representation\n@return Integer instance",
"Use this API to add nsacl6 resources.",
"Rehashes the contents of the receiver into a new table\nwith a smaller or larger capacity.\nThis method is called automatically when the\nnumber of key... |
private static ClosableIterator<Tuple> doDistinct(final MongoDBQueryDescriptor queryDescriptor, final MongoCollection<Document> collection) {
DistinctIterable<?> distinctFieldValues = collection.distinct( queryDescriptor.getDistinctFieldName(), queryDescriptor.getCriteria(), String.class );
Collation collation = ge... | [
"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>"
] | [
"decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint",
"Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}",
"Return true on... |
public static String getStatusText(int nHttpStatusCode) {
Integer intKey = new Integer(nHttpStatusCode);
if (!mapStatusCodes.containsKey(intKey)) {
return "";
} else {
return mapStatusCodes.get(intKey);
}
} | [
"Returns the HTTP status text for the HTTP or WebDav status code\nspecified by looking it up in the static mapping. This is a\nstatic function.\n\n@param nHttpStatusCode [IN] HTTP or WebDAV status code\n@return A string with a short descriptive phrase for the\nHTTP status code (e.g., \"OK\")."
] | [
"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}",
"Delivers the correct JSON Object for the Stencilset Extensions\n\n@param extensions",
"Returns the given text with the first letter in upper case.\n\... |
public Duration getWork(FastTrackField type)
{
Double value = (Double) getObject(type);
return value == null ? null : Duration.getInstance(value.doubleValue(), m_table.getWorkTimeUnit());
} | [
"Retrieve a work field.\n\n@param type field type\n@return Duration instance"
] | [
"Try Oracle update batching and call sendBatch or revert to\nJDBC update batching.\n@param stmt the batched prepared statement about to be executed\n@return always <code>null</code> if Oracle update batching is used,\nsince it is impossible to dissolve total row count into distinct\nstatement counts. If JDBC update... |
public void setBufferedImage(BufferedImage img) {
image = img;
width = img.getWidth();
height = img.getHeight();
updateColorArray();
} | [
"Sets a new image\n\n@param BufferedImage imagem"
] | [
"Get the days difference",
"Processes the template for all table definitions in the torque model.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"",
"1-D Gaussian fun... |
private ClassLoaderInterface getClassLoader() {
Map<String, Object> application = ActionContext.getContext().getApplication();
if (application != null) {
return (ClassLoaderInterface) application.get(ClassLoaderInterface.CLASS_LOADER_INTERFACE);
}
return null;
} | [
"this class loader interface can be used by other plugins to lookup\nresources from the bundles. A temporary class loader interface is set\nduring other configuration loading as well\n\n@return ClassLoaderInterface (BundleClassLoaderInterface)"
] | [
"Creates an association row representing the given entry and adds it to the association managed by the given\npersister.",
"Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param... |
private JSONValue toJsonStringList(Collection<? extends Object> list) {
if (null != list) {
JSONArray array = new JSONArray();
for (Object o : list) {
array.set(array.size(), new JSONString(o.toString()));
}
return array;
} else {
... | [
"Convert a list of objects to a JSON array with the string representations of that objects.\n@param list the list of objects.\n@return the JSON array with the string representations."
] | [
"Allow for the use of text shading and auto formatting.",
"Applies the > operator to each element in A. Results are stored in a boolean matrix.\n\n@param A Input matrx\n@param value value each element is compared against\n@param output (Optional) Storage for results. Can be null. Is reshaped.\n@return Boolea... |
private String getQueryParam() {
final String param = parseOptionalStringValue(XML_ELEMENT_QUERYPARAM);
if (param == null) {
return DEFAULT_QUERY_PARAM;
} else {
return param;
}
} | [
"Returns the configured request parameter for the current query string, or the default parameter if the core is not specified.\n@return The configured request parameter for the current query string, or the default parameter if the core is not specified."
] | [
"Get the default providers list to be used.\n\n@return the default provider list and ordering, not null.",
"Load the entity activating the persistence context execution boundaries\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when... |
public MBeanOperationInfo getOperationInfo(String operationName)
throws OperationNotFoundException, UnsupportedEncodingException {
String decodedOperationName = sanitizer.urlDecode(operationName, encoding);
Map<String, MBeanOperationInfo> operationMap = getOperationMetadata();
if (opera... | [
"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 supp... | [
"Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@se... |
private static String guessPackaging(ProjectModel projectModel)
{
String projectType = projectModel.getProjectType();
if (projectType != null)
return projectType;
LOG.warning("WINDUP-983 getProjectType() returned null for: " + projectModel.getRootFileModel().getPrettyPath());
... | [
"Tries to guess the packaging of the archive - whether it's an EAR, WAR, JAR.\nMaybe not needed as we can rely on the suffix?"
] | [
"Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.",
"Assigns the provided square matrix to be a random Hermitian matrix with e... |
public ExecutionChain setErrorCallback(ErrorCallback callback) {
if (state.get() == State.RUNNING) {
throw new IllegalStateException(
"Invalid while ExecutionChain is running");
}
errorCallback = callback;
return this;
} | [
"Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}."
] | [
"IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery",
"Returns a new color that has the hue adjusted by the specified\namount.",
"Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.",
"Ob... |
private void maybeUpdateScrollbarPositions() {
if (!isAttached()) {
return;
}
if (m_scrollbar != null) {
int vPos = getVerticalScrollPosition();
if (m_scrollbar.getVerticalScrollPosition() != vPos) {
m_scrollbar.setVerticalScrollPosi... | [
"Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content."
] | [
"Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator",
"Use this API to fetch all the auditmessages resources that are configured on netscaler.\nThis uses auditmessages_args which is a way to provide additional arguments whil... |
@SafeVarargs
private final <T> Set<T> join(Set<T>... sets)
{
Set<T> result = new HashSet<>();
if (sets == null)
return result;
for (Set<T> set : sets)
{
if (set != null)
result.addAll(set);
}
return result;
} | [
"Join N sets."
] | [
"Operates on one dimension at a time.",
"Set the TableAlias for aPath\n@param aPath\n@param hintClasses\n@param TableAlias",
"Returns an iterator over the items in the trash.\n@return an iterator over the items in the trash.",
"Initializes the components.\n\n@param components the components",
"Places the re... |
public static spilloverpolicy_stats get(nitro_service service, String name) throws Exception{
spilloverpolicy_stats obj = new spilloverpolicy_stats();
obj.set_name(name);
spilloverpolicy_stats response = (spilloverpolicy_stats) obj.stat_resource(service);
return response;
} | [
"Use this API to fetch statistics of spilloverpolicy_stats resource of given name ."
] | [
"Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder",
"Creates a new empty HTML document tree.\n@throws ParserConfigurationException",
"Returns the number of consecutive trailing one or zero bits.\nIf network is true, returns the number of consecuti... |
public void loadAnimation(GVRAndroidResource animResource, String boneMap)
{
String filePath = animResource.getResourcePath();
GVRContext ctx = mAvatarRoot.getGVRContext();
GVRResourceVolume volume = new GVRResourceVolume(ctx, animResource);
if (filePath.endsWith(".bvh"))
{
... | [
"Load an animation for the current avatar.\n@param animResource resource with the animation\n@param boneMap optional bone map to map animation skeleton to avatar"
] | [
"Returns a correlation matrix which has rank < n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.",
"List a... |
@Override
public void attachScriptFile(IScriptable target, IScriptFile scriptFile) {
mScriptMap.put(target, scriptFile);
scriptFile.invokeFunction("onAttach", new Object[] { target });
} | [
"Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object."
] | [
"Find a given range object in a list of ranges by a value in that range. Does a binary\nsearch over the ranges but instead of checking for equality looks within the range.\nTakes the array size as an option in case the array grows while searching happens\n@param <T> Range type\n@param ranges data list\n@param value... |
public void setFrustum(Matrix4f projMatrix)
{
if (projMatrix != null)
{
if (mProjMatrix == null)
{
mProjMatrix = new float[16];
}
mProjMatrix = projMatrix.get(mProjMatrix, 0);
mScene.setPickVisible(false);
if (mC... | [
"Set the view frustum to pick against from the given projection matrix.\n\nIf the projection matrix is null, the picker will revert to picking\nobjects that are visible from the viewpoint of the scene's current camera.\nIf a matrix is given, the picker will pick objects that are visible\nfrom the viewpoint of it's... | [
"Static main.\n\n@param args\nProgram arguments.\n@throws IOException\nIf an IO error occurred.",
"Checks to see if another AbstractTransition's states is isCompatible for merging.\n\n@param another\n@return",
"Extract schema of the value field",
"Given a key and a list of steal infos give back a list of stea... |
public static <T> Collection<MemberResponse<T>> executeOptimistic(IExecutorService execSvc, Set<Member> members, Callable<T> callable) {
return executeOptimistic(execSvc, members, callable, 60, TimeUnit.SECONDS);
} | [
"Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return"
] | [
"Parse a date time value.\n\n@param value String representation\n@return Date instance",
"Use this API to fetch aaagroup_aaauser_binding resources of given name .",
"Deletes all outgoing links of specified entity.\n\n@param entity the entity.",
"Use this API to fetch sslpolicy_lbvserver_binding resources of g... |
public AsciiTable setPaddingRightChar(Character paddingRightChar) {
for(AT_Row row : this.rows){
if(row.getType()==TableRowType.CONTENT){
row.setPaddingRightChar(paddingRightChar);
}
}
return this;
} | [
"Sets the right padding character for all cells in the table.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining"
] | [
"Initializes the external child resource collection.",
"Resolve the server registry.\n\n@param mgmtVersion the mgmt version\n@param subsystems the subsystems\n@return the transformer registry",
"Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controll... |
public boolean shouldNotCache(String requestUri) {
String uri = requestUri.toLowerCase();
return checkContains(uri, noCacheIdentifiers) || checkSuffixes(uri, noCacheSuffixes);
} | [
"Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited"
] | [
"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",
"Find the next match of the pattern on the tree\n\n@return whether there is a match somewhere in the tree",
"Adds columns for the specified... |
public List<ServerRedirect> deleteServerMapping(int serverMappingId) {
ArrayList<ServerRedirect> servers = new ArrayList<ServerRedirect>();
try {
JSONArray serverArray = new JSONArray(doDelete(BASE_SERVER + "/" + serverMappingId, null));
for (int i = 0; i < serverArray.length(); ... | [
"Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects"
] | [
"Writes the results of the processing to a CSV file.",
"This creates a new audit log file with default permissions.\n\n@param file File to create",
"returns the total count of objects in the GeneralizedCounter.",
"Use this API to fetch all the snmpmanager resources that are configured on netscaler.",
"Check... |
private boolean renameKeyForAllLanguages(String oldKey, String newKey) {
try {
loadAllRemainingLocalizations();
lockAllLocalizations(oldKey);
if (hasDescriptor()) {
lockDescriptor();
}
} catch (CmsException | IOException e) {
L... | [
"Rename a key for all languages.\n@param oldKey the key to rename\n@param newKey the new key name\n@return <code>true</code> if renaming was successful, <code>false</code> otherwise."
] | [
"Adds two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the sum of specified complex numbers.",
"Adds an index to the table for the given index descriptor.\n\n@param indexDescDef The index descriptor\n@param tableDef The table",... |
private boolean activityIsStartMilestone(Activity activity)
{
String type = activity.getType();
return type != null && type.indexOf("StartMilestone") != -1;
} | [
"Returns true if the activity is a start milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone"
] | [
"Required to close the connection reading on the terminal, otherwise\nit can't be interrupted.\n\n@throws InterruptedException",
"Gets the global and adds it ot the BatchExecutionresults using the alternative outIdentifier.\n\n@param identifier\nThe identifier of the global\n@param outIdentifier\nThe identifier u... |
public ItemRequest<CustomField> insertEnumOption(String customField) {
String path = String.format("/custom_fields/%s/enum_options/insert", customField);
return new ItemRequest<CustomField>(this, CustomField.class, path, "POST");
} | [
"Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object"
] | [
"Sets the whole day flag.\n@param isWholeDay flag, indicating if the event lasts whole days.",
"Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator",
"Specifies the ARM resource id of the user assigned managed service ident... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.