query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public List<EndpointOverride> getPaths(int profileId, String clientUUID, String[] filters) throws Exception { ArrayList<EndpointOverride> properties = new ArrayList<EndpointOverride>(); PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlServ...
[ "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception" ]
[ "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Returns true if all pixels in the array have the same color", "Sets a custom configuration attribute.\n@param attributeName the attribute name. Names starting with\n{@link #JDBC_PROP...
public boolean removeAll(Collection<?> collection) { boolean result = false; synchronized (mLock) { Iterator<?> it; if (mOriginalValues != null) { it = mOriginalValues.iterator(); } else { it = mObjects.iterator(); } ...
[ "Removes the specified objects.\n\n@param collection The collection to remove." ]
[ "Specifies the timeout for a network request.\n\n@param timeout The timeout for a network request.\n@param unit The time unit of the specified timeout.\n@return This builder instance.", "Deploys application reading resources from specified classpath location\n\n@param applicationName to configure in cluster...
public ServerRedirect addServerMapping(String sourceHost, String destinationHost, String hostHeader) { JSONObject response = null; ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>(); params.add(new BasicNameValuePair("srcUrl", sourceHost)); params.add(new BasicNa...
[ "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect" ]
[ "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data", "Get a property as a object or throw exception.\n\n@param key the property name", "Counts the number of elements in A which are true\n@param A input ...
private Video generateRandomVideo() { Video video = new Video(); configureFavoriteStatus(video); configureLikeStatus(video); configureLiveStatus(video); configureTitleAndThumbnail(video); return video; }
[ "Create a random video.\n\n@return random video." ]
[ "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Executes the given supplier within the context of a read lock.\n\n@param <E> The result type.\n@param sup The supplier.\n@return The result of {@link Supplier#get()}.", "delete of files more than 1 day old", "Set the timeout for idle c...
public EventBus emit(Enum<?> event, Object... args) { return _emitWithOnceBus(eventContext(event, args)); }
[ "Emit an enum event with parameters supplied.\n\nThis will invoke all {@link SimpleEventListener} bound to the specific\nenum value and all {@link SimpleEventListener} bound to the enum class\ngiven the listeners has the matching argument list.\n\nFor example, given the following enum definition:\n\n```java\npublic...
[ "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix", "Create a new instance of a single input function from an operator character\n@param op Which operation\n@param input I...
public static final long parseDuration(String durationStr, long defaultValue) { durationStr = durationStr.toLowerCase().trim(); Matcher matcher = DURATION_NUMBER_AND_UNIT_PATTERN.matcher(durationStr); long millis = 0; boolean matched = false; while (matcher.find()) { ...
[ "Parses a duration and returns the corresponding number of milliseconds.\n\nDurations consist of a space-separated list of components of the form {number}{time unit},\nfor example 1d 5m. The available units are d (days), h (hours), m (months), s (seconds), ms (milliseconds).<p>\n\n@param durationStr the duration st...
[ "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance", "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\...
public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding(); obj.set_name(name); vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_re...
[ "Use this API to fetch vpnvserver_vpnsessionpolicy_binding resources of given name ." ]
[ "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set...
protected static void statistics(int from, int to) { // check that primes contain no accidental errors for (int i=0; i<primeCapacities.length-1; i++) { if (primeCapacities[i] >= primeCapacities[i+1]) throw new RuntimeException("primes are unsorted or contain duplicates; detected at "+i+"@"+primeCapacities[i]); ...
[ "Tests correctness." ]
[ "Use this API to fetch all the nsconfig resources that are configured on netscaler.", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter e...
public static String toXml(DeploymentDescriptor descriptor) { try { Marshaller marshaller = getContext().createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); marshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, "http://www.jboss.org/...
[ "Serializes descriptor instance to XML\n@param descriptor descriptor to be serialized\n@return xml representation of descriptor as string" ]
[ "Use this API to update nsrpcnode resources.", "Unregister all MBeans", "Use this API to fetch clusternodegroup_binding resource of given name .", "Sets the top padding for all cells in the row.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Get the error messag...
public static Boolean compareMultipleClientConfigAvro(String configAvro1, String configAvro2) { Map<String, Properties> mapStoreToProps1 = readMultipleClientConfigAvro(configAvro1); Map<String, Properties> mapStoreToProps2 = readMultipleClientConfigAvro(configAvro2); Set<String> keySet1 = mapSto...
[ "Compares two avro strings which contains multiple store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content" ]
[ "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException", "Use this API to add gslbservice resources.", "defines the KEY in the parent report parameters map where to get the subreport ...
public static AccumuloClient getClient(FluoConfiguration config) { return Accumulo.newClient().to(config.getAccumuloInstance(), config.getAccumuloZookeepers()) .as(config.getAccumuloUser(), config.getAccumuloPassword()).build(); }
[ "Creates Accumulo connector given FluoConfiguration" ]
[ "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest impleme...
public Task<Void> registerWithEmail(@NonNull final String email, @NonNull final String password) { return dispatcher.dispatchTask( new Callable<Void>() { @Override public Void call() { registerWithEmailInternal(email, password); return null; } })...
[ "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registra...
[ "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Unlock the given region. Does not report failures.", "Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler.", "Fixed length fancy formatting for doubles. If possible decimal notat...
public Metadata getMetadata(String templateName) { String scope = Metadata.scopeBasedOnType(templateName); return this.getMetadata(templateName, scope); }
[ "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server." ]
[ "Is the transport secured by a JAX-WS property", "Helper xml start tag writer\n\n@param value the output stream to use in writing", "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values", "Creates a descrip...
public double nonNormalizedTreeDist(LblTree t1, LblTree t2) { init(t1, t2); STR = new int[size1][size2]; computeOptimalStrategy(); return computeDistUsingStrArray(it1, it2); }
[ "Computes the tree edit distance between trees t1 and t2.\n\n@param t1\n@param t2\n@return tree edit distance between trees t1 and t2" ]
[ "Returns a source excerpt of the type parameters of this type, including angle brackets.\nAlways an empty string if the type class is not generic.\n\n<p>e.g. {@code <N, C>}", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "Checks the ...
@Override public V get(Object key) { // key could be not in original or in deltaMap // key could be not in original but in deltaMap // key could be in original but removed from deltaMap // key could be in original but mapped to something else in deltaMap V deltaResult = deltaMap.get(key); ...
[ "This may cost twice what it would in the original Map.\n\n@param key key whose associated value is to be returned.\n@return the value to which this map maps the specified key, or\n<tt>null</tt> if the map contains no mapping for this key." ]
[ "If credentials are incorrect or not provided for Basic Auth, then Android\nmay throw this exception when an HTTP 401 is received. A separate exception\nis thrown for proxy authentication errors. Checking for this response and\nreturning the proper status.\n@param ex the exception raised from Android\n@return HTTP ...
public static String getAt(GString text, int index) { return (String) getAt(text.toString(), index); }
[ "Support the subscript operator for GString.\n\n@param text a GString\n@param index the index of the Character to get\n@return the Character at the given index\n@since 2.3.7" ]
[ "Print a class's relations", "Gets all the enterprise events that occurred within a specified date range.\n@param api the API connection to use.\n@param after the lower bound on the timestamp of the events returned.\n@param before the upper bound on the timestamp of the events returned.\n@param types an ...
private String getSubQuerySQL(Query subQuery) { ClassDescriptor cld = getRoot().cld.getRepository().getDescriptorFor(subQuery.getSearchClass()); String sql; if (subQuery instanceof QueryBySQL) { sql = ((QueryBySQL) subQuery).getSql(); } else ...
[ "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria" ]
[ "Returns whether this subnet or address has alphabetic digits when printed.\n\nNote that this method does not indicate whether any address contained within this subnet has alphabetic digits,\nonly whether the subnet itself when printed has alphabetic digits.\n\n@return whether the section has alphabetic digits when...
public static <T> ServiceFuture<T> fromResponse(final Observable<ServiceResponse<T>> observable, final ServiceCallback<T> callback) { final ServiceFuture<T> serviceFuture = new ServiceFuture<>(); serviceFuture.subscription = observable .last() .subscribe(new Action1<Servi...
[ "Creates a ServiceCall from an observable object and a callback.\n\n@param observable the observable to create from\n@param callback the callback to call when events happen\n@param <T> the type of the response\n@return the created ServiceCall" ]
[ "Runs the record linkage process.", "Set the pattern scheme to either \"by weekday\" or \"by day of month\".\n@param isByWeekDay flag, indicating if the pattern \"by weekday\" should be set.\n@param fireChange flag, indicating if a value change event should be fired.", "Set an enterprise cost value.\n\n@param i...
protected ValueContainer[] getNonKeyValues(PersistenceBroker broker, ClassDescriptor cld, Object obj) throws PersistenceBrokerException { return broker.serviceBrokerHelper().getNonKeyRwValues(cld, obj); }
[ "returns an Array with an Objects NON-PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values" ]
[ "use parseJsonResponse instead", "For recovery from the latest consistent snapshot, we should clean up the\nold files from the previous backup set, else we will fill the disk with\nuseless log files\n\n@param backupDir", "This is a temporary measure until we have a type-safe solution for\nretrieving serializers...
public List<TableProperty> getEditableColumns(CmsMessageBundleEditorTypes.EditMode mode) { return m_editorState.get(mode).getEditableColumns(); }
[ "Returns the editable columns for the provided edit mode.\n@param mode the edit mode.\n@return the editable columns for the provided edit mode." ]
[ "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Extract resource type from a ...
protected void consumeChar(ImapRequestLineReader request, char expected) throws ProtocolException { char consumed = request.consume(); if (consumed != expected) { throw new ProtocolException("Expected:'" + expected + "' found:'" + consumed + '\''); } }
[ "Consumes the next character in the request, checking that it matches the\nexpected one. This method should be used when the" ]
[ "Executes the given side effecting function on each pixel.\n\n@param fn a function that accepts 3 parameters - the x,y coordinate and the pixel at that coordinate", "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."...
public void applyToBackground(View view) { if (mColorInt != 0) { view.setBackgroundColor(mColorInt); } else if (mColorRes != -1) { view.setBackgroundResource(mColorRes); } }
[ "set the textColor of the ColorHolder to a view\n\n@param view" ]
[ "Convert a document List into arrays storing the data features and labels.\n\n@param document\nTraining documents\n@return A Pair, where the first element is an int[][][] representing the\ndata and the second element is an int[] representing the labels", "Converts the paged list.\n\n@param uList the resource list...
public String setClassification(String classificationType) { Metadata metadata = new Metadata().add(Metadata.CLASSIFICATION_KEY, classificationType); Metadata classification = null; try { classification = this.createMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY, "enterprise", metada...
[ "Attempts to add classification to a file. If classification already exists then do update.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type on the file." ]
[ "refresh credentials if CredentialProvider set", "Set new front facing rotation\n@param rotation", "Use this API to unset the properties of sslcertkey resources.\nProperties that need to be unset are specified in args array.", "Convert the Phoenix representation of a finish date time into a Date instance.\n\n...
private Renderer recycle(View convertView, T content) { Renderer renderer = (Renderer) convertView.getTag(); renderer.onRecycle(content); return renderer; }
[ "Recycles the Renderer getting it from the tag associated to the renderer root view. This view\nis not used with RecyclerView widget.\n\n@param convertView that contains the tag.\n@param content to be updated in the recycled renderer.\n@return a recycled renderer." ]
[ "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Extract the generic return type from the given method.\n@param method the method to check the return type for\n@param source the source class/interface defining the generic parameter types\n@param typeIndex the index of the ty...
public ConverterServerBuilder processTimeout(long processTimeout, TimeUnit timeUnit) { assertNumericArgument(processTimeout, false); this.processTimeout = timeUnit.toMillis(processTimeout); return this; }
[ "Returns the specified process time out in milliseconds.\n\n@return The process time out in milliseconds." ]
[ "Use this API to fetch servicegroupbindings resource of given name .", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the follo...
public static filterglobal_filterpolicy_binding[] get(nitro_service service) throws Exception{ filterglobal_filterpolicy_binding obj = new filterglobal_filterpolicy_binding(); filterglobal_filterpolicy_binding response[] = (filterglobal_filterpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a filterglobal_filterpolicy_binding resources." ]
[ "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution", "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Da...
public static DeploymentReflectionIndex create() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(ServerPermission.CREATE_DEPLOYMENT_REFLECTION_INDEX); } return new DeploymentReflectionIndex(); }
[ "Construct a new instance.\n\n@return the new instance" ]
[ "Decode the String from Base64 into a byte array.\n\n@param value the string to be decoded\n@return the decoded bytes as an array\n@since 1.0", "Modifies the specified mode and length arrays to combine adjacent modes of the same type, returning the updated index point.", "this callback is invoked after an Objec...
void decodeContentType(String rawLine) { int slash = rawLine.indexOf('/'); if (slash == -1) { // if (DEBUG) getLogger().debug("decoding ... no slash found"); return; } else { primaryType = rawLine.substring(0, slash).trim(); } int semico...
[ "Decode a content Type header line into types and parameters pairs" ]
[ "Search for rectangles which have the same width and x position, and\nwhich join together vertically and merge them together to reduce the\nnumber of rectangles needed to describe a symbol.", "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its...
private ClassDescriptor getRealClassDescriptor(ClassDescriptor aCld, Object anObj) { ClassDescriptor result; if(aCld.getClassOfObject() == ProxyHelper.getRealClass(anObj)) { result = aCld; } else { result = aCld.getRepository().getDe...
[ "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned" ]
[ "Scales the brightness of a pixel.", "Use this API to fetch all the sslcipher resources that are configured on netscaler.", "Returns the complete definition of a custom field's metadata.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Start timing an operatio...
public static MatchInfo fromUri(final URI uri, final HttpMethod method) { int newPort = uri.getPort(); if (newPort < 0) { try { newPort = uri.toURL().getDefaultPort(); } catch (MalformedURLException | IllegalArgumentException e) { newPort = ANY_POR...
[ "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method" ]
[ "Set the diffuse light intensity.\n\nThis designates the color of the diffuse reflection.\nIt is multiplied by the material diffuse color to derive\nthe hue of the diffuse reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code diffuse_intensity} to ...
public String invokeOperation(String operationName, Map<String, String[]> parameterMap) throws JMException, UnsupportedEncodingException { MBeanOperationInfo operationInfo = getOperationInfo(operationName); MBeanOperationInvoker invoker = createMBeanOperationInvoker(mBeanServer, objectName, oper...
[ "Invoke an operation on an MBean by name.\nNote that only basic data types are supported for parameter values.\n@param operationName the operation name (can be URL-encoded).\n@param parameterMap the {@link Map} of parameter names and value arrays.\n@return the returned value from the operation.\n@throws JMException...
[ "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Returns flag whos...
public static base_response delete(nitro_service client, String username) throws Exception { systemuser deleteresource = new systemuser(); deleteresource.username = username; return deleteresource.delete_resource(client); }
[ "Use this API to delete systemuser of given name." ]
[ "Gets a Map of attributes from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attributes as a {@link HashMap}, or null if it was not found.", "This method retrieves a double value from a String instance.\nIt returns zero by d...
public boolean perform(Run<?, ?> build, Launcher launcher, TaskListener listener, EnvVars env, FilePath workDir, FilePath tempDir) throws InterruptedException, IOException { listener.getLogger().println("Jenkins Artifactory Plugin version: " + ActionableHelper.getArtifactoryPluginVersion()); ...
[ "Used by Pipeline jobs only" ]
[ "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}", "Adds a set of tests based on pattern matching.", "This method extracts candidate elements from the current DOM tree in the browser, based on\nthe crawl tags defined by the user.\n\n@param currentState th...
public static void append(File file, Object text) throws IOException { Writer writer = null; try { writer = new FileWriter(file, true); InvokerHelper.write(writer, text); writer.flush(); Writer temp = writer; writer = null; temp.cl...
[ "Append the text at the end of the File.\n\n@param file a File\n@param text the text to append at the end of the File\n@throws IOException if an IOException occurs.\n@since 1.0" ]
[ "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "Gets a s...
public static String chomp(String s) { if(s.length() == 0) return s; int l_1 = s.length() - 1; if (s.charAt(l_1) == '\n') { return s.substring(0, l_1); } return s; }
[ "Returns the supplied string with any trailing '\\n' removed." ]
[ "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on", "All the attributes needed either by the processors for each datasource row or by the jasper template.\n\n@param attributes the attributes.", "Processes the template for all reference definitions of the current class definition...
public boolean canUpdateServer(ServerIdentity server) { if (!serverGroupName.equals(server.getServerGroupName()) || !servers.contains(server)) { throw DomainControllerLogger.HOST_CONTROLLER_LOGGER.unknownServer(server); } if (!parent.canChildProceed()) return false; ...
[ "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif the update should be cancelled\n\n@throws IllegalStateException if this policy is not expecting a request\nto update the...
[ "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "Creates an Indexa...
public void check(ModelDef modelDef, String checkLevel) throws ConstraintException { ensureReferencedKeys(modelDef, checkLevel); checkReferenceForeignkeys(modelDef, checkLevel); checkCollectionForeignkeys(modelDef, checkLevel); checkKeyModifications(modelDef, checkLevel); }
[ "Checks the given model.\n\n@param modelDef The model\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated" ]
[ "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Returns a new color with a new value of the specified HSL\ncomponent.", "Installs a remoting stream server for a domain instance\n@param serviceTarget the service target to install the services into\n@param endpointName the ...
public static void symmLowerToFull( DMatrixRMaj A ) { if( A.numRows != A.numCols ) throw new MatrixDimensionException("Must be a square matrix"); final int cols = A.numCols; for (int row = 0; row < A.numRows; row++) { for (int col = row+1; col < cols; col++) { ...
[ "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix" ]
[ "Use this API to fetch all the locationfile resources that are configured on netscaler.", "Returns the precedence of the specified operator. Non-operator's will\nreceive -1 or a GroovyBugError, depending on your preference.", "Tell a device to become tempo master.\n\n@param deviceNumber the device we want to t...
private String getDatatypeLabel(DatatypeIdValue datatype) { if (datatype.getIri() == null) { // TODO should be redundant once the // JSON parsing works return "Unknown"; } switch (datatype.getIri()) { case DatatypeIdValue.DT_COMMONS_MEDIA: return "Commons media"; case DatatypeIdValue.DT_GLOB...
[ "Returns an English label for a given datatype.\n\n@param datatype\nthe datatype to label\n@return the label" ]
[ "Implements getAll by delegating to get.", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection.", "Given a status update from a CDJ, find the metadata for the tr...
private Set<Annotation> getFieldAnnotations(final Class<?> clazz) { try { return new LinkedHashSet<Annotation>(asList(clazz.getDeclaredField(propertyName).getAnnotations())); } catch (final NoSuchFieldException e) { if (clazz.getSuperclass() != null) { return getFieldAnnotations(clazz.getSupercl...
[ "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return" ]
[ "Fire an event and notify observers that belong to this module.\n@param eventType\n@param event\n@param qualifiers", "and class as property", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y ...
public List<String> scan() { try { JarFile jar = new JarFile(jarURL.getFile()); try { List<String> result = new ArrayList<>(); Enumeration<JarEntry> en = jar.entries(); while (en.hasMoreElements()) { JarEntry entry = en....
[ "Scans the jar file and returns the paths that match the includes and excludes.\n\n@return A List of paths\n@throws An IllegalStateException when an I/O error occurs in reading the jar file." ]
[ "Record a prepare operation.\n\n@param preparedOperation the prepared operation", "Adds a new cell to the current grid\n@param cell the td component", "Return a replica of this instance with the quality value of the given MediaType.\n@return the same instance if the given MediaType doesn't have a quality value,...
private void setNsid() throws FlickrException { if (username != null && !username.equals("")) { Auth auth = null; if (authStore != null) { auth = authStore.retrieve(username); // assuming FileAuthStore is enhanced else need to // keep in user-level files....
[ "Check local saved copy first ??. If Auth by username is available, then we will not need to make the API call.\n\n@throws FlickrException" ]
[ "Adds an option to the Jvm options\n\n@param value the option to add", "End building the prepared script, adding a return value statement\n@param value the value to return\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance", "Updates the file metadata.\n...
private void clearDeckPreview(TrackMetadataUpdate update) { if (previewHotCache.remove(DeckReference.getDeckReference(update.player, 0)) != null) { deliverWaveformPreviewUpdate(update.player, null); } }
[ "We have received an update that invalidates the waveform preview for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means...
[ "Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the patch as a {@link JsonPatch}", "Creates a spin wrapper for a data input. T...
private void writeCalendar(ProjectCalendar record) throws IOException { // // Test used to ensure that we don't write the default calendar used for the "Unassigned" resource // if (record.getParent() == null || record.getResource() != null) { m_buffer.setLength(0); if...
[ "Write a calendar.\n\n@param record calendar instance\n@throws IOException" ]
[ "Converts an object to an object, with squiggly filters applied.\n\n@param mapper the object mapper\n@param source the source to convert\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a se...
protected String generateCacheKey( CmsObject cms, String targetSiteRoot, String detailPagePart, String absoluteLink) { return cms.getRequestContext().getSiteRoot() + ":" + targetSiteRoot + ":" + detailPagePart + absoluteLink; }
[ "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key" ]
[ "Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder", "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth se...
public void abort() { URL abortURL = this.sessionInfo.getSessionEndpoints().getAbortEndpoint(); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), abortURL, HttpMethod.DELETE); request.send(); }
[ "Abort an upload session, discarding any chunks that were uploaded to it." ]
[ "Get the label distance..\n\n@param settings Parameters for rendering the scalebar.", "Shut down actor system force.", "Get result of one of the task that belongs to this task's task group.\n\n@param key the task key\n@param <T> the actual type of the task result\n@return the task result, null will be returned ...
public static void updatePathTable(String columnName, Object newData, int path_id) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + ...
[ "Updates a path table value for column columnName\n\n@param columnName name of the column to update\n@param newData new content to set\n@param path_id ID of the path to update" ]
[ "Waits until all pending operations are complete and closes this repository.\n\n@param failureCauseSupplier the {@link Supplier} that creates a new {@link CentralDogmaException}\nwhich will be used to fail the operations issued after this method is called", "Updates the image information.", "Returns list of fil...
private static void dumpTree(PrintWriter pw, DirectoryEntry dir, String prefix, boolean showData, boolean hex, String indent) throws Exception { long byteCount; for (Iterator<Entry> iter = dir.getEntries(); iter.hasNext();) { Entry entry = iter.next(); if (entry instanceof Direct...
[ "This method recursively descends the directory structure, dumping\ndetails of any files it finds to the output file.\n\n@param pw Output PrintWriter\n@param dir DirectoryEntry to dump\n@param prefix prefix used to identify path to this object\n@param showData flag indicating if data is dumped, or just structure\n@...
[ "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test.", "Dump the buffer contents to a file\n@param file\n@throws IOException", "Shuffle an array.\n\n@param array Array.\n@param seed Random seed.", "Check whether the delegate type implements or...
public void setBaselineFinishText(int baselineNumber, String value) { set(selectField(TaskFieldLists.BASELINE_FINISHES, baselineNumber), value); }
[ "Sets the baseline finish text value.\n\n@param baselineNumber baseline number\n@param value baseline finish text value" ]
[ "Convert a drawable object into a Bitmap.\n@param drawable Drawable to extract a Bitmap from.\n@return A Bitmap created from the drawable parameter.", "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n...
private List<Row> getTable(String name) { List<Row> result = m_tables.get(name); if (result == null) { result = Collections.emptyList(); } return result; }
[ "Retrieve table data, return an empty result set if no table data is present.\n\n@param name table name\n@return table data" ]
[ "Stores the gathered usage statistics about property uses to a CSV file.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Locks a file.\n\n@param expiresAt expiration date of the lock.\n@param isDownloadPrevented is downloading of file prevented when lo...
public void registerComponent(java.awt.Component c) { unregisterComponent(c); if (recognizerAbstractClass == null) { hmDragGestureRecognizers.put(c, dragSource.createDefaultDragGestureRecognizer(c, dragWorker.getAcceptableActions(c), ...
[ "add a Component to this Worker. After the call dragging is enabled for this\nComponent.\n@param c the Component to register" ]
[ "Writes all auxiliary triples that have been buffered recently. This\nincludes OWL property restrictions but it also includes any auxiliary\ntriples required by complex values that were used in snaks.\n\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Get the hours difference", "S...
public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding(); obj.set_labelname(labelname); cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_b...
[ "Use this API to fetch cmppolicylabel_policybinding_binding resources of given name ." ]
[ "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list", "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native ...
public static base_response add(nitro_service client, locationfile resource) throws Exception { locationfile addresource = new locationfile(); addresource.Locationfile = resource.Locationfile; addresource.format = resource.format; return addresource.add_resource(client); }
[ "Use this API to add locationfile." ]
[ "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "Creates a new immutable set that consists of given elements.\n\n@param elements the g...
public static CharSequence formatDuration(Context context, ReadableDuration readableDuration) { Resources res = context.getResources(); Duration duration = readableDuration.toDuration(); final int hours = (int) duration.getStandardHours(); if (hours != 0) { return res.getQua...
[ "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 millise...
[ "Find the user by their email address.\n\nThis method does not require authentication.\n\n@param email\nThe email address\n@return The User\n@throws FlickrException", "Writes back hints file.", "Returns the JRDesignGroup for the DJGroup passed\n@param jd\n@param layoutManager\n@param group\n@return", "we can'...
public void setSpeed(float newValue) { if (newValue < 0) newValue = 0; this.pitch.setValue( newValue ); this.speed.setValue( newValue ); }
[ "Assign float value to inputOutput SFFloat field named speed.\nNote that our implementation with ExoPlayer that pitch and speed will be set to the same value.\n@param newValue" ]
[ "Support the range subscript operator for String\n\n@param text a String\n@param range a Range\n@return a substring corresponding to the Range\n@since 1.0", "Given a binary expression corresponding to an assignment, will check that the type of the RHS matches one\nof the possible setters and if not, throw a type...
public static Set<Annotation> filterInterceptorBindings(BeanManagerImpl beanManager, Collection<Annotation> annotations) { Set<Annotation> interceptorBindings = new InterceptorBindingSet(beanManager); for (Annotation annotation : annotations) { if (beanManager.isInterceptorBinding(annotation...
[ "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return" ]
[ "Searches the variables layers, top to bottom, for given name, and returns if found; null otherwise.\n\nIf maxDepth is set to {@link Variables#SEARCH_ALL_LAYERS}, then search all layers.", "Registers an image to be captured by the build-info proxy.\n\n@param imageTag\n@param host\n@param targetRepo\n@param buildI...
public synchronized void cleanWaitTaskQueue() { for (ParallelTask task : waitQ) { task.setState(ParallelTaskState.COMPLETED_WITH_ERROR); task.getTaskErrorMetas().add( new TaskErrorMeta(TaskErrorType.USER_CANCELED, "NA")); logger.info( ...
[ "Clean wait task queue." ]
[ "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Adjusts the day in the provided month, that it fits the specified week day.\nIf there's no match for that provided month, the next possible month is checked.\n\n@param date the date to adjust, with th...
private String formatRate(Rate value) { String result = null; if (value != null) { StringBuilder buffer = new StringBuilder(m_formats.getCurrencyFormat().format(value.getAmount())); buffer.append("/"); buffer.append(formatTimeUnit(value.getUnits())); result = buf...
[ "This method is called to format a rate.\n\n@param value rate value\n@return formatted rate" ]
[ "Convert from Hadoop Text to Bytes", "Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>", "Returns a OkHttpClient that ignores SSL cert errors\n@return", "Return the TransactionManager of the external app", "Gets a list of s...
protected void appendList(StringBuilder sql, List<?> list, String init, String sep) { boolean first = true; for (Object s : list) { if (first) { sql.append(init); } else { sql.append(sep); } sql.append(s); firs...
[ "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added b...
[ "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Gets all checked widgets in the group\n@return list of checked widgets", "Returns the latest change events, and clears ...
@Override public DMatrixRMaj getU(DMatrixRMaj U , boolean transpose , boolean compact ) { U = handleU(U, transpose, compact,m,n,min); CommonOps_DDRM.setIdentity(U); for( int i = 0; i < m; i++ ) u[i] = 0; for( int j = min-1; j >= 0; j-- ) { u[j] = 1; for( int...
[ "Returns the orthogonal U matrix.\n\n@param U If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix." ]
[ "This method takes the textual version of a relation type\nand returns an appropriate class instance. Note that unrecognised\nvalues will cause this method to return null.\n\n@param locale target locale\n@param type text version of the relation type\n@return RelationType instance", "This is a generic function for...
public static int getIbanLength(final CountryCode countryCode) { final BbanStructure structure = getBbanStructure(countryCode); return COUNTRY_CODE_LENGTH + CHECK_DIGIT_LENGTH + structure.getBbanLength(); }
[ "Returns iban length for the specified country.\n\n@param countryCode {@link org.iban4j.CountryCode}\n@return the length of the iban for the specified country." ]
[ "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif t...
private List<Rule> getStyleRules(final String styleProperty) { final List<Rule> styleRules = new ArrayList<>(this.json.size()); for (Iterator<String> iterator = this.json.keys(); iterator.hasNext(); ) { String styleKey = iterator.next(); if (styleKey.equals(JSON_STYLE_PROPERTY) ...
[ "Creates SLD rules for each old style." ]
[ "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances", "Use this API to save cacheobject.", "Create a new AwsServiceClient instance with...
public static CRFClassifier getClassifier(InputStream in) throws IOException, ClassCastException, ClassNotFoundException { CRFClassifier crf = new CRFClassifier(); crf.loadClassifier(in); return crf; }
[ "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input strea...
[ "Creates a style definition used for the body element.\n@return The body style definition.", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Send a master changed announcement to all registered master listeners.\n\n@param update t...
public void linkOneToOne(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean insert) { storeAndLinkOneToOne(true, obj, cld, rds, true); }
[ "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if...
[ "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Add a I...
protected void checkForPrimaryKeys(final Object realObject) throws ClassNotPersistenceCapableException { // if no PKs are specified OJB can't handle this class ! if (m_pkValues == null || m_pkValues.length == 0) { throw createException("OJB needs at least one primary key att...
[ "OJB can handle only classes that declare at least one primary key attribute,\nthis method checks this condition.\n\n@param realObject The real object to check\n@throws ClassNotPersistenceCapableException thrown if no primary key is specified for the objects class" ]
[ "Logs binary string as hexadecimal", "Prints the data of one property to the given output. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param propertyRecord\nthe data to write\n@param propertyIdValue\nthe property that the data refers to", "Populate the container, converting raw d...
protected NodeData createPageStyle() { NodeData ret = createBlockStyle(); TermFactory tf = CSSFactory.getTermFactory(); ret.push(createDeclaration("position", tf.createIdent("relative"))); ret.push(createDeclaration("border-width", tf.createLength(1f, Unit.px))); ret.push(createDeclarati...
[ "Creates a style definition used for pages.\n@return The page style definition." ]
[ "Retrieve the frequency of an exception.\n\n@param exception XML calendar exception\n@return frequency", "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException", "Converts a collection of dates to a JSON array with the long representa...
public static String base64Encode(byte[] bytes) { if (bytes == null) { throw new IllegalArgumentException("Input bytes must not be null."); } if (bytes.length >= BASE64_UPPER_BOUND) { throw new IllegalArgumentException( "Input bytes length must not exceed " + BASE64_UPPER_BOUND); }...
[ "Base64 encodes a byte array.\n\n@param bytes Bytes to encode.\n@return Encoded string.\n@throws IllegalArgumentException if {@code bytes} is null or exceeds 3/4ths of {@code\nInteger.MAX_VALUE}." ]
[ "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the resp...
public String getFormattedParentValue() { String result = null; if (m_elements.size() > 2) { result = joinElements(m_elements.size() - 2); } return result; }
[ "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value" ]
[ "Get the list of supported resolutions for the layer. Each resolution is specified in map units per pixel.\n\n@return list of supported resolutions\n@deprecated use {@link #getZoomLevels()}", "Remove any protocol-level headers from the remote server's response that\ndo not apply to the new response we are sending...
private void addSubMatrixVariables(List<TokenList.Token> inputs, List<Variable> variables) { for (int i = 0; i < inputs.size(); i++) { TokenList.Token t = inputs.get(i); if( t.getType() != Type.VARIABLE ) throw new ParseError("Expected variables only in sub-matrix input, ...
[ "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown" ]
[ "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails", "Fills the week panel with checkboxes.", "Implements getAll by delegating to get.", "Return...
private void addCalendarDay(MpxjTreeNode parentNode, ProjectCalendar calendar, final Day day) { MpxjTreeNode dayNode = new MpxjTreeNode(day) { @Override public String toString() { return day.name(); } }; parentNode.add(dayNode); addHours(dayNode, c...
[ "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day" ]
[ "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Checks if request is intended for Gerrit host.", "Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinde...
public static double blackScholesDigitalOptionValue( double initialStockValue, double riskFreeRate, double volatility, double optionMaturity, double optionStrike) { if(optionStrike <= 0.0) { // The Black-Scholes model does not consider it being an option return 1.0; } else { // Calcul...
[ "Calculates the Black-Scholes option value of a digital call option.\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\...
[ "Use this API to add appfwjsoncontenttype.", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.", "Set the amount of padding between child objects.\n@param axis {@link Axis}\n@param padding", "Retrieves state and metrics information for individual client connection.\n...
private Duration getDuration(Double duration) { Duration result = null; if (duration != null) { result = Duration.getInstance(NumberHelper.getDouble(duration), TimeUnit.HOURS); } return result; }
[ "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance" ]
[ "Execute a set of API calls as batch request.\n@param requests list of api requests that has to be executed in batch.\n@return list of BoxAPIResponses", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descripto...
public static Comparator getComparator() { return new Comparator() { public int compare(Object o1, Object o2) { FieldDescriptor fmd1 = (FieldDescriptor) o1; FieldDescriptor fmd2 = (FieldDescriptor) o2; if (fmd1.getColNo(...
[ "returns a comparator that allows to sort a Vector of FieldMappingDecriptors\naccording to their m_Order entries." ]
[ "Returns script view\n\n@param model\n@return\n@throws Exception", "Converts the results to CSV data.\n\n@return the CSV data", "Use this API to update snmpuser.", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed...
public String getTexCoordShaderVar(String texName) { GVRTexture tex = textures.get(texName); if (tex != null) { return tex.getTexCoordShaderVar(); } return null; }
[ "Gets the name of the shader variable to get the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of shader variable" ]
[ "Return true only if the node has any of the named annotations\n@param node - the AST Node to check\n@param names - the names of the annotations\n@return true only if the node has any of the named annotations", "Authenticates the API connection for Box Developer Edition.", "Close the Closeable. Logging a warnin...
public void shutdown() { for (Entry<HttpClientType, AsyncHttpClient> entry : map.entrySet()) { AsyncHttpClient client = entry.getValue(); if (client != null) client.close(); } }
[ "Shutdown each AHC client in the map." ]
[ "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection", "Returns the first 24 photos for a given tag cluster.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\n@param clusterId\n@return PhotoList\n@thr...
public static final boolean isMouseInside(NativeEvent event, Element element) { return isInside(event.getClientX() + Window.getScrollLeft(), event.getClientY() + Window.getScrollTop(), getBounds(element)); }
[ "Determines if a mouse event is inside a box." ]
[ "Get photos from the user's contacts.\n\nThis method requires authentication with 'read' permission.\n\n@param count\nThe number of photos to return\n@param justFriends\nSet to true to only show friends photos\n@param singlePhoto\nSet to true to get a single photo\n@param includeSelf\nSet to true to include self\n@...
public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
[ "Add a content modification.\n\n@param modification the content modification" ]
[ "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The opti...
public void info(Throwable throwable, String msg, Object[] argArray) { logIfEnabled(Level.INFO, throwable, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, argArray); }
[ "Log a info message with a throwable." ]
[ "Terminates with a help message if the parse is not successful\n\n@param args command line arguments to\n@return the format in a correct state", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "Gets a list of split keys given a desired number of splits.\n\n<p>This l...
public static cmpglobal_cmppolicy_binding[] get(nitro_service service) throws Exception{ cmpglobal_cmppolicy_binding obj = new cmpglobal_cmppolicy_binding(); cmpglobal_cmppolicy_binding response[] = (cmpglobal_cmppolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a cmpglobal_cmppolicy_binding resources." ]
[ "Sets a new image\n\n@param BufferedImage imagem", "Get container for principal.\n\n@param cms cmsobject\n@param list of principals\n@param captionID caption id\n@param descID description id\n@param iconID icon id\n@param ouID ou id\n@param icon icon\n@param iconList iconlist\n@return indexedcontainer", "Opens ...
private void transform(File file, Source transformSource) throws TransformerConfigurationException, IOException, SAXException, TransformerException, ParserConfigurationException { Transformer transformer = m_transformerFactory.newTransformer(transformSource); transformer.setOutputProperty(Outpu...
[ "Transforms a single configuration file using the given transformation source.\n\n@param file the configuration file\n@param transformSource the transform soruce\n\n@throws TransformerConfigurationException -\n@throws IOException -\n@throws SAXException -\n@throws TransformerException -\n@throws ParserConfiguration...
[ "Returns the list of nodes which match the expression xpathExpr in the Document dom.\n\n@param dom the Document to search in\n@param xpathExpr the xpath query\n@return the list of nodes which match the query\n@throws XPathExpressionException On error.", "Add a new value to the array map.\n@param key The key...
synchronized void openConnection(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception { boolean ok = false; final Connection connection = connectionManager.connect(); try { channelHandler.executeRequest(new ServerRegisterRequ...
[ "Connect to the HC and retrieve the current model updates.\n\n@param controller the server controller\n@param callback the operation completed callback\n\n@throws IOException for any error" ]
[ "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline level of the chil...
protected Boolean getEscapeQueryChars() { Boolean isEscape = parseOptionalBooleanValue(m_configObject, JSON_KEY_ESCAPE_QUERY_CHARACTERS); return (null == isEscape) && (m_baseConfig != null) ? Boolean.valueOf(m_baseConfig.getGeneralConfig().getEscapeQueryChars()) : isEscape; }
[ "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped." ]
[ "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.", "Find the next match of the pattern on the tree\n\n@return whether the...
private static QName getServiceName(Server server) { QName serviceName; String bindingId = getBindingId(server); EndpointInfo eInfo = server.getEndpoint().getEndpointInfo(); if (JAXRS_BINDING_ID.equals(bindingId)) { serviceName = eInfo.getName(); } else { ...
[ "Extracts the service name from a Server.\n@param server\n@return" ]
[ "The service name to be removed. Can be overridden for unusual service naming patterns\n@param name The name of the resource being removed\n@return The service name to remove. May return {@code null} if only removal based on {@code unavailableCapabilities}\npassed to the constructor are to be performed", "This me...
public static final ProjectFile setProjectNameAndRead(File directory) throws MPXJException { List<String> projects = listProjectNames(directory); if (!projects.isEmpty()) { P3DatabaseReader reader = new P3DatabaseReader(); reader.setProjectName(projects.get(0)); return r...
[ "Convenience method which locates the first P3 database in a directory\nand opens it.\n\n@param directory directory containing a P3 database\n@return ProjectFile instance" ]
[ "Return a collection of product descriptors for each option in the smile.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@return a collection of product descriptors for each option in the smile.", "1.5 and on, 2.0 and on, 3.0 and on.", "Use this API to fetch ...
public static boolean isQuotedConstant(String str) { if (str == null || str.isEmpty()) { return false; } return (str.startsWith("\"") && str.endsWith("\"")); }
[ "Returns true if string starts and ends with double-quote\n@param str\n@return" ]
[ "Write the domain controller data to an S3 file.\n\n@param data the domain controller data\n@param domainName the name of the directory in the bucket to write the S3 file to\n@throws IOException", "This method retrieves all security permissions contained within the specified node.\n\n@param context the {@link Ope...
private static String formatDirName(final String prefix, final String suffix) { // Replace all invalid characters with '-' final CharMatcher invalidCharacters = VALID_SUFFIX_CHARS.negate(); return String.format("%s-%s", prefix, invalidCharacters.trimAndCollapseFrom(suffix.toLowerCase(), '-')); ...
[ "Returns the expected name of a workspace for a given suffix\n@param suffix\n@return" ]
[ "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\...
public void registerDatatype(Class<? extends GVRHybridObject> textureClass, AsyncLoaderFactory<? extends GVRHybridObject, ?> asyncLoaderFactory) { mFactories.put(textureClass, asyncLoaderFactory); }
[ "Loaders call this method to register themselves. This method can be called by\nloaders provided by the application.\n\n@param textureClass\nThe class the loader is responsible for loading.\n\n@param asyncLoaderFactory\nThe factory object." ]
[ "Adds a listener to this collection.\n\n@param listener The listener to add", "Boot with the given operations, performing full model and capability registry validation.\n\n@param bootOperations the operations. Cannot be {@code null}\n@param rollbackOnRuntimeFailure {@code true} if the boot should fail if operatio...
public boolean verify(String signatureVersion, String signatureAlgorithm, String primarySignature, String secondarySignature, String webHookPayload, String deliveryTimestamp) { // enforce versions supported by this implementation if (!SUPPORTED_VERSIONS.contains(signatureVersion)) { ...
[ "Verifies given web-hook information.\n\n@param signatureVersion\nsignature version received from web-hook\n@param signatureAlgorithm\nsignature algorithm received from web-hook\n@param primarySignature\nprimary signature received from web-hook\n@param secondarySignature\nsecondary signature received from web-hook\...
[ "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor", "Gets the path used for the results of XSLT Transforms.", "Get by index is used here.", "Answer the FieldConversions for the PkFields\n@param cld\n@return the pk FieldConversions", "Specifies convergence crite...
@Override public void write(final char[] cbuf, final int off, final int len) throws IOException { int offset = off; int length = len; while (suppressLineCount > 0 && length > 0) { length = -1; for (int i = 0; i < len && suppressLineCount > 0; i++) { if (cbuf[off + i] == '\n') { offset = off + i + ...
[ "Filter everything until we found the first NL character." ]
[ "Use this API to fetch inat resource of given name .", "This is a convenience method provided to allow a day to be set\nas working or non-working, by using the day number to\nidentify the required day.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Extract and return t...
protected List<TransformationDescription> buildChildren() { if(children.isEmpty()) { return Collections.emptyList(); } final List<TransformationDescription> children = new ArrayList<TransformationDescription>(); for(final TransformationDescriptionBuilder builder : this.childr...
[ "Build all children.\n\n@return the child descriptions" ]
[ "Checks given permissions are needed to show rationale.\n\n@return returns true if one of the permission is needed to show rationale.", "Meant to execute assertions in tests only\n@return a read-only view of the map containing the relations between entities", "read the file as a list of text lines", "Takes a ...
private void allInput(List<FileModel> vertices, GraphRewrite event, ParameterStore store) { if (StringUtils.isBlank(getInputVariablesName()) && this.filenamePattern == null) { FileService fileModelService = new FileService(event.getGraphContext()); for (FileModel fileModel : ...
[ "Generating the input vertices is quite complex. Therefore there are multiple methods that handles the input vertices\nbased on the attribute specified in specific order. This method generates all the vertices if there is no other way how to handle\nthe input." ]
[ "Helper function to return the minimum size of the index space to be passed to the reduction given the input and\noutput tensors", "Append field with quotes and escape characters added, if required.\n\n@return this", "Implements get by delegating to getAll.", "Initializes OJB for the purposes of this task.\n\...
public void setOnQueryTextListener(@NonNull final SearchView.OnQueryTextListener listener) { if (searchView != null) { searchView.setOnQueryTextListener(listener); } else if (supportView != null) { supportView.setOnQueryTextListener(new android.support.v7.widget.SearchView.OnQuer...
[ "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query." ]
[ "Use this API to fetch cmppolicylabel_cmppolicy_binding resources of given name .", "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Resolve an operation transformer entry.\n\n@param address the address\n@param operationName the operation name\n@param placehol...
public FindByIndexOptions useIndex(String designDocument, String indexName) { assertNotNull(designDocument, "designDocument"); assertNotNull(indexName, "indexName"); JsonArray index = new JsonArray(); index.add(new JsonPrimitive(designDocument)); index.add(new JsonPrimitive(...
[ "Specify a specific index to run the query against\n\n@param designDocument set the design document to use\n@param indexName set the index name to use\n@return this to set additional options" ]
[ "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Helper method to synchronously invoke a callback\n\n@param call", "Stop offering shared dbserver sessions.", "Use this API to fetch statistics of streamidentifier_stats resource of given name .", "Initializ...
public boolean matches(HostName host) { if(this == host) { return true; } if(isValid()) { if(host.isValid()) { if(isAddressString()) { return host.isAddressString() && asAddressString().equals(host.asAddressString()) && Objects.equals(getPort(), host.getPort()) && Objects.equal...
[ "Returns whether the given host matches this one. For hosts to match, they must represent the same addresses or have the same host names.\nHosts are not resolved when matching. Also, hosts must have the same port and service. They must have the same masks if they are host names.\nEven if two hosts are invalid, t...
[ "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created brow...
public void addVars(Map<String, String> env) { if (tagUrl != null) { env.put("RELEASE_SCM_TAG", tagUrl); env.put(RT_RELEASE_STAGING + "SCM_TAG", tagUrl); } if (releaseBranch != null) { env.put("RELEASE_SCM_BRANCH", releaseBranch); env.put(RT_RELEAS...
[ "Add some of the release build properties to a map." ]
[ "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string.", "Mark root of this task task group depends on the given task group's root.\nThis ensure this task group's root get picked for execution only after the completion\nof all tasks in the given gro...
private void verifyApplicationName(String name) { if (name == null) { throw new IllegalArgumentException("Application name cannot be null"); } if (name.isEmpty()) { throw new IllegalArgumentException("Application name length must be > 0"); } String reason = null; char[] chars = name....
[ "Verifies application name. Avoids characters that Zookeeper does not like in nodes & Hadoop\ndoes not like in HDFS paths.\n\n@param name Application name\n@throws IllegalArgumentException If name contains illegal characters" ]
[ "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the cur...
public final void configureAccess(final Template template, final ApplicationContext context) { final Configuration configuration = template.getConfiguration(); AndAccessAssertion accessAssertion = context.getBean(AndAccessAssertion.class); accessAssertion.setPredicates(configuration.getAccessAs...
[ "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context" ]
[ "Get parent digest of an image.\n\n@param digest\n@param host\n@return", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "only TOP or Bottom", "Returns a new instance of the class with the given qualified name usi...
public static boolean isFileExist(String filePath) { File f = new File(filePath); return f.exists() && !f.isDirectory(); }
[ "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist" ]
[ "Adds position noise to the trajectories\n@param t\n@param sd\n@return trajectory with position noise", "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", "Use this API to add poli...
protected void internalClose() throws SQLException { try { clearStatementCaches(true); if (this.connection != null){ // safety! this.connection.close(); if (!this.connectionTrackingDisabled && this.finalizableRefs != null){ this.finalizableRefs.remove(this.connection); } } this...
[ "Close off the connection.\n\n@throws SQLException" ]
[ "Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name of the thread group passed to startThreads()", "Returns the comma separated list of available scopes\n\n@return String", "Gets a method based on data in the override_db table\n\n@param overrideId ...
public static final Double parseCurrency(Number value) { return (value == null ? null : NumberHelper.getDouble(value.doubleValue() / 100)); }
[ "Parse currency.\n\n@param value currency value\n@return currency value" ]
[ "Returns an empty model of a Dependency in Json\n\n@return String\n@throws IOException", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter th...