query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
private void populateTask(Row row, Task task) { //"PROJID" task.setUniqueID(row.getInteger("TASKID")); //GIVEN_DURATIONTYPF //GIVEN_DURATIONELA_MONTHS task.setDuration(row.getDuration("GIVEN_DURATIONHOURS")); task.setResume(row.getDate("RESUME")); //task.setStart(row.getDate("GIVEN_START")); //LATEST_PROGRESS_PERIOD //TASK_WORK_RATE_TIME_UNIT //TASK_WORK_RATE //PLACEMENT //BEEN_SPLIT //INTERRUPTIBLE //HOLDING_PIN ///ACTUAL_DURATIONTYPF //ACTUAL_DURATIONELA_MONTHS task.setActualDuration(row.getDuration("ACTUAL_DURATIONHOURS")); task.setEarlyStart(row.getDate("EARLY_START_DATE")); task.setLateStart(row.getDate("LATE_START_DATE")); //FREE_START_DATE //START_CONSTRAINT_DATE //END_CONSTRAINT_DATE //task.setBaselineWork(row.getDuration("EFFORT_BUDGET")); //NATURAO_ORDER //LOGICAL_PRECEDENCE //SPAVE_INTEGER //SWIM_LANE //USER_PERCENT_COMPLETE task.setPercentageComplete(row.getDouble("OVERALL_PERCENV_COMPLETE")); //OVERALL_PERCENT_COMPL_WEIGHT task.setName(row.getString("NARE")); task.setNotes(getNotes(row)); task.setText(1, row.getString("UNIQUE_TASK_ID")); task.setCalendar(m_project.getCalendarByUniqueID(row.getInteger("CALENDAU"))); //EFFORT_TIMI_UNIT //WORL_UNIT //LATEST_ALLOC_PROGRESS_PERIOD //WORN //BAR //CONSTRAINU //PRIORITB //CRITICAM //USE_PARENU_CALENDAR //BUFFER_TASK //MARK_FOS_HIDING //OWNED_BY_TIMESHEEV_X //START_ON_NEX_DAY //LONGEST_PATH //DURATIOTTYPF //DURATIOTELA_MONTHS //DURATIOTHOURS task.setStart(row.getDate("STARZ")); task.setFinish(row.getDate("ENJ")); //DURATION_TIMJ_UNIT //UNSCHEDULABLG //SUBPROJECT_ID //ALT_ID //LAST_EDITED_DATE //LAST_EDITED_BY processConstraints(row, task); if (NumberHelper.getInt(task.getPercentageComplete()) != 0) { task.setActualStart(task.getStart()); if (task.getPercentageComplete().intValue() == 100) { task.setActualFinish(task.getFinish()); task.setDuration(task.getActualDuration()); } } }
[ "Populate a task from a Row instance.\n\n@param row Row instance\n@param task Task instance" ]
[ "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story", "Merge a new subsystem from the global registration.\n\n@param registry the global registry\n@param subsystemName the subsystem name\n@param version the subsystem version", "Rename an existing app.\n@param appName Existing app name. See {@link #listApps()} for names that can be used.\n@param newName New name to give the existing app.\n@return the new name of the object", "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance the tolerance to use when considering if two values are equal. For example if\n12.0 == 12.001. The tolerance is a percentage.\n@param zoomLevelSnapStrategy the strategy to use for snapping to the nearest zoom level.\n@param geodetic snap to geodetic scales.\n@param paintArea the paint area of the map.\n@param dpi the DPI.", "Returns all the deployment runtime names associated with an overlay accross all server groups.\n\n@param context the current OperationContext.\n@param overlay the name of the overlay.\n@return all the deployment runtime names associated with an overlay accross all server groups.", "Removes bean from scope.\n\n@param name bean name\n@return previous value", "Optionally specify the variable name to use for the output of this condition", "List the slack values for each task.\n\n@param file ProjectFile instance" ]
public void performStep() { // check for zeros for( int i = helper.x2-1; i >= helper.x1; i-- ) { if( helper.isZero(i) ) { helper.splits[helper.numSplits++] = i; helper.x1 = i+1; return; } } double lambda; if( followingScript ) { if( helper.steps > 10 ) { followingScript = false; return; } else { // Using the true eigenvalues will in general lead to the fastest convergence // typically takes 1 or 2 steps lambda = eigenvalues[helper.x2]; } } else { // the current eigenvalue isn't working so try something else lambda = helper.computeShift(); } // similar transforms helper.performImplicitSingleStep(lambda,false); }
[ "First looks for zeros and then performs the implicit single step in the QR Algorithm." ]
[ "Set the featureModel.\n\n@param featureModel\nfeature model\n@throws LayerException\nproblem setting the feature model\n@since 1.8.0", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE.", "Creates a style definition used for the body element.\n@return The body style definition.", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Updates the store definition object and the retention time based on the\nupdated store definition", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "generate a message for loglevel DEBUG\n\n@param pObject the message Object", "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance" ]
public static void reset() { for (Object name : Collections.list(MAP_KEY_TO_SCOPE.keys())) { closeScope(name); } ConfigurationHolder.configuration.onScopeForestReset(); ScopeImpl.resetUnBoundProviders(); }
[ "Clears all scopes. Useful for testing and not getting any leak..." ]
[ "Extracts the row from a matrix.\n@param a Input matrix\n@param row Which row is to be extracted\n@param out output. Storage for the extracted row. If null then a new vector will be returned.\n@return The extracted row.", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "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", "Compute the proportional padding for all items in the cache\n@param cache Cache data set\n@return the uniform padding amount", "Test a given date for being easter sunday.\n\nThe method uses the algorithms sometimes cited as Meeus,Jones, Butcher Gregorian algorithm.\nTaken from http://en.wikipedia.org/wiki/Computus\n\n@param date The date to check.\n@return True, if date is easter sunday.", "Internal function that uses recursion to create the list", "Emit information about a single suite and all of its tests.", "Obtain the profile name associated with a profile ID\n\n@param id ID of profile\n@return Name of corresponding profile", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity" ]
public static base_response clear(nitro_service client) throws Exception { gslbldnsentries clearresource = new gslbldnsentries(); return clearresource.perform_operation(client,"clear"); }
[ "Use this API to clear gslbldnsentries." ]
[ "Gets the element view.\n\n@return the element view", "Extracts location result from intent object\n\n@param intent valid intent object\n@return location result.\n@since 1.1.0", "The context returned by this method may be later reused for other interception types.\n\n@param interceptionModel\n@param ctx\n@param manager\n@param type\n@return the interception context to be used for the AroundConstruct chain", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "The CommandContext can be retrieved thatnks to the ExecutableBuilder.", "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Get the value for a single attribute on an MBean by name.\n@param attributeName the attribute name (can be URL-encoded).\n@return the value as a String.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported.", "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", "Function to perform backward activation" ]
public void start() { if (TransitionConfig.isDebug()) { getTransitionStateHolder().start(); } mLastProgress = Float.MIN_VALUE; TransitionController transitionController; for (int i = 0, size = mTransitionControls.size(); i < size; i++) { transitionController = mTransitionControls.get(i); if (mInterpolator != null) { transitionController.setInterpolator(mInterpolator); } //required for ViewPager transitions to work if (mTarget != null) { transitionController.setTarget(mTarget); } transitionController.setUpdateStateAfterUpdateProgress(mUpdateStateAfterUpdateProgress); transitionController.start(); } }
[ "Starts the transition" ]
[ "Set the serial end date.\n@param date the serial end date.", "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found.", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Add a note to a photo. The Note object bounds and text must be specified.\n\n@param photoId\nThe photo ID\n@param note\nThe Note object\n@return The updated Note object", "request token from FCM", "Returns all scripts\n\n@param model\n@param type - optional to specify type of script to return\n@return\n@throws Exception", "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups.", "Use this API to delete dnsview of given name." ]
@SuppressWarnings( { "unchecked" }) public static <K1, K2> TwoDimensionalCounter<K2, K1> reverseIndexOrder(TwoDimensionalCounter<K1, K2> cc) { // they typing on the outerMF is violated a bit, but it'll work.... TwoDimensionalCounter<K2, K1> result = new TwoDimensionalCounter<K2, K1>((MapFactory) cc.outerMF, (MapFactory) cc.innerMF); for (K1 key1 : cc.firstKeySet()) { ClassicCounter<K2> c = cc.getCounter(key1); for (K2 key2 : c.keySet()) { double count = c.getCount(key2); result.setCount(key2, key1, count); } } return result; }
[ "Produces a new ConditionalCounter.\n\n@return a new ConditionalCounter, where order of indices is reversed" ]
[ "This essentially ensures that we only store a single Vertex for each unique \"Set\" of tags.", "Get all the attribute values for an MBean by name. The values are HTML escaped.\n@return the {@link Map} of attribute names and values.\n@throws javax.management.AttributeNotFoundException Unable to find the 'attribute'\n@throws InstanceNotFoundException unable to find the specific bean\n@throws ReflectionException unable to interrogate the bean", "set ViewPager scroller to change animation duration when sliding", "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Sets the time warp.\n\n@param l the new time warp", "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]", "Create an object of the given type using a constructor that matches the\nsupplied arguments and invoke the setters with the supplied variables.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@param vars\nthe named arguments for setters\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file", "Waits until all pending operations are complete and closes this repository.\n\n@param failureCauseSupplier the {@link Supplier} that creates a new {@link CentralDogmaException}\nwhich will be used to fail the operations issued after this method is called" ]
public static TransactionalProtocolClient createClient(final ManagementChannelHandler channelAssociation) { final TransactionalProtocolClientImpl client = new TransactionalProtocolClientImpl(channelAssociation); channelAssociation.addHandlerFactory(client); return client; }
[ "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client" ]
[ "Compute the offset for the item in the layout cache\n@return true if the item fits the container, false otherwise", "Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param factor required fraction of a minute\n@return Duration instance", "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "Creates an immutable copy that we can cache.", "Compiles and fills the reports design.\n\n@param dr the DynamicReport\n@param layoutManager the object in charge of doing the layout\n@param ds The datasource\n@param _parameters Map with parameters that the report may need\n@return\n@throws JRException", "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.", "Use this API to enable Interface resources of given names." ]
public static String getTemplateMapperConfig(ServletRequest request) { String result = null; CmsTemplateContext templateContext = (CmsTemplateContext)request.getAttribute( CmsTemplateContextManager.ATTR_TEMPLATE_CONTEXT); if (templateContext != null) { I_CmsTemplateContextProvider provider = templateContext.getProvider(); if (provider instanceof I_CmsTemplateMappingContextProvider) { result = ((I_CmsTemplateMappingContextProvider)provider).getMappingConfigurationPath( templateContext.getKey()); } } return result; }
[ "Checks if the selected template context is \"templatemapper\".\n\n@param request the current request\n@return true if the selected template context is \"templatemapper\"" ]
[ "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception", "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", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead", "Forks off a runnable with the executor provided. Multiple calls are allowed, but the listeners must be\nthreadsafe.", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "Computes the eigenvalue of the 2 by 2 matrix.", "Called when the scene object gets a new parent.\n\n@param parent New parent of this scene object.", "Mark unfinished test cases as interrupted for each unfinished test suite, then write\ntest suite result\n@see #createFakeTestcaseWithWarning(ru.yandex.qatools.allure.model.TestSuiteResult)\n@see #markTestcaseAsInterruptedIfNotFinishedYet(ru.yandex.qatools.allure.model.TestCaseResult)", "Convert a collection of objects to a JSON array with the string representations of that objects.\n@param collection the collection of objects.\n@return the JSON array with the string representations." ]
@SuppressWarnings("WeakerAccess") public static synchronized SlotReference getSlotReference(int player, CdjStatus.TrackSourceSlot slot) { Map<CdjStatus.TrackSourceSlot, SlotReference> playerMap = instances.get(player); if (playerMap == null) { playerMap = new HashMap<CdjStatus.TrackSourceSlot, SlotReference>(); instances.put(player, playerMap); } SlotReference result = playerMap.get(slot); if (result == null) { result = new SlotReference(player, slot); playerMap.put(slot, result); } return result; }
[ "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}" ]
[ "Creates a combined list of Entries using the provided mapping file, and sorts them by\nfirst by priority, then the number of tokens in the regex.\n\n@param mapping The path to a file of mappings\n@return a sorted list of Entries", "xml -> object\n\n@param message\n@param childClass\n@return", "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", "Provisions a new app user in an enterprise using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@return the created user's info.", "width of input section", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Joins the individual WBS elements to make the formated value.\n\n@param length number of elements to join\n@return formatted WBS value", "Count the statements and property uses of an item or property document.\n\n@param usageStatistics\nstatistics object to store counters in\n@param statementDocument\ndocument to count the statements of", "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed" ]
private ReferenceDescriptorDef usedByReference(ModelDef modelDef, FieldDescriptorDef fieldDef) { String ownerClassName = ((ClassDescriptorDef)fieldDef.getOwner()).getQualifiedName(); ClassDescriptorDef classDef; ReferenceDescriptorDef refDef; String targetClassName; // only relevant for primarykey fields if (PropertyHelper.toBoolean(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_PRIMARYKEY), false)) { for (Iterator classIt = modelDef.getClasses(); classIt.hasNext();) { classDef = (ClassDescriptorDef)classIt.next(); for (Iterator refIt = classDef.getReferences(); refIt.hasNext();) { refDef = (ReferenceDescriptorDef)refIt.next(); targetClassName = refDef.getProperty(PropertyHelper.OJB_PROPERTY_CLASS_REF).replace('$', '.'); if (ownerClassName.equals(targetClassName)) { // the field is a primary key of the class referenced by this reference descriptor return refDef; } } } } return null; }
[ "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way" ]
[ "Set virtual host so the server can direct the request. Value is the host header if it is set, otherwise\nuse the hostname from the original request.\n\n@param httpMethodProxyRequest\n@param httpServletRequest", "Whether the given value generation strategy requires to read the value from the database or not.", "Try to get the line number associated with the given member.\n\nThe reflection API does not expose such an info and so we need to analyse the bytecode. Unfortunately, it seems there is no way to get this kind of\ninformation for fields. Moreover, the <code>LineNumberTable</code> attribute is just optional, i.e. the compiler is not required to store this\ninformation at all. See also <a href=\"http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.1\">Java Virtual Machine Specification</a>\n\nImplementation note: it wouldn't be appropriate to add a bytecode scanning dependency just for this functionality, therefore Apache BCEL included in\nOracle JDK 1.5+ and OpenJDK 1.6+ is used. Other JVMs should not crash as we only use it if it's on the classpath and by means of reflection calls.\n\n@param member\n@param resourceLoader\n@return the line number or 0 if it's not possible to find it", "Writes the buffer contents to the given byte channel.\n\n@param channel\n@throws IOException", "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID", "Deletes the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.", "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.", "package scope in order to test the method", "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done." ]
public GVRAnimation setOffset(float startOffset) { if(startOffset<0 || startOffset>mDuration){ throw new IllegalArgumentException("offset should not be either negative or greater than duration"); } animationOffset = startOffset; mDuration = mDuration-animationOffset; return this; }
[ "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration" ]
[ "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget", "If task completed success or failure from response.\n\n@param myResponse\nthe my response\n@return true, if successful", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Remove custom overrides\n\n@param path_id ID of path containing custom override\n@param client_uuid UUID of the client\n@throws Exception exception", "Returns the JSON datatype for the property datatype as represented by\nthe given WDTK datatype IRI string.\n\n@param datatypeIri\nthe WDTK datatype IRI string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Initialize the metadata cache with system store list", "Convert from a DTO to an internal Spring bean definition.\n\n@param beanDefinitionDto The DTO object.\n@return Returns a Spring bean definition." ]
public void setPermissions(Permissions permissions) { if (this.permissions == permissions) { return; } this.removeChildObject("permissions"); this.permissions = permissions; this.addChildObject("permissions", permissions); }
[ "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link." ]
[ "Handle click on \"Add\" button.\n@param e the click event.", "Returns an attribute's list value from a non-main section of this JAR's manifest.\nThe attributes string value will be split on whitespace into the returned list.\nThe returned list may be safely modified.\n\n@param section the manifest's section\n@param name the attribute's name", "I pulled this out of internal store so that when doing multiple table\ninheritance, i can recurse this function.\n\n@param obj\n@param cld\n@param oid BRJ: what is it good for ???\n@param insert\n@param ignoreReferences", "Peeks the current top of the stack or returns null if the stack is empty\n@return the current top of the stack or returns null if the stack is empty", "Fetch a value from the Hashmap .\n\n@param firstKey\nfirst key\n@param secondKey\nsecond key\n@return the element or null.", "Use this API to fetch gslbsite resource of given name .", "public because it's used by other packages that use Duke", "Assigns an element a value based on its index in the internal array..\n\n@param index The matrix element that is being assigned a value.\n@param value The element's new value.", "Helper method to synchronously invoke a callback\n\n@param call" ]
@UiThread protected void collapseView() { setExpanded(false); onExpansionToggled(true); if (mParentViewHolderExpandCollapseListener != null) { mParentViewHolderExpandCollapseListener.onParentCollapsed(getAdapterPosition()); } }
[ "Triggers collapse of the parent." ]
[ "Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Sets the alias. Empty String is regarded as null.\n@param alias The alias to set", "Cuts the string at the end if it's longer than maxLength and appends the given end string to it. The length of\nthe resulting string is always less or equal to the given maxLength. It's valid to pass a null text; in this\ncase null is returned.", "Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster The cluster metadata information\n@param storeDefs The stores metadata information", "Called on mouse up in the caption area, ends dragging by ending event\ncapture.\n\n@param event the mouse up event that ended dragging\n\n@see DOM#releaseCapture\n@see #beginDragging\n@see #endDragging", "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "Destroys the current session", "Replace the current with a new generated identity object and\nreturns the old one." ]
public static void validateAllAvroSchemas(SerializerDefinition avroSerDef) { Map<Integer, String> schemaVersions = avroSerDef.getAllSchemaInfoVersions(); if(schemaVersions.size() < 1) { throw new VoldemortException("No schema specified"); } for(Map.Entry<Integer, String> entry: schemaVersions.entrySet()) { Integer schemaVersionNumber = entry.getKey(); String schemaStr = entry.getValue(); try { Schema.parse(schemaStr); } catch(Exception e) { throw new VoldemortException("Unable to parse Avro schema version :" + schemaVersionNumber + ", schema string :" + schemaStr); } } }
[ "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef" ]
[ "Extracts value from map if given value is null.\n@param value current value\n@param props properties to extract value from\n@param key property name to extract\n@return initial value or value extracted from map", "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Check if the specified sql-string is a stored procedure\nor not.\n@param sql The sql query to check\n@return <em>True</em> if the query is a stored procedure, else <em>false</em> is returned.", "Add a dependency task item for this model.\n\n@param dependency the dependency task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result the task item", "Visit this and all child nodes.\n\n@param visitor The visitor to use.", "Deletes a specific, existing project status update.\n\nReturns an empty data record.\n\n@param projectStatus The project status update to delete.\n@return Request object", "Plots a list of charts in matrix with 2 columns.\n@param charts", "When creating image columns\n@return", "Instantiates a new event collector." ]
private void addApiDocRoots(String packageListUrl) { BufferedReader br = null; packageListUrl = fixApiDocRoot(packageListUrl); try { URL url = new URL(packageListUrl + "/package-list"); br = new BufferedReader(new InputStreamReader(url.openStream())); String line; while((line = br.readLine()) != null) { line = line + "."; Pattern pattern = Pattern.compile(line.replace(".", "\\.") + "[^\\.]*"); apiDocMap.put(pattern, packageListUrl); } } catch(IOException e) { System.err.println("Errors happened while accessing the package-list file at " + packageListUrl); } finally { if(br != null) try { br.close(); } catch (IOException e) {} } }
[ "Adds api doc roots from a link. The folder reffered by the link should contain a package-list\nfile that will be parsed in order to add api doc roots to this configuration\n@param packageListUrl" ]
[ "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "We have obtained a beat grid for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this beat grid\n@param beatGrid the beat grid which we retrieved", "Determine whether the user has followed bean-like naming convention or not.", "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}", "Parse a string.\n\n@param value string representation\n@return String value", "This method is used to initiate a release staging process using the Artifactory Release Staging API.", "Notification that a state transition failed.\n\n@param state the failed transition", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "Get top deployment unit.\n\n@param unit the current deployment unit\n@return top deployment unit" ]
public static base_responses delete(nitro_service client, dnsaaaarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaaaarec deleteresources[] = new dnsaaaarec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnsaaaarec(); deleteresources[i].hostname = resources[i].hostname; deleteresources[i].ipv6address = resources[i].ipv6address; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete dnsaaaarec resources." ]
[ "Utility method to clear cached calendar data.", "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", "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "Converts a number of bytes to a human-readable string\n@param bytes the bytes\n@return the human-readable string", "Turns a series of strings into their corresponding license entities\nby using regular expressions\n\n@param licStrings The list of license strings\n@return A set of license entities", "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DMatrixRMaj. Modified.", "Get all sub-lists of the given list of the given sizes.\n\nFor example:\n\n<pre>\nList&lt;String&gt; items = Arrays.asList(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;);\nSystem.out.println(CollectionUtils.getNGrams(items, 1, 2));\n</pre>\n\nwould print out:\n\n<pre>\n[[a], [a, b], [b], [b, c], [c], [c, d], [d]]\n</pre>\n\n@param <T>\nThe type of items contained in the list.\n@param items\nThe list of items.\n@param minSize\nThe minimum size of an ngram.\n@param maxSize\nThe maximum size of an ngram.\n@return All sub-lists of the given sizes.", "Assembles the exception message when the value received by a CellProcessor isn't of the correct type.\n\n@param expectedType\nthe expected type\n@param actualValue\nthe value received by the CellProcessor\n@return the message\n@throws NullPointerException\nif expectedType is null", "Get viewport size along the axis\n@param axis {@link Axis}\n@return size" ]
public static Object toObject(Class<?> clazz, Object value) throws ParseException { if (value == null) { return null; } if (clazz == null) { return value; } if (java.sql.Date.class.isAssignableFrom(clazz)) { return toDate(value); } if (java.sql.Time.class.isAssignableFrom(clazz)) { return toTime(value); } if (java.sql.Timestamp.class.isAssignableFrom(clazz)) { return toTimestamp(value); } if (java.util.Date.class.isAssignableFrom(clazz)) { return toDateTime(value); } return value; }
[ "Convert an Object of type Class to an Object." ]
[ "Inverts the value of the bit at the specified index.\n@param index The bit to flip (0 is the least-significant bit).\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Put features in a tile. This will assure all features are only added in one tile. When a feature's unique tile\nis different from this one a link is added in the tile.\n\n@param tile\ntile to put features in\n@param maxTileExtent\nthe maximum tile extent\n@throws GeomajasException oops", "Computes the eigenvalue of the provided tridiagonal matrix. Note that only the upper portion\nneeds to be tridiagonal. The bottom diagonal is assumed to be the same as the top.\n\n@param sideLength Number of rows and columns in the input matrix.\n@param diag Diagonal elements from tridiagonal matrix. Modified.\n@param off Off diagonal elements from tridiagonal matrix. Modified.\n@return true if it succeeds and false if it fails.", "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "Create a clone of the Renderer. This method is the base of the prototype mechanism implemented\nto avoid create new objects from RendererBuilder. Pay an special attention implementing clone\nmethod in Renderer subtypes.\n\n@return a copy of the current renderer.", "Use this API to fetch statistics of nslimitidentifier_stats resource of given name .", "Scroll to the specific position\n@param position\n@return the new current item after the scrolling processed.", "Creates a CSS rgb specification from a PDF color\n@param pdcolor\n@return the rgb() string", "Get a list of all methods.\n\n@return The method names\n@throws FlickrException" ]
public ProjectCalendarHours addCalendarHours(Day day) { ProjectCalendarHours bch = new ProjectCalendarHours(this); bch.setDay(day); m_hours[day.getValue() - 1] = bch; return (bch); }
[ "Used to add working hours to the calendar. Note that the MPX file\ndefinition allows a maximum of 7 calendar hours records to be added to\na single calendar.\n\n@param day day number\n@return new ProjectCalendarHours instance" ]
[ "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Utility function to zip the content of an entire folder, but not the folder itself.\n@param folder\n@param fileName optional\n@return success or not", "Stops all transitions.", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed", "Support the subscript operator for GString.\n\n@param text a GString\n@param index the index of the Character to get\n@return the Character at the given index\n@since 2.3.7", "Estimate excluded volume fraction by monte carlo method\n@return excluded volume fraction", "Create a new path\n\n@param pathName friendly name of path\n@param pathValue path value or regex\n@param requestType path request type. \"GET\", \"POST\", etc", "Add image with a exception message in the PDF document.\n\n@param context\nPDF context\n@param e\nexception to put in image" ]
public BlurBuilder contrast(float contrast) { data.preProcessors.add(new ContrastProcessor(data.contextWrapper.getRenderScript(), Math.max(Math.min(1500.f, contrast), -1500.f))); return this; }
[ "Change contrast of the image\n\n@param contrast default is 0, pos values increase contrast, neg. values decrease contrast" ]
[ "Returns all the retention policies with specified filters.\n@param name a name to filter the retention policies by. A trailing partial match search is performed.\nSet to null if no name filtering is required.\n@param type a policy type to filter the retention policies by. Set to null if no type filtering is required.\n@param userID a user id to filter the retention policies by. Set to null if no type filtering is required.\n@param limit the limit of items per single response. The default value is 100.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable with all the retention policies met search conditions.", "Gets the Topsoe divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Topsoe divergence between p and q.", "Use this API to flush nssimpleacl.", "Builds the data structures that show the effects of the plan by server group", "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}", "Read resource data from a PEP file.", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object" ]
public static String compactDump(INode node, boolean showHidden) { StringBuilder result = new StringBuilder(); try { compactDump(node, showHidden, "", result); } catch (IOException e) { return e.getMessage(); } return result.toString(); }
[ "Creates a string representation of the given node. Useful for debugging.\n\n@return a debug string for the given node." ]
[ "Performs all actions that have been configured.", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape.", "will trigger workers to cancel then wait for it to report back.", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "Get the collection of configured blogs for the calling user.\n\n@return The Collection of configured blogs", "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button" ]
@Override public final Float optFloat(final String key, final Float defaultValue) { Float result = optFloat(key); return result == null ? defaultValue : result; }
[ "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value" ]
[ "Renders a time period in human readable form\n\n@param time the time in milliseconds\n@return the time in human readable form", "Retrieves the task mode.\n\n@return task mode", "Return the command line argument\n\n@return \" --server-groups=\" plus a comma-separated list\nof selected server groups. Return empty String if none selected.", "Access an attribute.\n\n@param type the attribute's type, not {@code null}\n@param key the attribute's key, not {@code null}\n@return the attribute value, or {@code null}.", "Gets the JsonObject representation of the Field Operation.\n@param fieldOperation represents the template update operation\n@return the json object", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return info about the shared item.", "Parse a duration value.\n\n@param value duration value\n@return Duration instance", "Makes an RPC call using the client. Logs how long it took and any exceptions.\n\nNOTE: The request could be an InputStream too, but the http client will need to\nfind its length, which will require buffering it anyways.\n\n@throws DatastoreException if the RPC fails.", "Use this API to fetch all the nsip6 resources that are configured on netscaler." ]
public void addChildTask(Task child, int childOutlineLevel) { int outlineLevel = NumberHelper.getInt(getOutlineLevel()); if ((outlineLevel + 1) == childOutlineLevel) { m_children.add(child); setSummary(true); } else { if (m_children.isEmpty() == false) { (m_children.get(m_children.size() - 1)).addChildTask(child, childOutlineLevel); } } }
[ "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline level of the child task." ]
[ "Indicates that all of the packages within an archive are \"known\" by the package mapper. Generally\nthis indicates that the archive does not contain customer code.", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Obtain plugin information\n\n@return", "Convert weekly recurrence days into a bit field.\n\n@param task recurring task\n@return bit field as a string", "Stops the background stream thread.", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "Retrieves the project start date. If an explicit start date has not been\nset, this method calculates the start date by looking for\nthe earliest task start date.\n\n@return project start date", "Parses operations where the input comes from variables to its left and right\n\n@param ops List of operations which should be parsed\n@param tokens List of all the tokens\n@param sequence List of operation sequence" ]
private InputStream connect(String url) throws IOException { URLConnection conn = new URL(URL_BASE + url).openConnection(); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.setRequestProperty("User-Agent", USER_AGENT); return conn.getInputStream(); }
[ "Open the connection to the server.\n\n@param url the url to connect to\n@return returns the input stream for the connection\n@throws IOException cannot get result" ]
[ "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\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.", "Add the set of partitions to the node provided\n\n@param node The node to which we'll add the partitions\n@param donatedPartitions The list of partitions to add\n@return The new node with the new partitions", "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", "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request", "Notify all shutdown listeners that the shutdown completed.", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "Checks if the InputStream have the text\n\n@param in InputStream to read\n@param text Text to check\n@return whether the inputstream has the text", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "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" ]
private String parseMandatoryStringValue(final String path) throws Exception { final String value = parseOptionalStringValue(path); if (value == null) { throw new Exception(); } return value; }
[ "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read." ]
[ "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "Remove the corresponding object from session AND application cache.", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Calculate a cache key.\n@param sql to use\n@param columnIndexes to use\n@return cache key to use.", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Create a JMX ObjectName\n\n@param domain The domain of the object\n@param type The type of the object\n@return An ObjectName representing the name", "Checks to see if a handler is disabled\n\n@param handlerName the name of the handler to enable." ]
private static void parseRessource(ArrayList<Shape> shapes, HashMap<String, JSONObject> flatJSON, String resourceId, Boolean keepGlossaryLink) throws JSONException { JSONObject modelJSON = flatJSON.get(resourceId); Shape current = getShapeWithId(modelJSON.getString("resourceId"), shapes); parseStencil(modelJSON, current); parseProperties(modelJSON, current, keepGlossaryLink); parseOutgoings(shapes, modelJSON, current); parseChildShapes(shapes, modelJSON, current); parseDockers(modelJSON, current); parseBounds(modelJSON, current); parseTarget(shapes, modelJSON, current); }
[ "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException" ]
[ "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "Removes a node meta data entry.\n\n@param key - the meta data key\n@throws GroovyBugError if the key is null", "Create a list of operations required to a boot a managed server.\n\n@param serverName the server name\n@param domainModel the complete domain model\n@param hostModel the local host model\n@param domainController the domain controller\n@return the list of boot operations", "Calculates the next date, starting from the provided date.\n\n@param date the current date.\n@param interval the number of month to add when moving to the next month.", "Mapping originator.\n\n@param originator the originator\n@return the originator type", "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", "Look for a style in the named styles provided in the configuration.\n\n@param styleName the name of the style to look for.", "Writes all error responses to the client.\n\nTODO REST-Server 1. collect error stats\n\n@param messageEvent - for retrieving the channel details\n@param status - error code\n@param message - error message", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails." ]
public static double elementSumSq( DMatrixD1 m ) { // minimize round off error double maxAbs = CommonOps_DDRM.elementMaxAbs(m); if( maxAbs == 0) return 0; double total = 0; int N = m.getNumElements(); for( int i = 0; i < N; i++ ) { double d = m.data[i]/maxAbs; total += d*d; } return maxAbs*total*maxAbs; }
[ "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared." ]
[ "Use this API to add snmpuser resources.", "Use this API to fetch servicegroup_lbmonitor_binding resources of given name .", "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type", "Makes an RPC call using the client. Logs how long it took and any exceptions.\n\nNOTE: The request could be an InputStream too, but the http client will need to\nfind its length, which will require buffering it anyways.\n\n@throws DatastoreException if the RPC fails.", "Returns the current transaction for the calling thread.\n\n@throws org.odmg.TransactionNotInProgressException\n{@link org.odmg.TransactionNotInProgressException} if no transaction was found.", "Use this API to add snmpuser.", "Gets the value of the callout property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the callout property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetCallout().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link Callouts.Callout }", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible" ]
public static DMatrixRMaj wrap(int numRows , int numCols , double []data ) { DMatrixRMaj s = new DMatrixRMaj(); s.data = data; s.numRows = numRows; s.numCols = numCols; return s; }
[ "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally." ]
[ "Count the number of non-zero elements in R", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Checks if a parameter exists. If it exists, it is left untouched. If it doesn't, it is created. Only works for parameters which key\nis unique. Must be called from within an open transaction.", "Find a toBuilder method, if the user has provided one.", "Compute a Catmull-Rom spline for RGB values, but with variable knot spacing.\n@param x the input parameter\n@param numKnots the number of knots in the spline\n@param xknots the array of knot x values\n@param yknots the array of knot y values\n@return the spline value", "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator", "Deletes this collaboration.", "XER files can contain multiple projects when there are cross-project dependencies.\nAs the UniversalProjectReader is designed just to read a single project, we need\nto select one project from those available in the XER file.\nThe original project selected for export by the user will have its \"export flag\"\nset to true. We'll return the first project we find where the export flag is\nset to true, otherwise we'll just return the first project we find in the file.\n\n@param stream schedule data\n@return ProjectFile instance", "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start point of unicode string\n@return string value" ]
private String alterPrefix(String word, String oldPrefix, String newPrefix) { if (word.startsWith(oldPrefix)) { return word.replaceFirst(oldPrefix, newPrefix); } return (newPrefix + word); }
[ "Manipulates a string by cutting of a prefix, if present, and adding a new prefix.\n\n@param word the string to be manipulated\n@param oldPrefix the old prefix that should be replaced\n@param newPrefix the new prefix that is added\n@return the manipulated string" ]
[ "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport.", "Closes the connection to the dbserver. This instance can no longer be used after this action.", "Write the patch.xml\n\n@param rollbackPatch the patch\n@param file the target file\n@throws IOException", "Gets the logger.\n\n@return Returns a Category", "Get an extent aware RsIterator based on the Query\n\n@param query\n@param cld\n@param factory the Factory for the RsIterator\n@return OJBIterator", "returns true if there are still more rows in the underlying ResultSet.\nReturns false if ResultSet is exhausted.", "Look up a shaper by a short String name.\n\n@param name Shaper name. Known names have patterns along the lines of:\ndan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?.\n@return An integer constant for the shaper", "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix", "Adds error correction data to the specified binary string, which already contains the primary data" ]
public CSTNode get( int index ) { CSTNode element = null; if( index < size() ) { element = (CSTNode)elements.get( index ); } return element; }
[ "Returns the specified element, or null." ]
[ "Clones the given reference.\n\n@param refDef The reference descriptor\n@param prefix A prefix for the name\n@return The cloned reference", "Execute a partitioned query using an index and a query selector.\n\nOnly available in partitioned databases. To verify a database is partitioned call\n{@link Database#info()} and check that {@link DbInfo.Props#getPartitioned()} returns\n{@code true}.\n\n<p>Example usage:</p>\n<pre>\n{@code\n// Query database partition 'Coppola'.\nQueryResult<Movie> movies = db.query(\"Coppola\", new QueryBuilder(and(\ngt(\"Movie_year\", 1960),\neq(\"Person_name\", \"Al Pacino\"))).\nfields(\"Movie_name\", \"Movie_year\").\nbuild(), Movie.class);\n}\n</pre>\n\n@param partitionKey Database partition to query.\n@param query String representation of a JSON object describing criteria used to\nselect documents.\n@param classOfT The class of Java objects to be returned in the {@code docs} field of\nresult.\n@param <T> The type of the Java object to be returned in the {@code docs} field of\nresult.\n@return A {@link QueryResult} object, containing the documents matching the query\nin the {@code docs} field.\n@see com.cloudant.client.api.Database#query(String, Class)", "Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add", "Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name .", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "as it is daemon thread\n\nTODO when release external resources should shutdown the scheduler.", "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "If the layer transformer has not been prepared yet, do it.\n\n@param transformer the transformer", "Use this API to fetch a vpnglobal_appcontroller_binding resources." ]
public static String changeFirstLetterToCapital(String word) { char[] letras = word.toCharArray(); char a = letras[0]; letras[0] = Character.toUpperCase(a); return new String(letras); }
[ "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter" ]
[ "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert.", "Print a duration represented by an arbitrary fraction of minutes.\n\n@param duration Duration instance\n@param factor required factor\n@return duration represented as an arbitrary fraction of minutes", "Closes off this connection pool.", "Performs a HTTP GET request.\n\n@return Class type of object T (i.e. {@link Response}", "Send a failed operation response.\n\n@param context the request context\n@param errorCode the error code\n@param message the operation message\n@throws IOException for any error", "Remove a named object", "Expand a macro.\n\nThis will look up the macro definition from {@link #macros} map.\nIf not found then return passed in `macro` itself, otherwise return\nthe macro definition found.\n\n**note** if macro definition is not found and the string\n{@link #isMacro(String) comply to macro name convention}, then a\nwarn level message will be logged.\n\n@param macro the macro name\n@return macro definition or macro itself if no definition found.", "Use this API to fetch sslaction resource of given name .", "prevent too many refreshes happening one after the other." ]
@Override public Symmetry010Date date(int prolepticYear, int month, int dayOfMonth) { return Symmetry010Date.of(prolepticYear, month, dayOfMonth); }
[ "Obtains a local date in Symmetry010 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 Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date" ]
[ "A disposer method is bound to a producer if the producer is assignable to the disposed parameter.\n\n@param enhancedDisposedParameter\n@return the set of required qualifiers for the given disposed parameter", "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception", "Repeat a CharSequence a certain number of times.\n\n@param self a CharSequence to be repeated\n@param factor the number of times the CharSequence should be repeated\n@return a String composed of a repetition\n@throws IllegalArgumentException if the number of repetitions is &lt; 0\n@since 1.8.2", "Use this API to delete systemuser of given name.", "Handle a start time change.\n\n@param event the change event", "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.", "Sets page shift orientation. The pages might be shifted horizontally or vertically relative\nto each other to make the content of each page on the screen at least partially visible\n@param orientation", "Writes a list of UDF types.\n\n@author lsong\n@param type parent entity type\n@param mpxj parent entity\n@return list of UDFAssignmentType instances", "Mark root of this DAG depends on given DAG's root.\n\n@param dependencyGraph the dependency DAG" ]
private List<PermissionFactory> retrievePermissionSet(final OperationContext context, final ModelNode node) throws OperationFailedException { final List<PermissionFactory> permissions = new ArrayList<>(); if (node != null && node.isDefined()) { for (ModelNode permissionNode : node.asList()) { String permissionClass = CLASS.resolveModelAttribute(context, permissionNode).asString(); String permissionName = null; if (permissionNode.hasDefined(PERMISSION_NAME)) permissionName = NAME.resolveModelAttribute(context, permissionNode).asString(); String permissionActions = null; if (permissionNode.hasDefined(PERMISSION_ACTIONS)) permissionActions = ACTIONS.resolveModelAttribute(context, permissionNode).asString(); String moduleName = null; if(permissionNode.hasDefined(PERMISSION_MODULE)) { moduleName = MODULE.resolveModelAttribute(context, permissionNode).asString(); } ClassLoader cl = WildFlySecurityManager.getClassLoaderPrivileged(this.getClass()); if(moduleName != null) { try { cl = Module.getBootModuleLoader().loadModule(ModuleIdentifier.fromString(moduleName)).getClassLoader(); } catch (ModuleLoadException e) { throw new OperationFailedException(e); } } permissions.add(new LoadedPermissionFactory(cl, permissionClass, permissionName, permissionActions)); } } return permissions; }
[ "This method retrieves all security permissions contained within the specified node.\n\n@param context the {@link OperationContext} used to resolve the permission attributes.\n@param node the {@link ModelNode} that might contain security permissions metadata.\n@return a {@link List} containing the retrieved permissions. They are wrapped as {@link PermissionFactory} instances.\n@throws OperationFailedException if an error occurs while retrieving the security permissions." ]
[ "Installs a remoting stream server for a domain instance\n@param serviceTarget the service target to install the services into\n@param endpointName the name of the endpoint to install the stream server into\n@param networkInterfaceBinding the network interface binding\n@param port the port\n@param securityRealm the security real name\n@param options the remoting options", "Get permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response.", "Stop Redwood, closing all tracks and prohibiting future log messages.", "Create the required services according to the server setup\n\n@param config Service configuration\n@return Services map", "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance", "Call when you are done with the client\n\n@throws Exception", "Adds another condition for an element within this annotation.", "Read all configuration files.\n@return the list with all available configurations", "Only one boolean param should be true at a time for this function to return the proper results\n\n@param hostName\n@param enable\n@param disable\n@param remove\n@param isEnabled\n@param exists\n@return\n@throws Exception" ]
public ItemRequest<Story> update(String story) { String path = String.format("/stories/%s", story); return new ItemRequest<Story>(this, Story.class, path, "PUT"); }
[ "Updates the story and returns the full record for the updated story.\nOnly comment stories can have their text updated, and only comment stories and\nattachment stories can be pinned. Only one of `text` and `html_text` can be specified.\n\n@param story Globally unique identifier for the story.\n@return Request object" ]
[ "Return a long value which is the number of rows in the table.", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Converts a number of bytes to a human-readable string\n@param bytes the bytes\n@return the human-readable string", "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "Purges the JSP repository.<p<\n\n@param afterPurgeAction the action to execute after purging", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity", "Returns the first 24 photos for a given tag cluster.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\n@param clusterId\n@return PhotoList\n@throws FlickrException", "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.", "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name ." ]
public Map<String, CmsCategory> getReadCategory() { if (null == m_categories) { m_categories = CmsCollectionsGenericWrapper.createLazyMap(new Transformer() { public Object transform(Object categoryPath) { try { CmsCategoryService catService = CmsCategoryService.getInstance(); return catService.localizeCategory( m_cms, catService.readCategory(m_cms, (String)categoryPath, getRequestContext().getUri()), m_cms.getRequestContext().getLocale()); } catch (CmsException e) { LOG.warn(e.getLocalizedMessage(), e); return null; } } }); } return m_categories; }
[ "Transforms the category path of a category to the category.\n@return a map from root or site path to category." ]
[ "Parses the field facet configurations.\n@param fieldFacetObject The JSON sub-node with the field facet configurations.\n@return The field facet configurations.", "Gets the explorer file entry options.\n\n@return the explorer file entry options", "Main database initialization. To be called only when _ds is a valid DataSource.", "Set brightness to eg. darken the resulting image for use as background\n\n@param brightness default is 0, pos values increase brightness, neg. values decrease brightness\n.-100 is black, positive goes up to 1000+", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "get the jdbcTypes from the Query or the ResultSet if not available from the Query\n@throws SQLException", "Get a property as a double or throw an exception.\n\n@param key the property name", "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found.", "Used to create a new retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info." ]
public static UriComponentsBuilder fromPath(String path) { UriComponentsBuilder builder = new UriComponentsBuilder(); builder.path(path); return builder; }
[ "Returns a builder that is initialized with the given path.\n@param path the path to initialize with\n@return the new {@code UriComponentsBuilder}" ]
[ "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value", "Handles the response of the MemoryGetId request.\nThe MemoryGetId function gets the home and node id from the controller memory.\n@param incomingMessage the response message to process.", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "Closes off this connection pool.", "Assign a new value to this field.\n@param numStrings - number of strings\n@param newValues - the new strings", "Shows the Loader component", "crates a StencilSet object and add it to the current diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Gets the event type from message.\n\n@param message the message\n@return the event type" ]
private long interpolateTimeSinceUpdate(TrackPositionUpdate update, long currentTimestamp) { if (!update.playing) { return update.milliseconds; } long elapsedMillis = (currentTimestamp - update.timestamp) / 1000000; long moved = Math.round(update.pitch * elapsedMillis); if (update.reverse) { return update.milliseconds - moved; } return update.milliseconds + moved; }
[ "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now" ]
[ "This method is called if the data set has been changed. Subclasses might want to override\nthis method to add some extra logic.\n\nGo through all items in the list:\n- reuse the existing views in the list\n- add new views in the list if needed\n- trim the unused views\n- request re-layout\n\n@param preferableCenterPosition the preferable center position. If it is -1 - keep the\ncurrent center position.", "Remove any device announcements that are so old that the device seems to have gone away.", "Calculate a threshold.\n\n@param x first string.\n@param y second string.\n@param p the threshold coefficient.\n@return 2 maxLength(x, y) (1-p)", "Append a Handler to every parent of the given class\n@param parent The class of the parents to add the child to\n@param child The Handler to add.", "Extract a slice [from, to) of this buffer. This methods creates a copy of the specified region.\n@param from\n@param to\n@return", "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration", "Clears the Parameters before performing a new search.\n@return this.true;", "Set the query parameter values overriding all existing query values for\nthe same parameter. If no values are given, the query parameter is removed.\n@param name the query parameter name\n@param values the query parameter values\n@return this UriComponentsBuilder", "As part of checking whether a metadata cache can be auto-mounted for a particular media slot, this method\nlooks up the track at the specified offset within the player's track list, and returns its rekordbox ID.\n\n@param slot the slot being considered for auto-attaching a metadata cache\n@param client the connection to the database server on the player holding that slot\n@param offset an index into the list of all tracks present in the slot\n\n@throws IOException if there is a problem communicating with the player" ]
private ModelNode createCPUNode() throws OperationFailedException { ModelNode cpu = new ModelNode().setEmptyObject(); cpu.get(ARCH).set(getProperty("os.arch")); cpu.get(AVAILABLE_PROCESSORS).set(ProcessorInfo.availableProcessors()); return cpu; }
[ "Create a ModelNode representing the CPU the instance is running on.\n\n@return a ModelNode representing the CPU the instance is running on.\n@throws OperationFailedException" ]
[ "Unregister the mgmt channel.\n\n@param old the proxy controller to unregister\n@param shuttingDown whether the server inventory is shutting down\n@return whether the registration can be removed from the domain-controller", "This method removes all RTF formatting from a given piece of text.\n\n@param text Text from which the RTF formatting is to be removed.\n@return Plain text", "Calculates the world matrix based on the local matrix.", "We are adding a redeploy operation step for each specified deployment runtime name.\n\n@param context\n@param deploymentsRootAddress\n@param deploymentNames\n@throws OperationFailedException", "Gets the listener classes to which dispatching should be prevented while\nthis event is being dispatched.\n\n@return The listener classes marked to prevent.\n@see #preventCascade(Class)", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Inserts 'token' after 'where'. if where is null then it is inserted to the beginning of the list.\n@param where Where 'token' should be inserted after. if null the put at it at the beginning\n@param token The token that is to be inserted", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs" ]
public static <T, U extends Closeable> T withCloseable(U self, @ClosureParams(value=FirstParam.class) Closure<T> action) throws IOException { try { T result = action.call(self); Closeable temp = self; self = null; temp.close(); return result; } finally { DefaultGroovyMethodsSupport.closeWithWarning(self); } }
[ "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0" ]
[ "Emit a string event with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "A modified version of abs that always returns a non-negative value.\nMath.abs returns Integer.MIN_VALUE if a == Integer.MIN_VALUE and this\nmethod returns Integer.MAX_VALUE in that case.", "Do not call directly.\n@deprecated", "Perform construction with custom thread pool size.", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Initializes the type and validates it", "Parse a list of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "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" ]
public static double[][] diag(double[] vector){ // Note: According to the Java Language spec, an array is initialized with the default value, here 0. double[][] diagonalMatrix = new double[vector.length][vector.length]; for(int index = 0; index < vector.length; index++) { diagonalMatrix[index][index] = vector[index]; } return diagonalMatrix; }
[ "Generates a diagonal matrix with the input vector on its diagonal\n\n@param vector The given matrix A.\n@return diagonalMatrix The matrix with the vectors entries on its diagonal" ]
[ "Inits the ws client.\n\n@param context the context\n@throws Exception the exception", "Stores all entries contained in the given map in the cache.", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Use this API to enable clusterinstance of given name.", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong", "Creates a random Hermitian matrix with elements from min to max value.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Transposes a block matrix.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified." ]
public void deploySchema(String generatedProtobufName, RemoteCache<String, String> protobufCache, SchemaCapture schemaCapture, SchemaOverride schemaOverrideService, URL schemaOverrideResource) { // user defined schema if ( schemaOverrideService != null || schemaOverrideResource != null ) { cachedSchema = new SchemaValidator( this, schemaOverrideService, schemaOverrideResource, generatedProtobufName ).provideSchema(); } // or generate them generateProtoschema(); try { protobufCache.put( generatedProtobufName, cachedSchema ); String errors = protobufCache.get( generatedProtobufName + ".errors" ); if ( errors != null ) { throw LOG.errorAtSchemaDeploy( generatedProtobufName, errors ); } LOG.successfulSchemaDeploy( generatedProtobufName ); } catch (HotRodClientException hrce) { throw LOG.errorAtSchemaDeploy( generatedProtobufName, hrce ); } if ( schemaCapture != null ) { schemaCapture.put( generatedProtobufName, cachedSchema ); } }
[ "Typically this is transparently handled by using the Protostream codecs but be aware of it when bypassing Protostream." ]
[ "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Hide keyboard from phoneEdit field", "This method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions.\n\n@param date Date to be tested\n@return boolean value", "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "Extract resource data.", "Use this API to update ipv6.", "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", "Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}." ]
public static CombinedInterceptorAndDecoratorStackMethodHandler peekIfNotEmpty() { Stack stack = interceptionContexts.get(); if (stack == null) { return null; } return stack.peek(); }
[ "Peeks the current top of the stack or returns null if the stack is empty\n@return the current top of the stack or returns null if the stack is empty" ]
[ "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object", "Get the element at the index as an integer.\n\n@param i the index of the element to access", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command removes all elements in the sorted set between the lexicographical range specified.\n@param lexRange\n@return the number of elements removed.", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "Transfer the data from the inputStream to the outputStream. Then close both streams.", "Returns the bundle jar classpath element.", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Creates a list of all permutations for a set with N elements.\n\n@param N Number of elements in the list being permuted.\n@return A list containing all the permutations.", "Creates SLD rules for each old style." ]
private Boolean readOptionalBoolean(JSONValue val) { JSONBoolean b = null == val ? null : val.isBoolean(); if (b != null) { return Boolean.valueOf(b.booleanValue()); } return null; }
[ "Read an optional boolean value form a JSON value.\n@param val the JSON value that should represent the boolean.\n@return the boolean from the JSON or null if reading the boolean fails." ]
[ "Verify store definitions are congruent with cluster definition.\n\n@param cluster\n@param storeDefs", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "replace the counter for K1-index o by new counter c", "add some validation to see if this miss anything.\n\n@return true, if successful\n@throws ParallelTaskInvalidException\nthe parallel task invalid exception", "Creates the code mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param realOffsetStart\nthe real offset start\n@param realOffsetEnd\nthe real offset end\n@param codePositions\nthe code positions\n@throws IOException\nSignals that an I/O exception has occurred.", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "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", "Deletes the given directory.\n\n@param directory The directory to delete.", "Log a trace message." ]
public static filterpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ filterpolicy_csvserver_binding obj = new filterpolicy_csvserver_binding(); obj.set_name(name); filterpolicy_csvserver_binding response[] = (filterpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch filterpolicy_csvserver_binding resources of given name ." ]
[ "Get all registration points associated with this registration.\n\n@return all registration points. Will not be {@code null} but may be empty", "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the array\n@return string value", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation.", "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "calculate the difference of the two maps, so we know what was added, removed & updated\n@param left\n@param right\n@param onlyOnLeft\n@param onlyOnRight\n@param updated", "Performs a single synchronization pass in both the local and remote directions; the order\nof which does not matter. If switching the order produces different results after one pass,\nthen there is a bug.\n\n@return whether or not the synchronization pass was successful.", "Use this API to unset the properties of ntpserver resource.\nProperties that need to be unset are specified in args array." ]
public static final String printTaskUID(Integer value) { ProjectFile file = PARENT_FILE.get(); if (file != null) { file.getEventManager().fireTaskWrittenEvent(file.getTaskByUniqueID(value)); } return (value.toString()); }
[ "Print a task UID.\n\n@param value task UID\n@return task UID string" ]
[ "get the last segment at the moment\n\n@return the last segment", "Iterate through dependencies", "Counts each property for which there is a statement in the given item\ndocument, ignoring the property thisPropertyIdValue to avoid properties\ncounting themselves.\n\n@param statementDocument\n@param usageRecord\n@param thisPropertyIdValue", "Adds a new role to the list of defined roles.\n\n@param roleName - The name of the role being added.", "Use this API to fetch all the dospolicy resources that are configured on netscaler.", "Adds the complex number with a scalar value.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value.", "Obtains a local date in Discordian calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Discordian era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Discordian local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code DiscordianEra}", "Called when app's singleton registry has been initialized", "Get the filters ExporterServiceFilter and ExportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid." ]
public PhotoList<Photo> getContactsPublicPhotos(String userId, int count, boolean justFriends, boolean singlePhoto, boolean includeSelf) throws FlickrException { return getContactsPublicPhotos(userId, Extras.MIN_EXTRAS, count, justFriends, singlePhoto, includeSelf); }
[ "Get public photos from the user's contacts.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe user ID\n@param count\nThe number of photos to return\n@param justFriends\nTrue to include friends\n@param singlePhoto\nTrue to get a single photo\n@param includeSelf\nTrue to include self\n@return A collection of Photo objects\n@throws FlickrException" ]
[ "Read the parameters on initialization.\n\n@see org.apache.solr.update.processor.UpdateRequestProcessorFactory#init(org.apache.solr.common.util.NamedList)", "Use this API to fetch all the dospolicy resources that are configured on netscaler.", "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", "Plots a list of charts in matrix with 2 columns.\n@param charts", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "Use this API to update dbdbprofile.", "Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert into the histogram", "Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null" ]
public static base_response sync(nitro_service client, gslbconfig resource) throws Exception { gslbconfig syncresource = new gslbconfig(); syncresource.preview = resource.preview; syncresource.debug = resource.debug; syncresource.forcesync = resource.forcesync; syncresource.nowarn = resource.nowarn; syncresource.saveconfig = resource.saveconfig; syncresource.command = resource.command; return syncresource.perform_operation(client,"sync"); }
[ "Use this API to sync gslbconfig." ]
[ "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", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Use this API to add nsip6 resources.", "creates a bounds object with both point parsed from the json and set it\nto the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "scroll only once", "Extract calendar data.", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Returns the vertex with given ID framed into given interface.", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise" ]
public static Shell createSubshell(String pathElement, Shell parent, String appName, Object mainHandler, MultiMap<String, Object> auxHandlers) { List<String> newPath = new ArrayList<String>(parent.getPath()); newPath.add(pathElement); Shell subshell = new Shell(parent.getSettings().createWithAddedAuxHandlers(auxHandlers), new CommandTable(parent.getCommandTable().getNamer()), newPath); subshell.setAppName(appName); subshell.addMainHandler(subshell, "!"); subshell.addMainHandler(new HelpCommandHandler(), "?"); subshell.addMainHandler(mainHandler, ""); return subshell; }
[ "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@param auxHandlers Aux handlers to be passed to all subshells.\n@return subshell" ]
[ "Invokes the setter on the bean with the supplied value.\n\n@param bean\nthe bean\n@param setMethod\nthe setter method for the field\n@param fieldValue\nthe field value to set\n@throws SuperCsvException\nif there was an exception invoking the setter", "Str map to str.\n\n@param map\nthe map\n@return the string", "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray.", "Used to ensure that the general footer label will be at the same Y position as the variables in the band.\n@param band\n@return", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Calls all initializers of the bean\n\n@param instance The bean instance", "Validates a space separated list of emails.\n\n@param emails Space separated list of emails\n@return {@link hudson.util.FormValidation.ok()} if valid or empty, error otherwise", "Parses a String email address to an IMAP address string.", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups" ]
public static vpnsessionpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ vpnsessionpolicy_aaauser_binding obj = new vpnsessionpolicy_aaauser_binding(); obj.set_name(name); vpnsessionpolicy_aaauser_binding response[] = (vpnsessionpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vpnsessionpolicy_aaauser_binding resources of given name ." ]
[ "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions don't trigger infinite recursion.", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise", "Close the Closeable. Logging a warning if any problems occur.\n\n@param c the thing to close", "Use this API to restart dbsmonitors.", "Filters all exceptions from the provided dates.\n@param dates the dates to filter.\n@return the provided dates, except the ones that match some exception.", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers." ]
protected static Connection memorize(final Connection target, final ConnectionHandle connectionHandle) { return (Connection) Proxy.newProxyInstance( ConnectionProxy.class.getClassLoader(), new Class[] {ConnectionProxy.class}, new MemorizeTransactionProxy(target, connectionHandle)); }
[ "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection." ]
[ "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Sets the model that the handling works on.\n\n@param databaseModel The database model\n@param objModel The object model", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "Use this API to delete dnsaaaarec.", "Set the week day the event should take place.\n@param dayString the day as string.", "Processes an object cache tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the object-cache as name-value pairs 'name=value',\[email protected] name=\"class\" optional=\"false\" description=\"The object cache implementation\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the object cache\"", "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException", "Execute a set of API calls as batch request.\n@param requests list of api requests that has to be executed in batch.\n@return list of BoxAPIResponses", "Acquires a write lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait." ]
public static DMatrixSparseTriplet uniform(int numRows , int numCols , int nz_total , double min , double max , Random rand ) { // Create a list of all the possible element values int N = numCols*numRows; if( N < 0 ) throw new IllegalArgumentException("matrix size is too large"); nz_total = Math.min(N,nz_total); int selected[] = new int[N]; for (int i = 0; i < N; i++) { selected[i] = i; } for (int i = 0; i < nz_total; i++) { int s = rand.nextInt(N); int tmp = selected[s]; selected[s] = selected[i]; selected[i] = tmp; } // Create a sparse matrix DMatrixSparseTriplet ret = new DMatrixSparseTriplet(numRows,numCols,nz_total); for (int i = 0; i < nz_total; i++) { int row = selected[i]/numCols; int col = selected[i]%numCols; double value = rand.nextDouble()*(max-min)+min; ret.addItem(row,col, value); } return ret; }
[ "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix" ]
[ "Creates an immutable list that consists of the elements in the given collection. If the given collection is already an immutable list,\nit is returned directly.\n\n@param source the given collection\n@return an immutable list", "Returns a new instance of the given class, using the constructor with the specified parameter types.\n\n@param target The class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Convenience method to allow a cause. Grrrr.", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Creates a MetaMatcher based on the filter content.\n\n@param filterAsString the String representation of the filter\n@param metaMatchers the Map of custom MetaMatchers\n@return A MetaMatcher used to match the filter content", "Simple, high-level API to enable or disable eye picking for this scene\nobject.\n\nThe {@linkplain #attachCollider low-level\nAPI} gives you a lot of control over eye picking, but it does involve an\nawful lot of details. This method\n(and {@link #getPickingEnabled()}) provides a simple boolean property.\nIt attaches a GVRSphereCollider to the scene object. If you want more\naccurate picking, you can use {@link #attachComponent(GVRComponent)} to attach a\nmesh collider instead. The mesh collider is more accurate but also\ncosts more to compute.\n\n@param enabled\nShould eye picking 'see' this scene object?\n\n@since 2.0.2\n@see GVRSphereCollider\n@see GVRMeshCollider", "Creates typed parser\n@param contentType class of parsed object\n@param <T> type of parsed object\n@return parser of objects of given type", "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys", "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the" ]
private void countCoordinateStatement(Statement statement, ItemDocument itemDocument) { Value value = statement.getValue(); if (!(value instanceof GlobeCoordinatesValue)) { return; } GlobeCoordinatesValue coordsValue = (GlobeCoordinatesValue) value; if (!this.globe.equals((coordsValue.getGlobe()))) { return; } int xCoord = (int) (((coordsValue.getLongitude() + 180.0) / 360.0) * this.width) % this.width; int yCoord = (int) (((coordsValue.getLatitude() + 90.0) / 180.0) * this.height) % this.height; if (xCoord < 0 || yCoord < 0 || xCoord >= this.width || yCoord >= this.height) { System.out.println("Dropping out-of-range coordinate: " + coordsValue); return; } countCoordinates(xCoord, yCoord, itemDocument); this.count += 1; if (this.count % 100000 == 0) { reportProgress(); writeImages(); } }
[ "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument" ]
[ "Returns a OkHttpClient that ignores SSL cert errors\n@return", "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "Checks if provided class package is on the exclude list\n\n@param classPackageName\nname of class package\n@return false if class package is on the {@link #excludePackages} list", "Checks to see if either the diagonal element or off diagonal element is zero. If one is\nthen it performs a split or pushes it off the matrix.\n\n@return True if there was a zero.", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.", "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", "Multiplies all positions with a factor v\n@param v Multiplication factor", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "The mediator registration config. If it contains default config and definitions,\nthen the dynamic config will be initialized with those values.\n\n@see org.openhim.mediator.engine.RegistrationConfig\n@see #getDynamicConfig()" ]
public Date getBaselineFinish() { Object result = getCachedValue(TaskField.BASELINE_FINISH); if (result == null) { result = getCachedValue(TaskField.BASELINE_ESTIMATED_FINISH); } if (!(result instanceof Date)) { result = null; } return (Date) result; }
[ "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date" ]
[ "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script.", "ceiling for clipped RELU, alpha for ELU", "Looks up the EJB in the container and executes the method on it\n\n@param self the proxy instance.\n@param method the overridden method declared in the super class or\ninterface.\n@param proceed the forwarder method for invoking the overridden method. It\nis null if the overridden method is abstract or declared in the\ninterface.\n@param args an array of objects containing the values of the arguments\npassed in the method invocation on the proxy instance. If a\nparameter type is a primitive type, the type of the array\nelement is a wrapper class.\n@return the resulting value of the method invocation.\n@throws Throwable if the method invocation fails.", "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "Two stage promotion, dry run and actual promotion to verify correctness.\n\n@param promotion\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException", "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)", "Use this API to fetch all the gslbldnsentries resources that are configured on netscaler." ]
@Override public String logFile() { if(logFile == null) { logFile = Config.getTmpDir()+Config.getPathSeparator()+"aesh.log"; } return logFile; }
[ "Get log file\n\n@return log file" ]
[ "Starts asynchronous check. Result will be delivered to the listener on the main thread.\n\n@param context\n@param appId application id from the oculus dashboard\n@param listener listener to invoke when the result is available\n@throws IllegalStateException in case the platform sdk cannot be initialized\n@throws IllegalArgumentException if listener is null", "Returns a the list of available version of an artifact\n\n@param gavc String\n@return List<String>", "Handles week day changes.\n@param event the change event.", "Returns the specified element, or null.", "Examine the given model node, resolving any expressions found within, including within child nodes.\n\n@param node the node\n@return a node with all expressions resolved\n@throws OperationFailedException if an expression cannot be resolved", "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", "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", "Gets the JVM memory usage.\n\n@return the JVM memory usage", "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor." ]
public static <T extends WindupVertexFrame> WindupVertexFrame removeTypeFromModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type) { Vertex vertex = frame.getElement(); graphContext.getGraphTypeManager().removeTypeFromElement(type, vertex); return graphContext.getFramed().frameElement(vertex, WindupVertexFrame.class); }
[ "Removes the specified type from the frame." ]
[ "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)", "Parses a reflection modifier to a list of string\n\n@param modifiers The modifier to parse\n@return The resulting string list", "This may cost twice what it would in the original Map because we have to find\nthe original value for this key.\n\n@param key key with which the specified value is to be associated.\n@param value value to be associated with the specified key.\n@return previous value associated with specified key, or <tt>null</tt>\nif there was no mapping for key. A <tt>null</tt> return can\nalso indicate that the map previously associated <tt>null</tt>\nwith the specified key, if the implementation supports\n<tt>null</tt> values.", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Modify a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder", "Deletes a path from the filesystem\n\nIf the path is a directory its contents\nwill be recursively deleted before it itself\nis deleted.\n\nNote that removal of a directory is not an atomic-operation\nand so if an error occurs during removal, some of the directories\ndescendants may have already been removed\n\n@throws IOException if an error occurs whilst removing a file or directory", "Use this API to update inat.", "Recovers the state of synchronization in case a system failure happened. The goal is to revert\nto a known, good state.", "Use this API to delete nsip6 resources of given names." ]
public List<DbModule> getAncestors(final String gavc, final FiltersHolder filters) { final DbArtifact dbArtifact = getArtifact(gavc); return repositoryHandler.getAncestors(dbArtifact, filters); }
[ "Return the list of module that uses the targeted artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbModule>" ]
[ "Attempts to locate the activity type value extracted from an existing P6 schedule.\nIf necessary converts to the form which can be used in the PMXML file.\nReturns \"Resource Dependent\" as the default value.\n\n@param task parent task\n@return activity type", "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string", "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth server token secret\n@param token OAuth server issued token\n@return this Replication instance to set more options or trigger the replication", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "Converts a boolean array containing the pixel data in BINARY mode to an\ninteger array with the pixel data in RGB mode.\n\n@param binaryArray pixel binary data\n@return pixel integer data in RGB mode.", "The default field facets.\n\n@param categoryConjunction flag, indicating if category selections in the facet should be \"AND\" combined.\n@return the default field facets.", "Write the field to the specified channel.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel", "Use this API to enable nsfeature.", "get the setter method corresponding to given property" ]
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" ]
[ "the absolute and relative calls are the trickiest parts. We have to\nmove across cursor boundaries potentially.\n\na + row value indexes from beginning of resultset\na - row value indexes from the end of th resulset.\n\nCalling absolute(1) is the same as calling first().\nCalling absolute(-1) is the same as calling last().", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "Process normal calendar working and non-working days.\n\n@param calendar parent calendar", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "Validate the configuration.\n\n@param validationErrors where to put the errors.", "Check whether the given id is included in the list of includes and not excluded.\n\n@param id id to check\n@param includes list of include regular expressions\n@param excludes list of exclude regular expressions\n@return true when id included and not excluded", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter" ]
public static <InnerT> Observable<InnerT> convertPageToInnerAsync(Observable<Page<InnerT>> innerPage) { return innerPage.flatMap(new Func1<Page<InnerT>, Observable<InnerT>>() { @Override public Observable<InnerT> call(Page<InnerT> pageInner) { return Observable.from(pageInner.items()); } }); }
[ "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner." ]
[ "Sets the origin and direction of the pick ray.\n\n@param ox X coordinate of origin.\n@param oy Y coordinate of origin.\n@param oz Z coordinate of origin.\n@param dx X coordinate of ray direction.\n@param dy Y coordinate of ray direction.\n@param dz Z coordinate of ray direction.\n\nThe coordinate system of the ray depends on the whether the\npicker is attached to a scene object or not. When attached\nto a scene object, the ray is in the coordinate system of\nthat object where (0, 0, 0) is the center of the scene object\nand (0, 0, 1) is it's positive Z axis. If not attached to an\nobject, the ray is in the coordinate system of the scene's\nmain camera with (0, 0, 0) at the viewer and (0, 0, -1)\nwhere the viewer is looking.\n@see #doPick()\n@see #getPickRay()\n@see #getWorldPickRay(Vector3f, Vector3f)", "Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@param notify the user/group should receive email notification of the collaboration or not.\n@param canViewPath the view path collaboration feature is enabled or not.\n@return info about the new collaboration.", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Set the inner angle of the spotlight cone in degrees.\n\nBeyond the outer cone angle there is no illumination.\nThe underlying uniform \"outer_cone_angle\" is the cosine\nof this input angle. If the inner cone angle is larger than the outer cone angle\nthere will be unexpected results.\n@see #setInnerConeAngle(float)\n@see #getOuterConeAngle()", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document.", "Sets the target implementation type required. This can be used to explicitly acquire a specific\nimplementation\ntype and use a query to configure the instance or factory to be returned.\n\n@param type the target implementation type, not null.\n@return this query builder for chaining.", "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.", "Load a configuration in from a text file.\n\n@return A config if any of the fields were set otherwise null on EOF." ]
public static base_response update(nitro_service client, vserver resource) throws Exception { vserver updateresource = new vserver(); updateresource.name = resource.name; updateresource.backupvserver = resource.backupvserver; updateresource.redirecturl = resource.redirecturl; updateresource.cacheable = resource.cacheable; updateresource.clttimeout = resource.clttimeout; updateresource.somethod = resource.somethod; updateresource.sopersistence = resource.sopersistence; updateresource.sopersistencetimeout = resource.sopersistencetimeout; updateresource.sothreshold = resource.sothreshold; updateresource.pushvserver = resource.pushvserver; return updateresource.update_resource(client); }
[ "Use this API to update vserver." ]
[ "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Generates an organization regarding the parameters.\n\n@param name String\n@return Organization", "Stores all entries contained in the given map in the cache.", "Use this API to add route6 resources.", "Parse currency.\n\n@param value currency value\n@return currency value", "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance", "Use this API to fetch a vpnglobal_appcontroller_binding resources.", "Wrap CallableStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Callablestatement.", "Returns a list of all the eigenvalues" ]
void attachMetadataCacheInternal(SlotReference slot, MetadataCache cache) { MetadataCache oldCache = metadataCacheFiles.put(slot, cache); if (oldCache != null) { try { oldCache.close(); } catch (IOException e) { logger.error("Problem closing previous metadata cache", e); } } deliverCacheUpdate(slot, cache); }
[ "Finishes the process of attaching a metadata cache file once it has been opened and validated.\n\n@param slot the slot to which the cache should be attached\n@param cache the opened, validated metadata cache file" ]
[ "Set the value for a floating point 4x4 matrix.\n@param key name of uniform to set.\n@see #getFloatVec(String)", "Converts this IPv6 address segment into smaller segments,\ncopying them into the given array starting at the given index.\n\nIf a segment does not fit into the array because the segment index in the array is out of bounds of the array,\nthen it is not copied.\n\n@param segs\n@param index", "Cancel request and workers.", "Creates a new instance from the given configuration file.\n\n@throws IOException if failed to load the configuration from the specified file", "This method searches in the Component Management Service, so given an\nagent name returns its IExternalAccess\n\n@param agent_name\nThe name of the agent in the platform\n@return The IComponentIdentifier of the agent in the platform", "Mojos perform different dependency resolution, so we add dependencies for each mojo.", "Indicates if this file represents a file on the underlying file system.\n\n@param filePath\n@return", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Returns a String summarizing overall accuracy that will print nicely." ]
public static int byteSizeOf(Bitmap bitmap) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { return bitmap.getAllocationByteCount(); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) { return bitmap.getByteCount(); } else { return bitmap.getRowBytes() * bitmap.getHeight(); } }
[ "returns the bytesize of the give bitmap" ]
[ "Create a rollback patch based on the recorded actions.\n\n@param patchId the new patch id, depending on release or one-off\n@param patchType the current patch identity\n@return the rollback patch", "Start a timer of the given string name for the current thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\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 waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "A specific, existing custom field can be updated by making a PUT request on the URL for that custom field. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged\n\nWhen using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the custom field.\n\nA custom field's `type` cannot be updated.\n\nAn enum custom field's `enum_options` cannot be updated with this endpoint. Instead see \"Work With Enum Options\" for information on how to update `enum_options`.\n\nReturns the complete updated custom field record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Implements getAll by delegating to get.", "Unloads the sound file for this source, if any.", "Inverts an upper or lower triangular block submatrix.\n\n@param blockLength\n@param upper Is it upper or lower triangular.\n@param T Triangular matrix that is to be inverted. Must be block aligned. Not Modified.\n@param T_inv Where the inverse is stored. This can be the same as T. Modified.\n@param temp Work space variable that is size blockLength*blockLength.", "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name" ]
public static boolean isDiagonalPositive( DMatrixRMaj a ) { for( int i = 0; i < a.numRows; i++ ) { if( !(a.get(i,i) >= 0) ) return false; } return true; }
[ "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise." ]
[ "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object", "Use this API to delete lbroute.", "Build filter for the request.\n\n@param layerFilter layer filter\n@param featureIds features to include in report (null for all)\n@return filter\n@throws GeomajasException filter could not be parsed/created", "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list", "Import user from file.", "The method determines if the type can be resolved and if not, will try to guess the qualified name using the information from the imports.", "Use this API to update nslimitselector resources.", "add a foreign key field" ]
private void init() { logger.info("metadata init()."); writeLock.lock(); try { // Required keys initCache(CLUSTER_KEY); // If stores definition storage engine is not null, initialize metadata // Add the mapping from key to the storage engine used if(this.storeDefinitionsStorageEngine != null) { initStoreDefinitions(null); } else { initCache(STORES_KEY); } // Initialize system store in the metadata cache initSystemCache(); initSystemRoutingStrategies(getCluster()); // Initialize with default if not present initCache(SLOP_STREAMING_ENABLED_KEY, true); initCache(PARTITION_STREAMING_ENABLED_KEY, true); initCache(READONLY_FETCH_ENABLED_KEY, true); initCache(QUOTA_ENFORCEMENT_ENABLED_KEY, true); initCache(REBALANCING_STEAL_INFO, new RebalancerState(new ArrayList<RebalanceTaskInfo>())); initCache(SERVER_STATE_KEY, VoldemortState.NORMAL_SERVER.toString()); initCache(REBALANCING_SOURCE_CLUSTER_XML, null); initCache(REBALANCING_SOURCE_STORES_XML, null); } finally { writeLock.unlock(); } }
[ "Initializes the metadataCache for MetadataStore" ]
[ "Provides a reverse view on the given list which is especially useful to traverse a list backwards in a for-each\nloop. The list itself is not modified by calling this method.\n\n@param list\nthe list whose elements should be traversed in reverse. May not be <code>null</code>.\n@return a list with the same elements as the given list, in reverse", "Returns the value that has to be set for the dynamic attribute.\n\n@param file the file where the current content is stored\n@param value the content value that is represented by the attribute\n@param attributeName the attribute's name\n@param editedLocalEntity the entities that where edited last\n@return the value that has to be set for the dynamic attribute.", "Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.\n\nUse as follows:<p>\nFuture&lt;Connection&gt; result = pool.getAsyncConnection();<p>\n... do something else in your application here ...<p>\nConnection connection = result.get(); // get the connection<p>\n\n@return A Future task returning a connection.", "Extract where the destination is reshaped to match the extracted region\n@param src The original matrix which is to be copied. Not modified.\n@param srcX0 Start column.\n@param srcX1 Stop column+1.\n@param srcY0 Start row.\n@param srcY1 Stop row+1.\n@param dst Where the submatrix are stored. Modified.", "The handling method.", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "Layout children inside the layout container", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields" ]
public final void save(final PrintJobStatusExtImpl entry) { getSession().merge(entry); getSession().flush(); getSession().evict(entry); }
[ "Save Job Record.\n\n@param entry the entry" ]
[ "Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.", "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException", "Converts a date to an instance date bean.\n@return the instance date bean.", "Use this API to delete sslcipher of given name.", "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param ifNoneMatch\nETag from a previous request. A 304 will be returned if this\nmatches the current ETag (optional)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object", "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Returns an English label for a given datatype.\n\n@param datatype\nthe datatype to label\n@return the label", "Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.\nImportDeclarationFilter of the Linker.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder" ]
public boolean isUpToDate(final DbArtifact artifact) { final List<String> versions = repoHandler.getArtifactVersions(artifact); final String currentVersion = artifact.getVersion(); final String lastDevVersion = getLastVersion(versions); final String lastReleaseVersion = getLastRelease(versions); if(lastDevVersion == null || lastReleaseVersion == null) { // Plain Text comparison against version "strings" for(final String version: versions){ if(version.compareTo(currentVersion) > 0){ return false; } } return true; } else { return currentVersion.equals(lastDevVersion) || currentVersion.equals(lastReleaseVersion); } }
[ "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean" ]
[ "Calculates the Black-Scholes option value of an atm call option.\n\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param forward The forward, i.e., the expectation of the index under the measure associated with payoff unit.\n@param payoffUnit The payoff unit, i.e., the discount factor or the anuity associated with the payoff.\n@return Returns the value of a European at-the-money call option under the Black-Scholes model", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Register the given mbean with the platform mbean server\n\n@param mbean The mbean to register\n@param name The name to register under", "Shutdown the server\n\n@throws Exception exception", "create an instance from the className\n@param <E> class of object\n@param className full class name\n@return an object or null if className is null", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field.", "Gets the positions.\n\n@return the positions", "Description accessor provided for JSON serialization only." ]
public static List<DockerImage> getDockerImagesFromAgents(final int buildInfoId, TaskListener listener) throws IOException, InterruptedException { List<DockerImage> dockerImages = new ArrayList<DockerImage>(); // Collect images from the master: dockerImages.addAll(getAndDiscardImagesByBuildId(buildInfoId)); // Collect images from all the agents: List<Node> nodes = Jenkins.getInstance().getNodes(); for (Node node : nodes) { if (node == null || node.getChannel() == null) { continue; } try { List<DockerImage> partialDockerImages = node.getChannel().call(new MasterToSlaveCallable<List<DockerImage>, IOException>() { public List<DockerImage> call() throws IOException { List<DockerImage> dockerImages = new ArrayList<DockerImage>(); dockerImages.addAll(getAndDiscardImagesByBuildId(buildInfoId)); return dockerImages; } }); dockerImages.addAll(partialDockerImages); } catch (Exception e) { listener.getLogger().println("Could not collect docker images from Jenkins node '" + node.getDisplayName() + "' due to: " + e.getMessage()); } } return dockerImages; }
[ "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" ]
[ "Returns a PreparedStatementCreator that returns a page of the underlying\nresult set.\n\n@param dialect\nDatabase dialect to use.\n@param limit\nMaximum number of rows to return.\n@param offset\nIndex of the first row to return.", "Adds the position.\n\n@param position the position", "This function is responsible for starting the actual async rebalance\noperation. This is run if this node is the stealer node\n\n<br>\n\nWe also assume that the check that this server is in rebalancing state\nhas been done at a higher level\n\n@param stealInfo Partition info to steal\n@return Returns a id identifying the async operation", "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", "We add typeRefs without Nodes on the fly, so we should remove them before relinking.", "Adds OPT_Z | OPT_ZONE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a class is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeHardcodedResultsFrom(Configuration)}.\n\n@param otherConfiguration - Configuration to merge hardcoded results with.", "Extracts a house holder vector from the rows of A and stores it in u\n@param A Complex matrix with householder vectors stored in the upper right triangle\n@param row Row in A\n@param col0 first row in A (implicitly assumed to be r + i0)\n@param col1 last row +1 in A\n@param u Output array storage\n@param offsetU first index in U", "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong" ]
private void setTableAliasForPath(String aPath, List hintClasses, TableAlias anAlias) { m_pathToAlias.put(buildAliasKey(aPath, hintClasses), anAlias); }
[ "Set the TableAlias for aPath\n@param aPath\n@param hintClasses\n@param TableAlias" ]
[ "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Calculate Euclidean distance between two points.\n\n@param anotherPoint Point to calculate distance to.\n@return Euclidean distance between this point and anotherPoint points.", "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise", "Dumps a single material property to stdout.\n\n@param property the property", "Process the graphical indicator data.", "Removes the given entity from the inverse associations it manages.", "Search down all extent classes and return max of all found\nPK values.", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance" ]
protected Query buildPrefetchQuery(Collection ids) { CollectionDescriptor cds = getCollectionDescriptor(); QueryByCriteria query = buildPrefetchQuery(ids, cds.getForeignKeyFieldDescriptors(getItemClassDescriptor())); // check if collection must be ordered if (!cds.getOrderBy().isEmpty()) { Iterator iter = cds.getOrderBy().iterator(); while (iter.hasNext()) { query.addOrderBy((FieldHelper) iter.next()); } } return query; }
[ "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side" ]
[ "Obtains a Julian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other.", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Use this API to fetch all the Interface resources that are configured on netscaler.", "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", "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", "Registers Jersey HeaderDelegateProviders for the specified TinyTypes.\n\n@param head a TinyType\n@param tail other TinyTypes\n@throws IllegalArgumentException when a non-TinyType is given", "Returns code number of Task field supplied.\n\n@param field - name\n@return - code no" ]
public void recordResourceRequestTimeUs(SocketDestination dest, long resourceRequestTimeUs) { if(dest != null) { getOrCreateNodeStats(dest).recordResourceRequestTimeUs(null, resourceRequestTimeUs); recordResourceRequestTimeUs(null, resourceRequestTimeUs); } else { this.resourceRequestTimeRequestCounter.addRequest(resourceRequestTimeUs * Time.NS_PER_US); } }
[ "Record the resource request wait time in us\n\n@param dest Destination of the socket for which the resource was\nrequested. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param resourceRequestTimeUs The number of us to wait before getting a\nsocket" ]
[ "Method used to instantiate the appropriate input stream reader,\na standard one, or one which can deal with \"encrypted\" data.\n\n@param directory directory entry\n@param name file name\n@return new input stream\n@throws IOException", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "If there is a zero on the diagonal element, the off diagonal element needs pushed\noff so that all the algorithms assumptions are two and so that it can split the matrix.", "Get points after extract boundary.\n\n@param fastBitmap Image to be processed.\n@return List of points.", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Checks the preconditions for creating a new Truncate processor.\n\n@param maxSize\nthe maximum size of the String\n@param suffix\nthe String to append if the input is truncated (e.g. \"...\")\n@throws IllegalArgumentException\nif {@code maxSize <= 0}\n@throws NullPointerException\nif suffix is null", "Select a List of values from a Matcher using a Collection\nto identify the indices to be selected.\n\n@param self a Matcher\n@param indices a Collection of indices\n@return a String of the values at the given indices\n@since 1.6.0", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border." ]
public Scale getNearestScale( final ZoomLevels zoomLevels, final double tolerance, final ZoomLevelSnapStrategy zoomLevelSnapStrategy, final boolean geodetic, final Rectangle paintArea, final double dpi) { final Scale scale = getScale(paintArea, dpi); final Scale correctedScale; final double scaleRatio; if (geodetic) { final double currentScaleDenominator = scale.getGeodeticDenominator( getProjection(), dpi, getCenter()); scaleRatio = scale.getDenominator(dpi) / currentScaleDenominator; correctedScale = scale.toResolution(scale.getResolution() / scaleRatio); } else { scaleRatio = 1; correctedScale = scale; } DistanceUnit unit = DistanceUnit.fromProjection(getProjection()); final ZoomLevelSnapStrategy.SearchResult result = zoomLevelSnapStrategy.search( correctedScale, tolerance, zoomLevels); final Scale newScale; if (geodetic) { newScale = new Scale( result.getScale(unit).getDenominator(PDF_DPI) * scaleRatio, getProjection(), dpi); } else { newScale = result.getScale(unit); } return newScale; }
[ "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance the tolerance to use when considering if two values are equal. For example if\n12.0 == 12.001. The tolerance is a percentage.\n@param zoomLevelSnapStrategy the strategy to use for snapping to the nearest zoom level.\n@param geodetic snap to geodetic scales.\n@param paintArea the paint area of the map.\n@param dpi the DPI." ]
[ "Update the context session to mark a user logged in\n\n@param userIdentifier\nthe user identifier, could be either userId or username", "Unzip a file or a folder\n@param zipFile\n@param unzippedFolder optional, if null the file/folder will be extracted in the same folder as zipFile\n@return", "Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array.", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "returns a comparator that allows to sort a Vector of FieldMappingDecriptors\naccording to their m_Order entries.", "Adds an item to the list box, specifying its direction and an initial\nvalue for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param dir the item's direction\n@param text the text of the item to be added", "Clears all checked widgets in the group", "Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.\n\n@param sr\n@return True case the subscription was confirmed, or False otherwise\n@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException", "add various getAt and setAt methods for primitive arrays\n@param receiver the receiver class\n@param name the name of the method\n@param args the argument classes" ]
private void logMigration(DbMigration migration, boolean wasSuccessful) { BoundStatement boundStatement = logMigrationStatement.bind(wasSuccessful, migration.getVersion(), migration.getScriptName(), migration.getMigrationScript(), new Date()); session.execute(boundStatement); }
[ "Inserts the result of the migration into the migration table\n\n@param migration the migration that was executed\n@param wasSuccessful indicates if the migration was successful or not" ]
[ "Allow the given job type to be executed.\n@param jobName the job name as seen\n@param jobType the job type to allow", "Sets currency symbol.\n\n@param symbol currency symbol", "marks the message as read", "Mark the given TaskItem depends on this taskGroup.\n\n@param dependentTaskItem the task item that depends on this task group\n@return key to be used as parameter to taskResult(string) method to retrieve result of\ninvocation of given task item.", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\n@param filename File name of the attachment\n@param description Description of the attachment\n@return New multipart", "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n@throws IOException I/O Error", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field" ]
public static String buildDynamicCapabilityName(String baseName, String dynamicNameElement) { return buildDynamicCapabilityName(baseName, new String[]{dynamicNameElement}); }
[ "todo remove, here only for binary compatibility of elytron subsystem, drop once it is in." ]
[ "Initializes data structures", "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", "Converts the passed list of inners to unmodifiable map of impls.\n@param innerList list of the inners.\n@return map of the impls", "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset", "Returns a portion of the Bytes object\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)", "Called to execute this action.\n@param actionEvent", "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn", "delete of files more than 1 day old", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value" ]
public void setOffset(float offset, final Axis axis) { if (!equal(mOffset.get(axis), offset)) { mOffset.set(offset, axis); if (mContainer != null) { mContainer.onLayoutChanged(this); } } }
[ "Set the amount of offset between child objects and parent.\n@param axis {@link Axis}\n@param offset" ]
[ "Create an index of base font numbers and their associated base\nfont instances.\n@param data property data", "Convenience method for setting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field to set.\n@param value\nValue to which to set the field.", "Returns the adapter position of the Parent associated with this ParentViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "Check whether the delegate type implements or extends all decorated types.\n\n@param decorator\n@throws DefinitionException If the delegate type doesn't implement or extend all decorated types", "Add an element assigned with its score\n@param member the member to add\n@param score the score to assign\n@return <code>true</code> if the set has been changed", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance", "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document" ]
public static String getBuildString() { String versionString = "UNKNOWN"; Properties propeties = getProperites(); if(propeties != null) { versionString = propeties.getProperty("finmath-lib.build"); } return versionString; }
[ "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib." ]
[ "Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "Remember execution time for all executed suites.", "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", "Handle value change event on the individual dates list.\n@param event the change event.", "Collect the URIs of resources, that are referenced by the given description.\n@return the list of referenced URIs. Never <code>null</code>.", "Accessor method used to retrieve a String object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Creates a list of placeholders for use in a PreparedStatement\n\n@param length number of placeholders\n@return String of placeholders, seperated by comma" ]
public static <T> DatabaseTableConfig<T> fromReader(BufferedReader reader) throws SQLException { DatabaseTableConfig<T> config = new DatabaseTableConfig<T>(); boolean anything = false; while (true) { String line; try { line = reader.readLine(); } catch (IOException e) { throw SqlExceptionUtil.create("Could not read DatabaseTableConfig from stream", e); } if (line == null) { break; } // we do this so we can support multiple class configs per file if (line.equals(CONFIG_FILE_END_MARKER)) { break; } // we do this so we can support multiple class configs per file if (line.equals(CONFIG_FILE_FIELDS_START)) { readFields(reader, config); continue; } // skip empty lines or comments if (line.length() == 0 || line.startsWith("#") || line.equals(CONFIG_FILE_START_MARKER)) { continue; } String[] parts = line.split("=", -2); if (parts.length != 2) { throw new SQLException("DatabaseTableConfig reading from stream cannot parse line: " + line); } readTableField(config, parts[0], parts[1]); anything = true; } // if we got any config lines then we return the config if (anything) { return config; } else { // otherwise we return null for none return null; } }
[ "Load a table configuration in from a text-file reader.\n\n@return A config if any of the fields were set otherwise null if we reach EOF." ]
[ "Use this API to update cachecontentgroup.", "Add a content modification.\n\n@param modification the content modification", "Has to be called when the scenario is finished in order to execute after methods.", "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "Calculate a shift value that can be used to create a power-of-two value between\nthe specified maximum and minimum values.\n@param minimumValue the minimum value\n@param maximumValue the maximum value\n@return the calculated shift (use {@code 1 << shift} to obtain a value)", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "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", "Converts a List to a Map using the elements of the nameMapping array as the keys of the Map.\n\n@param destinationMap\nthe destination Map (which is cleared before it's populated)\n@param nameMapping\nthe keys of the Map (corresponding with the elements in the sourceList). Cannot contain duplicates.\n@param sourceList\nthe List to convert\n@param <T>\nthe type of the values in the map\n@throws NullPointerException\nif destinationMap, nameMapping or sourceList are null\n@throws SuperCsvException\nif nameMapping and sourceList are not the same size" ]
public void resolveLazyCrossReferences(final CancelIndicator mon) { final CancelIndicator monitor = mon == null ? CancelIndicator.NullImpl : mon; TreeIterator<Object> iterator = EcoreUtil.getAllContents(this, true); while (iterator.hasNext()) { operationCanceledManager.checkCanceled(monitor); InternalEObject source = (InternalEObject) iterator.next(); EStructuralFeature[] eStructuralFeatures = ((EClassImpl.FeatureSubsetSupplier) source.eClass() .getEAllStructuralFeatures()).crossReferences(); if (eStructuralFeatures != null) { for (EStructuralFeature crossRef : eStructuralFeatures) { operationCanceledManager.checkCanceled(monitor); resolveLazyCrossReference(source, crossRef); } } } }
[ "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution." ]
[ "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "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", "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "note this string is used by hashCode", "Record the resource request wait time in us\n\n@param dest Destination of the socket for which the resource was\nrequested. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param resourceRequestTimeUs The number of us to wait before getting a\nsocket", "Deletes the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "Rebuild logging systems with updated mode\n@param newMode log mode", "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." ]
public static boolean isClassClassNodeWrappingConcreteType(ClassNode classNode) { GenericsType[] genericsTypes = classNode.getGenericsTypes(); return ClassHelper.CLASS_Type.equals(classNode) && classNode.isUsingGenerics() && genericsTypes!=null && !genericsTypes[0].isPlaceholder() && !genericsTypes[0].isWildcard(); }
[ "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a class node to be tested\n@return true if it is the class node for Class and its generic type is a real class" ]
[ "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Assign a new value to this field.\n@param numStrings - number of strings\n@param newValues - the new strings", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException", "Sets the request body to the contents of a String.\n\n<p>If the contents of the body are large, then it may be more efficient to use an {@link InputStream} instead of\na String. Using a String requires that the entire body be in memory before sending the request.</p>\n\n@param body a String containing the contents of the body.", "generate a message for loglevel WARN\n\n@param pObject the message Object", "Save page to log\n\n@return address of this page after save", "End building the script, adding a return value statement\n@param config the configuration for the script to build\n@param value the value to return\n@return the new {@link LuaScript} instance", "Gets an item that was shared with a shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@return info about the shared item." ]
private void setExpressionForPrecalculatedTotalValue( DJCrosstabColumn[] auxCols, DJCrosstabRow[] auxRows, JRDesignExpression measureExp, DJCrosstabMeasure djmeasure, DJCrosstabColumn crosstabColumn, DJCrosstabRow crosstabRow, String meausrePrefix) { String rowValuesExp = "new Object[]{"; String rowPropsExp = "new String[]{"; for (int i = 0; i < auxRows.length; i++) { if (auxRows[i].getProperty()== null) continue; rowValuesExp += "$V{" + auxRows[i].getProperty().getProperty() +"}"; rowPropsExp += "\"" + auxRows[i].getProperty().getProperty() +"\""; if (i+1<auxRows.length && auxRows[i+1].getProperty()!= null){ rowValuesExp += ", "; rowPropsExp += ", "; } } rowValuesExp += "}"; rowPropsExp += "}"; String colValuesExp = "new Object[]{"; String colPropsExp = "new String[]{"; for (int i = 0; i < auxCols.length; i++) { if (auxCols[i].getProperty()== null) continue; colValuesExp += "$V{" + auxCols[i].getProperty().getProperty() +"}"; colPropsExp += "\"" + auxCols[i].getProperty().getProperty() +"\""; if (i+1<auxCols.length && auxCols[i+1].getProperty()!= null){ colValuesExp += ", "; colPropsExp += ", "; } } colValuesExp += "}"; colPropsExp += "}"; String measureProperty = meausrePrefix + djmeasure.getProperty().getProperty(); String expText = "((("+DJCRosstabMeasurePrecalculatedTotalProvider.class.getName()+")$P{crosstab-measure__"+measureProperty+"_totalProvider}).getValueFor( " + colPropsExp +", " + colValuesExp +", " + rowPropsExp + ", " + rowValuesExp +" ))"; if (djmeasure.getValueFormatter() != null){ String fieldsMap = ExpressionUtils.getTextForFieldsFromScriptlet(); String parametersMap = ExpressionUtils.getTextForParametersFromScriptlet(); String variablesMap = ExpressionUtils.getTextForVariablesFromScriptlet(); String stringExpression = "((("+DJValueFormatter.class.getName()+")$P{crosstab-measure__"+measureProperty+"_vf}).evaluate( " + "("+expText+"), " + fieldsMap +", " + variablesMap + ", " + parametersMap +" ))"; measureExp.setText(stringExpression); measureExp.setValueClassName(djmeasure.getValueFormatter().getClassName()); } else { // String expText = "((("+DJCRosstabMeasurePrecalculatedTotalProvider.class.getName()+")$P{crosstab-measure__"+djmeasure.getProperty().getProperty()+"_totalProvider}).getValueFor( " // + colPropsExp +", " // + colValuesExp +", " // + rowPropsExp // + ", " // + rowValuesExp // +" ))"; // log.debug("text for crosstab total provider is: " + expText); measureExp.setText(expText); // measureExp.setValueClassName(djmeasure.getValueFormatter().getClassName()); String valueClassNameForOperation = ExpressionUtils.getValueClassNameForOperation(djmeasure.getOperation(),djmeasure.getProperty()); measureExp.setValueClassName(valueClassNameForOperation); } }
[ "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" ]
[ "We need to distinguish the case where we're newly available and the case\nwhere we're already available. So we check the node status before we\nupdate it and return it to the caller.\n\n@param isAvailable True to set to available, false to make unavailable\n\n@return Previous value of isAvailable", "Use this API to update clusterinstance.", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "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", "Given OGC PropertyIsLike Filter information, construct an SQL-compatible 'like' pattern.\n\nSQL % --> match any number of characters _ --> match a single character\n\nNOTE; the SQL command is 'string LIKE pattern [ESCAPE escape-character]' We could re-define the escape character,\nbut I'm not doing to do that in this code since some databases will not handle this case.\n\nMethod: 1.\n\nExamples: ( escape ='!', multi='*', single='.' ) broadway* -> 'broadway%' broad_ay -> 'broad_ay' broadway ->\n'broadway'\n\nbroadway!* -> 'broadway*' (* has no significance and is escaped) can't -> 'can''t' ( ' escaped for SQL\ncompliance)\n\n\nNOTE: we also handle \"'\" characters as special because they are end-of-string characters. SQL will convert ' to\n'' (double single quote).\n\nNOTE: we don't handle \"'\" as a 'special' character because it would be too confusing to have a special char as\nanother special char. Using this will throw an error (IllegalArgumentException).\n\n@param escape escape character\n@param multi ?????\n@param single ?????\n@param pattern pattern to match\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "Use this API to fetch statistics of nsacl6_stats resource of given name .", "Throw IllegalArgumentException if the value is null.\n\n@param name the parameter name.\n@param value the value that should not be null.\n@param <T> the value type.\n@throws IllegalArgumentException if value is null." ]
public static ResourceDescriptionResolver getResourceDescriptionResolver(final String... keyPrefix) { StringBuilder prefix = new StringBuilder(SUBSYSTEM_NAME); for (String kp : keyPrefix) { prefix.append('.').append(kp); } return new StandardResourceDescriptionResolver(prefix.toString(), RESOURCE_NAME, LoggingExtension.class.getClassLoader(), true, false) { @Override public String getOperationParameterDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDescription(paramName, locale, bundle); } return super.getOperationParameterDescription(operationName, paramName, locale, bundle); } @Override public String getOperationParameterValueTypeDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle, final String... suffixes) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDescription(paramName, locale, bundle); } return super.getOperationParameterValueTypeDescription(operationName, paramName, locale, bundle, suffixes); } @Override public String getOperationParameterDeprecatedDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDeprecatedDescription(paramName, locale, bundle); } return super.getOperationParameterDeprecatedDescription(operationName, paramName, locale, bundle); } }; }
[ "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver" ]
[ "Executes the query and returns the factory found, if there is only one factory.\nIf multiple factories match the query, one is selected.\n\n@param query the factory query, not null.\n@return the factory found, or null.", "Registers the parameter for the value formatter for the given variable and puts\nit's implementation in the parameters map.\n@param djVariable\n@param variableName", "This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF", "Throws an IllegalStateException when the given value is null.\n@return the value", "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters", "Get the active overrides with parameters and the active server group for a client\n\n@param profileID Id of profile to get configuration for\n@param clientUUID Client Id to export configuration\n@return SingleProfileBackup containing active overrides and active server group\n@throws Exception exception", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object", "Delete an object from the database." ]
public static final String printResourceType(ResourceType value) { return (Integer.toString(value == null ? ResourceType.WORK.getValue() : value.getValue())); }
[ "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value" ]
[ "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor.", "Use this API to delete appfwlearningdata.", "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type", "Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the patch as a {@link JsonPatch}", "Clear JobContext of current thread", "Returns whether or not the host editor service is available\n\n@return\n@throws Exception", "Retrieve the set of start dates represented by this recurrence data.\n\n@return array of start dates", "1-D Integer array to double array.\n\n@param array Integer array.\n@return Double array.", "Print out the template information that the client needs for performing a request.\n\n@param json the writer to write the information to." ]
public String interpolate( String input, RecursionInterceptor recursionInterceptor ) throws InterpolationException { try { return interpolate( input, recursionInterceptor, new HashSet<String>() ); } finally { if ( !cacheAnswers ) { existingAnswers.clear(); } } }
[ "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions don't trigger infinite recursion." ]
[ "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance", "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name .", "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q.", "Validate arguments and state.", "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return the array or null if reading the array fails.", "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one", "Load the available layers.\n\n@param image the installed image\n@param productConfig the product config to establish the identity\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the layers\n@throws IOException" ]
private static Object getParam(final Object param) { final StringBuilder sb = new StringBuilder(); if(param instanceof String){ sb.append("'"); sb.append((String)param); sb.append("'"); } else if(param instanceof Boolean){ sb.append(String.valueOf((Boolean)param)); } else if(param instanceof Integer){ sb.append(String.valueOf((Integer)param)); } else if(param instanceof DBRegExp){ sb.append('/'); sb.append(((DBRegExp) param).toString()); sb.append('/'); } return sb.toString(); }
[ "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object" ]
[ "Cleans up a extension module's subsystems from the resource registration model.\n\n@param rootResource the model root resource\n@param moduleName the name of the extension's module. Cannot be {@code null}\n@throws IllegalStateException if the extension still has subsystems present in {@code rootResource} or its children", "Use this API to fetch all the auditmessages resources that are configured on netscaler.", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "Creates a bridge accessory, capable of holding multiple child accessories. This has the\nadvantage over multiple standalone accessories of only requiring a single pairing from iOS for\nthe bridge.\n\n@param authInfo authentication information for this accessory. These values should be persisted\nand re-supplied on re-start of your application.\n@param label label for the bridge. This will show in iOS during pairing.\n@param manufacturer manufacturer of the bridge. This information is exposed to iOS for unknown\npurposes.\n@param model model of the bridge. This is also exposed to iOS for unknown purposes.\n@param serialNumber serial number of the bridge. Also exposed. Purposes also unknown.\n@return the bridge, from which you can {@link HomekitRoot#addAccessory add accessories} and\nthen {@link HomekitRoot#start start} handling requests.\n@throws IOException when mDNS cannot connect to the network", "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value", "Add a metadata profile.\n@see #loadProfile", "Reads baseline values for the current task.\n\n@param xmlTask MSPDI task instance\n@param mpxjTask MPXJ task instance\n@param durationFormat duration format to use", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from." ]
public static Element getChild(Element element, String name) { return (Element) element.getElementsByTagName(name).item(0); }
[ "Get the first child element with the given name.\n\n@param element\nThe parent element\n@param name\nThe child element name\n@return The child element or null" ]
[ "main class entry point.", "Emit information about a single suite and all of its tests.", "If the resource has ordered child types, those child types will be stored in the attachment. If there are no\nordered child types, this method is a no-op.\n\n@param resourceAddress the address of the resource\n@param resource the resource which may or may not have ordered children.", "Extracts the value of this bit flag from the supplied byte array\nand sets the value in the supplied container.\n\n@param container container\n@param data byte array", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that represents this reference", "This method lists all tasks defined in the file in a hierarchical\nformat, reflecting the parent-child relationships between them.\n\n@param file MPX file", "Use this API to add dnstxtrec.", "Returns a new index creation statement using the session's keyspace.\n\n@param keyspace the keyspace name\n@param table the table name\n@param name the index name\n@return a new index creation statement", "Returns all the elements in the sorted set with a score in the given range.\nIn contrary to the default ordering of sorted sets, for this command the elements are considered to be ordered\nfrom high to low scores.\nThe elements having the same score are returned in reverse lexicographical order.\n@param scoreRange\n@return elements in the specified score range" ]
public static base_responses add(nitro_service client, dnsview resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsview addresources[] = new dnsview[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsview(); addresources[i].viewname = resources[i].viewname; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add dnsview resources." ]
[ "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Returns the value of the element with the minimum value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Use this API to update bridgetable.", "Boyer Moore scan that proceeds backwards from the end of the file looking for ENDSIG\n@throws NonScannableZipException", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)", "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with differences", "Returns the start of this resource assignment.\n\n@return start date", "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", "Determines whether the current object on the specified level has a specific property, and if so, processes the\ntemplate\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\"" ]
public void setStartTime(final Date date) { if (!Objects.equals(m_model.getStart(), date)) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setStart(date); setPatternDefaultValues(date); valueChanged(); } }); } }
[ "Set the start time.\n@param date the start time to set." ]
[ "Gets the visibility cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #VISIBILITY_CACHE_WEIGHT}\nif it is set, else the value of the default value\n{@value #VISIBILITY_CACHE_WEIGHT_DEFAULT}", "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Constructs a Google APIs HTTP client with the associated credentials.", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.", "Creates the DAO if we have config information cached and caches the DAO.", "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException", "Returns a list of bindings where provided queue is the destination.\n\n@param vhost vhost of the exchange\n@param queue destination queue name\n@return list of bindings" ]
public boolean detectBlackBerryTouch() { if (detectBlackBerry() && ((userAgent.indexOf(deviceBBStorm) != -1) || (userAgent.indexOf(deviceBBTorch) != -1) || (userAgent.indexOf(deviceBBBoldTouch) != -1) || (userAgent.indexOf(deviceBBCurveTouch) != -1))) { return true; } return false; }
[ "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device" ]
[ "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "Process field aliases.", "Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance", "Moves a calendar to the last named day of the month.\n\n@param calendar current date", "Returns the version of Jenkins Artifactory Plugin or empty string if not found\n\n@return the version of Jenkins Artifactory Plugin or empty string if not found", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request", "Read the version number.\n\n@param is input stream" ]
public static java.sql.Time getTime(Object value) { try { return toTime(value); } catch (ParseException pe) { pe.printStackTrace(); return null; } }
[ "Convert an Object to a Time, without an Exception" ]
[ "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Starts the animation with the given index.\n@param animIndex 0-based index of {@link GVRAnimator} to start;\n@see GVRAvatar#stop()\n@see #start(String)", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "Aggregate results to see the status code distribution with target hosts.\n\n@return the aggregateResultMap", "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map.", "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field." ]
public void addColumn(ColumnDef columnDef) { columnDef.setOwner(this); _columns.put(columnDef.getName(), columnDef); }
[ "Adds a column to this table definition.\n\n@param columnDef The new column" ]
[ "Delete a file ignoring failures.\n\n@param file file to delete", "Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException", "Gets the time warp.\n\n@return the time warp", "Invokes the method on the class of the passed instance, not the declaring\nclass. Useful with proxies\n\n@param instance The instance to invoke\n@param manager The Bean manager\n@return A reference to the instance", "Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'\nwith the value escaped if necessary.", "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale" ]
public CollectionDescriptorDef getCollection(String name) { CollectionDescriptorDef collDef = null; for (Iterator it = _collections.iterator(); it.hasNext(); ) { collDef = (CollectionDescriptorDef)it.next(); if (collDef.getName().equals(name)) { return collDef; } } return null; }
[ "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there is no such collection" ]
[ "Fills the week panel with checkboxes.", "Extract the generic return type from the given method.\n@param method the method to check the return type for\n@param source the source class/interface defining the generic parameter types\n@param typeIndex the index of the type (e.g. 0 for Collections,\n0 for Map keys, 1 for Map values)\n@param nestingLevel the nesting level of the target type\n@return the generic type, or {@code null} if none", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name", "Returns the end time of the event.\n@return the end time of the event.", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Use this API to fetch nssimpleacl resources of given names .", "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable.", "Launch Sample Activity residing in the same module" ]
private static Class<?> extractClass(Class<?> ownerClass, Type arg) { if (arg instanceof ParameterizedType) { return extractClass(ownerClass, ((ParameterizedType) arg).getRawType()); } else if (arg instanceof GenericArrayType) { GenericArrayType gat = (GenericArrayType) arg; Type gt = gat.getGenericComponentType(); Class<?> componentClass = extractClass(ownerClass, gt); return Array.newInstance(componentClass, 0).getClass(); } else if (arg instanceof TypeVariable) { TypeVariable tv = (TypeVariable) arg; arg = getTypeVariableMap(ownerClass).get(tv); if (arg == null) { arg = extractBoundForTypeVariable(tv); if (arg instanceof ParameterizedType) { return extractClass(ownerClass, ((ParameterizedType) arg).getRawType()); } } else { return extractClass(ownerClass, arg); } } return (arg instanceof Class ? (Class) arg : Object.class); }
[ "Extract a Class from the given Type." ]
[ "Use this API to update snmpuser resources.", "Adds a new point.\n\n@param point a point\n@return this for chaining", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "a small helper to set the text color to a textView null save\n\n@param textView\n@param colorDefault", "Fetch all relevant attributes from the backing store and copy instances which are not present in the local bean store.", "As we merge several operations into one operation, we need to be sure the write concern applied to the aggregated\noperation respects all the requirements expressed for each separate operation.\n\nThus, for each parameter of the write concern, we keep the stricter one for the resulting merged write concern.", "Shows the Loader component", "Use this API to fetch all the systemsession resources that are configured on netscaler.", "Bean types of a session bean." ]
public static authenticationradiusaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ authenticationradiusaction obj = new authenticationradiusaction(); options option = new options(); option.set_filter(filter); authenticationradiusaction[] response = (authenticationradiusaction[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object." ]
[ "The setter for setting configuration file. It will convert the value to a URI.\n\n@param configurationFiles the configuration file map.", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Legacy conversion.\n@param map\n@return Properties", "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Return a set of all the Declaration matching the DeclarationFilter of the.\nLinker.\n\n@return a set of all the Declaration matching the DeclarationFilter of the\nLinker.", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}" ]
private String getPathSelectString() { String queryString = "SELECT " + Constants.DB_TABLE_REQUEST_RESPONSE + "." + Constants.GENERIC_CLIENT_UUID + "," + Constants.DB_TABLE_PATH + "." + Constants.GENERIC_ID + "," + Constants.PATH_PROFILE_PATHNAME + "," + Constants.PATH_PROFILE_ACTUAL_PATH + "," + Constants.PATH_PROFILE_BODY_FILTER + "," + Constants.PATH_PROFILE_GROUP_IDS + "," + Constants.DB_TABLE_PATH + "." + Constants.PATH_PROFILE_PROFILE_ID + "," + Constants.PATH_PROFILE_PATH_ORDER + "," + Constants.REQUEST_RESPONSE_REPEAT_NUMBER + "," + Constants.REQUEST_RESPONSE_REQUEST_ENABLED + "," + Constants.REQUEST_RESPONSE_RESPONSE_ENABLED + "," + Constants.PATH_PROFILE_CONTENT_TYPE + "," + Constants.PATH_PROFILE_REQUEST_TYPE + "," + Constants.PATH_PROFILE_GLOBAL + " FROM " + Constants.DB_TABLE_PATH + " JOIN " + Constants.DB_TABLE_REQUEST_RESPONSE + " ON " + Constants.DB_TABLE_PATH + "." + Constants.GENERIC_ID + "=" + Constants.DB_TABLE_REQUEST_RESPONSE + "." + Constants.REQUEST_RESPONSE_PATH_ID + " AND " + Constants.DB_TABLE_REQUEST_RESPONSE + "." + Constants.GENERIC_CLIENT_UUID + " = ?"; return queryString; }
[ "Generate a path select string\n\n@return Select query string" ]
[ "Creates an object from the given JSON data.\n\n@param data the JSON data\n@param clazz the class object for the content of the JSON data\n@param <T> the type of the class object extending {@link InterconnectObject}\n@return the object contained in the given JSON data\n@throws JsonParseException if a the JSON data could not be parsed\n@throws JsonMappingException if the mapping of the JSON data to the IVO failed\n@throws IOException if an I/O related problem occurred", "Try to reconnect to a started server.", "Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation", "Consumes the next character in the request, checking that it matches the\nexpected one. This method should be used when the", "Return the content from an URL in byte array\n\n@param stringUrl URL to get\n@return byte array\n@throws IOException I/O error happened", "Encrypt a string with AES-128 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression", "Use this API to fetch all the cacheobject resources that are configured on netscaler.\nThis uses cacheobject_args which is a way to provide additional arguments while fetching the resources.", "Use this API to flush nssimpleacl." ]
public Task<Long> count() { return dispatcher.dispatchTask(new Callable<Long>() { @Override public Long call() { return proxy.count(); } }); }
[ "Counts the number of documents in the collection.\n\n@return a task containing the number of documents in the collection" ]
[ "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Get a list of referrers from a given domain to a user's 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 domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\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.getPhotostreamReferrers.html\"", "Extract definition records from the table and divide into groups.", "Unpause the server, allowing it to resume normal operations", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "Performs a null edit on an entity. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param currentDocument\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "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", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance" ]
String buildProjectEndpoint(DatastoreOptions options) { if (options.getProjectEndpoint() != null) { return options.getProjectEndpoint(); } // DatastoreOptions ensures either project endpoint or project ID is set. String projectId = checkNotNull(options.getProjectId()); if (options.getHost() != null) { return validateUrl(String.format("https://%s/%s/projects/%s", options.getHost(), VERSION, projectId)); } else if (options.getLocalHost() != null) { return validateUrl(String.format("http://%s/%s/projects/%s", options.getLocalHost(), VERSION, projectId)); } return validateUrl(String.format("%s/%s/projects/%s", DEFAULT_HOST, VERSION, projectId)); }
[ "Build a valid datastore URL." ]
[ "Post a license to the server\n\n@param license\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "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", "Gets Widget bounds height\n@return height", "Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Get the maximum width and height of the labels.\n\n@param settings Parameters for rendering the scalebar.", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Return the lines of a CharSequence as a List of String.\n\n@param self a CharSequence object\n@return a list of lines\n@throws java.io.IOException if an error occurs\n@since 1.8.2" ]
public static String getStatementUri(Statement statement) { int i = statement.getStatementId().indexOf('$') + 1; return PREFIX_WIKIDATA_STATEMENT + statement.getSubject().getId() + "-" + statement.getStatementId().substring(i); }
[ "Get the URI for the given statement.\n\n@param statement\nthe statement for which to create a URI\n@return the URI" ]
[ "Update artifact download url of an artifact\n\n@param gavc String\n@param downLoadUrl String", "Parse work units.\n\n@param value work units value\n@return TimeUnit instance", "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "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.", "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", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Adds new holes to the polygon.\n\n@param holes holes, must be contained in the exterior ring and must not overlap or\nintersect another hole\n@return this for chaining", "Gathers all parameters' annotations for the given method, starting from the third parameter.", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error" ]
@Override public void stop() { synchronized (killHook) { jqmlogger.info("JQM engine " + this.node.getName() + " has received a stop order"); // Kill hook should be removed try { if (!Runtime.getRuntime().removeShutdownHook(killHook)) { jqmlogger.error("The engine could not unregister its shutdown hook"); } } catch (IllegalStateException e) { // This happens if the stop sequence is initiated by the shutdown hook itself. jqmlogger.info("Stop order is due to an admin operation (KILL/INT)"); } } // Stop pollers int pollerCount = pollers.size(); for (QueuePoller p : pollers.values()) { p.stop(); } // Scheduler this.scheduler.stop(); // Jetty is closed automatically when all pollers are down // Wait for the end of the world if (pollerCount > 0) { try { this.ended.acquire(); } catch (InterruptedException e) { jqmlogger.error("interrupted", e); } } // Send a KILL signal to remaining job instances, and wait some more. if (this.getCurrentlyRunningJobCount() > 0) { this.runningJobInstanceManager.killAll(); try { Thread.sleep(10000); } catch (InterruptedException e) { jqmlogger.error("interrupted", e); } } jqmlogger.debug("Stop order was correctly handled. Engine for node " + this.node.getName() + " has stopped."); }
[ "Gracefully stop the engine" ]
[ "Returns the full record for the given webhook.\n\n@param webhook The webhook to get.\n@return Request object", "Get the number of views, comments and favorites on a collection 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 collectionId\n(Required) The id (from the URL!) of the collection to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionStats.htm\"", "Constructs the path from FQCN, validates writability, and creates a writer.", "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "Before closing the PersistenceBroker ensure that the session\ncache is cleared", "Determines whether the current object on the specified level has a specific property, and if so, processes the\ntemplate\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\"", "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", "Checks if we can see any players that are on a different network than the one we chose for the Virtual CDJ.\nIf so, we are not going to be able to communicate with them, and they should all be moved onto a single\nnetwork.\n\n@return the device announcements of any players which are on unreachable networks, or hopefully an empty list\n@throws IllegalStateException if we are not running", "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}" ]
protected boolean isNetworkSection(int networkPrefixLength, boolean withPrefixLength) { int segmentCount = getSegmentCount(); if(segmentCount == 0) { return true; } int bitsPerSegment = getBitsPerSegment(); int prefixedSegmentIndex = getNetworkSegmentIndex(networkPrefixLength, getBytesPerSegment(), bitsPerSegment); if(prefixedSegmentIndex + 1 < segmentCount) { return false; //not the right number of segments } //the segment count matches, now compare the prefixed segment int segPrefLength = getPrefixedSegmentPrefixLength(bitsPerSegment, networkPrefixLength, prefixedSegmentIndex); return !getSegment(segmentCount - 1).isNetworkChangedByPrefix(segPrefLength, withPrefixLength); }
[ "this method is basically checking whether we can return \"this\" for getNetworkSection" ]
[ "Returns the complete property list of a class\n@param c the class\n@return the property list of the class", "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value", "Use this API to fetch responderpolicylabel_responderpolicy_binding resources of given name .", "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", "Returns whether or not the host editor service is available\n\n@return\n@throws Exception", "Retrieve a table by name.\n\n@param name table name\n@return Table instance", "Returns the invocation handler object of the given proxy object.\n\n@param obj The object\n@return The invocation handler if the object is an OJB proxy, or <code>null</code>\notherwise", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "Destroys dependent instance\n\n@param instance\n@return true if the instance was destroyed, false otherwise" ]
public Object toInternal(Attribute<?> attribute) throws GeomajasException { if (attribute instanceof PrimitiveAttribute<?>) { return toPrimitiveObject((PrimitiveAttribute<?>) attribute); } else if (attribute instanceof AssociationAttribute<?>) { return toAssociationObject((AssociationAttribute<?>) attribute); } else { throw new GeomajasException(ExceptionCode.CONVERSION_PROBLEM, attribute); } }
[ "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>." ]
[ "Pretty prints the output of getMapOfContiguousPartitionRunLengths\n\n@param cluster\n@param zoneId\n@return pretty string of contiguous run lengths", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Performs a transpose across block sub-matrices. Reduces\nthe number of cache misses on larger matrices.\n\n*NOTE* If this is beneficial is highly dependent on the computer it is run on. e.g:\n- Q6600 Almost twice as fast as standard.\n- Pentium-M Same speed and some times a bit slower than standard.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified.\n@param blockLength Length of a block.", "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "2-D Perlin noise function.\n\n@param x X Value.\n@param y Y Value.\n@return Returns function's value at point xy.", "Adds title and subtitle to the TitleBand when it applies.\nIf title is not present then subtitle will be ignored" ]
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" ]
[ "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs.", "Creates a favorite widget for a favorite entry.\n\n@param entry the favorite entry\n@return the favorite widget\n\n@throws CmsException if something goes wrong", "Use this API to create ssldhparam.", "Reads all sub-categories below the provided category.\n@return The map from the provided category to it's sub-categories in a {@link CmsJspCategoryAccessBean}.", "Add sub-deployment units to the container\n\n@param bdaMapping", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.\n@param sortParam The request parameter used to send the currently chosen search option.\n@param options The available sort options.\n@param defaultOption The default sort option.\n@return the sort configuration or null, depending on the arguments.", "Use this API to fetch all the Interface resources that are configured on netscaler.", "Checks all data sets in a given record for constraint violations.\n\n@param record\nIIM record (1,2,3, ...) to check\n\n@return list of constraint violations, empty set if IIM file is valid" ]
protected <T> RequestBuilder doPrepareRequestBuilder( ResponseReader responseReader, String methodName, RpcStatsContext statsContext, String requestData, AsyncCallback<T> callback) { RequestBuilder rb = doPrepareRequestBuilderImpl(responseReader, methodName, statsContext, requestData, callback); return rb; }
[ "Configures a RequestBuilder to send an RPC request when the RequestBuilder\nis intended to be returned through the asynchronous proxy interface.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked." ]
[ "Deletes any empty directories under the output directory. These\ndirectories are created by TestNG for its own reports regardless\nof whether those reports are generated. If you are using the\ndefault TestNG reports as well as ReportNG, these directories will\nnot be empty and will be retained. Otherwise they will be removed.\n@param outputDirectory The directory to search for empty directories.", "Returns a list with argument words that are not equal in all cases", "Specifies the timeout for a network request.\n\n@param timeout The timeout for a network request.\n@param unit The time unit of the specified timeout.\n@return This builder instance.", "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.", "Rename a key for all languages.\n@param oldKey the key to rename\n@param newKey the new key name\n@return <code>true</code> if renaming was successful, <code>false</code> otherwise.", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Print the class's operations m", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert." ]
public static final String printPercent(Double value) { return value == null ? null : Double.toString(value.doubleValue() / 100.0); }
[ "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value" ]
[ "Computes an MD4 hash for the password.\n\n@param password the password for which to compute the hash\n@throws NoSuchAlgorithmException\n@throws InvalidKeyException\n\n@return the password hash", "Creates a producer field\n\n@param field The underlying method abstraction\n@param declaringBean The declaring bean abstraction\n@param beanManager the current manager\n@return A producer field", "Create a random permutation of the numbers 0, ..., size - 1.\n\nsee Algorithm P, D.E. Knuth: The Art of Computer Programming, Vol. 2, p. 145", "Runs the currently entered query and displays the results.", "Set the end type as derived from other values.", "Scroll to the specific position\n@param position\n@return the new current item after the scrolling processed.", "Gets the index of a ExpandableWrapper within the helper item list based on\nthe index of the ExpandableWrapper.\n\n@param parentPosition The index of the parent in the list of parents\n@return The index of the parent in the merged list of children and parents", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Prints a report about the statistics stored in the given data object.\n\n@param usageStatistics\nthe statistics object to print\n@param entityLabel\nthe label to use to refer to this kind of entities (\"items\" or\n\"properties\")" ]