query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
private void addColumns(MpxjTreeNode parentNode, Table table)
{
for (Column column : table.getColumns())
{
final Column c = column;
MpxjTreeNode childNode = new MpxjTreeNode(column)
{
@Override public String toString()
{
return c.getTitle(... | [
"Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container"
] | [
"Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.",
"Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value",
"Parse a string representation of an Integer value.\n\n@param val... |
public InsertBuilder set(String column, String value) {
columns.add(column);
values.add(value);
return this;
} | [
"Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a... | [
"Checks to see if a handler is disabled\n\n@param handlerName the name of the handler to enable.",
"Converts the node to JSON\n@return JSON object",
"See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range... |
protected static final Long parseUsingFallbacksWithColon(String text, DateTimeFormat timeFormat) {
if (text.indexOf(':') == -1) {
text = text.replace(" ", "");
int numdigits = 0;
int lastdigit = 0;
for (int i = 0; i < text.length(); i++) {
char c =... | [
"Attempts to insert a colon so that a value without a colon can\nbe parsed."
] | [
"Plots the MSD curve with the trajectory t and adds the fitted model for directed motion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time ... |
public boolean hasRequiredAdminProps() {
boolean valid = true;
valid &= hasRequiredClientProps();
valid &= verifyStringPropSet(ACCUMULO_TABLE_PROP, ADMIN_ACCUMULO_TABLE_PROP);
return valid;
} | [
"Returns true if required properties for FluoAdmin are set"
] | [
"Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"",
"Extract the parameters from ... |
public com.squareup.okhttp.Call getCharactersCharacterIdShipCall(Integer characterId, String datasource,
String ifNoneMatch, String token, final ApiCallback callback) throws ApiException {
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath =... | [
"Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param ifNoneMatch\nETag from a previous request. A 304 will be returned if this\nmatches the current ETag (optional)\n... | [
"Calculates directory size as total size of all its files, recursively.\n\n@param self a file object\n@return directory size (length)\n@since 2.1\n\n@throws IOException if File object specified does not exist\n@throws IllegalArgumentException if the provided File object does not represent a directory",
"Decompile... |
public INode getLastCompleteNodeByOffset(INode node, int offsetPosition, int completionOffset) {
return internalGetLastCompleteNodeByOffset(node.getRootNode(), offsetPosition);
} | [
"Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider."
] | [
"This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours",
"Validates bic.\n\n@param bic to be validated.\n@... |
@RequestMapping(value = "api/servergroup", method = RequestMethod.POST)
public
@ResponseBody
ServerGroup createServerGroup(Model model,
@RequestParam(value = "name") String name,
@RequestParam(value = "profileId", required = false) Integer ... | [
"Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception"
] | [
"Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation",
"Sets the license for a photo.\n\nThis method requires au... |
public synchronized void stop(long quietPeriod, long timeout, TimeUnit unit) throws Exception {
if (state == State.STOPPED) {
LOG.debug("Ignore stop() call on HTTP service {} since it has already been stopped.", serviceName);
return;
}
LOG.info("Stopping HTTP Service {}", serviceName);
try... | [
"Stops the HTTP service gracefully and release all resources.\n\n@param quietPeriod the quiet period as described in the documentation of {@link EventExecutorGroup}\n@param timeout the maximum amount of time to wait until the executor is\n{@linkplain EventExecutorGroup#shutdown()}\nregardless if a task was subm... | [
"Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication",
"Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the scr... |
@SuppressWarnings("unused")
public boolean isValid() {
Phonenumber.PhoneNumber phoneNumber = getPhoneNumber();
return phoneNumber != null && mPhoneUtil.isValidNumber(phoneNumber);
} | [
"Check if number is valid\n\n@return boolean"
] | [
"Retrieves the members of the type and of its super types.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param pa... |
public boolean removePredecessor(Task targetTask, RelationType type, Duration lag)
{
boolean matchFound = false;
//
// Retrieve the list of predecessors
//
List<Relation> predecessorList = getPredecessors();
if (!predecessorList.isEmpty())
{
//
// Ensure t... | [
"This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation i... | [
"Calculates the length of the next block of RTF data.\n\n@param text RTF data\n@param offset current offset into this data\n@return block length",
"initializer to setup JSAdapter prototype in the given scope",
"Returns the type discriminator value for given Frames model class, extracted from the @TypeValue anno... |
public List<ConnectionInfo> getConnections() {
final URI uri = uriWithPath("./connections/");
return Arrays.asList(this.rt.getForObject(uri, ConnectionInfo[].class));
} | [
"Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster"
] | [
"Process dump file data from the given input stream. The method can\nrecover from an errors that occurred while processing an input stream,\nwhich is assumed to contain the JSON serialization of a list of JSON\nentities, with each entity serialization in one line. To recover from the\nprevious error, the first line... |
private static int[] getErrorCorrection(int[] codewords, int ecclen) {
ReedSolomon rs = new ReedSolomon();
rs.init_gf(0x43);
rs.init_code(ecclen, 1);
rs.encode(codewords.length, codewords);
int[] results = new int[ecclen];
for (int i = 0; i < ecclen; i++) {
... | [
"Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords"
] | [
"Returns true if the given document should be included in the\nserialization.\n\n@param itemDocument\nthe document to check\n@return true if the document should be serialized",
"Copy new grayscale data to the GPU texture. This one is also safe even\nin a non-GL thread. An updateGPU request on a non-GL thread will... |
private ColorItem buildColorItem(int colorId, String label) {
Color color;
String colorName;
switch (colorId) {
case 0:
color = new Color(0, 0, 0, 0);
colorName = "No Color";
break;
case 1:
color = Color.PINK... | [
"Creates a color item that represents a color field fond for a track.\n\n@param colorId the key of the color as found in the database\n@param label the corresponding color label as found in the database (or sent in the dbserver message)\n\n@return the color metadata field"
] | [
"Keep track of this handle tied to which thread so that if the thread is terminated\nwe can reclaim our connection handle. We also\n@param c connection handle to track.",
"Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices h... |
private void processRemarks(Gantt gantt)
{
processRemarks(gantt.getRemarks());
processRemarks(gantt.getRemarks1());
processRemarks(gantt.getRemarks2());
processRemarks(gantt.getRemarks3());
processRemarks(gantt.getRemarks4());
} | [
"Read remarks from a Gantt Designer file.\n\n@param gantt Gantt Designer file"
] | [
"After cluster management operations, i.e. reset quota and recover quota\nenforcement settings",
"Copied from AbstractEntityPersister",
"Generate a schedule for the given start and end date.\n\n@param referenceDate The reference date (corresponds to \\( t = 0 \\).\n@param startDate The start date.\n@param endDa... |
public void send(ProducerPoolData<V> ppd) {
if (logger.isDebugEnabled()) {
logger.debug("send message: " + ppd);
}
if (sync) {
Message[] messages = new Message[ppd.data.size()];
int index = 0;
for (V v : ppd.data) {
messages[index] ... | [
"selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object"
] | [
"Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked",
"Locate a child block ... |
public static Processor<DataSinkTask> sink(DataSink dataSink, int parallelism, String description, UserConfig taskConf, ActorSystem system) {
io.gearpump.streaming.Processor<DataSinkTask> p = DataSinkProcessor.apply(dataSink, parallelism, description, taskConf, system);
return new Processor(p);
} | [
"Creates a Sink Processor\n\n@param dataSink the data sink itself\n@param parallelism the parallelism of this processor\n@param description the description for this processor\n@param taskConf the configuration for this processor\n@param system actor system\n@return the new created sink processor"
] | [
"Blocks until the server has started successfully or an exception is\nthrown.\n\n@throws VoldemortException if a problem occurs during start-up wrapping\nthe original exception.",
"Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified i... |
public DbOrganization getOrganization(final DbArtifact dbArtifact) {
final DbModule module = getModule(dbArtifact);
if(module == null || module.getOrganization() == null){
return null;
}
return repositoryHandler.getOrganization(module.getOrganization());
} | [
"Returns the Organization that produce this artifact or null if there is none\n\n@param dbArtifact DbArtifact\n@return DbOrganization"
] | [
"Prepare a batch api request using list of individual reuests.\n@param requests list of api requests that has to be executed in batch.",
"Retrieves the time at which work starts on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return start time, or null for non-work... |
private void processCalendars() throws SQLException
{
List<Row> rows = getTable("EXCEPTIONN");
Map<Integer, DayType> exceptionMap = m_reader.createExceptionTypeMap(rows);
rows = getTable("WORK_PATTERN");
Map<Integer, Row> workPatternMap = m_reader.createWorkPatternMap(rows);
rows = ne... | [
"Extract calendar data from the file.\n\n@throws SQLException"
] | [
"Get a property as a boolean or null.\n\n@param key the property name",
"Sets the bottom padding character for all cells in the row.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining",
"Logs all properties",
"Add a newline to this sequence according to the config... |
private void calculateMenuItemPosition() {
float itemRadius = (expandedRadius + collapsedRadius) / 2, f;
RectF area = new RectF(
center.x - itemRadius,
center.y - itemRadius,
center.x + itemRadius,
center.y + itemRadius);
Path path... | [
"calculate and set position to menu items"
] | [
"Starts advertising on Hyperbahn at a fixed interval.\n\n@return a future that resolves to the response of the first advertise request",
"Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class n... |
@NonNull
public static String placeholders(final int numberOfPlaceholders) {
if (numberOfPlaceholders == 1) {
return "?"; // fffast
} else if (numberOfPlaceholders == 0) {
return "";
} else if (numberOfPlaceholders < 0) {
throw new IllegalArgumentException... | [
"Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders."
] | [
"Use this API to delete clusterinstance resources.",
"Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>",
"Determine whether the given element matches this element.\nAn element matches this element when keys are equal, values are equal\... |
static Type parseType(String value, ResourceLoader resourceLoader) {
value = value.trim();
// Wildcards
if (value.equals(WILDCARD)) {
return WildcardTypeImpl.defaultInstance();
}
if (value.startsWith(WILDCARD_EXTENDS)) {
Type upperBound = parseType(value.s... | [
"Type variables are not supported.\n\n@param value\n@return the type"
] | [
"Gets the txinfo cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #TX_INFO_CACHE_WEIGHT} if\nit is set, else the value of the default value {@value #TX_INFO_CACHE_WEIGHT_DEFAULT}",
"Notifies that a footer item is inserted.\n\n@param position th... |
public List<String> filterAddonResources(Addon addon, Predicate<String> filter)
{
List<String> discoveredFileNames = new ArrayList<>();
List<File> addonResources = addon.getRepository().getAddonResources(addon.getId());
for (File addonFile : addonResources)
{
if (addonFil... | [
"Returns a list of files in given addon passing given filter."
] | [
"Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise",
"Only match if the TypeReference is at the specified location within the file.",
"Get an ObjectReferen... |
private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
if (n.min > c.min) {
n.min = c.min;
}
}
} | [
"Update max min.\n\n@param n the n\n@param c the c"
] | [
"performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized obj... |
private void initComponents(List<CmsSetupComponent> components) {
for (CmsSetupComponent component : components) {
CheckBox checkbox = new CheckBox();
checkbox.setValue(component.isChecked());
checkbox.setCaption(component.getName() + " - " + component.getDescription());
... | [
"Initializes the components.\n\n@param components the components"
] | [
"Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference",
"Use this API to fetch sslfipskey resource of given name .",
"Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animat... |
public void dispatchKeyEvent(int code, int action) {
int keyCode = 0;
int keyAction = 0;
if (code == BUTTON_1) {
keyCode = KeyEvent.KEYCODE_BUTTON_1;
} else if (code == BUTTON_2) {
keyCode = KeyEvent.KEYCODE_BUTTON_2;
}
if (action == ACTION_DOWN) ... | [
"Synthesize and forward a KeyEvent to the library.\n\nThis call is made from the native layer.\n\n@param code id of the button\n@param action integer representing the action taken on the button"
] | [
"returns whether masking with the given mask results in a valid contiguous range for this segment,\nand if it does, if it matches the range obtained when masking the given values with the same mask.\n\n@param lowerValue\n@param upperValue\n@param mask\n@return",
"Adds vector v1 to v2 and places the result in this... |
private void solveInternalL() {
// This takes advantage of the diagonal elements always being real numbers
// solve L*y=b storing y in x
TriangularSolver_ZDRM.solveL_diagReal(t, vv, n);
// solve L^T*x=y
TriangularSolver_ZDRM.solveConjTranL_diagReal(t, vv, n);
} | [
"Used internally to find the solution to a single column vector."
] | [
"Creates a new pagination configuration if at least one of the provided parameters is not null.\nOtherwise returns null.\n@param pageParam The request parameter used to send the current page number.\n@param pageSizes The page sizes for the first pages. The last provided size is the size of all following pages.\n@pa... |
public static String readTextFile(File file) {
try {
return readTextFile(new FileReader(file));
} catch (FileNotFoundException e) {
e.printStackTrace();
return null;
}
} | [
"Read a text file into a single string\n\n@param file\nThe file to read\n@return The contents, or null on error."
] | [
"Compares two fields given by their names.\n\n@param objA The name of the first field\n@param objB The name of the second field\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)",
"Returns the full user record for the single user with the provided ID.\n\n@param user An ide... |
public static Collection<CurrencyUnit> getCurrencies(String... providers) {
return Optional.ofNullable(MONETARY_CURRENCIES_SINGLETON_SPI()).orElseThrow(
() -> new MonetaryException("No MonetaryCurrenciesSingletonSpi loaded, check your system setup."))
.getCurrencies(providers);
... | [
"Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of known currencies, never null."
] | [
"Tests an observer method to see if it is transactional.\n\n@param observer The observer method\n@return true if the observer method is annotated as transactional",
"Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type",
"Randomly generates matrix with the specified number of m... |
public Optional<Project> findProject(String name) throws IllegalArgumentException {
if (name == null || name.isEmpty()) {
throw new IllegalArgumentException("Project name cannot be empty");
}
return getProject(name);
} | [
"Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException"
] | [
"Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs",
"Handle changes of the series check box.\n@param event the change event.",
"Compute morse.\n\n@param term the term\n... |
public JSONObject getJsonFormatted(Map<String, String> dataMap) {
JSONObject oneRowJson = new JSONObject();
for (int i = 0; i < outTemplate.length; i++) {
oneRowJson.put(outTemplate[i], dataMap.get(outTemplate[i]));
}
return oneRowJson;
} | [
"Given an array of variable names, returns a JsonObject\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@return a json object of values"
] | [
"Populate the UDF values for this entity.\n\n@param tableName parent table name\n@param type entity type\n@param container entity\n@param uniqueID entity Unique ID",
"Use this API to expire cachecontentgroup resources.",
"Set the list of supported resolutions. Each resolution is specified in map units per pixel... |
public Shard getShard(String docId) {
assertNotEmpty(docId, "docId");
return client.couchDbClient.get(new DatabaseURIHelper(db.getDBUri()).path("_shards")
.path(docId).build(),
Shard.class);
} | [
"Get info about the shard a document belongs to.\n\n@param docId document ID\n@return Shard info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-database-_shards-\"\ntarget=\"_blank\">_shards</a>"
] | [
"Use this API to delete snmpmanager.",
"Is the given resource type id free?\n@param id to be checked\n@return boolean",
"Update an existing feature. Made package private for testing purposes.\n\n@param feature feature to update\n@throws LayerException oops",
"We are adding a redeploy operation step for each s... |
public static void checkVectorAddition() {
DoubleMatrix x = new DoubleMatrix(3, 1, 1.0, 2.0, 3.0);
DoubleMatrix y = new DoubleMatrix(3, 1, 4.0, 5.0, 6.0);
DoubleMatrix z = new DoubleMatrix(3, 1, 5.0, 7.0, 9.0);
check("checking vector addition", x.add(y).equals(z));
} | [
"Check whether vector addition works. This is pure Java code and should work."
] | [
"Finds an Object of the specified type.\n\n@param <T> Object type.\n@param classType The class of type T.\n@param id The document _id field.\n@param rev The document _rev field.\n@return An object of type T.\n@throws NoDocumentException If the document is not found in the database.",
"Here the ... |
private void configureCustomFields()
{
CustomFieldContainer customFields = m_projectFile.getCustomFields();
// If the caller hasn't already supplied a value for this field
if (m_activityIDField == null)
{
m_activityIDField = (TaskField) customFields.getFieldByAlias(FieldTypeClass.TA... | [
"Find the fields in which the Activity ID and Activity Type are stored."
] | [
"Set the value of the underlying component. Note that this will\nnot work for ListEditor components. Also, note that for a JComboBox,\nThe value object must have the same identity as an object in the drop-down.\n\n@param propName The DMR property name to set.\n@param value The value.",
"Retrieve the date range... |
public void updateRequestByAddingReplaceVarPair(
ParallelTask task, String replaceVarKey, String replaceVarValue) {
Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult();
for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) {
NodeReqResponse nodeR... | [
"GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value"
] | [
"Use this API to update rnatparam.",
"This function compares style ID's between features. Features are usually sorted by style.",
"Returns the accrued interest of the bond for a given time.\n\n@param time The time of interest as double.\n@param model The model under which the product is valued.\n@return The acc... |
private final boolean matchPattern(byte[][] patterns, int bufferIndex)
{
boolean match = false;
for (byte[] pattern : patterns)
{
int index = 0;
match = true;
for (byte b : pattern)
{
if (b != m_buffer[bufferIndex + index])
{
... | [
"Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern"
] | [
"Use this API to fetch all the systementitydata resources that are configured on netscaler.\nThis uses systementitydata_args which is a way to provide additional arguments while fetching the resources.",
"Edit the co-ordinates that the user shows in\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrE... |
static void processServerConfig(final Resource root, final RequiredConfigurationHolder requiredConfigurationHolder, final IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo serverConfig, final ExtensionRegistry extensionRegistry) {
final Set<String> serverGroups = requiredConfigurationHolder.serverGroups;
... | [
"Determine the relevant pieces of configuration which need to be included when processing the domain model.\n\n@param root the resource root\n@param requiredConfigurationHolder the resolution context\n@param serverConfig the server config\n@param extensionRegistry the extension registr... | [
"This method extracts predecessor data from an MSPDI file.\n\n@param task Task data",
"except for the ones that make the content appear under the system bars.",
"This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdo... |
private void handleMultiInstanceEncapResponse(
SerialMessage serialMessage, int offset) {
logger.trace("Process Multi-instance Encapsulation");
int instance = serialMessage.getMessagePayloadByte(offset);
int commandClassCode = serialMessage.getMessagePayloadByte(offset + 1);
CommandClass commandClass = ... | [
"Handles Multi Instance Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\ninstance.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing."
] | [
"Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session",
"Gets a list of split keys given a desired number of splits.\n\n<p>This list will contain multiple split keys ... |
public AT_Row setTextAlignment(TextAlignment textAlignment){
if(this.hasCells()){
for(AT_Cell cell : this.getCells()){
cell.getContext().setTextAlignment(textAlignment);
}
}
return this;
} | [
"Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null"
] | [
"Get result report.\n\n@param reportURI the URI of the report\n@return the result report.",
"Returns a list of Elements form the DOM tree, matching the tag element.",
"Determines the prefix of an accessor method based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulti... |
public static <T> T load(String resourcePath, BeanSpec spec) {
return load(resourcePath, spec, false);
} | [
"Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value t... | [
"Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information",
"Formats the supplied value using the specified DateTimeFormat.\n\n@return \"\" if the value is null",
"Sets the specified integer attribute to the specified value.\n\n@param name name of the attri... |
public static String nameFromOffset(long offset) {
NumberFormat nf = NumberFormat.getInstance();
nf.setMinimumIntegerDigits(20);
nf.setMaximumFractionDigits(0);
nf.setGroupingUsed(false);
return nf.format(offset) + Log.FileSuffix;
} | [
"Make log segment file name from offset bytes. All this does is pad out the offset number\nwith zeros so that ls sorts the files numerically\n@param offset offset value (padding with zero)\n@return filename with offset"
] | [
"Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(t... |
public final void setIndividualDates(SortedSet<Date> dates) {
m_individualDates.clear();
if (null != dates) {
m_individualDates.addAll(dates);
}
for (Date d : getExceptions()) {
if (!m_individualDates.contains(d)) {
m_exceptions.remove(d);
... | [
"Set the individual dates where the event should take place.\n@param dates the dates to set."
] | [
"Try to link the declaration with the importerService referenced by the ServiceReference,.\nreturn true if they have been link together, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<S> of S\n@return true if they have been link together, false othe... |
public DomainList getPhotostreamDomains(Date date, int perPage, int page) throws FlickrException {
return getDomains(METHOD_GET_PHOTOSTREAM_DOMAINS, null, null, date, perPage, page);
} | [
"Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param perPage\n(Optional) Number of domains to retu... | [
"Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type",
"Set keyboard done listener to detect when the user c... |
public static cmppolicy_stats[] get(nitro_service service) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
return response;
} | [
"Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler."
] | [
"Creates the HikariCP configuration based on the configuration of a pool defined in opencms.properties.\n\n@param config the configuration object with the properties\n@param key the pool name (without the opencms prefix)\n\n@return the HikariCP configuration for the pool",
"Write a duration field to the JSON file... |
private Component createAddKeyButton() {
// the "+" button
Button addKeyButton = new Button();
addKeyButton.addStyleName("icon-only");
addKeyButton.addStyleName("borderless-colored");
addKeyButton.setDescription(m_messages.key(Messages.GUI_ADD_KEY_0));
addKeyButton.setIc... | [
"Creates the \"Add key\" button.\n@return the \"Add key\" button."
] | [
"This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded",
"Po... |
public static final Date getFinishDate(byte[] data, int offset)
{
Date result;
long days = getShort(data, offset);
if (days == 0x8000)
{
result = null;
}
else
{
result = DateHelper.getDateFromLong(EPOCH + ((days - 1) * DateHelper.MS_PER_DAY));
}
... | [
"Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date"
] | [
"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",
"Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.",
"Use... |
public Class<T> getProxyClass() {
String suffix = "_$$_Weld" + getProxyNameSuffix();
String proxyClassName = getBaseProxyName();
if (!proxyClassName.endsWith(suffix)) {
proxyClassName = proxyClassName + suffix;
}
if (proxyClassName.startsWith(JAVA)) {
prox... | [
"Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy"
] | [
"Retrieve the next available field.\n\n@return FieldType instance for the next available field",
"Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to delete.\n@throws FlickrException",
"Obtain the pro... |
public Stats getPhotostreamStats(Date date) throws FlickrException {
return getStats(METHOD_GET_PHOTOSTREAM_STATS, null, null, date);
} | [
"Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.fl... | [
"Computes annualized seasonal adjustments from given monthly realized CPI values.\n\n@param realizedCPIValues An array of consecutive monthly CPI values (minimum size is 12*numberOfYearsToAverage))\n@param lastMonth The index of the last month in the sequence of realizedCPIValues (corresponding to the enums in <cod... |
public void updateDownLoadUrl(final String gavc, final String downLoadUrl) {
final DbArtifact artifact = getArtifact(gavc);
repositoryHandler.updateDownloadUrl(artifact, downLoadUrl);
} | [
"Update artifact download url of an artifact\n\n@param gavc String\n@param downLoadUrl String"
] | [
"Add the specified files in reverse order.",
"Adds a String timestamp representing uninstall flag to the DB.",
"Validates the binding types",
"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 t... |
public synchronized void stop () {
if (isRunning()) {
MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener);
WaveformFinder.getInstance().removeWaveformListener(waveformListener);
BeatGridFinder.getInstance().removeBeatGridListener(beatGridListener);
... | [
"Stop finding signatures for all active players."
] | [
"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 ARGB components in that order.",
"Reads an argument of type \"nstring\" from the request.",
"Obta... |
public void scrollOnce() {
PagerAdapter adapter = getAdapter();
int currentItem = getCurrentItem();
int totalCount;
if (adapter == null || (totalCount = adapter.getCount()) <= 1) {
return;
}
int nextItem = (direction == LEFT) ? --currentItem : ++currentItem;
... | [
"scroll only once"
] | [
"Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object",
"Print time unit.\n\n@param value TimeUnit instance\n@return time unit value",
"Select item by it's position\n\n@param position int value of item position to select\n@param invokeListeners ... |
private static String getPath(Service service, Annotation... qualifiers) {
for (Annotation q : qualifiers) {
if (q instanceof Scheme) {
return ((Scheme) q).value();
}
}
if (service.getMetadata() != null && service.getMetadata().getAnnotations() != null) {... | [
"Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback."
] | [
"End building the prepared script, adding a return value statement\n@param value the value to return\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance",
"Parses operations where the input comes from variables to its left and right\n\n@param ops List of op... |
private static String wordShapeChris4(String s, boolean omitIfInBoundary, Collection<String> knownLCWords) {
int len = s.length();
if (len <= BOUNDARY_SIZE * 2) {
return wordShapeChris4Short(s, len, knownLCWords);
} else {
return wordShapeChris4Long(s, omitIfInBoundary, len, knownLCWords);
... | [
"This one picks up on Dan2 ideas, but seeks to make less distinctions\nmid sequence by sorting for long words, but to maintain extra\ndistinctions for short words, by always recording the class of the\nfirst and last two characters of the word.\nCompared to chris2 on which it is based,\nit uses more Unicode classes... | [
"This implementation returns whether the underlying asset exists.",
"Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes",
"Sets the color for the big total between the column and row\n@param row row index (starting from 1)\n@param column column index... |
private void handleMultiInstanceReportResponse(SerialMessage serialMessage,
int offset) {
logger.trace("Process Multi-instance Report");
int commandClassCode = serialMessage.getMessagePayloadByte(offset);
int instances = serialMessage.getMessagePayloadByte(offset + 1);
if (instances == 0) {
setIns... | [
"Handles Multi Instance Report message. Handles Report on\nthe number of instances for the command class.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing."
] | [
"Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument",
"Get the element as a boolean.\n\n@param i the index of the element to access",
"The mediator registration config. If it contains default config and definitions,\nthen the dynamic config will be initiali... |
public void visitExport(String packaze, int access, String... modules) {
if (mv != null) {
mv.visitExport(packaze, access, modules);
}
} | [
"Visit an exported package of the current module.\n\n@param packaze the qualified name of the exported package.\n@param access the access flag of the exported package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can access to\nthe ... | [
"Create a WebDriver backed EmbeddedBrowser.\n\n@param driver The WebDriver to use.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.... |
public static <T> Set<T> asImmutable(Set<? extends T> self) {
return Collections.unmodifiableSet(self);
} | [
"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"
] | [
"Registers add operation\n\n@param registration resource on which to register\n@param handler operation handler to register\n@param flags with flags\n@deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.control... |
public long getTimeRemainingInMillis()
{
long batchTime = System.currentTimeMillis() - startTime;
double timePerIteration = (double) batchTime / (double) worked.get();
return (long) (timePerIteration * (total - worked.get()));
} | [
"Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done."
] | [
"Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return",
"Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException",
"Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param modu... |
public Date getTime(Integer type)
{
Date result = null;
byte[] item = m_map.get(type);
if (item != null)
{
result = MPPUtility.getTime(item, 0);
}
return (result);
} | [
"Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp"
] | [
"Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance",
"Convenience method that returns the attribute value for the specified attribute name.\n\n@param attributeName the name of the attribute\n@return the value of the attribute or null if no such attribute exists\n@since... |
public static int timezoneOffset(H.Session session) {
String s = null != session ? session.get(SESSION_KEY) : null;
return S.notBlank(s) ? Integer.parseInt(s) : serverTimezoneOffset();
} | [
"Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes"
] | [
"Creates an observable that emits the given item after the specified time in milliseconds.\n\n@param event the event to emit\n@param milliseconds the delay in milliseconds\n@param <T> the type of event\n@return delayed observable",
"Return a long value which is the number of rows in the table.",
"Add a new chec... |
@Deprecated
public Category browse(String catId) throws FlickrException {
List<Subcategory> subcategories = new ArrayList<Subcategory>();
List<Group> groups = new ArrayList<Group>();
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHO... | [
"Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results"
] | [
"Static main.\n\n@param args\nProgram arguments.\n@throws IOException\nIf an IO error occurred.",
"Get PhoneNumber object\n\n@return PhonenUmber | null on error",
"Removes all commas from the token list",
"Returns if a MongoDB document is a todo item.",
"Derives the OJB platform to use for a database that i... |
public Where<T, ID> ge(String columnName, Object value) throws SQLException {
addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value,
SimpleComparison.GREATER_THAN_EQUAL_TO_OPERATION));
return this;
} | [
"Add a '>=' clause so the column must be greater-than or equals-to the value."
] | [
"Check that the ranges and sizes add up, otherwise we have lost some data somewhere",
"Creates a spin wrapper for a data input of a given data format.\n\n@param input the input to wrap\n@param format the data format of the input\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case a... |
public ParallelTask getTaskFromInProgressMap(String jobId) {
if (!inprogressTaskMap.containsKey(jobId))
return null;
return inprogressTaskMap.get(jobId);
} | [
"Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map"
] | [
"Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day",
"Calculates a md5 hash for an url\n\nIf a passed in url is absent then this method will return absent as well\n\n@param url ... |
private JarFile loadJar(File archive) throws DecompilationException
{
try
{
return new JarFile(archive);
}
catch (IOException ex)
{
throw new DecompilationException("Can't load .jar: " + archive.getPath(), ex);
}
} | [
"Opens the jar, wraps any IOException."
] | [
"Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations.",
"Checks if the given String is null or contains only whitespaces.\nThe String is trimmed before the empty check.\n\n@param argument the String to check for null or emptiness\n... |
public int[] indices(Collection<E> elems) {
int[] indices = new int[elems.size()];
int i = 0;
for (E elem : elems) {
indices[i++] = indexOf(elem);
}
return indices;
} | [
"Returns the index of each elem in a List.\n@param elems The list of items\n@return An array of indices"
] | [
"Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.",
"Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data",
"Starts all streams.",
"... |
public void open(File versionDir) {
/* acquire modification lock */
fileModificationLock.writeLock().lock();
try {
/* check that the store is currently closed */
if(isOpen)
throw new IllegalStateException("Attempt to open already open store.");
... | [
"Open the store with the version directory specified. If null is specified\nwe open the directory with the maximum version\n\n@param versionDir Version Directory to open. If null, we open the max\nversioned / latest directory"
] | [
"Exit the Application",
"Get the pickers date.",
"Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity... |
protected String escapeApostrophes(String text) {
String resultString;
if (text.contains("'")) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("concat('");
stringBuilder.append(text.replace("'", "',\"'\",'"));
stringBuilder.append("')");
resultString = stringBuilder.t... | [
"Returns a string to resolve apostrophe issue in xpath\n\n@param text\n@return the apostrophe resolved xpath value string"
] | [
"get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.",
"Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance",
"Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belongi... |
public HashMap<String, String> getProperties() {
if (this.properties == null) {
this.properties = new HashMap<String, String>();
}
return properties;
} | [
"return a HashMap with all properties, name as key, value as value\n@return the properties"
] | [
"Determines if the queue identified by the given key can be used as a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key already is a delayed queue or is not currently used, false otherwise",
"Use this API to add ipset.",
"Validates this str... |
private RecurrenceType getRecurrenceType(int value)
{
RecurrenceType result;
if (value < 0 || value >= RECURRENCE_TYPES.length)
{
result = null;
}
else
{
result = RECURRENCE_TYPES[value];
}
return result;
} | [
"Retrieve the recurrence type.\n\n@param value integer value\n@return RecurrenceType instance"
] | [
"Converts this IPv6 address segment into smaller segments,\ncopying them into the given array starting at the given index.\n\nIf a segment does not fit into the array because the segment index in the array is out of bounds of the array,\nthen it is not copied.\n\n@param segs\n@param index",
"Add the buildInfo to ... |
public InternalTile paint(InternalTile tile) throws RenderException {
if (tile.getContentType().equals(VectorTileContentType.URL_CONTENT)) {
if (urlBuilder != null) {
if (paintGeometries) {
urlBuilder.paintGeometries(paintGeometries);
urlBuilder.paintLabels(false);
tile.setFeatureContent(urlBuil... | [
"Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}."
] | [
"Run a task periodically and indefinitely.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@return An interface that lets you query the status; cancel; or\nreschedu... |
public void removeAccessory(HomekitAccessory accessory) {
this.registry.remove(accessory);
logger.info("Removed accessory " + accessory.getLabel());
if (started) {
registry.reset();
webHandler.resetConnections();
}
} | [
"Removes an accessory from being handled or advertised by this root. Any existing Homekit\nconnections will be terminated to allow the clients to reconnect and see the updated accessory\nlist.\n\n@param accessory accessory to cease advertising and handling"
] | [
"Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param perPage\n(Optional) Number of domains to retu... |
public static responderparam get(nitro_service service) throws Exception{
responderparam obj = new responderparam();
responderparam[] response = (responderparam[])obj.get_resources(service);
return response[0];
} | [
"Use this API to fetch all the responderparam resources that are configured on netscaler."
] | [
"Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.",
"Get the FieldDescriptors of the extent based on the FieldDescriptors of the parent.",
"Attaches a pre-existing set of hours to the correct\nday within the calendar.\n\n@param hours calendar hours instance",
"Retriev... |
protected void addLoadError(PdfContext context, ImageException e) {
Bbox imageBounds = e.getRasterImage().getBounds();
float scaleFactor = (float) (72 / getMap().getRasterResolution());
float width = (float) imageBounds.getWidth() * scaleFactor;
float height = (float) imageBounds.getHeight() * scaleFactor;
//... | [
"Add image with a exception message in the PDF document.\n\n@param context\nPDF context\n@param e\nexception to put in image"
] | [
"Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor",
"Print work units.\n\n@param value TimeU... |
protected NodeData createRectangleStyle(float x, float y, float width, float height, boolean stroke, boolean fill)
{
float lineWidth = transformLength((float) getGraphicsState().getLineWidth());
float lw = (lineWidth < 1f) ? 1f : lineWidth;
float wcor = stroke ? lw : 0.0f;
N... | [
"Creates the style definition used for a rectangle element based on the given properties of the rectangle\n@param x The X coordinate of the rectangle.\n@param y The Y coordinate of the rectangle.\n@param width The width of the rectangle.\n@param height The height of the rectangle.\n@param stroke Should there be a s... | [
"Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS",
"absolute for basicJDBCSupport\n@param row",
"Add calendars to the tree.\n\n@param parentNode parent tree node\n@para... |
public static <E extends Style.HasCssName, F extends Enum<? extends Style.HasCssName>> void addUniqueEnumStyleName(final UIObject uiObject,
final Class<F> enumClass,
... | [
"Convenience method for first removing all enum style constants and then adding the single one.\n\n@see #removeEnumStyleNames(UIObject, Class)\n@see #addEnumStyleName(UIObject, Style.HasCssName)"
] | [
"Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException",
"Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in t... |
private ProctorContext getProctorContext(final HttpServletRequest request) throws IllegalAccessException, InstantiationException {
final ProctorContext proctorContext = contextClass.newInstance();
final BeanWrapper beanWrapper = new BeanWrapperImpl(proctorContext);
for (final PropertyDescriptor ... | [
"Do some magic to turn request parameters into a context object"
] | [
"Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return",
"Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value",
"Returns the version of Jenkins Artifactory Plugin or empty string if not found\n\n@return the version of Jenki... |
static void writeCertificates(final ModelNode result, final Certificate[] certificates) throws CertificateEncodingException, NoSuchAlgorithmException {
if (certificates != null) {
for (Certificate current : certificates) {
ModelNode certificate = new ModelNode();
writ... | [
"Populate the supplied response with the model representation of the certificates.\n\n@param result the response to populate.\n@param certificates the certificates to add to the response.\n@throws CertificateEncodingException\n@throws NoSuchAlgorithmException"
] | [
"Count the number of non-zero elements in R",
"Use this API to delete nsip6.",
"Returns true if the activity is a milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone",
"Adds a command class to the list of supported command classes by this\nendpoint. Does nothing if comm... |
public List<String> invoke(File f, VirtualChannel channel) throws IOException, InterruptedException {
MavenProject mavenProject = getMavenProject(f.getAbsolutePath());
return mavenProject.getModel().getModules();
} | [
"This is needed when running on slaves."
] | [
"Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value",
"Get the object responsible for printing to the correct output format.\n\n@param specJson the request json from the client",
"Support the range subscript operator for String\n\n@param text a String\n@param ... |
public boolean isIPv4Compatible() {
return getSegment(0).isZero() && getSegment(1).isZero() && getSegment(2).isZero() &&
getSegment(3).isZero() && getSegment(4).isZero() && getSegment(5).isZero();
} | [
"Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()"
] | [
"main class entry point.",
"Retrieve the finish slack.\n\n@return finish slack",
"Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.... |
public void bindScriptBundleToScene(GVRScriptBundle scriptBundle, GVRScene scene) throws IOException, GVRScriptException {
for (GVRSceneObject sceneObject : scene.getSceneObjects()) {
bindBundleToSceneObject(scriptBundle, sceneObject);
}
} | [
"Binds a script bundle to a scene.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param scene\nThe scene to bind to.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if script processing error occurs."
] | [
"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",
"Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node",
"Check, if the current user h... |
public HttpConnection execute(HttpConnection connection) {
//set our HttpUrlFactory on the connection
connection.connectionFactory = factory;
// all CouchClient requests want to receive application/json responses
connection.requestProperties.put("Accept", "application/json");
c... | [
"Execute a HTTP request and handle common error cases.\n\n@param connection the HttpConnection request to execute\n@return the executed HttpConnection\n@throws CouchDbException for HTTP error codes or if an IOException was thrown"
] | [
"Return a list of Flickr supported blogging services.\n\nThis method does not require authentication.\n\n@return List of Services\n@throws FlickrException",
"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, ... |
@SuppressWarnings({"unused", "WeakerAccess"})
public void pushInstallReferrer(Intent intent) {
try {
final Bundle extras = intent.getExtras();
// Preliminary checks
if (extras == null || !extras.containsKey("referrer")) {
return;
}
... | [
"This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters"
] | [
"Checks if a document exist in the database.\n\n@param id The document _id field.\n@return true If the document is found, false otherwise.",
"Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown i... |
public void linkMtoN(Object obj, CollectionDescriptor cod, boolean insert)
{
Object referencedObjects = cod.getPersistentField().get(obj);
storeAndLinkMtoN(true, obj, cod, referencedObjects, insert);
} | [
"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, false signals update operation"
] | [
"Remove the listener active in this session.\n\n@param listenerId the id of the listener to remove",
"Store some state on this request context associated with the specified interceptor instance.\nUsed where a single interceptor instance needs to associate state with each HTTP request.\n\n@param interceptor ... |
private void ensureNext() {
// Check if the current scan result has more keys (i.e. the index did not reach the end of the result list)
if (resultIndex < scanResult.getResult().size()) {
return;
}
// Since the current scan result was fully iterated,
// if there is ano... | [
"Make sure the result index points to the next available key in the scan result, if exists."
] | [
"Only call async",
"This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token",
"initializer to setup JSAdapter prototype in the given scope",
"Search for the first entry in the first database. ... |
protected static PatchElement createPatchElement(final PatchEntry entry, String patchId, final List<ContentModification> modifications) {
final PatchElement patchElement = entry.element;
final PatchElementImpl element = new PatchElementImpl(patchId);
element.setProvider(patchElement.getProvider(... | [
"Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element"
] | [
"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 ... |
private String trim(String line) {
char[] chars = line.toCharArray();
int len = chars.length;
while (len > 0) {
if (!Character.isWhitespace(chars[len - 1])) {
break;
}
len--;
}
return line.substring(0, len);
} | [
"Trim the trailing spaces.\n\n@param line"
] | [
"Returns the query string currently in the text field.\n\n@return the query string",
"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).",
"Send value to node.\n@param nodeId the node Id to send the... |
@Deprecated
public FluoConfiguration clearObservers() {
Iterator<String> iter1 = getKeys(OBSERVER_PREFIX.substring(0, OBSERVER_PREFIX.length() - 1));
while (iter1.hasNext()) {
String key = iter1.next();
clearProperty(key);
}
return this;
} | [
"Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}"
] | [
"Returns the dimension of the type of the current member.\n\n@return The member dimension\n@exception XDocletException if an error occurs\n@see OjbMemberTagsHandler#getMemberType()",
"Mark the given TaskItem depends on this taskGroup.\n\n@param dependentTaskItem the t... |
public boolean isLabelAnnotationIntroducingCharacter(char ch) {
char[] cutChars = labelAnnotationIntroducingCharacters();
for (char cutChar : cutChars) {
if (ch == cutChar) {
return true;
}
}
return false;
} | [
"Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character"
] | [
"Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error",
"I KNOW WHAT I AM DOING",
"Remember the order of execution",
"Pops the top event off the current event stack. This action has to be\nperformed immediately after the event has be... |
public void fireAssignmentReadEvent(ResourceAssignment resourceAssignment)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.assignmentRead(resourceAssignment);
}
}
} | [
"This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance"
] | [
"Bounds are calculated locally, can use any filter, but slower than native.\n\n@param filter\nfilter which needs to be applied\n@return the bounds of the specified features\n@throws LayerException\noops",
"Use this API to add dnsaaaarec resources.",
"Processes the template for the object cache of the current cl... |
public static boolean isConstructorCall(Expression expression, List<String> classNames) {
return expression instanceof ConstructorCallExpression && classNames.contains(expression.getType().getName());
} | [
"Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described"
] | [
"get the TypeArgSignature corresponding to given type\n\n@param type\n@return",
"Use this API to fetch dospolicy resource of given name .",
"Returns the orthogonal V matrix.\n\n@param V If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.",
... |
@SuppressWarnings("unchecked")
public List<Field> getValueAsList() {
return (List<Field>) type.convert(getValue(), Type.LIST);
} | [
"Returns the List value of the field.\n\n@return the List value of the field. It returns a reference of the value if the type is <code>LIST</code>, if\nthe type is <code>LIST_MAP</code> it returns a copy of the value.\n@throws IllegalArgumentException if the value cannot be converted to List."
] | [
"Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository",
"Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array... |
private void deleteDir(File dir)
{
if (dir.exists() && dir.isDirectory())
{
File[] files = dir.listFiles();
for (int idx = 0; idx < files.length; idx++)
{
if (!files[idx].exists())
{
continue;
... | [
"Little helper function that recursivly deletes a directory.\n\n@param dir The directory"
] | [
"Adds a class entry to this JAR.\n\n@param clazz the class to add to the JAR.\n@return {@code this}",
"Set a status message in the JTextComponent passed to this\nmodel.\n@param message The message that should be displayed.",
"Converts from an Accumulo Key to a Fluo RowColumn\n\n@param key Key\n@return RowColumn... |
@Override
public void run()
{
try {
startBarrier.await();
int idleCount = 0;
while (!isRunning.compareAndSet(idleCount > lingerIterations && pidToProcessMap.isEmpty(), false)) {
idleCount = (!shutdown && process()) ? 0 : (idleCount + 1);
}
}
catch... | [
"The primary run loop of the event processor."
] | [
"Queries database meta data to check for the existence of\nspecific tables.",
"Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy",
"This method takes an integer enumeration of a priority\nand returns an appropriate instance o... |
public int updateRaw(DatabaseConnection connection, String statement, String[] arguments) throws SQLException {
logger.debug("running raw update statement: {}", statement);
if (arguments.length > 0) {
// need to do the (Object) cast to force args to be a single object
logger.trace("update arguments: {}", (Obj... | [
"Return the number of rows affected."
] | [
"Set ViewPort visibility of the object.\n\n@see ViewPortVisibility\n@param viewportVisibility\nThe ViewPort visibility of the object.\n@return {@code true} if the ViewPort visibility was changed, {@code false} if it\nwasn't.",
"Get a list of topics from a group.\n\n@param groupId\nUnique identifier of a group ret... |
private void loadLocalizationFromXmlBundle(Locale locale) {
CmsXmlContentValueSequence messages = m_xmlBundle.getValueSequence("Message", locale);
SortedProperties props = new SortedProperties();
if (null != messages) {
for (I_CmsXmlContentValue msg : messages.getValues()) {
... | [
"Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded"
] | [
"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",
"Obtain newline-delimi... |
public static Document readDocumentFromString(String s) throws Exception {
InputSource in = new InputSource(new StringReader(s));
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(false);
return factory.newDocumentBuilder().parse(in);
} | [
"end class SAXErrorHandler"
] | [
"Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file.",
"This main method provides an easy command line tool to compare two\nschemas.",
"Get the element at the index as an integer.\n\n@param i the index of the element to access",
"Remove all the existing links... |
private static boolean isDisabledHandler(final LogContext logContext, final String handlerName) {
final Map<String, String> disableHandlers = logContext.getAttachment(CommonAttributes.ROOT_LOGGER_NAME, DISABLED_HANDLERS_KEY);
return disableHandlers != null && disableHandlers.containsKey(handlerName);
... | [
"Checks to see if a handler is disabled\n\n@param handlerName the name of the handler to enable."
] | [
"Add a new subsystem to a given registry.\n\n@param registry the registry\n@param name the subsystem name\n@param version the version",
"Utility function that fetches quota types.",
"Use this API to add dnsview.",
"Add a custom query parameter to the _changes request. Useful for specifying extra parameters\nt... |
public long[] append(MessageSet messages) throws IOException {
checkMutable();
long written = 0L;
while (written < messages.getSizeInBytes())
written += messages.writeTo(channel, 0, messages.getSizeInBytes());
long beforeOffset = setSize.getAndAdd(written);
return new... | [
"Append this message to the message set\n@param messages message to append\n@return the written size and first offset\n@throws IOException file write exception"
] | [
"Clear out our DAO caches.",
"Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service",
"Get the processor graph to use for executing all the processors for the template.\n\n@return the p... |
@SuppressWarnings({"OverlyLongMethod"})
public void clearProperties(@NotNull final PersistentStoreTransaction txn, @NotNull final Entity entity) {
final Transaction envTxn = txn.getEnvironmentTransaction();
final PersistentEntityId id = (PersistentEntityId) entity.getId();
final int entityTy... | [
"Clears all properties of specified entity.\n\n@param entity to clear."
] | [
"Returns the curve resulting from the local linear regression with discrete kernel.\n\n@return The regression curve.",
"Return all valid tenors for a given moneyness and maturity.\nUses the payment times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap r... |
protected Map<String, OperationTransformer> buildOperationTransformers(AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry registry) {
final Map<String, OperationTransformer> operations = new HashMap<String, OperationTransformer>();
for(final Map.Entry<String,... | [
"Build the operation transformers.\n\n@param registry the shared resource registry\n@return the operation transformers"
] | [
"Initialize the container for the current application deployment\n\n@param deploymentManager\n@param deploymentServices",
"Answer the TableAlias for aPath or aUserAlias\n@param aPath\n@param aUserAlias\n@param hintClasses\n@return TableAlias, null if none",
"This method writes project property data to a JSON fi... |
public static cacheselector[] get(nitro_service service, String selectorname[]) throws Exception{
if (selectorname !=null && selectorname.length>0) {
cacheselector response[] = new cacheselector[selectorname.length];
cacheselector obj[] = new cacheselector[selectorname.length];
for (int i=0;i<selectorname.le... | [
"Use this API to fetch cacheselector resources of given names ."
] | [
"Use this API to fetch all the callhome resources that are configured on netscaler.",
"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",
"Get the vector of regression coefficients.\n\n... |
public StitchObjectMapper withCodecRegistry(final CodecRegistry codecRegistry) {
// We can't detect if their codecRegistry has any duplicate providers. There's also a chance
// that putting ours first may prevent decoding of some of their classes if for example they
// have their own way of decoding an Inte... | [
"Applies the given codec registry to be used alongside the default codec registry.\n\n@param codecRegistry the codec registry to merge in.\n@return an {@link StitchObjectMapper} with the merged codec registries."
] | [
"Add a collaborator to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param collaborator Username of the collaborator to add. This is usually in the form of \"user@company.com\".",
"Propagates node table of given DAG to all of it ancestors.",
"Sets the day of the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.