query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
public static base_responses add(nitro_service client, clusternodegroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternodegroup addresources[] = new clusternodegroup[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | [
"Use this API to add clusternodegroup resources."
] | [
"Use this API to fetch vpnclientlessaccesspolicy resource of given name .",
"Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()",
"adds a value to the list\n\n@param value the value",
"Register a new DropPasteWorkerInterface.\n@param worker The new worker",
"Retur... |
protected void deleteAlias(MonolingualTextValue alias) {
String lang = alias.getLanguageCode();
AliasesWithUpdate currentAliases = newAliases.get(lang);
if (currentAliases != null) {
currentAliases.aliases.remove(alias);
currentAliases.deleted.add(alias);
curr... | [
"Deletes an individual alias\n\n@param alias\nthe alias to delete"
] | [
"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.",
"Converts string to UUID and returns it, or null if the conversion is not possible.\n\n@param uuid the po... |
public void commitWorkingCopy(final String commitMessage) throws IOException, InterruptedException {
build.getWorkspace().act(new SVNCommitWorkingCopyCallable(commitMessage, getLocation(),
getSvnAuthenticationProvider(build), buildListener));
} | [
"Commits the working copy.\n\n@param commitMessage@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure"
] | [
"Ends the transition",
"This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequ... |
private Resource readResource(net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource phoenixResource)
{
Resource mpxjResource = m_projectFile.addResource();
TimeUnit rateUnits = phoenixResource.getMonetarybase();
if (rateUnits == null)
{
rateUnits = TimeUnit.HO... | [
"This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance"
] | [
"Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option ... |
static <T> boolean syncInstantiation(T objectType) {
List<Template> templates = new ArrayList<>();
Templates tr = TEMP_FINDER.findAnnotations(templates, objectType);
if (tr == null) {
/* Default to synchronous instantiation */
return true;
} else {
ret... | [
"Returns true if templates are to be instantiated synchronously and false if\nasynchronously."
] | [
"key function to execute a parallel task.\n\n@param task the parallel task\n@return the batch response from manager",
"Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference... |
public static String[] randomResourceNames(String prefix, int maxLen, int count) {
String[] names = new String[count];
ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer("");
for (int i = 0; i < count; i++) {
names[i] = resourceNamer.randomName(pre... | [
"Generates the specified number of random resource names with the same prefix.\n@param prefix the prefix to be used if possible\n@param maxLen the maximum length for the random generated name\n@param count the number of names to generate\n@return random names"
] | [
"Gets the default configuration for Freemarker within Windup.",
"This method is used to extract the task hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param task task instance\n@param data hyperlink data block",
"Boyer Moore sca... |
static synchronized void clearLogContext() {
final LogContext embeddedLogContext = Holder.LOG_CONTEXT;
// Remove the configurator and clear the log context
final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY);
// If this was a PropertyCon... | [
"Attempts to clear the global log context used for embedded servers."
] | [
"return a prepared Update Statement fitting to the given ClassDescriptor",
"for testing purpose",
"Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return",
"Returns the compact task records for all tasks within the given project,\nordered by their priority within the pro... |
public T addBundle(final String moduleName, final String slot, final byte[] newHash) {
final ContentItem item = createBundleItem(moduleName, slot, newHash);
addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT));
return returnThis();
} | [
"Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder"
] | [
"copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal",
"Returns the yield value such that the sum of cash flows of the bond di... |
public GVRShaderId getShaderType(Class<? extends GVRShader> shaderClass)
{
GVRShaderId shaderId = mShaderTemplates.get(shaderClass);
if (shaderId == null)
{
GVRContext ctx = getGVRContext();
shaderId = new GVRShaderId(shaderClass);
mShaderTemplates.put(sh... | [
"Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subcl... | [
"Clean wait task queue.",
"Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevan... |
public void modified(ServiceReference<S> declarationBinderRef) throws InvalidFilterException {
declarationBinders.get(declarationBinderRef).update(declarationBinderRef);
} | [
"Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder"
] | [
"Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id",
"Inits the ws client.\n\n@param context the context\n@throws Exception the exception",
"Creates an Odata filter string that can be used for f... |
public static final void setBounds(UIObject o, Rect bounds) {
setPosition(o, bounds);
setSize(o, bounds);
} | [
"Sets the bounds of a UIObject, moving and sizing to match the\nbounds specified. Currently used for the itemhover and useful\nfor other absolutely positioned elements."
] | [
"If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height",
"Processes the template for all column definitions of the current table.\n\n@param template The template\n@param attribu... |
public final List<PrintJobStatusExtImpl> poll(final int size) {
final CriteriaBuilder builder = getSession().getCriteriaBuilder();
final CriteriaQuery<PrintJobStatusExtImpl> criteria =
builder.createQuery(PrintJobStatusExtImpl.class);
final Root<PrintJobStatusExtImpl> root = crit... | [
"Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs"
] | [
"Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"Sets a header per-request\n\n@param key Header key\n@param value Header value\n@return The request itself",
"Checks whether the specified event name is restricted. If it is... |
public static AccessorPrefix determineAccessorPrefix(@Nonnull final String methodName) {
Check.notEmpty(methodName, "methodName");
final Matcher m = PATTERN.matcher(methodName);
Check.stateIsTrue(m.find(), "passed method name '%s' is not applicable", methodName);
return new AccessorPrefix(m.group(1));
} | [
"Determines the prefix of an accessor method based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting prefix"
] | [
"checks if there is a writelock for transaction tx on object obj.\nReturns true if so, else false.",
"Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException",
"Process a SQLite database PP file.\n\n@param inputStream file input ... |
private Map<Integer, List<Row>> createWorkPatternAssignmentMap(List<Row> rows) throws ParseException
{
Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>();
for (Row row : rows)
{
Integer calendarID = row.getInteger("ID");
String workPatterns = row.getString("WORK_PATTE... | [
"Create the work pattern assignment map.\n\n@param rows calendar rows\n@return work pattern assignment map"
] | [
"Repeat a CharSequence a certain number of times.\n\n@param self a CharSequence to be repeated\n@param factor the number of times the CharSequence should be repeated\n@return a String composed of a repetition\n@throws IllegalArgumentException if the number of repetitions is < 0\n@since 1.8.2",
"Resize pictur... |
public HiveShellContainer evaluateStatement(List<? extends Script> scripts, Object target, TemporaryFolder temporaryFolder, Statement base) throws Throwable {
container = null;
FileUtil.setPermission(temporaryFolder.getRoot(), FsPermission.getDirDefault());
try {
LOGGER.info("Setting... | [
"Drives the unit test."
] | [
"Returns the specified process time out in milliseconds.\n\n@return The process time out in milliseconds.",
"Add query part for the facet, without filters.\n@param query The query part that is extended for the facet",
"Update the object in the database.",
"This function interprets the arguments of the main fu... |
@Override
public Set<String> getProviderNames() {
Set<String> result = new HashSet<>();
for (RoundingProviderSpi prov : Bootstrap.getServices(RoundingProviderSpi.class)) {
try {
result.add(prov.getProviderName());
} catch (Exception e) {
Logger... | [
"Get the names of all current registered providers.\n\n@return the names of all current registered providers, never null."
] | [
"Apply issues tracker info to a build info builder (used by generic tasks and maven2 which doesn't use the extractor",
"Creates a new remote proxy controller using an existing channel.\n\n@param channelAssociation the channel association\n@param pathAddress the address within the model of the created proxy contro... |
public WebSocketContext sendToPeers(String message, boolean excludeSelf) {
return sendToConnections(message, url, manager.urlRegistry(), excludeSelf);
} | [
"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"
] | [
"Returns the secret key matching the specified identifier.\n\n@param input the input stream containing the keyring collection\n@param keyId the 4 bytes identifier of the key",
"Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements",
"Create a Vendor from a Fun... |
public static <T> OptionalValue<T> ofNullable(T value) {
return new GenericOptionalValue<T>(RUNTIME_SOURCE, DEFAULT_KEY, value);
} | [
"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"
] | [
"Aggregates a list of templates specified by @Template",
"Assign FK values and store entries in indirection table\nfor all objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation... |
public boolean getBoxBound(float[] corners)
{
int rc;
if ((corners == null) || (corners.length != 6) ||
((rc = NativeVertexBuffer.getBoundingVolume(getNative(), corners)) < 0))
{
throw new IllegalArgumentException("Cannot copy box bound into array provided");
... | [
"Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)"
] | [
"for bpm connector",
"Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateE... |
protected void writePropertiesToLog(Logger logger, Level level) {
writeToLog(logger, level, getMapAsString(this.properties, separator), null);
if (this.exception != null) {
writeToLog(this.logger, Level.ERROR, "Error:", this.exception);
}
} | [
"Write 'properties' map to given log in given level - with pipe separator between each entry\nWrite exception stack trace to 'logger' in 'error' level, if not empty\n@param logger\n@param level - of logging"
] | [
"Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException",
"Parse a filter expression.\n\n@param filter the filter expression\n@return compiled nodes",
"Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param cla... |
private void countCoordinateStatement(Statement statement,
ItemDocument itemDocument) {
Value value = statement.getValue();
if (!(value instanceof GlobeCoordinatesValue)) {
return;
}
GlobeCoordinatesValue coordsValue = (GlobeCoordinatesValue) value;
if (!this.globe.equals((coordsValue.getGlobe()))) {
... | [
"Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument"
] | [
"Finds a child resource with the given key.\n\n@param key the child resource key\n@return null if no child resource exists with the given name else the child resource",
"Returns the compact task records for all tasks within the given project,\nordered by their priority within the project. Tasks can exist in more ... |
public static final BigInteger printDurationInIntegerTenthsOfMinutes(Duration duration)
{
BigInteger result = null;
if (duration != null && duration.getDuration() != 0)
{
result = BigInteger.valueOf((long) printDurationFractionsOfMinutes(duration, 10));
}
return result;
} | [
"Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes"
] | [
"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.",
"Return a new client that may be cached or not. Given properties are always use when not cached, and only used at creation time for\ncached clients.\n\n@param name\nif null, default ... |
public DJCrosstab build(){
if (crosstab.getMeasures().isEmpty()){
throw new LayoutException("Crosstabs must have at least one measure");
}
if (crosstab.getColumns().isEmpty()){
throw new LayoutException("Crosstabs must have at least one column");
}
if (crosstab.getRows().isEmpty()){
throw new... | [
"Build the crosstab. Throws LayoutException if anything is wrong\n@return"
] | [
"Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle",
"Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nth... |
public void setHighlightStrength(float _highlightStrength) {
mHighlightStrength = _highlightStrength;
for (PieModel model : mPieData) {
highlightSlice(model);
}
invalidateGlobal();
} | [
"Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline."
] | [
"Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass.",
"Determines whether the current object on the specified level has a specific property, and if so, processes th... |
public static base_response delete(nitro_service client, String Dnssuffix) throws Exception {
dnssuffix deleteresource = new dnssuffix();
deleteresource.Dnssuffix = Dnssuffix;
return deleteresource.delete_resource(client);
} | [
"Use this API to delete dnssuffix of given name."
] | [
"Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name .",
"Prepare the options by adding additional information to them.\n@see <a href=\"https://docs.mongodb.com/manual/core/index-ttl/\">TTL Indexes</a>",
"Add an exception to a calendar.\n\n@param parentNode parent node\n@param excep... |
public void delete() {
URL url = STORAGE_POLICY_ASSIGNMENT_WITH_ID_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID());
BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, HttpMethod.DELETE);
request.send();
} | [
"Deletes this BoxStoragePolicyAssignment."
] | [
"Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return",
"Use this API to fetch sslfipskey resource of given name .",
"Reads and consumes a number of characters from the underlying reader,\nfilling the byte array provided.\n\n@param holder A byte array which will be filled with ... |
void registerAlias(FieldType type, String alias)
{
m_aliasMap.put(new Pair<FieldTypeClass, String>(type.getFieldTypeClass(), alias), type);
} | [
"When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias"
] | [
"Dump the buffer contents to a file\n@param file\n@throws IOException",
"is there a faster algorithm out there? This one is a bit sluggish",
"Validate the configuration.\n\n@param validationErrors where to put the errors.",
"Returns the configured fields of the current field configuration.\n\n@return the conf... |
public static <E> E parse(InputStream is, ParameterizedType<E> jsonObjectType) throws IOException {
return mapperFor(jsonObjectType).parse(is);
} | [
"Parse a parameterized object from an InputStream.\n\n@param is The InputStream, most likely from your networking library.\n@param jsonObjectType The ParameterizedType describing the object. Ex: LoganSquare.parse(is, new ParameterizedType<MyModel<OtherModel>>() { });"
] | [
"Delete rows that match the prepared statement.",
"A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return",
"Process the response by reporting proper log and feeding failure\ndetectors\n\n@param response\n@param pipeline",
"Print duration in thousan... |
private void readTask(String projectIdentifier, Map<String, Task> map, Document.Projects.Project.Task task)
{
Task parentTask = map.get(getParentOutlineNumber(task.getOutlineNumber()));
Task mpxjTask = parentTask.addTask();
TimeUnit units = task.getBaseDurationTimeUnit();
mpxjTask.setCost(t... | [
"Read a task from a ConceptDraw PROJECT file.\n\n@param projectIdentifier parent project identifier\n@param map outline number to task map\n@param task ConceptDraw PROJECT task"
] | [
"Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU",
"Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception",
"Get ... |
protected void processDescriptions(List<MonolingualTextValue> descriptions) {
for(MonolingualTextValue description : descriptions) {
NameWithUpdate currentValue = newDescriptions.get(description.getLanguageCode());
// only mark the description as added if the value we are writing is different ... | [
"Adds descriptions to the item.\n\n@param descriptions\nthe descriptions to add"
] | [
"Converts the bytes that make up an internet address into the corresponding integer value to make\nit easier to perform bit-masking operations on them.\n\n@param address an address whose integer equivalent is desired\n\n@return the integer corresponding to that address",
"Reset the pool of resources for a specifi... |
public String getProfileIdFromClientId(int id) {
return (String) sqlService.getFromTable(Constants.CLIENT_PROFILE_ID, Constants.GENERIC_ID, id, Constants.DB_TABLE_CLIENT);
} | [
"gets the profile_name associated with a specific id"
] | [
"Convert the message to a FinishRequest",
"Initializes the mode switcher.\n@param current the current edit mode",
"Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The... |
public String getPermalinkForCurrentPage(CmsObject cms) {
return getPermalink(cms, cms.getRequestContext().getUri(), cms.getRequestContext().getDetailContentId());
} | [
"Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<\n\n@param cms the CMS context to use to generate the permalink\n\n@return the permalink"
] | [
"Run the OnInvariantViolation plugins when an Invariant is violated. Invariant are checked\nwhen the state machine is updated that is when the dom is changed after a click on a\nclickable. When a invariant fails this kind of plugins are executed. Warning the session is\nnot a clone, changing the session can cause s... |
@SafeVarargs
public static <T> Set<T> of(T... elements) {
Preconditions.checkNotNull(elements);
return ImmutableSet.<T> builder().addAll(elements).build();
} | [
"Creates a new immutable set that consists of given elements.\n\n@param elements the given elements\n@return a new immutable set that consists of given elements"
] | [
"This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character... |
private static Path resolveDockerDefinition(Path fullpath) {
final Path ymlPath = fullpath.resolveSibling(fullpath.getFileName() + ".yml");
if (Files.exists(ymlPath)) {
return ymlPath;
} else {
final Path yamlPath = fullpath.resolveSibling(fullpath.getFileName() + ".yaml"... | [
"Resolves current full path with .yml and .yaml extensions\n\n@param fullpath\nwithout extension.\n\n@return Path of existing definition or null"
] | [
"Used to locate the first timephased resource assignment block which\nintersects with the target date range.\n\n@param <T> payload type\n@param range target date range\n@param assignments timephased resource assignments\n@param startIndex index at which to start the search\n@return index of timephased resource assi... |
public void addColumn(FastTrackColumn column)
{
FastTrackField type = column.getType();
Object[] data = column.getData();
for (int index = 0; index < data.length; index++)
{
MapRow row = getRow(index);
row.getMap().put(type, data[index]);
}
} | [
"Add data for a column to this table.\n\n@param column column data"
] | [
"Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead",
"Extract ... |
public synchronized HttpServer<Buffer, Buffer> start() throws Exception {
if (server == null) {
server = createProtocolListener();
}
return server;
} | [
"Start a server.\n\n@return the http server\n@throws Exception the exception"
] | [
"Returns a new index creation statement using the session's keyspace.\n\n@param keyspace the keyspace name\n@param table the table name\n@param name the index name\n@return a new index creation statement",
"Use this API to clear bridgetable.",
"Look up record by identity.",
"Get the contents from the request ... |
public final File getBuildFileFor(
final Configuration configuration, final File jasperFileXml,
final String extension, final Logger logger) {
final String configurationAbsolutePath = configuration.getDirectory().getPath();
final int prefixToConfiguration = configurationAbsoluteP... | [
"Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur."
] | [
"Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default",
"Tests whether the given string is the name of a java.lang type.",
"Start the actual migration. Take the version of the database, get all required mi... |
public static <E> ServiceFuture<List<E>> fromPageResponse(Observable<ServiceResponse<Page<E>>> first, final Func1<String, Observable<ServiceResponse<Page<E>>>> next, final ListOperationCallback<E> callback) {
final AzureServiceFuture<List<E>> serviceCall = new AzureServiceFuture<>();
final PagingSubscri... | [
"Creates a ServiceCall from a paging operation.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@return the future based ServiceCall"
] | [
"Set the maximum date limit.",
"Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .",
"except for the ones that make the content appear under the system bars.",
"Returns the HTTP status text for the HTTP or WebDav status code\nspecified by looking it up in the static mapping... |
public static String getTemplateAsString(String fileName) throws IOException {
// in .jar file
String fNameJar = getFileNameInPath(fileName);
InputStream inStream = DomUtils.class.getResourceAsStream("/"
+ fNameJar);
if (inStream == null) {
// try to find file... | [
"Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error."
] | [
"Updates the information about this weblink with any info fields that have been modified locally.\n\n<p>The only fields that will be updated are the ones that have been modified locally. For example, the following\ncode won't update any information (or even send a network request) since none of the info's fields we... |
private void prepareModel(DescriptorRepository model)
{
TreeMap result = new TreeMap();
for (Iterator it = model.getDescriptorTable().values().iterator(); it.hasNext();)
{
ClassDescriptor classDesc = (ClassDescriptor)it.next();
if (classDesc.getFullTableName... | [
"Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model The original model\n@return The model representation"
] | [
"Applies the given filter to each of the given elems, and returns the\nlist of elems that were accepted. The runtime type of the returned\narray is the same as the passed in array.",
"Set the depth of the cursor.\nThis is the length of the ray from the origin\nto the cursor.\n@param depth default cursor depth",
... |
public ServerRedirect getRedirect(int id) throws Exception {
PreparedStatement queryStatement = null;
ResultSet results = null;
try (Connection sqlConnection = sqlService.getConnection()) {
queryStatement = sqlConnection.prepareStatement(
"SELECT * FROM " + Constants... | [
"Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception"
] | [
"Returns the real key object.",
"Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws Illega... |
private static double pointsDistance(Point a, Point b) {
int dx = b.x - a.x;
int dy = b.y - a.y;
return Math.sqrt(dx * dx + dy * dy);
} | [
"calculate distance of two points\n\n@param a\n@param b\n@return"
] | [
"The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.",
"Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param... |
public SourceBuilder addLine(String fmt, Object... args) {
add(fmt, args);
source.append(LINE_SEPARATOR);
return this;
} | [
"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).... | [
"Get an image as a stream. Callers must be sure to close the stream when they are done with it.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@param suffix\nThe suffix\n@return The InputStream\n@throws IOException",
"Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash ... |
public void setEnd(Date endDate) {
if ((null == endDate) || getStart().after(endDate)) {
m_explicitEnd = null;
} else {
m_explicitEnd = endDate;
}
} | [
"Explicitly set the end time of the event.\n\nIf the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.\n\n@param endDate the end time of the event."
] | [
"Extracts the elements from the source matrix by their 1D index.\n\n@param src Source matrix. Not modified.\n@param indexes array of row indexes\n@param length maximum element in row array\n@param dst output matrix. Must be a vector of the correct length.",
"Get the authentication for a specific token.\n\n@param... |
public static BatchASTFuture analyze(final BatchASTListener listener, final WildcardImportResolver importResolver,
final Set<String> libraryPaths,
final Set<String> sourcePaths, Set<Path> sourceFiles)
{
final String[] encodings = null;
final String[] bindingKeys = ne... | [
"Process the given batch of files and pass the results back to the listener as each file is processed."
] | [
"Creates a new Logger instance for the specified name.",
"Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileNa... |
public void start() {
if (this.started) {
throw new IllegalStateException("Cannot start the EventStream because it isn't stopped.");
}
final long initialPosition;
if (this.startingPosition == STREAM_POSITION_NOW) {
BoxAPIRequest request = new BoxAPIRequest(this.... | [
"Starts this EventStream and begins long polling the API.\n@throws IllegalStateException if the EventStream is already started."
] | [
"Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException",
"Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which ti... |
private void buildMultiJoinTree(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin)
{
DescriptorRepository repository = cld.getRepository();
Class[] multiJoinedClasses = repository.getSubClassesMultipleJoinedTables(cld, false);
for (int i = 0; i < multiJoinedClasse... | [
"build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name"
] | [
"Parses the query facet configurations.\n@param rangeFacetObject The JSON sub-node with the query facet configurations.\n@return The query facet configurations.",
"Enable a host\n\n@param hostName\n@throws Exception",
"Adapt a file path to the current file system.\n@param filePath The input file path string.\n@... |
private void attachLocaleGroups(CmsResource copiedPage) throws CmsException {
CmsLocaleGroupService localeGroupService = getRootCms().getLocaleGroupService();
if (Status.linkable == localeGroupService.checkLinkable(m_originalPage, copiedPage)) {
try {
localeGroupService.atta... | [
"Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved."
] | [
"Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.",
"Get the Json Schema of the input path, assuming the path contains just one\nschema version in all files under that path.",
"Determi... |
public synchronized void becomeTempoMaster() throws IOException {
logger.debug("Trying to become master.");
if (!isSendingStatus()) {
throw new IllegalStateException("Must be sending status updates to become the tempo master.");
}
// Is there someone we need to ask to yield ... | [
"Arrange to become the tempo master. Starts a sequence of interactions with the other players that should end\nup with us in charge of the group tempo and beat alignment.\n\n@throws IllegalStateException if we are not sending status updates\n@throws IOException if there is a problem sending the master yield request... | [
"Computes the square root of the complex number.\n\n@param input Input complex number.\n@param root Output. The square root of the input",
"Support the range subscript operator for GString\n\n@param text a GString\n@param range a Range\n@return the String of characters corresponding to the provided range\n@since... |
public void stop(int waitMillis) throws InterruptedException {
try {
if (!isDone()) {
setExitStatus(new Event(EventType.STOPPED_BY_USER, String.format("Stopped by user: waiting for %d ms", waitMillis)));
}
if (!waitForFinish(waitMillis)) {
logger.warn("{} Client thread failed to fi... | [
"Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end"
] | [
"Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object",
"Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written.",
"Start the host cont... |
public static int bilinearInterpolate(float x, float y, int nw, int ne, int sw, int se) {
float m0, m1;
int a0 = (nw >> 24) & 0xff;
int r0 = (nw >> 16) & 0xff;
int g0 = (nw >> 8) & 0xff;
int b0 = nw & 0xff;
int a1 = (ne >> 24) & 0xff;
int r1 = (ne >> 16) & 0xff;
int g1 = (ne >> 8) & 0xff;
int b1 = ne ... | [
"Bilinear interpolation of ARGB values.\n@param x the X interpolation parameter 0..1\n@param y the y interpolation parameter 0..1\n@param rgb array of four ARGB values in the order NW, NE, SW, SE\n@return the interpolated value"
] | [
"Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".",
"Create a buffered image with the correct image bands etc... for the tiles being loaded... |
public static appfwpolicy_stats get(nitro_service service, String name) throws Exception{
appfwpolicy_stats obj = new appfwpolicy_stats();
obj.set_name(name);
appfwpolicy_stats response = (appfwpolicy_stats) obj.stat_resource(service);
return response;
} | [
"Use this API to fetch statistics of appfwpolicy_stats resource of given name ."
] | [
"Return a Halton number, sequence starting at index = 0, base > 1.\n\n@param index The index of the sequence.\n@param base The base of the sequence. Has to be greater than one (this is not checked).\n@return The Halton number.",
"Update the value of an embedded node property.\n\n@param executionEngine the {@li... |
private void checkOrMarkPrivateAccess(Expression source, FieldNode fn) {
if (fn!=null && Modifier.isPrivate(fn.getModifiers()) &&
(fn.getDeclaringClass() != typeCheckingContext.getEnclosingClassNode() || typeCheckingContext.getEnclosingClosure()!=null) &&
fn.getDeclaringClass().getModule... | [
"Given a field node, checks if we are calling a private field from an inner class."
] | [
"Use this API to fetch netbridge_vlan_binding resources of given name .",
"Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder\n@throws InvalidFilterException",
"Write a... |
public static base_responses disable(nitro_service client, String trapname[]) throws Exception {
base_responses result = null;
if (trapname != null && trapname.length > 0) {
snmpalarm disableresources[] = new snmpalarm[trapname.length];
for (int i=0;i<trapname.length;i++){
disableresources[i] = new snmpal... | [
"Use this API to disable snmpalarm resources of given names."
] | [
"Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation",
"This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nw... |
public static base_response rename(nitro_service client, gslbservice resource, String new_servicename) throws Exception {
gslbservice renameresource = new gslbservice();
renameresource.servicename = resource.servicename;
return renameresource.rename_resource(client,new_servicename);
} | [
"Use this API to rename a gslbservice resource."
] | [
"Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.",
"Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster Th... |
boolean resumeSyncForDocument(
final MongoNamespace namespace,
final BsonValue documentId
) {
if (namespace == null || documentId == null) {
return false;
}
final NamespaceSynchronizationConfig namespaceSynchronizationConfig;
final CoreDocumentSynchronizationConfig config;
if (... | [
"A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\... | [
"Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map",
"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)",
"Set the parent from which this week is derived.\n\n@pa... |
public void prettyPrint(StringBuffer sb, int indent) {
sb.append(Log.getSpaces(indent));
sb.append(getClass().getSimpleName());
sb.append(" [name=");
sb.append(this.getName());
sb.append("]");
sb.append(System.lineSeparator());
GVRRenderData rdata = getRenderData(... | [
"Generate debug dump of the tree from the scene object.\nIt should include a newline character at the end.\n\n@param sb the {@code StringBuffer} to dump the object.\n@param indent indentation level as number of spaces."
] | [
"Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array.",
"Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@re... |
public <T> QueryResult<T> query(String partitionKey, String query, final Class<T> classOfT) {
URI uri = new DatabaseURIHelper(db.getDBUri()).partition(partitionKey).path("_find").build();
return this.query(uri, query, classOfT);
} | [
"Execute a partitioned query using an index and a query selector.\n\nOnly available in partitioned databases. To verify a database is partitioned call\n{@link Database#info()} and check that {@link DbInfo.Props#getPartitioned()} returns\n{@code true}.\n\n<p>Example usage:</p>\n<pre>\n{@code\n// Query database parti... | [
"This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest impleme... |
String buildProjectEndpoint(DatastoreOptions options) {
if (options.getProjectEndpoint() != null) {
return options.getProjectEndpoint();
}
// DatastoreOptions ensures either project endpoint or project ID is set.
String projectId = checkNotNull(options.getProjectId());
if (options.getHost() !=... | [
"Build a valid datastore URL."
] | [
"Finish a state transition from a notification.\n\n@param current\n@param next",
"Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangl... |
private Class[] getInterfaces(Class clazz) {
Class superClazz = clazz;
Class[] interfaces = clazz.getInterfaces();
// clazz can be an interface itself and when getInterfaces()
// is called on an interface it returns only the extending
// interfaces, not the interface itsel... | [
"Get interfaces implemented by clazz\n\n@param clazz\n@return"
] | [
"Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.",
"Cac... |
public static Date addDays(Date date, int days)
{
Calendar cal = popCalendar(date);
cal.add(Calendar.DAY_OF_YEAR, days);
Date result = cal.getTime();
pushCalendar(cal);
return result;
} | [
"Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date"
] | [
"This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest impleme... |
public byte[] join(Map<Integer, byte[]> parts) {
checkArgument(parts.size() > 0, "No parts provided");
final int[] lengths = parts.values().stream().mapToInt(v -> v.length).distinct().toArray();
checkArgument(lengths.length == 1, "Varying lengths of part values");
final byte[] secret = new byte[lengths[... | [
"Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of... | [
"Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\n@doc.tag type=\"block\"\n@doc.param ... |
public static Map<String, List<String>> getResponseHeaders(String stringUrl) throws IOException {
return getResponseHeaders(stringUrl, true);
} | [
"Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened"
] | [
"Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list",
"Preloads a sound file.\n\n@param soundFile path/name of the file to be played.",
"Decodes a signed request, returning the payload of the signed request as a Map\n@param signedReq... |
private void writeCustomFields() throws IOException
{
m_writer.writeStartList("custom_fields");
for (CustomField field : m_projectFile.getCustomFields())
{
writeCustomField(field);
}
m_writer.writeEndList();
} | [
"Write a list of custom field attributes."
] | [
"Reads input data from a JSON file in the output directory.",
"The main method, which is essentially the same as in CRFClassifier. See the class documentation.",
"Set the name of the schema containing the schedule tables.\n\n@param schema schema name.",
"Create a WebMBeanAdaptor for a specified MBean name.\n@... |
public static Class getClass(String className, boolean initialize) throws ClassNotFoundException
{
return Class.forName(className, initialize, getClassLoader());
} | [
"Retrieves the class object for the given qualified class name.\n\n@param className The qualified name of the class\n@param initialize Whether the class shall be initialized\n@return The class object"
] | [
"Closes the Netty Channel and releases all resources",
"Connects to a child JVM process\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return an {@link MBeanServerConnection} to the process's MBean server",... |
public static MetaClassRegistry getInstance(int includeExtension) {
if (includeExtension != DONT_LOAD_DEFAULT) {
if (instanceInclude == null) {
instanceInclude = new MetaClassRegistryImpl();
}
return instanceInclude;
} else {
if (instanceEx... | [
"Singleton of MetaClassRegistry.\n\n@param includeExtension\n@return the registry"
] | [
"Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args",
"Records the list of backedup files into a text file\n\n@param filesInEnv\n@param backupDir",
"This method extracts projec... |
Renderer copy() {
Renderer copy = null;
try {
copy = (Renderer) this.clone();
} catch (CloneNotSupportedException e) {
Log.e("Renderer", "All your renderers should be clonables.");
}
return copy;
} | [
"Create a clone of the Renderer. This method is the base of the prototype mechanism implemented\nto avoid create new objects from RendererBuilder. Pay an special attention implementing clone\nmethod in Renderer subtypes.\n\n@return a copy of the current renderer."
] | [
"Load in a number of database configuration entries from a buffered reader.",
"Inserts a CharSequence 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 CharSequence, or null\n@return th... |
public static final BigInteger printDay(Day day)
{
return (day == null ? null : BigInteger.valueOf(day.getValue() - 1));
} | [
"Print a day.\n\n@param day Day instance\n@return day value"
] | [
"Reads color table as 256 RGB integer values.\n\n@param ncolors int number of colors to read.\n@return int array containing 256 colors (packed ARGB with full alpha).",
"dispatch to gravity state",
"High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result.",
"Converts the http ... |
protected TableFontStyle getColumnFontStyle(byte[] data, int offset, Map<Integer, FontBase> fontBases)
{
int uniqueID = MPPUtility.getInt(data, offset);
FieldType fieldType = MPPTaskField.getInstance(MPPUtility.getShort(data, offset + 4));
Integer index = Integer.valueOf(MPPUtility.getByte(data, of... | [
"Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance"
] | [
"In Gerrit < 2.12 the XSRF token was included in the start page HTML.",
"Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the pa... |
@Override
public EmbeddedBrowser get() {
LOGGER.debug("Setting up a Browser");
// Retrieve the config values used
ImmutableSortedSet<String> filterAttributes =
configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();
long crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloa... | [
"Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser"
] | [
"Find the the qualfied container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.",
"Returns the index of each elem in a List.... |
public static nsrpcnode[] get(nitro_service service, String ipaddress[]) throws Exception{
if (ipaddress !=null && ipaddress.length>0) {
nsrpcnode response[] = new nsrpcnode[ipaddress.length];
nsrpcnode obj[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++) {
obj[i] = new nsrpcnode... | [
"Use this API to fetch nsrpcnode resources of given names ."
] | [
"Save Job Record.\n\n@param entry the entry",
"we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.",
"This method writes task data to a JSON file.\nNote that we write the task hierarchy in... |
public static void validateCurrentFinalCluster(final Cluster currentCluster,
final Cluster finalCluster) {
validateClusterPartitionCounts(currentCluster, finalCluster);
validateClusterNodeState(currentCluster, finalCluster);
return;
} | [
"A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster"
] | [
"Parses a String comprised of 0 or more comma-delimited key=value pairs.\n\n@param s the string to parse\n@return the Map of parsed key value pairs",
"Return the entity of a resource\n\n@param resource the resource\n@param <T> the type of the resource's entity\n@param <R> the resource type\n@return the ... |
protected T createInstance() {
try {
Constructor<T> ctor = clazz.getDeclaredConstructor();
ctor.setAccessible(true);
return ctor.newInstance();
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {... | [
"Creates instance of the entity class. This method is called to create the object\ninstances when returning query results."
] | [
"Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.\n\n@param path The request path\n@param parameters The parameters (collection of Parameter objects)\n@return The Response",
"Parses whole value as list attribute\n@deprecated in favour of using {@link Attr... |
public void useNewSOAPService(boolean direct) throws Exception {
URL wsdlURL = getClass().getResource("/CustomerServiceNew.wsdl");
org.customer.service.CustomerServiceService service =
new org.customer.service.CustomerServiceService(wsdlURL);
org.customer.service.CustomerSe... | [
"New SOAP client uses new SOAP service."
] | [
"Returns the start position of the indicator.\n\n@return The start position of the indicator.",
"Use this API to fetch all the cacheselector resources that are configured on netscaler.",
"Mbeans for SLOP_UPDATE",
"Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset... |
public Number getCostVariance()
{
Number variance = (Number) getCachedValue(TaskField.COST_VARIANCE);
if (variance == null)
{
Number cost = getCost();
Number baselineCost = getBaselineCost();
if (cost != null && baselineCost != null)
{
variance = Numb... | [
"The Cost Variance field shows the difference between the baseline cost\nand total cost for a task. The total cost is the current estimate of costs\nbased on actual costs and remaining costs.\n\n@return amount"
] | [
"Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key",
"Deletes and publishes resources with ID conflicts.\n\n@param cms the CMS context to use\n@param module the ... |
boolean processUnstable() {
boolean change = !unstable;
if (change) { // Only once until the process is removed. A process is unstable until removed.
unstable = true;
HostControllerLogger.ROOT_LOGGER.managedServerUnstable(serverName);
}
return change;
} | [
"Notification that the process has become unstable.\n\n@return {@code true} if this is a change in status"
] | [
"Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance",
"Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this ... |
public static appfwhtmlerrorpage get(nitro_service service, options option) throws Exception{
appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
appfwhtmlerrorpage[] response = (appfwhtmlerrorpage[])obj.get_resources(service,option);
return response[0];
} | [
"Use this API to fetch all the appfwhtmlerrorpage resources that are configured on netscaler."
] | [
"Get the seconds difference",
"Add a range to this LOD group. Specify the scene object that should be displayed in this\nrange. Add the LOG group as a component to the parent scene object. The scene objects\nassociated with each range will automatically be added as children to the parent.\n@param range show the s... |
private List<Point2D> merge(final List<Point2D> one, final List<Point2D> two) {
final Set<Point2D> oneSet = new HashSet<Point2D>(one);
for (Point2D item : two) {
if (!oneSet.contains(item)) {
one.add(item);
}
}
return one;
} | [
"Merges two lists together.\n\n@param one first list\n@param two second list\n@return merged lists"
] | [
"Removes all candidates from this collection which are not\nassociated with an initialising method.\n\n@return a {@code Collection} containing the removed\nunassociated candidates. This list is empty if none\nwere removed, i. e. the result is never {@code null}.",
"Map the currency separator character to a symbol... |
public static void shutDownActorSystemForce() {
if (!actorSystem.isTerminated()) {
logger.info("shutting down actor system...");
actorSystem.shutdown();
actorSystem.awaitTermination(timeOutDuration);
logger.info("Actor system has been shut down.");
} else ... | [
"Shut down actor system force."
] | [
"Use this API to fetch lbvserver_scpolicy_binding resources of given name .",
"Prepare a parallel TCP Task.\n\n@param command\nthe command\n@return the parallel task builder",
"Use this API to update clusterinstance.",
"Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n... |
public final PJsonArray optJSONArray(final String key, final PJsonArray defaultValue) {
PJsonArray result = optJSONArray(key);
return result != null ? result : defaultValue;
} | [
"Get a property as a json array or default.\n\n@param key the property name\n@param defaultValue default"
] | [
"Get all backup data\n\n@param model\n@return\n@throws Exception",
"Create and serialize a WorkerStatus for a pause event.\n\n@return the JSON representation of a new WorkerStatus\n@throws IOException if there was an error serializing the WorkerStatus",
"Normalizes this vector in place.",
"Cleans up the given... |
protected String calculateNextVersion(String fromVersion) {
// first turn it to release version
fromVersion = calculateReleaseVersion(fromVersion);
String nextVersion;
int lastDotIndex = fromVersion.lastIndexOf('.');
try {
if (lastDotIndex != -1) {
// ... | [
"Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version"
] | [
"Private recursive helper function to actually do the type-safe checking\nof assignability.",
"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 array only contains unbounded type variables or ... |
private void addCriteria(List<GenericCriteria> list, byte[] block)
{
byte[] leftBlock = getChildBlock(block);
byte[] rightBlock1 = getListNextBlock(leftBlock);
byte[] rightBlock2 = getListNextBlock(rightBlock1);
TestOperator operator = TestOperator.getInstance(MPPUtility.getShort(block, 0) - ... | [
"Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block"
] | [
"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.",
"Handle content length.\n\n@param event\nthe event",
"Create and return a SelectItera... |
public void applyPattern(String primaryPattern, String[] alternativePatterns, char decimalSeparator, char groupingSeparator)
{
m_symbols.setDecimalSeparator(decimalSeparator);
m_symbols.setGroupingSeparator(groupingSeparator);
setDecimalFormatSymbols(m_symbols);
applyPattern(primaryPattern);... | [
"This method is used to configure the primary and alternative\nformat patterns.\n\n@param primaryPattern new format pattern\n@param alternativePatterns alternative format patterns\n@param decimalSeparator Locale specific decimal separator to replace placeholder\n@param groupingSeparator Locale specific grouping sep... | [
"Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception",
"Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the du... |
public List<String> getArtifactVersions(final String gavc) throws GrapesCommunicationException {
final Client client = getClient();
final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactVersions(gavc));
final ClientResponse response = resource
.acce... | [
"Returns the artifact available versions\n\n@param gavc String\n@return List<String>"
] | [
"Helper method to convert seed bytes into the long value required by the\nsuper class.",
"Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add",
"Update the descriptor content with values from the editor.\n@throws CmsXmlException... |
public void recordCheckoutTimeUs(SocketDestination dest, long checkoutTimeUs) {
if(dest != null) {
getOrCreateNodeStats(dest).recordCheckoutTimeUs(null, checkoutTimeUs);
recordCheckoutTimeUs(null, checkoutTimeUs);
} else {
this.checkoutTimeRequestCounter.addRequest(ch... | [
"Record the checkout wait time in us\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param checkoutTimeUs The number of us to wait before getting a socket"
] | [
"Use this API to update sslocspresponder.",
"Obtains a Symmetry010 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time",
"Reopen the associated... |
public static Collection<Field> getAllAttributes(final Class<?> classToInspect) {
Set<Field> allFields = new HashSet<>();
getAllAttributes(classToInspect, allFields, Function.identity(), field -> true);
return allFields;
} | [
"Inspects the object and all superclasses for public, non-final, accessible methods and returns a\ncollection containing all the attributes found.\n\n@param classToInspect the class under inspection."
] | [
"Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise",
"Adds the correct load instructi... |
public <K, V> MultipleRequestBuilder<K, V> newMultipleRequest(Key.Type<K> keyType,
Class<V> valueType) {
return new MultipleRequestBuilderImpl<K, V>(newViewRequestParameters(keyType.getType(),
valueType));
} | [
"Create a new builder for multiple unpaginated requests on the view.\n\n@param keyType {@link com.cloudant.client.api.views.Key.Type} of the key emitted by the\nview\n@param valueType class of the type of value emitted by the view\n@param <K> type of key emitted by the view\n@param <V> type of value e... | [
"If converters are set on a table, this function tests if these can convert a cell value. The first\nconverter, which claims that it can convert, will be used to do the conversion.",
"A disposer method is bound to a producer if the producer is assignable to the disposed parameter.\n\n@param enhancedDisposedParame... |
public ParallelTaskBuilder setTargetHostsFromJsonPath(String jsonPath,
String sourcePath, HostsSourceType sourceType)
throws TargetHostsLoadException {
this.targetHosts = targetHostBuilder.setTargetHostsFromJsonPath(jsonPath, sourcePath,
sourceType);
return this;... | [
"Sets the target hosts from json path.\n\n@param jsonPath\nthe json path\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the parallel task builder\n@throws TargetHostsLoadException\nthe target hosts load exception"
] | [
"Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise",
"Processes changes on aliases, updating the pla... |
public void loadClass(String className) throws Exception {
ClassInformation classInfo = classInformation.get(className);
logger.info("Loading plugin.: {}, {}", className, classInfo.pluginPath);
// get URL for proxylib
// need to load this also otherwise the annotations cannot be found ... | [
"Loads the specified class name and stores it in the hash\n\n@param className class name\n@throws Exception exception"
] | [
"Use this API to fetch clusternodegroup_binding resource of given name .",
"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 ... |
public static base_response delete(nitro_service client, String sitename) throws Exception {
gslbsite deleteresource = new gslbsite();
deleteresource.sitename = sitename;
return deleteresource.delete_resource(client);
} | [
"Use this API to delete gslbsite of given name."
] | [
"Return the list of galleries created by a user. Sorted from newest to oldest.\n\n@param userId\nThe user you want to check for\n@param perPage\nNumber of galleries per page\n@param page\nThe page number\n@return gallery\n@throws FlickrException\n\n@see <a hrerf=\"http://www.flickr.com/services/api/flickr.galleries... |
private void checkRowReader(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException
{
if (!CHECKLEVEL_STRICT.equals(checkLevel))
{
return;
}
String rowReaderName = classDef.getProperty(PropertyHelper.OJB_PROPERTY_ROW_READER);
... | [
"Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated"
] | [
"Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU",
"Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@par... |
public Bytes subSequence(int start, int end) {
if (start > end || start < 0 || end > length) {
throw new IndexOutOfBoundsException("Bad start and/end start = " + start + " end=" + end
+ " offset=" + offset + " length=" + length);
}
return new Bytes(data, offset + start, end - start);
} | [
"Returns a portion of the Bytes object\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)"
] | [
"Copy the contents of this buffer begginning from the srcOffset to a destination byte array\n@param srcOffset\n@param destArray\n@param destOffset\n@param size",
"Get information about this database.\n\n@return DbInfo encapsulating the database info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloud... |
private void updateRoutingStrategies(Cluster cluster, List<StoreDefinition> storeDefs) {
// acquire write lock
writeLock.lock();
try {
VectorClock clock = new VectorClock();
if(metadataCache.containsKey(ROUTING_STRATEGY_KEY))
clock = (VectorClock) metadata... | [
"Changes to cluster OR store definition metadata results in routing\nstrategies changing. These changes need to be propagated to all the\nlisteners.\n\n@param cluster The updated cluster metadata\n@param storeDefs The updated list of store definition"
] | [
"Execute for result.\n\n@param executionContext the execution context\n@return the result\n@throws IOException for any error",
"Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description",
"request toke... |
public Feature toDto(InternalFeature feature, int featureIncludes) throws GeomajasException {
if (feature == null) {
return null;
}
Feature dto = new Feature(feature.getId());
if ((featureIncludes & VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES) != 0 && null != feature.getAttributes()) {
// need to assure... | [
"Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature."
] | [
"Set the month.\n@param monthStr the month to set.",
"Restores a trashed file to a new location with a new name.\n@param fileID the ID of the trashed file.\n@param newName an optional new name to give the file. This can be null to use the file's original name.\n@param newParentID an optional new paren... |
public static URI createRestURI(
final String matrixId, final int row, final int col,
final WMTSLayerParam layerParam) throws URISyntaxException {
String path = layerParam.baseURL;
if (layerParam.dimensions != null) {
for (int i = 0; i < layerParam.dimensions.length; ... | [
"Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam"
] | [
"Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.",
"Utility method to convert an array of bytes into a long. Byte ordered is\nassumed to be big-endian.\n@param bytes The da... |
private List<org.jfrog.hudson.pipeline.types.File> getBuildFilesList(Stream<? extends BaseBuildFileBean> buildFilesStream) {
return buildFilesStream
.filter(buildFile -> StringUtils.isNotBlank(buildFile.getLocalPath()))
.filter(buildFile -> StringUtils.isNotBlank(buildFile.getRem... | [
"Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files."
] | [
"Called by spring on initialization.",
"Finds the last entry of the address list and returns it as a property.\n\n@param address the address to get the last part of\n\n@return the last part of the address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty",
"Set... |
public List<MapRow> readTableConditional(Class<? extends TableReader> readerClass) throws IOException
{
List<MapRow> result;
if (DatatypeConverter.getBoolean(m_stream))
{
result = readTable(readerClass);
}
else
{
result = Collections.emptyList();
}
re... | [
"Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present"
] | [
"Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.",
... |
public Set<PlaybackState> getPlaybackState() {
Set<PlaybackState> result = new HashSet<PlaybackState>(playbackStateMap.values());
return Collections.unmodifiableSet(result);
} | [
"Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0"
] | [
"Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position.",
"Returns the string in the buffer minus an leading or trailing white... |
public CollectionRequest<Team> findByOrganization(String organization) {
String path = String.format("/organizations/%s/teams", organization);
return new CollectionRequest<Team>(this, Team.class, path, "GET");
} | [
"Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object"
] | [
"Counts each property for which there is a statement in the given item\ndocument, ignoring the property thisPropertyIdValue to avoid properties\ncounting themselves.\n\n@param statementDocument\n@param usageRecord\n@param thisPropertyIdValue",
"Returns a list of all parts that have been uploaded to an upload sess... |
private int[] readTypeAnnotations(final MethodVisitor mv,
final Context context, int u, boolean visible) {
char[] c = context.buffer;
int[] offsets = new int[readUnsignedShort(u)];
u += 2;
for (int i = 0; i < offsets.length; ++i) {
offsets[i] = u;
int ... | [
"Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@param mv\nthe method visitor to be used to visit the try catch block\nannotations.\n@param context\ninformation about the class being parsed.\n@param visible... | [
"Use this API to update dospolicy.",
"Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder",
"Set the value of the underlying component. Note that this will\nnot work for ListEditor com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.