query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public static byte[] domainControllerDataToByteBuffer(List<DomainControllerData> data) throws Exception { final ByteArrayOutputStream out_stream = new ByteArrayOutputStream(512); byte[] result; try (DataOutputStream out = new DataOutputStream(out_stream)) { Iterator<DomainControllerD...
[ "Write the domain controller data to a byte buffer.\n\n@param data the domain controller data\n@return the byte buffer\n@throws Exception" ]
[ "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return...
public static String getInputValueName( @Nullable final String inputPrefix, @Nonnull final BiMap<String, String> inputMapper, @Nonnull final String field) { String name = inputMapper == null ? null : inputMapper.inverse().get(field); if (name == null) { if...
[ "Calculate the name of the input value.\n\n@param inputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param inputMapper the name mapper\n@param field the field containing the value" ]
[ "Checks the initialization-method of given class descriptor.\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", "Get transformer to use.\n\n@return transformation to ...
public static int getLineNumber(Member member) { if (!(member instanceof Method || member instanceof Constructor)) { // We are not able to get this info for fields return 0; } // BCEL is an optional dependency, if we cannot load it, simply return 0 if (!Reflecti...
[ "Try to get the line number associated with the given member.\n\nThe reflection API does not expose such an info and so we need to analyse the bytecode. Unfortunately, it seems there is no way to get this kind of\ninformation for fields. Moreover, the <code>LineNumberTable</code> attribute is just optional, i.e. th...
[ "For creating regular columns\n@return", "Return true if the values of the two vectors are equal when cast as ints.\n\n@param a first vector to compare\n@param b second vector to compare\n@return true if the values of the two vectors are equal when cast as ints", "Checks if the name of the file follows the vers...
private static String getBundle(String friendlyName, String className, int truncate) { try { cl.loadClass(className); int start = className.length(); for (int i = 0; i < truncate; ++i) start = className.lastIndexOf('.', start - 1); final String bundle = className.substring(0, start); retur...
[ "to check availability, then class name is truncated to bundle id" ]
[ "Attach a component to this scene object.\n\nEach scene object has a list of components that may\nbe attached to it. Only one component of a particular type\ncan be attached. Components are retrieved based on their type.\n\n@return true if component is attached, false if a component of that class is already attache...
@SuppressWarnings("unchecked") protected String addPostRunDependent(Appliable<? extends Indexable> appliable) { TaskGroup.HasTaskGroup dependency = (TaskGroup.HasTaskGroup) appliable; return this.addPostRunDependent(dependency); }
[ "Add an appliable \"post-run\" dependent for this task item.\n\n@param appliable the appliable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated \"post-run\" dependent" ]
[ "Generates a file of random data in a format suitable for the DIEHARD test.\nDIEHARD requires 3 million 32-bit integers.\n@param rng The random number generator to use to generate the data.\n@param outputFile The file that the random data is written to.\n@throws IOException If there is a problem writing to the file...
public Date[] getDates() { int frequency = NumberHelper.getInt(m_frequency); if (frequency < 1) { frequency = 1; } Calendar calendar = DateHelper.popCalendar(m_startDate); List<Date> dates = new ArrayList<Date>(); switch (m_recurrenceType) { case DA...
[ "Retrieve the set of start dates represented by this recurrence data.\n\n@return array of start dates" ]
[ "Get a bean from the application context. Returns null if the bean does not exist.\n@param name name of bean\n@param requiredType type of bean\n@return the bean or null", "Creates a decorator bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return a Bean"...
@Override public <K, V> StoreClient<K, V> getStoreClient(final String storeName, final InconsistencyResolver<Versioned<V>> resolver) { // wrap it in LazyStoreClient here so any direct calls to this method // returns a lazy client return new ...
[ "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return" ]
[ "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise", "Use this API to update spilloverpolicy.", "Determine whether the user has followed bean-like naming convention or not.", "Processes the template for all ...
private long getEndTime(ISuite suite, IInvokedMethod method) { // Find the latest end time for all tests in the suite. for (Map.Entry<String, ISuiteResult> entry : suite.getResults().entrySet()) { ITestContext testContext = entry.getValue().getTestContext(); for (ITes...
[ "Returns the timestamp for the time at which the suite finished executing.\nThis is determined by finding the latest end time for each of the individual\ntests in the suite.\n@param suite The suite to find the end time of.\n@return The end time (as a number of milliseconds since 00:00 1st January 1970 UTC)." ]
[ "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Constraint that ensures that the field has ...
public static boolean isBadXmlCharacter(char c) { boolean cDataCharacter = c < '\u0020' && c != '\t' && c != '\r' && c != '\n'; cDataCharacter |= (c >= '\uD800' && c < '\uE000'); cDataCharacter |= (c == '\uFFFE' || c == '\uFFFF'); return cDataCharacter; }
[ "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise" ]
[ "Provides a ready to use diff update for our adapter based on the implementation of the\nstandard equals method from Object.\n\n@param newList to refresh our content", "Returns the list of people who have favorited a given photo.\n\nThis method does not require authentication.\n\n@param photoId\n@param perPage\n@...
public String getSample(int line, int column, Janitor janitor) { String sample = null; String text = source.getLine(line, janitor); if (text != null) { if (column > 0) { String marker = Utilities.repeatString(" ", column - 1) + "^"; if (column > 40) ...
[ "Returns a sampling of the source at the specified line and column,\nof null if it is unavailable." ]
[ "Gets the uuid from response.\n\n@param myResponse\nthe my response\n@return the uuid from response", "Finds an Object of the specified type.\n\n@param <T> Object type.\n@param classType The class of type T.\n@param id The document _id field.\n@param rev The document _rev field.\n@return An obj...
protected boolean checkvalue(String colorvalue) { boolean valid = validateColorValue(colorvalue); if (valid) { if (colorvalue.length() == 4) { char[] chr = colorvalue.toCharArray(); for (int i = 1; i < 4; i++) { String foo = String.valueOf...
[ "Validates the inputed color value.\n@param colorvalue the value of the color\n@return true if the inputed color value is valid" ]
[ "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of...
public Map<String, CmsCategory> getReadCategory() { if (null == m_categories) { m_categories = CmsCollectionsGenericWrapper.createLazyMap(new Transformer() { public Object transform(Object categoryPath) { try { CmsCategoryService catServ...
[ "Transforms the category path of a category to the category.\n@return a map from root or site path to category." ]
[ "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object", "Retrieve the version number", "Creates n...
public void growMaxLength( int arrayLength , boolean preserveValue ) { if( arrayLength < 0 ) throw new IllegalArgumentException("Negative array length. Overflow?"); // see if multiplying numRows*numCols will cause an overflow. If it won't then pick the smaller of the two if( numRows ...
[ "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false...
[ "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character...
public Collection<User> getFavorites(String photoId, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_FAVORITES); parameters.put("photo_id", photoId); if (perPage > 0) { ...
[ "Returns the list of people who have favorited a given photo.\n\nThis method does not require authentication.\n\n@param photoId\n@param perPage\n@param page\n@return List of {@link com.flickr4java.flickr.people.User}" ]
[ "Returns all the dependencies of a module\n\n@param module Module\n@return List<Dependency>", "Stop listening for device announcements. Also discard any announcements which had been received, and\nnotify any registered listeners that those devices have been lost.", "Searches for all annotations of the given typ...
public <V> V detach(final AttachmentKey<V> key) { assert key != null; return key.cast(contextAttachments.remove(key)); }
[ "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}." ]
[ "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characte...
public void setDateAttribute(String name, Date value) { ensureAttributes(); Attribute attribute = new DateAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
[ "Sets the specified date 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" ]
[ "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Fetch a value from the Hashmap .\n\n@param firstKey\nfirst key\n@param secondKey\nsecond key\n@return the element or null.", "Request the list of all tracks in the specified slot, given a dbserve...
public static final Color getColor(byte[] data, int offset) { Color result = null; if (getByte(data, offset + 3) == 0) { int r = getByte(data, offset); int g = getByte(data, offset + 1); int b = getByte(data, offset + 2); result = new Color(r, g, b); } ...
[ "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance" ]
[ "Convert a Planner date-time value into a Java date.\n\n20070222T080000Z\n\n@param value Planner date-time\n@return Java Date instance", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "Returns whether this represents a valid host name or address format.\n@return", "Up...
public String getResourcePath() { switch (resourceType) { case ANDROID_ASSETS: return assetPath; case ANDROID_RESOURCE: return resourceFilePath; case LINUX_FILESYSTEM: return filePath; case NETWORK: return url.getPath(); case INPUT_STRE...
[ "Returns the full path of the resource file with extension.\n\n@return path of the GVRAndroidResource. May return null if the\nresource is not associated with any file" ]
[ "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "This met...
public static Chart getMSDLineChart(Trajectory t, int lagMin, int lagMax) { return getMSDLineChart(t, lagMin, lagMax, new MeanSquaredDisplacmentFeature(t, lagMin)); }
[ "Plots the MSD curve for trajectory t.\n@param t List of trajectories\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds" ]
[ "Verifies if the new value is different from the field's old value. It's\nuseful, for example, in NoSQL databases that replicates data between\nservers. This verification prevents to mark a field as modified and to be\nreplicated needlessly.\n\n@param field\nthe field that we are checking before to be modified\n@pa...
@SuppressWarnings("unchecked") public static void executeCommand(String[] args) throws IOException { OptionParser parser = getParser(); // declare parameters List<String> metaKeys = null; String url = null; // parse command-line input ar...
[ "Parses command-line and checks if metadata is consistent across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
[ "Given a list of typedDependencies, returns true if the node \"node\" is the\ngovernor of a conj relation with a dependent which is not a preposition\n\n@param node\nA node in this GrammaticalStructure\n@param list\nA list of typedDependencies\n@return true If node is the governor of a conj relation in the list wit...
public static InstalledIdentity load(final InstalledImage installedImage, final ProductConfig productConfig, List<File> moduleRoots, final List<File> bundleRoots) throws IOException { return LayersFactory.load(installedImage, productConfig, moduleRoots, bundleRoots); }
[ "Load the InstalledIdentity configuration based on the module.path\n\n@param installedImage the installed image\n@param productConfig the product config\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the available layers\n@throws IOException" ]
[ "Updates the polling state from a PUT or PATCH operation.\n\n@param response the response from Retrofit REST call\n@throws CloudException thrown if the response is invalid\n@throws IOException thrown by deserialization", "This method retrieves a double of the specified type,\nbelonging to the item with the specif...
@SuppressWarnings("WeakerAccess") public int getPlayerDBServerPort(int player) { ensureRunning(); Integer result = dbServerPorts.get(player); if (result == null) { return -1; } return result; }
[ "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unkno...
[ "This will set the last nestingLevel elements in the dotPositions to the values present in the dollarPositions.\nThe rest will be set to -1.\n\n<p>In another words the dotPositions array will contain the rightmost dollar positions.\n\n@param dollarPositions the positions of the $ in the binary class name\n@param do...
public boolean checkContains(String uri, String[] patterns) { for (String pattern : patterns) { if (pattern.length() > 0) { if (uri.contains(pattern)) { return true; } } } return false; }
[ "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns" ]
[ "Filter unsafe or unnecessary request.\n\n@param nodeDataMapValidSource\nthe node data map valid source\n@param nodeDataMapValidSafe\nthe node data map valid safe", "Adds the correct load instruction based on the type descriptor\n\n@param code the bytecode to add the instruction to\n@param type the type o...
public static void addToMediaStore(Context context, File file) { String[] path = new String[]{file.getPath()}; MediaScannerConnection.scanFile(context, path, null, null); }
[ "another media scan way" ]
[ "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException", "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", "This method is called ...
protected static boolean fileDoesNotExist(String file, String path, String dest_dir) { File f = new File(dest_dir); if (!f.isDirectory()) return false; String folderPath = createFolderPath(path); f = new File(f, folderPath); File javaFile = new File(f,...
[ "Method to know if already exists one file with the same name in the same\nfolder\n\n@param scenario_name\n@param path\n@param dest_dir\n@return true when the file does not exist" ]
[ "Convenience extension, to generate traced code.", "Returns a module\n\n@param moduleId String\n@return DbModule", "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param se...
public static boolean compareAnnotatedParameters(AnnotatedParameter<?> p1, AnnotatedParameter<?> p2) { return compareAnnotatedCallable(p1.getDeclaringCallable(), p2.getDeclaringCallable()) && p1.getPosition() == p2.getPosition() && compareAnnotated(p1, p2); }
[ "Compares two annotated parameters and returns true if they are equal" ]
[ "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order", "Add a '&lt;=' clause so the column must be less-than or equals-to the value.", "Returns the indices that would sort an array.\n\n@param array Array.\n@param ascending Ascen...
public synchronized void initTaskSchedulerIfNot() { if (scheduler == null) { scheduler = Executors .newSingleThreadScheduledExecutor(DaemonThreadFactory .getInstance()); CapacityAwareTaskScheduler runner = new CapacityAwareTaskScheduler();...
[ "as it is daemon thread\n\nTODO when release external resources should shutdown the scheduler." ]
[ "Initializes unspecified sign properties using available defaults\nand global settings.", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array,...
public static PersistenceStrategy<?, ?, ?> getInstance( CacheMappingType cacheMapping, EmbeddedCacheManager externalCacheManager, URL configurationUrl, JtaPlatform jtaPlatform, Set<EntityKeyMetadata> entityTypes, Set<AssociationKeyMetadata> associationTypes, Set<IdSourceKeyMetadata> idSourceTypes )...
[ "Returns a persistence strategy based on the passed configuration.\n\n@param cacheMapping the selected {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType}\n@param externalCacheManager the infinispan cache manager\n@param configurationUrl the location of the configuration file\n@param jtaPlatform t...
[ "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Returns the query string curre...
private void setViewPagerScroller() { try { Field scrollerField = ViewPager.class.getDeclaredField("mScroller"); scrollerField.setAccessible(true); Field interpolatorField = ViewPager.class.getDeclaredField("sInterpolator"); interpolatorField.setAccessible(true); ...
[ "set ViewPager scroller to change animation duration when sliding" ]
[ "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process", "Build the crosstab. Throws LayoutException if anything is wrong\n@return", "Wrap getOperationStatus to avoid throwin...
private static boolean validateLocalFileRecord(FileChannel channel, long startLocRecord, long compressedSize) throws IOException { ByteBuffer lfhBuffer = getByteBuffer(LOCLEN); read(lfhBuffer, channel, startLocRecord); if (lfhBuffer.limit() < LOCLEN || getUnsignedInt(lfhBuffer, 0) != LOCSIG) { ...
[ "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known" ]
[ "Given the initial and final cluster dumps it into the output directory\n\n@param currentCluster Initial cluster metadata\n@param finalCluster Final cluster metadata\n@param outputDirName Output directory where to dump this file\n@param filePrefix String to prepend to the initial & final cluster\nmetadata files\n@t...
public AssemblyResponse cancelAssembly(String url) throws RequestException, LocalOperationException { Request request = new Request(this); return new AssemblyResponse(request.delete(url, new HashMap<String, Object>())); }
[ "cancels a running assembly.\n\n@param url full url of the Assembly.\n@return {@link AssemblyResponse}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
[ "Use this API to expire cachecontentgroup.", "Returns the version of Jenkins Artifactory Plugin or empty string if not found\n\n@return the version of Jenkins Artifactory Plugin or empty string if not found", "Use this API to update gslbsite resources.", "Render json.\n\n@param o\nthe o\n@return the string", ...
private static void writeNumber(Class<?> numberClass, Number value, CharBuf buffer) { if (numberClass == Integer.class) { buffer.addInt((Integer) value); } else if (numberClass == Long.class) { buffer.addLong((Long) value); } else if (numberClass == BigInteger.class) { ...
[ "Serializes Number value and writes it into specified buffer." ]
[ "Finds an entity given its primary key.\n\n@throws RowNotFoundException\nIf no such object was found.\n@throws TooManyRowsException\nIf more that one object was returned for the given ID.", "Gets the numeric codes. Setting it to -1 search for currencies that have no numeric code.\n\n@return the query for chaining...
public void setResourceCalendar(ProjectCalendar calendar) { set(ResourceField.CALENDAR, calendar); if (calendar == null) { setResourceCalendarUniqueID(null); } else { calendar.setResource(this); setResourceCalendarUniqueID(calendar.getUniqueID()); ...
[ "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar" ]
[ "Add the string representation of the given object to this sequence. The given indentation will be prepended to\neach line except the first one if the object has a multi-line string representation.\n\n@param object\nthe appended object.\n@param indentation\nthe indentation string that should be prepended. May not b...
private static int getBlockLength(String text, int offset) { int startIndex = offset; boolean finished = false; char c; while (finished == false) { c = text.charAt(offset); switch (c) { case '\r': case '\n': case '}': ...
[ "Calculates the length of the next block of RTF data.\n\n@param text RTF data\n@param offset current offset into this data\n@return block length" ]
[ "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Get the real Object for already materialized Handler\n\n@param objectOrProxy\n@return Object or null if the Handel is not materialized", "Roll the java.util.Time forward or backward.\n\n@param startDate - The sta...
public DbArtifact getArtifact(final String gavc) { final DbArtifact artifact = repositoryHandler.getArtifact(gavc); if(artifact == null){ throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND) .entity("Artifact " + gavc + " does not exist.").build()...
[ "Return an artifact regarding its gavc\n\n@param gavc String\n@return DbArtifact" ]
[ "Converts the given string to a clob object\n\n@param stringName string name to clob\n@param sqlConnection Connection object\n@return Clob object or NULL", "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task", "Handling out request.\n\n@pa...
private String listToCSV(List<String> list) { String csvStr = ""; for (String item : list) { csvStr += "," + item; } return csvStr.length() > 1 ? csvStr.substring(1) : csvStr; }
[ "Concat a List into a CSV String.\n@param list list to concat\n@return csv string" ]
[ "a specialized version of solve that avoid additional checks that are not needed.", "Does the slice contain only 7-bit ASCII characters.", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calend...
public void setDay(Day d) { if (m_day != null) { m_parentCalendar.removeHoursFromDay(this); } m_day = d; m_parentCalendar.attachHoursToDay(this); }
[ "Set day.\n\n@param d day instance" ]
[ "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by ...
public static List<StoreDefinition> validateRebalanceStore(List<StoreDefinition> storeDefList) { List<StoreDefinition> returnList = new ArrayList<StoreDefinition>(storeDefList.size()); for(StoreDefinition def: storeDefList) { if(!def.isView() && !canRebalanceList.contains(def.getType())) { ...
[ "Given a list of store definitions, makes sure that rebalance supports all\nof them. If not it throws an error.\n\n@param storeDefList List of store definitions\n@return Filtered list of store definitions which rebalancing supports" ]
[ "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Updates the text style according to a new te...
public static List<Versioned<byte[]>> resolveVersions(List<Versioned<byte[]>> values) { List<Versioned<byte[]>> resolvedVersions = new ArrayList<Versioned<byte[]>>(values.size()); // Go over all the values and determine whether the version is // acceptable for(Versioned<byte[]> value: va...
[ "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution" ]
[ "Use this API to fetch all the systementitydata resources that are configured on netscaler.\nThis uses systementitydata_args which is a way to provide additional arguments while fetching the resources.", "Returns the primary port of the server.\n\n@return the primary {@link ServerPort} if the server is started. {...
public static boolean isInteger(CharSequence self) { try { Integer.valueOf(self.toString().trim()); return true; } catch (NumberFormatException nfe) { return false; } }
[ "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2" ]
[ "Checks if a given number is in the range of a byte.\n\n@param number\na number which should be in the range of a byte (positive or negative)\n\n@see java.lang.Byte#MIN_VALUE\n@see java.lang.Byte#MAX_VALUE\n\n@return number as a byte (rounding might occur)", "Create a collection object of the given collection typ...
public static base_response delete(nitro_service client, String serverip) throws Exception { ntpserver deleteresource = new ntpserver(); deleteresource.serverip = serverip; return deleteresource.delete_resource(client); }
[ "Use this API to delete ntpserver of given name." ]
[ "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target", "Plots the MSD curve with the trajectory t and adds the fitted model for directed motion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = el...
protected void showStep(A_CmsSetupStep step) { Window window = newWindow(); window.setContent(step); window.setCaption(step.getTitle()); A_CmsUI.get().addWindow(window); window.center(); }
[ "Shows the given step.\n\n@param step the step" ]
[ "Send a failed operation response.\n\n@param context the request context\n@param errorCode the error code\n@param message the operation message\n@throws IOException for any error", "Sets the server groups for the deployment.\n\n@param serverGroups the server groups to set\n\n@return this deployment", "Returns t...
public T copy() { T ret = createLike(); ret.getMatrix().set(this.getMatrix()); return ret; }
[ "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix." ]
[ "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually id...
public static DMatrixRMaj wrap(int numRows , int numCols , double []data ) { DMatrixRMaj s = new DMatrixRMaj(); s.data = data; s.numRows = numRows; s.numCols = numCols; return s; }
[ "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Reference...
[ "Function to filter files based on defined rules.", "Adds custom header to request\n\n@param key\n@param value", "returns a collection of Reader LockEntries for object obj.\nIf now LockEntries could be found an empty Vector is returned.", "Returns a new color with a new value of the specified HSL\ncomponent."...
private void processOutlineCodeValues() throws IOException { DirectoryEntry outlineCodeDir = (DirectoryEntry) m_projectDir.getEntry("TBkndOutlCode"); FixedMeta fm = new FixedMeta(new DocumentInputStream(((DocumentEntry) outlineCodeDir.getEntry("FixedMeta"))), 10); FixedData fd = new FixedData(fm, n...
[ "Reads outline code custom field values and populates container." ]
[ "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "Creates an empty block style definition.\n@return", "Set the channel. This will return whether the chann...
public void merge(GVRSkeleton newSkel) { int numBones = getNumBones(); List<Integer> parentBoneIds = new ArrayList<Integer>(numBones + newSkel.getNumBones()); List<String> newBoneNames = new ArrayList<String>(newSkel.getNumBones()); List<Matrix4f> newMatrices = new ArrayList<Matrix4f...
[ "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one" ]
[ "Use this API to add vlan.", "Returns the list of nodes which match the expression xpathExpr in the String domStr.\n\n@return the list of nodes which match the query\n@throws XPathExpressionException\n@throws IOException", "Validate the configuration.\n\n@param validationErrors where to put the errors.", "Whe...
public static double Entropy( int[] values ){ int n = values.length; int total = 0; double entropy = 0; double p; // calculate total amount of hits for ( int i = 0; i < n; i++ ) { total += values[i]; } if ( total != 0 ) ...
[ "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array." ]
[ "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Return all Clients for a profile\n\n@param profileId ID of profile clients b...
private void ensureToolValidForCreation(ExternalTool tool) { //check for the unconditionally required fields if(StringUtils.isAnyBlank(tool.getName(), tool.getPrivacyLevel(), tool.getConsumerKey(), tool.getSharedSecret())) { throw new IllegalArgumentException("External tool requires all of t...
[ "Ensure that a tool object is valid for creation. The API requires certain fields to be filled out.\nThrows an IllegalArgumentException if the conditions are not met.\n@param tool The external tool object we are trying to create" ]
[ "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Use this API to fetch statistics of streamidentifier_stats resource of given name .", "Get HttpResource...
protected void putResponse(JSONObject json, String param, Object value) { try { json.put(param, value); } catch (JSONException e) { logger.error("json write error", e); ...
[ "Append data to JSON response.\n@param param\n@param value" ]
[ "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string...
public static <T> List<T> toList(Iterable<T> items) { List<T> list = new ArrayList<T>(); addAll(list, items); return list; }
[ "Create a list out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a list.\n@return A list consisting of the items of the Iterable, in the same order." ]
[ "Use this API to fetch all the systemcollectionparam resources that are configured on netscaler.", "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "Add a rollback loader for a give patch.\n\n@param patchId the patch id.\n@param target the patchable target\n@throws XMLS...
public static final String printAccrueType(AccrueType value) { return (Integer.toString(value == null ? AccrueType.PRORATED.getValue() : value.getValue())); }
[ "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value" ]
[ "This is a method to stream slops to \"slop\" store when a node is detected\nfaulty in a streaming session\n\n@param key -- original key\n@param value -- original value\n@param storeName -- the store for which we are registering the slop\n@param failedNodeId -- the faulty node ID for which we register a slop\n@thro...
protected void reportWorked(int workIncrement, int currentUnitIndex) { if (this.progress != null) { if (this.progress.isCanceled()) { // Only AbortCompilation can stop the compiler cleanly. // We check cancellation again following the call to compile. ...
[ "Checks whether the compilation has been canceled and reports the given work increment to the compiler progress." ]
[ "Sets the specified boolean 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", "Loads configuration from InputStream. Later loads have lower priority.\n\n@param in InputStream to load from\n@since 1.2.0", "remove a converted object from th...
private MBeanServer getServerForName(String name) { try { MBeanServer mbeanServer = null; final ObjectName objectNameQuery = new ObjectName(name + ":type=Service,*"); for (final MBeanServer server : MBeanServerFactory.findMBeanServer(null)) { if (server.query...
[ "Returns an MBeanServer with the specified name\n\n@param name\n@return" ]
[ "Use this API to update snmpoption.", "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in...
public static systemsession get(nitro_service service, Long sid) throws Exception{ systemsession obj = new systemsession(); obj.set_sid(sid); systemsession response = (systemsession) obj.get_resource(service); return response; }
[ "Use this API to fetch systemsession resource of given name ." ]
[ "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object", "Demonstrates obtaining the request history data from a test run", "Wait to shutdown service\n\n@param executorService Executor service to shutdown\n@param timeOu...
public boolean classifySentenceStdin(DocumentReaderAndWriter<IN> readerWriter) throws IOException { BufferedReader is = new BufferedReader(new InputStreamReader(System.in, flags.inputEncoding)); String line; String text = ""; String eol = "\n"; String sentence = "<s>"; while ((line...
[ "Classify stdin by senteces seperated by blank line\n@param readerWriter\n@return\n@throws IOException" ]
[ "Returns the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.\n\n@param namespace the namespace referring to the undo collection.\n@return the undo collection representing the given namespace for recording documents that\nmay need to be r...
private long recover() throws IOException { checkMutable(); long len = channel.size(); ByteBuffer buffer = ByteBuffer.allocate(4); long validUpTo = 0; long next = 0L; do { next = validateMessage(channel, validUpTo, len, buffer); if (next >= 0) vali...
[ "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception" ]
[ "Returns a list of objects for each line in the spreadsheet, of the specified type.\n\n<p>\nIf the class is a view model then the objects will be properly instantiated (that is, using\n{@link DomainObjectContainer#newViewModelInstance(Class, String)}, with the correct\nview model memento); otherwise the objects wil...
public static int cudnnBatchNormalizationBackward( cudnnHandle handle, int mode, Pointer alphaDataDiff, Pointer betaDataDiff, Pointer alphaParamDiff, Pointer betaParamDiff, cudnnTensorDescriptor xDesc, /** same desc for x, dx, dy */ Pointer x, ...
[ "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient" ]
[ "Old SOAP client uses new SOAP service", "Translate the operation address.\n\n@param op the operation\n@return the new operation", "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "Use this API to ...
public <L extends Listener> void popEvent(Event<?, L> expected) { synchronized (this.stack) { final Event<?, ?> actual = this.stack.pop(); if (actual != expected) { throw new IllegalStateException(String.format( "Unbalanced pop: expected '%s' but e...
[ "Pops the top event off the current event stack. This action has to be\nperformed immediately after the event has been dispatched to all\nlisteners.\n\n@param <L> Type of the listener.\n@param expected The Event which is expected at the top of the stack.\n@see #pushEvent(Event)" ]
[ "Gets Widget bounds height\n@return height", "Use this API to flush cachecontentgroup resources.", "Closes the window containing the given component.\n\n@param component a component", "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@...
public boolean isAssociation(String targetTypeName, List<String> pathWithoutAlias) { OgmEntityPersister persister = getPersister( targetTypeName ); Type propertyType = persister.getPropertyType( pathWithoutAlias.get( 0 ) ); return propertyType.isAssociationType(); }
[ "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise" ]
[ "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log.", "Creates the string mappings.\n\n@param mtasTok...
private void readException(ProjectCalendar bc, Project.Calendars.Calendar.Exceptions.Exception exception) { Date fromDate = exception.getTimePeriod().getFromDate(); Date toDate = exception.getTimePeriod().getToDate(); // Vico Schedule Planner seems to write start and end dates to FromTime and ToTi...
[ "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data" ]
[ "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original...
@Override public void visit(Rule rule) { Rule copy = null; Filter filterCopy = null; if (rule.getFilter() != null) { Filter filter = rule.getFilter(); filterCopy = copy(filter); } List<Symbolizer> symsCopy = new ArrayList<Symbolizer>(); for (Symbolizer sym : rule.symbolizers()) { if (!skipSymbol...
[ "Overridden to skip some symbolizers." ]
[ "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Adds a column pair to this foreignkey.\n\n@param localC...
public static IndexedContainer getGroupsOfUser( CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, Function<CmsGroup, CmsCssIcon> iconProvider) { IndexedContainer container = new IndexedContainer(); contain...
[ "Gets container with alls groups of a certain user.\n\n@param cms cmsobject\n@param user to find groups for\n@param caption caption property\n@param iconProp property\n@param ou ou\n@param propStatus status property\n@param iconProvider the icon provider\n@return Indexed Container" ]
[ "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Returns the length of the message in bytes as it is encoded on the wire.\n\nApple require the message to be of length 255 bytes or less.\n\n@return length of encoded ...
public static void applyMultiIconTo(Drawable icon, int iconColor, Drawable selectedIcon, int selectedIconColor, boolean tinted, ImageView imageView) { //if we have an icon then we want to set it if (icon != null) { //if we got a different color for the selectedIcon we need a StateList ...
[ "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@param selectedIconColor\n@param tinted\n@param imageView" ]
[ "Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash of input.\n@throws IllegalArgumentException if {@code input} is blank.", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "Prepare the options by...
public static float calcDet(Vector3 a ,Vector3 b, Vector3 c) { return (a.x*(b.y-c.y)) - (a.y*(b.x-c.x)) + (b.x*c.y-b.y*c.x); }
[ "checks if the triangle is not re-entrant" ]
[ "Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "This method removes all RTF formatting from a given piece of text.\n\n@param text Text from which the RTF formatting is to be removed.\n@return Plain text"...
public static ForwardCurveInterpolation createForwardCurveFromDiscountFactors(String name, double[] times, RandomVariable[] givenDiscountFactors, double paymentOffset) { ForwardCurveInterpolation forwardCurveInterpolation = new ForwardCurveInterpolation(name, paymentOffset, InterpolationEntityForward.FORWARD, null); ...
[ "Create a forward curve from given times and discount factors.\n\nThe forward curve will have times.length-1 fixing times from times[0] to times[times.length-2]\n<code>\nforward[timeIndex] = (givenDiscountFactors[timeIndex]/givenDiscountFactors[timeIndex+1]-1.0) / (times[timeIndex+1] - times[timeIndex]);\n</code>\n...
[ "Replaces sequences of whitespaces with tabs within a line.\n\n@param self A line to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyA...
public static boolean isAvailable() throws Exception { try { Registry myRegistry = LocateRegistry.getRegistry("127.0.0.1", port); com.groupon.odo.proxylib.hostsedit.rmi.Message impl = (com.groupon.odo.proxylib.hostsedit.rmi.Message) myRegistry.lookup(SERVICE_NAME); return tru...
[ "Returns whether or not the host editor service is available\n\n@return\n@throws Exception" ]
[ "Writes a list of UDF types.\n\n@author lsong\n@param type parent entity type\n@param mpxj parent entity\n@return list of UDFAssignmentType instances", "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset off...
public CmsJspInstanceDateBean getToInstanceDate() { if (m_instanceDate == null) { m_instanceDate = new CmsJspInstanceDateBean(getToDate(), m_cms.getRequestContext().getLocale()); } return m_instanceDate; }
[ "Converts a date to an instance date bean.\n@return the instance date bean." ]
[ "Create an embedded host controller.\n\n@param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.\n@param modulePath the location of the root of the module repository. May be {@code null} if the standard\nlocation under {@code jbossHomePath} should be used\n...
private void instanceAlreadyLoaded( final Tuple resultset, final int i, //TODO create an interface for this usage final OgmEntityPersister persister, final org.hibernate.engine.spi.EntityKey key, final Object object, final LockMode lockMode, final SharedSessionContractImplementor session) throws Hiber...
[ "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded" ]
[ "Get a new token.\n\n@return 14 character String", "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException", "Returns a new color with a new value of the specified HSL\ncomponent.", "Use this API to add sslaction re...
public Iterable<BoxLegalHoldAssignment.Info> getAssignments(String ... fields) { return this.getAssignments(null, null, DEFAULT_LIMIT, fields); }
[ "Returns iterable containing assignments for this single legal hold policy.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy." ]
[ "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes", ...
private void removeObservation( int index ) { final int N = y.numRows-1; final double d[] = y.data; // shift for( int i = index; i < N; i++ ) { d[i] = d[i+1]; } y.numRows--; }
[ "Removes an element from the observation matrix.\n\n@param index which element is to be removed" ]
[ "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Use this API to add systemuser.", "Use this API to update sslcertkey.", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotatio...
public void forAllIndexDescriptorColumns(String template, Properties attributes) throws XDocletException { String fields = _curIndexDescriptorDef.getProperty(PropertyHelper.OJB_PROPERTY_FIELDS); FieldDescriptorDef fieldDef; String name; for (CommaListIt...
[ "Processes the template for all index columns for the current index descriptor.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag type=\"block\"" ]
[ "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Query a player to determine...
public static nstimer_binding get(nitro_service service, String name) throws Exception{ nstimer_binding obj = new nstimer_binding(); obj.set_name(name); nstimer_binding response = (nstimer_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch nstimer_binding resource of given name ." ]
[ "Updates event definitions for all throwing events.\n@param def Definitions", "Adds all pairs from 'fromMap' to 'toMap' excluding once that matching the pattern", "Returns the URL of a classpath resource.\n\n@param resourceName\nThe name of the resource.\n\n@return The URL.", "Check config.\n\n@param context ...
public boolean getNumericBoolean(int field) { boolean result = false; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = Integer.parseInt(m_fields[field]) == 1; } return (result); }
[ "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "Set a new Cursor position if active and enabled.\n\n@param x x value of the position\n@param y y value of the position\n@param z z value of the position", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram hist...
protected void handleResponseOut(T message) throws Fault { Message reqMsg = message.getExchange().getInMessage(); if (reqMsg == null) { LOG.warning("InMessage is null!"); return; } // No flowId for oneway message Exchange ex = reqMsg.getExchange(); ...
[ "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault" ]
[ "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "Generates a vector clock with the provided values\n\n@param ...
protected void createNewFile(final File file) { try { file.createNewFile(); setFileNotWorldReadablePermissions(file); } catch (IOException e){ throw new RuntimeException(e); } }
[ "This creates a new audit log file with default permissions.\n\n@param file File to create" ]
[ "Parses formatter attributes.\n\n@param formatterLoc the node location\n@return the map of formatter attributes (unmodifiable)", "Merges two lists together.\n\n@param one first list\n@param two second list\n@return merged lists", "Get Rule\nGet a rule using the Rule ID\n@param ruleId Rule ID. (required)\n@retur...
PathAddress toPathAddress(final ObjectName name) { return ObjectNameAddressUtil.toPathAddress(rootObjectInstance.getObjectName(), getRootResourceAndRegistration().getRegistration(), name); }
[ "Convert an ObjectName to a PathAddress.\n\nPatterns are supported: there may not be a resource at the returned PathAddress but a resource model <strong>MUST</strong>\nmust be registered." ]
[ "Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference", "Obtain newline-delimited headers from response\n\n@param response HttpServletResponse to scan\n@return newline-delimited headers", "Used to create a new retention p...
public static void dumpMaterial(AiMaterial material) { for (AiMaterial.Property prop : material.getProperties()) { dumpMaterialProperty(prop); } }
[ "Dumps all properties of a material to stdout.\n\n@param material the material" ]
[ "Use this API to fetch statistics of service_stats resource of given name .", "Gets an entry point for the given deployment. If one does not exist it will be created. If the request controller is disabled\nthis will return null.\n\nEntry points are reference counted. If this method is called n times then {@link #...
private boolean isToIgnore(CtElement element) { if (element instanceof CtStatementList && !(element instanceof CtCase)) { if (element.getRoleInParent() == CtRole.ELSE || element.getRoleInParent() == CtRole.THEN) { return false; } return true; } return element.isImplicit() || element instanceof CtRefe...
[ "Ignore some element from the AST\n\n@param element\n@return" ]
[ "Last caller of this method will unregister the Mbean. All callers\ndecrement the counter.", "Delete the proxy history for the active profile\n\n@throws Exception exception", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "Notification that boot has completed suc...
public Collection<License> getInfo() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isEr...
[ "Fetches a list of available photo licenses for Flickr.\n\nThis method does not require authentication.\n\n@return A collection of License objects\n@throws FlickrException" ]
[ "Return the lines of a CharSequence as a List of String.\n\n@param self a CharSequence object\n@return a list of lines\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Obtains a local date in Discordian calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Discordia...
protected static Map<String, List<Statement>> addStatementToGroups(Statement statement, Map<String, List<Statement>> claims) { Map<String, List<Statement>> newGroups = new HashMap<>(claims); String pid = statement.getMainSnak().getPropertyId().getId(); if(newGroups.containsKey(pid)) { List<Statement> newGroup ...
[ "Adds a Statement to a given collection of statement groups.\nIf the statement id is not null and matches that of an existing statement,\nthis statement will be replaced.\n\n@param statement\n@param claims\n@return" ]
[ "Resolve the single type argument of the given generic interface against\nthe given target class which is assumed to implement the generic interface\nand possibly declare a concrete type for its type variable.\n@param clazz the target class to check against\n@param genericIfc the generic interface or superclass to ...
private static JsonParser newJsonParserForNode(JsonNode jsonNode) throws IOException { JsonParser parser = new JsonFactory().createParser(jsonNode.toString()); parser.nextToken(); return parser; }
[ "Create a JsonParser for a given json node.\n@param jsonNode the json node\n@return the json parser\n@throws IOException" ]
[ "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\ne...
public void seekToSeasonYear(String seasonString, String yearString) { Season season = Season.valueOf(seasonString); assert(season != null); seekToIcsEventYear(SEASON_ICS_FILE, yearString, season.getSummary()); }
[ "Seeks to the given season within the given year\n\n@param seasonString\n@param yearString" ]
[ "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file", "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bund...
protected String findPath(String start, String end) { if (start.equals(end)) { return start; } else { return findPath(start, parent.get(end)) + " -> " + end; } }
[ "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol" ]
[ "Use this API to clear Interface resources.", "Write correlation id to message.\n\n@param message the message\n@param correlationId the correlation id", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Return the available format ids."...
public void deleteLicense(final String licName) { final DbLicense dbLicense = getLicense(licName); repoHandler.deleteLicense(dbLicense.getName()); final FiltersHolder filters = new FiltersHolder(); final LicenseIdFilter licenseIdFilter = new LicenseIdFilter(licName); filters.ad...
[ "Delete a license from the repository\n\n@param licName The name of the license to remove" ]
[ "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", "Clones a BufferedImage.\n@param image the image to clone\n@return the cloned image", "Helper method to add cue list entries from a parsed ANLZ cue t...
public void stopServer() throws Exception { if (!externalDatabaseHost) { try (Connection sqlConnection = getConnection()) { sqlConnection.prepareStatement("SHUTDOWN").execute(); } catch (Exception e) { } try { server.stop(); ...
[ "Shutdown the server\n\n@throws Exception exception" ]
[ "Converts a vector into a quaternion.\nUsed for the direction of spot and directional lights\nCalled upon initialization and updates to those vectors\n\n@param d", "Unpause the server, allowing it to resume normal operations", "A Maven stub is a Maven Project for which we have found information, but the project...
private void writeComma() throws IOException { if (m_firstNameValuePair.peek().booleanValue()) { m_firstNameValuePair.pop(); m_firstNameValuePair.push(Boolean.FALSE); } else { m_writer.write(','); } }
[ "Write a comma to the output stream if required." ]
[ "Adds a member to this group with the specified role.\n@param user the member to be added to this group.\n@param role the role of the user in this group. Can be null to assign the default role.\n@return info about the new group membership.", "Determines the offset code of a forward contract from the name o...
void merge(Archetype flatParent, Archetype specialized) { expandAttributeNodes(specialized.getDefinition()); flattenCObject(RmPath.ROOT, null, flatParent.getDefinition(), specialized.getDefinition()); mergeOntologies(flatParent.getTerminology(), specialized.getTerminology()); if (flat...
[ "Merges a specialized archetype with its parent. Merge will be done in-place on the specialized parameter.\n\n@param flatParent Flat parent archetype\n@param specialized Specialized archetype" ]
[ "Calls afterMaterialization on all registered listeners in the reverse\norder of registration.", "Call batch tasks inside of a connection which may, or may not, have been \"saved\".", "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@p...
public static BoxRetentionPolicyAssignment.Info createAssignmentToMetadata(BoxAPIConnection api, String policyID, String templateID, ...
[ "Assigns a retention policy to all items with a given metadata template, optionally matching on fields.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param templateID the ID of the metadata template to assign the policy to.\n@param filte...
[ "Creates a new Logger instance for the specified name.", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "a small static helper to set the text color to a textView null save\n\n@param colorHolder\n@param textView\n@param colorDefault", "Read hints from a...
public static int rank( DMatrixRMaj A ) { SingularValueDecomposition_F64<DMatrixRMaj> svd = DecompositionFactory_DDRM.svd(A.numRows,A.numCols,false,true,true); if( svd.inputModified() ) { A = A.copy(); } if( !svd.decompose(A)) { throw new RuntimeException("SVD F...
[ "Returns the matrix's rank. Automatic selection of threshold\n\n@param A Matrix. Not modified.\n@return The rank of the decomposed matrix." ]
[ "Convenience method to determine if a character is special to the regex system.\n\n@param chr\nthe character to test\n\n@return is the character a special character.", "Invokes the setter on the bean with the supplied value.\n\n@param bean\nthe bean\n@param setMethod\nthe setter method for the field\n@param field...
@Override public List<Revision> getMatrixHistory(final int start, final int limit) throws StoreException { return delegate.getMatrixHistory(start, limit); }
[ "caching is not supported for this method" ]
[ "This method is called by the client to load the most recent list of resources.\nThis method should only be called by the service client.\n\n@param result the most recent list of resources.", "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and wi...
public Map<Integer, List<Row>> createTimeEntryMap(List<Row> rows) { Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>(); for (Row row : rows) { Integer workPatternID = row.getInteger("TIME_ENTRYID"); List<Row> list = map.get(workPatternID); if (list == null) ...
[ "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map" ]
[ "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\n@param buildInfoId\n@return", "Compute a singular-value decomposition of A.\n\n@return A DoubleMatrix[3]...
public static base_response update(nitro_service client, responderpolicy resource) throws Exception { responderpolicy updateresource = new responderpolicy(); updateresource.name = resource.name; updateresource.rule = resource.rule; updateresource.action = resource.action; updateresource.undefaction = resource...
[ "Use this API to update responderpolicy." ]
[ "Transforms a length according to the current transformation matrix.", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Configures a RequestBuilder...
public void addProfile(Object key, DescriptorRepository repository) { if (metadataProfiles.contains(key)) { throw new MetadataException("Duplicate profile key. Key '" + key + "' already exists."); } metadataProfiles.put(key, repository); }
[ "Add a metadata profile.\n@see #loadProfile" ]
[ "Prints the plan to a file.\n\n@param outputDirName\n@param plan", "Send a data to Incoming Webhook endpoint.", "Use this API to create sslfipskey.", "Use this API to add tmtrafficaction.", "Close all JDBC objects related to this connection.", "Replies the elements of the given map except the pair with th...
protected void parseCombineIntegerLists(TokenList tokens) { TokenList.Token t = tokens.getFirst(); if( t == null || t.next == null ) return; int numFound = 0; TokenList.Token start = null; TokenList.Token end = null; while( t != null ) { if( t.g...
[ "Looks for sequences of integer lists and combine them into one big sequence" ]
[ "Retrieves from all the Jenkins agents all the docker images, which have been registered for a specific build-info ID\nOnly images for which manifests have been captured are returned.\n\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Enable the use of the given controller type b...
public int rebalanceNode(final RebalanceTaskInfo stealInfo) { final RebalanceTaskInfo info = metadataStore.getRebalancerState() .find(stealInfo.getDonorId()); // Do we have the plan in the state? if(info == null) { throw new Volde...
[ "This function is responsible for starting the actual async rebalance\noperation. This is run if this node is the stealer node\n\n<br>\n\nWe also assume that the check that this server is in rebalancing state\nhas been done at a higher level\n\n@param stealInfo Partition info to steal\n@return Returns a id identify...
[ "Register a new DropPasteWorkerInterface.\n@param worker The new worker", "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Create a HashSet with the given initial values.\n\n@param values The values\n@param <T> The type.", "Create a mode...
public void removeMetadataProvider(MetadataProvider provider) { for (Set<MetadataProvider> providers : metadataProviders.values()) { providers.remove(provider); } }
[ "Removes a metadata provider so it will no longer be consulted to provide metadata for tracks loaded from any\nmedia.\n\n@param provider the metadata provider to remove." ]
[ "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Scans a set of classes for both ReaderListeners and Swagger annotations. All found listeners will\nbe instantiated before any of the classes are sca...
public String getStatement() throws SQLException { StringBuilder sb = new StringBuilder(); appendSql(null, sb, new ArrayList<ArgumentHolder>()); return sb.toString(); }
[ "Returns the associated SQL WHERE statement." ]
[ "This static method calculated the vega 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 opt...
public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel obj = new appflowpolicylabel(); obj.set_labelname(labelname); appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service); return response; }
[ "Use this API to fetch appflowpolicylabel resource of given name ." ]
[ "Given OGC PropertyIsLike Filter information, construct an SQL-compatible 'like' pattern.\n\nSQL % --> match any number of characters _ --> match a single character\n\nNOTE; the SQL command is 'string LIKE pattern [ESCAPE escape-character]' We could re-define the escape character,\nbut I'm not doing to do that in t...
public double getValue(ForwardCurveInterface forwardCurve, double swaprateVolatility) { double swaprate = swaprates[0]; for (double swaprate1 : swaprates) { if (swaprate1 != swaprate) { throw new RuntimeException("Uneven swaprates not allows for analytical pricing."); } } double[] swapTenor = new dou...
[ "This method returns the value of the product using a Black-Scholes model for the swap rate\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve on which to value the swap.\n@param swaprateVolatility The Black volatility.\n@return Value of this pro...
[ "Retrieves a specific range of child items in this folder.\n\n@param offset the index of the first child item to retrieve.\n@param limit the maximum number of children to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of child items.",...
protected boolean isItemAccepted(byte[] key) { boolean entryAccepted = false; if (!fetchOrphaned) { if (isKeyNeeded(key)) { entryAccepted = true; } } else { if (!StoreRoutingPlan.checkKeyBelongsToNode(key, nodeId, initialCluster, storeDef)) { ...
[ "Determines if entry is accepted. For normal usage, this means confirming that the key is\nneeded. For orphan usage, this simply means confirming the key belongs to the node.\n\n@param key\n@return true iff entry is accepted." ]
[ "The primary run loop of the event processor.", "delegate to each contained OJBIterator and release\nits resources.", "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param field...