query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void setTextureBufferSize(final int size) { mRootViewGroup.post(new Runnable() { @Override public void run() { mRootViewGroup.setTextureBufferSize(size); } }); }
[ "Set the default size of the texture buffers. You can call this to reduce the buffer size\nof views with anti-aliasing issue.\n\nThe max value to the buffer size should be the Math.max(width, height) of attached view.\n\n@param size buffer size. Value > 0 and <= Math.max(width, height)." ]
[ "Check if the property is part of the identifier of the entity.\n\n@param persister the {@link OgmEntityPersister} of the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is part of the id, {@code false} otherwise.", "Process the next event in a given stream.\n@return the fully processed event\n@throws IOException if a stream is in the wrong state, IO errors can be thrown", "Decides what the Map Web provider should be used and generates a builder for it.\n\n@return The AirMapViewBuilder for the selected Map Web provider.", "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "Set the view frustum to pick against from the minimum and maximum corners.\nThe viewpoint of the frustum is the center of the scene object\nthe picker is attached to. The view direction is the forward\ndirection of that scene object. The frustum will pick what a camera\nattached to the scene object with that view frustum would see.\nIf the frustum is not attached to a scene object, it defaults to\nthe view frustum of the main camera of the scene.\n\n@param frustum array of 6 floats as follows:\nfrustum[0] = left corner of frustum\nfrustum[1] = bottom corner of frustum\nfrustum[2] = front corner of frustum (near plane)\nfrustum[3] = right corner of frustum\nfrustum[4] = top corner of frustum\nfrustum[5 = back corner of frustum (far plane)", "Use this API to delete ntpserver resources of given names.", "Use to generate a file based on generator node.", "Gets Widget layout dimension\n@param axis The {@linkplain Layout.Axis axis} to obtain layout size for\n@return dimension", "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name ." ]
@Override protected final void subAppend(final LoggingEvent event) { if (event instanceof ScheduledFileRollEvent) { // the scheduled append() call has been made by a different thread synchronized (this) { if (this.closed) { // just consume the event return; } this.rollFile(event); } } else if (event instanceof FileRollEvent) { // definitely want to avoid rolling here whilst a file roll event is still being handled super.subAppend(event); } else { if(event instanceof FoundationLof4jLoggingEvent){ FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent)event; foundationLof4jLoggingEvent.setAppenderName(this.getName()); } this.rollFile(event); super.subAppend(event); } }
[ "Responsible for executing file rolls as and when required, in addition to\ndelegating to the super class to perform the actual append operation.\nSynchronized for safety during enforced file roll.\n\n@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent)" ]
[ "resumed a given deployment\n\n@param deployment The deployment to resume", "Unlock all edited resources.", "Use this API to fetch a sslglobal_sslpolicy_binding resources.", "Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param moduleVersion\n@param uriInfo\n@return Response", "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "Get the inactive overlay directories.\n\n@return the inactive overlay directories", "Get all field attributes in an unmodifiable Map, or null if no attributes have been added\n\n@return all field attributes, or <code>NULL</code> if none exist", "Cancel a particular download in progress. Returns 1 if the download Id is found else returns 0.\n\n@param downloadId\n@return int", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder" ]
public void addStep(String name, String robot, Map<String, Object> options){ steps.addStep(name, robot, options); }
[ "Adds a step to the steps.\n\n@param name {@link String} name of the step\n@param robot {@link String} name of the robot used by the step.\n@param options {@link Map} extra options required for the step." ]
[ "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria", "Handles the response of the getVersion request.\n@param incomingMessage the response message to process.", "Creates an object instance from the Groovy resource\n\n@param resource the Groovy resource to parse\n@return An Object instance", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler.", "Returns an attribute's value from a non-main section of this JAR's manifest.\n\n@param section the manifest's section\n@param name the attribute's name", "Check whether the media seems to have changed since a saved version of it was used. We ignore changes in\nfree space because those probably just reflect history entries being added.\n\n@param originalMedia the media details when information about it was saved\n\n@return true if there have been detectable significant changes to the media since it was saved\n\n@throws IllegalArgumentException if the {@link #hashKey()} values of the media detail objects differ", "We want to get the best result possible as this value\nis used to determine what work needs to be recovered.\n\n@return", "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration" ]
public static JRDesignExpression getDataSourceExpression(DJDataSource ds) { JRDesignExpression exp = new JRDesignExpression(); exp.setValueClass(JRDataSource.class); String dsType = getDataSourceTypeStr(ds.getDataSourceType()); String expText = null; if (ds.getDataSourceOrigin() == DJConstants.DATA_SOURCE_ORIGIN_FIELD) { expText = dsType + "$F{" + ds.getDataSourceExpression() + "})"; } else if (ds.getDataSourceOrigin() == DJConstants.DATA_SOURCE_ORIGIN_PARAMETER) { expText = dsType + REPORT_PARAMETERS_MAP + ".get( \"" + ds.getDataSourceExpression() + "\" ) )"; } else if (ds.getDataSourceOrigin() == DJConstants.DATA_SOURCE_TYPE_SQL_CONNECTION) { expText = dsType + REPORT_PARAMETERS_MAP + ".get( \"" + ds.getDataSourceExpression() + "\" ) )"; } else if (ds.getDataSourceOrigin() == DJConstants.DATA_SOURCE_ORIGIN_REPORT_DATASOURCE) { expText = "((" + JRDataSource.class.getName() + ") $P{REPORT_DATA_SOURCE})"; } exp.setText(expText); return exp; }
[ "Returns the expression string required\n\n@param ds\n@return" ]
[ "Create a collection object of the given collection type. If none has been given,\nOJB uses RemovalAwareList, RemovalAwareSet, or RemovalAwareCollection depending\non the field type.\n\n@param desc The collection descriptor\n@param collectionClass The collection class specified in the collection-descriptor\n@return The collection object", "For a given set of calendar data, this method sets the working\nday status for each day, and if present, sets the hours for that\nday.\n\nNOTE: MPP14 defines the concept of working weeks. MPXJ does not\ncurrently support this, and thus we only read the working hours\nfor the default working week.\n\n@param data calendar data block\n@param defaultCalendar calendar to use for default values\n@param cal calendar instance\n@param isBaseCalendar true if this is a base calendar", "Start component timer for current instance\n@param type - of component", "Convert a SSE to a Stitch SSE\n@param event SSE to convert\n@param decoder decoder for decoding data\n@param <T> type to decode data to\n@return a Stitch server-sent event", "Obtains a local date in Coptic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Coptic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code CopticEra}", "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Utils for making collections out of arrays of primitive types.", "Returns width and height that allow the given source width, height to fit inside the target width, height\nwithout losing aspect ratio", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode" ]
public static ResourceKey key(Class<?> clazz, Enum<?> value) { return new ResourceKey(clazz.getName(), value.name()); }
[ "Creates a resource key with id defined as enumeration value name and bundle specified by given class.\n@param clazz the class owning the bundle\n@param value enumeration value used to define key id\n@return the resource key" ]
[ "Calculates the bearing, in degrees, of the end LatLong point from this\nLatLong point.\n\n@param end The point that the bearing is calculated for.\n@return The bearing, in degrees, of the supplied point from this point.", "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "Sleeps if necessary to slow down the caller.\n\n@param eventsSeen Number of events seen since last invocation. Basis for\ndetermining whether its necessary to sleep.", "Marks inbox message as read for given messageId\n@param messageId String messageId\n@return boolean value depending on success of operation", "Return a string that ensures that no line is longer then 512 characters\nand lines are broken according to manifest specification.\n\n@param input The buffer containing the content that should be made safe\n@param newline The string to use to create newlines (usually \"\\n\" or\n\"\\r\\n\")\n@return The string with no longer lines then 512, ready to be read again\nby {@link MergeableManifest2}.", "Iterates through the given CharSequence line by line, splitting each line using\nthe given separator Pattern. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param pattern the regular expression Pattern for the delimiter\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Apply the remote domain model to the local host controller.\n\n@param bootOperations the result of the remote read-domain-model op\n@return {@code true} if the model was applied successfully, {@code false} otherwise", "capture screenshot of an eye", "Use this API to fetch onlinkipv6prefix resource of given name ." ]
public double areaSquared(HalfEdge hedge0, HalfEdge hedge1) { Point3d p0 = hedge0.tail().pnt; Point3d p1 = hedge0.head().pnt; Point3d p2 = hedge1.head().pnt; double dx1 = p1.x - p0.x; double dy1 = p1.y - p0.y; double dz1 = p1.z - p0.z; double dx2 = p2.x - p0.x; double dy2 = p2.y - p0.y; double dz2 = p2.z - p0.z; double x = dy1 * dz2 - dz1 * dy2; double y = dz1 * dx2 - dx1 * dz2; double z = dx1 * dy2 - dy1 * dx2; return x * x + y * y + z * z; }
[ "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return" ]
[ "used for upload progress", "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception", "Return whether or not the data object has a default value passed for this field of this type.", "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Calculate the determinant.\n\n@return Determinant.", "Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e., the implementation of {@link #setValues(RandomVariable[], RandomVariable[])} and\nthat of {@link #setDerivatives(RandomVariable[], RandomVariable[][])} is reused.\n\nThe initial values of the cloned optimizer will either be the original\ninitial values of this object or the best parameters obtained by this\noptimizer, the latter is used only if this optimized signals a {@link #done()}.\n\n@param newTargetVaues New list of target values.\n@param newWeights New list of weights.\n@param isUseBestParametersAsInitialParameters If true and this optimizer is done(), then the clone will use this.{@link #getBestFitParameters()} as initial parameters.\n@return A new LevenbergMarquardt optimizer, cloning this one except modified target values and weights.\n@throws CloneNotSupportedException Thrown if this optimizer cannot be cloned.", "Returns only the leaf categories of the wrapped categories.\n\nThe method assumes that categories are ordered in the list, i.e., parents are directly followed by their children.\n\nNOTE: In the complete category tree a leaf of the wrapped tree part may not be a leaf.\n\n@return only the leaf categories of the wrapped categories." ]
public static HashMap<String, String> getParameters(String query) { HashMap<String, String> params = new HashMap<String, String>(); if (query == null || query.length() == 0) { return params; } String[] splitQuery = query.split("&"); for (String splitItem : splitQuery) { String[] items = splitItem.split("="); if (items.length == 1) { params.put(items[0], ""); } else { params.put(items[0], items[1]); } } return params; }
[ "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters" ]
[ "Pass the activity you use the drawer in ;)\nThis is required if you want to set any values by resource\n\n@param activity\n@return", "Gets a first data set value.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label.", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Retrieves the members of the given type.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the Members attribute\n@param paramValue The feature to be added to the Members attribute\n@throws XDocletException If an error occurs", "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Obtains a Pax local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public String findPlatformFor(String jdbcSubProtocol, String jdbcDriver) { String platform = (String)jdbcSubProtocolToPlatform.get(jdbcSubProtocol); if (platform == null) { platform = (String)jdbcDriverToPlatform.get(jdbcDriver); } return platform; }
[ "Derives the OJB platform to use for a database that is connected via a url using the specified\nsubprotocol, and where the specified jdbc driver is used.\n\n@param jdbcSubProtocol The JDBC subprotocol used to connect to the database\n@param jdbcDriver The JDBC driver used to connect to the database\n@return The platform identifier or <code>null</code> if no platform could be found" ]
[ "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws OperationFailedException in case we can't remove the management resource.", "Check if the right-hand side type may be assigned to the left-hand side\ntype following the Java generics rules.\n@param lhsType the target type\n@param rhsType the value type that should be assigned to the target type\n@return true if rhs is assignable to lhs", "Use this API to fetch the statistics of all service_stats resources that are configured on netscaler.", "Returns the naming context.", "Delete inactive contents.", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object", "Returns a list with argument words that are not equal in all cases", "This function uses a proxy which is capable of transforming typed invocations into proper HTTP calls\nwhich will be understood by RESTful services. This works for subresources as well. Interfaces and\nconcrete classes can be proxified, in the latter case a CGLIB runtime dependency is needed. CXF JAX-RS\nproxies can be configured the same way as HTTP-centric WebClients and response status and headers can\nalso be checked. HTTP response errors can be converted into typed exceptions." ]
public String[] getAttributeNames() { Set keys = (attributeMap == null ? new HashSet() : attributeMap.keySet()); String[] result = new String[keys.size()]; keys.toArray(result); return result; }
[ "Returns an array of the names of all atributes of this descriptor.\n\n@return The list of attribute names (will not be <code>null</code>)" ]
[ "Creates the server bootstrap.", "Gets the event type from message.\n\n@param message the message\n@return the event type", "Gets existing config files.\n\n@return the existing config files", "Make a copy.", "Mapping message info.\n\n@param messageInfo the message info\n@return the message info type", "Get the bounding-box containing all features of all layers.", "Saves the loaded XML bundle as property bundle.\n@throws UnsupportedEncodingException thrown if localizations from the XML bundle could not be loaded correctly.\n@throws CmsException thrown if any of the interactions with the VFS fails.\n@throws IOException thrown if localizations from the XML bundle could not be loaded correctly.", "Use this API to fetch sslciphersuite resources of given names .", "read the prefetchInLimit from Config based on OJB.properties" ]
@SafeVarargs public static void registerFilterTypes(final Class<? extends DynamicFilter>... types) { FILTER_TYPES.addAll(Arrays.asList(types)); }
[ "Register custom filter types especially for serializer of specification json file" ]
[ "Prints the results of the equation to standard out. Useful for debugging", "Delete the proxy history for the active profile\n\n@throws Exception exception", "Checks whether given class descriptor has a primary key.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Get info for a given topic reply\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@param replyId\nUnique identifier of a reply for a given topic {@link Reply}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html\">API Documentation</a>", "Convert a query parameter to the correct object type based on the first letter of the name.\n\n@param name parameter name\n@param value parameter value\n@return parameter object as\n@throws ParseException value could not be parsed\n@throws NumberFormatException value could not be parsed", "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 configured.\n\n@param request instance of {@code HttpRequest}\n@param responder instance of {@code HttpResponder} to handle the request.", "Use this API to clear nsconfig.", "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Saves the project file displayed in this panel.\n\n@param file target file\n@param type file type" ]
private TypeArgSignature getTypeArgSignature(Type type) { if (type instanceof WildcardType) { WildcardType wildcardType = (WildcardType) type; Type lowerBound = wildcardType.getLowerBounds().length == 0 ? null : wildcardType.getLowerBounds()[0]; Type upperBound = wildcardType.getUpperBounds().length == 0 ? null : wildcardType.getUpperBounds()[0]; if (lowerBound == null && Object.class.equals(upperBound)) { return new TypeArgSignature( TypeArgSignature.UNBOUNDED_WILDCARD, (FieldTypeSignature) getFullTypeSignature(upperBound)); } else if (lowerBound == null && upperBound != null) { return new TypeArgSignature( TypeArgSignature.UPPERBOUND_WILDCARD, (FieldTypeSignature) getFullTypeSignature(upperBound)); } else if (lowerBound != null) { return new TypeArgSignature( TypeArgSignature.LOWERBOUND_WILDCARD, (FieldTypeSignature) getFullTypeSignature(lowerBound)); } else { throw new RuntimeException("Invalid type"); } } else { return new TypeArgSignature(TypeArgSignature.NO_WILDCARD, (FieldTypeSignature) getFullTypeSignature(type)); } }
[ "get the TypeArgSignature corresponding to given type\n\n@param type\n@return" ]
[ "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Make log segment file name from offset bytes. All this does is pad out the offset number\nwith zeros so that ls sorts the files numerically\n@param offset offset value (padding with zero)\n@return filename with offset", "The derivative of the objective function. You may override this method\nif you like to implement your own derivative.\n\n@param parameters Input value. The parameter vector.\n@param derivatives Output value, where derivatives[i][j] is d(value(j)) / d(parameters(i)\n@throws SolverException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Function to serialize the given Vector clock into a string. If something\ngoes wrong, it returns an empty string.\n\n@param vc The Vector clock to serialize\n@return The string (JSON) version of the specified Vector clock", "defines the KEY in the parent report parameters map where to get the subreport parameters map.\n@param path where to get the parameter map for the subrerpot.\n@return", "When creating barcode columns\n@return", "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string" ]
@Deprecated @SuppressWarnings("deprecation") protected void registerAddOperation(final ManagementResourceRegistration registration, final OperationStepHandler handler, OperationEntry.Flag... flags) { if (handler instanceof DescriptionProvider) { registration.registerOperationHandler(getOperationDefinition(ModelDescriptionConstants.ADD, (DescriptionProvider) handler, OperationEntry.EntryType.PUBLIC,flags) , handler); } else { registration.registerOperationHandler(getOperationDefinition(ModelDescriptionConstants.ADD, new DefaultResourceAddDescriptionProvider(registration, descriptionResolver, orderedChild), OperationEntry.EntryType.PUBLIC, flags) , handler); } }
[ "Registers add operation\n\n@param registration resource on which to register\n@param handler operation handler to register\n@param flags with flags\n@deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.controller.registry.OperationEntry.Flag...)}" ]
[ "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached.", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", ">>>>>> measureUntilFull helper methods", "Rotate list of String. Used for randomize selection of received endpoints\n\n@param strings\nlist of Strings\n@return the same list in random order", "Processes one dump file with the given dump file processor, handling\nexceptions appropriately.\n\n@param dumpFile\nthe dump file to process\n@param dumpFileProcessor\nthe dump file processor to use", "Use this API to add snmpmanager.", "Notifies that a header item is changed.\n\n@param position the position.", "Checks the given field descriptor.\n\n@param fieldDef The field descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition" ]
protected void capture3DScreenShot(GVRRenderTarget renderTarget, boolean isMultiview) { if (mScreenshot3DCallback == null) { return; } final Bitmap[] bitmaps = new Bitmap[6]; renderSixCamerasAndReadback(mMainScene.getMainCameraRig(), bitmaps, renderTarget, isMultiview); returnScreenshot3DToCaller(mScreenshot3DCallback, bitmaps, mReadbackBufferWidth, mReadbackBufferHeight); mScreenshot3DCallback = null; }
[ "capture 3D screenshot" ]
[ "Set the pickers selection type.", "Runs calls in a background thread so that the results will actually be asynchronous.\n\n@see com.google.appengine.tools.cloudstorage.RawGcsService#continueObjectCreationAsync(\ncom.google.appengine.tools.cloudstorage.RawGcsService.RawGcsCreationToken,\njava.nio.ByteBuffer, long)", "Create a RemoteWebDriver backed EmbeddedBrowser.\n\n@param hubUrl Url of the server.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Runs a Story with the given steps factory, applying the given meta\nfilter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param stepsFactory the InjectableStepsFactory used to created the\ncandidate steps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Collection of methods found\n@throws Exception exception", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping.", "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Collection of methods found\n@throws Exception exception", "Return whether or not the data object has a default value passed for this field of this type." ]
public static Object formatL(final String template, final Object... args) { return new Object() { @Override public String toString() { return format(template, args); } }; }
[ "format with lazy-eval" ]
[ "Resets the text box by removing its content and resetting visual state.", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Use this API to fetch sslocspresponder resource of given name .", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Use this API to apply nspbr6.", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Remember execution time for all executed suites.", "Returns all ApplicationProjectModels.", "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function." ]
public void deployApplication(String applicationName, URL... urls) throws IOException { this.applicationName = applicationName; for (URL url : urls) { try (InputStream inputStream = url.openStream()) { deploy(inputStream); } } }
[ "Deploys application reading resources from specified URLs\n\n@param applicationName to configure in cluster\n@param urls where resources are read\n@return the name of the application\n@throws IOException" ]
[ "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id.", "Returns all program element docs that have a visibility greater or\nequal than the specified level", "Reads entries from transforms.xml.\n\n@param file the XML file\n@return the transform entries read from the file\n\n@throws Exception if something goes wrong", "Use this API to delete application.", "Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException", "Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS", "Creates a new GridLines instance.\n\n@param data data block\n@param offset offset into data block\n@return new GridLines instance", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value" ]
public void setLinearLowerLimits(float limitX, float limitY, float limitZ) { Native3DGenericConstraint.setLinearLowerLimits(getNative(), limitX, limitY, limitZ); }
[ "Sets the lower limits for the \"moving\" body translation relative to joint point.\n\n@param limitX the X axis lower translation limit\n@param limitY the Y axis lower translation limit\n@param limitZ the Z axis lower translation limit" ]
[ "Assigned action code", "Port forward missing module changes for each layer.\n\n@param patch the current patch\n@param context the patch context\n@throws PatchingException\n@throws IOException\n@throws XMLStreamException", "Calls the stored procedure stored procedure throws an\nerror if it doesn't exist.\n@param broker\n@param cld\n@param sequenceName\n@return\n@throws LookupException\n@throws SQLException", "The metadata cache can become huge over time. This simply flushes it periodically.", "Populate the expanded exceptions list based on the main exceptions list.\nWhere we find recurring exception definitions, we generate individual\nexceptions for each recurrence to ensure that we account for them correctly.", "Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found.", "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path", "Returns the URL of the class file where the given class has been loaded from.\n\n@throws IllegalArgumentException\nif failed to determine.\n@since 2.24", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object." ]
protected void appendList(StringBuilder sql, List<?> list, String init, String sep) { boolean first = true; for (Object s : list) { if (first) { sql.append(init); } else { sql.append(sep); } sql.append(s); first = false; } }
[ "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list." ]
[ "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running.", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Gets the declared bean type\n\n@return The bean type", "Create a Css Selector Transform", "Use this API to fetch all the gslbldnsentries resources that are configured on netscaler.", "Creates a new deployment for the URL. The target server will require access to the URL.\n\n@param url the URL representing the content\n\n@return the deployment", "Check if new license pattern is valid and doesn't match any existing one\n@param newComer License being added or edited\n@throws WebApplicationException if conflicts involving the newComer are detected", "Removes the observation that fits the model the worst and recomputes the coefficients.\nThis is done efficiently by using an adjustable solver. Often times the elements with\nthe largest errors are outliers and not part of the system being modeled. By removing them\na more accurate set of coefficients can be computed.", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException" ]
public static Date getTimestampFromLong(long timestamp) { TimeZone tz = TimeZone.getDefault(); Date result = new Date(timestamp - tz.getRawOffset()); if (tz.inDaylightTime(result) == true) { int savings; if (HAS_DST_SAVINGS == true) { savings = tz.getDSTSavings(); } else { savings = DEFAULT_DST_SAVINGS; } result = new Date(result.getTime() - savings); } return (result); }
[ "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer\n@return new Date instance" ]
[ "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed.", "Finds the parent address, everything before the last address part.\n\n@param address the address to get the parent\n\n@return the parent address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty", "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name .", "Finds all nWise combinations of a set of variables, each with a given domain of values\n\n@param nWise the number of variables in each combination\n@param coVariables the varisbles\n@param variableDomains the domains\n@return all nWise combinations of the set of variables", "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document", "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef", "Update the plane based on arcore best knowledge of the world\n\n@param scale" ]
private void setProperties(Properties properties) { Props props = new Props(properties); if(props.containsKey(BOOTSTRAP_URLS_PROPERTY)) { setBootstrapURLs(props.getList(BOOTSTRAP_URLS_PROPERTY)); } if(props.containsKey(FAT_CLIENTS_CONFIG_SOURCE)) { setFatClientConfigSource(StoreClientConfigSource.get(props.getString(FAT_CLIENTS_CONFIG_SOURCE))); } if(props.containsKey(FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY)) { setFatClientConfigPath(props.getString(FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY)); } if(props.containsKey(METADATA_CHECK_INTERVAL_IN_MS)) { setMetadataCheckIntervalInMs(props.getInt(METADATA_CHECK_INTERVAL_IN_MS)); } if(props.containsKey(NETTY_SERVER_PORT)) { setServerPort(props.getInt(NETTY_SERVER_PORT)); } if(props.containsKey(NETTY_SERVER_BACKLOG)) { setNettyServerBacklog(props.getInt(NETTY_SERVER_BACKLOG)); } if(props.containsKey(COORDINATOR_CORE_THREADS)) { setCoordinatorCoreThreads(props.getInt(COORDINATOR_CORE_THREADS)); } if(props.containsKey(COORDINATOR_MAX_THREADS)) { setCoordinatorMaxThreads(props.getInt(COORDINATOR_MAX_THREADS)); } if(props.containsKey(COORDINATOR_QUEUED_REQUESTS)) { setCoordinatorQueuedRequestsSize(props.getInt(COORDINATOR_QUEUED_REQUESTS)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_INITIAL_LINE_LENGTH)) { setHttpMessageDecoderMaxInitialLength(props.getInt(HTTP_MESSAGE_DECODER_MAX_INITIAL_LINE_LENGTH)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_HEADER_SIZE)) { setHttpMessageDecoderMaxHeaderSize(props.getInt(HTTP_MESSAGE_DECODER_MAX_HEADER_SIZE)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_CHUNK_SIZE)) { setHttpMessageDecoderMaxChunkSize(props.getInt(HTTP_MESSAGE_DECODER_MAX_CHUNK_SIZE)); } if(props.containsKey(ADMIN_ENABLE)) { setAdminServiceEnabled(props.getBoolean(ADMIN_ENABLE)); } if(props.containsKey(ADMIN_PORT)) { setAdminPort(props.getInt(ADMIN_PORT)); } }
[ "Set the values using the specified Properties object\n\n@param properties Properties object containing specific property values\nfor the Coordinator config" ]
[ "Use this API to reset appfwlearningdata.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "Returns the query string currently in the text field.\n\n@return the query string", "Checks if the given project exists or not.\n\n@param name project name\n@return true/false\n@throws IllegalArgumentException", "Gets the crouton's layout parameters, constructing a default if necessary.\n\n@return the layout parameters", "Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service", "Add server redirect to a profile, using current active ServerGroup\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@return ID of added ServerRedirect\n@throws Exception exception", "Locate the no arg constructor for the class." ]
protected String getBasePath(String rootPath) { if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) { return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length()); } return rootPath; }
[ "Returns the base path for a given configuration file.\n\nE.g. the result for the input '/sites/default/.container-config' will be '/sites/default'.<p>\n\n@param rootPath the root path of the configuration file\n\n@return the base path for the configuration file" ]
[ "Create a unique signature for this shader.\nThe signature for simple shaders is just the class name.\nFor the more complex shaders generated by GVRShaderTemplate\nthe signature includes information about the vertex attributes,\nuniforms, textures and lights used by the shader variant.\n\n@param defined\nnames to be defined for this shader\n@return string signature for shader\n@see GVRShaderTemplate", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Verifies given web-hook information.\n\n@param signatureVersion\nsignature version received from web-hook\n@param signatureAlgorithm\nsignature algorithm received from web-hook\n@param primarySignature\nprimary signature received from web-hook\n@param secondarySignature\nsecondary signature received from web-hook\n@param webHookPayload\npayload of web-hook\n@param deliveryTimestamp\ndevilery timestamp received from web-hook\n@return true, if given payload is successfully verified against primary and secondary signatures, false otherwise", "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Set sizes to override the generated URLs of the different sizes.\n\n@param sizes\n@see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)", "Starts data synchronization in a background thread.", "do the parsing on an JSONObject, assumes that the json is hierarchical\nordered, so all shapes are reachable over child relations\n@param json hierarchical JSON object\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException", "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails" ]
public static nsip6[] get(nitro_service service) throws Exception{ nsip6 obj = new nsip6(); nsip6[] response = (nsip6[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the nsip6 resources that are configured on netscaler." ]
[ "Sets the initial MoificationState of the wrapped object myObj. The initial state will be StateNewDirty if myObj\nis not persisten already. The state will be set to StateOldClean if the object is already persistent.", "Gets the JVM memory usage.\n\n@return the JVM memory usage", "Get a TokenizerFactory that does Penn Treebank tokenization.\nThis is now the recommended factory method to use.\n\n@param factory A TokenFactory that determines what form of token is returned by the Tokenizer\n@param options A String specifying options (see the class javadoc for details)\n@param <T> The type of the tokens built by the LexedTokenFactory\n@return A TokenizerFactory that does Penn Treebank tokenization", "Read an optional month value form a JSON value.\n@param val the JSON value that should represent the month.\n@return the month from the JSON or null if reading the month fails.", "Utility function that converts a list to a map.\n\n@param list The list in which even elements are keys and odd elements are\nvalues.\n@rturn The map container that maps even elements to odd elements, e.g.\n0->1, 2->3, etc.", "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to", "Obtain an OTMConnection for the given persistence broker key", "Helper to read a mandatory String value list.\n@param path The XML path of the element to read.\n@return The String list stored in the XML, or <code>null</code> if the value could not be read.\n@throws Exception thrown if the list of String values can not be read." ]
public static base_responses update(nitro_service client, nd6ravariables resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nd6ravariables updateresources[] = new nd6ravariables[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nd6ravariables(); updateresources[i].vlan = resources[i].vlan; updateresources[i].ceaserouteradv = resources[i].ceaserouteradv; updateresources[i].sendrouteradv = resources[i].sendrouteradv; updateresources[i].srclinklayeraddroption = resources[i].srclinklayeraddroption; updateresources[i].onlyunicastrtadvresponse = resources[i].onlyunicastrtadvresponse; updateresources[i].managedaddrconfig = resources[i].managedaddrconfig; updateresources[i].otheraddrconfig = resources[i].otheraddrconfig; updateresources[i].currhoplimit = resources[i].currhoplimit; updateresources[i].maxrtadvinterval = resources[i].maxrtadvinterval; updateresources[i].minrtadvinterval = resources[i].minrtadvinterval; updateresources[i].linkmtu = resources[i].linkmtu; updateresources[i].reachabletime = resources[i].reachabletime; updateresources[i].retranstime = resources[i].retranstime; updateresources[i].defaultlifetime = resources[i].defaultlifetime; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update nd6ravariables resources." ]
[ "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha", "Initializes the bean name defaulted", "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "Get a loader that lists the Files in the current path,\nand monitors changes.", "Retrieves the notes text for this resource.\n\n@return notes text", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Resizes an image to the specified width, changing width in the same proportion\n@param originalImage Image in memory\n@param widthOut The width to resize\n@return New Image in memory", "Sets ID field value.\n\n@param val value" ]
private void debugLogStart(String operationType, Long originTimeInMS, Long requestReceivedTimeInMs, String keyString) { long durationInMs = requestReceivedTimeInMs - originTimeInMS; logger.debug("Received a new request. Operation Type: " + operationType + " , key(s): " + keyString + " , Store: " + this.storeName + " , Origin time (in ms): " + originTimeInMS + " . Request received at time(in ms): " + requestReceivedTimeInMs + " , Duration from RESTClient to CoordinatorFatClient(in ms): " + durationInMs); }
[ "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString" ]
[ "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "Use this API to fetch policydataset_value_binding resources of given name .", "Throws an exception if the current thread is not a GL thread.\n\n@since 1.6.5", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "Generates a toString method using concatenation or a StringBuilder.", "Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining only the selected elements", "Remove a DAO from the cache. This is necessary if we've registered it already but it throws an exception during\nconfiguration.", "Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of known currencies, never null.", "Retrieves the class object for the class with the given name.\n\n@param name The class name\n@return The class object\n@throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name)" ]
private void createTimephasedData(ProjectFile file, ResourceAssignment assignment, List<TimephasedWork> timephasedPlanned, List<TimephasedWork> timephasedComplete) { if (timephasedPlanned.isEmpty() && timephasedComplete.isEmpty()) { Duration totalMinutes = assignment.getWork().convertUnits(TimeUnit.MINUTES, file.getProjectProperties()); Duration workPerDay; if (assignment.getResource() == null || assignment.getResource().getType() == ResourceType.WORK) { workPerDay = totalMinutes.getDuration() == 0 ? totalMinutes : ResourceAssignmentFactory.DEFAULT_NORMALIZER_WORK_PER_DAY; int units = NumberHelper.getInt(assignment.getUnits()); if (units != 100) { workPerDay = Duration.getInstance((workPerDay.getDuration() * units) / 100.0, workPerDay.getUnits()); } } else { if (assignment.getVariableRateUnits() == null) { Duration workingDays = assignment.getCalendar().getWork(assignment.getStart(), assignment.getFinish(), TimeUnit.DAYS); double units = NumberHelper.getDouble(assignment.getUnits()); double unitsPerDayAsMinutes = (units * 60) / (workingDays.getDuration() * 100); workPerDay = Duration.getInstance(unitsPerDayAsMinutes, TimeUnit.MINUTES); } else { double unitsPerHour = NumberHelper.getDouble(assignment.getUnits()); workPerDay = ResourceAssignmentFactory.DEFAULT_NORMALIZER_WORK_PER_DAY; Duration hoursPerDay = workPerDay.convertUnits(TimeUnit.HOURS, file.getProjectProperties()); double unitsPerDayAsHours = (unitsPerHour * hoursPerDay.getDuration()) / 100; double unitsPerDayAsMinutes = unitsPerDayAsHours * 60; workPerDay = Duration.getInstance(unitsPerDayAsMinutes, TimeUnit.MINUTES); } } Duration overtimeWork = assignment.getOvertimeWork(); if (overtimeWork != null && overtimeWork.getDuration() != 0) { Duration totalOvertimeMinutes = overtimeWork.convertUnits(TimeUnit.MINUTES, file.getProjectProperties()); totalMinutes = Duration.getInstance(totalMinutes.getDuration() - totalOvertimeMinutes.getDuration(), TimeUnit.MINUTES); } TimephasedWork tra = new TimephasedWork(); tra.setStart(assignment.getStart()); tra.setAmountPerDay(workPerDay); tra.setModified(false); tra.setFinish(assignment.getFinish()); tra.setTotalAmount(totalMinutes); timephasedPlanned.add(tra); } }
[ "Method used to create missing timephased data.\n\n@param file project file\n@param assignment resource assignment\n@param timephasedPlanned planned timephased data\n@param timephasedComplete complete timephased data" ]
[ "Loads a PDF document and creates a DOM tree from it.\n@param doc the source document\n@return a DOM Document representing the DOM tree\n@throws IOException", "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "Returns the value of the element with the largest value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Increment the version info associated with the given node\n\n@param node The node", "Use this API to fetch filtered set of vpnclientlessaccesspolicy resources.\nset the filter parameter values in filtervalue object.", "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name .", "Prints the results of the equation to standard out. Useful for debugging", "Read all configuration files.\n@return the list with all available configurations", "request token from FCM" ]
public static void checkOperatorIsValid(int operatorCode) { switch (operatorCode) { case OPERATOR_LT: case OPERATOR_LE: case OPERATOR_EQ: case OPERATOR_NE: case OPERATOR_GE: case OPERATOR_GT: case OPERATOR_UNKNOWN: return; default: throw new IllegalStateException(String.format(Locale.US, ERROR_INVALID_CODE, operatorCode)); } }
[ "Checks if the given operator code is a valid one.\n\n@param operatorCode an operator code to evaluate\n@throws IllegalStateException if operatorCode is not a known operator code." ]
[ "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 the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "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", "except for the ones that make the content appear under the system bars.", "Use this API to fetch aaagroup_aaauser_binding resources of given name .", "Drives the unit test.", "Searches for descriptions of integer sequences and array ranges that have a colon character in them\n\nExamples of integer sequences:\n1:6\n2:4:20\n:\n\nExamples of array range\n2:\n2:4:", "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Method will be executed asynchronously." ]
@Override public Task addTask() { ProjectFile parent = getParentFile(); Task task = new Task(parent, this); m_children.add(task); parent.getTasks().add(task); setSummary(true); return (task); }
[ "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task" ]
[ "Returns first enum constant found..\n\n@param styleName Space-separated list of styles\n@param enumClass Type of enum\n@param defaultValue Default value of no match was found\n@return First enum constant found or default value", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "Sets the jdbc connection to use.\n\n@param jcd The connection to use\n@throws PlatformException If the target database cannot be handled with torque", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Request to join a group.\n\nNote: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to\nacceptRules) prior to making the join request.\n\n@param groupId\n- groupId parameter\n@param message\n- (required) message to group administrator\n@param acceptRules\n- (required) parameter indicating user has accepted groups rules", "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "Get PhoneNumber object\n\n@return PhonenUmber | null on error" ]
public List<FailedEventInvocation> getFailedInvocations() { synchronized (this.mutex) { if (this.failedEvents == null) { return Collections.emptyList(); } return Collections.unmodifiableList(this.failedEvents); } }
[ "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations." ]
[ "Retrieve the field location for a specific field.\n\n@param type field type\n@return field location", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written.", "Decorates a node with the affected operator, if any.\n\n@param context\n@param tree\n@param operations\n@return", "Add the given query parameters.\n@param params the params\n@return this UriComponentsBuilder", "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "Generic method used to create a field map from a block of data.\n\n@param data field map data", "Internal initialization.\n@throws ParserConfigurationException", "Get the service name of a top-level deployment unit.\n\n@param name the simple name of the deployment\n@param phase the deployment phase\n@return the service name" ]
protected void processLabels(List<MonolingualTextValue> labels) { for(MonolingualTextValue label : labels) { String lang = label.getLanguageCode(); NameWithUpdate currentValue = newLabels.get(lang); if (currentValue == null || !currentValue.value.equals(label)) { newLabels.put(lang, new NameWithUpdate(label, true)); // Delete any alias that matches the new label AliasesWithUpdate currentAliases = newAliases.get(lang); if (currentAliases != null && currentAliases.aliases.contains(label)) { deleteAlias(label); } } } }
[ "Adds labels to the item\n\n@param labels\nthe labels to add" ]
[ "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "Stores all entries contained in the given map in the cache.", "Scans all Forge addons for files accepted by given filter.", "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full", "Determines the address for the host being used.\n\n@param client the client used to communicate with the server\n\n@return the address of the host\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to determine the host name fails", "Calculate start dates for a monthly absolute recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Use this API to add snmpmanager resources.", "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long" ]
public CodePage getCodePage(int field) { CodePage result; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = CodePage.getInstance(m_fields[field]); } else { result = CodePage.getInstance(null); } return (result); }
[ "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "Prints a balance analysis to a file.\n\n@param outputDirName\n@param baseFileName suffix '.analysis' is appended to baseFileName.\n@param partitionBalance", "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option", "Return the current working directory\n\n@return the current working directory", "Use this API to fetch a appflowglobal_binding resource .", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Checks the component type of the given array against the expected component type.\n\n@param array\nthe array to be checked. May not be <code>null</code>.\n@param expectedComponentType\nthe expected component type of the array. May not be <code>null</code>.\n@return the unchanged array.\n@throws ArrayStoreException\nif the expected runtime {@code componentType} does not match the actual runtime component type.", "Set the value of one or more fields based on the contents of a database row.\n\n@param map column to field map\n@param row database row\n@param container field container", "Handles Multi Channel Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\nendpoint.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful" ]
private Serializable doWorkInIsolationTransaction(final SharedSessionContractImplementor session) throws HibernateException { class Work extends AbstractReturningWork<IntegralDataTypeHolder> { private final SharedSessionContractImplementor localSession = session; @Override public IntegralDataTypeHolder execute(Connection connection) throws SQLException { try { return doWorkInCurrentTransactionIfAny( localSession ); } catch ( RuntimeException sqle ) { throw new HibernateException( "Could not get or update next value", sqle ); } } } //we want to work out of transaction boolean workInTransaction = false; Work work = new Work(); Serializable generatedValue = session.getTransactionCoordinator().createIsolationDelegate().delegateWork( work, workInTransaction ); return generatedValue; }
[ "copied and altered from TransactionHelper" ]
[ "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The rho of the option", "Waits the given amount of time in seconds for a standalone server to start.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "This is more expensive.\n\n@param key key whose presence in this map is to be tested.\n@return <tt>true</tt> if this map contains a mapping for the specified\nkey.", "Creates a converter function that converts value into primitive type.\n\n@return A converter function or {@code null} if the given type is not primitive type or boxed type", "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock", "Mark new or deleted reference elements\n@param broker", "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Performs validation of the observer method for compliance with the specifications.", "Returns the name of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"" ]
public static String analyzeInvalidMetadataRate(final Cluster currentCluster, List<StoreDefinition> currentStoreDefs, final Cluster finalCluster, List<StoreDefinition> finalStoreDefs) { StringBuilder sb = new StringBuilder(); sb.append("Dump of invalid metadata rates per zone").append(Utils.NEWLINE); HashMap<StoreDefinition, Integer> uniqueStores = StoreDefinitionUtils.getUniqueStoreDefinitionsWithCounts(currentStoreDefs); for(StoreDefinition currentStoreDef: uniqueStores.keySet()) { sb.append("Store exemplar: " + currentStoreDef.getName()) .append(Utils.NEWLINE) .append("\tThere are " + uniqueStores.get(currentStoreDef) + " other similar stores.") .append(Utils.NEWLINE); StoreRoutingPlan currentSRP = new StoreRoutingPlan(currentCluster, currentStoreDef); StoreDefinition finalStoreDef = StoreUtils.getStoreDef(finalStoreDefs, currentStoreDef.getName()); StoreRoutingPlan finalSRP = new StoreRoutingPlan(finalCluster, finalStoreDef); // Only care about existing zones for(int zoneId: currentCluster.getZoneIds()) { int zonePrimariesCount = 0; int invalidMetadata = 0; // Examine nodes in current cluster in existing zone. for(int nodeId: currentCluster.getNodeIdsInZone(zoneId)) { // For every zone-primary in current cluster for(int zonePrimaryPartitionId: currentSRP.getZonePrimaryPartitionIds(nodeId)) { zonePrimariesCount++; // Determine if original zone-primary node is still some // form of n-ary in final cluster. If not, // InvalidMetadataException will fire. if(!finalSRP.getZoneNAryPartitionIds(nodeId) .contains(zonePrimaryPartitionId)) { invalidMetadata++; } } } float rate = invalidMetadata / (float) zonePrimariesCount; sb.append("\tZone " + zoneId) .append(" : total zone primaries " + zonePrimariesCount) .append(", # that trigger invalid metadata " + invalidMetadata) .append(" => " + rate) .append(Utils.NEWLINE); } } return sb.toString(); }
[ "Compares current cluster with final cluster. Uses pertinent store defs\nfor each cluster to determine if a node that hosts a zone-primary in the\ncurrent cluster will no longer host any zone-nary in the final cluster.\nThis check is the precondition for a server returning an invalid metadata\nexception to a client on a normal-case put or get. Normal-case being that\nthe zone-primary receives the pseudo-master put or the get operation.\n\n@param currentCluster\n@param currentStoreDefs\n@param finalCluster\n@param finalStoreDefs\n@return pretty-printed string documenting invalid metadata rates for each\nzone." ]
[ "Vend a SessionVar with the default value", "Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error", "This produces a shorter string for the address that uses the canonical representation but not using leading zeroes.\n\nEach address has a unique compressed string.", "Add the list with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The list of all bundles to add.", "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "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 result can be read by the current user.", "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise", "Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.", "Use this API to fetch appfwsignatures resource of given name ." ]
public static long count(nitro_service service, Long td) throws Exception{ nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding(); obj.set_td(td); options option = new options(); option.set_count(true); nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
[ "Use this API to count nstrafficdomain_bridgegroup_binding resources configued on NetScaler." ]
[ "Replies the elements of the given map except the pairs with the given keys.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keys the keys of the pairs to remove.\n@return the map with the content of the map except the pairs.\n@since 2.15", "Return the hostname of this address such as \"MYCOMPUTER\".", "Returns a Span that covers all rows beginning with a prefix String parameters will be encoded\nas UTF-8", "Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project", "Start export and check in of the selected modules.\n@return The exit code of the check in procedure (like a script's exit code).", "init database with demo data", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException" ]
public void handleEvent(Event event) { LOG.fine("ContentLengthHandler called"); //if maximum length is shorter then <cut><![CDATA[ ]]></cut> it's not possible to cut the content if(CUT_START_TAG.length() + CUT_END_TAG.length() > length) { LOG.warning("Trying to cut content. But length is shorter then needed for " + CUT_START_TAG + CUT_END_TAG + ". So content is skipped."); event.setContent(""); return; } int currentLength = length - CUT_START_TAG.length() - CUT_END_TAG.length(); if (event.getContent() != null && event.getContent().length() > length) { LOG.fine("cutting content to " + currentLength + " characters. Original length was " + event.getContent().length()); LOG.fine("Content before cutting: " + event.getContent()); event.setContent(CUT_START_TAG + event.getContent().substring(0, currentLength) + CUT_END_TAG); LOG.fine("Content after cutting: " + event.getContent()); } }
[ "Cut the message content to the configured length.\n\n@param event the event" ]
[ "Create a discount curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this discount curve.\n@param times Array of times as doubles.\n@param givenDiscountFactors Array of corresponding discount factors.\n@return A new discount factor object.", "Resets the handler data to a basic state.", "Creates a map of identifiers or page titles to documents retrieved via\nthe APIs.\n\n@param numOfEntities\nnumber of entities that should be retrieved\n@param properties\nWbGetEntitiesProperties object that includes all relevant\nparameters for the wbgetentities action\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\n@throws IOException", "Parses a string that contains single fat client config string in avro\nformat\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Properties of single fat client config", "Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.", "Parse work units.\n\n@param value work units value\n@return TimeUnit instance", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException", "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file", "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" ]
public ProjectCalendar getCalendar() { ProjectCalendar calendar = null; Resource resource = getResource(); if (resource != null) { calendar = resource.getResourceCalendar(); } Task task = getTask(); if (calendar == null || task.getIgnoreResourceCalendar()) { calendar = task.getEffectiveCalendar(); } return calendar; }
[ "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance" ]
[ "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Upload a photo from a File.\n\n@param file\nthe photo file\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "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 dotPositions the positions of the dots to initialize from the dollarPositions\n@param nestingLevel the number of dots (i.e. how deep is the nesting of the classes)", "Returns whether or not the host editor service is available\n\n@return\n@throws Exception", "Initialize the fat client for the given store.\n\n1. Updates the coordinatorMetadata 2.Gets the new store configs from the\nconfig file 3.Creates a new @SocketStoreClientFactory 4. Subsequently\ncaches the @StoreClient obtained from the factory.\n\n\nThis is synchronized because if Coordinator Admin is already doing some\nchange we want the AsyncMetadataVersionManager to wait.\n\n@param storeName", "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "Returns true if the ASTNode is a declaration of a closure, either as a declaration\nor a field.\n@param expression\nthe target expression\n@return\nas described", "Use this API to renumber nspbr6 resources." ]
public static String parseString(String value) { if (value != null) { // Strip angle brackets if present if (!value.isEmpty() && value.charAt(0) == '<') { value = value.substring(1, value.length() - 1); } // Strip quotes if present if (!value.isEmpty() && value.charAt(0) == '"') { value = value.substring(1, value.length() - 1); } } return value; }
[ "Parse a string.\n\n@param value string representation\n@return String value" ]
[ "Return a list of photos for a user at a specific latitude, longitude and accuracy.\n\n@param location\n@param extras\n@param perPage\n@param page\n@return The collection of Photo objects\n@throws FlickrException\n@see com.flickr4java.flickr.photos.Extras", "Use this API to fetch filterpolicy_csvserver_binding resources of given name .", "Get the metadata of all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the track information reported by all current players, including any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the MetadataFinder is not running", "Runs the currently entered query and displays the results.", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Returns the number of key-value mappings in this map for the second key.\n\n@param firstKey\nthe first key\n@return Returns the number of key-value mappings in this map for the second key.", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded", "Look for a style in the named styles provided in the configuration.\n\n@param styleName the name of the style to look for.", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task." ]
public void doRun(Properties properties) { ServerSetup[] serverSetup = new PropertiesBasedServerSetupBuilder().build(properties); if (serverSetup.length == 0) { printUsage(System.out); } else { greenMail = new GreenMail(serverSetup); log.info("Starting GreenMail standalone v{} using {}", BuildInfo.INSTANCE.getProjectVersion(), Arrays.toString(serverSetup)); greenMail.withConfiguration(new PropertiesBasedGreenMailConfigurationBuilder().build(properties)) .start(); } }
[ "Start and configure GreenMail using given properties.\n\n@param properties the properties such as System.getProperties()" ]
[ "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection.", "Get a loader that lists the Files in the current path,\nand monitors changes.", "Write a list of custom field attributes.", "return the workspace size needed for ctc", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "Handle an end time change.\n@param event the change event.", "Returns the list of store defs as a map\n\n@param storeDefs\n@return", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache" ]
private void readProjectProperties(Project project) throws MPXJException { ProjectProperties properties = m_projectFile.getProjectProperties(); properties.setCompany(project.getCompany()); properties.setManager(project.getManager()); properties.setName(project.getName()); properties.setStartDate(getDateTime(project.getProjectStart())); }
[ "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file" ]
[ "Main entry point. Reads a directory containing a P3 Btrieve database files\nand returns a map of table names and table content.\n\n@param directory directory containing the database\n@param prefix file name prefix used to identify files from the same database\n@return Map of table names to table data", "Convert this buffer to a java array.\n@return", "Given a cluster and a node id checks if the node exists\n\n@param nodeId The node id to search for\n@return True if cluster contains the node id, else false", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "Check whether the value is matched by a regular expression.\n\n@param value value\n@param regex regular expression\n@return true when value is matched", "Map custom info.\n\n@param ciType the custom info type\n@return the map", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed", "Internal used method which start the real store work." ]
public void setConvergence( int maxIterations , double ftol , double gtol ) { this.maxIterations = maxIterations; this.ftol = ftol; this.gtol = gtol; }
[ "Specifies convergence criteria\n\n@param maxIterations Maximum number of iterations\n@param ftol convergence based on change in function value. try 1e-12\n@param gtol convergence based on residual magnitude. Try 1e-12" ]
[ "Builds the resource.\n\n@return the cms resource", "If you register a CustomExpression with the name \"customExpName\", then this will create the text needed\nto invoke it in a JRDesignExpression\n\n@param customExpName\n@param usePreviousFieldValues\n@return", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Create a container in the platform\n\n@param container\nThe name of the container", "Returns the compact task records for all tasks with the given tag.\n\n@param tag The tag in which to search for tasks.\n@return Request object", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Returns the default privacy level for geographic information attached to the user's photos.\n\n@return privacy-level\n@throws FlickrException\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PRIVATE", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Retrieve the set of start dates represented by this recurrence data.\n\n@return array of start dates" ]
public void addForeignkey(String relationName, String remoteTable, List localColumns, List remoteColumns) { ForeignkeyDef foreignkeyDef = new ForeignkeyDef(relationName, remoteTable); // the field arrays have the same length if we already checked the constraints for (int idx = 0; idx < localColumns.size(); idx++) { foreignkeyDef.addColumnPair((String)localColumns.get(idx), (String)remoteColumns.get(idx)); } // we got to determine whether this foreignkey is already present ForeignkeyDef def = null; for (Iterator it = getForeignkeys(); it.hasNext();) { def = (ForeignkeyDef)it.next(); if (foreignkeyDef.equals(def)) { return; } } foreignkeyDef.setOwner(this); _foreignkeys.add(foreignkeyDef); }
[ "Adds a foreignkey to this table.\n\n@param relationName The name of the relation represented by the foreignkey\n@param remoteTable The referenced table\n@param localColumns The local columns\n@param remoteColumns The remote columns" ]
[ "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null}\n@return The source of the requested POM, never {@code null}\n@since Apache-Maven-3.2.2 (MNG-5639)", "Will create a JNDI Context and register it as the initial context factory builder\n\n@return the context\n@throws NamingException\non any issue during initial context factory builder registration", "Delete all backups asynchronously", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "Get PhoneNumber object\n\n@return PhonenUmber | null on error", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Reset the pool of resources for a specific destination. Idle resources\nwill be destroyed. Checked out resources that are subsequently checked in\nwill be destroyed. Newly created resources can be checked in to\nreestablish resources for the specific destination." ]
private static void mergeBlocks(List< Block > blocks) { for (int i = 1; i < blocks.size(); i++) { Block b1 = blocks.get(i - 1); Block b2 = blocks.get(i); if ((b1.mode == b2.mode) && (b1.mode != EncodingMode.NUM || b1.length + b2.length <= MAX_NUMERIC_COMPACTION_BLOCK_SIZE)) { b1.length += b2.length; blocks.remove(i); i--; } } }
[ "Combines adjacent blocks of the same type." ]
[ "Links the given widget to InstantSearch according to the interfaces it implements.\n\n@param widget a widget implementing ({@link AlgoliaResultsListener} || {@link AlgoliaErrorListener} || {@link AlgoliaSearcherListener}).", "Retrieve the currently cached value for the given document.", "Converts the string representation of a Planner duration into\nan MPXJ Duration instance.\n\nPlanner represents durations as a number of seconds in its\nfile format, however it displays durations as days and hours,\nand seems to assume that a working day is 8 hours.\n\n@param value string representation of a duration\n@return Duration instance", "Allocates a new next buffer and pending fetch.", "Get the exception message using the requested locale.\n\n@param locale locale for message\n@return exception message", "Indicates if this file represents a directory on the underlying file system.\n\n@param directoryPath\n@return", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "Given the alias of the entity and the path to the relationship it will return the alias\nof the component.\n\n@param entityAlias the alias of the entity\n@param propertyPathWithoutAlias the path to the property without the alias\n@return the alias the relationship or null", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height" ]
public <T extends Widget & Checkable> List<T> getCheckedWidgets() { List<T> checked = new ArrayList<>(); for (Widget c : getChildren()) { if (c instanceof Checkable && ((Checkable) c).isChecked()) { checked.add((T) c); } } return checked; }
[ "Gets all checked widgets in the group\n@return list of checked widgets" ]
[ "Writes the given configuration to the given file.", "Set the view frustum to pick against from the field of view, aspect\nratio and near, far clip planes. The viewpoint of the frustum\nis the center of the scene object the picker is attached to.\nThe view direction is the forward direction of that scene object.\nThe frustum will pick what a camera attached to the scene object\nwith that view frustum would see. If the frustum is not attached\nto a scene object, it defaults to the view frustum of the main camera of the scene.\n\n@param fovy vertical field of view in degrees\n@param aspect aspect ratio (width / height)", "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", "Set new front facing rotation\n@param rotation", "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link.", "Heat Equation Boundary Conditions", "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value", "state chain management ops below", "Searches the Html5ReportGenerator in Java path and instantiates the report" ]
public FailureDetectorConfig setCluster(Cluster cluster) { Utils.notNull(cluster); this.cluster = cluster; /* * FIXME: this is the hacky way to refresh the admin connection * verifier, but it'll just work. The clean way to do so is to have a * centralized metadata management, and all references of cluster object * point to that. */ if(this.connectionVerifier instanceof AdminConnectionVerifier) { ((AdminConnectionVerifier) connectionVerifier).setCluster(cluster); } return this; }
[ "Look at the comments on cluster variable to see why this is problematic" ]
[ "Obtains a local date in Julian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Julian local date, not null\n@throws DateTimeException if unable to create the date", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "Check whether the given is is matched by one of the include expressions.\n\n@param id id to check\n@param includes list of include regular expressions\n@return true when id is included", "Get a list of referring domains for a collection.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html\"", "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error).", "Log a warning for the given operation at the provided address for the given attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attribute attribute we that has problem", "Performs any needed operation on subreports after they are built like ensuring proper subreport with\nif \"fitToParentPrintableArea\" flag is set to true\n\n@param dr\n@param _parameters\n@throws JRException", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x." ]
public static sslfipskey[] get(nitro_service service) throws Exception{ sslfipskey obj = new sslfipskey(); sslfipskey[] response = (sslfipskey[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the sslfipskey resources that are configured on netscaler." ]
[ "Use this API to unset the properties of nslimitselector resource.\nProperties that need to be unset are specified in args array.", "Fills the Boyer Moore \"bad character array\" for the given pattern", "Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations.", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Creates all propertyvfsbundle files for the currently loaded translations.\nThe method is used to convert xmlvfsbundle files into propertyvfsbundle files.\n\n@throws CmsIllegalArgumentException thrown if resource creation fails.\n@throws CmsLoaderException thrown if the propertyvfsbundle type can't be read from the resource manager.\n@throws CmsException thrown if creation, type retrieval or locking fails.", "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on.", "Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers", "Disallow the job type from being executed.\n@param jobType the job type to disallow" ]
public static Deployment of(final Path content) { final DeploymentContent deploymentContent = DeploymentContent.of(Assert.checkNotNullParam("content", content)); return new Deployment(deploymentContent, null); }
[ "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment" ]
[ "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "Sets test status.", "Pump events from event stream.", "1-D Backward Discrete Cosine Transform.\n\n@param data Data.", "This filter permit to return an image sized exactly as requested wherever is its ratio by\nfilling with chosen color the missing parts. Usually used with \"fit-in\" or \"adaptive-fit-in\"\n\n@param color integer representation of color.", "Puts the cached security context in the thread local.\n\n@param context the cache context", "FastJSON does not provide the API so we have to create our own", "Starts the transition" ]
public void setResource(Resource resource) { m_resource = resource; String name = m_resource.getName(); if (name == null || name.length() == 0) { name = "Unnamed Resource"; } setName(name); }
[ "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance" ]
[ "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none.", "Uncheck all items in the list including all sub-items.\n@param list list of CmsTreeItem entries.", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "Parse the URI and get all the parameters in map form. Query name -&gt; List of Query values.\n\n@param rawQuery query portion of the uri to analyze.", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "Creates an IndexableTaskItem from provided FunctionalTaskItem.\n\n@param taskItem functional TaskItem\n@return IndexableTaskItem", "Initialize new instance\n@param instance\n@param logger\n@param auditor" ]
@Nonnull public static Builder builder(Revapi revapi) { List<String> knownExtensionIds = new ArrayList<>(); addExtensionIds(revapi.getPipelineConfiguration().getApiAnalyzerTypes(), knownExtensionIds); addExtensionIds(revapi.getPipelineConfiguration().getTransformTypes(), knownExtensionIds); addExtensionIds(revapi.getPipelineConfiguration().getFilterTypes(), knownExtensionIds); addExtensionIds(revapi.getPipelineConfiguration().getReporterTypes(), knownExtensionIds); return new Builder(knownExtensionIds); }
[ "Returns a new analysis context builder that extracts the information about the available extensions from\nthe provided Revapi instance.\n\n<p>The extensions have to be known so that both old and new style of configuration can be usefully worked with.\n\n@param revapi the revapi instance to read the available extensions from\n@return a new analysis context builder" ]
[ "Use this API to fetch systemsession resource of given name .", "Turn this profile on or off\n\n@param enabled true or false\n@return true on success, false otherwise", "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "Specifies the object id associated with a user assigned managed service identity\nresource that should be used to retrieve the access token.\n\n@param objectId Object ID of the identity to use when authenticating to Azure AD.\n@return MSICredentials", "Should be called after new data is inserted. Will be automatically called, when the view dimensions\nhas changed.\n\nCalculates the start- and end-angles for every PieSlice.", "We have received notification that a device is no longer on the network, so clear out its metadata.\n\n@param announcement the packet which reported the device’s disappearance", "Finds the column with the largest normal and makes that the first column\n\n@param j Current column being inspected", "Load a model to attach to the avatar\n@param avatarResource resource with avatar model\n@param attachBone name of bone to attach model to" ]
@OnClick(R.id.navigateToModule1Service) public void onNavigationServiceCTAClick() { Intent intentService = HensonNavigator.gotoModule1Service(this) .stringExtra("foo") .build(); startService(intentService); }
[ "Launch Navigation Service residing in the navigation module" ]
[ "Use this API to fetch the statistics of all rnat_stats resources that are configured on netscaler.", "Helper function that drops all local databases for every client.", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Load an animation for the current avatar.\n@param animResource resource with the animation\n@param boneMap optional bone map to map animation skeleton to avatar", "Check if this path matches the address path.\nAn address matches this address if its path elements match or are valid\nmulti targets for this path elements. Addresses that are equal are matching.\n\n@param address The path to check against this path. If null, this method\nreturns false.\n@return true if the provided path matches, false otherwise.", "Makes http GET request.\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException", "Send a mount update announcement to all registered listeners, and see if we can auto-attach a media cache file.\n\n@param slot the slot in which media has been mounted or unmounted\n@param mounted will be {@code true} if there is now media mounted in the specified slot", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success." ]
public List<String> uuids(long count) { final URI uri = new URIBase(clientUri).path("_uuids").query("count", count).build(); final JsonObject json = get(uri, JsonObject.class); return getGson().fromJson(json.get("uuids").toString(), DeserializationTypes.STRINGS); }
[ "Request a database sends a list of UUIDs.\n\n@param count The count of UUIDs." ]
[ "Determines the partition ID that replicates the key on the given node.\n\n@param nodeId of the node\n@param key to look up.\n@return partitionId if found, otherwise null.", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Retrieve the request History based on the specified filters.\nIf no filter is specified, return the default size history.\n\n@param filters filters to be applied\n@return array of History items\n@throws Exception exception", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Generates a set of HTML files that contain data about the outcome of\nthe specified test suites.\n@param suites Data about the test runs.\n@param outputDirectoryName The directory in which to create the report.", "symbol for filling padding position in output", "Query for an object in the database which matches the id argument.", "Removes the supplied marker from the map.\n\n@param marker" ]
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" ]
[ "Ensure that the node is not null.\n\n@param node the node to ensure to be not null\n@param expression the expression was used to find the node\n@throws SpinXPathException if the node is null", "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return set", "Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target type\n(typically 1; e.g. in case of a List of Lists, 1 would indicate the\nnested List, whereas 2 would indicate the element of the nested List)\n@return the generic type, or {@code null} if none", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Encodes the given URI host with the given encoding.\n@param host the host to be encoded\n@param encoding the character encoding to encode to\n@return the encoded host\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Compute the offset for the item in the layout based on the offsets of neighbors\nin the layout. The other offsets are not patched. If neighbors offsets have not\nbeen computed the offset of the item will not be set.\n@return true if the item fits the container, false otherwise", "Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name .", "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}" ]
public BoxFile.Info upload(BoxAPIConnection boxApi, String folderId, InputStream stream, URL url, String fileName, long fileSize) throws InterruptedException, IOException { //Create a upload session BoxFileUploadSession.Info session = this.createUploadSession(boxApi, folderId, url, fileName, fileSize); return this.uploadHelper(session, stream, fileSize); }
[ "Uploads a new large file.\n@param boxApi the API connection to be used by the upload session.\n@param folderId the id of the folder in which the file will be uploaded.\n@param stream the input stream that feeds the content of the file.\n@param url the upload session URL.\n@param fileName the name of the file to be created.\n@param fileSize the total size of the file.\n@return the created file instance.\n@throws InterruptedException when a thread gets interupted.\n@throws IOException when reading a stream throws exception." ]
[ "Unregister all MBeans", "Extract resource group from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Converts from an Accumulo Key to a Fluo RowColumn\n\n@param key Key\n@return RowColumn", "Send JSON representation of given data object to all connections of a user\n@param data the data object\n@param username the username", "Returns the currently set filters in a map column -> filter.\n\n@return the currently set filters in a map column -> filter.", "Updates the date and time formats.\n\n@param properties project properties", "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value", "Prepare a parallel SSH Task.\n\n@return the parallel task builder", "This function helps handle the following case\n\n<OL>\n<LI>TX1 locls r1 col1\n<LI>TX1 fails before unlocking\n<LI>TX2 attempts to write r1:col1 w/o reading it\n</OL>\n\n<p>\nIn this case TX2 would not roll back TX1, because it never read the column. This function\nattempts to handle this case if TX2 fails. Only doing this in case of failures is cheaper than\ntrying to always read unread columns.\n\n@param cd Commit data" ]
public static tunnelip_stats[] get(nitro_service service) throws Exception{ tunnelip_stats obj = new tunnelip_stats(); tunnelip_stats[] response = (tunnelip_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler." ]
[ "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped", "Returns the union of sets s1 and s2.", "Initialize the pattern choice button group.", "Build the context name.\n\n@param objs the objects\n@return the global context name", "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise", "Merge the given maps.\n\n<p>\nThe replied map is a view on the given two maps.\nIf a key exists in the two maps, the replied value is the value of the right operand.\n</p>\n\n<p>\nEven if the key of the right operand exists in the left operand, the value in the right operand is preferred.\n</p>\n\n<p>\nThe replied map is unmodifiable.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the left map.\n@param right the right map.\n@return a map with the merged contents from the two maps.\n@since 2.15", "This method allows a resource assignment to be added to the\ncurrent task.\n\n@param resource the resource to assign\n@return ResourceAssignment object", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "Run through the map and remove any references that have been null'd out by the GC." ]
public String get(final long index) { return doWithJedis(new JedisCallable<String>() { @Override public String call(Jedis jedis) { return jedis.lindex(getKey(), index); } }); }
[ "Get the element value in the list by index\n@param index the position in the list from which to get the element\n@return the element value" ]
[ "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable", "Await a state.\n\n@param expected the expected state\n@return {@code true} if the state was reached, {@code false} otherwise", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "get string from post stream\n\n@param is\n@param encoding\n@return", "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data", "Search one prototype using the prototype index which is equals to the view type. This method\nhas to be implemented because prototypes member is declared with Collection and that interface\ndoesn't allow the client code to get one element by index.\n\n@param prototypeIndex used to search.\n@return prototype renderer.", "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", "Deletes the inbox message for given messageId\n@param messageId String messageId\n@return boolean value based on success of operation", "alias of setColorUnpressed" ]
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" ]
[ "Encodes the given URI port with the given encoding.\n@param port the port to be encoded\n@param encoding the character encoding to encode to\n@return the encoded port\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Returns an input stream that applies the required decompression to the\ngiven input stream.\n\n@param inputStream\nthe input stream with the (possibly compressed) data\n@param compressionType\nthe kind of compression\n@return an input stream with decompressed data\n@throws IOException\nif there was a problem creating the decompression streams", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "Checks to see if all the provided matrices are the expected size for an SVD. If an error is encountered\nthen an exception is thrown. This automatically handles compact and non-compact formats", "Returns the plugins classpath elements.", "Delete all backups asynchronously", "Starts all streams.", "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy" ]
@Override public void close() { logger.info("Finished processing."); this.timer.stop(); this.lastSeconds = (int) (timer.getTotalWallTime() / 1000000000); printStatus(); }
[ "Stops the processing and prints the final time." ]
[ "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Convert an Object to a DateTime.", "Check if the right-hand side type may be assigned to the left-hand side\ntype following the Java generics rules.\n@param lhsType the target type\n@param rhsType the value type that should be assigned to the target type\n@return true if rhs is assignable to lhs", "Gets all the enterprise events that occurred within a specified date range.\n@param api the API connection to use.\n@param after the lower bound on the timestamp of the events returned.\n@param before the upper bound on the timestamp of the events returned.\n@param types an optional list of event types to filter by.\n@return a log of all the events that met the given criteria.", "Use this API to fetch the statistics of all scpolicy_stats resources that are configured on netscaler.", "Waits the given amount of time in seconds for a managed domain to start. A domain is considered started when each\nof the servers in the domain are started unless the server is disabled.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "Retrieves list of inbox messages based on given userId\n@param userId String userid\n@return ArrayList of {@link CTMessageDAO}", "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "A comment.\n\n@param args the parameters" ]
public double convert(double value, double temperatur, double viscosity){ return temperatur*kB / (Math.PI*viscosity*value); }
[ "Converters the diffusion coefficient to hydrodynamic diameter and vice versa\n@param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m]\n@param temperatur Temperatur in [Kelvin]\n@param viscosity Viscosity in [kg m^-1 s^-1]\n@return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1]" ]
[ "Add an order on the given column\n\n@param columnName the name of the column\n@param ascending whether the sorting is ascending or descending", "end class CoNLLIterator", "Saves the project file displayed in this panel.\n\n@param file target file\n@param type file type", "Retrieves a ProjectReader instance which can read a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectReader instance", "Determine if a CharSequence can be parsed as a Float.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isFloat(String)\n@since 1.8.2", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "Check if the given color string can be parsed.\n\n@param colorString The color to parse.", "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context" ]
protected void importUserFromFile() { CmsImportUserThread thread = new CmsImportUserThread( m_cms, m_ou, m_userImportList, getGroupsList(m_importGroups, true), getRolesList(m_importRoles, true), m_sendMail.getValue().booleanValue()); thread.start(); CmsShowReportDialog dialog = new CmsShowReportDialog(thread, new Runnable() { public void run() { m_window.close(); } }); m_window.setContent(dialog); }
[ "Import user from file." ]
[ "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Set RGB input range.\n\n@param inRGB Range.", "Returns the decoded string, in case it contains non us-ascii characters.\nReturns the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.\n\n@param str string to be decoded\n@return the decoded string, in case it contains non us-ascii characters;\nor the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.", "Assembles an avro format string of single store config from store\nproperties\n\n@param props Store properties\n@return String in avro format that contains single store configs", "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid", "Creates a new CRFDatum from the preprocessed allData format, given the\ndocument number, position number, and a List of Object labels.\n\n@return A new CRFDatum", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection.", "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Export the modules that should be checked in into git." ]
private void onScrollImpl(final Vector3Axis offset, final LayoutScroller.OnScrollListener listener) { if (!isScrolling()) { mScroller = new ScrollingProcessor(offset, listener); mScroller.scroll(); } }
[ "This method is called if the data set has been scrolled." ]
[ "Returns the proxies real subject. The subject will be materialized if\nnecessary.\n\n@return The subject", "Parses formatter attributes.\n\n@param formatterLoc the node location\n@return the map of formatter attributes (unmodifiable)", "Helper method to send message on outputStream and account for network\ntime stats.\n\n@param outputStream\n@param message\n@throws IOException", "Patches the product module names\n\n@param name String\n@param moduleNames List<String>", "Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept", "Find a given range object in a list of ranges by a value in that range. Does a binary\nsearch over the ranges but instead of checking for equality looks within the range.\nTakes the array size as an option in case the array grows while searching happens\n@param <T> Range type\n@param ranges data list\n@param value value in the list\n@param arraySize the max search index of the list\n@return search result of range\nTODO: This should move into SegmentList.scala", "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Demonstrates how to add an override to an existing path" ]
public boolean load() { _load(); java.util.Iterator it = this.alChildren.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof OjbMetaTreeNode) ((OjbMetaTreeNode)o).load(); } return true; }
[ "Recursively loads the metadata for this node" ]
[ "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "This is the main entry point used to convert the internal representation\nof timephased baseline work into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name of the thread group passed to startThreads()", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Determines if still WRITING or COMPLETE.\n\n@param itemTag mad libs style string to insert into progress message.\n@return state of stream request handler", "Find and unmarshal all test suite files in given directories.\n\n@throws IOException if any occurs.\n@see #unmarshal(File)", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor", "a useless object at the top level of the response JSON for no reason at all." ]
public void setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType) throws SQLException { if (sqlType == Types.TINYINT) { ps.setByte(index, ((Byte) value).byteValue()); } else { super.setObjectForStatement(ps, index, value, sqlType); } }
[ "Patch provided by Avril Kotzen ([email protected])\nDB2 handles TINYINT (for mapping a byte)." ]
[ "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods", "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.", "When using a map rotation, there might be tiles that are outside the rotated map area. To avoid to load\nthese tiles, this method checks if a tile is really required to draw the map.", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Initialize the connection with the specified properties in OJB\nconfiguration files and platform depended properties.\nInvoke this method after a NEW connection is created, not if re-using from pool.\n\n@see org.apache.ojb.broker.platforms.PlatformFactory\n@see org.apache.ojb.broker.platforms.Platform", "Fall-back for types that are not handled by a subclasse's dispatch method.", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "private HttpServletResponse headers;", "Initializes the metadataCache for MetadataStore" ]
private boolean getRelative(int value) { boolean result; if (value < 0 || value >= RELATIVE_MAP.length) { result = false; } else { result = RELATIVE_MAP[value]; } return result; }
[ "Determine if the exception is relative based on the recurrence type integer value.\n\n@param value integer value\n@return true if the recurrence is relative" ]
[ "Converts a date series configuration to a date series bean.\n@return the date series bean.", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields.", "Writes the object to the specified document, optionally creating a child\nelement. The object in this case should be a point.\n\n@param o the object (of type Point).\n@param document the document to write to.\n@param asChild create child element if true.\n@throws RenderException", "Generate a schedule for the given start and end date.\n\n@param referenceDate The reference date (corresponds to \\( t = 0 \\).\n@param startDate The start date.\n@param endDate The end date.\n@return The schedule", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event", "Use this API to disable clusterinstance resources of given names.", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height" ]
public static float smoothStep(float a, float b, float x) { if (x < a) return 0; if (x >= b) return 1; x = (x - a) / (b - a); return x*x * (3 - 2*x); }
[ "A smoothed step function. A cubic function is used to smooth the step between two thresholds.\n@param a the lower threshold position\n@param b the upper threshold position\n@param x the input parameter\n@return the output value" ]
[ "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", "Write the patch.xml\n\n@param rollbackPatch the patch\n@param file the target file\n@throws IOException", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Update counters and call hooks.\n@param handle connection handle.", "Changes the message of this comment.\n@param newMessage the new message for this comment.\n@return updated info about this comment.", "Resize the image passing the new height and width\n\n@param height\n@param width\n@return", "Send Identify Node message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException" ]
public double distanceFrom(LatLong end) { double dLat = (end.getLatitude() - getLatitude()) * Math.PI / 180; double dLon = (end.getLongitude() - getLongitude()) * Math.PI / 180; double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(getLatitude() * Math.PI / 180) * Math.cos(end.getLatitude() * Math.PI / 180) * Math.sin(dLon / 2) * Math.sin(dLon / 2); double c = 2.0 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); double d = EarthRadiusMeters * c; return d; }
[ "From v3_epoly.js, calculates the distance between this LatLong point and\nanother.\n\n@param end The end point to calculate the distance to.\n@return The distance, in metres, to the end point." ]
[ "This returns a string from decimal digit smallestDigit to decimal digit\nbiggest digit. Smallest digit is labeled 1, and the limits are\ninclusive.", "Extract the generic type from the given Class object.\n@param clazz the Class to check\n@param source the expected raw source type (can be {@code null})\n@param typeIndex the index of the actual type argument\n@param nestingLevel the nesting level of the target type\n@param currentLevel the current nested level\n@return the generic type as Class, or {@code null} if none", "Process a beat packet, potentially updating the master tempo and sending our listeners a master\nbeat notification. Does nothing if we are not active.", "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@throws IOException", "Returns the distance between the two points in meters.", "Creates a new Logger instance for the specified name.", "This adds to the feature name the name of classes that are other than\nthe current class that are involved in the clique. In the CMM, these\nother classes become part of the conditioning feature, and only the\nclass of the current position is being predicted.\n\n@return A collection of features with extra class information put\ninto the feature name.", "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array.", "Computes execution time\n@param extra" ]
private void updateDevices(DeviceAnnouncement announcement) { firstDeviceTime.compareAndSet(0, System.currentTimeMillis()); devices.put(announcement.getAddress(), announcement); }
[ "Record a device announcement in the devices map, so we know whe saw it.\n\n@param announcement the announcement to be recorded" ]
[ "Compares two annotated parameters and returns true if they are equal", "Read relation data.", "Searches the variables layers, top to bottom, for given name, and returns if found; null otherwise.\n\nIf maxDepth is set to {@link Variables#SEARCH_ALL_LAYERS}, then search all layers.", "Returns any events for the given resource ID since the last sync token\n\n@param resource Globally unique identifier for the resource.\n@param sync Sync token provided by a previous call to the events API\n@return Request object", "Executes the mojo.", "Returns the ARGB components for the pixel at the given coordinates\n\n@param x the x coordinate of the pixel component to grab\n@param y the y coordinate of the pixel component to grab\n@return an array containing ARGB components in that order.", "Use this API to reset appfwlearningdata.", "except for the ones that make the content appear under the system bars.", "returns controller if a new device is found" ]
public void setScale(final float scale) { if (equal(mScale, scale) != true) { Log.d(TAG, "setScale(): old: %.2f, new: %.2f", mScale, scale); mScale = scale; setScale(mSceneRootObject, scale); setScale(mMainCameraRootObject, scale); setScale(mLeftCameraRootObject, scale); setScale(mRightCameraRootObject, scale); for (OnScaledListener listener : mOnScaledListeners) { try { listener.onScaled(scale); } catch (Exception e) { e.printStackTrace(); Log.e(TAG, e, "setScale()"); } } } }
[ "Scale all widgets in Main Scene hierarchy\n@param scale" ]
[ "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)", "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception", "updates the values for locking fields , BRJ\nhandles int, long, Timestamp\nrespects updateLock so locking field are only updated when updateLock is true\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection). Do be aware that\nupdating a texture will affect any and all {@linkplain GVRMaterial\nmaterials} (and/or post effects that use the texture!\n\n@param width\nTexture width, in pixels\n@param height\nTexture height, in pixels\n@param data\nA linear array of float pairs.\n@return {@code true} if the updateGPU succeeded, and {@code false} if it\nfailed. Updating a texture requires that the new data parameter\nhas the exact same {@code width} and {@code height} and pixel\nformat as the original data.\n@throws IllegalArgumentException\nIf {@code width} or {@code height} is {@literal <= 0,} or if\n{@code data} is {@code null}, or if\n{@code data.length < height * width * 2}", "Processes the template if the property value of the current object on the specified level equals the given value.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"value\" optional=\"false\" description=\"The value to check for\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to write to\n@return FileOutputStream for the file\n@throws IOException\nif the file or example output directory could not be created", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "Use this API to add spilloverpolicy.", "Creates an SslHandler\n\n@param bufferAllocator the buffer allocator\n@return instance of {@code SslHandler}" ]
public void explore() { if (isLeaf) return; if (isGeneric) return; removeAllChildren(); try { String addressPath = addressPath(); ModelNode resourceDesc = executor.doCommand(addressPath + ":read-resource-description"); resourceDesc = resourceDesc.get("result"); ModelNode response = executor.doCommand(addressPath + ":read-resource(include-runtime=true,include-defaults=true)"); ModelNode result = response.get("result"); if (!result.isDefined()) return; List<String> childrenTypes = getChildrenTypes(addressPath); for (ModelNode node : result.asList()) { Property prop = node.asProperty(); if (childrenTypes.contains(prop.getName())) { // resource node if (hasGenericOperations(addressPath, prop.getName())) { add(new ManagementModelNode(cliGuiCtx, new UserObject(node, prop.getName()))); } if (prop.getValue().isDefined()) { for (ModelNode innerNode : prop.getValue().asList()) { UserObject usrObj = new UserObject(innerNode, prop.getName(), innerNode.asProperty().getName()); add(new ManagementModelNode(cliGuiCtx, usrObj)); } } } else { // attribute node UserObject usrObj = new UserObject(node, resourceDesc, prop.getName(), prop.getValue().asString()); add(new ManagementModelNode(cliGuiCtx, usrObj)); } } } catch (Exception e) { e.printStackTrace(); } }
[ "Refresh children using read-resource operation." ]
[ "Removing surrounding space in image. Get trim color from specified pixel.\n@param value orientation from where to get the pixel color.\n@param colorTolerance 0 - 442. This is the euclidian distance\nbetween the colors of the reference pixel and the surrounding pixels is used.\nIf the distance is within the tolerance they'll get trimmed.", "Parses and removes embedded gallery configuration strings.\n\n@param configuration the configuration string to parse\n\n@return a map containing both the string resulting from removing the embedded configurations, and the embedded configurations as a a map", "Collect environment variables and system properties under with filter constrains", "Creates a general purpose solver. Use this if you are not sure what you need.\n\n@param numRows The number of rows that the decomposition is optimized for.\n@param numCols The number of columns that the decomposition is optimized for.", "Starts listening for shakes on devices with appropriate hardware.\n\n@return true if the device supports shake detection.", "Gets a legend graphic with the specified metadata parameters. All parameters are passed as request parameters.\n\n@param layerId\nthe layer id\n@param styleName\nthe style name\n@param ruleIndex\nthe rule index\n@param format\nthe image format ('png','jpg','gif')\n@param width\nthe graphic's width\n@param height\nthe graphic's height\n@param scale\nthe scale denominator (not supported yet)\n@param allRules\nif true the image will contain all rules stacked vertically\n@param request\nthe servlet request object\n@return the model and view\n@throws GeomajasException\nwhen a style or rule does not exist or is not renderable", "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback.", "Gets the metrics as a map whose keys are the metric name and whose values are the metric values.\n\n@return map", "Gets the Jaccard distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Jaccard distance between x and y." ]
private boolean skipBar(Row row) { List<Row> childRows = row.getChildRows(); return childRows.size() == 1 && childRows.get(0).getChildRows().isEmpty(); }
[ "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped" ]
[ "Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p<\n\n@param resource the resource\n@param childMap map from parent to child resources\n@param filterMatches the resources matching the filter\n@param parentPaths root paths of resources which are not leaves\n@param isRoot true if this the root node\n\n@return the VFS entry bean for the client\n\n@throws CmsException if something goes wrong", "Creates a field map for resources.\n\n@param props props data", "Delete the proxy history for the active profile\n\n@throws Exception exception", "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model", "Reads a \"date-time\" argument from the request.", "Overrides the superclass implementation to allow the AttributeDefinition for each field in the\nobject to in turn resolve that field.\n\n{@inheritDoc}", "Provides a consistent ordering over lists. First compares by the first\nelement. If that element is equal, the next element is considered, and so\non.", "Set child components.\n\n@param children\nchildren", "Run through the map and remove any references that have been null'd out by the GC." ]
@SuppressWarnings({"unused", "WeakerAccess"}) public int getInboxMessageUnreadCount(){ synchronized (inboxControllerLock) { if (this.ctInboxController != null) { return ctInboxController.unreadCount(); } else { getConfigLogger().debug(getAccountId(), "Notification Inbox not initialized"); return -1; } } }
[ "Returns the count of total number of unread inbox messages for the user\n@return int - count of all unread messages" ]
[ "Dump data for all non-summary tasks to stdout.\n\n@param name file name", "Updates the internal list of dates and fires a value change if necessary.\n\n@param dates the dates to set.", "Given the alias of the entity and the path to the relationship it will return the alias\nof the component.\n\n@param entityAlias the alias of the entity\n@param propertyPathWithoutAlias the path to the property without the alias\n@return the alias the relationship or null", "Get an InputStream for the original image. Callers must close the stream upon completion.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@return The InputStream\n@throws IOException", "Number of failed actions in scheduler", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "This method decodes a byte array with the given encryption code\nusing XOR encryption.\n\n@param data Source data\n@param encryptionCode Encryption code", "Merge the two maps.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n<p>\nIf a key exists in the left and right operands, the value in the right operand is preferred.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the left map.\n@param right the right map.\n@return a map with the merged contents from the two maps.\n@throws IllegalArgumentException - when a right operand key exists in the left operand.\n@since 2.15", "The transform method for this DataTransformer\n@param cr a reference to DataPipe from which to read the current map" ]
public void initDB() throws PlatformException { if (_initScripts.isEmpty()) { createInitScripts(); } Project project = new Project(); TorqueSQLTask sqlTask = new TorqueSQLTask(); File outputDir = null; try { outputDir = new File(getWorkDir(), "sql"); outputDir.mkdir(); writeCompressedTexts(outputDir, _initScripts); project.setBasedir(outputDir.getAbsolutePath()); // executing the generated sql, but this time with a torque task TorqueSQLExec sqlExec = new TorqueSQLExec(); TorqueSQLExec.OnError onError = new TorqueSQLExec.OnError(); sqlExec.setProject(project); onError.setValue("continue"); sqlExec.setAutocommit(true); sqlExec.setDriver(_jcd.getDriver()); sqlExec.setOnerror(onError); sqlExec.setUserid(_jcd.getUserName()); sqlExec.setPassword(_jcd.getPassWord() == null ? "" : _jcd.getPassWord()); sqlExec.setUrl(getDBManipulationUrl()); sqlExec.setSrcDir(outputDir.getAbsolutePath()); sqlExec.setSqlDbMap(SQL_DB_MAP_NAME); sqlExec.execute(); deleteDir(outputDir); } catch (Exception ex) { // clean-up if (outputDir != null) { deleteDir(outputDir); } throw new PlatformException(ex); } }
[ "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred" ]
[ "Launch Sample Activity residing in the same module", "Private helper method which decodes the Stitch error from the body of an HTTP `Response`\nobject. If the error is successfully decoded, this function will throw the error for the end\nuser to eventually consume. If the error cannot be decoded, this is likely not an error from\nthe Stitch server, and this function will return an error message that the calling function\nshould use as the message of a StitchServiceException with an unknown code.", "Get a list of referring domains for a photostream.\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 perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html\"", "We have received notification that a device is no longer on the network, so clear out all its waveforms.\n\n@param announcement the packet which reported the device’s disappearance", "The main conversion method.\n@param image A BufferedImage containing the image that needs to be converted\n@param favicon When ico is true it will convert ico file into 16 x 16 size\n@return A string containing the ASCII version of the original image.", "Creates a new immutable set that consists of given elements.\n\n@param elements the given elements\n@return a new immutable set that consists of given elements", "Use this API to reset appfwlearningdata resources.", "FastJSON does not provide the API so we have to create our own", "get the default profile\n\n@return representation of default profile\n@throws Exception exception" ]
void writeSomeValueRestriction(String propertyUri, String rangeUri, Resource bnode) throws RDFHandlerException { this.rdfWriter.writeTripleValueObject(bnode, RdfWriter.RDF_TYPE, RdfWriter.OWL_RESTRICTION); this.rdfWriter.writeTripleUriObject(bnode, RdfWriter.OWL_ON_PROPERTY, propertyUri); this.rdfWriter.writeTripleUriObject(bnode, RdfWriter.OWL_SOME_VALUES_FROM, rangeUri); }
[ "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
[ "Parses coordinates into a Spatial4j point shape.", "Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false.", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by the specified comparator.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@param comparator\nthe comparator to be used. May be <code>null</code> to indicate that the natural ordering of the\nelements should be used.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List, Comparator)\n@see #sort(Iterable)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List, Comparator)\n@since 2.7", "Use this API to fetch snmpalarm resource of given name .", "Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture information", "Sets the HTML entity translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Retrieve the next page and store the continuation token, the new data, and any IOException that may occur.\n\nNote that it is safe to pass null values to {@link CollectionRequest#query(String, Object)}. Method\n{@link com.asana.Client#request(com.asana.requests.Request)} will not include such options.", "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before.", "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)" ]
public BoxFile.Info getFileInfo(String fileID) { URL url = FILE_INFO_URL_TEMPLATE.build(this.api.getBaseURL(), fileID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); BoxFile file = new BoxFile(this.api, jsonObject.get("id").asString()); return file.new Info(response.getJSON()); }
[ "Gets information about a trashed file.\n@param fileID the ID of the trashed file.\n@return info about the trashed file." ]
[ "Returns a JRDesignExpression that points to the main report connection\n\n@return", "Execute push docker image on agent\n\n@param launcher\n@param log\n@param imageTag\n@param username\n@param password\n@param host @return\n@throws IOException\n@throws InterruptedException", "If needed, destroy the remaining conversation contexts after an HTTP session was invalidated within the current request.\n\n@param request", "Add a date with a certain check state.\n@param date the date to add.\n@param checkState the check state.", "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "perform the actual matching", "Extract resource assignments for a task.\n\n@param task parent task\n@param assignments list of Synchro resource assignment data", "Remove a key for all language versions. If a descriptor is present, the key is only removed in the descriptor.\n\n@param key the key to remove.\n@return <code>true</code> if removing was successful, <code>false</code> otherwise.", "Performs an efficient update of each columns' norm" ]
public static base_response unset(nitro_service client, coparameter resource, String[] args) throws Exception{ coparameter unsetresource = new coparameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Adds one statement to the list of statements to be kept, possibly merging\nit with other statements to be kept if possible. When two existing\nstatements are merged, one of them will be updated and the other will be\nmarked for deletion.\n\n@param statement\nstatement to add\n@param isNew\nif true, the statement should be marked for writing; if false,\nthe statement already exists in the current data and is only\nadded to remove duplicates and avoid unnecessary writes", "Decode long from byte array at offset\n\n@param ba byte array\n@param offset Offset\n@return long value", "Checks given permissions are needed to show rationale.\n\n@return returns true if one of the permission is needed to show rationale.", "Change the currentState to the nextState if possible. The next state should already be\npresent in the graph.\n\n@param nextState the next state.\n@return true if currentState is successfully changed.", "Facade method for operating the Telnet Shell supporting line editing and command\nhistory over a socket.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Somewhat ad-hoc list of only greek letters that bio people use, partly\nto avoid false positives on short ones.\n@param s String to check for Greek\n@return true iff there is a greek lette embedded somewhere in the String", "Opens the jar, wraps any IOException.", "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.", "Retrieve the number of minutes per month for this calendar.\n\n@return minutes per month" ]
private void readRecord(Tokenizer tk, List<String> record) throws IOException { record.clear(); while (tk.nextToken() == Tokenizer.TT_WORD) { record.add(tk.getToken()); } }
[ "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException" ]
[ "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "key function to execute a parallel task.\n\n@param task the parallel task\n@return the batch response from manager", "Compute singular values and U and V at the same time", "Request the list of all tracks in the specified slot, given a dbserver connection to a player that has already\nbeen set up.\n\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved track list entry items\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Wait for the template resources to come up after the test container has\nbeen started. This allows the test container and the template resources\nto come up in parallel.", "Create a new AwsServiceClient instance with a different codec registry.\n\n@param codecRegistry the new {@link CodecRegistry} for the client.\n@return a new AwsServiceClient instance with the different codec registry", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean" ]
public Object getRealObjectIfMaterialized(Object objectOrProxy) { if(isNormalOjbProxy(objectOrProxy)) { String msg; try { IndirectionHandler handler = getIndirectionHandler(objectOrProxy); return handler.alreadyMaterialized() ? handler.getRealSubject() : null; } catch(ClassCastException e) { // shouldn't happen but still ... msg = "The InvocationHandler for the provided Proxy was not an instance of " + IndirectionHandler.class.getName(); log.error(msg); throw new PersistenceBrokerException(msg, e); } catch(IllegalArgumentException e) { msg = "Could not retrieve real object for given Proxy: " + objectOrProxy; log.error(msg); throw new PersistenceBrokerException(msg, e); } catch(PersistenceBrokerException e) { log.error("Could not retrieve real object for given Proxy: " + objectOrProxy); throw e; } } else if(isVirtualOjbProxy(objectOrProxy)) { try { VirtualProxy proxy = (VirtualProxy) objectOrProxy; return proxy.alreadyMaterialized() ? proxy.getRealSubject() : null; } catch(PersistenceBrokerException e) { log.error("Could not retrieve real object for VirtualProxy: " + objectOrProxy); throw e; } } else { return objectOrProxy; } }
[ "Get the real Object for already materialized Handler\n\n@param objectOrProxy\n@return Object or null if the Handel is not materialized" ]
[ "Use this API to update nd6ravariables resources.", "Boot with the given operations, performing full model and capability registry validation.\n\n@param bootOperations the operations. Cannot be {@code null}\n@param rollbackOnRuntimeFailure {@code true} if the boot should fail if operations fail in the runtime stage\n@return {@code true} if boot was successful\n@throws ConfigurationPersistenceException", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Use this API to delete snmpmanager.", "Clears out the statement handles.\n@param internalClose if true, close the inner statement handle too.", "Sets the body of this request to a given JSON string.\n@param body the JSON string to use as the body.", "Return the IP address as text such as \"192.168.1.15\".", "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata.", "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from" ]
public static void shutdownDomain(final ModelControllerClient client, final int timeout) throws IOException, OperationExecutionException { // Note the following two operations used to shutdown a domain don't seem to work well in a composite operation. // The operation occasionally sees a java.util.concurrent.CancellationException because the operation client // is likely closed before the AsyncFuture.get() is complete. Using a non-composite operation doesn't seem to // have this issue. // First shutdown the servers final ModelNode stopServersOp = Operations.createOperation("stop-servers"); stopServersOp.get("blocking").set(true); stopServersOp.get("timeout").set(timeout); ModelNode response = client.execute(stopServersOp); if (!Operations.isSuccessfulOutcome(response)) { throw new OperationExecutionException("Failed to stop servers.", stopServersOp, response); } // Now shutdown the host final ModelNode address = determineHostAddress(client); final ModelNode shutdownOp = Operations.createOperation("shutdown", address); response = client.execute(shutdownOp); if (Operations.isSuccessfulOutcome(response)) { // Wait until the process has died while (true) { if (isDomainRunning(client, true)) { try { TimeUnit.MILLISECONDS.sleep(20L); } catch (InterruptedException e) { LOGGER.trace("Interrupted during sleep", e); } } else { break; } } } else { throw new OperationExecutionException("Failed to shutdown host.", shutdownOp, response); } }
[ "Shuts down a managed domain container. The servers are first stopped, then the host controller is shutdown.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to shutdown the managed domain failed" ]
[ "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 = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param velocity velocity of the active transport", "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", "Calculates the text height for the indicator value and sets its x-coordinate.", "Validations specific to GET and GET ALL", "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor", "Estimate excluded volume fraction by monte carlo method\n@return excluded volume fraction", "Adds a classpath source which contains the given resource.\n\nTODO: [GH-213] this is extremely ugly; separate the code required to run on the\nforked JVM into an isolated bundle and either create it on-demand (in temp.\nfiles location?) or locate it in classpath somehow (in a portable way).", "Write a relation list field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code" ]
protected void addImage(PdfContext context, ImageResult imageResult) throws BadElementException, IOException { Bbox imageBounds = imageResult.getRasterImage().getBounds(); float scaleFactor = (float) (72 / getMap().getRasterResolution()); float width = (float) imageBounds.getWidth() * scaleFactor; float height = (float) imageBounds.getHeight() * scaleFactor; // subtract screen position of lower-left corner float x = (float) (imageBounds.getX() - rasterScale * bbox.getMinX()) * scaleFactor; // shift y to lowerleft corner, flip y to user space and subtract // screen position of lower-left // corner float y = (float) (-imageBounds.getY() - imageBounds.getHeight() - rasterScale * bbox.getMinY()) * scaleFactor; if (log.isDebugEnabled()) { log.debug("adding image, width=" + width + ",height=" + height + ",x=" + x + ",y=" + y); } // opacity log.debug("before drawImage"); context.drawImage(Image.getInstance(imageResult.getImage()), new Rectangle(x, y, x + width, y + height), getSize(), getOpacity()); log.debug("after drawImage"); }
[ "Add image in the document.\n\n@param context\nPDF context\n@param imageResult\nimage\n@throws BadElementException\nPDF construction problem\n@throws IOException\nPDF construction problem" ]
[ "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.", "An internal method, public only so that GVRContext can make cross-package\ncalls.\n\nA synchronous (blocking) wrapper around\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream} that uses an\n{@link android.graphics.BitmapFactory.Options} <code>inTempStorage</code>\ndecode buffer. On low memory, returns half (quarter, eighth, ...) size\nimages.\n<p>\nIf {@code stream} is a {@link FileInputStream} and is at offset 0 (zero),\nuses\n{@link android.graphics.BitmapFactory#decodeFileDescriptor(FileDescriptor)\nBitmapFactory.decodeFileDescriptor()} instead of\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream()}.\n\n@param stream\nBitmap stream\n@param closeStream\nIf {@code true}, closes {@code stream}\n@return Bitmap, or null if cannot be decoded into a bitmap", "Performs case-sensitive depth-first search for a child object and then\nremoves it if found.\n\n@param name name of scene object to be removed.\n\n@return true if child was found (and removed), else false", "Save a SVG graphic to the given path.\n\n@param graphics2d The SVG graphic to save.\n@param path The file.", "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list.", "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition", "Update the project properties from the project summary task.\n\n@param task project summary task", "Read a field into our table configuration for field=value line.", "Starts the ephemeral node and waits for it to be created\n\n@param node Node to start\n@param maxWaitSec Maximum time in seconds to wait" ]
private void sendResponse(final HttpServletResponse res, final CmsSpellcheckingRequest request) throws IOException { final PrintWriter pw = res.getWriter(); final JSONObject response = getJsonFormattedSpellcheckResult(request); pw.println(response.toString()); pw.close(); }
[ "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails" ]
[ "sets the class object described by this descriptor.\n@param c the class to describe", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "Obtains the Constructor specified from the given Class and argument types\n\n@throws NoSuchMethodException", "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded", "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return", "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Deletes a chain of vertices from this list.", "Create a classname from a given path\n\n@param path\n@return" ]
private ProjectFile handleMDBFile(InputStream stream) throws Exception { File file = InputStreamHelper.writeStreamToTempFile(stream, ".mdb"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=" + file.getCanonicalPath(); Set<String> tableNames = populateTableNames(url); if (tableNames.contains("MSP_PROJECTS")) { return readProjectFile(new MPDDatabaseReader(), file); } if (tableNames.contains("EXCEPTIONN")) { return readProjectFile(new AstaDatabaseReader(), file); } return null; } finally { FileHelper.deleteQuietly(file); } }
[ "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" ]
[ "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Roll the years forward or backward.\n\n@param startDate - The start date\n@param years - Negative to rollbackwards.", "Disable certificate verification.\n\n@throws KeyManagementException\nthe key management exception\n@throws NoSuchAlgorithmException\nthe no such algorithm exception", "Checks the foreignkeys of all collections in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Use this API to fetch dnssuffix resources of given names .", "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Get the status of the upload session. It contains the number of parts that are processed so far,\nthe total number of parts required for the commit and expiration date and time of the upload session.\n@return the status." ]
public static boolean isValidFqcn(String str) { if (isNullOrEmpty(str)) { return false; } final String[] parts = str.split("\\."); if (parts.length < 2) { return false; } for (String part : parts) { if (!isValidJavaIdentifier(part)) { return false; } } return true; }
[ "Returns true if the string is a valid Java full qualified class name.\n\n@param str the string to be examined\n@return true if str is a valid Java Fqcn" ]
[ "Constructs the appropriate MenuDrawer based on the position.", "When creating image columns\n@return", "Use this API to fetch clusternodegroup resource of given name .", "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted.", "Use this API to fetch all the snmpuser resources that are configured on netscaler.", "Str map to str.\n\n@param map\nthe map\n@return the string", "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Utility method to convert an array of bytes into a long. Byte ordered is\nassumed to be big-endian.\n@param bytes The data to read from.\n@param offset The position to start reading the 8-byte long from.\n@return The 64-bit integer represented by the eight bytes.\n@since 1.1", "Rewrites the file passed to 'this' constructor so that the actual line numbers match the recipe passed to 'this'\nconstructor." ]
private void releaseConnection() { if (m_rs != null) { try { m_rs.close(); } catch (SQLException ex) { // silently ignore errors on close } m_rs = null; } if (m_ps != null) { try { m_ps.close(); } catch (SQLException ex) { // silently ignore errors on close } m_ps = null; } }
[ "Releases a database connection, and cleans up any resources\nassociated with that connection." ]
[ "Handles a faulted task.\n\n@param faultedEntry the entry holding faulted task\n@param throwable the reason for fault\n@param context the context object shared across all the task entries in this group during execution\n\n@return an observable represents asynchronous operation in the next stage", "Old REST client uses old REST service", "Return cached object by key. The key will be concatenated with\ncurrent session id when fetching the cached object\n\n@param key\n@param <T>\nthe object type\n@return the cached object", "Print a date time value.\n\n@param value date time value\n@return string representation", "Initialize the class if this is being called with Spring.", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception", "Pass a model object and return a SoyMapData if a model object happens\nto be a SoyMapData.\n\nAn implementation will also check if a passed in object is a Map and return\na SoyMapData wrapping that map", "A recursive getAttribute method. In case a one-to-many is passed, an array will be returned.\n\n@param feature The feature wherein to search for the attribute\n@param name The attribute's full name. (can be attr1.attr2)\n@return Returns the value. In case a one-to-many is passed along the way, an array will be returned.\n@throws LayerException oops", "Get a property as a double or null.\n\n@param key the property name" ]
public void seekToHolidayYear(String holidayString, String yearString) { Holiday holiday = Holiday.valueOf(holidayString); assert(holiday != null); seekToIcsEventYear(HOLIDAY_ICS_FILE, yearString, holiday.getSummary()); }
[ "Seeks to the given holiday within the given year\n\n@param holidayString\n@param yearString" ]
[ "Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor", "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", "Returns with an iterable of URIs that points to all elements that are\nreferenced by the argument or vice-versa.\n\n@return an iterable of URIs that are referenced by the argument or the\nother way around.", "Loads all localizations not already loaded.\n@throws CmsException thrown if locking a file fails.\n@throws UnsupportedEncodingException thrown if reading a file fails.\n@throws IOException thrown if reading a file fails.", "Compute the key to use.\n\n@param ref The reference number.\n@param filename The filename.\n@param extension The file extension.", "For use on a slave HC to get all the server groups used by the host\n\n@param hostResource the host resource\n@return the server configs on this host", "This ensures that we are able to use the default preference from JSDK, to check basically if we are in Android or Not\n@param preference\n@throws BackingStoreException", "Calculate the actual bit length of the proposed binary string.", "changes the color of the image - more red and less blue\n\n@return new pixel array" ]
private ProjectFile handleDosExeFile(InputStream stream) throws Exception { File file = InputStreamHelper.writeStreamToTempFile(stream, ".tmp"); InputStream is = null; try { is = new FileInputStream(file); if (is.available() > 1350) { StreamHelper.skip(is, 1024); // Bytes at offset 1024 byte[] data = new byte[2]; is.read(data); if (matchesFingerprint(data, WINDOWS_NE_EXE_FINGERPRINT)) { StreamHelper.skip(is, 286); // Bytes at offset 1312 data = new byte[34]; is.read(data); if (matchesFingerprint(data, PRX_FINGERPRINT)) { is.close(); is = null; return readProjectFile(new P3PRXFileReader(), file); } } if (matchesFingerprint(data, STX_FINGERPRINT)) { StreamHelper.skip(is, 31742); // Bytes at offset 32768 data = new byte[4]; is.read(data); if (matchesFingerprint(data, PRX3_FINGERPRINT)) { is.close(); is = null; return readProjectFile(new SureTrakSTXFileReader(), file); } } } return null; } finally { StreamHelper.closeQuietly(is); FileHelper.deleteQuietly(file); } }
[ "This could be a self-extracting archive. If we understand the format, expand\nit and check the content for files we can read.\n\n@param stream schedule data\n@return ProjectFile instance" ]
[ "Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name .", "Handles incoming Send Data Request. Send Data request are used\nto acknowledge or cancel failed messages.\n@param incomingMessage the request message to process.", "Exact conversion of displaced lognormal ATM volatiltiy to normal ATM volatility.\n\n@param forward The forward\n@param displacement The displacement (considering a displaced lognormal model, otherwise 0.\n@param maturity The maturity\n@param lognormalVolatiltiy The (implied) lognormal volatility.\n@return The (implied) normal volatility.\n@see <a href=\"http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2687742\">Dimitroff, Fries, Lichtner and Rodi: Lognormal vs Normal Volatilities and Sensitivities in Practice</a>", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Use this API to fetch clusterinstance resource of given name .", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "Use this API to unset the properties of ipv6 resource.\nProperties that need to be unset are specified in args array.", "Sets maintenance mode for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param enable true to enable; false to disable", "Obtains a Coptic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public boolean checkWrite(TransactionImpl tx, Object obj) { LockEntry writer = getWriter(obj); if (writer == null) return false; else if (writer.isOwnedBy(tx)) return true; else return false; }
[ "checks whether the specified Object obj is write-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false" ]
[ "Answer the SQL-Clause for a FieldCriteria\n\n@param c FieldCriteria\n@param cld ClassDescriptor", "Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException", "Create a Count-Query for QueryByCriteria", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Creates, writes and loads a new keystore and CA root certificate.", "Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockMode The lock mode\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs", "Permanently deletes a trashed file.\n@param fileID the ID of the trashed folder to permanently delete.", "Answer the SQL-Clause for a BetweenCriteria\n\n@param alias\n@param pathInfo\n@param c BetweenCriteria\n@param buf" ]
public static final PatchOperationTarget createLocal(final File jbossHome, List<File> moduleRoots, List<File> bundlesRoots) throws IOException { final PatchTool tool = PatchTool.Factory.createLocalTool(jbossHome, moduleRoots, bundlesRoots); return new LocalPatchOperationTarget(tool); }
[ "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException" ]
[ "orientation state factory method", "Parses and removes embedded gallery configuration strings.\n\n@param configuration the configuration string to parse\n\n@return a map containing both the string resulting from removing the embedded configurations, and the embedded configurations as a a map", "Chooses the ECI mode most suitable for the content of this symbol.", "Add network interceptor to httpClient to track download progress for\nasync requests.", "Execute the transactional flow - catch only specified exceptions\n\n@param input Initial data input\n@param classes Exception types to catch\n@return Try that represents either success (with result) or failure (with errors)", "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world.", "Given a key and a list of steal infos give back a list of stealer node\nids which will steal this.\n\n@param key Byte array of key\n@param stealerNodeToMappingTuples Pairs of stealer node id to their\ncorresponding [ partition - replica ] tuples\n@param cluster Cluster metadata\n@param storeDef Store definitions\n@return List of node ids", "This method can be used by child classes to apply the configuration that is stored in config.", "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage." ]
public static void setViewBackground(View v, Drawable d) { if (Build.VERSION.SDK_INT >= 16) { v.setBackground(d); } else { v.setBackgroundDrawable(d); } }
[ "legacy helper for setting background" ]
[ "Main method for testing fetching", "Destroys an instance of the bean\n\n@param instance The instance", "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")", "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "AND operation which takes the previous clause and the next clause and AND's them together.", "Creates a new RgbaColor from the specified HSL components.\n\n<p>\n<i>Implementation based on <a\nhref=\"http://en.wikipedia.org/wiki/HSL_and_HSV\">wikipedia</a>\nand <a\nhref=\"http://www.w3.org/TR/css3-color/#hsl-color\">w3c</a></i>\n\n@param H\nHue [0,360)\n@param S\nSaturation [0,100]\n@param L\nLightness [0,100]", "Use this API to fetch sslservice resource of given name .", "Creates a collaboration whitelist for a Box User with a given ID.\n@param api the API connection to be used by the collaboration whitelist.\n@param userID the ID of the Box User to add to the collaboration whitelist.\n@return information about the collaboration whitelist created for user.", "Checks the preconditions for creating a new IsIncludedIn processor with a Set of Objects.\n\n@param possibleValues\nthe Set of possible values\n@throws NullPointerException\nif possibleValues is null\n@throws IllegalArgumentException\nif possibleValues is empty" ]
private void cullDisabledPaths() throws Exception { ArrayList<EndpointOverride> removePaths = new ArrayList<EndpointOverride>(); RequestInformation requestInfo = requestInformation.get(); for (EndpointOverride selectedPath : requestInfo.selectedResponsePaths) { // check repeat count on selectedPath // -1 is unlimited if (selectedPath != null && selectedPath.getRepeatNumber() == 0) { // skip removePaths.add(selectedPath); } else if (selectedPath != null && selectedPath.getRepeatNumber() != -1) { // need to decrement the # selectedPath.updateRepeatNumber(selectedPath.getRepeatNumber() - 1); } } // remove paths if we need to for (EndpointOverride removePath : removePaths) { requestInfo.selectedResponsePaths.remove(removePath); } }
[ "Remove paths with no active overrides\n\n@throws Exception" ]
[ "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "set the property destination type for given property\n\n@param propertyName\n@param destinationType", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Returns new boolean matrix with true or false values selected with equal probability.\n\n@param numRow Number of rows in the new matrix.\n@param numCol Number of columns in the new matrix.\n@param rand Random number generator used to fill the matrix.\n@return The randomly generated matrix.", "Use this API to delete nsip6 resources.", "Renders the document to the specified output stream.", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.", "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter.", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException" ]
public HalfEdge getEdge(int i) { HalfEdge he = he0; while (i > 0) { he = he.next; i--; } while (i < 0) { he = he.prev; i++; } return he; }
[ "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge" ]
[ "Used to set the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array.", "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", "Renumbers all entity unique IDs.", "Revisit message to set their item ref to a item definition\n@param def Definitions", "Returns the Class object of the Event implementation.", "Deletes an individual alias\n\n@param alias\nthe alias to delete", "Use this API to export application." ]
private GVRCursorController addDevice(int deviceId) { InputDevice device = inputManager.getInputDevice(deviceId); GVRControllerType controllerType = getGVRInputDeviceType(device); if (mEnabledControllerTypes == null) { return null; } if (controllerType == GVRControllerType.GAZE && !mEnabledControllerTypes.contains(GVRControllerType.GAZE)) { return null; } int key; if (controllerType == GVRControllerType.GAZE) { // create the controller if there isn't one. if (gazeCursorController == null) { gazeCursorController = new GVRGazeCursorController(context, GVRControllerType.GAZE, GVRDeviceConstants.OCULUS_GEARVR_DEVICE_NAME, GVRDeviceConstants.OCULUS_GEARVR_TOUCHPAD_VENDOR_ID, GVRDeviceConstants.OCULUS_GEARVR_TOUCHPAD_PRODUCT_ID); } // use the cached gaze key key = GAZE_CACHED_KEY; } else { key = getCacheKey(device, controllerType); } if (key != -1) { GVRCursorController controller = cache.get(key); if (controller == null) { if ((mEnabledControllerTypes == null) || !mEnabledControllerTypes.contains(controllerType)) { return null; } if (controllerType == GVRControllerType.MOUSE) { controller = mouseDeviceManager.getCursorController(context, device.getName(), device.getVendorId(), device.getProductId()); } else if (controllerType == GVRControllerType.GAMEPAD) { controller = gamepadDeviceManager.getCursorController(context, device.getName(), device.getVendorId(), device.getProductId()); } else if (controllerType == GVRControllerType.GAZE) { controller = gazeCursorController; } cache.put(key, controller); controllerIds.put(device.getId(), controller); return controller; } else { controllerIds.put(device.getId(), controller); } } return null; }
[ "returns controller if a new device is found" ]
[ "Associate a name with an object and make it persistent.\nAn object instance may be bound to more than one name.\nBinding a previously transient object to a name makes that object persistent.\n@param object The object to be named.\n@param name The name to be given to the object.\n@exception org.odmg.ObjectNameNotUniqueException\nIf an attempt is made to bind a name to an object and that name is already bound\nto an object.", "Returns the configured sort options, or the empty list if no such options are configured.\n@return The configured sort options, or the empty list if no such options are configured.", "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args", "This method returns the installed identity with the requested name and version.\nIf the product name is null, the default identity will be returned.\n\nIf the product name was recognized and the requested version was not null,\nthe version comparison will take place. If the version of the currently installed product\ndoesn't match the requested one, the exception will be thrown.\nIf the requested version is null, the currently installed identity with the requested name\nwill be returned.\n\nIf the product name was not recognized among the registered ones, a new installed identity\nwith the requested name will be created and returned. (This is because the patching system\nis not aware of how many and what the patching streams there are expected).\n\n@param productName\n@param productVersion\n@return\n@throws PatchingException", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally.", "Compares two vectors and determines if they are numeric equals,\nindependent of its type.\n\n@param vector1\nthe first vector\n@param vector2\nthe second vector\n@return true if the vectors are numeric equals", "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ifMatch ensures that your app only alters files/folders on Box if you have the current version.\n@param ifNoneMatch ensure that it retrieve unnecessary data if the most current version of file is on-hand.\n@return the created file instance.", "Save the changes." ]
public void disableAllOverrides(int pathID, String clientUUID, int overrideType) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { ArrayList<Integer> enabledOverrides = new ArrayList<Integer>(); enabledOverrides.add(Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_ADD); enabledOverrides.add(Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_REMOVE); enabledOverrides.add(Constants.PLUGIN_REQUEST_OVERRIDE_CUSTOM); enabledOverrides.add(Constants.PLUGIN_REQUEST_OVERRIDE_CUSTOM_POST_BODY); String overridePlaceholders = preparePlaceHolders(enabledOverrides.size()); statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants.ENABLED_OVERRIDES_PATH_ID + " = ? " + " AND " + Constants.GENERIC_CLIENT_UUID + " = ? " + " AND " + Constants.ENABLED_OVERRIDES_OVERRIDE_ID + (overrideType == Constants.OVERRIDE_TYPE_RESPONSE ? " NOT" : "") + " IN ( " + overridePlaceholders + " )" ); statement.setInt(1, pathID); statement.setString(2, clientUUID); for (int i = 3; i <= enabledOverrides.size() + 2; ++i) { statement.setInt(i, enabledOverrides.get(i - 3)); } statement.execute(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Disable all overrides for a specified path with overrideType\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client\n@param overrideType Override type identifier" ]
[ "Write the standard set of day types.\n\n@param calendars parent collection of calendars", "Read all of the fields information from the configuration file.", "Return a string that ensures that no line is longer then 512 characters\nand lines are broken according to manifest specification.\n\n@param input The buffer containing the content that should be made safe\n@param newline The string to use to create newlines (usually \"\\n\" or\n\"\\r\\n\")\n@return The string with no longer lines then 512, ready to be read again\nby {@link MergeableManifest2}.", "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value", "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Retrieve a duration in the form required by Phoenix.\n\n@param duration Duration instance\n@return formatted duration", "Update the id field of the object in the database.", "Takes a model and an SCXMLFrontier and decomposes the Frontier into a Map of Strings to Strings\nThese strings can be sent over a network to get a Frontier past a 'gap'\n\n@param frontier the Frontier\n@param modelText the model\n@return the map of strings representing a decomposition", "Perform construction with custom thread pool size." ]
void update(JsonObject jsonObject) { for (JsonObject.Member member : jsonObject) { if (member.getValue().isNull()) { continue; } this.parseJSONMember(member); } this.clearPendingChanges(); }
[ "Updates this BoxJSONObject using the information in a JSON object.\n@param jsonObject the JSON object containing updated information." ]
[ "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID", "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Returns an entry with the given proposal and prefix, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it.", "Set the specific device class of the node.\n@param specificDeviceClass the specificDeviceClass to set\n@exception IllegalArgumentException thrown when the specific device class does not match\nthe generic device class.", "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future.", "Sets the value for the API's \"props\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Animate de-selection of visible views and clear\nselected set.", "Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException", "Use this API to add vpath." ]
public void register() { synchronized (loaders) { loaders.add(this); maximumHeaderLength = 0; for (GVRCompressedTextureLoader loader : loaders) { int headerLength = loader.headerLength(); if (headerLength > maximumHeaderLength) { maximumHeaderLength = headerLength; } } } }
[ "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>\n\nnew MyCompressedFormat().register();\n</pre>" ]
[ "Reads the text files in the given directory and puts their content\nin the given map after compressing it. Note that this method does not\ntraverse recursivly into sub-directories.\n\n@param dir The directory to process\n@param results Map that will receive the contents (indexed by the relative filenames)\n@throws IOException If an error ocurred", "Extract the parameters from a method using the Jmx annotation if present,\nor just the raw types otherwise\n\n@param m The method to extract parameters from\n@return An array of parameter infos", "List the greetings in the specified guestbook.", "Use this API to fetch sslaction resource of given name .", "Use this API to save cacheobject resources.", "Creates a new status update on the project.\n\nReturns the full record of the newly created project status update.\n\n@param project The project on which to create a status update.\n@return Request object", "converts a java.net.URI to a decoded string", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "Checks the preconditions for creating a new StrRegExReplace processor.\n\n@param regex\nthe supplied regular expression\n@param replacement\nthe supplied replacement text\n@throws IllegalArgumentException\nif regex is empty\n@throws NullPointerException\nif regex or replacement is null" ]
public static NodeList evaluateXpathExpression(Document dom, String xpathExpr) throws XPathExpressionException { XPathFactory factory = XPathFactory.newInstance(); XPath xpath = factory.newXPath(); XPathExpression expr = xpath.compile(xpathExpr); Object result = expr.evaluate(dom, XPathConstants.NODESET); return (NodeList) result; }
[ "Returns the list of nodes which match the expression xpathExpr in the Document dom.\n\n@param dom the Document to search in\n@param xpathExpr the xpath query\n@return the list of nodes which match the query\n@throws XPathExpressionException On error." ]
[ "Get the number of views, comments and favorites on a photo 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 photoId\n(Required) The id of the photo to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoStats.htm\"", "Use this API to delete route6 of given name.", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Updates the image information.", "Decode a content Type header line into types and parameters pairs", "The setter for setting configuration file. It will convert the value to a URI.\n\n@param configurationFiles the configuration file map.", "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Returns the resolution of resolving the conflict between a local and remote event using\nthe given conflict resolver.\n\n@param conflictResolver the conflict resolver to use.\n@param documentId the document id related to the conflicted events.\n@param localEvent the conflicted local event.\n@param remoteEvent the conflicted remote event.\n@return the resolution to the conflict.", "Returns the URL of the class file where the given class has been loaded from.\n\n@throws IllegalArgumentException\nif failed to determine.\n@since 2.24" ]
@Override public Response toResponse(ErrorDto e) { // String type = headers.getContentType() == null ? MediaType.APPLICATION_JSON : headers.getContentType(); return Response.status(e.httpStatus).entity(e).type(MediaType.APPLICATION_JSON).build(); }
[ "private HttpServletResponse headers;" ]
[ "Reverses all the TransitionControllers managed by this TransitionManager", "find the middle point of two intersect points in circle,only one point will be correct\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Returns the next object in the table.\n\n@throws IllegalStateException\nIf there was a problem extracting the object from SQL.", "Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subclass\nGVRShaderTemplate to create your own shader templates.\n\n@param shaderClass shader class to find (subclass of GVRShader)\n@return GVRShaderId associated with that shader template\n@see GVRShaderTemplate GVRShader", "Set the buttons span text.", "Reads an argument of type \"number\" from the request.", "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "Stops the background data synchronization thread.", "Writes the torque schemata to files in the given directory and returns\na comma-separated list of the filenames.\n\n@param dir The directory to write the files to\n@return The list of filenames\n@throws IOException If an error occurred" ]
public void setPadding(float padding, Layout.Axis axis) { OrientedLayout layout = null; switch(axis) { case X: layout = mShiftLayout; break; case Y: layout = mShiftLayout; break; case Z: layout = mStackLayout; break; } if (layout != null) { if (!equal(layout.getDividerPadding(axis), padding)) { layout.setDividerPadding(padding, axis); if (layout.getOrientationAxis() == axis) { requestLayout(); } } } }
[ "Sets padding between the pages\n@param padding\n@param axis" ]
[ "Read an individual Phoenix task relationship.\n\n@param relation Phoenix task relationship", "Converts an Accumulo Range to a Fluo Span\n\n@param range Range\n@return Span", "Returns a the list of available version of an artifact\n\n@param gavc String\n@return List<String>", "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", "Tests the string edit distance function.", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "add converter at given index. The index can be changed during conversion\nif canReorder is true\n\n@param index\n@param converter", "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT." ]
public static ComplexNumber Tan(ComplexNumber z1) { ComplexNumber result = new ComplexNumber(); if (z1.imaginary == 0.0) { result.real = Math.tan(z1.real); result.imaginary = 0.0; } else { double real2 = 2 * z1.real; double imag2 = 2 * z1.imaginary; double denom = Math.cos(real2) + Math.cosh(real2); result.real = Math.sin(real2) / denom; result.imaginary = Math.sinh(imag2) / denom; } return result; }
[ "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number." ]
[ "Gets the property and casts to the appropriate type\n\n@param <T>\n@param key The property name\n@param type The property type\n@return The value of the property", "Gets the actual type arguments of a class\n\n@param clazz The class to examine\n@return The type arguments", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Returns a list of all templates under the user account\n\n@param options {@link Map} extra options to send along with the request.\n@return {@link ListResponse}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step.", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "Convert a given date to a floating point date using a given reference date.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param date The given date to be associated with the return value \\( T \\).\n@return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.", "Retrieve all Collection attributes of a given instance, and make all of the Proxy Collections\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs", "Get the available sizes of a Photo.\n\nThe boolean toggle allows to (api-)sign the call.\n\nThis way the calling user can retrieve sizes for <b>his own</b> private photos.\n\n@param photoId\nThe photo ID\n@param sign\ntoggle to allow optionally signing the call (Authenticate)\n@return A collection of {@link Size}\n@throws FlickrException" ]
private void countGender(EntityIdValue gender, SiteRecord siteRecord) { Integer curValue = siteRecord.genderCounts.get(gender); if (curValue == null) { siteRecord.genderCounts.put(gender, 1); } else { siteRecord.genderCounts.put(gender, curValue + 1); } }
[ "Counts a single page of the specified gender. If this is the first page\nof that gender on this site, a suitable key is added to the list of the\nsite's genders.\n\n@param gender\nthe gender to count\n@param siteRecord\nthe site record to count it for" ]
[ "Returns the set of synchronized documents in a namespace.\n\n@param namespace the namespace to get synchronized documents for.\n@return the set of synchronized documents in a namespace.", "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored in the XML, or <code>null</code> if the value could not be read.", "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy.", "Mark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to mark as current", "Use this API to add linkset.", "Called when the end type is changed.", "Generates and writes the sql for inserting the currently contained data objects.\n\n@param model The database model\n@param platform The platform\n@param writer The output stream", "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list", "Send post request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws IOException the io exception" ]
public static nd6ravariables[] get(nitro_service service, Long vlan[]) throws Exception{ if (vlan !=null && vlan.length>0) { nd6ravariables response[] = new nd6ravariables[vlan.length]; nd6ravariables obj[] = new nd6ravariables[vlan.length]; for (int i=0;i<vlan.length;i++) { obj[i] = new nd6ravariables(); obj[i].set_vlan(vlan[i]); response[i] = (nd6ravariables) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch nd6ravariables resources of given names ." ]
[ "Gets a list of split keys given a desired number of splits.\n\n<p>This list will contain multiple split keys for each split. Only a single split key\nwill be chosen as the split point, however providing multiple keys allows for more uniform\nsharding.\n\n@param numSplits the number of desired splits.\n@param query the user query.\n@param partition the partition to run the query in.\n@param datastore the datastore containing the data.\n@throws DatastoreException if there was an error when executing the datastore query.", "A map of the header key value pairs. Keys are strings and values are either list of strings or a\nstring.\n\n@param headers the header map", "Return the filesystem path needed to mount the NFS filesystem associated with a particular media slot.\n\n@param slot the slot whose filesystem is desired\n\n@return the path to use in the NFS mount request to access the files mounted in that slot\n\n@throws IllegalArgumentException if it is a slot that we don't know how to handle", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first.", "Read calendar data.", "Saves the current translations from the container to the respective localization.", "Linear interpolation of ARGB values.\n@param t the interpolation parameter\n@param rgb1 the lower interpolation range\n@param rgb2 the upper interpolation range\n@return the interpolated value", "Sends a user a password reset email for the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the reqest request completes/fails.", "Scans a single class for Swagger annotations - does not invoke ReaderListeners" ]
public static void logLong(String TAG, String longString) { InputStream is = new ByteArrayInputStream( longString.getBytes() ); @SuppressWarnings("resource") Scanner scan = new Scanner(is); while (scan.hasNextLine()) { Log.v(TAG, scan.nextLine()); } }
[ "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string." ]
[ "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Use this API to unset the properties of sslservice resource.\nProperties that need to be unset are specified in args array.", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x.", "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last).", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Creates a ClassNode containing the wrapper of a ClassNode\nof primitive type. Any ClassNode representing a primitive\ntype should be created using the predefined types used in\nclass. The method will check the parameter for known\nreferences of ClassNode representing a primitive type. If\nReference is found, then a ClassNode will be contained that\nrepresents the wrapper class. For example for boolean, the\nwrapper class is java.lang.Boolean.\n\nIf the parameter is no primitive type, the redirected\nClassNode will be returned\n\n@see #make(Class)\n@see #make(String)\n@param cn the ClassNode containing a possible primitive type", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "called when we are completed finished with using the TcpChannelHub", "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value" ]
public ItemRequest<Tag> update(String tag) { String path = String.format("/tags/%s", tag); return new ItemRequest<Tag>(this, Tag.class, path, "PUT"); }
[ "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object" ]
[ "Retrieves the parent task for a Phoenix activity.\n\n@param activity Phoenix activity\n@return parent task", "Creates a ServiceFuture from an Completable object and a callback.\n\n@param completable the completable to create from\n@param callback the callback to call when event happen\n@return the created ServiceFuture", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Retrieves the amount of time represented by a calendar exception\nbefore or after an intersection point.\n\n@param exception calendar exception\n@param date intersection time\n@param after true to report time after intersection, false to report time before\n@return length of time in milliseconds", "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "Gets any previous versions of this file. Note that only users with premium accounts will be able to retrieve\nprevious versions of their files.\n\n@return a list of previous file versions.", "Unchecks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already unchecked; {@code false} otherwise." ]
public void setDefaultCalendarName(String calendarName) { if (calendarName == null || calendarName.length() == 0) { calendarName = DEFAULT_CALENDAR_NAME; } set(ProjectField.DEFAULT_CALENDAR_NAME, calendarName); }
[ "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name" ]
[ "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Indicates if this file represents a directory on the underlying file system.\n\n@param directoryPath\n@return", "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value", "Request a scoped transactional token for a particular resource.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@param resource resource transactional token has access to.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "Send a waveform preview update announcement to all registered listeners.\n\n@param player the player whose waveform preview has changed\n@param preview the new waveform preview, if any", "Sets the max.\n\n@param n the new max", "SuppressWarnings I really want to return HazeltaskTasks instead of Runnable", "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "to avoid creation of unmaterializable proxies" ]
public static List<List<RTFEmbeddedObject>> getEmbeddedObjects(String text) { List<List<RTFEmbeddedObject>> objects = null; List<RTFEmbeddedObject> objectData; int offset = text.indexOf(OBJDATA); if (offset != -1) { objects = new LinkedList<List<RTFEmbeddedObject>>(); while (offset != -1) { objectData = new LinkedList<RTFEmbeddedObject>(); objects.add(objectData); offset = readObjectData(offset, text, objectData); offset = text.indexOf(OBJDATA, offset); } } return (objects); }
[ "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances" ]
[ "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era, month-of-year and day-of-month fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code EthiopicEra}", "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "Change the value that is returned by this generator.\n@param value The new value to return.", "Confirms that both clusters have the same number of nodes by comparing\nset of node Ids between clusters.\n\n@param lhs\n@param rhs", "This method lists all resource assignments defined in the file.\n\n@param file MPX file", "Function to filter files based on defined rules." ]