query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
public Entry<T>[] entries() {
@SuppressWarnings("unchecked")
Entry<T>[] entries = new Entry[size];
int idx = 0;
for (Entry entry : table) {
while (entry != null) {
entries[idx++] = entry;
entry = entry.next;
}
}
retu... | [
"Returns all entries in no particular order."
] | [
"Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name .",
"Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence... |
protected void doSplitTokenImpl(Token token, ITokenAcceptor result) {
String text = token.getText();
int indentation = computeIndentation(text);
if (indentation == -1 || indentation == currentIndentation) {
// no change of indentation level detected simply process the token
result.accept(token);
} else if... | [
"The token was previously determined as potentially to-be-splitted thus we\nemit additional indentation or dedenting tokens."
] | [
"Returns a new instance of the class with the given qualified name using the constructor with\nthe specified parameter.\n\n@param className The qualified name of the class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance",
"... |
public static void fillProcessorAttributes(
final List<Processor> processors,
final Map<String, Attribute> initialAttributes) {
Map<String, Attribute> currentAttributes = new HashMap<>(initialAttributes);
for (Processor processor: processors) {
if (processor instanceo... | [
"Fill the attributes in the processor.\n\n@param processors The processors\n@param initialAttributes The attributes\n@see RequireAttributes\n@see ProvideAttributes"
] | [
"Add tasks to the tree.\n\n@param parentNode parent tree node\n@param parent parent task container",
"Get a collection of methods declared on this object by method name.\n\n@param name the name of the method\n@return the (possibly empty) collection of methods with the given name",
"Scroll to specific page. The ... |
public ReferenceDescriptorDef getReference(String name)
{
ReferenceDescriptorDef refDef;
for (Iterator it = _references.iterator(); it.hasNext(); )
{
refDef = (ReferenceDescriptorDef)it.next();
if (refDef.getName().equals(name))
{
... | [
"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"
] | [
"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 {@code false}",
"called periodically to check that the heartbeat has been received\n\n@return {@code true} if we have received a heartbeat r... |
public static long randomLongBetween(long min, long max) {
Random rand = new Random();
return min + (long) (rand.nextDouble() * (max - min));
} | [
"Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number"
] | [
"Finds out which dump files of the given type have been downloaded\nalready. The result is a list of objects that describe the available dump\nfiles, in descending order by their date. Not all of the dumps included\nmight be actually available.\n\n@param dumpContentType\nthe type of dump to consider\n@return list o... |
public static String readTextFile(Context context, String asset) {
try {
InputStream inputStream = context.getAssets().open(asset);
return org.gearvrf.utility.TextFile.readTextFile(inputStream);
} catch (FileNotFoundException f) {
Log.w(TAG, "readTextFile(): asset fil... | [
"Read a text file from assets into a single string\n\n@param context\nA non-null Android Context\n@param asset\nThe asset file to read\n@return The contents or null on error."
] | [
"Perform the given work with a Jedis connection from the given pool.\nWraps any thrown checked exceptions in a RuntimeException.\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",
"Retrieves a thumbnail, or smaller image represent... |
public static service_stats[] get(nitro_service service) throws Exception{
service_stats obj = new service_stats();
service_stats[] response = (service_stats[])obj.stat_resources(service);
return response;
} | [
"Use this API to fetch the statistics of all service_stats resources that are configured on netscaler."
] | [
"Calculates all dates of the series.\n@return all dates of the series in milliseconds.",
"Adds a leaf node, which could be a task or a milestone.\n\n@param parentName parent bar name\n@param row row to add\n@param task task to populate with data from the row",
"Returns the start of this resource assignment.\n\n... |
public static base_response save(nitro_service client, cacheobject resource) throws Exception {
cacheobject saveresource = new cacheobject();
saveresource.locator = resource.locator;
return saveresource.perform_operation(client,"save");
} | [
"Use this API to save cacheobject."
] | [
"Attemps to delete all provided segments from a log and returns how many it was able to",
"Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.",
"Generate and return the list of statements to create a data... |
public void setAngle(float angle) {
this.angle = angle;
float cos = (float) Math.cos(angle);
float sin = (float) Math.sin(angle);
m00 = cos;
m01 = sin;
m10 = -sin;
m11 = cos;
} | [
"Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle"
] | [
"Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException",
"Destroys an instance of the bean\n\n@param instance The inst... |
public String getModuleJenkinsJobInfo(final DbArtifact dbArtifact) {
final DbModule module = getModule(dbArtifact);
if(module == null){
return "";
}
final String jenkinsJobUrl = module.getBuildInfo().get("jenkins-job-url");
if(jenkinsJobUrl == null){
return "";
}
return jenkinsJobUrl;
} | [
"k\nReturns a list of artifact regarding the filters\n\n@return List<DbArtifact>"
] | [
"Obtains a local date in International Fixed calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the International Fixed era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the International Fixed local date, not null\n@throws DateTimeException ... |
public static ResourceKey key(Enum<?> value) {
return new ResourceKey(value.getClass().getName(), value.name());
} | [
"Creates a resource key for given enumeration value. By convention,\nresource bundle for enumerations has the name of enumeration class\nand value identifier is the same as enumeration value name.\n@param value the enumeration value\n@return the resource key"
] | [
"Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"",
"Use this API to fetch a vpnglobal_intranetip_binding resources.",
"Runs the given method with the specified arguments, substituting with proxies where ne... |
private void increaseBeliefCount(String bName) {
Object belief = this.getBelief(bName);
int count = 0;
if (belief!=null) {
count = (Integer) belief;
}
this.setBelief(bName, count + 1);
} | [
"If the belief its a count of some sort his counting its increased by one.\n\n@param bName\n- the name of the belief count."
] | [
"Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found.",
"Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.",
"Read a si... |
public ArrayList<Double> segmentBaselineCost(ProjectFile file, List<TimephasedCost> cost, TimescaleUnits rangeUnits, ArrayList<DateRange> dateList)
{
return segmentCost(file.getBaselineCalendar(), cost, rangeUnits, dateList);
} | [
"This is the main entry point used to convert the internal representation\nof timephased baseline cost into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ran... | [
"Use this API to flush cacheobject resources.",
"Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not sup... |
private void writeResource(Resource record) throws IOException
{
m_buffer.setLength(0);
//
// Write the resource record
//
int[] fields = m_resourceModel.getModel();
m_buffer.append(MPXConstants.RESOURCE_RECORD_NUMBER);
for (int loop = 0; loop < fields.length; loop++)
... | [
"Write a resource.\n\n@param record resource instance\n@throws IOException"
] | [
"Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments.",
"Gets a list of registered docker images from the images cache, if it ... |
public static Boolean askConfirm(Boolean confirm, String opDesc) throws IOException {
if(confirm) {
System.out.println("Confirmed " + opDesc + " in command-line.");
return true;
} else {
System.out.println("Are you sure you want to " + opDesc + "? (yes/no)");
... | [
"Utility function that pauses and asks for confirmation on dangerous\noperations.\n\n@param confirm User has already confirmed in command-line input\n@param opDesc Description of the dangerous operation\n@throws IOException\n@return True if user confirms the operation in either command-line input\nor here."
] | [
"Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention",
"Converts the node to JSON\n@return JSON object",
... |
public boolean addDescriptor() {
saveLocalization();
IndexedContainer oldContainer = m_container;
try {
createAndLockDescriptorFile();
unmarshalDescriptor();
updateBundleDescriptorContent();
m_hasMasterMode = true;
m_container = create... | [
"Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise."
] | [
"Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data",
"Initialize the pattern controllers.",
"Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself",
"Load a list of entities using the information in the cont... |
public byte getByte(Integer type)
{
byte result = 0;
byte[] item = m_map.get(type);
if (item != null)
{
result = item[0];
}
return (result);
} | [
"Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value"
] | [
"Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block",
"Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions",
"Computes the eigenvalue of the 2 by 2 matrix.",
"Convert MPX day index to Da... |
public String getBaselineDurationText()
{
Object result = getCachedValue(TaskField.BASELINE_DURATION);
if (result == null)
{
result = getCachedValue(TaskField.BASELINE_ESTIMATED_DURATION);
}
if (!(result instanceof String))
{
result = null;
}
return ... | [
"Retrieves the text value for the baseline duration.\n\n@return baseline duration text"
] | [
"Computes the null space using QRP decomposition. This is faster than using SVD but slower than QR.\nMuch more stable than QR though.\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space",
"Adds a String timestamp representing uninstall flag to the DB.",
"This method writ... |
public void deleteOrganization(final String organizationId) {
final DbOrganization dbOrganization = getOrganization(organizationId);
repositoryHandler.deleteOrganization(dbOrganization.getName());
repositoryHandler.removeModulesOrganization(dbOrganization);
} | [
"Deletes an organization\n\n@param organizationId String"
] | [
"Converts the node to JSON\n@return JSON object",
"Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects",
"Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .",
"Find the animation asso... |
public static synchronized void unregister(final String serviceName,
final Callable<Class< ? >> factory) {
if ( serviceName == null ) {
throw new IllegalArgumentException( "serviceName cannot be null" );
}
if ( factories != null ) {
... | [
"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 Illeg... | [
"Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.",
"adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException",
"Build copyright map once.",
"Use this API to enable Interface resources of given names.",
"Ensures that the... |
public String getBaselineDurationText(int baselineNumber)
{
Object result = getCachedValue(selectField(TaskFieldLists.BASELINE_DURATIONS, baselineNumber));
if (result == null)
{
result = getCachedValue(selectField(TaskFieldLists.BASELINE_ESTIMATED_DURATIONS, baselineNumber));
}
... | [
"Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value"
] | [
"Apply filters to a method name.\n@param methodName",
"Reads resource data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file",
"Use this API to update route6 resources.",
"Heat Equation Boundary Conditions",
"Build a valid datastore URL.",
"Use this API to fetch autoscaleaction resou... |
public void fireRelationWrittenEvent(Relation relation)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.relationWritten(relation);
}
}
} | [
"This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance"
] | [
"Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit.",
"This method lists any notes attached to tasks... |
public void validateOperations(final List<ModelNode> operations) {
if (operations == null) {
return;
}
for (ModelNode operation : operations) {
try {
validateOperation(operation);
} catch (RuntimeException e) {
if (exitOnError)... | [
"Validates operations against their description providers\n\n@param operations The operations to validate\n@throws IllegalArgumentException if any operation is not valid"
] | [
"If first and second are Strings, then this returns an MutableInternedPair\nwhere the Strings have been interned, and if this Pair is serialized\nand then deserialized, first and second are interned upon\ndeserialization.\n\n@param p A pair of Strings\n@return MutableInternedPair, with same first and second as this... |
public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException {
final InstalledImage installedImage = installedImage(jbossHome);
return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyL... | [
"Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException"
] | [
"Parses the resource String id and get back the int res id\n@param context\n@param id String resource id\n@return int resource id",
"Click handler for bottom drawer items.",
"Returns the Class object of the class specified in the OJB.properties\nfile for the \"PersistentFieldClass\" property.\n\n@return Class T... |
@NonNull
public static File[] listAllFiles(File directory) {
if (directory == null) {
return new File[0];
}
File[] files = directory.listFiles();
return files != null ? files : new File[0];
} | [
"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."
] | [
"This method lists all tasks defined in the file.\n\n@param file MPX file",
"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",
"Log a warning message with a throwable.",
... |
public static ComplexNumber Multiply(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real * scalar, z1.imaginary * scalar);
} | [
"Multiply scalar value to a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the multiply of specified complex number with the scalar value."
] | [
"Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.",
"Sets the specified date attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0",
"Handles the response of the SendDa... |
public void hide() {
div.removeFromParent();
if (scrollDisabled) {
RootPanel.get().getElement().getStyle().setOverflow(Style.Overflow.AUTO);
}
if (type == LoaderType.CIRCULAR) {
preLoader.removeFromParent();
} else if (type == LoaderType.PROGRESS) {
... | [
"Hides the Loader component"
] | [
"Resolves the path relative to the parent and normalizes it.\n\n@param parent the parent path\n@param path the path\n\n@return the normalized path",
"Operators which affect the variables to its left and right",
"Do the search, called as a \"page action\"",
"Build filter for the request.\n\n@param layerFilte... |
public Bundler put(String key, Parcelable value) {
delegate.putParcelable(key, value);
return this;
} | [
"Inserts a Parcelable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Parcelable object, or null\n@return this bundler instance to chain method calls"
] | [
"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 ... |
protected void propagateOnMotionOutside(MotionEvent event)
{
if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS))
{
if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS))
{
getGVRContext().getEventManager().sendEvent(this, ITouchEvents.class, "onMo... | [
"Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked"
] | [
"Returns flag whose value indicates if the string is null, empty or\nonly contains whitespace characters\n\n@param s a string\n@return true if the string is null, empty or only contains whitespace characters",
"Gets a static resource from a plugin\n\n@param pluginName - Name of the plugin(defined in the plugin ma... |
public static cmppolicylabel_stats[] get(nitro_service service) throws Exception{
cmppolicylabel_stats obj = new cmppolicylabel_stats();
cmppolicylabel_stats[] response = (cmppolicylabel_stats[])obj.stat_resources(service);
return response;
} | [
"Use this API to fetch the statistics of all cmppolicylabel_stats resources that are configured on netscaler."
] | [
"Creates an immutable list that consists of the elements in the given collection. If the given collection is already an immutable list,\nit is returned directly.\n\n@param source the given collection\n@return an immutable list",
"Finds the first mesh in the given model.\n@param model root of a model loaded by the... |
public static gslbsite[] get(nitro_service service, options option) throws Exception{
gslbsite obj = new gslbsite();
gslbsite[] response = (gslbsite[])obj.get_resources(service,option);
return response;
} | [
"Use this API to fetch all the gslbsite resources that are configured on netscaler."
] | [
"Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails",
"Write a string field to the JS... |
private void populateContainer(FieldType field, List<Pair<String, String>> items)
{
CustomField config = m_container.getCustomField(field);
CustomFieldLookupTable table = config.getLookupTable();
for (Pair<String, String> pair : items)
{
CustomFieldValueItem item = new CustomFieldVa... | [
"Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions"
] | [
"get the default profile\n\n@return representation of default profile\n@throws Exception exception",
"Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to",
"poll the re... |
public static CmsSearchConfigurationSorting create(
final String sortParam,
final List<I_CmsSearchConfigurationSortOption> options,
final I_CmsSearchConfigurationSortOption defaultOption) {
return (null != sortParam) || ((null != options) && !options.isEmpty()) || (null != defaultOption... | [
"Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.\n@param sortParam The request parameter used to send the currently chosen search option.\n@param options The available sort options.\n@param defaultOption The default sort option.\n@return the sort config... | [
"Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.",
"Sets the invalid values for the TextBox\n@param invalidValues\n@param isCaseSensitive\n@param invalidValueErrorMessage",
"Use this API to add tmtrafficaction.",
"Attempts exclusive acquisition with a max wait time.\n... |
public static String toBinaryString(byte[] bytes) {
StringBuilder buffer = new StringBuilder();
for(byte b: bytes) {
String bin = Integer.toBinaryString(0xFF & b);
bin = bin.substring(0, Math.min(bin.length(), 8));
for(int j = 0; j < 8 - bin.length(); j++) {
... | [
"Translate the given byte array into a string of 1s and 0s\n\n@param bytes The bytes to translate\n@return The string"
] | [
"Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet ... |
public String processProcedureArgument(Properties attributes) throws XDocletException
{
String id = attributes.getProperty(ATTRIBUTE_NAME);
ProcedureArgumentDef argDef = _curClassDef.getProcedureArgument(id);
String attrName;
if (argDef ... | [
"Processes a runtime procedure argument tag.\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=\"content\"\n@doc.param name=\"attributes\" optional=\"true\" descri... | [
"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",
"Moves the drawer to the position passed.\n\n@param position The position the content is moved to.\n@param velocity Optional velocity ... |
public static lbvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_cachepolicy_binding obj = new lbvserver_cachepolicy_binding();
obj.set_name(name);
lbvserver_cachepolicy_binding response[] = (lbvserver_cachepolicy_binding[]) obj.get_resources(service);
return res... | [
"Use this API to fetch lbvserver_cachepolicy_binding resources of given name ."
] | [
"This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value",
"We want to get the best result possible as this value\nis used to determine what work needs to be recovered.\n\n@return",
"Get a collection of public ph... |
private Style getRowTotalStyle(DJCrosstabRow crosstabRow) {
return crosstabRow.getTotalStyle() == null ? this.djcross.getRowTotalStyle(): crosstabRow.getTotalStyle();
} | [
"MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class.... | [
"Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.",
"This method writes resource data to a JSON file.",
"Leave a group.\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.leave.html\">lickr.groups.leave</a> for a descriptio... |
protected static final String formatUsingFormat(Long value, DateTimeFormat fmt) {
if (value == null) {
return "";
}
else {
// midnight GMT
Date date = new Date(0);
// offset by timezone and value
date.setTime(UTCDateBox.timezoneOffsetMi... | [
"Formats the value provided with the specified DateTimeFormat"
] | [
"Use this API to fetch service_dospolicy_binding resources of given name .",
"Rollback the last applied patch.\n\n@param contentPolicy the content policy\n@param resetConfiguration whether to reset the configuration\n@param modification the installation modification\n@return the patching result\n@throw... |
protected String getUserDefinedFieldName(String field) {
int index = field.indexOf('-');
char letter = getUserDefinedFieldLetter();
for (int i = 0; i < index; ++i) {
if (field.charAt(i) == letter) {
return field.substring(index + 1);
}
}
... | [
"Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1"
] | [
"The normalized string returned by this method is consistent with java.net.Inet6address.\nIPs are not compressed nor mixed in this representation.",
"We add typeRefs without Nodes on the fly, so we should remove them before relinking.",
"Get a property as a int or null.\n\n@param key the property name",
"Pars... |
public JsonObject getJsonObject() {
JsonObject obj = new JsonObject();
obj.add("field", this.field);
obj.add("value", this.value);
return obj;
} | [
"Get the JSON representation of the metadata field filter.\n@return the JSON object representing the filter."
] | [
"Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth",
"Set the parent from which this week is derived.\n\n@param parent parent week",
"Extracts the data for a single file from the input stream and writes\nit to a target directory.\n\n@param stream input stream\n@param dir target d... |
public int getLinkId(@NotNull final PersistentStoreTransaction txn, @NotNull final String linkName, final boolean allowCreate) {
return allowCreate ? linkIds.getOrAllocateId(txn, linkName) : linkIds.getId(txn, linkName);
} | [
"Gets id of a link and creates the new one if necessary.\n\n@param linkName name of the link.\n@param allowCreate if set to true and if there is no link named as linkName,\ncreate the new id for the linkName.\n@return < 0 if there is no such link and create=false, else id of the link"
] | [
"Adds a file to your assembly but automatically genarates the name of the file.\n\n@param inputStream {@link InputStream} the file to be uploaded.",
"This function computes which reduce task to shuffle a record to.",
"This version assumes relativeIndices array no longer needs to\nbe copied. Further it is assume... |
void backupConfiguration() throws IOException {
final String configuration = Constants.CONFIGURATION;
final File a = new File(installedImage.getAppClientDir(), configuration);
final File d = new File(installedImage.getDomainDir(), configuration);
final File s = new File(installedImage.... | [
"Backup the current configuration as part of the patch history.\n\n@throws IOException for any error"
] | [
"Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost",
"Saves the favorites.\n\n@param favorites the list of favorites to save\n@throws CmsException if something goes wrong",
"Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data",
"Re... |
public final void notifyContentItemRangeRemoved(int positionStart, int itemCount) {
if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > contentItemCount) {
throw new IndexOutOfBoundsException("The given range [" + positionStart + " - "
+ (positionStart + itemCou... | [
"Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count."
] | [
"send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message",
"Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used mult... |
public static ModelNode createLocalHostHostInfo(final LocalHostControllerInfo hostInfo, final ProductConfig productConfig,
final IgnoredDomainResourceRegistry ignoredResourceRegistry, final Resource hostModelResource) {
final ModelNode info = new ModelNode();
... | [
"Create the metadata which gets send to the DC when registering.\n\n\n@param hostInfo the local host info\n@param productConfig the product config\n@param ignoredResourceRegistry registry of ignored resources\n@return the host info"
] | [
"create logs with given partition number\n\n@param topic the topic name\n@param partitions partition number\n@param forceEnlarge enlarge the partition number of log if smaller than runtime\n@return the partition number of the log after enlarging",
"Populates a calendar exception instance.\n\n@param recor... |
public static void doMetaGetRO(AdminClient adminClient,
Collection<Integer> nodeIds,
List<String> storeNames,
List<String> metaKeys) throws IOException {
for(String key: metaKeys) {
... | [
"Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException"
] | [
"Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value",
"Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>",
"Write back to hints file.",
"Returns a new instance of the given cla... |
public static String toJson(Calendar cal) {
if (cal == null) {
return NULL_VALUE;
}
CharBuf buffer = CharBuf.create(26);
writeDate(cal.getTime(), buffer);
return buffer.toString();
} | [
"Format a calendar instance that is parseable from JavaScript, according to ISO-8601.\n\n@param cal the calendar to format to a JSON string\n@return a formatted date in the form of a string"
] | [
"A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0",
"Injects bound fields\n\n@param instance The instance to inject into",
"Deletes a FilePath file.\n\n@param workspace The build workspace.\... |
public static Calendar popCalendar()
{
Calendar result;
Deque<Calendar> calendars = CALENDARS.get();
if (calendars.isEmpty())
{
result = Calendar.getInstance();
}
else
{
result = calendars.pop();
}
return result;
} | [
"Acquire a calendar instance.\n\n@return Calendar instance"
] | [
"Aggregates a list of templates specified by @Template",
"Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception",
"Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.",
"Use this API to reset Interface.",
"Obtain newlin... |
public Gallery lookupGallery(String galleryId) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_LOOKUP_GALLERY);
parameters.put("url", galleryId);
Response response = transport.get(transport.getPath(), parame... | [
"Lookup the Gallery for the specified ID.\n\n@param galleryId\nThe user profile URL\n@return The Gallery\n@throws FlickrException"
] | [
"If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.",
"Creates a MetaMatcher based on the filter content.\n\n@param filterAsString the String representation of the filter\n@param metaMatchers the Map of custom MetaMatchers\n@return A MetaMatcher used to match the filter content",
... |
private static Clique valueOfHelper(int[] relativeIndices) {
// if clique already exists, return that one
Clique c = new Clique();
c.relativeIndices = relativeIndices;
return intern(c);
} | [
"This version assumes relativeIndices array no longer needs to\nbe copied. Further it is assumed that it has already been\nchecked or assured by construction that relativeIndices\nis sorted."
] | [
"Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers",
"Answer the TableAlias for aPath or aUserAlias\n@param aPath\n@param aUserAlias\n@param hintClasses\n@return TableAlias, null if none",
"1-D Integer array to double array.\n\n@param a... |
private ProjectCalendar getTaskCalendar(Project.Tasks.Task task)
{
ProjectCalendar calendar = null;
BigInteger calendarID = task.getCalendarUID();
if (calendarID != null)
{
calendar = m_projectFile.getCalendarByUniqueID(Integer.valueOf(calendarID.intValue()));
}
return ... | [
"This method is used to retrieve the calendar associated\nwith a task. If no calendar is associated with a task, this method\nreturns null.\n\n@param task MSPDI task\n@return calendar instance"
] | [
"Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.",
"Sets page shift orientation. The pages might be shifted horizontally or vertically relative\nto each other to make the content of each page on the screen at least partially visible\n@param orientation",
"Creat... |
private static void addCacheDetailsEntry(SlotReference slot, ZipOutputStream zos, WritableByteChannel channel) throws IOException {
// Record the details of the media being cached, to make it easier to recognize now that we can.
MediaDetails details = MetadataFinder.getInstance().getMediaDetailsFor(slot... | [
"Record the details of the media being cached, to make it easier to recognize, now that we have access to that\ninformation.\n\n@param slot the slot from which a metadata cache is being created\n@param zos the stream to which the ZipFile is being written\n@param channel the low-level channel to which the cache is b... | [
"Returns the coordinates of the vertex points of this hull.\n\n@param coords\nreturns the x, y, z coordinates of each vertex. This length of\nthis array must be at least three times the number of\nvertices.\n@return the number of vertices\n@see QuickHull3D#getVertices()\n@see QuickHull3D#getFaces()",
"Read custom... |
public static RebalanceTaskInfo decodeRebalanceTaskInfoMap(VAdminProto.RebalanceTaskInfoMap rebalanceTaskInfoMap) {
RebalanceTaskInfo rebalanceTaskInfo = new RebalanceTaskInfo(
rebalanceTaskInfoMap.getStealerId(),
... | [
"Given a protobuf rebalance-partition info, converts it into our\nrebalance-partition info\n\n@param rebalanceTaskInfoMap Proto-buff version of\nRebalanceTaskInfoMap\n@return RebalanceTaskInfo object."
] | [
"Create an object of the given type using a constructor that matches the\nsupplied arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorExcept... |
private int indexFor(int hash)
{
// mix the bits to avoid bucket collisions...
hash += ~(hash << 15);
hash ^= (hash >>> 10);
hash += (hash << 3);
hash ^= (hash >>> 6);
hash += ~(hash << 11);
hash ^= (hash >>> 16);
return hash & (table.length -... | [
"Converts the given hash code into an index into the\nhash table."
] | [
"Log column data.\n\n@param column column data",
"Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the file containing the content\n\n@return the deployment",
"Retrieve a boolean field.\n\n@param type field... |
private int[] convertBatch(int[] batch) {
int[] conv = new int[batch.length];
for (int i=0; i<batch.length; i++) {
conv[i] = sample[batch[i]];
}
return conv;
} | [
"Converts a batch indexing into the sample, to a batch indexing into the\noriginal function.\n\n@param batch The batch indexing into the sample.\n@return A new batch indexing into the original function, containing only\nthe indices from the sample."
] | [
"Use this API to update responderpolicy resources.",
"This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data",
"Create a WebDriver backe... |
private int calcItemWidth(RecyclerView rvCategories) {
if (itemWidth == null || itemWidth == 0) {
for (int i = 0; i < rvCategories.getChildCount(); i++) {
itemWidth = rvCategories.getChildAt(i).getWidth();
if (itemWidth != 0) {
break;
... | [
"very big duct tape"
] | [
"Returns the WDTK datatype IRI for the property datatype as represented by\nthe given JSON datatype string.\n\n@param jsonDatatype\nthe JSON datatype string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known",
"Read properties from the active profiles.\n\nGoes through all... |
public static final Date utc2date(Long time) {
// don't accept negative values
if (time == null || time < 0) return null;
// add the timezone offset
time += timezoneOffsetMillis(new Date(time));
return new Date(time);
} | [
"Converts a time in UTC to a gwt Date object which is in the timezone of\nthe current browser.\n\n@return The Date corresponding to the time, adjusted for the timezone of\nthe current browser. null if the specified time is null or\nrepresents a negative number."
] | [
"Set the minimum date limit.",
"Processes the most recent dump of the sites table to extract information\nabout registered sites.\n\n@return a Sites objects that contains the extracted information, or null\nif no sites dump was available (typically in offline mode without\nhaving any previously downloaded sites d... |
private BigInteger printExtendedAttributeDurationFormat(Object value)
{
BigInteger result = null;
if (value instanceof Duration)
{
result = DatatypeConverter.printDurationTimeUnits(((Duration) value).getUnits(), false);
}
return (result);
} | [
"Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units"
] | [
"Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data",
"Create a FreeMarkerOperation with the provided furnace instance template path, and varNames.\n\nThe variables in varNames will be provided to the template, and a new ReportModel will be create... |
private static boolean checkModifiers(Class<? extends AbstractPlugin> pluginClass) {
int modifiers = pluginClass.getModifiers();
return !Modifier.isAbstract(modifiers) &&
!Modifier.isInterface(modifiers) &&
!Modifier.isPrivate(modifiers);
} | [
"Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface."
] | [
"This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers",
"Set the degrees of rotation. Value will be set to -1, if not available.\n\n@param rotation",
"Use this API to update snmpalarm.",
"Requests th... |
public void logError(String message, Object sender) {
getEventManager().sendEvent(this, IErrorEvents.class, "onError", new Object[] { message, sender });
} | [
"Logs an error by sending an error event to all listeners.\n\nError events can be generated by any part of GearVRF,\nfrom any thread. They are always sent to the event receiver\nof the GVRContext.\n\n@param message error message\n@param sender object which had the error\n@see IErrorEvents"
] | [
"Use this API to fetch all the gslbservice resources that are configured on netscaler.",
"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 Para... |
private Resolvable createMetadataProvider(Class<?> rawType) {
Set<Type> types = Collections.<Type>singleton(rawType);
return new ResolvableImpl(rawType, types, declaringBean, qualifierInstances, delegate);
} | [
"just as facade but we keep the qualifiers so that we can recognize Bean from @Intercepted Bean."
] | [
"Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional",
"Returns the value of the identified field as a Boolean.\n@param fieldName the name of the field\n@return the value of the field as a ... |
protected Map<String, TermImpl> getMonolingualUpdatedValues(Map<String, NameWithUpdate> updates) {
Map<String, TermImpl> updatedValues = new HashMap<>();
for(NameWithUpdate update : updates.values()) {
if (!update.write) {
continue;
}
updatedValues.put(updat... | [
"Helper to format term updates as expected by the Wikibase API\n@param updates\nplanned updates for the type of term\n@return map ready to be serialized as JSON by Jackson"
] | [
"Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data",
"We have obtained album art for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this art\n@param art the album art which we retrieved",
"Parses the co... |
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation) {
this.valid = false;
for (Class<? extends Annotation> annotationType : getMetaAnnotationTypes()) {
if (annotatedAnnotation.isAnnotationPresent(annotationType)) {
this.valid = true;
}
}
... | [
"Validates the data for correct annotation"
] | [
"get the converted object corresponding to sourceObject as converted to\ndestination type by converter\n\n@param converter\n@param sourceObject\n@param destinationType\n@return",
"Calculates the size based constraint width and height if present, otherwise from children sizes.",
"Navigate to this address in the ... |
protected boolean _load ()
{
java.sql.ResultSet rs = null;
try
{
// This synchronization is necessary for Oracle JDBC drivers 8.1.7, 9.0.1, 9.2.0.1
// The documentation says synchronization is done within the driver, but they
// must h... | [
"Loads the schemas associated to this catalog."
] | [
"Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector",
"This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties f... |
public static RelationType getInstance(Locale locale, String type)
{
int index = -1;
String[] relationTypes = LocaleData.getStringArray(locale, LocaleData.RELATION_TYPES);
for (int loop = 0; loop < relationTypes.length; loop++)
{
if (relationTypes[loop].equalsIgnoreCase(type) == tru... | [
"This method takes the textual version of a relation type\nand returns an appropriate class instance. Note that unrecognised\nvalues will cause this method to return null.\n\n@param locale target locale\n@param type text version of the relation type\n@return RelationType instance"
] | [
"Subtracts vector v1 from v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector",
"Gets the registration point that been associated with the registration for the longest period.\n\n@return the initial registration point, or {@code null} if there are no longer any re... |
public V get(K key) {
ManagedReference<V> ref = internalMap.get(key);
if (ref!=null) return ref.get();
return null;
} | [
"Returns the value stored for the given key at the point of call.\n@param key a non null key\n@return the value stored in the map for the given key"
] | [
"The test that checks if clipping is needed.\n\n@param f\nfeature to test\n@param scale\nscale\n@return true if clipping is needed",
"Creates a timespan from a list of other timespans.\n\n@return a timespan representing the sum of all the timespans provided",
"For the DC to check whether an operation should be ... |
public static protocoludp_stats get(nitro_service service) throws Exception{
protocoludp_stats obj = new protocoludp_stats();
protocoludp_stats[] response = (protocoludp_stats[])obj.stat_resources(service);
return response[0];
} | [
"Use this API to fetch the statistics of all protocoludp_stats resources that are configured on netscaler."
] | [
"Use this API to delete dnssuffix resources of given names.",
"Promotes this version of the file to be the latest version.",
"Add the final assignment of the property to the partial value object's source code.",
"Send a packet to the target player telling it to load the specified track from the specified sour... |
private static boolean isWideningPrimitive(Class<?> argumentClass, Class<?> targetClass) {
return WIDENING_TABLE.containsKey(argumentClass) && WIDENING_TABLE.get(argumentClass).contains(targetClass);
} | [
"Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return"
] | [
"Starts processor thread.",
"Obtains a local date in Accounting 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 Accounting local date, not null\n@throws D... |
private final boolean parseBoolean(String value)
{
return value != null && (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("y") || value.equalsIgnoreCase("yes"));
} | [
"Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value"
] | [
"If a custom CSS file has been specified, returns the path. Otherwise\nreturns null.\n@return A {@link File} pointing to the stylesheet, or null if no stylesheet\nis specified.",
"Look at the comments on cluster variable to see why this is problematic",
"Inserts a Serializable value into the mapping of the und... |
private ProjectFile handleOleCompoundDocument(InputStream stream) throws Exception
{
POIFSFileSystem fs = new POIFSFileSystem(POIFSFileSystem.createNonClosingInputStream(stream));
String fileFormat = MPPReader.getFileFormat(fs);
if (fileFormat != null && fileFormat.startsWith("MSProject"))
{
... | [
"We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance"
] | [
"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... |
public static csvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_cachepolicy_binding obj = new csvserver_cachepolicy_binding();
obj.set_name(name);
csvserver_cachepolicy_binding response[] = (csvserver_cachepolicy_binding[]) obj.get_resources(service);
return res... | [
"Use this API to fetch csvserver_cachepolicy_binding resources of given name ."
] | [
"Adds an environment variable to the process being created.\n\n@param key they key for the variable\n@param value the value for the variable\n\n@return the launcher",
"Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin",
"Crea... |
private int getTaskCode(String field) throws MPXJException
{
Integer result = m_taskNumbers.get(field.trim());
if (result == null)
{
throw new MPXJException(MPXJException.INVALID_TASK_FIELD_NAME + " " + field);
}
return (result.intValue());
} | [
"Returns code number of Task field supplied.\n\n@param field - name\n@return - code no"
] | [
"Writes and reads the XOP attachment using a CXF JAX-RS Proxy\nThe proxy automatically sets the \"mtom-enabled\" property by checking\nthe CXF EndpointProperty set on the XopAttachment interface.\n\n@throws Exception",
"Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task",
"Add pr... |
public static <E> String serialize(Map<String, E> map, Class<E> jsonObjectClass) throws IOException {
return mapperFor(jsonObjectClass).serialize(map);
} | [
"Serialize a map of objects to a JSON String.\n\n@param map The map of objects to serialize.\n@param jsonObjectClass The @JsonObject class of the list elements"
] | [
"Read flow id from message.\n\n@param message the message\n@return the FlowId as string",
"Cancels all the pending & running requests and releases all the dispatchers.",
"Convenience method to allow a cause. Grrrr.",
"Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolv... |
private boolean initRequestHandler(SelectionKey selectionKey) {
ByteBuffer inputBuffer = inputStream.getBuffer();
int remaining = inputBuffer.remaining();
// Don't have enough bytes to determine the protocol yet...
if(remaining < 3)
return true;
byte[] protoBytes = ... | [
"Returns true if the request should continue.\n\n@return"
] | [
"Reads an argument of type \"astring\" from the request.",
"Use this API to delete appfwlearningdata.",
"Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a cl... |
protected void load()
{
properties = new Properties();
String filename = getFilename();
try
{
URL url = ClassHelper.getResource(filename);
if (url == null)
{
url = (new File(filename)).toURL();
}
... | [
"Loads the Configuration from the properties file.\n\nLoads the properties file, or uses defaults on failure.\n\n@see org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl#setFilename(java.lang.String)"
] | [
"Create a Vendor from a Callable",
"Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. Column or row.",
"Create the voldemort key and value from the input Avro record by\nextracting the key and value and map it out for each of the responsible\nvoldemort nodes\n\n... |
public Set<ConstraintViolation> validate() {
Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>();
for (int record = 1; record <= 3; ++record) {
errors.addAll(validate(record));
}
return errors;
} | [
"Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid"
] | [
"Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value",
"If provided with an AVRO schema, validates it and checks if there are\nbackwards compatible.\n\nTODO should probably place some similar checks for other serializer types\nas well?\n... |
protected void setJsonValue(JsonObjectBuilder builder, T value) {
// I don't like this - there should really be a way to construct a disconnected JSONValue...
if (value instanceof Boolean) {
builder.add("value", (Boolean) value);
} else if (value instanceof Double) {
builder.add("value", (Double... | [
"Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add"
] | [
"Checks whether a user account can be locked because of inactivity.\n\n@param cms the CMS context\n@param user the user to check\n@return true if the user may be locked after being inactive for too long",
"Removes the token from the list\n@param token Token which is to be removed",
"Finds an ancestor of a speci... |
public static nsacl6[] get(nitro_service service) throws Exception{
nsacl6 obj = new nsacl6();
nsacl6[] response = (nsacl6[])obj.get_resources(service);
return response;
} | [
"Use this API to fetch all the nsacl6 resources that are configured on netscaler."
] | [
"Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException",
"Create a plan. The plan consists of batches. Each batch involves the\nmovement of no more than batchSize primary partitions. The movement of... |
public static int[] ConcatenateInt(List<int[]> arrays) {
int size = 0;
for (int i = 0; i < arrays.size(); i++) {
size += arrays.get(i).length;
}
int[] all = new int[size];
int idx = 0;
for (int i = 0; i < arrays.size(); i++) {
int[] v = arrays.g... | [
"Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector."
] | [
"Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block",
"Use this API to Force clustersync.",
"Stop the service and end the program",
"Returns the name from the inverse side if the given pr... |
@Deprecated
@Override
public File fetch(String source, String dest, long diskQuotaSizeInKB) throws Exception {
return fetchFromSource(source, dest, null, null, -1, diskQuotaSizeInKB, null);
} | [
"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.Metada... | [
"given is at the begining, of is at the end",
"Use this API to fetch the statistics of all aaa_stats resources that are configured on netscaler.",
"Read data for an individual task from the tables in a PEP file.\n\n@param parent parent task\n@param id task ID\n@return task instance",
"Utility function that ch... |
public void execute() throws MojoExecutionException, MojoFailureException {
try {
Set<File> thriftFiles = findThriftFiles();
final File outputDirectory = getOutputDirectory();
ImmutableSet<File> outputFiles = findGeneratedFilesInDirectory(getOutputDirectory());
Set<String> compileRoots = n... | [
"Executes the mojo."
] | [
"Calls a method from editService to update the repeat number for a path\n\n@param model\n@param newNum\n@param path_id\n@param clientUUID\n@return\n@throws Exception",
"Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable",
"Load the given class using the defa... |
private void logColumnData(int startIndex, int length)
{
if (m_log != null)
{
m_log.println();
m_log.println(FastTrackUtility.hexdump(m_buffer, startIndex, length, true, 16, ""));
m_log.println();
m_log.flush();
}
} | [
"Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length"
] | [
"Sets either the upper or low triangle of a matrix to zero",
"If the resource has ordered child types, those child types will be stored in the attachment. If there are no\nordered child types, this method is a no-op.\n\n@param resourceAddress the address of the resource\n@param resource the resource which may or ... |
public DateRange getRange(int index)
{
DateRange result;
if (index >= 0 && index < m_ranges.size())
{
result = m_ranges.get(index);
}
else
{
result = DateRange.EMPTY_RANGE;
}
return (result);
} | [
"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"
] | [
"Iterates over the contents of an object or collection, and checks whether a\npredicate is valid for at least one element.\n\n@param self the object over which we iterate\n@param closure the closure predicate used for matching\n@return true if any iteration for the object matches the closure predicate\n@since ... |
public static ResourceKey key(Class<?> clazz, Enum<?> value) {
return new ResourceKey(clazz.getName(), value.name());
} | [
"Creates a resource key with id defined as enumeration value name and bundle specified by given class.\n@param clazz the class owning the bundle\n@param value enumeration value used to define key id\n@return the resource key"
] | [
"Serialize a content into a targeted file, checking that the parent directory exists.\n\n@param folder File\n@param content String\n@param fileName String",
"Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of... |
@Override
public <T> T get(Object key, Resource resource, Provider<T> provider) {
if(resource == null) {
return provider.get();
}
CacheAdapter adapter = getOrCreate(resource);
T element = adapter.<T>internalGet(key);
if (element==null) {
element = provider.get();
cacheMiss(adapter);
adapter.set(k... | [
"Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>... | [
"Renders in LI tags, Wraps with UL tags optionally.",
"Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.",
"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 th... |
public static DataPersister lookupForField(Field field) {
// see if the any of the registered persisters are valid first
if (registeredPersisters != null) {
for (DataPersister persister : registeredPersisters) {
if (persister.isValidForField(field)) {
return persister;
}
// check the classes in... | [
"Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found."
] | [
"Close all JDBC objects related to this connection.",
"Converts an integer into a time format.\n\n@param format integer format value\n@return TimeUnit instance",
"Removes all events from table\n\n@param table the table to remove events",
"Rethrows platform specific OperationCanceledExceptions and unwraps Ope... |
public boolean hasPossibleMethod(String name, Expression arguments) {
int count = 0;
if (arguments instanceof TupleExpression) {
TupleExpression tuple = (TupleExpression) arguments;
// TODO this won't strictly be true when using list expansion in argument calls
count... | [
"Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found"
] | [
"Print the given values after displaying the provided message.",
"loading Properties from files\n\n@param filename file path\n@return properties\n@throws RuntimeException while file not exist or loading fail",
"Uploads a new file to this folder while reporting the progress to a ProgressListener.\n\n@param fileC... |
private void handleUpdate(final int player) {
final TrackMetadata metadata = MetadataFinder.getInstance().getLatestMetadataFor(player);
final WaveformDetail waveformDetail = WaveformFinder.getInstance().getLatestDetailFor(player);
final BeatGrid beatGrid = BeatGridFinder.getInstance().getLatestB... | [
"We have reason to believe we might have enough information to calculate a signature for the track loaded on a\nplayer. Verify that, and if so, perform the computation and record and report the new signature."
] | [
"Create a set containing all the processors in the graph.",
"Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.",
"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?",
"Return the map bounds rota... |
private synchronized HostServerGroupEffect getHostEffect(PathAddress address, String host, Resource root) {
if (requiresMapping) {
map(root);
requiresMapping = false;
}
Set<String> mapped = hostsToGroups.get(host);
if (mapped == null) {
// Unassigned ... | [
"Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees"
] | [
"Add a content modification.\n\n@param modification the content modification",
"Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project",
"Adds this handler to the widget.\n\n@param <H> the type of handler to add\n@param type the event type\n@param handler the handler\n@ret... |
private static String guessDumpDate(String fileName) {
Pattern p = Pattern.compile("([0-9]{8})");
Matcher m = p.matcher(fileName);
if (m.find()) {
return m.group(1);
} else {
logger.info("Could not guess date of the dump file \"" + fileName
+ "\". Defaulting to YYYYMMDD.");
return "YYYYMMDD";
}... | [
"Guess the date of the dump from the given dump file name.\n\n@param fileName\n@return 8-digit date stamp or YYYYMMDD if none was found"
] | [
"To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!",
"Use this API to fetch aaagroup_aaauser_binding resources of given name .",
"Push docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host",
"Apply a f... |
protected void adoptElement(DomXmlElement elementToAdopt) {
Document document = this.domElement.getOwnerDocument();
Element element = elementToAdopt.domElement;
if (!document.equals(element.getOwnerDocument())) {
Node node = document.adoptNode(element);
if (node == null) {
throw LOG.una... | [
"Adopts an xml dom element to the owner document of this element if necessary.\n\n@param elementToAdopt the element to adopt"
] | [
"Set the host running the Odo instance to configure\n\n@param hostName name of host",
"Returns the entry associated with the given key.\n\n@param key the key of the entry to look up\n@return the entry associated with that key, or null\nif the key is not in this map",
"For each node, checks if the store exists... |
public Widget findChildByName(final String name) {
final List<Widget> groups = new ArrayList<>();
groups.add(this);
return findChildByNameInAllGroups(name, groups);
} | [
"Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found."
] | [
"generate a message for loglevel FATAL\n\n@param pObject the message Object",
"Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdAc... |
public void close() throws IOException {
for (CloseableHttpClient c : cachedClients.values()) {
c.close();
}
cachedClients.clear();
} | [
"Close all HTTP clients created by this factory\n@throws IOException if an I/O error occurs"
] | [
"Adds one statement to the list of statements to be kept, possibly merging\nit with other statements to be kept if possible. When two existing\nstatements are merged, one of them will be updated and the other will be\nmarked for deletion.\n\n@param statement\nstatement to add\n@param isNew\nif true, the statement s... |
protected String toHexString(boolean with0xPrefix, CharSequence zone) {
if(isDualString()) {
return toNormalizedStringRange(toIPParams(with0xPrefix ? IPStringCache.hexPrefixedParams : IPStringCache.hexParams), getLower(), getUpper(), zone);
}
return toIPParams(with0xPrefix ? IPStringCache.hexPrefixedParams : I... | [
"overridden in ipv6 to handle zone"
] | [
"Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements",
"Removes any child ob... |
public OJBLock atomicGetOrCreateLock(Object resourceId, Object isolationId)
{
synchronized(globalLocks)
{
MultiLevelLock lock = getLock(resourceId);
if(lock == null)
{
lock = createLock(resourceId, isolationId);
}
r... | [
"Either gets an existing lock on the specified resource or creates one if none exists.\nThis methods guarantees to do this atomically.\n\n@param resourceId the resource to get or create the lock on\n@param isolationId the isolation level identity key. See {@link CommonsOJBLockManager}.\n@return the lock for the sp... | [
"Make a copy of this Area of Interest.",
"Get the collection of the server groups\n\n@return Collection of active server groups",
"perform rollback on all tx-states",
"Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return ... |
public AddonChange removeAddon(String appName, String addonName) {
return connection.execute(new AddonRemove(appName, addonName), apiKey);
} | [
"Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object"
] | [
"Returns an encrypted token combined with answer.",
"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 ... |
public Set<String> postProcessingFields() {
Set<String> fields = new LinkedHashSet<>();
query.forEach(condition -> fields.addAll(condition.postProcessingFields()));
sort.forEach(condition -> fields.addAll(condition.postProcessingFields()));
return fields;
} | [
"Returns the names of the involved fields when post processing.\n\n@return the names of the involved fields"
] | [
"Restore backup data\n\n@param fileData - json file with restore data\n@return\n@throws Exception",
"Returns the ARGB components for the pixel at the given coordinates\n\n@param x the x coordinate of the pixel component to grab\n@param y the y coordinate of the pixel component to grab\n@return an array containing... |
protected void countStatements(UsageStatistics usageStatistics,
StatementDocument statementDocument) {
// Count Statement data:
for (StatementGroup sg : statementDocument.getStatementGroups()) {
// Count Statements:
usageStatistics.countStatements += sg.size();
// Count uses of properties in Statements... | [
"Count the statements and property uses of an item or property document.\n\n@param usageStatistics\nstatistics object to store counters in\n@param statementDocument\ndocument to count the statements of"
] | [
"Sets the provided filters.\n@param filters a map \"column id -> filter\".",
"Use this API to fetch all the appfwprofile resources that are configured on netscaler.",
"Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceRef... |
public static File createFolder(String path, String dest_dir)
throws BeastException {
File f = new File(dest_dir);
if (!f.isDirectory()) {
try {
f.mkdirs();
} catch (Exception e) {
logger.severe("Problem creating directory: " + path
... | [
"This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException"
] | [
"Convert an ObjectName to a PathAddress.\n\nPatterns are supported: there may not be a resource at the returned PathAddress but a resource model <strong>MUST</strong>\nmust be registered.",
"Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster",
"read dat... |
private void writeTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx)
{
Project.Tasks.Task.ExtendedAttribute attrib;
List<Project.Tasks.Task.ExtendedAttribute> extendedAttributes = xml.getExtendedAttribute();
for (TaskField mpxFieldID : getAllTaskExtendedAttributes())
{
Object ... | [
"This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task"
] | [
"Calculate the starting content offset based on the layout orientation and Gravity\n@param totalSize total size occupied by the content",
"Returns true if the default profile for the specified uuid is active\n\n@return true if active, otherwise false",
"Deletes the metadata on this folder associated with a spec... |
@SuppressWarnings("deprecation")
public static boolean isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d) {
d = new java.sql.Time(d.getHours(), d.getMinutes(), d.getSeconds());
if (start == null || end == null) {
return false;
}
if (start.before(end) &... | [
"Tells you if the date part of a datetime is in a certain time range."
] | [
"Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.",
"Compute morse.\n\n@param term the term\n@return the string",
"Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found.",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.