query stringlengths 74 6.1k | positive listlengths 1 1 | negative listlengths 9 9 |
|---|---|---|
public static void main(String[] args) {
try {
JarRunner runner = new JarRunner(args);
runner.runIfConfigured();
} catch (NumberFormatException e) {
System.err.println("Could not parse number " + e.getMessage());
System.exit(1);
} catch (RuntimeException e) {
System.err.println(e.getMessage());
... | [
"Main executable method of Crawljax CLI.\n\n@param args\nthe arguments."
] | [
"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",
"Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service",
"Returns with an iterable of URIs that points to all elements that are\... |
private void writeCalendar(ProjectCalendar mpxjCalendar, net.sf.mpxj.planner.schema.Calendar plannerCalendar) throws JAXBException
{
//
// Populate basic details
//
plannerCalendar.setId(getIntegerString(mpxjCalendar.getUniqueID()));
plannerCalendar.setName(getString(mpxjCalendar.getNam... | [
"This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors"
] | [
"Check if this request is part of the specified request. This is the case if both requests have equal properties\nand the specified request is asking for the same or more paint operations than this one.\n\n@param request another request\n@return true if the current request is contained in the specified request\n@si... |
public static base_response update(nitro_service client, vpnclientlessaccesspolicy resource) throws Exception {
vpnclientlessaccesspolicy updateresource = new vpnclientlessaccesspolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.profilename = resource.profilename;... | [
"Use this API to update vpnclientlessaccesspolicy."
] | [
"Creates a scatter query from the given user query\n\n@param query the user's query.\n@param numSplits the number of splits to create.",
"Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to out... |
private void checkOrderby(CollectionDescriptorDef collDef, String checkLevel) throws ConstraintException
{
if (CHECKLEVEL_NONE.equals(checkLevel))
{
return;
}
String orderbySpec = collDef.getProperty(PropertyHelper.OJB_PROPERTY_ORDERBY);
if ((orderbySpe... | [
"Checks the orderby attribute.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for orderby is invalid (unknown field or ordering)"
] | [
"Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to",
"Delete a path recursively.\n@param path a Path pointing to a file or a directory that may not exists anymore.\n@throws IOException",
"Returns the screen width in pixels\n\n@param context is th... |
@Override
public EthiopicDate dateYearDay(Era era, int yearOfEra, int dayOfYear) {
return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear);
} | [
"Obtains a local date in Ethiopic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@th... | [
"Sum of the elements.\n\n@param data Data.\n@return Sum(data).",
"Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.",
"Fetch flag resource by Country\n\n@param country Country\n@return int of resource | 0 value if not exists",
"Append the given char as a decimal HT... |
public static base_response unset(nitro_service client, systemuser resource, String[] args) throws Exception{
systemuser unsetresource = new systemuser();
unsetresource.username = resource.username;
return unsetresource.unset_resource(client,args);
} | [
"Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array."
] | [
"Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder.",
"Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.",
"Re... |
public void configure(Configuration pConfig) throws ConfigurationException
{
if (pConfig instanceof PBPoolConfiguration)
{
PBPoolConfiguration conf = (PBPoolConfiguration) pConfig;
this.setMaxActive(conf.getMaxActive());
this.setMaxIdle(conf.getMaxIdle());
... | [
"Read in the configuration properties."
] | [
"Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget.",
"Add the given pair to a given map for obtaining a new map.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original... |
public static Object newInstance(String className) throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
{
return newInstance(getClass(className));
} | [
"Returns a new instance of the class with the given qualified name using the default or\nor a no-arg constructor.\n\n@param className The qualified name of the class to instantiate"
] | [
"Rotate root widget to make it facing to the front of the scene",
"Code common to both XER and database readers to extract\ncurrency format data.\n\n@param row row containing currency data",
"Stores a public key mapping.\n@param original\n@param substitute",
"This method returns the value random variable of t... |
private ModelNode addLocalHost(final ModelNode address, final List<ModelNode> operationList, final String hostName) {
String resolvedHost = hostName != null ? hostName : defaultHostControllerName;
// All further operations should modify the newly added host so the address passed in is updated.
... | [
"Add the operation to add the local host definition."
] | [
"Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date",
"Returns the parameter key of the facet with the given name.\n@param facet the facet's name.\n@return the parameter key for the facet.",
"Use this API to fetch statistics of lbvserver_st... |
private void applyAliases(Map<FieldType, String> aliases)
{
CustomFieldContainer fields = m_project.getCustomFields();
for (Map.Entry<FieldType, String> entry : aliases.entrySet())
{
fields.getCustomField(entry.getKey()).setAlias(entry.getValue());
}
} | [
"Apply aliases to task and resource fields.\n\n@param aliases map of aliases"
] | [
"Adds labels to the item\n\n@param labels\nthe labels to add",
"Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found.",
"Gets the invalid message.\n\n@param key the key\n@return the invalid message",
"Creates a new Box Developer Edition connection... |
private void readRecurringData(ProjectCalendarException bce, Project.Calendars.Calendar.Exceptions.Exception exception)
{
RecurrenceType rt = getRecurrenceType(NumberHelper.getInt(exception.getType()));
if (rt != null)
{
RecurringData rd = new RecurringData();
rd.setStartDate(bce.... | [
"Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception"
] | [
"Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.",
"Use this API to fetch all the vpath resources that are configured on netscaler.",
"Use this API to apply nspbr6.",
"... |
public ItemRequest<Team> addUser(String team) {
String path = String.format("/teams/%s/addUser", team);
return new ItemRequest<Team>(this, Team.class, path, "POST");
} | [
"The user making this call must be a member of the team in order to add others.\nThe user to add must exist in the same organization as the team in order to be added.\nThe user to add can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the added user.\n\n@par... | [
"Extract data for a single resource.\n\n@param row Synchro resource data",
"Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String",
"Validates operation model against the definition and its p... |
private void processCalendars() throws Exception
{
List<Row> rows = getRows("select * from zcalendar where zproject=?", m_projectID);
for (Row row : rows)
{
ProjectCalendar calendar = m_project.addCalendar();
calendar.setUniqueID(row.getInteger("Z_PK"));
calendar.setName(... | [
"Read calendar data."
] | [
"1-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.",
"Get a list of all active server mappings defined for current profile\n\n@return Collection of ServerRedirects",
"This function wires up a SSL Listener with the cyber villians root CA and cert with the correct CNAME for th... |
protected void createDocument() throws ParserConfigurationException
{
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = builderFactory.newDocumentBuilder();
DocumentType doctype = builder.getDOMImplementation().createDocumentType("html", ... | [
"Creates a new empty HTML document tree.\n@throws ParserConfigurationException"
] | [
"Load the entity activating the persistence context execution boundaries\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the... |
public <T> T with( Closure<T> closure ) {
return DefaultGroovyMethods.with( null, closure ) ;
} | [
"Allows the closure to be called for NullObject\n\n@param closure the closure to call on the object\n@return result of calling the closure"
] | [
"Add an URL to the given classloader\n\n@param loader ClassLoader\n@param url URL to add\n@throws IOException I/O Error\n@throws InvocationTargetException Invocation Error\n@throws IllegalArgumentException Illegal Argument\n@throws IllegalAccessException Illegal Access\n@throws SecurityException Security Constraint... |
protected boolean checkExcludePackages(String classPackageName) {
if (excludePackages != null && excludePackages.length > 0) {
WildcardHelper wildcardHelper = new WildcardHelper();
// we really don't care about the results, just the boolean
Map<String, String> matchMap = new HashMap<String, String>();
f... | [
"Checks if provided class package is on the exclude list\n\n@param classPackageName\nname of class package\n@return false if class package is on the {@link #excludePackages} list"
] | [
"judge if an point in the area or not\n\n@param point\n@param area\n@param offsetRatio\n@return",
"Returns the maximum magnitude of the complex numbers\n@param u Array of complex numbers\n@param startU first index to consider in u\n@param length Number of complex numebrs to consider\n@return magnitude",
"Sets t... |
@Override
public void run() {
ExecutorService executorService = Executors.newFixedThreadPool(maxClients);
try {
serverSocket = new ServerSocket(port, maxClients);
while (!shuttingDown) {
try {
Socket socket = serverSocket.accept();
... | [
"Runs the server."
] | [
"Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information",
"Open the given url in default system browser.",
"Sort by time bucket, then backup count, and by compression state.",
"Writes an untagged OK response, with the supplied response code,\nand an opt... |
public static base_response unset(nitro_service client, snmpoption resource, String[] args) throws Exception{
snmpoption unsetresource = new snmpoption();
return unsetresource.unset_resource(client,args);
} | [
"Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array."
] | [
"FIXME Remove this method",
"Registers a BeanNameAutoProxyCreator class that wraps the bean being\nmonitored. The proxy is associated with the PerformanceMonitorInterceptor\nfor the bean, which is created when parsing the methods attribute from\nthe springconfiguration xml file.\n\n@param source An Attribute node... |
public static Document removeTags(Document dom, String tagName) {
NodeList list;
try {
list = XPathHelper.evaluateXpathExpression(dom,
"//" + tagName.toUpperCase());
while (list.getLength() > 0) {
Node sc = list.item(0);
if (s... | [
"Removes all the given tags from the document.\n\n@param dom the document object.\n@param tagName the tag name, examples: script, style, meta\n@return the changed dom."
] | [
"Use this API to add clusternodegroup.",
"This will create a line in the SDEF file for each calendar\nif there are more than 9 calendars, you'll have a big error,\nas USACE numbers them 0-9.\n\n@param records list of ProjectCalendar instances",
"Begin a \"track;\" that is, begin logging at one level deeper.\nCh... |
public int getModifiers() {
MetaMethod getter = getGetter();
MetaMethod setter = getSetter();
if (setter != null && getter == null) return setter.getModifiers();
if (getter != null && setter == null) return getter.getModifiers();
int modifiers = getter.getModifiers() | setter.get... | [
"Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist"
] | [
"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... |
protected boolean intersect(GVRSceneObject.BoundingVolume bv1, GVRSceneObject.BoundingVolume bv2)
{
return (bv1.maxCorner.x >= bv2.minCorner.x) &&
(bv1.maxCorner.y >= bv2.minCorner.y) &&
(bv1.maxCorner.z >= bv2.minCorner.z) &&
(bv1.minCorner.x <= bv2.maxCorne... | [
"Determines whether or not two axially aligned bounding boxes in\nthe same coordinate space intersect.\n@param bv1 first bounding volume to test.\n@param bv2 second bounding volume to test.\n@return true if the boxes intersect, false if not."
] | [
"Populates a resource.\n\n@param resource resource instance\n@param record MPX record\n@throws MPXJException",
"Helper. Current transaction is committed in some cases.",
"Use this API to add appfwjsoncontenttype resources.",
"Get the cached entry or null if no valid cached entry is found.",
"Process the sta... |
public static Boolean areCoordinatesWithinThreshold(Tuple2<Double, Double> point1, Tuple2<Double, Double> point2) {
return getDistanceBetweenCoordinates(point1, point2) < COORDINATE_THRESHOLD;
} | [
"Whether or not points are within some threshold.\n@param point1 Point 1\n@param point2 Point 2\n@return True or false"
] | [
"Removes CRs but returns LFs",
"Handles incoming Send Data Request. Send Data request are used\nto acknowledge or cancel failed messages.\n@param incomingMessage the request message to process.",
"Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a ... |
private int calculateRowHeaderMaxWidth(DJCrosstabColumn crosstabColumn) {
int auxWidth = 0;
boolean firstTime = true;
List<DJCrosstabColumn> auxList = new ArrayList<DJCrosstabColumn>(djcross.getColumns());
Collections.reverse(auxList);
for (DJCrosstabColumn col : auxList) {
if (col.equals(crosstabColumn)){... | [
"The max possible width can be calculated doing the sum of of the inner cells and its totals\n@param crosstabColumn\n@return"
] | [
"Find all methods on classes under scanBase that are annotated with annotationClass.\n\n@param scanBase Package to scan recursively, in dot notation (ie: org.jrugged...)\n@param annotationClass Class of the annotation to search for\n@return Set<Method> The set of all @{java.lang.reflect.Method}s having the an... |
static void cleanup(final Resource resource) {
synchronized (resource) {
for (final Resource.ResourceEntry entry : resource.getChildren(SUBSYSTEM)) {
resource.removeChild(entry.getPathElement());
}
for (final Resource.ResourceEntry entry : resource.getChildren... | [
"Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up"
] | [
"Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type\n\n@param <T> The type\n@param beanManager the current manager\n@param type the AnnotatedType to use\n@return An Enterprise Web Bean",
"Returns a sampling of the source at the specified line and column... |
public static int getMpxField(int value)
{
int result = 0;
if (value >= 0 && value < MPXJ_MPX_ARRAY.length)
{
result = MPXJ_MPX_ARRAY[value];
}
return (result);
} | [
"Retrieve the integer value used to represent a task field in an\nMPX file.\n\n@param value MPXJ task field value\n@return MPX field value"
] | [
"A convenience method for creating an immutable sorted map.\n\n@param self a SortedMap\n@return an immutable SortedMap\n@see java.util.Collections#unmodifiableSortedMap(java.util.SortedMap)\n@since 1.0",
"Adds the given reference to the list of references that should still be\nserialized, and returns the RDF reso... |
private String getPropertyLabel(PropertyIdValue propertyIdValue) {
PropertyRecord propertyRecord = this.propertyRecords
.get(propertyIdValue);
if (propertyRecord == null || propertyRecord.propertyDocument == null) {
return propertyIdValue.getId();
} else {
return getLabel(propertyIdValue, propertyRecord... | [
"Returns a string that should be used as a label for the given property.\n\n@param propertyIdValue\nthe property to label\n@return the label"
] | [
"Check if the given class represents an array of primitives,\ni.e. boolean, byte, char, short, int, long, float, or double.\n@param clazz the class to check\n@return whether the given class is a primitive array class",
"splits a string into a list of strings. Trims the results and ignores empty strings",
"Term... |
public CollectionValuedMap<K, V> deltaClone() {
CollectionValuedMap<K, V> result = new CollectionValuedMap<K, V>(null, cf, true);
result.map = new DeltaMap<K, Collection<V>>(this.map);
return result;
} | [
"Creates a \"delta clone\" of this Map, where only the differences are\nrepresented."
] | [
"Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object",
"Gets the Chi Square distance between two normalized histograms.\n\n@param histogram1 Histogram.\n@param histogram2 Histogram.\n@return The Chi Square distanc... |
public Story storyOfPath(Configuration configuration, String storyPath) {
String storyAsText = configuration.storyLoader().loadStoryAsText(storyPath);
return configuration.storyParser().parseStory(storyAsText, storyPath);
} | [
"Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story"
] | [
"Upload a photo from an InputStream.\n\n@param in\n@param metaData\n@return photoId or ticketId\n@throws FlickrException",
"Delete a database for a given path and userId.\n@param appInfo the info for this application\n@param serviceName the name of the associated service\n@param clientFactory the associated facto... |
public ParallelTaskBuilder setReplacementVarMapNodeSpecific(
Map<String, StrStrMap> replacementVarMapNodeSpecific) {
this.replacementVarMapNodeSpecific.clear();
this.replacementVarMapNodeSpecific
.putAll(replacementVarMapNodeSpecific);
this.requestReplacementType = R... | [
"Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder"
] | [
"Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions",
"Stops the server. This method does nothing if the server is stopped already.",
"Use this API to fetch nstrafficdomain_binding resource of given name .",
"Use this API to update cmpparameter.",
"Use this AP... |
public final void setOrientation(int orientation) {
mOrientation = orientation;
mOrientationState = getOrientationStateFromParam(mOrientation);
invalidate();
if (mOuterAdapter != null) {
mOuterAdapter.setOrientation(mOrientation);
}
} | [
"Sets orientation of loopbar\n\n@param orientation int value of orientation. Must be one of {@link Orientation}"
] | [
"Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.",
"Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.",
"Returns the HTTP status t... |
public static ResourceField getMpxjField(int value)
{
ResourceField result = null;
if (value >= 0 && value < MPX_MPXJ_ARRAY.length)
{
result = MPX_MPXJ_ARRAY[value];
}
return (result);
} | [
"Retrieve an instance of the ResourceField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return instance of this class"
] | [
"Creates the adapter for the target database.",
"Returns whether or not the host editor service is available\n\n@return\n@throws Exception",
"Generate a string with all selected checkboxes separated with ','.\n\n@return a string with all selected checkboxes",
"Quits server by closing server socket and closing... |
public static String blur(int radius, int sigma) {
if (radius < 1) {
throw new IllegalArgumentException("Radius must be greater than zero.");
}
if (radius > 150) {
throw new IllegalArgumentException("Radius must be lower or equal than 150.");
}
if (sigma < 0) {
throw new IllegalArg... | [
"This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function."
] | [
"Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return",
"Log a warning for the given operation at the provid... |
public <T extends CanvasWriter> T getWriter(Class<T> type, OauthToken oauthToken, Boolean serializeNulls) {
LOG.debug("Factory call to instantiate class: " + type.getName());
RestClient restClient = new RefreshingRestClient();
@SuppressWarnings("unchecked")
Class<T> concreteClass = (Cla... | [
"Get a writer implementation to push data into Canvas while being able to control the behavior of blank values.\nIf the serializeNulls parameter is set to true, this writer will serialize null fields in the JSON being\nsent to Canvas. This is required if you want to explicitly blank out a value that is currently se... | [
"Get a store definition from the given list of store definitions\n\n@param list A list of store definitions\n@param name The name of the store\n@return The store definition",
"Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote targe... |
public static tunneltrafficpolicy get(nitro_service service, String name) throws Exception{
tunneltrafficpolicy obj = new tunneltrafficpolicy();
obj.set_name(name);
tunneltrafficpolicy response = (tunneltrafficpolicy) obj.get_resource(service);
return response;
} | [
"Use this API to fetch tunneltrafficpolicy resource of given name ."
] | [
"Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}",
"Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of senti... |
public void putBeanDeployments(BeanDeploymentArchiveMapping bdaMapping) {
for (Entry<BeanDeploymentArchive, BeanManagerImpl> entry : bdaMapping.getBdaToBeanManagerMap().entrySet()) {
beanDeploymentArchives.put(entry.getKey(), entry.getValue());
addBeanManager(entry.getValue());
}... | [
"Add sub-deployment units to the container\n\n@param bdaMapping"
] | [
"This method retrieves a byte array of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return byte array containing required data",
"Upload a photo from an InputStream.\n\n@param in\n@param met... |
public static callhome get(nitro_service service) throws Exception{
callhome obj = new callhome();
callhome[] response = (callhome[])obj.get_resources(service);
return response[0];
} | [
"Use this API to fetch all the callhome resources that are configured on netscaler."
] | [
"With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.",
"Computes the inverse permutat... |
public boolean detectSonyMylo() {
if ((userAgent.indexOf(manuSony) != -1)
&& ((userAgent.indexOf(qtembedded) != -1) || (userAgent.indexOf(mylocom2) != -1))) {
return true;
}
return false;
} | [
"Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device"
] | [
"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",
"Returns the supplied string with any trailing '\\n' removed.",
"Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. ... |
public void setup( int numSamples , int sampleSize ) {
mean = new double[ sampleSize ];
A.reshape(numSamples,sampleSize,false);
sampleIndex = 0;
numComponents = -1;
} | [
"Must be called before any other functions. Declares and sets up internal data structures.\n\n@param numSamples Number of samples that will be processed.\n@param sampleSize Number of elements in each sample."
] | [
"Gets fully-qualified name of a table or sequence.\n\n@param localName local table name.\n@param params params.\n@return fully-qualified table name.",
"Called when a payload thread has ended. This also notifies the poller to poll once again.",
"Edit which photos are in the photoset.\n\n@param photosetId\nThe... |
private void setup(DMatrixRBlock orig) {
blockLength = orig.blockLength;
dataW.blockLength = blockLength;
dataWTA.blockLength = blockLength;
this.dataA = orig;
A.original = dataA;
int l = Math.min(blockLength,orig.numCols);
dataW.reshape(orig.numRows,l,false);
... | [
"Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig"
] | [
"Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception",
"Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return",
"Returns the instance.\n@retu... |
private void retrieveNextPage() {
if (this.pageSize < Long.MAX_VALUE || this.itemLimit < Long.MAX_VALUE) {
this.request.query("limit", Math.min(this.pageSize, this.itemLimit - this.count));
} else {
this.request.query("limit", null);
}
ResultBodyCollection<T> page... | [
"Retrieve the next page and store the continuation token, the new data, and any IOException that may occur.\n\nNote that it is safe to pass null values to {@link CollectionRequest#query(String, Object)}. Method\n{@link com.asana.Client#request(com.asana.requests.Request)} will not include such options."
] | [
"Compute singular values and U and V at the same time",
"Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id",
"Gets a design document from the database.\n\n@param id the design document id (optio... |
public static Region create(String name, String label) {
Region region = VALUES_BY_NAME.get(name.toLowerCase());
if (region != null) {
return region;
} else {
return new Region(name, label);
}
} | [
"Creates a region from a name and a label.\n\n@param name the uniquely identifiable name of the region\n@param label the label of the region\n@return the newly created region"
] | [
"Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context",
"Builds the mapping table.",
"Look up all recorded playback state information.\n\n@return the pla... |
public void setKnots(int[] x, int[] y, byte[] types, int offset, int count) {
numKnots = count;
xKnots = new int[numKnots];
yKnots = new int[numKnots];
knotTypes = new byte[numKnots];
System.arraycopy(x, offset, xKnots, 0, numKnots);
System.arraycopy(y, offset, yKnots, 0, numKnots);
System.arraycopy(types... | [
"Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots"
] | [
"Use this API to clear gslbldnsentries resources.",
"return null if the operation has no params to validate",
"Parses int value and returns the provided default if the value can't be parsed.\n@param value the int to parse.\n@param defaultValue the default value.\n@return the parsed int, or the default value if ... |
private YearQuarter with(int newYear, Quarter newQuarter) {
if (year == newYear && quarter == newQuarter) {
return this;
}
return new YearQuarter(newYear, newQuarter);
} | [
"Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null"
] | [
"Parse a string representation of a Boolean value.\n\n@param value string representation\n@return Boolean value",
"checks whether the specified Object obj is read-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false",
"Determines tota... |
public void joinRequest(String groupId, String message, boolean acceptRules) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_JOIN_REQUEST);
parameters.put("group_id", groupId);
parameters.put("message", message)... | [
"Request to join a group.\n\nNote: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to\nacceptRules) prior to making the join request.\n\n@param groupId\n- groupId parameter\n@param message\n- (required) message to group ad... | [
"Run a task periodically, with a callback.\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@param callback\nCallback that lets you cancel the task. {@code null} mea... |
private RekordboxAnlz.BeatGridTag findTag(RekordboxAnlz anlzFile) {
for (RekordboxAnlz.TaggedSection section : anlzFile.sections()) {
if (section.body() instanceof RekordboxAnlz.BeatGridTag) {
return (RekordboxAnlz.BeatGridTag) section.body();
}
}
throw ne... | [
"Helper function to find the beat grid section in a rekordbox track analysis file.\n\n@param anlzFile the file that was downloaded from the player\n\n@return the section containing the beat grid"
] | [
"Checks whether this notification is from CleverTap.\n\n@param extras The payload from the GCM intent\n@return See {@link NotificationInfo}",
"Notify all shutdown listeners that the shutdown completed.",
"Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDiges... |
public static <X> ServiceTypeLoader<X> load(Class<X> serviceType) {
return load(serviceType, Thread.currentThread().getContextClassLoader());
} | [
"Locates the services in the context classloader of the current thread.\n\n@param serviceType the type of the services to locate\n@param <X> the type of the service\n@return the service type loader"
] | [
"Checks if this has the passed suffix\n\n@param suffix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0",
"Read an optional Date value form a JSON value.\n@param val the JSON value that should represent the Date as long value in a string.\n@return the Date from the JSON or null if reading... |
protected Path normalizePath(final Path parent, final String path) {
return parent.resolve(path).toAbsolutePath().normalize();
} | [
"Resolves the path relative to the parent and normalizes it.\n\n@param parent the parent path\n@param path the path\n\n@return the normalized path"
] | [
"Add the list with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The list of all packages to add.",
"Read resource assignment baseline values.\n\n@param row result set row",
"Wrapper functions with no bounds checking are used to access matrix internals",
"Configures the lo... |
public void onSplashScreenCreated(GVRSceneObject splashScreen) {
GVRTransform transform = splashScreen.getTransform();
transform.setPosition(0, 0, DEFAULT_SPLASH_Z);
} | [
"Override this method to change the default splash screen size or\nposition.\n\nThis method will be called <em>before</em> {@link #onInit(GVRContext)\nonInit()} and before the normal render pipeline starts up. In particular,\nthis means that any {@linkplain GVRAnimation animations} will not start\nuntil the first {... | [
"Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version",
"Get the number of views, comments and favorites on a collection for a given date.\n\n@param date\n(Require... |
public static LocalDateTime getDateFromFloatingPointDate(LocalDateTime referenceDate, double floatingPointDate) {
if(referenceDate == null) {
return null;
}
Duration duration = Duration.ofSeconds(Math.round(floatingPointDate * SECONDS_PER_DAY));
return referenceDate.plus(duration);
} | [
"Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@... | [
"Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data",
"Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources.",
"Returns the default privacy level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.f... |
private void deliverLostAnnouncement(final DeviceAnnouncement announcement) {
for (final DeviceAnnouncementListener listener : getDeviceAnnouncementListeners()) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
try {
... | [
"Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device"
] | [
"Stops the scavenger.",
"Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID",
"Fetches a list of available photo licenses for Flickr.\n\nThis method does not require authentication.\n\n@return A collection of License objects\n@throws FlickrException",
"Use th... |
public void setDefault() {
try {
TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
String phone = telephonyManager.getLine1Number();
if (phone != null && !phone.isEmpty()) {
this.setNumber(phone);
... | [
"Set default value\nWill try to retrieve phone number from device"
] | [
"Stops the processing and prints the final time.",
"Read calendar data.",
"Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.",
"Use this API to update lbsipparameters.",
"Shows error dialog, manually supplying details instead of getting them from an exception stack t... |
public static vpath get(nitro_service service, String name) throws Exception{
vpath obj = new vpath();
obj.set_name(name);
vpath response = (vpath) obj.get_resource(service);
return response;
} | [
"Use this API to fetch vpath resource of given name ."
] | [
"Destroys dependent instance\n\n@param instance\n@return true if the instance was destroyed, false otherwise",
"Create the required services according to the server setup\n\n@param config Service configuration\n@return Services map",
"Finds the next valid line of words in the stream and extracts them.\n\n@retur... |
public ItemRequest<Workspace> findById(String workspace) {
String path = String.format("/workspaces/%s", workspace);
return new ItemRequest<Workspace>(this, Workspace.class, path, "GET");
} | [
"Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object"
] | [
"Handle a start time change.\n\n@param event the change event",
"Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining... |
public ItemRequest<CustomField> updateEnumOption(String enumOption) {
String path = String.format("/enum_options/%s", enumOption);
return new ItemRequest<CustomField>(this, CustomField.class, path, "PUT");
} | [
"Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object"
] | [
"Only match if the TypeReference is at the specified location within the file.",
"Get a bean from the application context. Returns null if the bean does not exist.\n@param name name of bean\n@param requiredType type of bean\n@return the bean or null",
"Load a JSON file from the application's \"asset\" directory... |
private void initializeLogging() {
// Since logging is static, make sure this is done only once even if
// multiple clients are created (e.g., during tests)
if (consoleAppender != null) {
return;
}
consoleAppender = new ConsoleAppender();
consoleAppender.setLayout(new PatternLayout(LOG_PATTERN));
cons... | [
"Sets up Log4J to write log messages to the console. Low-priority messages\nare logged to stdout while high-priority messages go to stderr."
] | [
"Sets the value to a default.",
"Send a packet to the target player telling it to load the specified track from the specified source player.\n\n@param targetPlayer the device number of the player that you want to have load a track\n@param rekordboxId the identifier of a track within the source player's rekordbox ... |
static String createStatsType(Set<String> statsItems, String sortType,
MtasFunctionParserFunction functionParser) {
String statsType = STATS_BASIC;
for (String statsItem : statsItems) {
if (STATS_FULL_TYPES.contains(statsItem)) {
statsType = STATS_FULL;
break;
} else if (STATS_... | [
"Creates the stats type.\n\n@param statsItems\nthe stats items\n@param sortType\nthe sort type\n@param functionParser\nthe function parser\n@return the string"
] | [
"returns an Array with an Objects PK VALUES, with any java-to-sql\nFieldConversion applied. If the Object is a Proxy or a VirtualProxy NO\nconversion is necessary.\n\n@param objectOrProxy\n@return Object[]\n@throws PersistenceBrokerException",
"Transforms a length according to the current transformation matrix.",... |
public static base_responses update(nitro_service client, ntpserver resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
ntpserver updateresources[] = new ntpserver[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new n... | [
"Use this API to update ntpserver resources."
] | [
"Get a list of referrers from a given domain to a collection.\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 domain\n(Required) The domain to re... |
public ModelNode buildRequest() throws OperationFormatException {
ModelNode address = request.get(Util.ADDRESS);
if(prefix.isEmpty()) {
address.setEmptyList();
} else {
Iterator<Node> iterator = prefix.iterator();
while (iterator.hasNext()) {
... | [
"Makes sure that the operation name and the address have been set and returns a ModelNode\nrepresenting the operation request."
] | [
"Move the animation frame counter forward.\n\n@return boolean specifying if animation should continue or if loopCount has been fulfilled.",
"If a and b are not null, returns a new duration of a + b.\nIf a is null and b is not null, returns b.\nIf a is not null and b is null, returns a.\nIf a and b are null, retur... |
public static Method findSetMethod(Field field, DatabaseType databaseType, boolean throwExceptions)
throws IllegalArgumentException {
Method fieldSetMethod = findMethodFromNames(field, false, throwExceptions,
methodFromField(field, "set", databaseType, true), methodFromField(field, "set", databaseType, false))... | [
"Find and return the appropriate setter method for field.\n\n@return Set method or null (or throws IllegalArgumentException) if none found."
] | [
"Normalizes the name so it can be used as Maven artifactId or groupId.",
"Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.",
"Read calendar data from a PEP file.",
"Add a r... |
public CompletableFuture<Void> stop() {
numPendingStopRequests.incrementAndGet();
return startStop.stop().thenRun(numPendingStopRequests::decrementAndGet);
} | [
"Stops the server. This method does nothing if the server is stopped already."
] | [
"This implementation returns whether the underlying asset exists.",
"Read JdbcConnectionDescriptors from this InputStream.\n\n@see #mergeConnectionRepository",
"Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value",
"Calls the specified Stitch fu... |
void commitTempFile(File temp) throws ConfigurationPersistenceException {
if (!doneBootup.get()) {
return;
}
if (!interactionPolicy.isReadOnly()) {
FilePersistenceUtils.moveTempFileToMain(temp, mainFile);
} else {
FilePersistenceUtils.moveTempFileToMai... | [
"Commit the contents of the given temp file to either the main file, or, if we are not persisting\nto the main file, to the .last file in the configuration history\n@param temp temp file containing the latest configuration. Will not be {@code null}\n@throws ConfigurationPersistenceException"
] | [
"Returns the total number of elements which are true.\n@return number of elements which are set to true",
"Creates an immutable singleton instance.\n\n@param key\n@param value\n@return",
"Deletes specified entity clearing all its properties and deleting all its outgoing links.\n\n@param entity to delete.",
"F... |
public static nslimitidentifier_binding get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_binding obj = new nslimitidentifier_binding();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier_binding response = (nslimitidentifier_binding) obj.get_resource(service);
retu... | [
"Use this API to fetch nslimitidentifier_binding resource of given name ."
] | [
"Remove a named object",
"Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException",
"Configures a worker pool for the converter.\n\n@param corePoolSize The core pool size of the work... |
private boolean isAbandoned(final SubmittedPrintJob printJob) {
final long duration = ThreadPoolJobManager.this.jobQueue.timeSinceLastStatusCheck(
printJob.getEntry().getReferenceId());
final boolean abandoned =
duration > TimeUnit.SECONDS.toMillis(ThreadPoolJobManager.th... | [
"If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?"
] | [
"Add sub-deployment units to the container\n\n@param bdaMapping",
"Set source url for a server\n\n@param newUrl new URL\n@param id Server ID",
"Returns the instance.\n@return InterceptorFactory",
"Tests the string edit distance function.",
"This is a convenience method to add a default derived\ncalendar to ... |
public StatementBuilder withQualifierValue(PropertyIdValue propertyIdValue,
Value value) {
withQualifier(factory.getValueSnak(propertyIdValue, value));
return getThis();
} | [
"Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction"
] | [
"Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency",
"Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name ... |
protected void calcLocal(Bone bone, int parentId)
{
if (parentId < 0)
{
bone.LocalMatrix.set(bone.WorldMatrix);
return;
}
/*
* WorldMatrix = WorldMatrix(parent) * LocalMatrix
* LocalMatrix = INVERSE[ WorldMatrix(parent) ] * WorldMatrix
*/
getWorldMatri... | [
"Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone."
] | [
"This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.",
"Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping... |
protected final boolean isDurationValid() {
if (isValidEndTypeForPattern()) {
switch (getEndType()) {
case DATE:
return (getStart().getTime() < (getSeriesEndDate().getTime() + DAY_IN_MILLIS));
case TIMES:
return getOccurrences(... | [
"Checks if the duration option is valid.\n\nNOTE: This does NOT check, if too many events are specified.\n\n@return a flag, indicating if the duration option is valid."
] | [
"Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>",
"Stops the background data synchronization thread and releases the local client.",
"Only meant to be called once\n\n@throws Exception exception",
"Return a replica of this i... |
private void markDateInvocation() {
_updatePreviousDates = !_dateGivenInGroup;
_dateGivenInGroup = true;
_dateGroup.setDateInferred(false);
if(_firstDateInvocationInGroup) {
// if a time has been given within the current date group,
// we capture the current time before resetting the cale... | [
"ensures that the first invocation of a date seeking\nrule is captured"
] | [
"Create the environment as specified by @Template or\narq.extension.ce-cube.openshift.template.* properties.\n<p>\nIn the future, this might be handled by starting application Cube\nobjects, e.g. CreateCube(application), StartCube(application)\n<p>\nNeeds to fire before the containers are started.",
"Forks off a ... |
@Override public void process(MPPReader reader, ProjectFile file, DirectoryEntry root) throws MPXJException, IOException
{
try
{
populateMemberData(reader, file, root);
processProjectProperties();
if (!reader.getReadPropertiesOnly())
{
processCalendarData(... | [
"This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException"
] | [
"Returns the modules paths used on the command line.\n\n@return the paths separated by the {@link File#pathSeparator path separator}",
"Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array.",
"Generate a set of datetime patterns to accommodate variation... |
public String generateTaskId() {
final String uuid = UUID.randomUUID().toString().substring(0, 12);
int size = this.targetHostMeta == null ? 0 : this.targetHostMeta
.getHosts().size();
return "PT_" + size + "_"
+ PcDateUtils.getNowDateTimeStrConciseNoZone() + "_" ... | [
"Gen job id.\n\n@return the string"
] | [
"Registers an image to the images cache, so that it can be captured by the build-info proxy.\n\n@param imageId\n@param imageTag\n@param targetRepo\n@param buildInfoId\n@throws IOException",
"Processes the template for all index descriptors of the current class definition.\n\n@param template The templ... |
@SuppressWarnings("unused")
private void setTextureNumber(int type, int number) {
m_numTextures.put(AiTextureType.fromRawValue(type), number);
} | [
"This method is used by JNI, do not call or modify.\n\n@param type the type\n@param number the number"
] | [
"Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException",
"Scroll to specific page. The final page might be different from the requested one if the\nrequested page is larger than the last page. To process the scrolling by pages\nLayou... |
@JmxOperation(description = "Forcefully invoke the log cleaning")
public void cleanLogs() {
synchronized(lock) {
try {
for(Environment environment: environments.values()) {
environment.cleanLog();
}
} catch(DatabaseException e) {
... | [
"Forceful cleanup the logs"
] | [
"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",
"Set value for given object field.\n\n@param object object to be updated\n@param field field name... |
public List<MapRow> readBlocks(Class<? extends BlockReader> readerClass) throws IOException
{
BlockReader reader;
try
{
reader = readerClass.getConstructor(StreamReader.class).newInstance(this);
}
catch (Exception ex)
{
throw new RuntimeException(ex);
}
... | [
"Read a list of fixed size blocks using an instance of the supplied reader class.\n\n@param readerClass reader class\n@return list of blocks"
] | [
"Creates and start an engine representing the node named as the given parameter.\n\n@param name\nname of the node, as present in the configuration (case sensitive)\n@param handler\ncan be null. A set of callbacks hooked on different engine life cycle events.\n@return an object allowing to stop the engine.",
"Use ... |
@SuppressWarnings("unchecked")
public static Type getSuperclassTypeParameter(Class<?> subclass) {
Type superclass = subclass.getGenericSuperclass();
if (superclass instanceof Class) {
throw new RuntimeException("Missing type parameter.");
}
return ((ParameterizedType) superclass).getActualTypeArguments()[0]... | [
"Gets type from super class's type parameter."
] | [
"Use this API to add onlinkipv6prefix.",
"Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.",
"Send Request Node info message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when... |
protected Element createTextElement(String data, float width)
{
Element el = createTextElement(width);
Text text = doc.createTextNode(data);
el.appendChild(text);
return el;
} | [
"Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element"
] | [
"Use this API to fetch all the auditmessages resources that are configured on netscaler.",
"Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node",
"Set text parameters from properties\n@param context Valid Android {@link Context}\n@param properties JSON text pr... |
public void flush() throws IOException {
if (unflushed.get() == 0) return;
synchronized (lock) {
if (logger.isTraceEnabled()) {
logger.debug("Flushing log '" + name + "' last flushed: " + getLastFlushedTime() + " current time: " + System
.currentTimeM... | [
"Flush this log file to the physical disk\n\n@throws IOException file read error"
] | [
"Type variables are not supported.\n\n@param value\n@return the type",
"Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.",
"Copies entries in the source map to target map.\n\n@param source source map\n@param target target... |
public static double HighAccuracyComplemented(double x) {
double[] R =
{
1.25331413731550025, 0.421369229288054473, 0.236652382913560671,
0.162377660896867462, 0.123131963257932296, 0.0990285964717319214,
0.08276628650136917... | [
"High-accuracy Complementary normal distribution function.\n\n@param x Value.\n@return Result."
] | [
"Returns the total number of elements which are true.\n@return number of elements which are set to true",
"Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to conv... |
public void delete() {
BoxAPIConnection api = this.getAPI();
URL url = COLLABORATION_URL_TEMPLATE.build(api.getBaseURL(), this.getID());
BoxAPIRequest request = new BoxAPIRequest(api, url, "DELETE");
BoxAPIResponse response = request.send();
response.disconnect();
} | [
"Deletes this collaboration."
] | [
"Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object",
"Return true only if the MethodCallExpression represents a method call for the specified method name\n@param methodCall - the AST MethodCallExpression\n@param... |
private void SetNewViewpoint(String url) {
Viewpoint vp = null;
// get the name without the '#' sign
String vpURL = url.substring(1, url.length());
for (Viewpoint viewpoint : viewpoints) {
if ( viewpoint.getName().equalsIgnoreCase(vpURL) ) {
vp = viewpoint;
... | [
"end AnchorImplementation class"
] | [
"Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder",
"Discard the changes.",
"Bessel function of order 0.\n\n@param x Value.\n@return J0 value.",
"Opens file for editing.\n\n@param currentCh... |
private void updateMax(MtasRBTreeNode n, MtasRBTreeNode c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
}
} | [
"Update max.\n\n@param n the n\n@param c the c"
] | [
"Print the class's attributes fd",
"Controls whether we report that we are playing. This will only have an impact when we are sending status and\nbeat packets.\n\n@param playing {@code true} if we should seem to be playing",
"Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that ... |
public void stop() {
if (accelerometer != null) {
queue.clear();
sensorManager.unregisterListener(this, accelerometer);
sensorManager = null;
accelerometer = null;
}
} | [
"Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware."
] | [
"This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.... |
private void userInfoInit() {
boolean first = true;
userId = null;
userLocale = null;
userName = null;
userOrganization = null;
userDivision = null;
if (null != authentications) {
for (Authentication auth : authentications) {
userId = combine(userId, auth.getUserId());
userName = combine(userNa... | [
"Calculate UserInfo strings."
] | [
"Adds a new Token to the end of the linked list",
"Cancels all the pending & running requests and releases all the dispatchers.",
"Initializes module enablement.\n\n@see ModuleEnablement",
"Initializes the upper left component. Does not show the mode switch.",
"Converts a parameter map to the parameter stri... |
boolean attachmentsAreStructurallyDifferent( List<AttachmentModel> firstAttachments, List<AttachmentModel> otherAttachments ) {
if( firstAttachments.size() != otherAttachments.size() ) {
return true;
}
for( int i = 0; i < firstAttachments.size(); i++ ) {
if( attachmentIs... | [
"Attachments are only structurally different if one step has an inline attachment\nand the other step either has no inline attachment or the inline attachment is\ndifferent."
] | [
"Append the text at the end of the File, using a specified encoding.\n\n@param file a File\n@param text the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0",
"Adds the offset.\n\n@param start the start\n@param end the end",
... |
public static void replaceBadXmlCharactersBySpace(char[] cbuf, int off, int len) {
for (int i = off; i < off + len; i++) {
if (isBadXmlCharacter(cbuf[i])) {
cbuf[i] = '\u0020';
}
}
} | [
"Replace bad xml charactes in given array by space\n\n@param cbuf buffer to replace in\n@param off Offset from which to start reading characters\n@param len Number of characters to be replaced"
] | [
"Print work units.\n\n@param value TimeUnit instance\n@return work units value",
"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.",
"Add an additional binary type",
"Return the nu... |
public Rectangle getTextSize(String text, Font font) {
template.saveState();
// get the font
DefaultFontMapper mapper = new DefaultFontMapper();
BaseFont bf = mapper.awtToPdf(font);
template.setFontAndSize(bf, font.getSize());
// calculate text width and height
float textWidth = template.getEffectiveStrin... | [
"Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box"
] | [
"Retrieves the cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry",
"Mutate the gradient.\n@param amount the amount in the range zero to one",
"Use this API to fetch lbvserver resource of given name .",
"of the unbound provider (",
"Reconstructs a number ... |
public void setRegularExpression(String regularExpression) {
if (regularExpression != null)
this.regularExpression = Pattern.compile(regularExpression);
else
this.regularExpression = null;
} | [
"Filter the URI based on a regular expression.\nCan be combined with an additional file-extension filter."
] | [
"Removes all the given tags from the document.\n\n@param dom the document object.\n@param tagName the tag name, examples: script, style, meta\n@return the changed dom.",
"Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation... |
private LocatorSelectionStrategy getLocatorSelectionStrategy(String locatorSelectionStrategy) {
if (null == locatorSelectionStrategy) {
return locatorSelectionStrategyMap.get(DEFAULT_STRATEGY).getInstance();
}
if (LOG.isLoggable(Level.FINE)) {
LOG.log(Level.FINE, "Strate... | [
"If the String argument locatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected, else it remains unchanged.\n@param locatorSelectionStrategy"
] | [
"Adds a license to an artifact if the license exist into the database\n\n@param gavc String\n@param licenseId String",
"Processes the template for all class definitions.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error o... |
synchronized int storeObject(JSONObject obj, Table table) {
if (!this.belowMemThreshold()) {
Logger.v("There is not enough space left on the device to store data, data discarded");
return DB_OUT_OF_MEMORY_ERROR;
}
final String tableName = table.getName();
Cursor... | [
"Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR"
] | [
"Closes the transactor node by removing its node in Zookeeper",
"Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException",
"Iterates through the given CharSequence line by line, splitting each line ... |
public boolean isValidStore(String name) {
readLock.lock();
try {
if(this.storeNames.contains(name)) {
return true;
}
return false;
} finally {
readLock.unlock();
}
} | [
"Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\... | [
"Checks if there's exactly one option that exists among all possible opts.\n\n@param options OptionSet to checked\n@param opt1 Possible required option to check\n@param opt2 Possible required option to check\n@throws VoldemortException",
"Run a task periodically, for a set number of times.\n\n@param task\nTask to... |
public <A extends Collection<? super ResultT>> A into(final A target) {
forEach(new Block<ResultT>() {
@Override
public void apply(@Nonnull final ResultT t) {
target.add(t);
}
});
return target;
} | [
"Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target"
] | [
"Sets the top padding character for all cells in the table.\n@param paddingTopChar new padding character, ignored if null\n@return this to allow chaining",
"Sets a custom configuration attribute.\n@param attributeName the attribute name. Names starting with\n{@link #JDBC_PROPERTY_NAME_PREFIX} will be used (withou... |
private List<Map<Class<? extends Annotation>, ParameterInfo<?>>> createParametersInfos(Method method) {
if (method.getParameterTypes().length <= 2) {
return Collections.emptyList();
}
List<Map<Class<? extends Annotation>, ParameterInfo<?>>> result = new ArrayList<>();
Type[] parameterTypes = meth... | [
"Gathers all parameters' annotations for the given method, starting from the third parameter."
] | [
"Save the values to the bundle descriptor.\n@throws CmsException thrown if saving fails.",
"Function to perform forward activation",
"Delete old jobs.\n\n@param checkTimeThreshold threshold for last check time\n@return the number of jobs deleted",
"Returns all the retention policies with specified filters.\n@... |
public static vpnvserver_authenticationsamlpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationsamlpolicy_binding obj = new vpnvserver_authenticationsamlpolicy_binding();
obj.set_name(name);
vpnvserver_authenticationsamlpolicy_binding response[] = (vpnvserver_authen... | [
"Use this API to fetch vpnvserver_authenticationsamlpolicy_binding resources of given name ."
] | [
"Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile",
"Remove a list of stores from the session\n\nFirst commit all entries for these stores and then cleanup resources\n\n@param storeNameToRemove List of stores to be removed from the current\nstreaming session",... |
public Map<String, T> parseMap(JsonParser jsonParser) throws IOException {
HashMap<String, T> map = new HashMap<String, T>();
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String key = jsonParser.getText();
jsonParser.nextToken();
if (jsonParser.getCurrentT... | [
"Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token."
] | [
"Get result report.\n\n@param reportURI the URI of the report\n@return the result report.",
"All the attributes needed either by the processors for each datasource row or by the jasper template.\n\n@param attributes the attributes.",
"Deletes this BoxStoragePolicyAssignment.",
"Validate ipv4 address with regu... |
public String readSnippet(String name) {
String path = CmsStringUtil.joinPaths(
m_context.getSetupBean().getWebAppRfsPath(),
CmsSetupBean.FOLDER_SETUP,
"html",
name);
try (InputStream stream = new FileInputStream(path)) {
byte[] data = CmsFile... | [
"Reads an HTML snippet with the given name.\n\n@return the HTML data"
] | [
"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.",
"Sets the location value as string.\n\n@param value the string representation of the lo... |
@SuppressWarnings("WeakerAccess")
public static SlotReference getSlotReference(DataReference dataReference) {
return getSlotReference(dataReference.player, dataReference.slot);
} | [
"Get a unique reference to the media slot on the network from which the specified data was loaded.\n\n@param dataReference the data whose media slot is of interest\n\n@return the instance that will always represent the slot associated with the specified data"
] | [
"Invite a user to an enterprise.\n@param api the API connection to use for the request.\n@param userLogin the login of the user to invite.\n@param enterpriseID the ID of the enterprise to invite the user to.\n@return the invite info.",
"Given a resource field name, this method returns the resource field number.\n... |
public void close() {
boolean isPreviouslyClosed = isClosed.getAndSet(true);
if (isPreviouslyClosed) {
return;
}
AdminClient client;
while ((client = clientCache.poll()) != null) {
client.close();
}
} | [
"close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateException"
] | [
"Wraps the specified object pool for connections as a DataSource.\n\n@param jcd the OJB connection descriptor for the pool to be wrapped\n@param connectionPool the connection pool to be wrapped\n@return a DataSource attached to the connection pool.\nConnections will be wrapped using DBCP PoolGuard, that will not al... |
public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) {
Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices);
Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance);
} | [
"Initialize the container for the current application deployment\n\n@param deploymentManager\n@param deploymentServices"
] | [
"Try to delegate the responsibility of sending slops to master\n\n@param node The node that slop should eventually be pushed to\n@return true if master accept the responsibility; false if master does\nnot accept",
"Writes the results of the processing to a file.",
"This is a method to stream slops to \"slop\" s... |
public List<String> getModuleVersions(final String name, final FiltersHolder filters) {
final List<String> versions = repositoryHandler.getModuleVersions(name, filters);
if (versions.isEmpty()) {
throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
... | [
"Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>"
] | [
"Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.",
"Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the textu... |
public static String constructUrl(final HttpServerExchange exchange, final String path) {
final HeaderMap headers = exchange.getRequestHeaders();
String host = headers.getFirst(HOST);
String protocol = exchange.getConnection().getSslSessionInfo() != null ? "https" : "http";
return proto... | [
"Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.\n\n@param exchange - The current HttpExchange\n@param path - The path to include in the constructed URL\n@return The constructed URL"
] | [
"If the burst mode is on, emit the particles only once.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps",
"Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSc... |
private void checkAllEnvelopes(PersistenceBroker broker)
{
Iterator iter = ((List) mvOrderOfIds.clone()).iterator();
while(iter.hasNext())
{
ObjectEnvelope mod = (ObjectEnvelope) mhtObjectEnvelopes.get(iter.next());
// only non transient objects should be perfor... | [
"Mark objects no longer available in collection for delete and new objects for insert.\n\n@param broker the PB to persist all objects"
] | [
"Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException",
"compares two AST nodes",
"Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+... |
private void countCoordinates(int xCoord, int yCoord,
ItemDocument itemDocument) {
for (String siteKey : itemDocument.getSiteLinks().keySet()) {
Integer count = this.siteCounts.get(siteKey);
if (count == null) {
this.siteCounts.put(siteKey, 1);
} else {
this.siteCounts.put(siteKey, count + 1);
... | [
"Counts a single pair of coordinates in all datasets.\n\n@param xCoord\n@param yCoord\n@param itemDocument"
] | [
"Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException",
"This method validates all relationships for a task, removing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.