query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public void setMeta(String photoId, String title, String description) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_SET_META); parameters.put("photo_id", photoId); parameters.put("title", title); pa...
[ "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException" ]
[ "Utility method to clear cached calendar data.", "Use this API to delete route6 of given name.", "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 ...
public long removeRangeByScore(final ScoreRange scoreRange) { return doWithJedis(new JedisCallable<Long>() { @Override public Long call(Jedis jedis) { return jedis.zremrangeByScore(getKey(), scoreRange.from(), scoreRange.to()); } }); }
[ "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed." ]
[ "Append a SubQuery the SQL-Clause\n@param subQuery the subQuery value of SelectionCriteria", "Resolve a resource transformer for a given address.\n\n@param address the address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the resource transforme...
private Statement createStatement(Connection con, boolean scrollable, int explicitFetchSizeHint) throws java.sql.SQLException { Statement result; try { // if necessary use JDBC1.0 methods if (!FORCEJDBC1_0) { result = ...
[ "Creates a statement with parameters that should work with most RDBMS." ]
[ "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class....
public void setAccordion(boolean accordion) { getElement().setAttribute("data-collapsible", accordion ? CssName.ACCORDION : CssName.EXPANDABLE); reload(); }
[ "Configure if you want this collapsible container to\naccordion its child elements or use expandable." ]
[ "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value", "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock...
public static rnatparam get(nitro_service service) throws Exception{ rnatparam obj = new rnatparam(); rnatparam[] response = (rnatparam[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the rnatparam resources that are configured on netscaler." ]
[ "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can ...
protected void populateTasksByStealer(List<StealerBasedRebalanceTask> sbTaskList) { // Setup mapping of stealers to work for this run. for(StealerBasedRebalanceTask task: sbTaskList) { if(task.getStealInfos().size() != 1) { throw new VoldemortException("StealerBasedRebalanceT...
[ "Go over the task list and create a map of stealerId -> Tasks\n\n@param sbTaskList List of all stealer-based rebalancing tasks to be\nscheduled." ]
[ "Deletes a path from the filesystem\n\nIf the path is a directory its contents\nwill be recursively deleted before it itself\nis deleted.\n\nNote that removal of a directory is not an atomic-operation\nand so if an error occurs during removal, some of the directories\ndescendants may have already been removed\n\n@t...
@Override protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException { // Is the line an empty comment "#" ? if (line.startsWith(COMMENT_PREFIX) && line.length() == 1) { String nextLine = bufferedFileReader.readLine(); ...
[ "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)" ]
[ "Calculates the radius to a given boundedness value\n@param D Diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param B Boundedeness\n@return Confinement radius", "Log a string.\n\n@param label label text\n@param data string data", "read the file as a list of text lines", "Creates a cu...
public static void registerTinyTypes(Class<?> head, Class<?>... tail) { final Set<HeaderDelegateProvider> systemRegisteredHeaderProviders = stealAcquireRefToHeaderDelegateProviders(); register(head, systemRegisteredHeaderProviders); for (Class<?> tt : tail) { register(tt, systemRegis...
[ "Registers Jersey HeaderDelegateProviders for the specified TinyTypes.\n\n@param head a TinyType\n@param tail other TinyTypes\n@throws IllegalArgumentException when a non-TinyType is given" ]
[ "Adds a set of tests based on pattern matching.", "Use this API to fetch wisite_binding resource of given name .", "Sets the current collection definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of...
public int compareTo(InternalFeature o) { if (null == o) { return -1; // avoid NPE, put null objects at the end } if (null != styleDefinition && null != o.getStyleInfo()) { if (styleDefinition.getIndex() > o.getStyleInfo().getIndex()) { return 1; } if (styleDefinition.getIndex() < o.getStyleInfo()...
[ "This function compares style ID's between features. Features are usually sorted by style." ]
[ "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Adds api doc roots from a link. The folder reffered by the link should contain a package-list\nfile that will be parsed in order to add api doc roots to this configuration\n@param packag...
private static boolean matches(Type from, Type to, Map<String, Type> typeMap) { if (to.equals(from)) return true; if (from instanceof TypeVariable) { return to.equals(typeMap.get(((TypeVariable<?>) from).getName())); } return false; }
[ "Checks if two types are the same or are equivalent under a variable\nmapping given in the type map that was provided." ]
[ "Gets the current Stack. If the stack is not set, a new empty instance is created and set.\n@return", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException", ...
private void setHex() { String hRed = Integer.toHexString(getRed()); String hGreen = Integer.toHexString(getGreen()); String hBlue = Integer.toHexString(getBlue()); if (hRed.length() == 0) { hRed = "00"; } if (hRed.length() == 1) { hRed...
[ "Converts from RGB to Hexadecimal notation." ]
[ "Retrieves the earliest start date for all assigned tasks.\n\n@return start date", "Removes the specified objects.\n\n@param collection The collection to remove.", "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "Called when the end ty...
public void setDoubleAttribute(String name, Double value) { ensureAttributes(); Attribute attribute = new DoubleAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
[ "Sets the specified double attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
[ "Create the image elements for the banners tha goes into the\ntitle and header bands depending on the case", "dispatch to gravity state", "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException...
@JsonAnySetter public void setUnknownField(final String name, final Object value) { this.unknownFields.put(name, value); }
[ "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value" ]
[ "Reset the combination generator.", "Refresh children using read-resource operation.", "Use this API to update ipv6.", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "If any of the given list of properties are...
public static <T extends WindupVertexFrame> T addTypeToModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type) { Vertex vertex = frame.getElement(); graphContext.getGraphTypeManager().addTypeToElement(type, vertex); return graphContext.getFramed().frameElement(vertex, type);...
[ "Adds the specified type to this frame, and returns a new object that implements this type." ]
[ "Returns an iterator that will only offer leaf trace regions. If the nested regions have gaps, these will be\nfilled with parent data. If this region is a leaf, a singleton iterator will be returned.\n\n@return an unmodifiable iterator for all leafs. Never <code>null</code>.", "Convert a url to a file object. No...
public SqlStatement getPreparedDeleteStatement(Query query, ClassDescriptor cld) { return new SqlDeleteByQuery(m_platform, cld, query, logger); }
[ "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor" ]
[ "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value", "Use this API to fetch all the nd6ravariables resources that are configured on ...
public static String objectToColumnString(Object object, String delimiter, String[] fieldNames) throws IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException { StringBuilder sb = new StringBuilder(); for (int i = 0; i < fieldNames.length; i++) { if ...
[ "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object" ]
[ "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by applying a key function to each element which yields a comparable criteria.\n\n@param iterable\nthe elements to be sorted. May not be <code>null</code>.\n@param key\nthe key function...
private void clearBeatGrids(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.player == player) { ...
[ "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance" ]
[ "Checks the preconditions for creating a new StrRegExReplace processor.\n\n@param regex\nthe supplied regular expression\n@param replacement\nthe supplied replacement text\n@throws IllegalArgumentException\nif regex is empty\n@throws NullPointerException\nif regex or replacement is null", "Use this API to Force c...
public static Object executeXPath(Node document, String xpathExpression, Map<String, String> namespaceMapping, QName result) throws XPathException, MarshallingException { NamespaceMapContext mapContext = new NamespaceMapContext(namespaceMapping); try { XPathFactor...
[ "Executes the given xpath and returns the result with the type specified." ]
[ "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the even...
private void showSettingsMenu(final Cursor cursor) { Log.d(TAG, "showSettingsMenu"); enableSettingsCursor(cursor); context.runOnGlThread(new Runnable() { @Override public void run() { new SettingsView(context, scene, CursorManager.this, ...
[ "Presents the Cursor Settings to the User. Only works if scene is set." ]
[ "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 group.\n\n@param dependencyTaskGroup the task group that this task group depends on", "Closes the transactor node by removing...
protected static PreparedStatement memorize(final PreparedStatement target, final ConnectionHandle connectionHandle) { return (PreparedStatement) Proxy.newProxyInstance( PreparedStatementProxy.class.getClassLoader(), new Class[] {PreparedStatementProxy.class}, new MemorizeTransactionProxy(target, connecti...
[ "Wrap PreparedStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Preparedstatement." ]
[ "Get a sub-list of this list\n@param fromIndex index of the first element in the sub-list (inclusive)\n@param toIndex index of the last element in the sub-list (inclusive)\n@return the sub-list", "Use this API to fetch clusternodegroup resource of given name .", "Get the underlying channel. This may block until...
public int getIntegerBelief(String name){ Object belief = introspector.getBeliefBase(this).get(name); int count = 0; if (belief!=null) { count = (Integer) belief; } return (Integer) count; }
[ "Returns the integer value o the given belief" ]
[ "Get the authorization uri, where the user logs in.\n\n@param redirectUri\nUri the user is redirected to, after successful authorization.\nThis must be the same as specified at the Eve Online developer\npage.\n@param scopes\nScopes of the Eve Online SSO.\n@param state\nThis should be some secret to prevent XRSF, pl...
public static byte[] explodeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException { final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS); ModelNode contentI...
[ "Explode the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws...
[ "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception", "Get the axis along the orientation\n@return", "Create and return a SelectIterator for the class using the default...
private void updateWorkTimeUnit(FastTrackColumn column) { if (m_workTimeUnit == null && isWorkColumn(column)) { int value = ((DurationColumn) column).getTimeUnitValue(); if (value != 1) { m_workTimeUnit = FastTrackUtility.getTimeUnit(value); } } }
[ "Update the default time unit for work based on data read from the file.\n\n@param column column data" ]
[ "Rename with retry.\n\n@param from\n@param to\n@return <tt>true</tt> if the file was successfully renamed.", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "set the Modification state to a new value. Used during state transitions.\n@p...
protected <T, A> ActiveOperation<T, A> removeActiveOperation(Integer id) { final ActiveOperation<T, A> removed = removeUnderLock(id); if(removed != null) { for(final Map.Entry<Integer, ActiveRequest<?, ?>> requestEntry : requests.entrySet()) { final ActiveRequest<?, ?> reques...
[ "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered operation" ]
[ "Add properties to 'properties' map on transaction start\n@param type - of transaction", "Explode the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content re...
protected List<String> parseWords(String line) { List<String> words = new ArrayList<String>(); boolean insideWord = !isSpace(line.charAt(0)); int last = 0; for( int i = 0; i < line.length(); i++) { char c = line.charAt(i); if( insideWord ) { // se...
[ "Extracts the words from a string. Words are seperated by a space character.\n\n@param line The line that is being parsed.\n@return A list of words contained on the line." ]
[ "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert.", "Sets the origin and direction of the pick ...
@RequestMapping(value="/soy/compileJs", method=GET) public ResponseEntity<String> compile(@RequestParam(required = false, value="hash", defaultValue = "") final String hash, @RequestParam(required = true, value = "file") final String[] templateFileNames, ...
[ "An endpoint to compile an array of soy templates to JavaScript.\n\nThis endpoint is a preferred way of compiling soy templates to JavaScript but it requires a user to compose a url\non their own or using a helper class TemplateUrlComposer, which calculates checksum of a file and puts this in url\nso that whenever ...
[ "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws Oper...
public TopicList<Topic> getTopicsList(String groupId, int perPage, int page) throws FlickrException { TopicList<Topic> topicList = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_TOPICS_GET_LIST); parameters.pu...
[ "Get a list of topics from a group.\n\n@param groupId\nUnique identifier of a group returns a list of topics for a given group {@link Group}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A group topic list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services...
[ "Update max min.\n\n@param n the n\n@param c the c", "Update environment variables to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param config Key/Value pairs of environment variables.", "Finds the first Field with given field name in the Class and in its super...
public static final Priority parsePriority(BigInteger priority) { return (priority == null ? null : Priority.getInstance(priority.intValue())); }
[ "Parse priority.\n\n\n@param priority priority value\n@return Priority instance" ]
[ "Log original incoming request\n\n@param requestType\n@param request\n@param history", "Returns the corresponding ModuleSpec service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "Returns a matrix full of ones", "Removes a design do...
public String convertToReadableDate(Holiday holiday) { DateTimeFormatter parser = ISODateTimeFormat.date(); if (holiday.isInDateForm()) { String month = Integer.toString(holiday.getMonth()).length() < 2 ? "0" + holiday.getMonth() : Integer.toString(holiday.getMonth()); ...
[ "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd" ]
[ "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by the specified comparator.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@param comparator\nthe comparator to be used. May be <code>null</code> to indicat...
private void addReverse(final File[] files) { for (int i = files.length - 1; i >= 0; --i) { stack.add(files[i]); } }
[ "Add the specified files in reverse order." ]
[ "Crop the image between two points.\n\n@param top Top bound.\n@param left Left bound.\n@param bottom Bottom bound.\n@param right Right bound.\n@throws IllegalArgumentException if {@code top} or {@code left} are less than zero or {@code\nbottom} or {@code right} are less than one or less than {@code top} or {@code l...
public boolean checkRead(TransactionImpl tx, Object obj) { if (hasReadLock(tx, obj)) { return true; } LockEntry writer = getWriter(obj); if (writer.isOwnedBy(tx)) { return true; } return false; }
[ "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" ]
[ "Adds the word.\n\n@param w the w\n@throws ParseException the parse exception", "This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardC...
protected void setupPivotInfo() { for( int col = 0; col < numCols; col++ ) { pivots[col] = col; double c[] = dataQR[col]; double norm = 0; for( int row = 0; row < numRows; row++ ) { double element = c[row]; norm += element*element; ...
[ "Sets the initial pivot ordering and compute the F-norm squared for each column" ]
[ "This must be called with the write lock held.\n@param requirement the requirement", "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException", "Extracts the nullity of a matrix using a preexisting decomp...
public Response getBill(int month, int year) throws RequestException, LocalOperationException { Request request = new Request(this); return new Response(request.get("/bill/" + year + String.format("-%02d", month))); }
[ "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
[ "Generate the body of a toString method that uses plain concatenation.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\nalways present, this can be done with a long block of unconditional code. We could use a\nStringBuilder for this, but in fact the Java compiler will do...
public static void endTrack(final String title){ if(isClosed){ return; } //--Make Task final long timestamp = System.currentTimeMillis(); Runnable endTrack = new Runnable(){ public void run(){ assert !isThreaded || control.isHeldByCurrentThread(); //(check name match) ...
[ "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track." ]
[ "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Gets the sub-entries of the navigation entry.\n\n@return the sub-entries", "Append the text at the end of the File, using a specified encoding.\n\n@param file ...
protected I_CmsSearchDocument createDefaultIndexDocument() { try { return m_index.getFieldConfiguration().createDocument(m_cms, m_res, m_index, null); } catch (CmsException e) { LOG.error( "Default document for " + m_res.getRootPath() ...
[ "Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed." ]
[ "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return", "Scales the brightness of a pixel.", "Create a JsonParser for a given json node.\n@param jsonNode the json node\n...
public BoxFolder.Info getFolderInfo(String folderID) { URL url = FOLDER_INFO_URL_TEMPLATE.build(this.api.getBaseURL(), folderID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObje...
[ "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder." ]
[ "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\...
public synchronized void addCertAndPrivateKey(String hostname, final X509Certificate cert, final PrivateKey privKey) throws KeyStoreException, CertificateException, NoSuchAlgorithmException { // String alias = ThumbprintUtil.getThumbprint(cert); _ks.deleteEntry(hostname); _ks.setCertificateEntry(hostname...
[ "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException" ]
[ "The test that checks if clipping is needed.\n\n@param f\nfeature to test\n@param scale\nscale\n@return true if clipping is needed", "Obtains a local date in Discordian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the m...
private boolean matchesFingerprint(byte[] buffer, byte[] fingerprint) { return Arrays.equals(fingerprint, Arrays.copyOf(buffer, fingerprint.length)); }
[ "Determine if the start of the buffer matches a fingerprint byte array.\n\n@param buffer bytes from file\n@param fingerprint fingerprint bytes\n@return true if the file matches the fingerprint" ]
[ "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "Gets the txinfo cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #TX_INFO_CACHE_WEIGHT} if\nit is set, else the value of the defa...
public static Multimap<String, String> convertToMultiMap(final PObject objectParams) { Multimap<String, String> params = HashMultimap.create(); if (objectParams != null) { Iterator<String> customParamsIter = objectParams.keys(); while (customParamsIter.hasNext()) { ...
[ "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap." ]
[ "Append Join for SQL92 Syntax without parentheses", "Get the context for the specified photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@return The PhotoContext\n@throws FlickrException", "Reads characters into a portion of an array, then replace invalid XML characters\n\n...
public void bindDelete(PreparedStatement stmt, Identity oid, ClassDescriptor cld) throws SQLException { Object[] pkValues = oid.getPrimaryKeyValues(); FieldDescriptor[] pkFields = cld.getPkFields(); int i = 0; try { for (; i < pkValues.length; i++) ...
[ "binds the Identities Primary key values to the statement" ]
[ "Logs all properties", "This method extracts data for an exception day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data", "Convert this update description to an update document.\n\n@return an update document with the appropriate $set and $unset documents.", "Manage the artifact add to...
public void removeLicenseFromArtifact(final String gavc, final String licenseId) { final DbArtifact dbArtifact = getArtifact(gavc); // // The artifact may not have the exact string associated with it, but rather one // matching license regexp expression. // repositoryHan...
[ "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed." ]
[ "This method can be called to ensure that the IDs of all\nentities are sequential, and start from an\nappropriate point. If entities are added to and removed from\nthis list, then the project is loaded into Microsoft\nproject, if the ID values have gaps in the sequence, there will\nbe blank rows shown.", "Remove ...
public boolean hasDeploymentSubsystemModel(final String subsystemName) { final Resource root = deploymentUnit.getAttachment(DEPLOYMENT_RESOURCE); final PathElement subsystem = PathElement.pathElement(SUBSYSTEM, subsystemName); return root.hasChild(subsystem); }
[ "Checks to see if a subsystem resource has already been registered for the deployment.\n\n@param subsystemName the name of the subsystem\n\n@return {@code true} if the subsystem exists on the deployment otherwise {@code false}" ]
[ "Register the agent in the platform\n\n@param agent_name\nThe name of the agent to be registered\n@param agent\nThe agent to register.\n@throws FIPAException", "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value", "Performs the update to the persistent configura...
public static Property getChildAddress(final ModelNode address) { if (address.getType() != ModelType.LIST) { throw new IllegalArgumentException("The address type must be a list."); } final List<Property> addressParts = address.asPropertyList(); if (addressParts.isEmpty()) { ...
[ "Finds the last entry of the address list and returns it as a property.\n\n@param address the address to get the last part of\n\n@return the last part of the address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty" ]
[ "Obtain newline-delimited headers from method\n\n@param method HttpMethod to scan\n@return newline-delimited headers", "Use this API to fetch appfwjsoncontenttype resources of given names .", "Find the the qualified container port of the target service\nUses java annotations first or returns the container port....
public static List<String> parse(final String[] args, final Object... objs) throws IOException { final List<String> ret = Colls.list(); final List<Arg> allArgs = Colls.list(); final HashMap<String, Arg> shortArgs = new HashMap<String, Arg>(); final HashMap<String, Arg> longArgs = ne...
[ "Parses command line arguments.\n\n@param args\nArray of arguments, like the ones provided by\n{@code void main(String[] args)}\n@param objs\nOne or more objects with annotated public fields.\n@return A {@code List} containing all unparsed arguments (i.e. arguments\nthat are no switches)\n@throws IOException\nif a ...
[ "Called when a ParentViewHolder has triggered a collapse for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be collapsed", "crops the srcBmp with the canvasView bounds and returns the cropped bitmap", "2-D Integer array to float array.\n\n@param array Integer array.\n@ret...
public Object copy(final Object obj, final PersistenceBroker broker) { return clone(obj, IdentityMapFactory.getIdentityMap(), broker); }
[ "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return" ]
[ "Checks whether given class descriptor has a primary key.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Parse a string representation of a Boolean value.\n\n@pa...
public static Polygon calculateBounds(final MapfishMapContext context) { double rotation = context.getRootContext().getRotation(); ReferencedEnvelope env = context.getRootContext().toReferencedEnvelope(); Coordinate centre = env.centre(); AffineTransform rotateInstance = AffineTransform...
[ "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context" ]
[ "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "Matc...
static void undoChanges(final PatchEntry entry, final PatchContentLoader loader) { final List<ContentModification> modifications = new ArrayList<ContentModification>(entry.rollbackActions); for (final ContentModification modification : modifications) { final ContentItem item = modification.g...
[ "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader" ]
[ "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "Try to provide an escaped, ready-to-use shell line to repeat a given command line.", "Stop offering ...
public static final BigDecimal printRate(Rate rate) { BigDecimal result = null; if (rate != null && rate.getAmount() != 0) { result = new BigDecimal(rate.getAmount()); } return result; }
[ "Print rate.\n\n@param rate Rate instance\n@return rate value" ]
[ "Parses btch api response to create a list of BoxAPIResponse objects.\n@param batchResponse response of a batch api request\n@return list of BoxAPIResponses", "not start with another option name", "Whether or not points are within some threshold.\n@param point1 Point 1\n@param point2 Point 2\n@return True or fa...
protected void printFeatures(IN wi, Collection<String> features) { if (flags.printFeatures == null || writtenNum > flags.printFeaturesUpto) { return; } try { if (cliqueWriter == null) { cliqueWriter = new PrintWriter(new FileOutputStream("feats" + flags.printFeatures + ".txt"), tru...
[ "Print the String features generated from a IN" ]
[ "Updates this BoxJSONObject using the information in a JSON object.\n@param jsonObject the JSON object containing updated information.", "Creates an operation to list the deployments.\n\n@return the operation", "Finish service initialization.\n\n@throws GeomajasException oops", "By default all bean archives s...
@Override public List<String> contentTypes() { List<String> contentTypes = null; final HttpServletRequest request = getHttpRequest(); if (favorParameterOverAcceptHeader) { contentTypes = getFavoredParameterValueAsList(request); } else { contentTypes = getAcceptHeaderValues(request); } if (isEmpty(c...
[ "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found." ]
[ "Close all JDBC objects related to this connection.", "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Adds a chain of vertices to the end of this list.", "Use this API to delete appfwjsoncontenttype of given name.", "...
@JmxOperation(description = "Retrieve operation status") public String getStatus(int id) { try { return getOperationStatus(id).toString(); } catch(VoldemortException e) { return "No operation with id " + id + " found"; } }
[ "Wrap getOperationStatus to avoid throwing exception over JMX" ]
[ "Adds all options from the passed container to this container.\n\n@param container a container with options to add", "Use this API to update cmpparameter.", "parse the stencil out of a JSONObject and set it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Get random ge...
public static <K, V, T> Map<K, List<Versioned<V>>> getAll(Store<K, V, T> storageEngine, Iterable<K> keys, Map<K, T> transforms) { Map<K, List<Versioned<V>>> result = newEmptyHashMap(keys);...
[ "Implements getAll by delegating to get." ]
[ "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "Construct an InterestRateSwapLegProductDescriptor from a node in a FIPXML file.\n\n@pa...
public static ipset[] get(nitro_service service) throws Exception{ ipset obj = new ipset(); ipset[] response = (ipset[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the ipset resources that are configured on netscaler." ]
[ "This returns a string from decimal digit smallestDigit to decimal digit\nbiggest digit. Smallest digit is labeled 1, and the limits are\ninclusive.", "Close tracks when the JVM shuts down.\n@return this", "Convert the value to requested quoting convention.\nConversion involving receiver premium assumes zero wi...
public Document removeDocument(String key) throws PrintingException { if (documentMap.containsKey(key)) { return documentMap.remove(key); } else { throw new PrintingException(PrintingException.DOCUMENT_NOT_FOUND, key); } }
[ "Gets a document from the service.\n\n@param key\nunique key to reference the document\n@return the document or null if no such document" ]
[ "Updates a metadata classification on the specified file.\n\n@param classificationType the metadata classification type.\n@return the new metadata classification type updated on the file.", "note this string is used by hashCode", "Returns all model classes registered on this datasource\n\n@return model classes ...
public static String read(final File file) throws IOException { final StringBuilder sb = new StringBuilder(); try ( final FileReader fr = new FileReader(file); final BufferedReader br = new BufferedReader(fr); ) { String sCurrentLine; wh...
[ "Reads a file and returns the result in a String\n\n@param file File\n@return String\n@throws IOException" ]
[ "Marks a given list of statements for insertion into the current document.\nInserted statements can have an id if they should update an existing\nstatement, or use an empty string as id if they should be added. The\nmethod removes duplicates and avoids unnecessary modifications by\nchecking the current content of t...
public static dnsview[] get(nitro_service service, String viewname[]) throws Exception{ if (viewname !=null && viewname.length>0) { dnsview response[] = new dnsview[viewname.length]; dnsview obj[] = new dnsview[viewname.length]; for (int i=0;i<viewname.length;i++) { obj[i] = new dnsview(); obj[i].set...
[ "Use this API to fetch dnsview resources of given names ." ]
[ "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null...
public static double KumarJohnsonDivergence(double[] p, double[] q) { double r = 0; for (int i = 0; i < p.length; i++) { if (p[i] != 0 && q[i] != 0) { r += Math.pow(p[i] * p[i] - q[i] * q[i], 2) / 2 * Math.pow(p[i] * q[i], 1.5); } } return r; }
[ "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q." ]
[ "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is c...
public DbConn getConn() { Connection cnx = null; try { Thread.interrupted(); // this is VERY sad. Needed for Oracle driver which otherwise fails spectacularly. cnx = _ds.getConnection(); if (cnx.getAutoCommit()) { cnx.setAutoCom...
[ "A connection to the database. Should be short-lived. No transaction active by default.\n\n@return a new open connection." ]
[ "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value", "Indicates if a bean's scope type is passivating\n\n@param bean The bean to inspect\n@return True if the scope is passivating, false otherwise", "Returns the text...
public static boolean validate(final String ip) { Matcher matcher = pattern.matcher(ip); return matcher.matches(); }
[ "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address" ]
[ "Convert an Object to a Date.", "This method extracts assignment data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call.", "Set the values using the specif...
@SuppressWarnings("rawtypes") public static MonetaryAmountFactory getAmountFactory(MonetaryAmountFactoryQuery query) { return Optional.ofNullable(monetaryAmountsSingletonQuerySpi()).orElseThrow(() -> new MonetaryException( "No MonetaryAmountsSingletonQuerySpi loaded, query functionality is not ...
[ "Executes the query and returns the factory found, if there is only one factory.\nIf multiple factories match the query, one is selected.\n\n@param query the factory query, not null.\n@return the factory found, or null." ]
[ "Process a compilation unit already parsed and build.", "Adds search fields from elements on a container page to a container page's document.\n@param document The document for the container page\n@param cms The current CmsObject\n@param resource The resource of the container page\n@param systemFields The list of ...
@Override public Object[] getAgentPlans(String agent_name, Connector connector) { // Not supported in JADE connector.getLogger().warning("Non suported method for Jade Platform. There is no plans in Jade platform."); throw new java.lang.UnsupportedOperationException("Non suported method for J...
[ "Non-supported in JadeAgentIntrospector" ]
[ "Assign arguments to the statement.\n\n@return The statement passed in or null if it had to be closed on error.", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that ca...
public CollectionRequest<Attachment> findByTask(String task) { String path = String.format("/tasks/%s/attachments", task); return new CollectionRequest<Attachment>(this, Attachment.class, path, "GET"); }
[ "Returns the compact records for all attachments on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object" ]
[ "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, ...
private void addTraceForFrame(WebSocketFrame frame, String type) { Map<String, Object> trace = new LinkedHashMap<>(); trace.put("type", type); trace.put("direction", "in"); if (frame instanceof TextWebSocketFrame) { trace.put("payload", ((TextWebSocketFrame) frame).text()); } if (traceEnabled) { webs...
[ "add trace information for received frame" ]
[ "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Calcula...
private String generatedBuilderSimpleName(TypeElement type) { String packageName = elements.getPackageOf(type).getQualifiedName().toString(); String originalName = type.getQualifiedName().toString(); checkState(originalName.startsWith(packageName + ".")); String nameWithoutPackage = originalName.substri...
[ "Returns the simple name of the builder class that should be generated for the given type.\n\n<p>This is simply the {@link #BUILDER_SIMPLE_NAME_TEMPLATE} with the original type name\nsubstituted in. (If the original type is nested, its enclosing classes will be included,\nseparated with underscores, to ensure uniqu...
[ "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Given a string with the scenario or story name, creates a Class Name with\nno spaces and first letter capital\n\n@param String\n- The name of the scen...
public Where<T, ID> like(String columnName, Object value) throws SQLException { addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value, SimpleComparison.LIKE_OPERATION)); return this; }
[ "Add a LIKE clause so the column must mach the value using '%' patterns." ]
[ "Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button", "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", "Convenience method to set the underlyin...
public List<List<IN>> classifyFile(String filename) { ObjectBank<List<IN>> documents = makeObjectBankFromFile(filename, plainTextReaderAndWriter); List<List<IN>> result = new ArrayList<List<IN>>(); for (List<IN> document : documents) { // System.err.println(document); classify(docu...
[ "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN." ]
[ "Execute a slave process. Pump events to the given event bus.", "Get a property as a double or null.\n\n@param key the property name", "Specify the socket to be used as underlying socket to connect\nto the APN service.\n\nThis assumes that the socket connects to a SOCKS proxy.\n\n@deprecated use {@link ApnsServ...
protected Object buildOrRefreshObject(Map row, ClassDescriptor targetClassDescriptor, Object targetObject) { Object result = targetObject; FieldDescriptor fmd; FieldDescriptor[] fields = targetClassDescriptor.getFieldDescriptor(true); if(targetObject == null) { ...
[ "Creates an object instance according to clb, and fills its fileds width data provided by row.\n@param row A {@link Map} contain the Object/Row mapping for the object.\n@param targetClassDescriptor If the \"ojbConcreteClass\" feature was used, the target\n{@link org.apache.ojb.broker.metadata.ClassDescriptor} could...
[ "Removes the token from the list\n@param token Token which is to be removed", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account", "Validates the binding types", "Updates the properties of a tag. Only the fields provided in the `...
public void setHomeAsUpIndicator(Drawable indicator) { if(!deviceSupportMultiPane()) { pulsante.setHomeAsUpIndicator(indicator); } else { actionBar.setHomeAsUpIndicator(indicator); } }
[ "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator" ]
[ "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return", "sets the row reader class name for thie class descriptor", "Iterates through the given CharSequence line by line, splitting each line using\nthe given regex delimiter. The list of tokens for each line is then passed to\nthe given...
protected int adjustIndex(Widget child, int beforeIndex) { checkIndexBoundsForInsertion(beforeIndex); // Check to see if this widget is already a direct child. if (child.getParent() == this) { // If the Widget's previous position was left of the desired new position // ...
[ "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index" ]
[ "Will auto format the given string to provide support for pickadate.js formats.", "Record operation for sync ops time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param opTimeUs The number o...
public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken, Integer paginationPageSize) { LOG.debug("Factory call to instantiate class: " + type.getName()); RestClient restClient = new RefreshingRestClient(); @SuppressWarnings("unchecked") Class<T> concreteClass = ...
[ "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the serve...
[ "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the l...
public Integer getNodesPartitionIdForKey(int nodeId, final byte[] key) { // this is all the partitions the key replicates to. List<Integer> partitionIds = getReplicatingPartitionList(key); for(Integer partitionId: partitionIds) { // check which of the replicating partitions belongs t...
[ "Determines the partition ID that replicates the key on the given node.\n\n@param nodeId of the node\n@param key to look up.\n@return partitionId if found, otherwise null." ]
[ "Returns iterable containing assignments for this single legal hold policy.\nParameters can be used to filter retrieved assignments.\n@param type filter assignments of this type only.\nCan be \"file_version\", \"file\", \"folder\", \"user\" or null if no type filter is necessary.\n@param id filter assignments to th...
public static void writeBytes(byte[] bytes, long value, int offset, int numBytes) { int shift = 0; for(int i = offset + numBytes - 1; i >= offset; i--) { bytes[i] = (byte) (0xFF & (value >> shift)); shift += 8; } }
[ "Write the given number of bytes out to the array\n\n@param bytes The array to write to\n@param value The value to write from\n@param offset the offset into the array\n@param numBytes The number of bytes to write" ]
[ "flushes log queue, this actually writes combined log message into system log", "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor.", ...
private void writeCustomField(CustomField field) throws IOException { if (field.getAlias() != null) { m_writer.writeStartObject(null); m_writer.writeNameValuePair("field_type_class", field.getFieldType().getFieldTypeClass().name().toLowerCase()); m_writer.writeNameValuePair("fi...
[ "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException" ]
[ "Make a copy of JobContext of current thread\n@return the copy of current job context or an empty job context", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "Return the position of an element inside an array\n\n@param array the array where it looks for an el...
protected boolean equivalentClaims(Claim claim1, Claim claim2) { return claim1.getMainSnak().equals(claim2.getMainSnak()) && isSameSnakSet(claim1.getAllQualifiers(), claim2.getAllQualifiers()); }
[ "Checks if two claims are equivalent in the sense that they have the same\nmain snak and the same qualifiers, but possibly in a different order.\n\n@param claim1\n@param claim2\n@return true if claims are equivalent" ]
[ "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException", "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", "Create an error image should ...
private void addFoldersToSearchIn(final List<String> folders) { if (null == folders) { return; } for (String folder : folders) { if (!CmsResource.isFolder(folder)) { folder += "/"; } m_foldersToSearchIn.add(folder); } ...
[ "Adds folders to perform the search in.\n@param folders Folders to search in." ]
[ "Releases a database connection, and cleans up any resources\nassociated with that connection.", "This handler will be triggered when there's no search result", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "Set the color for each total for the column\n@param colum...
static void populateFileCreationRecord(Record record, ProjectProperties properties) { properties.setMpxProgramName(record.getString(0)); properties.setMpxFileVersion(FileVersion.getInstance(record.getString(1))); properties.setMpxCodePage(record.getCodePage(2)); }
[ "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties" ]
[ "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\...
static Shell createTelnetConsoleShell(String prompt, String appName, ShellCommandHandler mainHandler, InputStream input, OutputStream output) { try { // Set up nvt4j; ignore the initial clear & reposition final nvt4j.impl.Terminal nvt4jTerminal = new nvt4j.impl.Terminal(input...
[ "Facade method for operating the Telnet Shell supporting line editing and command\nhistory over a socket.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either f...
[ "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "Adds the complex number with a scalar value.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance conta...
public PhotoList<Photo> getUntagged(int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_UNTAGGED); if (perPage > 0) { parameters.put("per_page", Integer.toString(perPage)); ...
[ "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException" ]
[ "This method allows a resource assignment to be added to the\ncurrent task.\n\n@param resource the resource to assign\n@return ResourceAssignment object", "Flush the network buffer and write all entries to the serve. then wait\nfor an ack from the server. This is a blocking call. It is invoked on\nevery Commit ba...
protected void handleRequestOut(T message) throws Fault { String flowId = FlowIdHelper.getFlowId(message); if (flowId == null && message.containsKey(PhaseInterceptorChain.PREVIOUS_MESSAGE)) { // Web Service consumer is acting as an intermediary @SuppressWarnings("...
[ "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault" ]
[ "Adds a metadata classification to the specified file.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type added to the file.", "Use this API to fetch all the sslservice resources that are configured on netscaler.", "Mark the given child resource as the post ...
public Where<T, ID> not(Where<T, ID> comparison) { addClause(new Not(pop("NOT"))); return this; }
[ "Used to NOT the argument clause specified." ]
[ "Use this API to unset the properties of responderparam resource.\nProperties that need to be unset are specified in args array.", "Reset the Where object so it can be re-used.", "Use this API to fetch tmtrafficaction resource of given name .", "Verifies application name. Avoids characters that Zookeeper does...
public static DMatrixRBlock transpose(DMatrixRBlock A , DMatrixRBlock A_tran ) { if( A_tran != null ) { if( A.numRows != A_tran.numCols || A.numCols != A_tran.numRows ) throw new IllegalArgumentException("Incompatible dimensions."); if( A.blockLength != A_tran.blockLe...
[ "Transposes a block matrix.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified." ]
[ "Shrinks the alert message body so that the resulting payload\nmessage fits within the passed expected payload length.\n\nThis method performs best-effort approach, and its behavior\nis unspecified when handling alerts where the payload\nwithout body is already longer than the permitted size, or\nif the break occur...
private void setAnimationProgress(float progress) { if (isAlphaUsedForScale()) { setColorViewAlpha((int) (progress * MAX_ALPHA)); } else { ViewCompat.setScaleX(mCircleView, progress); ViewCompat.setScaleY(mCircleView, progress); } }
[ "Pre API 11, this does an alpha animation.\n\n@param progress" ]
[ "Retrieve the finish slack.\n\n@return finish slack", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException", "Bessel function of order n.\n\n@param n Order.\n@param x...
public BoxFileUploadSessionPart uploadPart(InputStream stream, long offset, int partSize, long totalSizeOfFile) { URL uploadPartURL = this.sessionInfo.getSessionEndpoints().getUploadPartEndpoint(); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), ...
[ "Uploads chunk of a stream to an open upload session.\n@param stream the stream that is used to read the chunck using the offset and part size.\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last...
[ "Parses the dictionary from an InputStream.\n\n@param client The SolrClient instance object.\n@param lang The language of the dictionary.\n@param is The InputStream object.\n@param documents List to put the assembled SolrInputObjects into.\n@param closeStream boolean flag that determines whether to close the inputs...
public boolean overrides(Link other) { if (other.getStatus() == LinkStatus.ASSERTED && status != LinkStatus.ASSERTED) return false; else if (status == LinkStatus.ASSERTED && other.getStatus() != LinkStatus.ASSERTED) return true; // the two links are from equivalent sources ...
[ "Returns true if the information in this link should take\nprecedence over the information in the other link." ]
[ "Add an entry to the cache.\n@param key key to use.\n@param value access token information to store.", "Updates the store definition object and the retention time based on the\nupdated store definition", "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n...
public void cache(String key, Object obj, int expiration) { H.Session session = this.session; if (null != session) { session.cache(key, obj, expiration); } else { app().cache().put(key, obj, expiration); } }
[ "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache" ]
[ "Use this API to save cachecontentgroup.", "Set the menu's width in pixels.", "Arbitrarily resolve the inconsistency by choosing the first object if\nthere is one.\n\n@param values The list of objects\n@return A single value, if one exists, taken from the input list.", "Use this API to delete onlinkipv6prefix...
public Object getFieldByAlias(String alias) { return getCachedValue(getParentFile().getCustomFields().getFieldByAlias(FieldTypeClass.TASK, alias)); }
[ "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value" ]
[ "Write resource assignment workgroup.\n\n@param record resource assignment workgroup instance\n@throws IOException", "Use this API to add cachepolicylabel.", "return a prepared DELETE Statement fitting for the given ClassDescriptor", "Sets the value associated with the given key; if the the key is one\nof the...
public Info getInfo() { BoxAPIConnection api = this.getAPI(); URL url = COLLABORATION_URL_TEMPLATE.build(api.getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObjec...
[ "Gets information about this collaboration.\n\n@return info about this collaboration." ]
[ "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder", "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character ...
public Plugin[] getPlugins(Boolean onlyValid) { Configuration[] configurations = ConfigurationService.getInstance().getConfigurations(Constants.DB_TABLE_CONFIGURATION_PLUGIN_PATH); ArrayList<Plugin> plugins = new ArrayList<Plugin>(); if (configurations == null) { return new Plugin[...
[ "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set" ]
[ "Gets the uuid from response.\n\n@param myResponse\nthe my response\n@return the uuid from response", "Extract calendar data from the file.\n\n@throws SQLException", "Adds a Statement.\n\n@param rank\nrank of the statement\n@param subject\nrdf resource that refers to the statement", "Say whether this characte...
public void setCustomRequest(int pathId, String customRequest, String clientUUID) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { int profileId = EditService.getProfileIdFromPathID(pathId); statement = sqlConnection.prepareStat...
[ "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client" ]
[ "Use this API to fetch a appfwglobal_auditnslogpolicy_binding resources.", "Adds format information to eval.", "Set the named arguments.\n\n@param vars\nthe new named arguments", "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@r...
private void complete(final InstallationManager.InstallationModification modification, final FinalizeCallback callback) { final List<File> processed = new ArrayList<File>(); List<File> reenabled = Collections.emptyList(); List<File> disabled = Collections.emptyList(); try { t...
[ "Complete the current operation and persist the current state to the disk. This will also trigger the invalidation\nof outdated modules.\n\n@param modification the current modification\n@param callback the completion callback" ]
[ "Write a comma to the output stream if required.", "return currently-loaded Proctor instance, throwing IllegalStateException if not loaded", "Get a property as a json array or default.\n\n@param key the property name\n@param defaultValue default", "Notifies that multiple header items are inserted.\n\n@param p...
private void processCalendar(MapRow row) { ProjectCalendar calendar = m_project.addCalendar(); Map<UUID, List<DateRange>> dayTypeMap = processDayTypes(row.getRows("DAY_TYPES")); calendar.setName(row.getString("NAME")); processRanges(dayTypeMap.get(row.getUUID("SUNDAY_DAY_TYPE")), calendar....
[ "Extract data for a single calendar.\n\n@param row calendar data" ]
[ "Handle interval change.\n@param event the change event.", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Retur...
@Override @SuppressWarnings("unchecked") public ChronoLocalDateTime<EthiopicDate> localDateTime(TemporalAccessor temporal) { return (ChronoLocalDateTime<EthiopicDate>) super.localDateTime(temporal); }
[ "Obtains a Ethiopic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise.", "Join the Collection of Strings using the specified delimiter.\n\n@param s\nThe String collection\n@param delimiter\nThe delimiter String\n@return The joine...
public void processSplitData(Task task, List<TimephasedWork> timephasedComplete, List<TimephasedWork> timephasedPlanned) { Date splitsComplete = null; TimephasedWork lastComplete = null; TimephasedWork firstPlanned = null; if (!timephasedComplete.isEmpty()) { lastComplete = tim...
[ "Process the timephased resource assignment data to work out the\nsplit structure of the task.\n\n@param task parent task\n@param timephasedComplete completed resource assignment work\n@param timephasedPlanned planned resource assignment work" ]
[ "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "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>}", "This m...
public static final Integer parseInteger(String value) { return (value == null || value.length() == 0 ? null : Integer.valueOf(Integer.parseInt(value))); }
[ "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value" ]
[ "Convert weekly recurrence days into a bit field.\n\n@param task recurring task\n@return bit field as a string", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of...
public void setGlobal(int pathId, Boolean global) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + " SET " + Constants.PAT...
[ "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise" ]
[ "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Read FTS file data from the configure...
@Override synchronized public V put(K key, V value) { V oldValue = this.get(key); try { super.put(key, value); writeBack(key, value); return oldValue; } catch(Exception e) { super.put(key, oldValue); writeBack(key, oldValue); ...
[ "Updates the value in HashMap and writeBack as Atomic step" ]
[ "read broker info for watching topics\n\n@param zkClient the zookeeper client\n@param topics topic names\n@return topic-&gt;(brokerid-0,brokerid-1...brokerid2-0,brokerid2-1...)", "Retrieve a work field.\n\n@param type field type\n@return Duration instance", "Returns an array of all declared fields in the give...
public static Diagram parseJson(String json, Boolean keepGlossaryLink) throws JSONException { JSONObject modelJSON = new JSONObject(json); return parseJson(modelJSON, keepGlossaryLink); }
[ "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException" ]
[ "Associate the batched Children with their owner object.\nLoop over owners", "Log a warning for the resource at the provided address and the given attributes. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\...
public Photoset create(String title, String description, String primaryPhotoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_CREATE); parameters.put("title", title); parameters.put("description", descriptio...
[ "Create a new photoset.\n\n@param title\nThe photoset title\n@param description\nThe photoset description\n@param primaryPhotoId\nThe primary photo id\n@return The new Photset\n@throws FlickrException" ]
[ "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the serve...
public static boolean isSinglePositionPrefix(FieldInfo fieldInfo, String prefix) throws IOException { if (fieldInfo == null) { throw new IOException("no fieldInfo"); } else { String info = fieldInfo.getAttribute( MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION...
[ "Checks if is single position prefix.\n\n@param fieldInfo\nthe field info\n@param prefix\nthe prefix\n@return true, if is single position prefix\n@throws IOException\nSignals that an I/O exception has occurred." ]
[ "Sets the specified integer attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Initializes the persistence strategy to be used when accessing the datastore. In particular, all the required\ncaches will be configured and initialized.\n\n@par...
protected Element createLineElement(float x1, float y1, float x2, float y2) { HtmlDivLine line = new HtmlDivLine(x1, y1, x2, y2); String color = colorString(getGraphicsState().getStrokingColor()); StringBuilder pstyle = new StringBuilder(50); pstyle.append("left:").append(style.form...
[ "Create an element that represents a horizntal or vertical line.\n@param x1\n@param y1\n@param x2\n@param y2\n@return the created DOM element" ]
[ "Throws an IllegalStateException when the given value is not null.\n@return the value", "Restore the recorded state from the rollback xml.\n\n@param target the patchable target\n@param rollbackPatchId the rollback patch id\n@param patchType the the current patch type\n@param history the rec...