query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public ParallelTaskBuilder prepareHttpHead(String url) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.getHttpMeta().setHttpMethod(HttpMethod.HEAD); cb.getHttpMeta().setRequestUrlPostfix(url); return cb; }
[ "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
[ "Type variables are not supported.\n\n@param value\n@return the type", "Method to close the file caseManager. It is called just one time, by the\nMASReader, once every test and stroy have been added.\n\n@param caseManager", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix...
static ReadMasterDomainModelUtil readMasterDomainResourcesForInitialConnect(final Transformers transformers, final Transformers.TransformationInputs transformationInputs, ...
[ "Used to read the domain model when a slave host connects to the DC\n\n@param transformers the transformers for the host\n@param transformationInputs parameters for the transformation\n@param ignoredTransformationRegistry registry of resources ignored by the transformation target\n@param domainRoot the root resourc...
[ "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{...
public DiscreteInterval minus(DiscreteInterval other) { return new DiscreteInterval(this.min - other.max, this.max - other.min); }
[ "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction" ]
[ "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external acces...
public static String getDateCreatedTimeRangeFilterQuery(String searchField, long startTime, long endTime) { String sStartTime = null; String sEndTime = null; // Convert startTime to ISO 8601 format if ((startTime > Long.MIN_VALUE) && (startTime < Long.MAX_VALUE)) { sStartTi...
[ "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the upper limit of the interval.\n@return Solr compatible query string." ]
[ "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementat...
public static void acceptsPartition(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_P, OPT_PARTITION), "partition id list") .withRequiredArg() .describedAs("partition-id-list") .withValuesSeparatedBy(',') .ofType(Integer.class); }
[ "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
[ "Handles a key change.\n\n@param event the key change event.\n@param allLanguages <code>true</code> for changing the key for all languages, <code>false</code> if the key should be changed only for the current language.\n@return result, indicating if the key change was successful.", "Checks if the required option ...
@SuppressWarnings("WeakerAccess") public static synchronized SlotReference getSlotReference(int player, CdjStatus.TrackSourceSlot slot) { Map<CdjStatus.TrackSourceSlot, SlotReference> playerMap = instances.get(player); if (playerMap == null) { playerMap = new HashMap<CdjStatus.TrackSourc...
[ "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code nu...
[ "Dump timephased work for an assignment.\n\n@param assignment resource assignment", "Use this API to fetch sslservice resource of given name .", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\...
@Override protected void onGraphDraw(Canvas _Canvas) { super.onGraphDraw(_Canvas); _Canvas.translate(-mCurrentViewport.left, -mCurrentViewport.top); drawBars(_Canvas); }
[ "region Override Methods" ]
[ "Gets the UTF-8 sequence length of the code point.\n\n@throws InvalidCodePointException if code point is not within a valid range", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\...
public static Pair<HashMap<Node, Integer>, HashMap<Node, Integer>> getDonorsAndStealersForBalance(final Cluster nextCandidateCluster, Map<Integer, List<Integer>> numPartitionsPerNodePerZone) { HashMap<Node, Integer> donorNodes = Maps.newHashMap(); H...
[ "Assign target number of partitions per node to specific node IDs. Then,\nseparates Nodes into donorNodes and stealerNodes based on whether the\nnode needs to donate or steal primary partitions.\n\n@param nextCandidateCluster\n@param numPartitionsPerNodePerZone\n@return a Pair. First element is donorNodes, second e...
[ "Stops download dispatchers.", "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain", "Traverses the test case annotations. Will inject a HiveShell in the test case tha...
public static String makePropertyName(String name) { char[] buf = new char[name.length() + 3]; int pos = 0; buf[pos++] = 's'; buf[pos++] = 'e'; buf[pos++] = 't'; for (int ix = 0; ix < name.length(); ix++) { char ch = name.charAt(ix); if (ix == 0) ch = Character.toUpperCase(c...
[ "public because it's used by other packages that use Duke" ]
[ "Used to ensure that the general footer label will be at the same Y position as the variables in the band.\n@param band\n@return", "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "Process the deployment root for the manifest.\n\n@param phaseContext the deploym...
public void signIn(String key, Collection<WebSocketConnection> connections) { if (connections.isEmpty()) { return; } Map<WebSocketConnection, WebSocketConnection> newMap = new HashMap<>(); for (WebSocketConnection conn : connections) { newMap.put(conn, conn); ...
[ "Sign in a group of connections to the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections" ]
[ "Reloads the synchronization config. This wipes all in-memory synchronization settings.", "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied da...
protected ClassDescriptor getClassDescriptor() { ClassDescriptor cld = (ClassDescriptor) m_classDescriptor.get(); if(cld == null) { throw new OJBRuntimeException("Requested ClassDescriptor instance was already GC by JVM"); } return cld; }
[ "Returns the classDescriptor.\n\n@return ClassDescriptor" ]
[ "We have obtained metadata for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this metadata\n@param data the metadata which we received", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Used by the slave host whe...
private FullTypeSignature getTypeSignature(Class<?> clazz) { StringBuilder sb = new StringBuilder(); if (clazz.isArray()) { sb.append(clazz.getName()); } else if (clazz.isPrimitive()) { sb.append(primitiveTypesMap.get(clazz).toString()); } else { sb.append('L').append(clazz.getName()).append(';'...
[ "get the type signature corresponding to given class\n\n@param clazz\n@return" ]
[ "Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert into the histogram", "returns a dynamic Proxy that implements all interfaces of the\nclass described by t...
private void internalWriteNameValuePair(String name, String value) throws IOException { writeComma(); writeNewLineIndent(); writeName(name); if (m_pretty) { m_writer.write(' '); } m_writer.write(value); }
[ "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value" ]
[ "Use this API to update dospolicy.", "Use this API to fetch aaauser_binding resource of given name .", "convenience factory method for the most usual case.", "Determine how many forked JVMs to use.", "Counts the amount of 'ch' at the start of this line optionally ignoring\nspaces.\n\n@param ch\nThe char to ...
public ContentAssistEntry createSnippet(final String proposal, final String label, final ContentAssistContext context) { final Procedure1<ContentAssistEntry> _function = (ContentAssistEntry it) -> { it.setLabel(label); }; return this.createProposal(proposal, context.getPrefix(), context, ContentAssist...
[ "Returns an entry of kind snippet with the given proposal and label and the prefix from the context, or null if the proposal is not valid.\n@since 2.16" ]
[ "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Merge two maps of configuration properties. If the original contains a mapping for the sam...
public int bindShader(GVRContext context, IRenderable rdata, GVRScene scene, boolean isMultiview) { String signature = getClass().getSimpleName(); GVRShaderManager shaderManager = context.getShaderManager(); GVRMaterial mtl = rdata.getMaterial(); synchronized (shaderManager) ...
[ "Select the specific vertex and fragment shader to use.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the vertex, material and light properties. This\nfunction may compile the shader if it does not already exist.\n\n@param context\nGVRContext\n@param rdata\nrend...
[ "Add a dependency to the graph\n\n@param dependency\n@param graph\n@param depth\n@param parentId", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "Ignore some element from the AST\n\n@param element\n@retur...
public static base_responses add(nitro_service client, clusterinstance resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { clusterinstance addresources[] = new clusterinstance[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i...
[ "Use this API to add clusterinstance resources." ]
[ "Factory method that builds the appropriate matcher for @match tags", "Declares additional internal data structures.", "Reads and consumes a number of characters from the underlying reader,\nfilling the byte array provided.\n\n@param holder A byte array which will be filled with bytes read from the underlying r...
private void generateCopyingPart(WrappingHint.Builder builder) { ImmutableCollection<CopyMethod> copyMethods = ImmutableMultimap.<String, CopyMethod>builder() .putAll(configuration.FIELD_TYPE_TO_COPY_METHODS) .putAll(userDefinedCopyMethods) .build() ...
[ "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder" ]
[ "Put a new value in map.\n\n@param key id of the value for looking up.\n@param value the value.", "Processes one of the menu responses that jointly constitute the track metadata, updating our\nfields accordingly.\n\n@param item the menu response to be considered", "Sets the current field definition derived from...
public void addValue(double value) { if (dataSetSize == dataSet.length) { // Increase the capacity of the array. int newLength = (int) (GROWTH_RATE * dataSetSize); double[] newDataSet = new double[newLength]; System.arraycopy(dataSet, 0, newDataSet, 0,...
[ "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add." ]
[ "Set the String of request body data to be sent to the server.\n\n@param input String of request body data to be sent to the server\n@return an {@link HttpConnection} for method chaining", "Computes the mean or average of all the elements.\n\n@return mean", "Returns the compact project records for all projects ...
public void removeVariable(String name) { Map<String, Iterable<? extends WindupVertexFrame>> frame = peek(); frame.remove(name); }
[ "Remove a variable in the top variables layer." ]
[ "Use this API to fetch clusternodegroup_nslimitidentifier_binding resources of given name .", "Remove a path\n\n@param pathId ID of path", "Parse an extended attribute date value.\n\n@param value string representation\n@return date value", "Obtains a Discordian local date-time from another date-time object.\n...
public static csparameter get(nitro_service service) throws Exception{ csparameter obj = new csparameter(); csparameter[] response = (csparameter[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the csparameter resources that are configured on netscaler." ]
[ "Use this API to fetch gslbsite resources of given names .", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Save page to log\n\n@return address of this page after ...
protected void parseRequest(HttpServletRequest request, HttpServletResponse response) { requestParams = new HashMap<String, Object>(); listFiles = new ArrayList<FileItemStream>(); listFileStreams = new ArrayList<ByteArrayOutputStream>(); // Parse the requ...
[ "Parse request parameters and files.\n@param request\n@param response" ]
[ "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Returns iterable with all non-deleted file version legal holds for this legal hold policy.\n@param limit the limit of entries per response. The...
private void validate() { if (Strings.emptyToNull(random) == null) { random = Strings.emptyToNull(getProject().getProperty(SYSPROP_RANDOM_SEED())); } if (random == null) { throw new BuildException("Required attribute 'seed' must not be empty. Look at <junit4:pickseed>."); } lo...
[ "Validate arguments and state." ]
[ "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current ...
public List<ProjectFile> readAll(InputStream is, boolean linkCrossProjectRelations) throws MPXJException { try { m_tables = new HashMap<String, List<Row>>(); m_numberFormat = new DecimalFormat(); processFile(is); List<Row> rows = getRows("project", null, null); ...
[ "This is a convenience method which allows all projects in an\nXER file to be read in a single pass.\n\n@param is input stream\n@param linkCrossProjectRelations add Relation links that cross ProjectFile boundaries\n@return list of ProjectFile instances\n@throws MPXJException" ]
[ "Copy a single named resource from the classpath to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param resourceName The filename of the resource.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the resou...
public static ComplexNumber Subtract(ComplexNumber z1, ComplexNumber z2) { return new ComplexNumber(z1.real - z2.real, z1.imaginary - z2.imaginary); }
[ "Subtract two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the subtract of specified complex numbers." ]
[ "Bilinear interpolation of ARGB values.\n@param x the X interpolation parameter 0..1\n@param y the y interpolation parameter 0..1\n@param rgb array of four ARGB values in the order NW, NE, SW, SE\n@return the interpolated value", "Returns the index of the eigenvalue which has the largest magnitude.\n\n@return ind...
private List<String> getCommandLines(File file) { List<String> lines = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line = reader.readLine(); while (line != null) { lines.add(line); line = reade...
[ "read the file as a list of text lines" ]
[ "of the unbound provider (", "Register a loader with the 'sniffer'.\n\n'Factory loaders' are pre-registered. To load a format we don't support,\ncreate a {@link GVRCompressedTextureLoader} descendant. Then, before\ntrying to load any files in that format, create an instance and call\n{@link #register()}:\n\n<pre>...
static void handleNotificationClicked(Context context,Bundle notification) { if (notification == null) return; String _accountId = null; try { _accountId = notification.getString(Constants.WZRK_ACCT_ID_KEY); } catch (Throwable t) { // no-op } if ...
[ "other static handlers" ]
[ "Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name .", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Sets up Log4J to wri...
protected int readInt(InputStream is) throws IOException { byte[] data = new byte[4]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getInt(data, 0)); }
[ "This method reads a four byte integer from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF" ]
[ "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Convenience method which allows all projects in the d...
private void checkExistingTracks() { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { for (Map.Entry<DeckReference, TrackMetadata> entry : MetadataFinder.getInstance().getLoadedTracks().entrySet()) { if (entry.getKey().hotCue =...
[ "Send ourselves \"updates\" about any tracks that were loaded before we started, since we missed them." ]
[ "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information", "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed valu...
public Stats getPhotosetStats(String photosetId, Date date) throws FlickrException { return getStats(METHOD_GET_PHOTOSET_STATS, "photoset_id", photosetId, date); }
[ "Get the number of views, comments and favorites on a photoset for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photosetId\n(Req...
[ "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a...
public static Type getCanonicalType(Class<?> clazz) { if (clazz.isArray()) { Class<?> componentType = clazz.getComponentType(); Type resolvedComponentType = getCanonicalType(componentType); if (componentType != resolvedComponentType) { // identity check intent...
[ "Returns a canonical type for a given class.\n\nIf the class is a raw type of a parameterized class, the matching {@link ParameterizedType} (with unresolved type\nvariables) is resolved.\n\nIf the class is an array then the component type of the array is canonicalized\n\nOtherwise, the class is returned.\n\n@return...
[ "Converts an object to an object, with squiggly filters applied.\n\n@param mapper the object mapper\n@param source the source to convert\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)", "Retrieve the number of minutes per week for this calendar.\n\n@return minutes per week", ...
public Backup getBackupData() throws Exception { Backup backupData = new Backup(); backupData.setGroups(getGroups()); backupData.setProfiles(getProfiles()); ArrayList<Script> scripts = new ArrayList<Script>(); Collections.addAll(scripts, ScriptService.getInstance().getScripts())...
[ "Return the structured backup data\n\n@return Backup of current configuration\n@throws Exception exception" ]
[ "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws Il...
public static String replaceFirst(final CharSequence self, final CharSequence regex, final CharSequence replacement) { return self.toString().replaceFirst(regex.toString(), replacement.toString()); }
[ "Replaces the first substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the CharSequence to be substituted for each match\n@return a CharSequence with replaced content\n...
[ "Writes resource baseline data.\n\n@param xmlResource MSPDI resource\n@param mpxjResource MPXJ resource", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "helper to calculate the statusBar height\n\n@pa...
private GenericCriteriaPrompt getPromptValue(FieldType field, byte[] block) { int textOffset = getPromptOffset(block); String value = MPPUtility.getUnicodeString(m_criteriaData, m_criteriaTextStart + textOffset); GenericCriteriaPrompt prompt = new GenericCriteriaPrompt(field.getDataType(), value); ...
[ "Retrieves a prompt value.\n\n@param field field type\n@param block criteria data block\n@return prompt value" ]
[ "Visits an annotation on a local variable type.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#LOCAL_VARIABLE\nLOCAL_VARIABLE} or {@link TypeReference#RESOURCE_VARIABLE\nRESOURCE_VARIABLE}. See {@link TypeReference}.\n@param typePath\nthe path to ...
public String getResourceFilename() { switch (resourceType) { case ANDROID_ASSETS: return assetPath .substring(assetPath.lastIndexOf(File.separator) + 1); case ANDROID_RESOURCE: return resourceFilePath.substring( resourceFilePath.l...
[ "Returns the filename of the resource with extension.\n\n@return Filename of the GVRAndroidResource. May return null if the\nresource is not associated with any file" ]
[ "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "Record a Screen View event\n@param screenName String, the name of the screen", "Get the collection of untagged photos.\n\nThis method requires authentication with 'read'...
public static void resize(GVRMesh mesh, float size) { float dim[] = getBoundingSize(mesh); float maxsize = 0.0f; if (dim[0] > maxsize) maxsize = dim[0]; if (dim[1] > maxsize) maxsize = dim[1]; if (dim[2] > maxsize) maxsize = dim[2]; scale(mesh, size / maxsize); }
[ "Resize the given mesh keeping its aspect ration.\n@param mesh Mesh to be resized.\n@param size Max size for the axis." ]
[ "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent ...
public String getSafetyLevel() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_SAFETY_LEVEL); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.is...
[ "Returns the default safety level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_MODERATE\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_RESTRICTED\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_SAFE\n@return The current users safety-level\n@throws FlickrException" ]
[ "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Reset the crawler to its initial state.", "Use this API to save cachecontentgroup.", "Use this API to fetch sslciphersuite resource of ...
@Deprecated public void processMostRecentDump(DumpContentType dumpContentType, MwDumpFileProcessor dumpFileProcessor) { MwDumpFile dumpFile = getMostRecentDump(dumpContentType); if (dumpFile != null) { processDumpFile(dumpFile, dumpFileProcessor); } }
[ "Processes the most recent dump of the given type using the given dump\nprocessor.\n\n@see DumpProcessingController#processMostRecentMainDump()\n@see DumpProcessingController#processAllRecentRevisionDumps()\n\n@param dumpContentType\nthe type of dump to process\n@param dumpFileProcessor\nthe processor to use\n@depr...
[ "Call when you are done with the client\n\n@throws Exception", "Convert JsonString to Object of Clazz\n\n@param json\n@param clazz\n@return Object of Clazz", "This is generally only useful for extensions that delegate some of their functionality to other \"internal\"\nextensions of their own that they need to c...
public static double SquaredEuclidean(double[] x, double[] y) { double d = 0.0, u; for (int i = 0; i < x.length; i++) { u = x[i] - y[i]; d += u * u; } return d; }
[ "Gets the Square Euclidean distance between two points.\n\n@param x A point in space.\n@param y A point in space.\n@return The Square Euclidean distance between x and y." ]
[ "Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array.", "Use this API to fetch filtered set of appfwlearningsettings resources.\nset the filter parameter values in filtervalue object.", "Returns a string array of the methods loaded for a cla...
public void setPickingEnabled(boolean enabled) { if (enabled != getPickingEnabled()) { if (enabled) { attachComponent(new GVRSphereCollider(getGVRContext())); } else { detachComponent(GVRCollider.getComponentType()); } } }
[ "Simple, high-level API to enable or disable eye picking for this scene\nobject.\n\nThe {@linkplain #attachCollider low-level\nAPI} gives you a lot of control over eye picking, but it does involve an\nawful lot of details. This method\n(and {@link #getPickingEnabled()}) provides a simple boolean property.\nIt attac...
[ "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return", "Was this beat sent by the current tempo master?\n\n@return {@code true} if the device that sent this beat is the master\n@throws IllegalStateException if the {@link VirtualCd...
public static scala.collection.Iterable linkedListToScalaIterable(LinkedList<?> linkedList) { return JavaConverters.asScalaIterableConverter(linkedList).asScala(); }
[ "Convert a Java LinkedList to a Scala Iterable.\n@param linkedList Java LinkedList to convert\n@return Scala Iterable" ]
[ "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder", "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corres...
public List<ChannelInfo> getChannels() { final URI uri = uriWithPath("./channels/"); return Arrays.asList(this.rt.getForObject(uri, ChannelInfo[].class)); }
[ "Retrieves state and metrics information for all channels across the cluster.\n\n@return list of channels across the cluster" ]
[ "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param...
private static void parseOutgoings(ArrayList<Shape> shapes, JSONObject modelJSON, Shape current) throws JSONException { if (modelJSON.has("outgoing")) { ArrayList<Shape> outgoings = new ArrayList<Shape>(); JSON...
[ "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Performs an efficient update of each columns' norm", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to...
public BoxFolder.Info createFolder(String name) { JsonObject parent = new JsonObject(); parent.add("id", this.getID()); JsonObject newFolder = new JsonObject(); newFolder.add("name", name); newFolder.add("parent", parent); BoxJSONRequest request = new BoxJSONRequest(thi...
[ "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info." ]
[ "Filter on a search term. Can be course name, code or full ID. Must be at least 3 characters\n@param searchTerm Search term to filter by\n@return This object to allow adding more options", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build informa...
public static base_response unset(nitro_service client, gslbsite resource, String[] args) throws Exception{ gslbsite unsetresource = new gslbsite(); unsetresource.sitename = resource.sitename; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array." ]
[ "Add a IN clause so the column must be equal-to one of the objects passed in.", "Creates a file\n\n@param folder File\n@param fileName String\n@throws IOException", "Updates the R matrix to take in account the removed row.", "This method extracts data for a single resource from a Planner file.\n\n@param plann...
private static long daysBetween(Date date1, Date date2) { long diff; if (date2.after(date1)) { diff = date2.getTime() - date1.getTime(); } else { diff = date1.getTime() - date2.getTime(); } return diff / (24 * 60 * 60 * 1000); }
[ "Naive implementation of the difference in days between two dates" ]
[ "Sends all events to the web service. Events will be transformed with mapper before sending.\n\n@param events the events", "Assigns this retention policy to a metadata template, optionally with certain field values.\n@param templateID the ID of the metadata template to apply to.\n@param fieldFilters optional fiel...
public Map<String, List<Locale>> getAvailableLocales() { if (m_availableLocales == null) { // create lazy map only on demand m_availableLocales = CmsCollectionsGenericWrapper.createLazyMap(new CmsAvailableLocaleLoaderTransformer()); } return m_availableLocales; }
[ "Returns a lazily generated map from site paths of resources to the available locales for the resource.\n\n@return a lazily generated map from site paths of resources to the available locales for the resource." ]
[ "Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@...
public void getSpellcheckingResult( final HttpServletResponse res, final ServletRequest servletRequest, final CmsObject cms) throws CmsPermissionViolationException, IOException { // Perform a permission check performPermissionCheck(cms); // Set the appropriate respo...
[ "Performs spellchecking using Solr and returns the spellchecking results using JSON.\n\n@param res The HttpServletResponse object.\n@param servletRequest The ServletRequest object.\n@param cms The CmsObject object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user\n@throws IOException i...
[ "Return a list of unique values for a namespace and predicate.\n\nThis method does not require authentication.\n\n@param namespace\nThe namespace that all values should be restricted to.\n@param predicate\nThe predicate that all values should be restricted to.\n@param perPage\nThe number of photos to show per page\...
public RelatedTagsList getRelated(String tag) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_RELATED); parameters.put("tag", tag); Response response = transportAPI.get(transportAPI.getPath(), parameters, api...
[ "Get the related tags.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\nThe source tag\n@return A RelatedTagsList object\n@throws FlickrException" ]
[ "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "Get the FieldDescriptor for the PathInfo\n\n@param aTableAlias\n@param aPathInfo\n@return FieldDescriptor", "Create the metadata which gets send to the DC when registering.\n\n\n@param hostInfo the local host info\n@param productConfig ...
public void setColorSchemeResources(int... colorResIds) { final Resources res = getResources(); int[] colorRes = new int[colorResIds.length]; for (int i = 0; i < colorResIds.length; i++) { colorRes[i] = res.getColor(colorResIds[i]); } setColorSchemeColors(colorRes); ...
[ "Set the color resources used in the progress animation from color resources.\nThe first color will also be the color of the bar that grows in response\nto a user swipe gesture.\n\n@param colorResIds" ]
[ "This method is called to format a units value.\n\n@param value numeric value\n@return currency value", "Get all registration points associated with this registration.\n\n@return all registration points. Will not be {@code null} but may be empty", "Disables all the overrides for a specific profile\n\n@param mod...
@TargetApi(VERSION_CODES.KITKAT) public static void showSystemUI(Activity activity) { View decorView = activity.getWindow().getDecorView(); decorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION ...
[ "except for the ones that make the content appear under the system bars." ]
[ "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag...
private void ensureIndexIsUnlocked(String dataDir) { Collection<File> lockFiles = new ArrayList<File>(2); lockFiles.add( new File( CmsFileUtil.addTrailingSeparator(CmsFileUtil.addTrailingSeparator(dataDir) + "index") + "write.lock")); lockFiles.add( new F...
[ "Remove write.lock file in the data directory to ensure the index is unlocked.\n@param dataDir the data directory of the Solr index that should be unlocked." ]
[ "Add the collection of elements to this collection. This will also them to the associated database table.\n\n@return Returns true if any of the items did not already exist in the collection otherwise false.", "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@r...
protected final void setDefaultValue() { m_start = null; m_end = null; m_patterntype = PatternType.NONE; m_dayOfMonth = 0; m_exceptions.clear(); m_individualDates.clear(); m_interval = 0; m_isEveryWorkingDay = false; m_isWholeDay = false; ...
[ "Sets the value to a default." ]
[ "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that r...
Object readResolve() throws ObjectStreamException { Bean<?> bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); if (bean == null) { throw BeanLogger.LOG.proxyDeserializationFailure(beanId); } return Container...
[ "Always returns the original proxy object that was serialized.\n\n@return the proxy object\n@throws java.io.ObjectStreamException" ]
[ "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "Find a Constructor on the given type that matches the given arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructo...
public static boolean canParseColor(final String colorString) { try { return ColorParser.toColor(colorString) != null; } catch (Exception exc) { return false; } }
[ "Check if the given color string can be parsed.\n\n@param colorString The color to parse." ]
[ "Add an additional SSExtension\n@param ssExt the ssextension to set", "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", "Utility to list indexes of a given type.\n\n@pa...
@Override public final synchronized void stopService(long millis) { running = false; try { if (keepRunning) { keepRunning = false; interrupt(); quit(); if (0L == millis) { join(); } else {...
[ "Stops the service. If a timeout is given and the service has still not\ngracefully been stopped after timeout ms the service is stopped by force.\n\n@param millis value in ms" ]
[ "Update the context session to mark a user logged in\n\n@param userIdentifier\nthe user identifier, could be either userId or username", "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "Validates operations against their description providers\n\n@param operations The op...
public static String parseServers(String zookeepers) { int slashIndex = zookeepers.indexOf("/"); if (slashIndex != -1) { return zookeepers.substring(0, slashIndex); } return zookeepers; }
[ "Parses server section of Zookeeper connection string" ]
[ "Creates a curator built using Fluo's zookeeper connection string. Root path will start at Fluo\nchroot.", "Set the serial end date.\n@param date the serial end date.", "Use this API to update snmpalarm resources.", "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@par...
private Map<String, I_CmsSearchConfigurationFacetField> getDefaultFieldFacets(boolean categoryConjunction) { Map<String, I_CmsSearchConfigurationFacetField> fieldFacets = new HashMap<String, I_CmsSearchConfigurationFacetField>(); fieldFacets.put( CmsListManager.FIELD_CATEGORIES, ...
[ "The default field facets.\n\n@param categoryConjunction flag, indicating if category selections in the facet should be \"AND\" combined.\n@return the default field facets." ]
[ "Register custom filter types especially for serializer of specification json file", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new ...
public void getKey(int keyIndex, float[] values) { int index = keyIndex * mFloatsPerKey; System.arraycopy(mKeys, index + 1, values, 0, values.length); }
[ "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key" ]
[ "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value", "Confirms a user with the give...
public void addProcedure(ProcedureDef procDef) { procDef.setOwner(this); _procedures.put(procDef.getName(), procDef); }
[ "Adds a procedure definition to this class descriptor.\n\n@param procDef The procedure definition" ]
[ "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterato...
public static lbvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_auditnslogpolicy_binding obj = new lbvserver_auditnslogpolicy_binding(); obj.set_name(name); lbvserver_auditnslogpolicy_binding response[] = (lbvserver_auditnslogpolicy_binding[]) obj.get_resourc...
[ "Use this API to fetch lbvserver_auditnslogpolicy_binding resources of given name ." ]
[ "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Sets the final transform of the bone during animation.\n...
public WaveformDetail requestWaveformDetailFrom(final DataReference dataReference) { ensureRunning(); for (WaveformDetail cached : detailHotCache.values()) { if (cached.dataReference.equals(dataReference)) { // Found a hot cue hit, use it. return cached; } ...
[ "Ask the specified player for the specified waveform detail from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform detail\n\n@return the waveform detail, if it was found, or {@code null}\n\n@throws IllegalStateException if the Wavefo...
[ "This method writes data for a single resource to a Planner file.\n\n@param mpxjResource MPXJ Resource instance\n@param plannerResource Planner Resource instance", "Print an extended attribute currency value.\n\n@param value currency value\n@return string representation", "Dumps a single material property to st...
static DisplayMetrics getDisplayMetrics(final Context context) { final WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); final DisplayMetrics metrics = new DisplayMetrics(); windowManager.getDefaultDisplay().getMetrics(metrics); return metric...
[ "Returns a valid DisplayMetrics object\n\n@param context valid context\n@return DisplayMetrics object" ]
[ "Two stage promotion, dry run and actual promotion to verify correctness.\n\n@param promotion\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException", "Performs a streaming request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a S...
private Filter getFilter(String layerFilter, String[] featureIds) throws GeomajasException { Filter filter = null; if (null != layerFilter) { filter = filterService.parseFilter(layerFilter); } if (null != featureIds) { Filter fidFilter = filterService.createFidFilter(featureIds); if (null == filter) { ...
[ "Build filter for the request.\n\n@param layerFilter layer filter\n@param featureIds features to include in report (null for all)\n@return filter\n@throws GeomajasException filter could not be parsed/created" ]
[ "Check whether the patch can be applied to a given target.\n\n@param condition the conditions\n@param target the target\n@throws PatchingException", "Compiles the allowable actions for a file or folder.\n\n@param cms the current CMS context\n@param file the resource for which we want the allowable actions\n\n@...
private int getSegmentForX(int x) { if (autoScroll.get()) { int playHead = (x - (getWidth() / 2)); int offset = Util.timeToHalfFrame(getFurthestPlaybackPosition()) / scale.get(); return (playHead + offset) * scale.get(); } return x * scale.get(); }
[ "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there" ]
[ "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type", "Send a beat grid update announcement to all register...
public WebSocketContext reTag(String label) { WebSocketConnectionRegistry registry = manager.tagRegistry(); registry.signOff(connection); registry.signIn(label, connection); return this; }
[ "Re-Tag the websocket connection hold by this context with label specified.\nThis method will remove all previous tags on the websocket connection and then\ntag it with the new label.\n@param label the label.\n@return this websocket conext." ]
[ "Use this API to update vserver.", "High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result.", "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", "Generate the next permutation...
public DescriptorRepository readDescriptorRepository(InputStream inst) { try { RepositoryPersistor persistor = new RepositoryPersistor(); return persistor.readDescriptorRepository(inst); } catch (Exception e) { throw new MetadataEx...
[ "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository" ]
[ "Write the provided chunk at the offset specified in the token. If finalChunk is set, the file\nwill be closed.", "Uncompresses the textual contents in the given map and and writes them to the files\ndenoted by the keys of the map.\n\n@param dir The base directory into which the files will be written\n@param...
public static int Mode( int[] values ){ int mode = 0, curMax = 0; for ( int i = 0, length = values.length; i < length; i++ ) { if ( values[i] > curMax ) { curMax = values[i]; mode = i; } } return mode; }
[ "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array." ]
[ "Sort MapRows based on a named attribute.\n\n@param rows map rows to sort\n@param attribute attribute to sort on\n@return list argument (allows method chaining)", "Call the appropriate handler for handling the httprequest. 404 if path is not found. 405 if path is found but\nhttpMethod does not match what's config...
public static base_responses add(nitro_service client, inat resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { inat addresources[] = new inat[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new inat(); addresources[...
[ "Use this API to add inat resources." ]
[ "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Writes the given configuration to the given file.", "Returns the designer version from the manifest.\n@param context\n@return version", "To p...
private boolean isOrdinal(int paramType) { switch ( paramType ) { case Types.INTEGER: case Types.NUMERIC: case Types.SMALLINT: case Types.TINYINT: case Types.BIGINT: case Types.DECIMAL: //for Oracle Driver case Types.DOUBLE: //for Oracle Driver case Types.FLOAT: //for Oracle Driver retu...
[ "in truth we probably only need the types as injected by the metadata binder" ]
[ "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "Addes the ...
public static base_responses add(nitro_service client, sslaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslaction addresources[] = new sslaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new sslaction(...
[ "Use this API to add sslaction resources." ]
[ "Obtains a Coptic zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Provides the scrollableList implementation for page scrolling\n@return {@link...
protected void addFacetPart(CmsSolrQuery query) { query.set("facet", "true"); String excludes = ""; if (m_config.getIgnoreAllFacetFilters() || (!m_state.getCheckedEntries().isEmpty() && !m_config.getIsAndFacet())) { excludes = "{!ex=" + m_config.getIgnoreTags() + "}"; ...
[ "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet" ]
[ "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return", "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "Create a plan. The plan consists of batches. Each batch involves the\nmovement ...
public static authenticationvserver_authenticationtacacspolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationtacacspolicy_binding obj = new authenticationvserver_authenticationtacacspolicy_binding(); obj.set_name(name); authenticationvserver_authentication...
[ "Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name ." ]
[ "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "Generic method used to create a field map from a block of data.\n\n@param ...
public int compareTo(Rational other) { if (denominator == other.getDenominator()) { return ((Long) numerator).compareTo(other.getNumerator()); } else { Long adjustedNumerator = numerator * other.getDenominator(); Long otherAdjustedNumerator...
[ "Compares this value with the specified object for order. Returns a negative\ninteger, zero, or a positive integer as this value is less than, equal to, or\ngreater than the specified value.\n@param other Another Rational value.\n@return A negative integer, zero, or a positive integer as this value is less\nthan, e...
[ "Return true if the class name is associated to an hidden class or matches a hide expression", "Get the list of active tasks from the server.\n\n@return List of tasks\n@see <a href=\"https://console.bluemix.net/docs/services/Cloudant/api/active_tasks.html\">\nActive tasks</a>", "Send a DEBUG log message with sp...
@RequestMapping(value = "/api/profile", method = RequestMethod.DELETE) public @ResponseBody HashMap<String, Object> deleteProfile(Model model, int id) throws Exception { profileService.remove(id); return Utils.getJQGridJSON(profileService.findAllProfiles(), "profiles"); }
[ "Delete a profile\n\n@param model\n@param id\n@return\n@throws Exception" ]
[ "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Returns the compact records for all sections in the specified project.\n\n@param project The project to get sections from.\n@return Reques...
protected final StyleSupplier<FeatureSource> createStyleFunction( final Template template, final String styleString) { return new StyleSupplier<FeatureSource>() { @Override public Style load( final MfClientHttpRequestFactory requestFactory, ...
[ "Create a function that will create the style on demand. This is called later in a separate thread so\nany blocking calls will not block the parsing of the layer attributes.\n\n@param template the template for this map\n@param styleString a string that identifies a style." ]
[ "Converts a time in UTC to a gwt Date object which is in the timezone of\nthe current browser.\n\n@return The Date corresponding to the time, adjusted for the timezone of\nthe current browser. null if the specified time is null or\nrepresents a negative number.", "Return true if the DeclarationExpression represen...
private void sendAnnouncement(InetAddress broadcastAddress) { try { DatagramPacket announcement = new DatagramPacket(announcementBytes, announcementBytes.length, broadcastAddress, DeviceFinder.ANNOUNCEMENT_PORT); socket.get().send(announcement); Thread.sle...
[ "Send an announcement packet so the other devices see us as being part of the DJ Link network and send us\nupdates." ]
[ "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "Use this API to fetch a dnsglobal_binding resource .", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used...
public synchronized void reset() { this.authorizerDescription = StandardRBACAuthorizer.AUTHORIZER_DESCRIPTION; this.useIdentityRoles = this.nonFacadeMBeansSensitive = false; this.roleMappings = new HashMap<String, RoleMappingImpl>(); RoleMaps oldRoleMaps = this.roleMaps; this.rol...
[ "Reset the internal state of this object back to what it originally was.\n\nUsed then reloading a server or in a slave host controller following a post-boot reconnect\nto the master." ]
[ "This method retrieves a byte array containing the data at the\ngiven index in the block. If no data is found at the given index\nthis method returns null.\n\n@param index index of the data item to be retrieved\n@return byte array containing the requested data", "Created a fresh CancelIndicator", "Configures a ...
void start(String monitoredDirectory, Long pollingTime) { this.monitoredDirectory = monitoredDirectory; String deployerKlassName; if (klass.equals(ImportDeclaration.class)) { deployerKlassName = ImporterDeployer.class.getName(); } else if (klass.equals(ExportDeclaration.class...
[ "This method must be called on the start of the component. Initialize and start the directory monitor.\n\n@param monitoredDirectory\n@param pollingTime" ]
[ "Remove all of the audio sources from the audio manager.\nThis will stop all sound from playing.", "Read a list of fixed size blocks using an instance of the supplied reader class.\n\n@param readerClass reader class\n@return list of blocks", "A simple helper method that creates a pool of connections to Redis us...
@Override public final Integer optInt(final String key, final Integer defaultValue) { Integer result = optInt(key); return result == null ? defaultValue : result; }
[ "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value" ]
[ "Processes changes on aliases, updating the planned state of the item.\n\n@param addAliases\naliases that should be added to the document\n@param deleteAliases\naliases that should be removed from the document", "Use this API to fetch authenticationldappolicy_authenticationvserver_binding resources of given name ...
public static vpnglobal_vpnnexthopserver_binding[] get(nitro_service service) throws Exception{ vpnglobal_vpnnexthopserver_binding obj = new vpnglobal_vpnnexthopserver_binding(); vpnglobal_vpnnexthopserver_binding response[] = (vpnglobal_vpnnexthopserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a vpnglobal_vpnnexthopserver_binding resources." ]
[ "Computes the power of a complex number in polar notation\n\n@param a Complex number\n@param N Power it is to be multiplied by\n@param result Result", "Adds an artifact to the module.\n\n<P>\nINFO: If the module is promoted, all added artifacts will be promoted.\n\n@param artifact Artifact", "Initialize the met...
private String jsonifyData(Map<String, ? extends Object> data) { JSONObject jsonData = new JSONObject(data); return jsonData.toString(); }
[ "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}" ]
[ "Use this API to fetch all the cachecontentgroup resources that are configured on netscaler.", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType th...
private ClassDescriptor[] getMultiJoinedClassDescriptors(ClassDescriptor cld) { DescriptorRepository repository = cld.getRepository(); Class[] multiJoinedClasses = repository.getSubClassesMultipleJoinedTables(cld, true); ClassDescriptor[] result = new ClassDescriptor[multiJoinedClasses.l...
[ "Get MultiJoined ClassDescriptors\n@param cld" ]
[ "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name.", "...
public static int cudnnPoolingBackward( cudnnHandle handle, cudnnPoolingDescriptor poolingDesc, Pointer alpha, cudnnTensorDescriptor yDesc, Pointer y, cudnnTensorDescriptor dyDesc, Pointer dy, cudnnTensorDescriptor xDesc, Pointer x, ...
[ "Function to perform backward pooling" ]
[ "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephas...
public static Command newQuery(String identifier, String name) { return getCommandFactoryProvider().newQuery( identifier, name ); }
[ "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return" ]
[ "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Ask the specified player for an Artist menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which r...
public String urlEncode(String s) { if (s == null || s.isEmpty()) { return s; } return URL.encodeQueryString(s); }
[ "URLEncode a string\n@param s\n@return" ]
[ "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag", "Convert an Object to a Date, without an Exception", "Select which view to display based on the state of the promotion. Will return the form if user selec...
private void addEdgesForVertex(Vertex vertex) { ClassDescriptor cld = vertex.getEnvelope().getClassDescriptor(); Iterator rdsIter = cld.getObjectReferenceDescriptors(true).iterator(); while (rdsIter.hasNext()) { ObjectReferenceDescriptor rds = (ObjectReferenceDescri...
[ "Adds all edges for a given object envelope vertex. All edges are\nadded to the edgeList map.\n@param vertex the Vertex object to find edges for" ]
[ "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\".", "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Converts a class into a signature token....
public void callFunction(String className, String methodName, PluginArguments pluginArgs, Object... args) throws Exception { Class<?> cls = getClass(className); ArrayList<Object> newArgs = new ArrayList<>(); newArgs.add(pluginArgs); com.groupon.odo.proxylib.models.Method m = preparePlug...
[ "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception" ]
[ "Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character", "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n...
public void write(WritableByteChannel channel) throws IOException { logger.debug("Writing> {}", this); for (Field field : fields) { field.write(channel); } }
[ "Writes the message to the specified channel, for example when creating metadata cache files.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel" ]
[ "This utility method calculates the difference in working\ntime between two dates, given the context of a task.\n\n@param task parent task\n@param date1 first date\n@param date2 second date\n@param format required format for the resulting duration\n@return difference in working time between the two dates", "Retur...
private boolean isWorkingDay(ProjectCalendar mpxjCalendar, Day day) { boolean result = false; net.sf.mpxj.DayType type = mpxjCalendar.getWorkingDay(day); if (type == null) { type = net.sf.mpxj.DayType.DEFAULT; } switch (type) { case WORKING: { ...
[ "Used to determine if a particular day of the week is normally\na working day.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day Day instance\n@return boolean flag" ]
[ "2-D Forward Discrete Cosine Transform.\n\n@param data Data.", "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task", "Initializes unspecified sign properties using avai...
public Optional<SoyMsgBundle> resolve(final Optional<Locale> locale) throws IOException { if (!locale.isPresent()) { return Optional.absent(); } synchronized (msgBundles) { SoyMsgBundle soyMsgBundle = null; if (isHotReloadModeOff()) { soyMsgBu...
[ "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle" ]
[ "Convert a geometry class to a layer type.\n\n@param geometryClass\nJTS geometry class\n@return Geomajas layer type", "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Use this API to delete snmpmanager.", "Validates the producer method", "Deliver...
public static final String printPercent(Double value) { return value == null ? null : Double.toString(value.doubleValue() / 100.0); }
[ "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value" ]
[ "Update the value of an embedded node property.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param keyValues the columns representing the identifier in the entity owning the embedded\n@param embeddedColumn the column on the embedded node (dot-separated properties)\n@param value...
public Map<Integer, TableDefinition> tableDefinitions() { Map<Integer, TableDefinition> result = new HashMap<Integer, TableDefinition>(); result.put(Integer.valueOf(2), new TableDefinition("PROJECT_SUMMARY", columnDefinitions(PROJECT_SUMMARY_COLUMNS, projectSummaryColumnsOrder()))); result.put(Int...
[ "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure" ]
[ "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its in the list, then\nthe method should be wrapped. If the list is null, then all methods\nare wrapped.\n\n@param methodName The method being called\n\n@return boolean", "Get the metadata cache ...
public Where<T, ID> exists(QueryBuilder<?, ?> subQueryBuilder) { // we do this to turn off the automatic addition of the ID column in the select column list subQueryBuilder.enableInnerQuery(); addClause(new Exists(new InternalQueryBuilderWrapper(subQueryBuilder))); return this; }
[ "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>" ]
[ "Get this property from the given object.\n@param object an array\n@return the length of the array object\n@throws IllegalArgumentException if object is not an array", "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Matches the styles and adjusts the s...
public void copy(ProjectCalendar cal) { setName(cal.getName()); setParent(cal.getParent()); System.arraycopy(cal.getDays(), 0, getDays(), 0, getDays().length); for (ProjectCalendarException ex : cal.m_exceptions) { addCalendarException(ex.getFromDate(), ex.getToDate()); ...
[ "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source" ]
[ "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyAsText the story text\n@param storyId the story Id, which will be returned as story path\n@return The parsed Story", "Adds a new metadata value of array type.\n@param path the path to the field.\...
public void recordPutTimeAndSize(long timeNS, long valueSize, long keySize) { recordTime(Tracked.PUT, timeNS, 0, valueSize, keySize, 0); }
[ "Record the duration of a put operation, along with the size of the values\nreturned." ]
[ "Return whether or not the data object has a default value passed for this field of this type.", "Print out the template information that the client needs for performing a request.\n\n@param json the writer to write the information to.", "Typically this is transparently handled by using the Protostream codecs b...
public void setOccurrences(String occurrences) { int o = CmsSerialDateUtil.toIntWithDefault(occurrences, -1); if (m_model.getOccurrences() != o) { m_model.setOccurrences(o); valueChanged(); } }
[ "Set the occurrences. If the String is invalid, the occurrences will be set to \"-1\" to cause server-side validation to fail.\n@param occurrences the interval to set." ]
[ "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Perform construction with custom thread ...
public RandomVariable[] getGradient(){ // for now let us take the case for output-dimension equal to one! int numberOfVariables = getNumberOfVariablesInList(); int numberOfCalculationSteps = factory.getNumberOfEntriesInList(); RandomVariable[] omega_hat = new RandomVariable[numberOfCalculationSteps]; ...
[ "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function" ]
[ "The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this\nresulted in the host and port attributes becoming optional -this method also indicates if discovery options are required\nwhere the host and port were not supplied.\n\n@param allowDiscoveryOpti...
private static MonolingualTextValue toTerm(MonolingualTextValue term) { return term instanceof TermImpl ? term : new TermImpl(term.getLanguageCode(), term.getText()); }
[ "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly." ]
[ "Get by index is used here.", "Check, if the current user has permissions on the document's resource.\n@param cms the context\n@param doc the solr document (from the search result)\n@param filter the resource filter to use for checking permissions\n@return <code>true</code> iff the resource mirrored by the search...
public static responderpolicy_binding get(nitro_service service, String name) throws Exception{ responderpolicy_binding obj = new responderpolicy_binding(); obj.set_name(name); responderpolicy_binding response = (responderpolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch responderpolicy_binding resource of given name ." ]
[ "Visit an open package of the current module.\n\n@param packaze the qualified name of the opened package.\n@param access the access flag of the opened package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can use deep\nreflection to...
private static MBeanServer setQueryExpServer(QueryExp query, MBeanServer toSet) { // We assume the QueryExp is a QueryEval subclass or uses the QueryEval thread local // mechanism to store any existing MBeanServer. If that's not the case we have no // way to access the old mbeanserver to let us ...
[ "Set the mbean server on the QueryExp and try and pass back any previously set one" ]
[ "Reads the NTriples file from the reader, pushing statements into\nthe handler.", "Update an existing feature. Made package private for testing purposes.\n\n@param feature feature to update\n@throws LayerException oops", "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the ...