query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
public static String readTextFile(InputStream inputStream) {
InputStreamReader streamReader = new InputStreamReader(inputStream);
return readTextFile(streamReader);
} | [
"Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error."
] | [
"For creating expression columns\n@return",
"Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time",
"GENERIC!!! HELPER FUNCI... |
public void put(@NotNull final Transaction txn, final long localId,
final int blobId, @NotNull final ByteIterable value) {
primaryStore.put(txn, PropertyKey.propertyKeyToEntry(new PropertyKey(localId, blobId)), value);
allBlobsIndex.put(txn, IntegerBinding.intToCompressedEntry(blobId... | [
"Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value."
] | [
"Process a compilation unit already parsed and build.",
"Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference",
"Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@para... |
public static long raiseToPower(int value, int power)
{
if (power < 0)
{
throw new IllegalArgumentException("This method does not support negative powers.");
}
long result = 1;
for (int i = 0; i < power; i++)
{
result *= value;
}
... | [
"Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}."
] | [
"Sets the replacement var map.\n\n@param replacementVarMap\nthe replacement var map\n@return the parallel task builder",
"Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.",
"Tokenizes the input file and extracts the required data.\n\n@param is input stream\n@throws MPXJException... |
public static String resourceProviderFromResourceId(String id) {
return (id != null) ? ResourceId.fromString(id).providerNamespace() : null;
} | [
"Extract resource provider from a resource ID string.\n@param id the resource ID string\n@return the resource group name"
] | [
"Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file.",
"Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.",
"try to deleg... |
public static void convertTranSrc(DMatrixRMaj src , DMatrixRBlock dst )
{
if( src.numRows != dst.numCols || src.numCols != dst.numRows )
throw new IllegalArgumentException("Incompatible matrix shapes.");
for( int i = 0; i < dst.numRows; i += dst.blockLength ) {
int blockHeig... | [
"Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified."
] | [
"Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation",
"Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.",
"Given a filesystem, path and buffer-size, read the file contents and... |
@Inject(optional = true)
protected Pattern setEndTag(@Named(AbstractMultiLineCommentProvider.END_TAG) final String endTag) {
return this.endTagPattern = Pattern.compile((endTag + "\\z"));
} | [
"this method is not intended to be called by clients\n@since 2.12"
] | [
"Get a loader that lists the files in the current path,\nand monitors changes.",
"This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF",
"Retrieve and validate store name from t... |
public static void saveContentMap(Map<String, String> map, File file) throws IOException {
FileWriter out = new FileWriter(file);
for (String key : map.keySet()) {
if (map.get(key) != null) {
out.write(key.replace(":", "#escapedtwodots#") + ":"
+ map.get(key).replace(":", "#escapedtwo... | [
"Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error"
] | [
"Provides a RunAs client login context",
"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",
"Write a ... |
@RequestMapping(value = "api/edit/disable", method = RequestMethod.POST)
public
@ResponseBody
String disableResponses(Model model, int path_id, @RequestParam(defaultValue = Constants.PROFILE_CLIENT_DEFAULT_ID) String clientUUID) throws Exception {
OverrideService.getInstance().disableAllOverrides(pa... | [
"disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception"
] | [
"The range of velocities that a particle generated from this emitter can have.\n@param minV Minimum velocity that a particle can have\n@param maxV Maximum velocity that a particle can have",
"Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is mi... |
private void deliverWaveformDetailUpdate(final int player, final WaveformDetail detail) {
if (!getWaveformListeners().isEmpty()) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
final WaveformDetailUpdate update = new Wav... | [
"Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any"
] | [
"Extract and return the table name for a class.",
"get the setter method corresponding to given property",
"Writes an untagged OK response, with the supplied response code,\nand an optional message.\n\n@param responseCode The response code, included in [].\n@param message The message to follow the []",
"... |
private void createResultSubClassesMultipleJoinedTables(List result, ClassDescriptor cld, boolean wholeTree)
{
List tmp = (List) superClassMultipleJoinedTablesMap.get(cld.getClassOfObject());
if(tmp != null)
{
result.addAll(tmp);
if(wholeTree)
{
... | [
"Add all sub-classes using multiple joined tables feature for specified class.\n@param result The list to add results.\n@param cld The {@link ClassDescriptor} of the class to search for sub-classes.\n@param wholeTree If set <em>true</em>, the whole sub-class tree of the specified\nclass will be returned. If <em>fal... | [
"Determines run length for each 'initial' partition ID. Note that a\ncontiguous run may \"wrap around\" the end of the ring.\n\n@param cluster\n@param zoneId\n@return map of initial partition Id to length of contiguous run of\npartition IDs within the same zone..",
"Translate a Wikimedia language code to its pref... |
private static String findOutputPath(String[][] options) {
for (int i = 0; i < options.length; i++) {
if (options[i][0].equals("-d"))
return options[i][1];
}
return ".";
} | [
"Returns the output path specified on the javadoc options"
] | [
"Builds a new instance for the class represented by the given class descriptor.\n\n@param cld The class descriptor\n@return The instance",
"This is private because the execute is the only method that should be called here.",
"Returns a new intern odmg-transaction for the current database.",
"Runs calls in a b... |
public Task<RemoteInsertOneResult> insertOne(final DocumentT document) {
return dispatcher.dispatchTask(new Callable<RemoteInsertOneResult>() {
@Override
public RemoteInsertOneResult call() {
return proxy.insertOne(document);
}
});
} | [
"Inserts the provided document. If the document is missing an identifier, the client should\ngenerate one.\n\n@param document the document to insert\n@return a task containing the result of the insert one operation"
] | [
"Log a byte array.\n\n@param label label text\n@param data byte array",
"Creates a new SimpleMatrix with the specified DMatrixRMaj used as its internal matrix. This means\nthat the reference is saved and calls made to the returned SimpleMatrix will modify the passed in DMatrixRMaj.\n\n@param internalMat The inte... |
private void readTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx)
{
for (Project.Tasks.Task.ExtendedAttribute attrib : xml.getExtendedAttribute())
{
int xmlFieldID = Integer.parseInt(attrib.getFieldID()) & 0x0000FFFF;
TaskField mpxFieldID = MPPTaskField.getInstance(xmlFieldID);
... | [
"This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance"
] | [
"Returns the classDescriptor.\n\n@return ClassDescriptor",
"Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.",
"Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for eac... |
public String clean(String value) {
String orig = value;
// check if there's a + before the first digit
boolean initialplus = findPlus(value);
// remove everything but digits
value = sub.clean(value);
if (value == null)
return null;
// check for initial '00'
boolean zero... | [
"look for zero after country code, and remove if present"
] | [
"Determine the current state the server is in.\n\n@return the server status",
"Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules",
"Gets the URL of the route with given name.\n@param routeName to return its URL\n@return URL backed by the route wi... |
public static void writeUnsignedShort(byte[] bytes, int value, int offset) {
bytes[offset] = (byte) (0xFF & (value >> 8));
bytes[offset + 1] = (byte) (0xFF & value);
} | [
"Write an unsigned short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at"
] | [
"sets the class object described by this descriptor.\n@param c the class to describe",
"Use this API to fetch statistics of scpolicy_stats resource of given name .",
"Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name",
"Sets the size of a UIObject",
"Get... |
public ItemRequest<Tag> update(String tag) {
String path = String.format("/tags/%s", tag);
return new ItemRequest<Tag>(this, Tag.class, path, "PUT");
} | [
"Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the ... | [
"find all accessibility object and set active false for enable talk back.",
"Generates timephased costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost",
"For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\... |
public void getElevationForLocations(LocationElevationRequest req, ElevationServiceCallback callback) {
this.callback = callback;
JSObject doc = (JSObject) getJSObject().eval("document");
doc.setMember(getVariableName(), this);
StringBuilder r = new StringBuild... | [
"Create a request for elevations for multiple locations.\n\n@param req\n@param callback"
] | [
"Record the details of the media being cached, to make it easier to recognize, now that we have access to that\ninformation.\n\n@param slot the slot from which a metadata cache is being created\n@param zos the stream to which the ZipFile is being written\n@param channel the low-level channel to which the cache is b... |
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users
public Searcher deleteFacet(String... attributes) {
for (String attribute : attributes) {
facetRequestCount.put(attribute, 0);
facets.remove(attribute);
}
rebuildQueryFacets();
return this;
... | [
"Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining."
] | [
"Retrieve list of task extended attributes.\n\n@return list of extended attributes",
"parse the target resource and add it to the current shape\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException",
"Abort an upload session, discarding any chunks that were uploaded to it.",
"Remove... |
public List<Client> findAllClients(int profileId) throws Exception {
ArrayList<Client> clients = new ArrayList<Client>();
PreparedStatement query = null;
ResultSet results = null;
try (Connection sqlConnection = sqlService.getConnection()) {
query = sqlConnection.prepareSta... | [
"Return all Clients for a profile\n\n@param profileId ID of profile clients belong to\n@return collection of the Clients found\n@throws Exception exception"
] | [
"Handles the change of a value in the current translation.\n@param propertyId the property id of the column where the value has changed.",
"Returns a correlation matrix which has rank < n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correl... |
public static DMatrixRMaj nullspaceSVD( DMatrixRMaj A , int totalSingular ) {
SolveNullSpace<DMatrixRMaj> solver = new SolveNullSpaceSvd_DDRM();
DMatrixRMaj nullspace = new DMatrixRMaj(1,1);
if( !solver.process(A,totalSingular,nullspace))
throw new RuntimeException("Solver failed. ... | [
"Computes the null space using SVD. Slowest bust most stable way to find the solution\n\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space"
] | [
"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",
"Configure if you want this collapsible container to\naccordion its child elements or use expandable."... |
ArgumentsBuilder param(String param, Integer value) {
if (value != null) {
args.add(param);
args.add(value.toString());
}
return this;
} | [
"Adds a parameter to the argument list if the given integer is non-null.\nIf the value is null, then the argument list remains unchanged."
] | [
"appends a WHERE-clause to the Statement\n@param where\n@param crit\n@param stmt",
"Logs the time taken by this rule and adds this to the total time taken for this phase",
"Returns the length of the message in bytes as it is encoded on the wire.\n\nApple require the message to be of length 255 bytes or less.\n\... |
public void connect(final String serialPortName)
throws SerialInterfaceException {
logger.info("Connecting to serial port {}", serialPortName);
try {
CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(serialPortName);
CommPort commPort = portIdentifier.open("org.openhab.binding.zwave"... | [
"Connects to the comm port and starts send and receive threads.\n@param serialPortName the port name to open\n@throws SerialInterfaceException when a connection error occurs."
] | [
"Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()",
"This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation ins... |
public static final String getString(byte[] data, int offset)
{
return getString(data, offset, data.length - offset);
} | [
"Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value"
] | [
"Print a resource UID.\n\n@param value resource UID value\n@return resource UID string",
"Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.",
"All tests completed.",
"Returns the configured mappings of the current field.\n\n@return the... |
public static base_response update(nitro_service client, autoscaleprofile resource) throws Exception {
autoscaleprofile updateresource = new autoscaleprofile();
updateresource.name = resource.name;
updateresource.url = resource.url;
updateresource.apikey = resource.apikey;
updateresource.sharedsecret = resour... | [
"Use this API to update autoscaleprofile."
] | [
"Adds a listener to this collection.\n\n@param listener The listener to add",
"Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.",
"Produce... |
public ApnsServiceBuilder withAuthProxy(Proxy proxy, String proxyUsername, String proxyPassword) {
this.proxy = proxy;
this.proxyUsername = proxyUsername;
this.proxyPassword = proxyPassword;
return this;
} | [
"Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy obje... | [
"Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.",
"Use this API to fetch cmppolicylabel resource of given name .",
"Compute the location of the generated file from the given trace file.",
"Creates the DAO if we have config information cached and caches the DAO.",
... |
public static base_response expire(nitro_service client, cacheobject resource) throws Exception {
cacheobject expireresource = new cacheobject();
expireresource.locator = resource.locator;
expireresource.url = resource.url;
expireresource.host = resource.host;
expireresource.port = resource.port;
expirereso... | [
"Use this API to expire cacheobject."
] | [
"checks if the triangle is not re-entrant",
"This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance",
"Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description ... |
public static boolean isDiagonalPositive( DMatrixRMaj a ) {
for( int i = 0; i < a.numRows; i++ ) {
if( !(a.get(i,i) >= 0) )
return false;
}
return true;
} | [
"Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise."
] | [
"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.",
"Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.",
"Visits an annotation ... |
public static ScheduledJob create(String cronExpression)
{
ScheduledJob res = new ScheduledJob();
res.cronExpression = cronExpression;
return res;
} | [
"Fluent API builder.\n\n@param cronExpression\n@return"
] | [
"Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.",
"Button onClick listener.\n\n@param v",
"Use this API to uns... |
@AfterThrowing(pointcut = "execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))", throwing = "throwable")
public void logErrorFromThrownException(final JoinPoint joinPoint, final Throwable throwable) {
final String className = joinPoint.getTarget().getClass().getName();
final String... | [
"Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation"
] | [
"This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException",
"There is a race condition that is not handled properly by the DialogFragment class.\nIf we don't check that this onDismiss callback isn't for... |
public static MapBounds adjustBoundsToScaleAndMapSize(
final GenericMapAttributeValues mapValues,
final Rectangle paintArea,
final MapBounds bounds,
final double dpi) {
MapBounds newBounds = bounds;
if (mapValues.isUseNearestScale()) {
newBound... | [
"If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI."
] | [
"Registers the transformers for JBoss EAP 7.0.0.\n\n@param subsystemRegistration contains data about the subsystem registration",
"Use this API to fetch all the tunneltrafficpolicy resources that are configured on netscaler.",
"Add a raw statement as part of the where that can be anything that the database supp... |
public void editMeta(String photosetId, String title, String description) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_EDIT_META);
parameters.put("photoset_id", photosetId);
parameters.put("title", title);
... | [
"Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException"
] | [
"bind attribute and value\n@param stmt\n@param index\n@param attributeOrQuery\n@param value\n@param cld\n@return\n@throws SQLException",
"Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException",
"Handle bind service event.\n@param s... |
public String join(List<String> list) {
if (list == null) {
return null;
}
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String s : list) {
if (s == null) {
if (convertEmptyToNull) {
s = "";
... | [
"Joins the given list into a single string."
] | [
"Add component processing time to given map\n@param mapComponentTimes\n@param component",
"Creates a non-binary text media type with the given subtype and a specified encoding",
"Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identi... |
public static void launchPermissionSettings(Activity activity) {
Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
intent.setData(Uri.fromParts("package", activity.getPackageName(), null));
activity.startActivity(intent);
} | [
"Launch Application Setting to grant permission."
] | [
"Ask the specified player for the beat grid of the track in the specified slot with the specified rekordbox ID,\nfirst checking if we have a cache we can use instead.\n\n@param track uniquely identifies the track whose beat grid is desired\n\n@return the beat grid, if any",
"This method retrieves a Duration insta... |
@SuppressWarnings("serial")
private Component createCloseButton() {
Button closeBtn = CmsToolBar.createButton(
FontOpenCms.CIRCLE_INV_CANCEL,
m_messages.key(Messages.GUI_BUTTON_CANCEL_0));
closeBtn.addClickListener(new ClickListener() {
public void buttonClick(C... | [
"Create the close button UI Component.\n@return the close button."
] | [
"Package-protected method used to initiate operation execution.\n@return the result action",
"Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value correspondin... |
public Date getFinish()
{
Date result = (Date) getCachedValue(AssignmentField.FINISH);
if (result == null)
{
result = getTask().getFinish();
}
return result;
} | [
"Returns the finish date for this resource assignment.\n\n@return finish date"
] | [
"Adds an additional alias to the constructed document.\n\n@param text\nthe text of the alias\n@param languageCode\nthe language code of the alias\n@return builder object to continue construction",
"Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band",
"Handle an end t... |
public void migrate() {
if (databaseIsUpToDate()) {
LOGGER.info(format("Keyspace %s is already up to date at version %d", database.getKeyspaceName(),
database.getVersion()));
return;
}
List<DbMigration> migrations = repository.getMigrationsSinceVersio... | [
"Start the actual migration. Take the version of the database, get all required migrations and execute them or do\nnothing if the DB is already up to date.\n\nAt the end the underlying database instance is closed.\n\n@throws MigrationException if a migration fails"
] | [
"Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.",
"Adds special accessors for private constants so that inner classes can retrieve them.",
"Adds to... |
@SuppressWarnings({"unused", "WeakerAccess"})
public int getTotalVisits() {
EventDetail ed = getLocalDataStore().getEventDetail(Constants.APP_LAUNCHED_EVENT);
if (ed != null) return ed.getCount();
return 0;
} | [
"Returns the total number of times the app has been launched\n@return Total number of app launches in int"
] | [
"Start offering shared dbserver sessions.\n\n@throws SocketException if there is a problem opening connections",
"Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException... |
public static void main(String[] args) {
Treebank treebank = new DiskTreebank();
treebank.loadPath(args[0]);
WordStemmer ls = new WordStemmer();
for (Tree tree : treebank) {
ls.visitTree(tree);
System.out.println(tree);
}
} | [
"Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file"
] | [
"Finishes the current box - empties the text line buffer and creates a DOM element from it.",
"Use this API to disable nsacl6.",
"Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws ... |
public void addRowAfter(I_CmsEditableGroupRow row) {
int index = m_container.getComponentIndex(row);
if (index >= 0) {
Component component = m_newComponentFactory.get();
I_CmsEditableGroupRow newRow = m_rowBuilder.buildRow(this, component);
m_container.addComponent(n... | [
"Adds a new row after the given one.\n\n@param row the row after which a new one should be added"
] | [
"build a complete set of local files, files from referenced projects, and dependencies.",
"Closes the window containing the given component.\n\n@param component a component",
"Computes the inverse permutation vector\n\n@param original Original permutation vector\n@param inverse It's inverse",
"Collapses all p... |
public BlurBuilder contrast(float contrast) {
data.preProcessors.add(new ContrastProcessor(data.contextWrapper.getRenderScript(), Math.max(Math.min(1500.f, contrast), -1500.f)));
return this;
} | [
"Change contrast of the image\n\n@param contrast default is 0, pos values increase contrast, neg. values decrease contrast"
] | [
"Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name .",
"Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform preview\n\n@return the ... |
public static appfwsignatures get(nitro_service service) throws Exception{
appfwsignatures obj = new appfwsignatures();
appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service);
return response[0];
} | [
"Use this API to fetch all the appfwsignatures resources that are configured on netscaler."
] | [
"Creates a new Box Developer Edition connection with App User token levaraging BoxConfig.\n@param userId the user ID to use for an App User.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.",
"Creates a code location URL from a class\n\n@p... |
private static final Duration parseDurationInFractionsOfMinutes(ProjectProperties properties, Number value, TimeUnit targetTimeUnit, int factor)
{
Duration result = null;
if (value != null)
{
result = Duration.getInstance(value.intValue() / factor, TimeUnit.MINUTES);
if (targetTi... | [
"Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param factor required fraction of a minute\n@return Duration instance"
] | [
"Delete a profile\n\n@param model\n@param id\n@return\n@throws Exception",
"Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param prese... |
public Build createBuild(String appName, Build build) {
return connection.execute(new BuildCreate(appName, build), apiKey);
} | [
"Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information"
] | [
"Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function",
"Sets the replace var map to single target.\n\n@param replacementVarMapList\nthe replacement var map list\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder",
"Helper meth... |
private <T> List<Class<?>> filter(List<Class<?>> enabledClasses, List<Class<?>> globallyEnabledClasses, LogMessageCallback logMessageCallback,
BeanDeployment deployment) {
for (Iterator<Class<?>> iterator = enabledClasses.iterator(); iterator.hasNext(); ) {
Class<?> enabledClass = iterat... | [
"Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list"
] | [
"Returns the expected name of a workspace for a given suffix\n@param suffix\n@return",
"Returns the corresponding module resolved service name for the given module.\n\nThe module resolved service is basically a latch that prevents the module from being loaded\nuntil all the transitive dependencies that it depends... |
public String toRomanNumeral() {
if (this.romanString == null) {
this.romanString = "";
int remainder = this.value;
for (int i = 0; i < BASIC_VALUES.length; i++) {
while (remainder >= BASIC_VALUES[i]) {
this.romanString += BASIC_ROMAN_NUMERALS[i];
remainder -= BASIC_VALUES[i];
}
}
}
... | [
"Get the Roman Numeral of the current value\n@return"
] | [
"Shrinks the alert message body so that the resulting payload\nmessage fits within the passed expected payload length.\n\nThis method performs best-effort approach, and its behavior\nis unspecified when handling alerts where the payload\nwithout body is already longer than the permitted size, or\nif the break occur... |
public final String getPath(final String key) {
StringBuilder result = new StringBuilder();
addPathTo(result);
result.append(".");
result.append(getPathElement(key));
return result.toString();
} | [
"Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key"
] | [
"Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.",
"Helper ... |
private void writeCalendars(Project project)
{
//
// Create the new MSPDI calendar list
//
Project.Calendars calendars = m_factory.createProjectCalendars();
project.setCalendars(calendars);
List<Project.Calendars.Calendar> calendar = calendars.getCalendar();
//
// Pro... | [
"This method writes calendar data to an MSPDI file.\n\n@param project Root node of the MSPDI file"
] | [
"Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container",
"Destroys an instance of the bean\n\n@param instance The instance",
"Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing scr... |
private ClassMatcher buildMatcher(String tagText) {
// check there are at least @match <type> and a parameter
String[] strings = StringUtil.tokenize(tagText);
if (strings.length < 2) {
System.err.println("Skipping uncomplete @match tag, type missing: " + tagText + " in view " + viewDoc);
return null;
}
... | [
"Factory method that builds the appropriate matcher for @match tags"
] | [
"Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.",
"Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the ... |
public static int cudnnOpTensor(
cudnnHandle handle,
cudnnOpTensorDescriptor opTensorDesc,
Pointer alpha1,
cudnnTensorDescriptor aDesc,
Pointer A,
Pointer alpha2,
cudnnTensorDescriptor bDesc,
Pointer B,
Pointer beta,
cudnnTensorDes... | [
"B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT."
] | [
"Send a mount update announcement to all registered listeners, and see if we can auto-attach a media cache file.\n\n@param slot the slot in which media has been mounted or unmounted\n@param mounted will be {@code true} if there is now media mounted in the specified slot",
"Delete any log segments matching the giv... |
PollingState<T> withResponse(Response<ResponseBody> response) {
this.response = response;
withPollingUrlFromResponse(response);
withPollingRetryTimeoutFromResponse(response);
return this;
} | [
"Sets the last operation response.\n\n@param response the last operation response."
] | [
"waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call.",
"Emits a sentence fragment combining all the merge actions.",
"Invoked by subclasses; performs actual file roll. Tests to see whether roll\nis necessary have already been p... |
public byte[] getByteArray(int offset)
{
byte[] result = null;
if (offset > 0 && offset < m_data.length)
{
int nextBlockOffset = MPPUtility.getInt(m_data, offset);
offset += 4;
int itemSize = MPPUtility.getInt(m_data, offset);
offset += 4;
if (itemSiz... | [
"Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data"
] | [
"Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to set.",
"Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 32... |
public void run() {
ConnectionHandle connection = null;
long tmp;
long nextCheckInMs = this.maxAgeInMs;
int partitionSize= this.partition.getAvailableConnections();
long currentTime = System.currentTimeMillis();
for (int i=0; i < partitionSize; i++){
try {
connection = this.partition.getFre... | [
"Invoked periodically."
] | [
"Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type",
"Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.",
"This method is used to push install referrer via Intent\n@param int... |
public final void setWeekOfMonth(WeekOfMonth weekOfMonth) {
SortedSet<WeekOfMonth> woms = new TreeSet<>();
if (null != weekOfMonth) {
woms.add(weekOfMonth);
}
setWeeksOfMonth(woms);
} | [
"Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last)."
] | [
"Add new control at the control bar with specified touch listener, resource and position.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param listener touch listener\n@param position control position in the bar",
"Fetch... |
protected void update(float scale) {
GVRSceneObject owner = getOwnerObject();
if (isEnabled() && (owner != null) && owner.isEnabled())
{
float w = getWidth();
float h = getHeight();
mPose.update(mARPlane.getCenterPose(), scale);
Matrix4f m = new Ma... | [
"Update the plane based on arcore best knowledge of the world\n\n@param scale"
] | [
"Sets the ProjectCalendar instance from which this calendar is derived.\n\n@param calendar base calendar instance",
"Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges",
"Use this API to fetch vrid_nsip6_binding resources of given name .",
"Helper to get locale specifi... |
protected List<Versioned<V>> resolveAndConstructVersionsToPersist(List<Versioned<V>> valuesInStorage,
List<Versioned<V>> multiPutValues) {
List<Versioned<V>> obsoleteVals = new ArrayList<Versioned<V>>(multiPutValues.size());
// Go ove... | [
"Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPut... | [
"bootstrap method for method calls with \"this\" as receiver\n@deprecated since Groovy 2.1.0",
"Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a pro... |
public static base_response add(nitro_service client, gslbsite resource) throws Exception {
gslbsite addresource = new gslbsite();
addresource.sitename = resource.sitename;
addresource.sitetype = resource.sitetype;
addresource.siteipaddress = resource.siteipaddress;
addresource.publicip = resource.publicip;
... | [
"Use this API to add gslbsite."
] | [
"Retrieves state and metrics information for all channels on individual connection.\n@param connectionName the connection name to retrieve channels\n@return list of channels on the connection",
"Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTi... |
public Filter geoSearch(String value) {
GeopositionComparator comp = (GeopositionComparator) prop.getComparator();
double dist = comp.getMaxDistance();
double degrees = DistanceUtils.dist2Degrees(dist, DistanceUtils.EARTH_MEAN_RADIUS_KM * 1000.0);
Shape circle = spatialctx.makeCircle(parsePoint(value), ... | [
"Returns a geoquery."
] | [
"Returns a String summarizing overall accuracy that will print nicely.",
"Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.",
"Write an attribute name.\n\n@param name attribute name",
"Sets the global setting for this ID\n\n@param pathId ID of path\n@par... |
protected PreparedStatement prepareStatement(Connection con,
String sql,
boolean scrollable,
boolean createPreparedStatement,
... | [
"Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the connection to utilize\n@param sql the sql syntax to use when creating the statement.\n@param scrollable determines if the statement will be scrollable.\n@param createPreparedStatement if <code>true</code>, then a\n{@link Prepa... | [
"This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task",
"Obtains a local date in Pax calendar system from the\nera,... |
public static dospolicy[] get(nitro_service service) throws Exception{
dospolicy obj = new dospolicy();
dospolicy[] response = (dospolicy[])obj.get_resources(service);
return response;
} | [
"Use this API to fetch all the dospolicy resources that are configured on netscaler."
] | [
"Returns the base URL of the print servlet.\n\n@param httpServletRequest the request",
"Append data to JSON response.\n@param param\n@param value",
"Create constant name.\n@param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED.\n@return cconstanname as String",
"Parses btch api response to c... |
protected void loadEntries(final StorageAwareResource resource, final ZipInputStream zipIn) throws IOException {
zipIn.getNextEntry();
BufferedInputStream _bufferedInputStream = new BufferedInputStream(zipIn);
this.readContents(resource, _bufferedInputStream);
zipIn.getNextEntry();
BufferedInputStre... | [
"Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries."
] | [
"Delete a license from the repository\n\n@param licName The name of the license to remove",
"Set editable state on an attribute. This needs to also set the state on the associated attributes.\n\n@param attribute attribute for which the editable state needs to be set\n@param editable new editable state",
"Retain... |
@Override
protected void clearReference(EObject obj, EReference ref) {
super.clearReference(obj, ref);
if (obj.eIsSet(ref) && ref.getEType().equals(XtextPackage.Literals.TYPE_REF)) {
INode node = NodeModelUtils.getNode((EObject) obj.eGet(ref));
if (node == null)
obj.eUnset(ref);
}
if (obj.eIsSet(ref)... | [
"We add typeRefs without Nodes on the fly, so we should remove them before relinking."
] | [
"digest message with MD5\n\n@param source message\n@return 32 bit MD5 value (lower case)",
"Read an array of bytes of a specified size.\n\n@param size number of bytes to read\n@return ByteArray instance",
"Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in ... |
public static sslcertlink[] get(nitro_service service) throws Exception{
sslcertlink obj = new sslcertlink();
sslcertlink[] response = (sslcertlink[])obj.get_resources(service);
return response;
} | [
"Use this API to fetch all the sslcertlink resources that are configured on netscaler."
] | [
"Create a patch representing what we actually processed. This may contain some fixed content hashes for removed\nmodules.\n\n@param original the original\n@return the processed patch",
"Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is ... |
public static MediaType binary( MediaType.Type type, String subType ) {
return new MediaType( type, subType, true );
} | [
"Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}"
] | [
"Main method for testing fetching",
"Creates an operation to deploy existing deployment content to the runtime.\n\n@param deployment the deployment to deploy\n\n@return the deploy operation",
"Init the bundle type member variable.\n@return the bundle type of the opened resource.",
"Sets the top padding for al... |
public Object convertJavaFieldToSqlArgValue(Object fieldVal) throws SQLException {
/*
* Limitation here. Some people may want to override the null with their own value in the converter but we
* currently don't allow that. Specifying a default value I guess is a better mechanism.
*/
if (fieldVal == null) {
... | [
"Convert a field value to something suitable to be stored in the database."
] | [
"Parses command-line and checks if metadata is consistent across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException",
"Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given nam... |
public void beforeBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final Method methodSetExecuteBatch;
final Method methodSendBatch;
methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PARAM_TYPE_INTEGER);
... | [
"Try Oracle update batching and call setExecuteBatch or revert to\nJDBC update batching. See 12-2 Update Batching in the Oracle9i\nJDBC Developer's Guide and Reference.\n@param stmt the prepared statement to be used for batching\n@throws PlatformException upon JDBC failure"
] | [
"Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed.",
"Handle the serialization of String, Intege... |
public static void checkDirectory(File directory) {
if (!(directory.exists() || directory.mkdirs())) {
throw new ReportGenerationException(
String.format("Can't create data directory <%s>", directory.getAbsolutePath())
);
}
} | [
"If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory"
] | [
"Load a table configuration in from a text-file reader.\n\n@return A config if any of the fields were set otherwise null if we reach EOF.",
"Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expres... |
public void exceptionShift() {
numExceptional++;
double mag = 0.05 * numExceptional;
if (mag > 1.0) mag = 1.0;
double angle = 2.0 * UtilEjml.PI * (rand.nextDouble() - 0.5) * mag;
performImplicitSingleStep(0, angle, true);
// allow more convergence time
nextExcep... | [
"It is possible for the QR algorithm to get stuck in a loop because of symmetries. This happens\nmore often with larger matrices. By taking a random step it can break the symmetry and finish."
] | [
"Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data",
"Remove all scene objects.",... |
public static appfwprofile_cookieconsistency_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_cookieconsistency_binding obj = new appfwprofile_cookieconsistency_binding();
obj.set_name(name);
appfwprofile_cookieconsistency_binding response[] = (appfwprofile_cookieconsistency_bindin... | [
"Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name ."
] | [
"Performs DBSCAN cluster analysis.\n\n@param points the points to cluster\n@return the list of clusters\n@throws NullArgumentException if the data points are null",
"Makes it possible to uniquify a collection of objects which are normally\nnon-hashable. Alternatively, it lets you define an alternate hash function... |
@Override
@SuppressWarnings("unchecked")
public ChronoZonedDateTime<InternationalFixedDate> zonedDateTime(TemporalAccessor temporal) {
return (ChronoZonedDateTime<InternationalFixedDate>) super.zonedDateTime(temporal);
} | [
"Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time"
] | [
"Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on.",
"Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button",
"This method extracts predecessor data from an MSPDI... |
public void store(Object obj) throws PersistenceBrokerException
{
obj = extractObjectToStore(obj);
// only do something if obj != null
if(obj == null) return;
ClassDescriptor cld = getClassDescriptor(obj.getClass());
/*
if one of the PK fields was null, we assume the... | [
"Store an Object.\n@see org.apache.ojb.broker.PersistenceBroker#store(Object)"
] | [
"Mapping originator.\n\n@param originator the originator\n@return the originator type",
"Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)",
"Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param me... |
private DecompilerSettings getDefaultSettings(File outputDir)
{
DecompilerSettings settings = new DecompilerSettings();
procyonConf.setDecompilerSettings(settings);
settings.setOutputDirectory(outputDir.getPath());
settings.setShowSyntheticMembers(false);
settings.setForceExp... | [
"Default settings set type loader to ClasspathTypeLoader if not set before."
] | [
"return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return",
"Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product",
"Check if this path matches the address path.\nAn addre... |
public void beforeCompletion()
{
// avoid redundant calls
if(beforeCompletionCall) return;
log.info("Method beforeCompletion was called");
int status = Status.STATUS_UNKNOWN;
try
{
JTATxManager mgr = (JTATxManager) getImplementation().getTxManage... | [
"FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to clo... | [
"Assigns retention policy with givenID to the folder.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param folderID id of the folder to assign policy to.\n@return info about created assignment.",
"Creates or returns the instance of the ... |
Map<UUID, UUID> getActivityCodes(Activity activity)
{
Map<UUID, UUID> map = m_activityCodeCache.get(activity);
if (map == null)
{
map = new HashMap<UUID, UUID>();
m_activityCodeCache.put(activity, map);
for (CodeAssignment ca : activity.getCodeAssignment())
{
... | [
"For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs"
] | [
"Returns true if the string is a valid Java full qualified class name.\n\n@param str the string to be examined\n@return true if str is a valid Java Fqcn",
"Read project calendars.",
"Obtain the master partition for a given key\n\n@param key\n@return master partition id",
"Returns the configured bundle, or the... |
protected void calcWorld(Bone bone, int parentId)
{
getWorldMatrix(parentId, mTempMtxB); // WorldMatrix (parent) TempMtxB
mTempMtxB.mul(bone.LocalMatrix); // WorldMatrix = WorldMatrix(parent) * LocalMatrix
bone.WorldMatrix.set(mTempMtxB);
} | [
"Calculates the world matrix based on the local matrix."
] | [
"Adds a procedure definition to this class descriptor.\n\n@param procDef The procedure definition",
"1.0 version of parser is different at simple mapperParser",
"Recursively add indirect subclasses to a class record.\n\n@param directSuperClass\nthe superclass to add (together with its own superclasses)\n@param ... |
Response put(URI uri, InputStream instream, String contentType) {
HttpConnection connection = Http.PUT(uri, contentType);
connection.setRequestBody(instream);
return executeToResponse(connection);
} | [
"Performs a HTTP PUT request, saves an attachment.\n\n@return {@link Response}"
] | [
"sets the initialization method for this descriptor",
"Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0",
"Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The i... |
@SuppressWarnings("rawtypes") public static final Map getMap(Locale locale, String key)
{
ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale);
return ((Map) bundle.getObject(key));
} | [
"Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value"
] | [
"Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder",
"Perform a one-off scan during boot to establish deployment tasks to execute during boot",
"Checks if class package match provided list of action packages\n\n@param class... |
public GVRCursorController findCursorController(GVRControllerType type) {
for (int index = 0, size = cache.size(); index < size; index++)
{
int key = cache.keyAt(index);
GVRCursorController controller = cache.get(key);
if (controller.getControllerType().equals(type)) ... | [
"Get the first controller of a specified type\n@param type controller type to search for\n@return controller found or null if no controllers of the given type"
] | [
"Release the connection back to the pool.\n\n@throws SQLException Never really thrown",
"Test a given date for being easter sunday.\n\nThe method uses the algorithms sometimes cited as Meeus,Jones, Butcher Gregorian algorithm.\nTaken from http://en.wikipedia.org/wiki/Computus\n\n@param date The date to check.\n@r... |
public static base_response add(nitro_service client, responderpolicy resource) throws Exception {
responderpolicy addresource = new responderpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.action = resource.action;
addresource.undefaction = resource.undefaction;
ad... | [
"Use this API to add responderpolicy."
] | [
"Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType id... |
public void visitMethodInsn(int opcode, String owner, String name,
String desc, boolean itf) {
if (mv != null) {
mv.visitMethodInsn(opcode, owner, name, desc, itf);
}
} | [
"Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{... | [
"Read resource assignment baseline values.\n\n@param row result set row",
"Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException",
"Initialization necessary for editing a pro... |
private static Dimension adaptTileDimensions(
final Dimension pixels, final int maxWidth, final int maxHeight) {
return new Dimension(adaptTileDimension(pixels.width, maxWidth),
adaptTileDimension(pixels.height, maxHeight));
} | [
"Adapt the size of the tiles so that we have the same amount of tiles as we would have had with maxWidth\nand maxHeight, but with the smallest tiles as possible."
] | [
"Updates the store definition object and the retention time based on the\nupdated store definition",
"Reads characters until the 'end' character is encountered.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The n... |
private boolean isEqual(FieldDescriptorDef first, FieldDescriptorDef second)
{
return first.getName().equals(second.getName()) &&
first.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN).equals(second.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN)) &&
first.getProperty(Proper... | [
"Tests whether the two field descriptors are equal, i.e. have same name, same column\nand same jdbc-type.\n\n@param first The first field\n@param second The second field\n@return <code>true</code> if they are equal"
] | [
"Append the path to the StringBuilder.\n\n@param result the string builder to add the path to.",
"Returns the foreignkey to the specified table.\n\n@param name The name of the foreignkey\n@param tableName The name of the referenced table\n@return The foreignkey def or <code>null</code> if it does not exist",... |
public void startServer() throws Exception {
if (!externalDatabaseHost) {
try {
this.port = Utils.getSystemPort(Constants.SYS_DB_PORT);
server = Server.createTcpServer("-tcpPort", String.valueOf(port), "-tcpAllowOthers").start();
} catch (SQLException e) {... | [
"Only meant to be called once\n\n@throws Exception exception"
] | [
"Enables a custom response\n\n@param model\n@param custom\n@param path_id\n@param clientUUID\n@return\n@throws Exception",
"EXecutes command to given container returning the inspection object as well. This method does 3 calls to\ndockerhost. Create, Start and Inspect.\n\n@param containerId\nto execute command.",
... |
private String getValueFromProp(final String propValue) {
String value = propValue;
// remove quotes
value = value.trim();
if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) {
value = value.substring(1, value.length() - 1)... | [
"Helper to read a line from the config file.\n@param propValue the property value\n@return the value of the variable set at this line."
] | [
"Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\n@doc.tag type=\"content\"\n@doc.param name=\"attributes\" optional=\"true\" descri... |
public JavadocLink javadocMethodLink(String memberName, Type... types) {
return new JavadocLink("%s#%s(%s)",
getQualifiedName(),
memberName,
(Excerpt) code -> {
String separator = "";
for (Type type : types) {
code.add("%s%s", separator, type.getQualifiedName(... | [
"Returns a source excerpt of a JavaDoc link to a method on this type."
] | [
"Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device",
"Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@pa... |
public static <E> List<E> listify(ObjectMapper mapper, Object source, Class<E> targetElementType) {
return (List<E>) collectify(mapper, source, List.class, targetElementType);
} | [
"Convert an object to a list.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target list element type\n@return list"
] | [
"Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index",
"MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getNa... |
public static MBeanServerConnection getMBeanServerConnection(Process p, boolean startAgent) {
try {
final JMXServiceURL serviceURL = getLocalConnectorAddress(p, startAgent);
final JMXConnector connector = JMXConnectorFactory.connect(serviceURL);
final MBeanServerConnection mb... | [
"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"
] | [
"Adds a slash to a path if it doesn't end with a slash.\n\n@param folderName The path to append a possible slash.\n@return The new, correct path.",
"Converts a Map to an array of objects, adding only those entries whose key is in the nameMapping array.\n\n@param values\nthe Map of values to convert\n@param nameMa... |
public void synchronizeTaskIDToHierarchy()
{
clear();
int currentID = (getByID(Integer.valueOf(0)) == null ? 1 : 0);
for (Task task : m_projectFile.getChildTasks())
{
task.setID(Integer.valueOf(currentID++));
add(task);
currentID = synchroizeTaskIDToHierarchy(task,... | [
"Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarc... | [
"Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity",
"Remove a PropertyChangeListener for a specific property from this node.\nThis functionality has. Please n... |
public static final Object getObject(Locale locale, String key)
{
ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale);
return (bundle.getObject(key));
} | [
"Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value"
] | [
"add converter at given index. The index can be changed during conversion\nif canReorder is true\n\n@param index\n@param converter",
"Use this API to update dbdbprofile resources.",
"Use this API to unset the properties of bridgetable resources.\nProperties that need to be unset are specified in args array.",
... |
public void updateSchema(String migrationPath) {
try {
logger.info("Updating schema... ");
int current_version = 0;
// first check the current schema version
HashMap<String, Object> configuration = getFirstResult("SELECT * FROM " + Constants.DB_TABLE_CONFIGURATIO... | [
"Update database schema\n\n@param migrationPath path to migrations"
] | [
"Evict cached object\n\n@param key\nthe key indexed the cached object to be evicted",
"Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmul... |
public static int removeDuplicateNodeList(List<String> list) {
int originCount = list.size();
// add elements to all, including duplicates
HashSet<String> hs = new LinkedHashSet<String>();
hs.addAll(list);
list.clear();
list.addAll(hs);
return originCount - list... | [
"Removes the duplicate node list.\n\n@param list\nthe list\n@return the int"
] | [
"Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"Draw a rounded rectangular boundary.\n\n@param rect rectangle\n@param color colour\n@param linewidth line width\n@param r radius for rounded corners",
"Inserts an array o... |
public void setAssociation(String collectionRole, Association association) {
if ( associations == null ) {
associations = new HashMap<>();
}
associations.put( collectionRole, association );
} | [
"Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association"
] | [
"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",
"Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code val... |
private boolean isCacheable(PipelineContext context) throws GeomajasException {
VectorLayer layer = context.get(PipelineCode.LAYER_KEY, VectorLayer.class);
return !(layer instanceof VectorLayerLazyFeatureConversionSupport &&
((VectorLayerLazyFeatureConversionSupport) layer).useLazyFeatureConversion());
} | [
"Features are only cacheable when not converted lazily as lazy features are incomplete, it would put detached\nobjects in the cache.\n\n@return true when features are not converted lazily"
] | [
"Performs an efficient update of each columns' norm",
"refresh credentials if CredentialProvider set",
"Use this API to add nsip6 resources.",
"Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.",
"Convert a Throwable into a list containing all of its causes.\n@param t The thro... |
protected Object[] getFieldObjects(Object data) throws SQLException {
Object[] objects = new Object[argFieldTypes.length];
for (int i = 0; i < argFieldTypes.length; i++) {
FieldType fieldType = argFieldTypes[i];
if (fieldType.isAllowGeneratedIdInsert()) {
objects[i] = fieldType.getFieldValueIfNotDefault(d... | [
"Return the array of field objects pulled from the data object."
] | [
"Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .",
"Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if... |
public Iterable<BoxRetentionPolicyAssignment.Info> getFolderAssignments(int limit, String ... fields) {
return this.getAssignments(BoxRetentionPolicyAssignment.TYPE_FOLDER, limit, fields);
} | [
"Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments."
] | [
"Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>",
"Select a List of values from a Matcher using a Collection\nto identify the indices to be selected.\n\n@param self a Matcher\n@param indices a Col... |
public void ifDoesntHaveMemberTag(String template, Properties attributes) throws XDocletException
{
boolean result = false;
if (getCurrentField() != null) {
if (!hasTag(attributes, FOR_FIELD)) {
result = true;
generate(template);
}
... | [
"Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\n@doc.tag type=\"block\"\n@doc.param ... | [
"Adds a submodule to the module.\n\n<P>\nINFO: If the module is promoted, all added submodule will be promoted.\n\n@param submodule Module",
"Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance",
"Add the declarationSRef to the D... |
private Object getValue(FieldType field, byte[] block)
{
Object result = null;
switch (block[0])
{
case 0x07: // Field
{
result = getFieldType(block);
break;
}
case 0x01: // Constant value
{
result = getConstantValue... | [
"Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value"
] | [
"Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories.",
"This method is currently in use only by the SvnCoordinator",
"we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize object... |
private void writeProjectProperties()
{
ProjectProperties properties = m_projectFile.getProjectProperties();
m_plannerProject.setCompany(properties.getCompany());
m_plannerProject.setManager(properties.getManager());
m_plannerProject.setName(getString(properties.getName()));
m_plannerP... | [
"This method writes project properties to a Planner file."
] | [
"Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.",
"Use this API to fetch lbmonitor_binding resources of given names .",
"Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution",
"S... |
private void getMultipleValues(Method method, Object object, Map<String, String> map)
{
try
{
int index = 1;
while (true)
{
Object value = filterValue(method.invoke(object, Integer.valueOf(index)));
if (value != null)
{
map.put... | [
"Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values"
] | [
"Returns the directory of the URL.\n\n@param urlString URL of the file.\n@return The directory string.\n@throws IllegalArgumentException if URL is malformed",
"Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception",
"Returns the compact task records for all tasks... |
public static void popShell() {
ArrayList<CmsShell> shells = SHELL_STACK.get();
if (shells.size() > 0) {
shells.remove(shells.size() - 1);
}
} | [
"Removes top of thread-local shell stack."
] | [
"Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object",
"Calculates the size based constraint width and height if present, otherwise from children sizes.",
"Removes any child object tha... |
public QueryBuilder<T, ID> orderByRaw(String rawSql) {
addOrderBy(new OrderBy(rawSql, (ArgumentHolder[]) null));
return this;
} | [
"Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\"."
] | [
"Performs an inline lower Cholesky decomposition on an inner row-major matrix. Only\nthe lower triangular portion of the matrix is read or written to.\n\n@param T Array containing an inner row-major matrix. Modified.\n@param indexT First index of the inner row-major matrix.\n@param n Number of rows and columns o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.