query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static dnstxtrec[] get(nitro_service service, dnstxtrec_args args) throws Exception{ dnstxtrec obj = new dnstxtrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.\nThis uses dnstxtrec_args which is a way to provide additional arguments while fetching the resources." ]
[ "Performs a HTTP GET request.\n\n@return Class type of object T (i.e. {@link Response}", "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last).", "Retrieves the amount of time between two date time values. Note that\nthese values are converted into canonical values to remove the\ndate component.\n\n@param start start time\n@param end end time\n@return length of time", "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", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Use this API to disable vserver of given name.", "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", "Set new front facing rotation\n@param rotation", "Map the Primavera UDF to a custom field.\n\n@param fieldType parent object type\n@param dataType UDF data type\n@param name UDF name\n@return FieldType instance" ]
public static void stop(){ //--Close logger isClosed = true; // <- not a thread-safe boolean Thread.yield(); //poor man's synchronization attempt (let everything else log that wants to) Thread.yield(); //--Close Tracks while(depth > 0){ depth -= 1; //(send signal to handlers) handlers.process(null, MessageType.END_TRACK, depth, System.currentTimeMillis()); } //--Shutdown handlers.process(null, MessageType.SHUTDOWN, 0, System.currentTimeMillis()); }
[ "Stop Redwood, closing all tracks and prohibiting future log messages." ]
[ "Add the option specifying if the categories should be displayed collapsed\nwhen the dialog opens.\n\n@see org.opencms.ui.actions.I_CmsADEAction#getParams()", "is there a faster algorithm out there? This one is a bit sluggish", "Use this API to renumber nspbr6 resources.", "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)", "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class.", "This method calculates the absolute number of days between two dates.\nNote that where two date objects are provided that fall on the same\nday, this method will return one not zero. Note also that this method\nassumes that the dates are passed in the correct order, i.e.\nstartDate < endDate.\n\n@param startDate Start date\n@param endDate End date\n@return number of days in the date range", "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects.", "Gets the attributes provided by the processor.\n\n@return the attributes", "Return the map bounds rotated with the set rotation. The bounds are adapted to rounding changes of the\nsize of the set paint area.\n\n@return Rotated bounds." ]
public static <T> NewSessionBean<T> of(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager) { EnhancedAnnotatedType<T> type = beanManager.getServices().get(ClassTransformer.class).getEnhancedAnnotatedType(ejbDescriptor.getBeanClass(), beanManager.getId()); return new NewSessionBean<T>(attributes, type, ejbDescriptor, new StringBeanIdentifier(SessionBeans.createIdentifierForNew(ejbDescriptor)), beanManager); }
[ "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance" ]
[ "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner.", "Checks if the provided artifactQuery is valid\n\n@param artifactQuery ArtifactQuery\n@throws WebApplicationException if the data is corrupted", "Check whether the given class is cache-safe in the given context,\ni.e. whether it is loaded by the given ClassLoader or a parent of it.\n@param clazz the class to analyze\n@param classLoader the ClassLoader to potentially cache metadata in", "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Creates an internal project and repositories such as a token storage.", "Given a layer ID, search for the WMS layer.\n\n@param layerId layer id\n@return WMS layer or null if layer is not a WMS layer" ]
private static Dimension adaptTileDimensions( final Dimension pixels, final int maxWidth, final int maxHeight) { return new Dimension(adaptTileDimension(pixels.width, maxWidth), adaptTileDimension(pixels.height, maxHeight)); }
[ "Adapt the size of the tiles so that we have the same amount of tiles as we would have had with maxWidth\nand maxHeight, but with the smallest tiles as possible." ]
[ "Reads a \"flags\" argument from the request.", "Use this API to fetch all the responderhtmlpage resources that are configured on netscaler.", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "Want to make arbitrary probability queries? Then this is the method for\nyou. Given the filename, it reads it in and breaks it into documents, and\nthen makes a CRFCliqueTree for each document. you can then ask the clique\ntree for marginals and conditional probabilities of almost anything you\nwant.", "Adds a variable to the end of the token list\n@param variable Variable which is to be added\n@return The new Token created around variable", "Removes all children", "Calculate the name of the output value.\n\n@param outputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param outputMapper the name mapper\n@param field the field containing the value", "Sets the bytecode compatibility mode\n\n@param version the bytecode compatibility mode", "Reads the configuration of a field facet.\n@param pathPrefix The XML Path that leads to the field facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured." ]
public static Processor<DataSinkTask> sink(DataSink dataSink, int parallelism, String description, UserConfig taskConf, ActorSystem system) { io.gearpump.streaming.Processor<DataSinkTask> p = DataSinkProcessor.apply(dataSink, parallelism, description, taskConf, system); return new Processor(p); }
[ "Creates a Sink Processor\n\n@param dataSink the data sink itself\n@param parallelism the parallelism of this processor\n@param description the description for this processor\n@param taskConf the configuration for this processor\n@param system actor system\n@return the new created sink processor" ]
[ "Deserializes a variable, NOT checking whether the datatype is custom\n@param s\n@param variableType\n@return", "Reads a UUID from a JSON object.\n\nReturns null if the JSON value for the given key is not present or not a valid UUID\n\n@param obj the JSON object\n@param key the JSON key\n\n@return the UUID", "Creates a tar file entry with defaults parameters.\n@param fileName the entry name\n@return file entry with reasonable defaults", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Assign a new value to this field.\n@param numStrings - number of strings\n@param newValues - the new strings", "Part of the endOfRun process that needs the database. May be deferred if the database is not available.", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "Create a new instance of a single input function from an operator character\n@param op Which operation\n@param input Input variable\n@return Resulting operation" ]
public synchronized boolean removeTaskFromWaitQ(ParallelTask taskTobeRemoved) { boolean removed = false; for (ParallelTask task : waitQ) { if (task.getTaskId() == taskTobeRemoved.getTaskId()) { task.setState(ParallelTaskState.COMPLETED_WITH_ERROR); task.getTaskErrorMetas().add( new TaskErrorMeta(TaskErrorType.USER_CANCELED, "NA")); logger.info( "task {} removed from wait q. This task has been marked as USER CANCELED.", task.getTaskId()); removed = true; } } return removed; }
[ "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful" ]
[ "Call the Yahoo! PlaceFinder service for a result.\n\n@param q\nsearch string\n@param maxRows\nmax number of rows in result, or 0 for all\n@param locale\nlocale for strings\n@return list of found results\n@throws Exception\noops\n@see <a\nhref=\"http://developer.yahoo.com/boss/geo/docs/free_YQL.html#table_pf\">Yahoo!\nBoss Geo PlaceFinder</a>", "A specific, existing custom field can be deleted by making a DELETE request on the URL for that custom field.\n\nReturns an empty data record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Return the \"common\" configuration set name. By default it is \"common\"\n@return the \"common\" conf set name", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "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", "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler.", "Convert moneyness given as difference to par swap rate to moneyness in bp.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness as offset.\n@return Moneyness in bp.", "Check if the right-hand side type may be assigned to the left-hand side\ntype following the Java generics rules.\n@param lhsType the target type\n@param rhsType the value type that should be assigned to the target type\n@return true if rhs is assignable to lhs", "Decide whether failure should trigger a rollback.\n\n@param cause\nthe cause of the failure, or {@code null} if failure is not\nthe result of catching a throwable\n@return the result action" ]
private Style getRowTotalStyle(DJCrosstabRow crosstabRow) { return crosstabRow.getTotalStyle() == null ? this.djcross.getRowTotalStyle(): crosstabRow.getTotalStyle(); }
[ "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentParams()\";\nString variablesMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentVariables()\";\n\nString evalMethodParams = fieldsMap +\", \" + variablesMap + \", \" + parametersMap + \", \" + columExpression;\n\nString text = \"((\"+ConditionStyleExpression.class.getName()+\")$P{\" + JRParameter.REPORT_PARAMETERS_MAP + \"}.get(\\\"\"+condition.getName()+\"\\\")).\"+CustomExpression.EVAL_METHOD_NAME+\"(\"+evalMethodParams+\")\";\nJRDesignExpression expression = new JRDesignExpression();\nexpression.setValueClass(Boolean.class);\nexpression.setText(text);\nreturn expression;\n}" ]
[ "Called when the surface is created or recreated. Avoided because this can\nbe called twice at the beginning.", "apply the base fields to other views if configured to do so.", "For given field name get the actual hint message", "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created.", "Record the resource request queue length\n\n@param dest Destination of the socket for which resource request is\nenqueued. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param queueLength The number of entries in the \"asynchronous\" resource\nrequest queue.", "Adds a procedure argument definition to this class descriptor.\n\n@param argDef The procedure argument definition", "Get the max extent as a envelop object.", "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Use this API to fetch all the sslparameter resources that are configured on netscaler." ]
private void processCustomFieldValues() { byte[] data = m_projectProps.getByteArray(Props.TASK_FIELD_ATTRIBUTES); if (data != null) { int index = 0; int offset = 0; // First the length int length = MPPUtility.getInt(data, offset); offset += 4; // Then the number of custom value lists int numberOfValueLists = MPPUtility.getInt(data, offset); offset += 4; // Then the value lists themselves FieldType field; int valueListOffset = 0; while (index < numberOfValueLists && offset < length) { // Each item consists of the Field ID (4 bytes) and the offset to the value list (4 bytes) // Get the Field field = FieldTypeHelper.getInstance(MPPUtility.getInt(data, offset)); offset += 4; // Get the value list offset valueListOffset = MPPUtility.getInt(data, offset); offset += 4; // Read the value list itself if (valueListOffset < data.length) { int tempOffset = valueListOffset; tempOffset += 8; // Get the data offset int dataOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; tempOffset += 4; // Get the end of the data offset int endDataOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; tempOffset += 4; // Get the end of the description int endDescriptionOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; // Get the values themselves int valuesLength = endDataOffset - dataOffset; byte[] values = new byte[valuesLength]; MPPUtility.getByteArray(data, dataOffset, valuesLength, values, 0); // Get the descriptions int descriptionsLength = endDescriptionOffset - endDataOffset; byte[] descriptions = new byte[descriptionsLength]; MPPUtility.getByteArray(data, endDataOffset, descriptionsLength, descriptions, 0); populateContainer(field, values, descriptions); } index++; } } }
[ "Reads non outline code custom field values and populates container." ]
[ "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info", "Use this API to add spilloverpolicy.", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "checks whether the specified Object obj is write-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "Returns a \"clean\" version of the given filename in which spaces have\nbeen converted to dashes and all non-alphanumeric chars are underscores.", "Assigns retention policy with givenID to the folder.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param folderID id of the folder to assign policy to.\n@return info about created assignment.", "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" ]
static void endInitialization(WeldContainer container, boolean isShutdownHookEnabled) { container.complete(); // If needed, register one shutdown hook for all containers if (shutdownHook == null && isShutdownHookEnabled) { synchronized (LOCK) { if (shutdownHook == null) { shutdownHook = new ShutdownHook(); SecurityActions.addShutdownHook(shutdownHook); } } } container.fireContainerInitializedEvent(); }
[ "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled" ]
[ "Creates a new GridLines instance.\n\n@param data data block\n@param offset offset into data block\n@return new GridLines instance", "Set RGB output range.\n\n@param outRGB Range.", "get the last segment at the moment\n\n@return the last segment", "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.", "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements", "Fling the content\n\n@param velocityX The initial velocity in the X direction. Positive numbers mean that the\nfinger/cursor is moving to the left on the screen, which means we want to\nscroll towards the beginning.\n@param velocityY The initial velocity in the Y direction. Positive numbers mean that the\nfinger/cursor is moving down the screen, which means we want to scroll\ntowards the top.\n@param velocityZ TODO: Z-scrolling is currently not supported\n@return", "the applications main loop.", "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.", "Puts the cached security context in the thread local.\n\n@param context the cache context" ]
@PostConstruct protected void postConstruct() throws GeomajasException { if (null == baseTmsUrl) { throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "baseTmsUrl"); } // Make sure we have a base URL we can work with: if ((baseTmsUrl.startsWith("http://") || baseTmsUrl.startsWith("https://")) && !baseTmsUrl.endsWith("/")) { baseTmsUrl += "/"; } // Make sure there is a correct RasterLayerInfo object: if (layerInfo == null || layerInfo == UNUSABLE_LAYER_INFO) { try { tileMap = configurationService.getCapabilities(this); version = tileMap.getVersion(); extension = tileMap.getTileFormat().getExtension(); layerInfo = configurationService.asLayerInfo(tileMap); usable = true; } catch (TmsLayerException e) { // a layer needs an info object to keep the DtoConfigurationPostProcessor happy ! layerInfo = UNUSABLE_LAYER_INFO; usable = false; log.warn("The layer could not be correctly initialized: " + getId(), e); } } else if (extension == null) { throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "extension"); } if (layerInfo != null) { // Finally prepare some often needed values: state = new TileServiceState(geoService, layerInfo); // when proxying the real url will be resolved later on, just use a simple one for now boolean proxying = useCache || useProxy || null != authentication; if (tileMap != null && !proxying) { urlBuilder = new TileMapUrlBuilder(tileMap); } else { urlBuilder = new SimpleTmsUrlBuilder(extension); } } }
[ "Finish initializing the service." ]
[ "Helper method to retrieve a canonical revision for git commits migrated from SVN. Migrated commits are\ndetected by the presence of 'git-svn-id' in the commit message.\n\n@param revision the commit/revision to inspect\n@param branch the name of the branch it came from\n@return the original SVN revision if it was a migrated commit from the branch specified, otherwise the git revision", "Validations specific to GET and GET ALL", "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function", "Returns the complete record for a single status update.\n\n@param projectStatus The project status update to get.\n@return Request object", "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object", "Add an additional binary type", "Finds the first Field with given field name in the Class and in its super classes.\n\n@param type The Class type\n@param fieldName The field name to get\n@return an {@code Optional}. Use isPresent() to find out if the field name was found.", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException", "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}" ]
public void callFunction( final String name, final List<?> args, final @Nullable Long requestTimeout) { this.functionService.callFunction(name, args, requestTimeout); }
[ "Calls the specified Stitch function.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error." ]
[ "Log a trace message with a throwable.", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Shuts down a managed domain container. The servers are first stopped, then the host controller is shutdown.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to shutdown the managed domain failed", "Computes the likelihood of the random draw\n\n@return The likelihood.", "Use this API to unset the properties of sslparameter resource.\nProperties that need to be unset are specified in args array.", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Use this API to fetch nd6ravariables resource of given name .", "Log a warning message with a throwable.", "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned" ]
public static <V> Map<V, V> convertListToMap(List<V> list) { Map<V, V> map = new HashMap<V, V>(); if(list.size() % 2 != 0) throw new VoldemortException("Failed to convert list to map."); for(int i = 0; i < list.size(); i += 2) { map.put(list.get(i), list.get(i + 1)); } return map; }
[ "Utility function that converts a list to a map.\n\n@param list The list in which even elements are keys and odd elements are\nvalues.\n@rturn The map container that maps even elements to odd elements, e.g.\n0->1, 2->3, etc." ]
[ "copied and altered from TransactionHelper", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used\nbootstrap CL instead.\n\n@return the base CL to use.", "Computes the longest common contiguous substring of s and t.\nThe LCCS is the longest run of characters that appear consecutively in\nboth s and t. For instance, the LCCS of \"color\" and \"colour\" is 4, because\nof \"colo\".", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "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.", "Rollback the last applied patch.\n\n@param contentPolicy the content policy\n@param resetConfiguration whether to reset the configuration\n@param modification the installation modification\n@return the patching result\n@throws PatchingException", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name" ]
private void readProjectProperties(Settings phoenixSettings, Storepoint storepoint) { ProjectProperties mpxjProperties = m_projectFile.getProjectProperties(); mpxjProperties.setName(phoenixSettings.getTitle()); mpxjProperties.setDefaultDurationUnits(phoenixSettings.getBaseunit()); mpxjProperties.setStatusDate(storepoint.getDataDate()); }
[ "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint" ]
[ "Gets the element view.\n\n@return the element view", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "This looks at the servlet attributes to get the list of response headers to remove while the response object gets created by the servlet", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Use this API to fetch vpnsessionaction resource of given name .", "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", "Creates a tar directory entry with defaults parameters.\n@param dirName the directory name\n@return dir entry with reasonable defaults", "This method will add a DemoInterceptor into every in and every out phase\nof the interceptor chains.\n\n@param provider", "Prepares Artifactory server either from serverID or from ArtifactoryServer.\n\n@param artifactoryServerID\n@param pipelineServer\n@return" ]
private void processWorkPattern(ProjectCalendarWeek week, Integer workPatternID, Map<Integer, Row> workPatternMap, Map<Integer, List<Row>> timeEntryMap, Map<Integer, DayType> exceptionTypeMap) { Row workPatternRow = workPatternMap.get(workPatternID); if (workPatternRow != null) { week.setName(workPatternRow.getString("NAMN")); List<Row> timeEntryRows = timeEntryMap.get(workPatternID); if (timeEntryRows != null) { long lastEndTime = Long.MIN_VALUE; Day currentDay = Day.SUNDAY; ProjectCalendarHours hours = week.addCalendarHours(currentDay); Arrays.fill(week.getDays(), DayType.NON_WORKING); for (Row row : timeEntryRows) { Date startTime = row.getDate("START_TIME"); Date endTime = row.getDate("END_TIME"); if (startTime == null) { startTime = DateHelper.getDayStartDate(new Date(0)); } if (endTime == null) { endTime = DateHelper.getDayEndDate(new Date(0)); } if (startTime.getTime() > endTime.getTime()) { endTime = DateHelper.addDays(endTime, 1); } if (startTime.getTime() < lastEndTime) { currentDay = currentDay.getNextDay(); hours = week.addCalendarHours(currentDay); } DayType type = exceptionTypeMap.get(row.getInteger("EXCEPTIOP")); if (type == DayType.WORKING) { hours.addRange(new DateRange(startTime, endTime)); week.setWorkingDay(currentDay, DayType.WORKING); } lastEndTime = endTime.getTime(); } } } }
[ "Populates a ProjectCalendarWeek instance from Asta work pattern data.\n\n@param week target ProjectCalendarWeek instance\n@param workPatternID target work pattern ID\n@param workPatternMap work pattern data\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map" ]
[ "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\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=\"paramName\" optional=\"true\" description=\"The parameter name.\"", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return", "Use this API to fetch snmpalarm resource of given name .", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "this method mimics EMC behavior", "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Adds a new point.\n\n@param point a point\n@return this for chaining" ]
private void readBitFields(MppBitFlag[] flags, FieldContainer container, byte[] data) { for (MppBitFlag flag : flags) { flag.setValue(container, data); } }
[ "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data" ]
[ "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Creates a quad consisting of two triangles, with the specified width and\nheight.\n\n@param gvrContext current {@link GVRContext}\n\n@param width\nthe quad's width\n@param height\nthe quad's height\n@return A 2D, rectangular mesh with four vertices and two triangles", "Builds the mapping table.", "The users element defines users within the domain model, it is a simple authentication for some out of the box users.", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Use this API to fetch responderpolicylabel_binding resource of given name .", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\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=\"paramName\" optional=\"true\" description=\"The parameter name.\"", "Saves messages to a xmlvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "Returns the last available version of an artifact\n\n@param gavc String\n@return String" ]
public boolean start(SensorManager sensorManager) { // Already started? if (accelerometer != null) { return true; } accelerometer = sensorManager.getDefaultSensor( Sensor.TYPE_ACCELEROMETER); // If this phone has an accelerometer, listen to it. if (accelerometer != null) { this.sensorManager = sensorManager; sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_FASTEST); } return accelerometer != null; }
[ "Starts listening for shakes on devices with appropriate hardware.\n\n@return true if the device supports shake detection." ]
[ "Use this API to unlink sslcertkey.", "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete.", "Create a ModelNode representing the operating system the instance is running on.\n\n@return a ModelNode representing the operating system the instance is running on.\n@throws OperationFailedException", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Demonstrates how to add an override to an existing path", "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE", "Restarts a single dyno\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param dynoId the unique identifier of the dyno to restart", "Get a loader that lists the Files in the current path,\nand monitors changes.", "when divisionPrefixLen is null, isAutoSubnets has no effect" ]
protected <T> T invokeJavascriptReturnValue(String function, Class<T> returnType) { Object returnObject = invokeJavascript(function); if (returnObject instanceof JSObject) { try { Constructor<T> constructor = returnType.getConstructor(JSObject.class); return constructor.newInstance((JSObject) returnObject); } catch (Exception ex) { throw new IllegalStateException(ex); } } else { return (T) returnObject; } }
[ "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." ]
[ "Schedule at most one task.\n\nThe scheduled task *must* invoke 'doneTask()' upon\ncompletion/termination.\n\n@param executeService flag to control execution of the service, some tests pass\nin value 'false'\n@return The task scheduled or null if not possible to schedule a task at\nthis time.", "Deletes data associated with the given profile ID\n\n@param profileId ID of profile", "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "1.0 version of parser is different at simple mapperParser", "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data", "Simple info message for status\n\n@param tag Message to print out at start of info message", "LRN cross-channel forward computation. Double parameters cast to tensor data type", "Removes top of thread-local shell stack.", "Removes any child object that has the given name by performing\ncase-sensitive search.\n\n@param name name of scene object to be removed.\n\n@return number of removed objects, 0 if none was found." ]
protected long save() { // save leaf nodes ReclaimFlag flag = saveChildren(); // save self. complementary to {@link load()} final byte type = getType(); final BTreeBase tree = getTree(); final int structureId = tree.structureId; final Log log = tree.log; if (flag == ReclaimFlag.PRESERVE) { // there is a chance to update the flag to RECLAIM if (log.getWrittenHighAddress() % log.getFileLengthBound() == 0) { // page will be exactly on file border flag = ReclaimFlag.RECLAIM; } else { final ByteIterable[] iterables = getByteIterables(flag); long result = log.tryWrite(type, structureId, new CompoundByteIterable(iterables)); if (result < 0) { iterables[0] = CompressedUnsignedLongByteIterable.getIterable( (size << 1) + ReclaimFlag.RECLAIM.value ); result = log.writeContinuously(type, structureId, new CompoundByteIterable(iterables)); if (result < 0) { throw new TooBigLoggableException(); } } return result; } } return log.write(type, structureId, new CompoundByteIterable(getByteIterables(flag))); }
[ "Save page to log\n\n@return address of this page after save" ]
[ "Append the bounding volume particle positions, times and velocities to the existing mesh\nbefore creating a new scene object with this mesh attached to it.\nAlso, append every created scene object and its creation time to corresponding array lists.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Creates a new file.\n\n@param inputStream the stream instance that contains the data.\n@param fileName the name of the file to be created.\n@param fileSize the size of the file that will be uploaded.\n@return the created file instance.\n@throws InterruptedException when a thread execution is interrupted.\n@throws IOException when reading a stream throws exception.", "performs an UPDATE operation against RDBMS.\n@param obj The Object to be updated in the underlying table.\n@param cld ClassDescriptor providing mapping information.", "Retrieve the number of minutes per week for this calendar.\n\n@return minutes per week", "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "This filter changes the amount of color in each of the three channels.\n\n@param r The amount of redness in the picture. Can range from -100 to 100 in percentage.\n@param g The amount of greenness in the picture. Can range from -100 to 100 in percentage.\n@param b The amount of blueness in the picture. Can range from -100 to 100 in percentage.\n@throws IllegalArgumentException if {@code r}, {@code g}, or {@code b} are outside of bounds.", "Mark for creation all newly introduced dependent references.\nMark for deletion all nullified dependent references.\n@return the list of created objects", "Removes an accessory from being handled or advertised by this root. Any existing Homekit\nconnections will be terminated to allow the clients to reconnect and see the updated accessory\nlist.\n\n@param accessory accessory to cease advertising and handling", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block" ]
public int compareTo(WordLemmaTag wordLemmaTag) { int first = word().compareTo(wordLemmaTag.word()); if (first != 0) return first; int second = lemma().compareTo(wordLemmaTag.lemma()); if (second != 0) return second; else return tag().compareTo(wordLemmaTag.tag()); }
[ "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)" ]
[ "Create a string from bytes using the given encoding\n\n@param bytes The bytes to create a string from\n@param encoding The encoding of the string\n@return The created string", "Store the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Assign float value to inputOutput SFFloat field named speed.\nNote that our implementation with ExoPlayer that pitch and speed will be set to the same value.\n@param newValue", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Heuristic check if string might be an IPv6 address.\n\n@param input Any string or null\n@return true, if input string contains only hex digits and at least two colons, before '.' or '%' character.", "Added in Gerrit 2.11.", "Sends out the SQL as defined in the config upon first init of the connection.\n@param connection\n@param initSQL\n@throws SQLException", "Retrieve all addresses of a host by it's address. NetBIOS hosts can\nhave many names for a given IP address. The name and IP address make the\nNetBIOS address. This provides a way to retrieve the other names for a\nhost with the same IP address.\n\n@param addr the address to query\n@throws UnknownHostException if address cannot be resolved", "Notification that the server process finished." ]
public ExtendedOutputStreamWriter append(double d) throws IOException { super.append(String.format(Locale.ROOT, doubleFormat, d)); return this; }
[ "Writes the specified double to the stream, formatted according to the format specified in the constructor.\n\n@param d the double to write to the stream\n@return this writer\n@throws IOException if an I/O error occurs" ]
[ "Writes all data that was collected about properties to a json file.", "Renumbers all entity unique IDs.", "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "Get the inactive history directories.\n\n@return the inactive history", "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.", "Backup all xml files in a given directory.\n\n@param source the source directory\n@param target the target directory\n@throws IOException for any error", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.", "Returns the supplied string with any trailing '\\n' removed." ]
public static Number parseDouble(String value) throws ParseException { Number result = null; value = parseString(value); // If we still have a value if (value != null && !value.isEmpty() && !value.equals("-1 -1")) { int index = value.indexOf("E+"); if (index != -1) { value = value.substring(0, index) + 'E' + value.substring(index + 2, value.length()); } if (value.indexOf('E') != -1) { result = DOUBLE_FORMAT.get().parse(value); } else { result = Double.valueOf(value); } } return result; }
[ "Parse the string representation of a double.\n\n@param value string representation\n@return Java representation\n@throws ParseException" ]
[ "Use this API to fetch all the aaaparameter resources that are configured on netscaler.", "Set the duration option.\n@param value the duration option to set ({@link EndType} as string).", "This method is used by JNI, do not call or modify.\n\n@param type the type\n@param number the number", "Give next index i where i and i+timelag is valid", "Use this API to fetch cachepolicy_cacheglobal_binding resources of given name .", "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 iterable with all non-deleted file version legal holds for this legal hold 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 file version legal holds info.", "Use this API to restart dbsmonitors.", "Only call with monitor for 'this' held" ]
@Subscribe public void onSuiteResult(AggregatedSuiteResultEvent e) { // Calculate summaries. summaryListener.suiteSummary(e); Description suiteDescription = e.getDescription(); String displayName = suiteDescription.getDisplayName(); if (displayName.trim().isEmpty()) { junit4.log("Could not emit XML report for suite (null description).", Project.MSG_WARN); return; } if (!suiteCounts.containsKey(displayName)) { suiteCounts.put(displayName, 1); } else { int newCount = suiteCounts.get(displayName) + 1; suiteCounts.put(displayName, newCount); if (!ignoreDuplicateSuites && newCount == 2) { junit4.log("Duplicate suite name used with XML reports: " + displayName + ". This may confuse tools that process XML reports. " + "Set 'ignoreDuplicateSuites' to true to skip this message.", Project.MSG_WARN); } displayName = displayName + "-" + newCount; } try { File reportFile = new File(dir, "TEST-" + displayName + ".xml"); RegistryMatcher rm = new RegistryMatcher(); rm.bind(String.class, new XmlStringTransformer()); Persister persister = new Persister(rm); persister.write(buildModel(e), reportFile); } catch (Exception x) { junit4.log("Could not serialize report for suite " + displayName + ": " + x.toString(), x, Project.MSG_WARN); } }
[ "Emit information about all of suite's tests." ]
[ "Sets the current class definition derived from the current class, and optionally some attributes.\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=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"", "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist", "Use this API to fetch statistics of service_stats resource of given name .", "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "this class loader interface can be used by other plugins to lookup\nresources from the bundles. A temporary class loader interface is set\nduring other configuration loading as well\n\n@return ClassLoaderInterface (BundleClassLoaderInterface)", "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>", "Attempt to reconnect to Redis.\n\n@param jedis\nthe connection to Redis\n@param reconAttempts\nnumber of times to attempt to reconnect before giving up\n@param reconnectSleepTime\ntime in milliseconds to wait between attempts\n@return true if reconnection was successful", "Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()" ]
public static base_responses delete(nitro_service client, String fipskeyname[]) throws Exception { base_responses result = null; if (fipskeyname != null && fipskeyname.length > 0) { sslfipskey deleteresources[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++){ deleteresources[i] = new sslfipskey(); deleteresources[i].fipskeyname = fipskeyname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete sslfipskey resources of given names." ]
[ "Processes the template for all procedure arguments of the current procedure.\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\"", "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Build the crosstab. Throws LayoutException if anything is wrong\n@return", "Put object to session cache.\n\n@param oid The {@link org.apache.ojb.broker.Identity} of the object to cache\n@param entry The {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.CacheEntry} of the object\n@param onlyIfNew Flag, if set <em>true</em> only new objects (not already in session cache) be cached.", "Gets the index of the specified value.\n\n@param value the value of the item to be found\n@return the index of the value", "Webkit based browsers require that we set the webkit-user-drag style\nattribute to make an element draggable.", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "state chain management ops below", "Add a comment to a photoset. This method requires authentication with 'write' permission.\n\n@param photosetId\nThe id of the photoset to add a comment to.\n@param commentText\nText of the comment\n@return the comment id\n@throws FlickrException" ]
@Override public String remove(Object key) { String result = m_configurationStrings.remove(key); m_configurationObjects.remove(key); return result; }
[ "Removes a parameter from this configuration.\n\n@param key the parameter to remove" ]
[ "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts", "Converts the string representation of a Planner duration into\nan MPXJ Duration instance.\n\nPlanner represents durations as a number of seconds in its\nfile format, however it displays durations as days and hours,\nand seems to assume that a working day is 8 hours.\n\n@param value string representation of a duration\n@return Duration instance", "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern", "Sets maintenance mode for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param enable true to enable; false to disable", "First close the connection. Then reply.\n\n@param response\nthe response\n@param error\nthe error\n@param errorMessage\nthe error message\n@param stackTrace\nthe stack trace\n@param statusCode\nthe status code\n@param statusCodeInt\nthe status code int", "Rotate the specified photo. The only allowed values for degrees are 90, 180 and 270.\n\n@param photoId\nThe photo ID\n@param degrees\nThe degrees to rotate (90, 170 or 270)", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields.", "Resize the key data area.\nThis function will truncate the keys if the\ninitial setting was too large.\n\n@oaran numKeys the desired number of keys", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent" ]
@Api public void setUseCache(boolean useCache) { if (null == cacheManagerService && useCache) { log.warn("The caching plugin needs to be available to cache WMS requests. Not setting useCache."); } else { this.useCache = useCache; } }
[ "Set whether the WMS tiles should be cached for later use. This implies that the WMS tiles will be proxied.\n\n@param useCache true when request needs to be cached\n@since 1.9.0" ]
[ "Removes each of the specified followers from the task if they are\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to remove followers from.\n@return Request object", "Process dump file data from the given input stream. The method can\nrecover from an errors that occurred while processing an input stream,\nwhich is assumed to contain the JSON serialization of a list of JSON\nentities, with each entity serialization in one line. To recover from the\nprevious error, the first line is skipped.\n\n@param inputStream\nthe stream to read from\n@throws IOException\nif there is a problem reading the stream", "Use this API to restart dbsmonitors.", "Verify that the given channels are all valid.\n\n@param channels\nthe given channels", "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "A comment.\n\n@param args the parameters", "Should only called on a column that is being set to null.\n\nReturns the most outer embeddable containing {@code column} that is entirely null.\nReturn null otherwise i.e. not embeddable.\n\nThe implementation lazily compute the embeddable state and caches it.\nThe idea behind the lazy computation is that only some columns will be set to null\nand only in some situations.\nThe idea behind caching is that an embeddable contains several columns, no need to recompute its state.", "Append data to JSON response.\n@param param\n@param value", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise" ]
public static String getOutputValueName( @Nullable final String outputPrefix, @Nonnull final Map<String, String> outputMapper, @Nonnull final Field field) { String name = outputMapper.get(field.getName()); if (name == null) { name = field.getName(); if (!StringUtils.isEmpty(outputPrefix) && !outputPrefix.trim().isEmpty()) { name = outputPrefix.trim() + Character.toUpperCase(name.charAt(0)) + name.substring(1); } } return name; }
[ "Calculate the name of the output value.\n\n@param outputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param outputMapper the name mapper\n@param field the field containing the value" ]
[ "The file we are working with has a byte order mark. Skip this and try again to read the file.\n\n@param stream schedule data\n@param length length of the byte order mark\n@param charset charset indicated by byte order mark\n@return ProjectFile instance", "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", "See also WELD-1454.\n\n@param ij\n@return the formatted string", "Get string value of flow context for current instance\n@return string value of flow context", "Used to determine if a particular day of the week is normally\na working day.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day Day instance\n@return boolean flag", "Creates an attachment from a binary input stream.\nThe content of the stream will be transformed into a Base64 encoded string\n@throws IOException if an I/O error occurs\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions" ]
public Bundler put(String key, String value) { delegate.putString(key, value); return this; }
[ "Inserts a String value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null\n@return this bundler instance to chain method calls" ]
[ "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 true if string starts and ends with double-quote\n@param str\n@return", "Returns a copy of this year-week with the new year and week, 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 newWeek the week to represent, validated from 1 to 53\n@return the year-week, not null", "Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array.", "Checks that excess arguments match the vararg signature parameter.\n@param params\n@param args\n@return -1 if no match, 0 if all arguments matches the vararg type and >0 if one or more vararg argument is\nassignable to the vararg type, but still not an exact match", "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name", "write CustomInfo list into table.\n\n@param event the event", "generate random velocities in the given range\n@return", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id" ]
private static void attachToDecor(Activity activity, MenuDrawer menuDrawer) { ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView(); ViewGroup decorChild = (ViewGroup) decorView.getChildAt(0); decorView.removeAllViews(); decorView.addView(menuDrawer, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); menuDrawer.mContentContainer.addView(decorChild, decorChild.getLayoutParams()); }
[ "Attaches the menu drawer to the window." ]
[ "Use this API to delete cacheselector resources of given names.", "Open an OutputStream and execute the function using the OutputStream.\n\n@param function the function to execute\n@return the URI and the file size", "Computes the determinant for the specified matrix. It must be square and have\nthe same width and height as what was specified in the constructor.\n\n@param mat The matrix whose determinant is to be computed.\n@return The determinant.", "Sleeps if necessary to slow down the caller.\n\n@param eventsSeen Number of events seen since last invocation. Basis for\ndetermining whether its necessary to sleep.", "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index", "Reads the NTriples file from the reader, pushing statements into\nthe handler.", "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler.", "Adds error correction data to the specified binary string, which already contains the primary data" ]
@SuppressWarnings("SameParameterValue") private void delegatingRepaint(int x, int y, int width, int height) { final RepaintDelegate delegate = repaintDelegate.get(); if (delegate != null) { //logger.info("Delegating repaint: " + x + ", " + y + ", " + width + ", " + height); delegate.repaint(x, y, width, height); } else { //logger.info("Normal repaint: " + x + ", " + y + ", " + width + ", " + height); repaint(x, y, width, height); } }
[ "Determine whether we should use the normal repaint process, or delegate that to another component that is\nhosting us in a soft-loaded manner to save memory.\n\n@param x the left edge of the region that we want to have redrawn\n@param y the top edge of the region that we want to have redrawn\n@param width the width of the region that we want to have redrawn\n@param height the height of the region that we want to have redrawn" ]
[ "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Delivers the correct JSON Object for outgoings\n\n@param outgoings\n@throws org.json.JSONException", "Set an attribute.\n\n@param name attribute name.\n@param value attribute value.", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI.", "Convert a query parameter to the correct object type based on the first letter of the name.\n\n@param name parameter name\n@param value parameter value\n@return parameter object as\n@throws ParseException value could not be parsed\n@throws NumberFormatException value could not be parsed", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "This method changes package_path into folder's path\n\n@param path\n, as es.upm.gsi\n@return the new path, es/upm/gsi", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException", "Parses the date or returns null if it fails to do so." ]
private void cascadeDeleteFor(ObjectEnvelope mod, List alreadyPrepared) { // avoid endless recursion if(alreadyPrepared.contains(mod.getIdentity())) return; alreadyPrepared.add(mod.getIdentity()); ClassDescriptor cld = getTransaction().getBroker().getClassDescriptor(mod.getObject().getClass()); List refs = cld.getObjectReferenceDescriptors(true); cascadeDeleteSingleReferences(mod, refs, alreadyPrepared); List colls = cld.getCollectionDescriptors(true); cascadeDeleteCollectionReferences(mod, colls, alreadyPrepared); }
[ "Walk through the object graph of the specified delete object. Was used for\nrecursive object graph walk." ]
[ "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "Set the main attribute \"Bundle-RequiredExecutionEnvironment\" to the given\nvalue.\n\n@param bree The new value", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window.", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "Write a string attribute.\n\n@param name attribute name\n@param value attribute value", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Writes the message to the specified channel, for example when creating metadata cache files.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel" ]
private void createSuiteList(List<ISuite> suites, File outputDirectory, boolean onlyFailures) throws Exception { VelocityContext context = createContext(); context.put(SUITES_KEY, suites); context.put(ONLY_FAILURES_KEY, onlyFailures); generateFile(new File(outputDirectory, SUITES_FILE), SUITES_FILE + TEMPLATE_EXTENSION, context); }
[ "Create the navigation frame.\n@param outputDirectory The target directory for the generated file(s)." ]
[ "Curries a procedure that takes one argument.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a procedure that takes no arguments. Never <code>null</code>.", "Use this API to update nstimeout.", "Computes the d and H parameters.\n\nd = J'*(f(x)-y) <--- that's also the gradient\nH = J'*J", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache", "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Returns the complete definition of a custom field's metadata.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer", "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database" ]
private void setBandFinalHeight(JRDesignBand band, int currHeigth, boolean fitToContent) { if (band != null) { int finalHeight = LayoutUtils.findVerticalOffset(band); //noinspection StatementWithEmptyBody if (finalHeight < currHeigth && !fitToContent) { //nothing } else { band.setHeight(finalHeight); } } }
[ "Removes empty space when \"fitToContent\" is true and real height of object is\ntaller than current bands height, otherwise, it is not modified\n\n@param band\n@param currHeigth\n@param fitToContent" ]
[ "Perform construction.\n\n@param callbackHandler", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "Checks whether table name and key column names of the given joinable and inverse collection persister match.", "Reads primary key information from current RS row and generates a\n\ncorresponding Identity, and returns a proxy from the Identity.\n\n@throws PersistenceBrokerException\nif there was an error creating the proxy class", "Method must be invoked upon completion of a rebalancing task. It is the\ntask's responsibility to do so.\n\n@param stealerId\n@param donorId", "Sets the hostname and port to connect to.\n\n@param hostname the host name\n@param port the port\n\n@return the builder", "Creates a new capsule\n\n@param mode the capsule mode, or {@code null} for the default mode\n@param wrappedJar a path to a capsule JAR that will be launched (wrapped) by the empty capsule in {@code jarFile}\nor {@code null} if no wrapped capsule is wanted\n@return the capsule.", "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data", "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." ]
public static BoxUser.Info createEnterpriseUser(BoxAPIConnection api, String login, String name, CreateUserParams params) { JsonObject requestJSON = new JsonObject(); requestJSON.add("login", login); requestJSON.add("name", name); if (params != null) { if (params.getRole() != null) { requestJSON.add("role", params.getRole().toJSONValue()); } if (params.getStatus() != null) { requestJSON.add("status", params.getStatus().toJSONValue()); } requestJSON.add("language", params.getLanguage()); requestJSON.add("is_sync_enabled", params.getIsSyncEnabled()); requestJSON.add("job_title", params.getJobTitle()); requestJSON.add("phone", params.getPhone()); requestJSON.add("address", params.getAddress()); requestJSON.add("space_amount", params.getSpaceAmount()); requestJSON.add("can_see_managed_users", params.getCanSeeManagedUsers()); requestJSON.add("timezone", params.getTimezone()); requestJSON.add("is_exempt_from_device_limits", params.getIsExemptFromDeviceLimits()); requestJSON.add("is_exempt_from_login_verification", params.getIsExemptFromLoginVerification()); requestJSON.add("is_platform_access_only", params.getIsPlatformAccessOnly()); requestJSON.add("external_app_user_id", params.getExternalAppUserId()); } URL url = USERS_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, "POST"); request.setBody(requestJSON.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxUser createdUser = new BoxUser(api, responseJSON.get("id").asString()); return createdUser.new Info(responseJSON); }
[ "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info." ]
[ "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "Validates the binding types", "Helper method for formatting connection establishment messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG.", "Determine the size of a field in a fixed data block.\n\n@param type field data type\n@return field size in bytes", "Read pattern information from the provided JSON object.\n@param patternJson the JSON object containing the pattern information.", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "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", "Append the text at the end of the Path.\n\n@param self a Path\n@param text the text to append at the end of the Path\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format" ]
public String getEditedFilePath() { switch (getBundleType()) { case DESCRIPTOR: return m_cms.getSitePath(m_desc); case PROPERTY: return null != m_lockedBundleFiles.get(getLocale()) ? m_cms.getSitePath(m_lockedBundleFiles.get(getLocale()).getFile()) : m_cms.getSitePath(m_resource); case XML: return m_cms.getSitePath(m_resource); default: throw new IllegalArgumentException(); } }
[ "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file." ]
[ "Process class properties.\n\n@param writer output stream\n@param methodSet set of methods processed\n@param aClass class being processed\n@throws IntrospectionException\n@throws XMLStreamException", "Searches all descendant folders using a given query and query parameters.\n@param offset is the starting position.\n@param limit the maximum number of items to return. The default is 30 and the maximum is 200.\n@param bsp containing query and advanced search capabilities.\n@return a PartialCollection containing the search results.", "Create and bind a server socket\n\n@return the server socket\n@throws IOException", "Reset a timer of the given string name for the given 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", "Performs a null edit on a property. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param propertyId\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", "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails.", "Use this API to fetch systemsession resources of given names .", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "This method returns the value random variable of the product within the specified model,\nevaluated at a given evalutationTime.\nCash-flows prior evaluationTime are not considered.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model The model used to price the product.\n@return The random variable representing the value of the product discounted to evaluation time.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method." ]
protected AbstractColumn buildSimpleBarcodeColumn() { BarCodeColumn column = new BarCodeColumn(); populateCommonAttributes(column); column.setColumnProperty(columnProperty); column.setExpressionToGroupBy(customExpressionToGroupBy); column.setScaleMode(imageScaleMode); column.setApplicationIdentifier(applicationIdentifier); column.setBarcodeType(barcodeType); column.setShowText(showText); column.setCheckSum(checkSum); return column; }
[ "When creating barcode columns\n@return" ]
[ "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException", "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", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "Set the options based on the tag elements of the ClassDoc parameter", "Return the equivalence class of the argument. If the argument is not contained in\nand equivalence class, then an empty string is returned.\n\n@param punc\n@return The class name if found. Otherwise, an empty string.", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient", "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", "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Use this API to add authenticationradiusaction resources." ]
protected void processTaskBaseline(Row row) { Integer id = row.getInteger("TASK_UID"); Task task = m_project.getTaskByUniqueID(id); if (task != null) { int index = row.getInt("TB_BASE_NUM"); task.setBaselineDuration(index, MPDUtility.getAdjustedDuration(m_project, row.getInt("TB_BASE_DUR"), MPDUtility.getDurationTimeUnits(row.getInt("TB_BASE_DUR_FMT")))); task.setBaselineStart(index, row.getDate("TB_BASE_START")); task.setBaselineFinish(index, row.getDate("TB_BASE_FINISH")); task.setBaselineWork(index, row.getDuration("TB_BASE_WORK")); task.setBaselineCost(index, row.getCurrency("TB_BASE_COST")); } }
[ "Read task baseline values.\n\n@param row result set row" ]
[ "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.", "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory", "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Use this API to fetch sslciphersuite resource of given name .", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "Add the collection of elements to this collection. This will also them to the associated database table.\n\n@return Returns true if any of the items did not already exist in the collection otherwise false.", "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws InterruptedException when interrupted during the wait.", "Implement the persistence handler for storing the user properties." ]
private String getParentWBS(String wbs) { String result; int index = wbs.lastIndexOf('.'); if (index == -1) { result = null; } else { result = wbs.substring(0, index); } return result; }
[ "Extract the parent WBS from a WBS.\n\n@param wbs current WBS\n@return parent WBS" ]
[ "Gets the instance associated with the current thread.", "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs.", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "Extract WOEID after XML loads", "Generate a results file for each test in each suite.\n@param outputDirectory The target directory for the generated file(s).", "Sets the top padding character for all cells in the row.\n@param paddingTopChar new padding character, ignored if null\n@return this to allow chaining", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized object, null if no matching row was found or if\nany error occured.", "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object" ]
public boolean getOverAllocated() { Boolean overallocated = (Boolean) getCachedValue(ResourceField.OVERALLOCATED); if (overallocated == null) { Number peakUnits = getPeakUnits(); Number maxUnits = getMaxUnits(); overallocated = Boolean.valueOf(NumberHelper.getDouble(peakUnits) > NumberHelper.getDouble(maxUnits)); set(ResourceField.OVERALLOCATED, overallocated); } return (overallocated.booleanValue()); }
[ "Retrieves the overallocated flag.\n\n@return overallocated flag" ]
[ "Writes and reads the XOP attachment using a CXF JAX-RS WebClient.\nNote that WebClient is created with the help of JAXRSClientFactoryBean.\nJAXRSClientFactoryBean can be used when neither of the WebClient factory\nmethods is appropriate. For example, in this case, an \"mtom-enabled\"\nproperty is set on the factory bean first.\n\n\n@throws Exception", "Returns a map of all variables in scope.\n@return map of all variables in scope.", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Read a field into our table configuration for field=value line.", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Find the collision against a specific collider in a list of collisions.\n@param pickList collision list\n@param findme collider to find\n@return collision with the specified collider, null if not found", "Add filters to the tree.\n\n@param parentNode parent tree node\n@param filters list of filters", "Switches from a dense to sparse matrix", "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path" ]
private RandomVariable getShortRate(int timeIndex) throws CalculationException { double time = getProcess().getTime(timeIndex); double timePrev = timeIndex > 0 ? getProcess().getTime(timeIndex-1) : time; double timeNext = getProcess().getTime(timeIndex+1); RandomVariable zeroRate = getZeroRateFromForwardCurve(time); //getDiscountFactorFromForwardCurve(time).div(getDiscountFactorFromForwardCurve(timeNext)).log().div(timeNext-time); RandomVariable alpha = getDV(0, time); RandomVariable value = getProcess().getProcessValue(timeIndex, 0); value = value.add(alpha); // value = value.sub(Math.log(value.exp().getAverage())); value = value.add(zeroRate); return value; }
[ "Returns the \"short rate\" from timeIndex to timeIndex+1.\n\n@param timeIndex The time index (corresponding to {@link getTime()).\n@return The \"short rate\" from timeIndex to timeIndex+1.\n@throws CalculationException Thrown if simulation failed." ]
[ "Generating the input vertices is quite complex. Therefore there are multiple methods that handles the input vertices\nbased on the attribute specified in specific order. This method generates all the vertices if there is no other way how to handle\nthe input.", "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Delete a database for a given path and userId.\n@param appInfo the info for this application\n@param serviceName the name of the associated service\n@param clientFactory the associated factory that creates clients\n@param userId the id of the user's to delete\n@return true if successfully deleted, false if not", "Use this API to unset the properties of nsrpcnode resources.\nProperties that need to be unset are specified in args array.", "Extracts assignment baseline data.\n\n@param assignment xml assignment\n@param mpx mpxj assignment", "For a given set of calendar data, this method sets the working\nday status for each day, and if present, sets the hours for that\nday.\n\nNOTE: MPP14 defines the concept of working weeks. MPXJ does not\ncurrently support this, and thus we only read the working hours\nfor the default working week.\n\n@param data calendar data block\n@param defaultCalendar calendar to use for default values\n@param cal calendar instance\n@param isBaseCalendar true if this is a base calendar", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Computes FPS average", "Extract data for a single predecessor.\n\n@param task parent task\n@param row Synchro predecessor data" ]
private void populateMilestone(Row row, Task task) { task.setMilestone(true); //PROJID task.setUniqueID(row.getInteger("MILESTONEID")); task.setStart(row.getDate("GIVEN_DATE_TIME")); task.setFinish(row.getDate("GIVEN_DATE_TIME")); //PROGREST_PERIOD //SYMBOL_APPEARANCE //MILESTONE_TYPE //PLACEMENU task.setPercentageComplete(row.getBoolean("COMPLETED") ? COMPLETE : INCOMPLETE); //INTERRUPTIBLE_X //ACTUAL_DURATIONTYPF //ACTUAL_DURATIONELA_MONTHS //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 //EFFORT_BUDGET //NATURAO_ORDER //LOGICAL_PRECEDENCE //SPAVE_INTEGER //SWIM_LANE //USER_PERCENT_COMPLETE //OVERALL_PERCENV_COMPLETE //OVERALL_PERCENT_COMPL_WEIGHT task.setName(row.getString("NARE")); //NOTET 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 //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 //STARZ //ENJ //DURATION_TIMJ_UNIT //UNSCHEDULABLG //SUBPROJECT_ID //ALT_ID //LAST_EDITED_DATE //LAST_EDITED_BY task.setDuration(Duration.getInstance(0, TimeUnit.HOURS)); }
[ "Populate a milestone from a Row instance.\n\n@param row Row instance\n@param task Task instance" ]
[ "add a FK column pointing to the item Class", "Check that all nodes in the new cluster have a corresponding entry in\nstoreRepository and innerStores. add a NodeStore if not present, is\nneeded as with rebalancing we can add new nodes on the fly.", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Visit all child nodes but not this one.\n\n@param visitor The visitor to use.", "This method dumps the entire contents of a file to an output\nprint writer as 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", "Finds any clients which are not currently in use, and which have been idle for longer than the\nidle timeout, and closes them.", "This method is called to format a relation.\n\n@param relation relation instance\n@return formatted relation instance", "Calculates the beginLine of a violation report.\n\n@param pmdViolation The violation for which the beginLine should be calculated.\n@return The beginLine is assumed to be the line with the smallest number. However, if the smallest number is\nout-of-range (non-positive), it takes the other number.", "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria" ]
public static Chart getMSDLineWithConfinedModelChart(Trajectory t, int lagMin, int lagMax, double timelag, double a, double b, double c, double d) { double[] xData = new double[lagMax - lagMin + 1]; double[] yData = new double[lagMax - lagMin + 1]; double[] modelData = new double[lagMax - lagMin + 1]; MeanSquaredDisplacmentFeature msdeval = new MeanSquaredDisplacmentFeature( t, lagMin); msdeval.setTrajectory(t); msdeval.setTimelag(lagMin); for (int i = lagMin; i < lagMax + 1; i++) { msdeval.setTimelag(i); double msdhelp = msdeval.evaluate()[0]; xData[i - lagMin] = i; yData[i - lagMin] = msdhelp; modelData[i - lagMin] = a * (1 - b * Math.exp((-4 * d) * ((i * timelag) / a) * c)); } // Create Chart Chart chart = QuickChart.getChart("MSD Line", "LAG", "MSD", "MSD", xData, yData); if(Math.abs(1-b)<0.00001 && Math.abs(1-a)<0.00001){ chart.addSeries("y=a*(1-exp(-4*D*t/a))", xData, modelData); }else{ chart.addSeries("y=a*(1-b*exp(-4*c*D*t/a))", xData, modelData); } // Show it //new SwingWrapper(chart).displayChart(); return chart; }
[ "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion above.\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Parameter alpha\n@param b Shape parameter 1\n@param c Shape parameter 2\n@param d Diffusion coefficient" ]
[ "Adds a perspective camera constructed from the designated\nperspective camera to describe the shadow projection.\nThis type of camera is used for shadows generated by spot lights.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@param coneAngle spot light cone angle\n@return Perspective camera to use for shadow casting\n@see GVRSpotLight", "Reads an argument of type \"nstring\" from the request.", "Scans the jar file and returns the paths that match the includes and excludes.\n\n@return A List of paths\n@throws An IllegalStateException when an I/O error occurs in reading the jar file.", "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key", "Register a new SingleServiceWrapperInterceptor for the bean being\nwrapped, associate it with the PerformanceMonitor and tell it which methods\nto intercept.\n\n@param source An Attribute node from the spring configuration\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered", "Update the plane based on arcore best knowledge of the world\n\n@param scale", "Make sure that the Identity objects of garbage collected cached\nobjects are removed too.", "Set the duration option.\n@param value the duration option to set ({@link EndType} as string).", "Sets the SyncFrequency on this collection.\n\n@param syncFrequency the SyncFrequency that contains all the desired options\n\n@return A Task that completes when the SyncFrequency has been updated" ]
private AlbumArt requestArtworkInternal(final DataReference artReference, final CdjStatus.TrackType trackType, final boolean failIfPassive) { // First check if we are using cached data for this slot. MetadataCache cache = MetadataFinder.getInstance().getMetadataCache(SlotReference.getSlotReference(artReference)); if (cache != null) { final AlbumArt result = cache.getAlbumArt(null, artReference); if (result != null) { artCache.put(artReference, result); } return result; } // Then see if any registered metadata providers can offer it for us. final MediaDetails sourceDetails = MetadataFinder.getInstance().getMediaDetailsFor(artReference.getSlotReference()); if (sourceDetails != null) { final AlbumArt provided = MetadataFinder.getInstance().allMetadataProviders.getAlbumArt(sourceDetails, artReference); if (provided != null) { return provided; } } // At this point, unless we are allowed to actively request the data, we are done. We can always actively // request tracks from rekordbox. if (MetadataFinder.getInstance().isPassive() && failIfPassive && artReference.slot != CdjStatus.TrackSourceSlot.COLLECTION) { return null; } // We have to actually request the art using the dbserver protocol. ConnectionManager.ClientTask<AlbumArt> task = new ConnectionManager.ClientTask<AlbumArt>() { @Override public AlbumArt useClient(Client client) throws Exception { return getArtwork(artReference.rekordboxId, SlotReference.getSlotReference(artReference), trackType, client); } }; try { AlbumArt artwork = ConnectionManager.getInstance().invokeWithClientSession(artReference.player, task, "requesting artwork"); if (artwork != null) { // Our cache file load or network request succeeded, so add to the level 2 cache. artCache.put(artReference, artwork); } return artwork; } catch (Exception e) { logger.error("Problem requesting album art, returning null", e); } return null; }
[ "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any" ]
[ "Finish configuration.", "Validates specialization if this bean specializes another bean.", "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "Publish the changes to main registry", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}", "Use this API to fetch all the vpnsessionaction resources that are configured on netscaler.", "Scans the given file looking for a complete zip file format end of central directory record.\n\n@param file the file\n\n@return true if a complete end of central directory record could be found\n\n@throws IOException" ]
public static base_response add(nitro_service client, nslimitselector resource) throws Exception { nslimitselector addresource = new nslimitselector(); addresource.selectorname = resource.selectorname; addresource.rule = resource.rule; return addresource.add_resource(client); }
[ "Use this API to add nslimitselector." ]
[ "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label.", "Returns the size of the shadow element", "Init the headers of the table regarding the filters\n\n@return String[]", "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.", "This implementation will probably be slower than the metadata\nobject copy, but this was easier to implement.\n@see org.apache.ojb.otm.copy.ObjectCopyStrategy#copy(Object)", "Returns number of dependencies layers in the image.\n\n@param imageContent\n@return\n@throws IOException", "Use this API to update nd6ravariables resources.", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors." ]
public void seekToDayOfYear(String dayOfYear) { int dayOfYearInt = Integer.parseInt(dayOfYear); assert(dayOfYearInt >= 1 && dayOfYearInt <= 366); markDateInvocation(); dayOfYearInt = Math.min(dayOfYearInt, _calendar.getActualMaximum(Calendar.DAY_OF_YEAR)); _calendar.set(Calendar.DAY_OF_YEAR, dayOfYearInt); }
[ "Seeks to the given day within the current year\n@param dayOfYear the day of the year to seek to, represented as an integer\nfrom 1 to 366. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current year, the actual last day of the year\nwill be used." ]
[ "Parses all child Shapes recursively and adds them to the correct JSON\nObject\n\n@param childShapes\n@throws org.json.JSONException", "Attempt to send the specified field to the dbserver.\nThis low-level function is available only to the package itself for use in setting up the connection. It was\npreviously also used for sending parts of larger-scale messages, but because that sometimes led to them being\nfragmented into multiple network packets, and Windows rekordbox cannot handle that, full message sending no\nlonger uses this method.\n\n@param field the field to be sent\n\n@throws IOException if the field cannot be sent", "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field", "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version.", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler.", "TestNG returns a compound thread ID that includes the thread name and its numeric ID,\nseparated by an 'at' sign. We only want to use the thread name as the ID is mostly\nunimportant and it takes up too much space in the generated report.\n@param threadId The compound thread ID.\n@return The thread name.", "Parses an RgbaColor from a hexadecimal, rgb, rgba, hsl, or hsla\nvalue.\n\n@return returns the parsed color", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000." ]
public static String transformXPath(String originalXPath) { // use a list to maintain the multiple joined xqueries (if there are multiple queries joined with the "|" operator) List<StringBuilder> compiledXPaths = new ArrayList<>(1); int frameIdx = -1; boolean inQuote = false; int conditionLevel = 0; char startQuoteChar = 0; StringBuilder currentXPath = new StringBuilder(); compiledXPaths.add(currentXPath); for (int i = 0; i < originalXPath.length(); i++) { char curChar = originalXPath.charAt(i); if (!inQuote && curChar == '[') { frameIdx++; conditionLevel++; currentXPath.append("[windup:startFrame(").append(frameIdx).append(") and windup:evaluate(").append(frameIdx).append(", "); } else if (!inQuote && curChar == ']') { conditionLevel--; currentXPath.append(")]"); } else if (!inQuote && conditionLevel == 0 && curChar == '|') { // joining multiple xqueries currentXPath = new StringBuilder(); compiledXPaths.add(currentXPath); } else { if (inQuote && curChar == startQuoteChar) { inQuote = false; startQuoteChar = 0; } else if (curChar == '"' || curChar == '\'') { inQuote = true; startQuoteChar = curChar; } if (!inQuote && originalXPath.startsWith(WINDUP_MATCHES_FUNCTION_PREFIX, i)) { i += (WINDUP_MATCHES_FUNCTION_PREFIX.length() - 1); currentXPath.append("windup:matches(").append(frameIdx).append(", "); } else { currentXPath.append(curChar); } } } Pattern leadingAndTrailingWhitespace = Pattern.compile("(\\s*)(.*?)(\\s*)"); StringBuilder finalResult = new StringBuilder(); for (StringBuilder compiledXPath : compiledXPaths) { if (StringUtils.isNotBlank(compiledXPath)) { Matcher whitespaceMatcher = leadingAndTrailingWhitespace.matcher(compiledXPath); if (!whitespaceMatcher.matches()) continue; compiledXPath = new StringBuilder(); compiledXPath.append(whitespaceMatcher.group(1)); compiledXPath.append(whitespaceMatcher.group(2)); compiledXPath.append("/self::node()[windup:persist(").append(frameIdx).append(", ").append(".)]"); compiledXPath.append(whitespaceMatcher.group(3)); if (StringUtils.isNotBlank(finalResult)) finalResult.append("|"); finalResult.append(compiledXPath); } } return finalResult.toString(); }
[ "Performs the conversion from standard XPath to xpath with parameterization support." ]
[ "Converts any path into something that can be placed in an Android directory.\n\nTraverses any subdirectories and flattens it all into a single filename. Also\ngets rid of commonly seen illegal characters in tz identifiers, and lower cases\nthe entire thing.\n\n@param path the path to convert\n@return a flat path with no directories (and lower-cased)", "Initializes OJB for the purposes of this task.\n\n@return The metadata manager used by OJB", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, voldemort.server.protocol.admin.AsyncOperationStatus, String, long, voldemort.store.metadata.MetadataStore, Long diskQuotaSizeInKB)} instead.", "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", "Create and return a SelectIterator for the class using the default mapped query for all statement.", "Marks the given list of statements for deletion. It is verified that the\ncurrent document actually contains the statements before doing so. This\ncheck is based on exact statement equality, including qualifier order and\nstatement id.\n\n@param currentDocument\nthe document with the current statements\n@param deleteStatements\nthe list of statements to be deleted", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Use this API to fetch autoscaleaction resource of given name .", "Send an empty request using a standard HTTP connection." ]
protected final void addPathTo(final StringBuilder result) { if (this.parent != null) { this.parent.addPathTo(result); if (!(this.parent instanceof PJsonArray)) { result.append("."); } } result.append(getPathElement(this.contextName)); }
[ "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to." ]
[ "Check that each requirement is satisfied.\n\n@param currentPath the json path to the element being checked", "Get FieldDescriptor from Reference", "Inserts a String array value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String array object, or null\n@return this bundler instance to chain method calls", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "Loads the Configuration from the properties file.\n\nLoads the properties file, or uses defaults on failure.\n\n@see org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl#setFilename(java.lang.String)", "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Casts a ray into the scene graph, and returns the objects it intersects.\n\nThe ray is defined by its origin {@code [ox, oy, oz]} and its direction\n{@code [dx, dy, dz]}.\n\n<p>\nThe ray origin may be [0, 0, 0] and the direction components should be\nnormalized from -1 to 1: Note that the y direction runs from -1 at the\nbottom to 1 at the top. To construct a picking ray originating at the\nuser's head and pointing into the scene along the camera lookat vector,\npass in 0, 0, 0 for the origin and 0, 0, -1 for the direction.\n\n<p>\nThis method is thread safe because it guarantees that only\none thread at a time is doing a ray cast into a particular scene graph,\nand it extracts the hit data during within its synchronized block. You\ncan then examine the return list without worrying about another thread\ncorrupting your hit data.\n<p>\nDepending on the type of collider, that the hit location may not be exactly\nwhere the ray would intersect the scene object itself. Rather, it is\nwhere the ray intersects the collision geometry associated with the collider.\n\n@param scene\nThe {@link GVRScene} with all the objects to be tested.\n\n@param ox\nThe x coordinate of the ray origin.\n\n@param oy\nThe y coordinate of the ray origin.\n\n@param oz\nThe z coordinate of the ray origin.\n\n@param dx\nThe x vector of the ray direction.\n\n@param dy\nThe y vector of the ray direction.\n\n@param dz\nThe z vector of the ray direction.\n@return A list of {@link GVRPickedObject}, sorted by distance from the\ncamera rig. Each {@link GVRPickedObject} contains the scene object\nwhich owns the {@link GVRCollider} along with the hit\nlocation and distance from the camera.\n\n@since 1.6.6", "Removes a watermark from the item.\nIf the item did not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object" ]
private I_CmsSearchResultWrapper getSearchResults() { // The second parameter is just ignored - so it does not matter m_searchController.updateFromRequestParameters(pageContext.getRequest().getParameterMap(), false); I_CmsSearchControllerCommon common = m_searchController.getCommon(); // Do not search for empty query, if configured if (common.getState().getQuery().isEmpty() && (!common.getConfig().getIgnoreQueryParam() && !common.getConfig().getSearchForEmptyQueryParam())) { return new CmsSearchResultWrapper(m_searchController, null, null, m_cms, null); } Map<String, String[]> queryParams = null; boolean isEditMode = CmsJspTagEditable.isEditableRequest(pageContext.getRequest()); if (isEditMode) { String params = ""; if (common.getConfig().getIgnoreReleaseDate()) { params += "&fq=released:[* TO *]"; } if (common.getConfig().getIgnoreExpirationDate()) { params += "&fq=expired:[* TO *]"; } if (!params.isEmpty()) { queryParams = CmsRequestUtil.createParameterMap(params.substring(1)); } } CmsSolrQuery query = new CmsSolrQuery(null, queryParams); m_searchController.addQueryParts(query, m_cms); try { // use "complicated" constructor to allow more than 50 results -> set ignoreMaxResults to true // also set resource filter to allow for returning unreleased/expired resources if necessary. CmsSolrResultList solrResultList = m_index.search( m_cms, query.clone(), // use a clone of the query, since the search function manipulates the query (removes highlighting parts), but we want to keep the original one. true, isEditMode ? CmsResourceFilter.IGNORE_EXPIRATION : null); return new CmsSearchResultWrapper(m_searchController, solrResultList, query, m_cms, null); } catch (CmsSearchException e) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_TAG_SEARCH_SEARCH_FAILED_0), e); return new CmsSearchResultWrapper(m_searchController, null, query, m_cms, e); } }
[ "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\"." ]
[ "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Generates the points for an arc based on two bearings from a centre point\nand a radius.\n\n@param center The LatLong point of the center.\n@param startBearing North is 0 degrees, East is 90 degrees, etc.\n@param endBearing North is 0 degrees, East is 90 degrees, etc.\n@param radius In metres\n@return An array of LatLong points in an MVC array representing the arc.\nUsing this method directly you will need to push the centre point onto\nthe array in order to close it, if desired.", "Use this API to delete route6 resources of given names.", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Determine if a job name and job type are valid.\n@param jobName the name of the job\n@param jobType the class of the job\n@throws IllegalArgumentException if the name or type are invalid", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Creates a new block box from the given element with the given parent. No style is assigned to the resulting box.\n@param parent The parent box in the tree of boxes.\n@param n The element that this box belongs to.\n@param replaced When set to <code>true</code>, a replaced block box will be created. Otherwise, a normal non-replaced block will be created.\n@return The new block box.", "Returns the value of the primitive type from the given string value.\n\n@param value the value to parse\n@param cls the primitive type class\n@return the boxed type value or {@code null} if the given class is not a primitive type", "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
public void mark() { final long currentTimeMillis = clock.currentTimeMillis(); synchronized (queue) { if (queue.size() == capacity) { /* * we're all filled up already, let's dequeue the oldest * timestamp to make room for this new one. */ queue.removeFirst(); } queue.addLast(currentTimeMillis); } }
[ "Record a new event." ]
[ "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int", "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", "Finds to a given point p the point on the spline with minimum distance.\n@param p Point where the nearest distance is searched for\n@param nPointsPerSegment Number of interpolation points between two support points\n@return Point spline which has the minimum distance to p", "Gets all pending collaboration invites for the current user.\n\n@param api the API connection to use.\n@return a collection of pending collaboration infos.", "Use this API to fetch all the dnsview resources that are configured on netscaler.", "Clean up the environment object for the given storage engine", "Change contrast of the image\n\n@param contrast default is 0, pos values increase contrast, neg. values decrease contrast" ]
private void writeAssignmentBaselines(Project.Assignments.Assignment xml, ResourceAssignment mpxj) { Project.Assignments.Assignment.Baseline baseline = m_factory.createProjectAssignmentsAssignmentBaseline(); boolean populated = false; Number cost = mpxj.getBaselineCost(); if (cost != null && cost.intValue() != 0) { populated = true; baseline.setCost(DatatypeConverter.printExtendedAttributeCurrency(cost)); } Date date = mpxj.getBaselineFinish(); if (date != null) { populated = true; baseline.setFinish(DatatypeConverter.printExtendedAttributeDate(date)); } date = mpxj.getBaselineStart(); if (date != null) { populated = true; baseline.setStart(DatatypeConverter.printExtendedAttributeDate(date)); } Duration duration = mpxj.getBaselineWork(); if (duration != null && duration.getDuration() != 0) { populated = true; baseline.setWork(DatatypeConverter.printDuration(this, duration)); } if (populated) { baseline.setNumber("0"); xml.getBaseline().add(baseline); } for (int loop = 1; loop <= 10; loop++) { baseline = m_factory.createProjectAssignmentsAssignmentBaseline(); populated = false; cost = mpxj.getBaselineCost(loop); if (cost != null && cost.intValue() != 0) { populated = true; baseline.setCost(DatatypeConverter.printExtendedAttributeCurrency(cost)); } date = mpxj.getBaselineFinish(loop); if (date != null) { populated = true; baseline.setFinish(DatatypeConverter.printExtendedAttributeDate(date)); } date = mpxj.getBaselineStart(loop); if (date != null) { populated = true; baseline.setStart(DatatypeConverter.printExtendedAttributeDate(date)); } duration = mpxj.getBaselineWork(loop); if (duration != null && duration.getDuration() != 0) { populated = true; baseline.setWork(DatatypeConverter.printDuration(this, duration)); } if (populated) { baseline.setNumber(Integer.toString(loop)); xml.getBaseline().add(baseline); } } }
[ "Writes assignment baseline data.\n\n@param xml MSPDI assignment\n@param mpxj MPXJ assignment" ]
[ "Set the permissions for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param permissions\nThe permissions object\n@throws FlickrException", "Send Request Node info message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Use this API to add ipset.", "Returns the compact representations of all of the dependents of a task.\n\n@param task The task to get dependents on.\n@return Request object", "Get string value of flow context for current instance\n@return string value of flow context", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Use this API to enable the feature on Netscaler.\n@param feature feature to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact." ]
public List<MaterialSection> getSectionList() { List<MaterialSection> list = new LinkedList<>(); for(MaterialSection section : sectionList) list.add(section); for(MaterialSection section : bottomSectionList) list.add(section); return list; }
[ "Get the section list\n\nN.B. The section list contains the bottom sections\n@return the list of sections setted" ]
[ "Use this API to update vpnsessionaction.", "Logout the current session. After calling this method,\nthe session will be cleared", "Parses a String comprised of 0 or more comma-delimited key=value pairs.\n\n@param s the string to parse\n@return the Map of parsed key value pairs", "Allows the closure to be called for NullObject\n\n@param closure the closure to call on the object\n@return result of calling the closure", "Returns a Bic object holding the value of the specified String.\n\n@param bic the String to be parsed.\n@return a Bic object holding the value represented by the string argument.\n@throws BicFormatException if the String doesn't contain parsable Bic.\nUnsupportedCountryException if bic's country is not supported.", "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 project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project", "Set the named arguments.\n\n@param vars\nthe new named arguments", "Wrap an existing setter." ]
private static CharSequence convertReverseDNSIPv4(String str, int suffixStartIndex) throws AddressStringException { StringBuilder builder = new StringBuilder(suffixStartIndex); int segCount = 0; int j = suffixStartIndex; for(int i = suffixStartIndex - 1; i > 0; i--) { char c1 = str.charAt(i); if(c1 == IPv4Address.SEGMENT_SEPARATOR) { if(j - i <= 1) { throw new AddressStringException(str, i); } for(int k = i + 1; k < j; k++) { builder.append(str.charAt(k)); } builder.append(c1); j = i; segCount++; } } for(int k = 0; k < j; k++) { builder.append(str.charAt(k)); } if(segCount + 1 != IPv4Address.SEGMENT_COUNT) { throw new AddressStringException(str, 0); } return builder; }
[ "123.2.3.4 is 4.3.2.123.in-addr.arpa." ]
[ "Inserts a String value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null\n@return this bundler instance to chain method calls", "Get the first non-white X point\n@param img Image n memory\n@return the x start", "Use this API to change responderhtmlpage.", "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value.", "Replace the last element of an address with a static path element.\n\n@param element the path element\n@return the operation address transformer", "Captures System.out and System.err and redirects them\nto Redwood logging.\n@param captureOut True is System.out should be captured\n@param captureErr True if System.err should be captured", "Layout children inside the layout container", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "Write a date field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public static sslpolicylabel[] get(nitro_service service) throws Exception{ sslpolicylabel obj = new sslpolicylabel(); sslpolicylabel[] response = (sslpolicylabel[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the sslpolicylabel resources that are configured on netscaler." ]
[ "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Merges two lists together.\n\n@param one first list\n@param two second list\n@return merged lists", "Use this API to fetch nsrpcnode resources of given names .", "Compress contiguous partitions into format \"e-i\" instead of\n\"e, f, g, h, i\". This helps illustrate contiguous partitions within a\nzone.\n\n@param cluster\n@param zoneId\n@return pretty string of partitions per zone", "Group results by the specified field.\n\n@param fieldName by which to group results\n@param isNumber whether field isNumeric.\n@return this for additional parameter setting or to query", "Term value.\n\n@param term\nthe term\n@return the string", "characters callback.", "returns the total count of objects in the GeneralizedCounter.", "Updates the existing cluster such that we remove partitions mentioned\nfrom the stealer node and add them to the donor node\n\n@param currentCluster Existing cluster metadata. Both stealer and donor\nnode should already exist in this metadata\n@param stealerNodeId Id of node for which we are stealing the partitions\n@param donatedPartitions List of partitions we are moving\n@return Updated cluster metadata" ]
protected X509Certificate wireUpSslWithCyberVilliansCAOdo(String host, SslListener listener) { host = requestOriginalHostName.get(); // Add cybervillians CA(from browsermob) try { // see https://github.com/webmetrics/browsermob-proxy/issues/105 String escapedHost = host.replace('*', '_'); KeyStoreManager keyStoreManager = Utils.getKeyStoreManager(escapedHost); keyStoreManager.getKeyStore().deleteEntry(KeyStoreManager._caPrivKeyAlias); keyStoreManager.persist(); listener.setKeystore(new File("seleniumSslSupport" + File.separator + escapedHost + File.separator + "cybervillainsCA.jks").getAbsolutePath()); return keyStoreManager.getCertificateByAlias(escapedHost); } catch (Exception e) { throw new RuntimeException(e); } }
[ "This function wires up a SSL Listener with the cyber villians root CA and cert with the correct CNAME for the request\n\n@param host\n@param listener" ]
[ "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return", "Return true if the connection being released is the one that has been saved.", "The main method called from the command line.\n\n@param args the command line arguments", "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data", "Update the id field of the object in the database.", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Returns the proxies real subject. The subject will be materialized if\nnecessary.\n\n@return The subject", "Registers an image to be captured by the build-info proxy.\n\n@param imageTag\n@param host\n@param targetRepo\n@param buildInfoId\n@throws IOException\n@throws InterruptedException" ]
public IntBuffer getIntVec(String attributeName) { int size = getAttributeSize(attributeName); if (size <= 0) { return null; } size *= 4 * getVertexCount(); ByteBuffer buffer = ByteBuffer.allocateDirect(size).order(ByteOrder.nativeOrder()); IntBuffer data = buffer.asIntBuffer(); if (!NativeVertexBuffer.getIntVec(getNative(), attributeName, data, 0, 0)) { throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be accessed"); } return data; }
[ "Retrieves a vertex attribute as an integer buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntArray(String, int[])\n@see #getIntVec(String)" ]
[ "format with lazy-eval", "flush all messages to disk\n\n@param force flush anyway(ignore flush interval)", "Add a metadata profile.\n@see #loadProfile", "Randomly shuffle partitions between nodes within every zone.\n\n@param nextCandidateCluster cluster object.\n@param randomSwapAttempts See RebalanceCLI.\n@param randomSwapSuccesses See RebalanceCLI.\n@param randomSwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs List of store definitions\n@return updated cluster", "Update the underlying buffer using the integer\n\n@param number number to be stored in checksum buffer", "Add a custom query parameter to the _changes request. Useful for specifying extra parameters\nto a filter function for example.\n\n@param name the name of the query parameter\n@param value the value of the query parameter\n@return this Changes instance\n@since 2.5.0", "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created browser.\n\n@param newBrowser the new created browser object", "Use this API to fetch all the sslservice resources that are configured on netscaler.", "Use this API to update bridgetable resources." ]
private static void transposeBlock(DMatrixRBlock A , DMatrixRBlock A_tran, int indexA , int indexC , int width , int height ) { for( int i = 0; i < height; i++ ) { int rowIndexC = indexC + i; int rowIndexA = indexA + width*i; int end = rowIndexA + width; for( ; rowIndexA < end; rowIndexC += height, rowIndexA++ ) { A_tran.data[ rowIndexC ] = A.data[ rowIndexA ]; } } }
[ "Transposes an individual block inside a block matrix." ]
[ "Stop announcing ourselves and listening for status updates.", "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", "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null}\n@return The source of the requested POM, never {@code null}\n@since Apache-Maven-3.2.2 (MNG-5639)", "Commit the contents of the given temp file to either the main file, or, if we are not persisting\nto the main file, to the .last file in the configuration history\n@param temp temp file containing the latest configuration. Will not be {@code null}\n@throws ConfigurationPersistenceException", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects", "Read an array of bytes of a specified size.\n\n@param size number of bytes to read\n@return ByteArray instance", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "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" ]
private void updateCursorsInScene(GVRScene scene, boolean add) { synchronized (mCursors) { for (Cursor cursor : mCursors) { if (cursor.isActive()) { if (add) { addCursorToScene(cursor); } else { removeCursorFromScene(cursor); } } } } }
[ "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove" ]
[ "Use this API to fetch nsacl6 resources of given names .", "Get info for a given topic reply\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@param replyId\nUnique identifier of a reply for a given topic {@link Reply}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html\">API Documentation</a>", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Unregister the mbean with the given name\n\n@param server The server to unregister from\n@param name The name of the mbean to unregister", "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int", "Get a list of referrers from a given domain to a collection.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionReferrers.html\"", "Starts the one and only job instance in a separate Thread. Should be called exactly one time before\nthe operation is stopped.\n\n@param arguments {@inheritDoc}", "Converts the paged list.\n\n@param uList the resource list to convert from\n@return the converted list", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed" ]
public AT_Row setCharTranslator(CharacterTranslator charTranslator) { if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setCharTranslator(charTranslator); } } return this; }
[ "Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining" ]
[ "Callback when each frame in the indicator animation should be drawn.", "validates operation against the definition and sets model for the parameters passed.\n\n@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request\n@param model model node in which the value should be stored\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Marshal the assertion as a JSON object.\n\n@param assertion the assertion to marshal", "Read pattern information from the provided JSON object.\n@param patternJson the JSON object containing the pattern information.", "Queries a Search Index and returns ungrouped results. In case the query\nused grouping, an empty list is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the search query as a {@code List<T> }", "absolute for advancedJDBCSupport\n@param row", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Handle value change event on the individual dates list.\n@param event the change event.", "create a new instance of the class represented by the no-argument constructor provided\n@param constructor the zero argument constructor for the class\n@return a new instance of the class\n@throws InstantiationException\n@throws ClassNotPersistenceCapableException if the constructor is null or there is an\nexception while trying to create a new instance" ]
final void compress(final File backupFile, final AppenderRollingProperties properties) { if (this.isCompressed(backupFile)) { LogLog.debug("Backup log file " + backupFile.getName() + " is already compressed"); return; // try not to do unnecessary work } final long lastModified = backupFile.lastModified(); if (0L == lastModified) { LogLog.debug("Backup log file " + backupFile.getName() + " may have been scavenged"); return; // backup file may have been scavenged } final File deflatedFile = this.createDeflatedFile(backupFile); if (deflatedFile == null) { LogLog.debug("Backup log file " + backupFile.getName() + " may have been scavenged"); return; // an error occurred creating the file } if (this.compress(backupFile, deflatedFile, properties)) { deflatedFile.setLastModified(lastModified); FileHelper.getInstance().deleteExisting(backupFile); LogLog.debug("Compressed backup log file to " + deflatedFile.getName()); } else { FileHelper.getInstance().deleteExisting(deflatedFile); // clean up LogLog .debug("Unable to compress backup log file " + backupFile.getName()); } }
[ "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration." ]
[ "Multiplies all positions with a factor v\n@param v Multiplication factor", "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Pass a model object and return a SoyMapData if a model object happens\nto be a SoyMapData.\n\nAn implementation will also check if a passed in object is a Map and return\na SoyMapData wrapping that map", "Use this API to fetch vpnvserver_authenticationsamlpolicy_binding resources of given name .", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Retrieve and validate vector clock value from the REST request.\n\"X_VOLD_VECTOR_CLOCK\" is the vector clock header.\n\n@return true if present, false if missing", "Does this procedure return any values to the 'caller'?\n\n@return <code>true</code> if the procedure returns at least 1\nvalue that is returned to the caller.", "Remove the report directory." ]
public Set<D> getMatchedDeclaration() { Set<D> bindedSet = new HashSet<D>(); for (Map.Entry<ServiceReference<D>, Boolean> e : declarations.entrySet()) { if (e.getValue()) { bindedSet.add(getDeclaration(e.getKey())); } } return bindedSet; }
[ "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." ]
[ "Requests the cue list for a specific track ID, given a dbserver connection to a player that has already\nbeen set up.\n\n@param rekordboxId the track of interest\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 cue list, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "Parses a tag formatted as defined by the HTTP standard.\n\n@param httpTag The HTTP tag string; if it starts with 'W/' the tag will be\nmarked as weak and the data following the 'W/' used as the tag;\notherwise it should be surrounded with quotes (e.g.,\n\"sometag\").\n\n@return A new tag instance.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Set the model used by the right table.\n\n@param model table model", "Creates an operation to deploy existing deployment content to the runtime.\n\n@param deployment the deployment to deploy\n\n@return the deploy operation", "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative", "Use this API to add snmpuser resources.", "Updates value of entity in the table.", "Set the visibility of the object.\n\n@see Visibility\n@param visibility\nThe visibility of the object.\n@return {@code true} if the visibility was changed, {@code false} if it\nwasn't." ]
private static void createDirectory(Path path) throws IOException { try { Files.createDirectory(path); } catch (FileAlreadyExistsException e) { if (!Files.isDirectory(path)) { throw e; } } }
[ "Create a directory at the given path if it does not exist yet.\n\n@param path\nthe path to the directory\n@throws IOException\nif it was not possible to create a directory at the given\npath" ]
[ "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Remove a variable in the top variables layer.", "Construct a Libor index for a given curve and schedule.\n\n@param forwardCurveName\n@param schedule\n@return The Libor index or null, if forwardCurveName is null.", "Sets the stream for a resource.\nThis function allows you to provide a stream that is already open to\nan existing resource. It will throw an exception if that resource\nalready has an open stream.\n@param s InputStream currently open stream to use for I/O.", "Gets the appropriate cache dir\n\n@param ctx\n@return", "Loads the configuration file, using CmsVfsMemoryObjectCache for caching.\n\n@param cms the CMS context\n@return the template mapper configuration", "rollback the transaction", "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)", "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values" ]
public int expect(String pattern) throws MalformedPatternException, Exception { logger.trace("Searching for '" + pattern + "' in the reader stream"); return expect(pattern, null); }
[ "Attempts to detect the provided pattern as an exact match.\n@param pattern the pattern to find in the reader stream\n@return the number of times the pattern is found,\nor an error code\n@throws MalformedPatternException if the pattern is invalid\n@throws Exception if a generic error is encountered" ]
[ "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Return overall per token accuracy", "Exit the Application", "Use this API to add cachepolicylabel.", "Calculate the adjusted forward swaprate corresponding to a change of payoff unit from the given swapAnnuity to the given payoffUnit\nusing the Black-Scholes model for the swap rate together with the Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@return Convexity adjusted forward rate", "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Delete an object from the database by id." ]
private RecurrenceType getRecurrenceType(int value) { RecurrenceType result; if (value < 0 || value >= RECURRENCE_TYPES.length) { result = null; } else { result = RECURRENCE_TYPES[value]; } return result; }
[ "Retrieve the recurrence type.\n\n@param value integer value\n@return RecurrenceType instance" ]
[ "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Command to select a document from the POIFS for viewing.\n\n@param entry document to view", "Use this API to fetch clusternodegroup_binding resource of given name .", "For creating expression columns\n@return", "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object", "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Adds OPT_N | OPT_NODE option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Get a loader that lists the files in the current path,\nand monitors changes." ]
public static Node addPartitionToNode(final Node node, Integer donatedPartition) { return UpdateClusterUtils.addPartitionsToNode(node, Sets.newHashSet(donatedPartition)); }
[ "Add a partition to the node provided\n\n@param node The node to which we'll add the partition\n@param donatedPartition The partition to add\n@return The new node with the new partition" ]
[ "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch store definitions from\n@return The map container that maps store names to store definitions", "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "Optional operations to do before the multiple-threads start indexing\n\n@param backend", "Attempt to detect the current platform.\n\n@return The current platform.\n\n@throws UnsupportedPlatformException if the platform cannot be detected.", "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value", "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files", "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects.", "Converts any string into a string that is safe to use as a file name.\nThe result will only include ascii characters and numbers, and the \"-\",\"_\", and \".\" characters.", "Set trimmed value.\n\n@param t Trimmed value." ]
private List<Row> getRows(String tableName, String columnName, Integer id) { List<Row> result; List<Row> table = m_tables.get(tableName); if (table == null) { result = Collections.<Row> emptyList(); } else { if (columnName == null) { result = table; } else { result = new LinkedList<Row>(); for (Row row : table) { if (NumberHelper.equals(id, row.getInteger(columnName))) { result.add(row); } } } } return result; }
[ "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows" ]
[ "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Stops the background data synchronization thread and releases the local client.", "Compute the CRC32 of the segment of the byte array given by the\nspecificed size and offset\n\n@param bytes The bytes to checksum\n@param offset the offset at which to begin checksumming\n@param size the number of bytes to checksum\n@return The CRC32", "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link.", "Make superclasses method protected??", "Convert a method name into a property name.\n\n@param method target method\n@return property name", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Use this API to add dnsaaaarec resources." ]
void release() { if (mCurrentRequests != null) { synchronized (mCurrentRequests) { mCurrentRequests.clear(); mCurrentRequests = null; } } if (mDownloadQueue != null) { mDownloadQueue = null; } if (mDownloadDispatchers != null) { stop(); for (int i = 0; i < mDownloadDispatchers.length; i++) { mDownloadDispatchers[i] = null; } mDownloadDispatchers = null; } }
[ "Cancels all the pending & running requests and releases all the dispatchers." ]
[ "Gets the index input list.\n\n@return the index input list", "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise", "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", "Set the content type of a photo.\n\nThis method requires authentication with 'write' permission.\n\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_PHOTO\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_SCREENSHOT\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_OTHER\n@param photoId\nThe photo ID\n@param contentType\nThe contentType to set\n@throws FlickrException", "Creates a string representation of the given node. Useful for debugging.\n\n@return a debug string for the given node.", "Computes the eigenvalues of a 2 by 2 matrix using a faster but more prone to errors method. This\nis the typical method.", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Configures a RequestBuilder to send an RPC request.\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.", "Generates the specified number of random resource names with the same prefix.\n@param prefix the prefix to be used if possible\n@param maxLen the maximum length for the random generated name\n@param count the number of names to generate\n@return random names" ]
public boolean getBit(int index) { assertValidIndex(index); int word = index / WORD_LENGTH; int offset = index % WORD_LENGTH; return (data[word] & (1 << offset)) != 0; }
[ "Returns the bit at the specified index.\n@param index The index of the bit to look-up (0 is the least-significant bit).\n@return A boolean indicating whether the bit is set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string." ]
[ "close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateException", "Add a BETWEEN clause so the column must be between the low and high parameters.", "Creates a player wrapper for the Android MediaPlayer.", "Check if the the nodeId is present in the cluster managed by the metadata store\nor throw an exception.\n\n@param nodeId The nodeId to check existence of", "set the property destination type for given property\n\n@param propertyName\n@param destinationType", "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", "this method is called from the event methods", "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length", "Helper method to check if log4j is already configured" ]
public void deleteStoreDefinition(String storeName) { // acquire write lock writeLock.lock(); try { // Check if store exists if(!this.storeNames.contains(storeName)) { throw new VoldemortException("Requested store to be deleted does not exist !"); } // Otherwise remove from the STORES directory. Note: The version // argument is not required here since the // ConfigurationStorageEngine simply ignores this. this.storeDefinitionsStorageEngine.delete(storeName, null); // Update the metadata cache this.metadataCache.remove(storeName); // Re-initialize the store definitions. This is primarily required // to re-create the value for key: 'stores.xml'. This is necessary // for backwards compatibility. initStoreDefinitions(null); } finally { writeLock.unlock(); } }
[ "Function to delete the specified store from Metadata store. This involves\n\n1. Remove entry from the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeName specifies name of the store to be deleted." ]
[ "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Retrieve the default mapping between MPXJ resource fields and Primavera resource field names.\n\n@return mapping", "Returns a flag, indicating if the current event is a multi-day event.\nThe method is only called if the single event has an explicitely set end date\nor an explicitely changed whole day option.\n\n@return a flag, indicating if the current event takes lasts over more than one day.", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag", "Checks that arguments and parameter types match.\n@param params method parameters\n@param args type arguments\n@return -1 if arguments do not match, 0 if arguments are of the exact type and >0 when one or more argument is\nnot of the exact type but still match", "Set a proxy with authentication for REST-requests.\n\n@param proxyHost\n@param proxyPort\n@param username\n@param password", "Initialize elements of the panel displayed for the deactivated widget.", "To store an object in a quick & dirty way.", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector." ]
public static autoscaleaction get(nitro_service service, String name) throws Exception{ autoscaleaction obj = new autoscaleaction(); obj.set_name(name); autoscaleaction response = (autoscaleaction) obj.get_resource(service); return response; }
[ "Use this API to fetch autoscaleaction resource of given name ." ]
[ "Loaders call this method to register themselves. This method can be called by\nloaders provided by the application.\n\n@param textureClass\nThe class the loader is responsible for loading.\n\n@param asyncLoaderFactory\nThe factory object.", "Initialize the key set for an xml bundle.", "helper to calculate the navigationBar height\n\n@param context\n@return", "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", "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test", "calls _initMH on the method handler and then stores the result in the\nmethodHandler field as then new methodHandler", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Use this API to update responderparam.", "Prepares Artifactory server either from serverID or from ArtifactoryServer.\n\n@param artifactoryServerID\n@param pipelineServer\n@return" ]
public void setSize(int size) { if (size != MaterialProgressDrawable.LARGE && size != MaterialProgressDrawable.DEFAULT) { return; } final DisplayMetrics metrics = getResources().getDisplayMetrics(); if (size == MaterialProgressDrawable.LARGE) { mCircleHeight = mCircleWidth = (int) (CIRCLE_DIAMETER_LARGE * metrics.density); } else { mCircleHeight = mCircleWidth = (int) (CIRCLE_DIAMETER * metrics.density); } // force the bounds of the progress circle inside the circle view to // update by setting it to null before updating its size and then // re-setting it mCircleView.setImageDrawable(null); mProgress.updateSizes(size); mCircleView.setImageDrawable(mProgress); }
[ "One of DEFAULT, or LARGE." ]
[ "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved.", "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException", "Helper method to lookup a DAO if it has already been associated with the table-config. Otherwise this returns\nnull.", "Iterates over the elements of an iterable collection of items, starting from\na specified startIndex, and returns the index values of the items that match\nthe condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2", "Returns the finish date for this resource assignment.\n\n@return finish date", "Closes the output. Should be called after the JSON serialization was\nfinished.\n\n@throws IOException\nif there was a problem closing the output", "Execute JavaScript in the browser.\n\n@param code The code to execute.\n@return The return value of the JavaScript.\n@throws CrawljaxException when javascript execution failed.", "Send a data to Incoming Webhook endpoint.", "Gathers information, that couldn't be collected while tree traversal." ]
private void SetNewViewpoint(String url) { Viewpoint vp = null; // get the name without the '#' sign String vpURL = url.substring(1, url.length()); for (Viewpoint viewpoint : viewpoints) { if ( viewpoint.getName().equalsIgnoreCase(vpURL) ) { vp = viewpoint; } } if ( vp != null ) { // found the Viewpoint matching the url GVRCameraRig mainCameraRig = gvrContext.getMainScene().getMainCameraRig(); float[] cameraPosition = vp.getPosition(); mainCameraRig.getTransform().setPosition( cameraPosition[0], cameraPosition[1], cameraPosition[2] ); // Set the Gaze controller position which is where the pick ray // begins in the direction of camera.lookt() GVRCursorController gazeController = null; GVRInputManager inputManager = gvrContext.getInputManager(); List<GVRCursorController> controllerList = inputManager.getCursorControllers(); for(GVRCursorController controller: controllerList){ if(controller.getControllerType() == GVRControllerType.GAZE); { gazeController = controller; break; } } if ( gazeController != null) { gazeController.setOrigin(cameraPosition[0], cameraPosition[1], cameraPosition[2]); } } else { Log.e(TAG, "Viewpoint named " + vpURL + " not found (defined)."); } }
[ "end AnchorImplementation class" ]
[ "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "Return whether or not the data object has a default value passed for this field of this type.", "Specify a specific index to run the query against\n\n@param designDocument set the design document to use\n@param indexName set the index name to use\n@return this to set additional options", "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values", "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface.", "Copies information between specified streams and then closes\nboth of the streams.\n@throws java.io.IOException", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "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.", "Produces an IPv4 address section from any sequence of bytes in this IPv6 address section\n\n@param startIndex the byte index in this section to start from\n@param endIndex the byte index in this section to end at\n@throws IndexOutOfBoundsException\n@return\n\n@see #getEmbeddedIPv4AddressSection()\n@see #getMixedAddressSection()" ]
public void setBeliefValue(String agent_name, final String belief_name, final Object new_value, Connector connector) { ((IExternalAccess) connector.getAgentsExternalAccess(agent_name)) .scheduleStep(new IComponentStep<Integer>() { public IFuture<Integer> execute(IInternalAccess ia) { IBDIInternalAccess bia = (IBDIInternalAccess) ia; bia.getBeliefbase().getBelief(belief_name) .setFact(new_value); return null; } }).get(new ThreadSuspendable()); }
[ "This method changes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent to change a belief\n@param belief_name\nThe name of the belief to change\n@param new_value\nThe new value of the belief to be changed\n@param connector\nThe connector to get the external access" ]
[ "Sends the collected dependencies over to the master and record them.", "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 add clusterinstance.", "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", "Maps a field index to a ResourceField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return ResourceField instance", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Inserts a String array value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String array object, or null\n@return this bundler instance to chain method calls", "Add a clause where the ID is equal to the argument.", "Determines whether the given list contains a descriptor with the same name.\n\n@param defs The list to search\n@param obj The object that is searched for\n@return <code>true</code> if the list contains a descriptor with the same name" ]
public synchronized void setMonitoredPlayer(final int player) { if (player < 0) { throw new IllegalArgumentException("player cannot be negative"); } clearPlaybackState(); monitoredPlayer.set(player); if (player > 0) { // Start monitoring the specified player setPlaybackState(player, 0, false); // Start with default values for required simple state. VirtualCdj.getInstance().addUpdateListener(updateListener); MetadataFinder.getInstance().addTrackMetadataListener(metadataListener); cueList.set(null); // Assume the worst, but see if we have one available next. if (MetadataFinder.getInstance().isRunning()) { TrackMetadata metadata = MetadataFinder.getInstance().getLatestMetadataFor(player); if (metadata != null) { cueList.set(metadata.getCueList()); } } WaveformFinder.getInstance().addWaveformListener(waveformListener); if (WaveformFinder.getInstance().isRunning() && WaveformFinder.getInstance().isFindingDetails()) { waveform.set(WaveformFinder.getInstance().getLatestDetailFor(player)); } else { waveform.set(null); } BeatGridFinder.getInstance().addBeatGridListener(beatGridListener); if (BeatGridFinder.getInstance().isRunning()) { beatGrid.set(BeatGridFinder.getInstance().getLatestBeatGridFor(player)); } else { beatGrid.set(null); } try { TimeFinder.getInstance().start(); if (!animating.getAndSet(true)) { // Create the thread to update our position smoothly as the track plays new Thread(new Runnable() { @Override public void run() { while (animating.get()) { try { Thread.sleep(33); // Animate at 30 fps } catch (InterruptedException e) { logger.warn("Waveform animation thread interrupted; ending"); animating.set(false); } setPlaybackPosition(TimeFinder.getInstance().getTimeFor(getMonitoredPlayer())); } } }).start(); } } catch (Exception e) { logger.error("Unable to start the TimeFinder to animate the waveform detail view"); animating.set(false); } } else { // Stop monitoring any player animating.set(false); VirtualCdj.getInstance().removeUpdateListener(updateListener); MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener); WaveformFinder.getInstance().removeWaveformListener(waveformListener); cueList.set(null); waveform.set(null); beatGrid.set(null); } if (!autoScroll.get()) { invalidate(); } repaint(); }
[ "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop" ]
[ "Locates the services in the context classloader of the current thread.\n\n@param serviceType the type of the services to locate\n@param <X> the type of the service\n@return the service type loader", "Describes the scenario. Must be called before any step invocation.\n@param description the description\n@return this for a fluent interface", "get the type erasure signature", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Returns true if the lattice contains an entry at the specified location.\n\n@param maturityInMonths The maturity in months to check.\n@param tenorInMonths The tenor in months to check.\n@param moneynessBP The moneyness in bp to check.\n@return True iff there is an entry at the specified location.", "except for the ones that make the content appear under the system bars.", ">>>>>> measureUntilFull helper methods", "Copy the contents of this buffer begginning from the srcOffset to a destination byte array\n@param srcOffset\n@param destArray\n@param destOffset\n@param size" ]
private void getYearlyAbsoluteDates(Calendar calendar, List<Date> dates) { long startDate = calendar.getTimeInMillis(); calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.set(Calendar.MONTH, NumberHelper.getInt(m_monthNumber) - 1); int requiredDayNumber = NumberHelper.getInt(m_dayNumber); while (moreDates(calendar, dates)) { int useDayNumber = requiredDayNumber; int maxDayNumber = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); if (useDayNumber > maxDayNumber) { useDayNumber = maxDayNumber; } calendar.set(Calendar.DAY_OF_MONTH, useDayNumber); if (calendar.getTimeInMillis() < startDate) { calendar.add(Calendar.YEAR, 1); } dates.add(calendar.getTime()); calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.add(Calendar.YEAR, 1); } }
[ "Calculate start dates for a yearly absolute recurrence.\n\n@param calendar current date\n@param dates array of start dates" ]
[ "Takes a date, and retrieves the next business day\n\n@param dateString the date\n@param onlyBusinessDays only business days\n@return a string containing the next business day", "Store the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Checks the available space and sets max-height to the details field-set.", "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", "If the workspace for your project _is_ an organization, you must also\nsupply a `team` to share the project with.\n\nReturns the full record of the newly created project.\n\n@param workspace The workspace or organization to create the project in.\n@return Request object", "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object", "Records that there is no media mounted in a particular media player slot, updating listeners if this is a change,\nand clearing any affected items from our in-memory caches.\n\n@param slot the slot in which no media is mounted", "Gets the attributes provided by the processor.\n\n@return the attributes", "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object" ]
public static void main(String[] args) { DirectoryIterator iter = new DirectoryIterator(args); while(iter.hasNext()) System.out.println(iter.next().getAbsolutePath()); }
[ "Command line method to walk the directories provided on the command line\nand print out their contents\n\n@param args Directory names" ]
[ "Decomposes a submatrix. The results are written to the submatrix\nand to its internal matrix L.\n\n@param mat A matrix which has a submatrix that needs to be inverted\n@param indexStart the first index of the submatrix\n@param n The width of the submatrix that is to be inverted.\n@return True if it was able to finish the decomposition.", "Determine whether the given method is a \"readString\" method.\n\n@see Object#toString()", "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)", "Generic method used to create a field map from a block of data.\n\n@param data field map data", "Return the available format ids.", "Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files.", "Returns the compact records for all stories on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object", "Updates a path table value for column columnName\n\n@param columnName name of the column to update\n@param newData new content to set\n@param path_id ID of the path to update", "This method writes project property data to a JSON file." ]
GcsRestCreationToken handlePutResponse(final GcsRestCreationToken token, final boolean isFinalChunk, final int length, final HTTPRequestInfo reqInfo, HTTPResponse resp) throws Error, IOException { switch (resp.getResponseCode()) { case 200: if (!isFinalChunk) { throw new RuntimeException("Unexpected response code 200 on non-final chunk. Request: \n" + URLFetchUtils.describeRequestAndResponse(reqInfo, resp)); } else { return null; } case 308: if (isFinalChunk) { throw new RuntimeException("Unexpected response code 308 on final chunk: " + URLFetchUtils.describeRequestAndResponse(reqInfo, resp)); } else { return new GcsRestCreationToken(token.filename, token.uploadId, token.offset + length); } default: throw HttpErrorHandler.error(resp.getResponseCode(), URLFetchUtils.describeRequestAndResponse(reqInfo, resp)); } }
[ "Given a HTTPResponce, process it, throwing an error if needed and return a Token for the next\nrequest." ]
[ "Set the maximum date limit.", "compare between two points.", "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail", "Use this API to update vlan.", "Obtain newline-delimited headers from method\n\n@param method HttpMethod to scan\n@return newline-delimited headers", "Evict cached object\n\n@param key\nthe key indexed the cached object to be evicted", "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key", "Get a property as an long or throw an exception.\n\n@param key the property name", "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" ]
protected void processResourceBaseline(Row row) { Integer id = row.getInteger("RES_UID"); Resource resource = m_project.getResourceByUniqueID(id); if (resource != null) { int index = row.getInt("RB_BASE_NUM"); resource.setBaselineWork(index, row.getDuration("RB_BASE_WORK")); resource.setBaselineCost(index, row.getCurrency("RB_BASE_COST")); } }
[ "Read resource baseline values.\n\n@param row result set row" ]
[ "Use this API to fetch all the filterhtmlinjectionparameter resources that are configured on netscaler.", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "Reconnect the sequence flows and the flow nodes.\nDone after the initial pass so that we have all the target information.", "Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}.", "Returns the steps instances associated to CandidateSteps\n\n@param candidateSteps\nthe List of CandidateSteps\n@return The List of steps instances", "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.", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)" ]
public void addDataSource(int groupno, DataSource datasource) { // the loader takes care of validation if (groupno == 0) datasources.add(datasource); else if (groupno == 1) group1.add(datasource); else if (groupno == 2) group2.add(datasource); }
[ "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs." ]
[ "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Writes the results of the processing to a file.", "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException", "Unilaterally merge an update description into this update description.\n@param otherDescription the update description to merge into this\n@return this merged update description", "Use this API to fetch appfwhtmlerrorpage resource of given name .", "Encodes the given URI path with the given encoding.\n@param path the path to be encoded\n@param encoding the character encoding to encode to\n@return the encoded path\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Set the named arguments.\n\n@param vars\nthe new named arguments", "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 snmpalarm resources that are configured on netscaler." ]
public static base_responses add(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver addresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new ntpserver(); addresources[i].serverip = resources[i].serverip; addresources[i].servername = resources[i].servername; addresources[i].minpoll = resources[i].minpoll; addresources[i].maxpoll = resources[i].maxpoll; addresources[i].autokey = resources[i].autokey; addresources[i].key = resources[i].key; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add ntpserver resources." ]
[ "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", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Parses command-line and verifies metadata versions on all the cluster\nnodes\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "Use this API to add tmtrafficaction.", "Use this API to fetch all the nsdiameter resources that are configured on netscaler.", "Compute the proportional padding for all items in the cache\n@param cache Cache data set\n@return the uniform padding amount", "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Parses operations where the input comes from variables to its left only. Hard coded to only look\nfor transpose for now\n\n@param tokens List of all the tokens\n@param sequence List of operation sequence" ]
public static gslbsite get(nitro_service service, String sitename) throws Exception{ gslbsite obj = new gslbsite(); obj.set_sitename(sitename); gslbsite response = (gslbsite) obj.get_resource(service); return response; }
[ "Use this API to fetch gslbsite resource of given name ." ]
[ "Map the currency separator character to a symbol name.\n\n@param c currency separator character\n@return symbol name", "Creates a method signature.\n\n@param method Method instance\n@return method signature", "Convenience method for first removing all enum style constants and then adding the single one.\n\n@see #removeEnumStyleNames(UIObject, Class)\n@see #addEnumStyleName(UIObject, Style.HasCssName)", "As already described, but if separator is not null, then objects\nsuch as TaggedWord\n\n@param separator The string used to separate Word and Tag\nin TaggedWord, etc", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be XML.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "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", "Hide multiple channels. All other channels will be shown.\n@param channels The channels to hide", "Use this API to fetch all the sslservice resources that are configured on netscaler.", "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not" ]
private void deliverDatabaseUpdate(SlotReference slot, Database database, boolean available) { for (final DatabaseListener listener : getDatabaseListeners()) { try { if (available) { listener.databaseMounted(slot, database); } else { listener.databaseUnmounted(slot, database); } } catch (Throwable t) { logger.warn("Problem delivering rekordbox database availability update to listener", t); } } }
[ "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant" ]
[ "Stops the background stream thread.", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Assemble and send a packet that performs sync control, turning a device's sync mode on or off, or telling it\nto become the tempo master.\n\n@param target an update from the device whose sync state is to be set\n@param command the byte identifying the specific sync command to be sent\n\n@throws IOException if there is a problem sending the command to the device", "Generate a report about the targeted module dependencies\n\n@param moduleId String\n@param filters FiltersHolder\n@return DependencyReport", "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes", "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException", "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", "Creates a random symmetric matrix. The entire matrix will be filled in, not just a triangular\nportion.\n\n@param N Number of rows and columns\n@param nz_total Number of nonzero elements in the triangular portion of the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "Get FieldDescriptor from joined superclass." ]
private void setAnimationProgress(float progress) { if (isAlphaUsedForScale()) { setColorViewAlpha((int) (progress * MAX_ALPHA)); } else { ViewCompat.setScaleX(mCircleView, progress); ViewCompat.setScaleY(mCircleView, progress); } }
[ "Pre API 11, this does an alpha animation.\n\n@param progress" ]
[ "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", "If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any interval of the partition, this method returns x.\n\n@param x The point of interest.\n@return The discretized value.", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed", "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", "Gets or creates id of the entity type.\n\n@param entityType entity type name.\n@param allowCreate if set to true and if there is no entity type like entityType,\ncreate the new id for the entityType.\n@return entity type id.", "returns a sorted array of nested classes and interfaces", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "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." ]
private static boolean isBinary(InputStream in) { try { int size = in.available(); if (size > 1024) size = 1024; byte[] data = new byte[size]; in.read(data); in.close(); int ascii = 0; int other = 0; for (int i = 0; i < data.length; i++) { byte b = data[i]; if (b < 0x09) return true; if (b == 0x09 || b == 0x0A || b == 0x0C || b == 0x0D) ascii++; else if (b >= 0x20 && b <= 0x7E) ascii++; else other++; } return other != 0 && 100 * other / (ascii + other) > 95; } catch (IOException e) { throw E.ioException(e); } }
[ "Guess whether given file is binary. Just checks for anything under 0x09." ]
[ "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "Trade the request token for an access token, this is step three of authorization.\n@param oAuthRequestToken\nthis is the token returned by the {@link AuthInterface#getRequestToken} call.\n@param verifier", "state chain management ops below", "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Generates a unique signature for an annotated type. Members without\nannotations are omitted to reduce the length of the signature\n\n@param <X>\n@param annotatedType\n@return hash of a signature for a concrete annotated type", "Notifies that multiple header items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "calculate distance of two points\n\n@param a\n@param b\n@return", "SetLoop will either set the GVRNodeAnimation's Repeat Mode to REPEATED if loop is true.\nor it will set the GVRNodeAnimation's Repeat Mode to ONCE if loop is false\nif loop is set to TRUE, when it was previously FALSE, then start the Animation.\n@param doLoop\n@param gvrContext", "Use this API to save nsconfig." ]
protected void eciProcess() { EciMode eci = EciMode.of(content, "ISO8859_1", 3) .or(content, "ISO8859_2", 4) .or(content, "ISO8859_3", 5) .or(content, "ISO8859_4", 6) .or(content, "ISO8859_5", 7) .or(content, "ISO8859_6", 8) .or(content, "ISO8859_7", 9) .or(content, "ISO8859_8", 10) .or(content, "ISO8859_9", 11) .or(content, "ISO8859_10", 12) .or(content, "ISO8859_11", 13) .or(content, "ISO8859_13", 15) .or(content, "ISO8859_14", 16) .or(content, "ISO8859_15", 17) .or(content, "ISO8859_16", 18) .or(content, "Windows_1250", 21) .or(content, "Windows_1251", 22) .or(content, "Windows_1252", 23) .or(content, "Windows_1256", 24) .or(content, "SJIS", 20) .or(content, "UTF8", 26); if (EciMode.NONE.equals(eci)) { throw new OkapiException("Unable to determine ECI mode."); } eciMode = eci.mode; inputData = toBytes(content, eci.charset); encodeInfo += "ECI Mode: " + eci.mode + "\n"; encodeInfo += "ECI Charset: " + eci.charset.name() + "\n"; }
[ "Chooses the ECI mode most suitable for the content of this symbol." ]
[ "Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message", "Returns the supplied string with any trailing '\\n' removed.", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment entity", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Use this API to add sslcertkey resources.", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "The period of time to ban a node that gives an error on an operation.\n\n@param nodeBannagePeriod The period of time to ban the node\n@param unit The time unit of the given value\n\n@deprecated Use {@link #setFailureDetectorBannagePeriod(long)} instead" ]
@Override public DMatrixRMaj getA() { if( A.data.length < numRows*numCols ) { A = new DMatrixRMaj(numRows,numCols); } A.reshape(numRows,numCols, false); CommonOps_DDRM.mult(Q,R,A); return A; }
[ "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix." ]
[ "takes the pixels from a BufferedImage and stores them in an array", "Creates a new Box Developer Edition connection with App User token.\n@param userId the user ID to use for an App User.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing.", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder", "Checks that locking and update-lock are only used for fields of TIMESTAMP or INTEGER type.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances", "Returns if a MongoDB document is a todo item.", "gets the bytes, sharing the cached array and does not clone it" ]
protected FluentModelTImpl prepareForFutureCommitOrPostRun(FluentModelTImpl childResource) { if (this.isPostRunMode) { if (!childResource.taskGroup().dependsOn(this.parentTaskGroup)) { this.parentTaskGroup.addPostRunDependentTaskGroup(childResource.taskGroup()); } return childResource; } else { return childResource; } }
[ "Mark the given child resource as the post run dependent of the parent of this collection.\n\n@param childResource the child resource" ]
[ "Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.\n@param commandClass the command class to check the version for.", "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "Throws an exception if the current thread is not a GL thread.\n\n@since 1.6.5", "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed", "Decrements the client's use count, and makes it eligible for closing if it is no longer in use.\n\n@param client the dbserver connection client which is no longer being used for a task", "Exact conversion of displaced lognormal ATM volatiltiy to normal ATM volatility.\n\n@param forward The forward\n@param displacement The displacement (considering a displaced lognormal model, otherwise 0.\n@param maturity The maturity\n@param lognormalVolatiltiy The (implied) lognormal volatility.\n@return The (implied) normal volatility.\n@see <a href=\"http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2687742\">Dimitroff, Fries, Lichtner and Rodi: Lognormal vs Normal Volatilities and Sensitivities in Practice</a>", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception" ]
public void setPixelPerUnit(double pixelPerUnit) { if (pixelPerUnit < MINIMUM_PIXEL_PER_UNIT) { pixelPerUnit = MINIMUM_PIXEL_PER_UNIT; } if (pixelPerUnit > MAXIMUM_PIXEL_PER_UNIT) { pixelPerUnit = MAXIMUM_PIXEL_PER_UNIT; } this.pixelPerUnit = pixelPerUnit; setPixelPerUnitBased(true); postConstruct(); }
[ "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)" ]
[ "Returns the integer value o the given belief", "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration", "Performs the closure within a transaction using a cached connection.\nIf the closure takes a single argument, it will be called\nwith the connection, otherwise it will be called with no arguments.\n\n@param closure the given closure\n@throws SQLException if a database error occurs", "Use this API to fetch all the systemsession resources that are configured on netscaler.", "return the workspace size needed for ctc", "Indicates that contextual session bean instance has been constructed.", "Returns a flag, indicating if search should be performed using a wildcard if the empty query is given.\n@return A flag, indicating if search should be performed using a wildcard if the empty query is given.", "Adds a new metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Internal method used to retrieve a byte array from one\nor more embedded data blocks. Consecutive data blocks may\nneed to be concatenated by this method in order to retrieve\nthe complete set of data.\n\n@param blocks list of data blocks\n@param length expected length of the data\n@return byte array" ]
public static final long getLong(byte[] data, int offset) { long result = 0; int i = offset; for (int shiftBy = 0; shiftBy < 64; shiftBy += 8) { result |= ((long) (data[i] & 0xff)) << shiftBy; ++i; } return result; }
[ "Read a long int from a byte array.\n\n@param data byte array\n@param offset start offset\n@return long value" ]
[ "Use this API to fetch dnsnsecrec resource of given name .", "Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException", "This method is provided to allow an absolute period of time\nrepresented by start and end dates into a duration in working\ndays based on this calendar instance. This method takes account\nof any exceptions defined for this calendar.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Removes an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return this metadata object.", "Send a packet to the target device telling it to load the specified track from the specified source player.\n\n@param target an update from the player that you want to have load a track\n@param rekordboxId the identifier of a track within the source player's rekordbox database\n@param sourcePlayer the device number of the player from which the track should be loaded\n@param sourceSlot the media slot from which the track should be loaded\n@param sourceType the type of track to be loaded\n\n@throws IOException if there is a problem sending the command\n@throws IllegalStateException if the {@code VirtualCdj} is not active", "Returns a new instance of the given class using the constructor with the specified parameter.\n\n@param target The class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance" ]
public Object get(int dataSet) throws SerializationException { Object result = null; for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); DataSetInfo info = ds.getInfo(); if (info.getDataSetNumber() == dataSet) { result = getData(ds); break; } } return result; }
[ "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" ]
[ "Clears the handler hierarchy.", "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one.", "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", "This method writes project properties to a Planner file.", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Build a request URL.\n\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException\n@deprecated use {@link #buildSecureUrl(java.lang.String, int, java.lang.String, java.util.Map) }", "Will auto format the given string to provide support for pickadate.js formats." ]
public void cache(Identity oid, Object obj) { try { jcsCache.put(oid.toString(), obj); } catch (CacheException e) { throw new RuntimeCacheException(e); } }
[ "makes object obj persistent to the Objectcache under the key oid." ]
[ "Makes the scene object pickable by eyes. However, the object has to be touchable to process\nthe touch events.\n\n@param sceneObject", "try to find a field in class c, recurse through class hierarchy if necessary\n\n@throws NoSuchFieldException if no Field was found into the class hierarchy", "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Sets the lower limits for the \"moving\" body translation relative to joint point.\n\n@param limitX the X axis lower translation limit\n@param limitY the Y axis lower translation limit\n@param limitZ the Z axis lower translation limit", "Check that a list allowing null and empty item contains at least one element that is\nnot blank.\n@param list can't be null\n@return", "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return", "Write an int attribute.\n\n@param name attribute name\n@param value attribute value", "Renames the current base log file to the roll file name.\n\n@param from\nThe current base log file.\n@param to\nThe backup file." ]
public Session startSshSessionAndObtainSession() { Session session = null; try { JSch jsch = new JSch(); if (sshMeta.getSshLoginType() == SshLoginType.KEY) { String workingDir = System.getProperty("user.dir"); String privKeyAbsPath = workingDir + "/" + sshMeta.getPrivKeyRelativePath(); logger.debug("use privkey: path: " + privKeyAbsPath); if (!PcFileNetworkIoUtils.isFileExist(privKeyAbsPath)) { throw new RuntimeException("file not found at " + privKeyAbsPath); } if (sshMeta.isPrivKeyUsePassphrase() && sshMeta.getPassphrase() != null) { jsch.addIdentity(privKeyAbsPath, sshMeta.getPassphrase()); } else { jsch.addIdentity(privKeyAbsPath); } } session = jsch.getSession(sshMeta.getUserName(), targetHost, sshMeta.getSshPort()); if (sshMeta.getSshLoginType() == SshLoginType.PASSWORD) { session.setPassword(sshMeta.getPassword()); } session.setConfig("StrictHostKeyChecking", "no"); } catch (Exception t) { throw new RuntimeException(t); } return session; }
[ "Start ssh session and obtain session.\n\n@return the session" ]
[ "Find the index of the specified name in field name array.", "Use this API to update sslcertkey.", "Return a list of unique values for a namespace and predicate.\n\nThis method does not require authentication.\n\n@param namespace\nThe namespace that all values should be restricted to.\n@param predicate\nThe predicate that all values should be restricted to.\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList\n@throws FlickrException", "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\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.", "Release the broker instance.", "Fetch the next event from a given stream\n@return the next event\n@throws IOException any io exception that could occur", "Deserializes a variable, NOT checking whether the datatype is custom\n@param s\n@param variableType\n@return", "Update an object in the database to change its id to the newId parameter.", "handle white spaces." ]
public static snmpuser get(nitro_service service, String name) throws Exception{ snmpuser obj = new snmpuser(); obj.set_name(name); snmpuser response = (snmpuser) obj.get_resource(service); return response; }
[ "Use this API to fetch snmpuser resource of given name ." ]
[ "Process StepStartedEvent. New step will be created and added to\nstepStorage.\n\n@param event to process", "slave=true", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag", "Returns the organization of a given module\n\n@return Organization", "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "Ensure that the nodeList is either null or empty.\n\n@param nodeList the nodeList to ensure to be either null or empty\n@param expression the expression was used to fine the nodeList\n@throws SpinXPathException if the nodeList is either null or empty", "Use this API to update vlan.", "Create the grid feature type.\n\n@param mapContext the map context containing the information about the map the grid will be\nadded to.\n@param geomClass the geometry type" ]
public static base_response apply(nitro_service client) throws Exception { nspbr6 applyresource = new nspbr6(); return applyresource.perform_operation(client,"apply"); }
[ "Use this API to apply nspbr6." ]
[ "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Parse priority.\n\n\n@param priority priority value\n@return Priority instance", "Return a long value which is the number of rows in the table.", "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.", "Associate an input stream with the operation. Closing the input stream\nis the responsibility of the caller.\n\n@param in the input stream. Cannot be {@code null}\n@return a builder than can be used to continue building the operation", "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files.", "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object", "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will do combine the WHERE statement of the two query builders with a SQL \"AND\". See\n{@link #joinOr(QueryBuilder)}.\n</p>", "remove the user profile with id from the db." ]
@Deprecated private static ListAttributeDefinition wrapAsList(final AttributeDefinition def) { final ListAttributeDefinition list = new ListAttributeDefinition(new SimpleListAttributeDefinition.Builder(def.getName(), def) .setElementValidator(def.getValidator())) { @Override public ModelNode getNoTextDescription(boolean forOperation) { final ModelNode model = super.getNoTextDescription(forOperation); setValueType(model); return model; } @Override protected void addValueTypeDescription(final ModelNode node, final ResourceBundle bundle) { setValueType(node); } @Override public void marshallAsElement(final ModelNode resourceModel, final boolean marshalDefault, final XMLStreamWriter writer) throws XMLStreamException { throw new RuntimeException(); } @Override protected void addAttributeValueTypeDescription(ModelNode node, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle) { setValueType(node); } @Override protected void addOperationParameterValueTypeDescription(ModelNode node, String operationName, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle) { setValueType(node); } private void setValueType(ModelNode node) { node.get(ModelDescriptionConstants.VALUE_TYPE).set(ModelType.STRING); } }; return list; }
[ "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def" ]
[ "Obtains a British Cutover zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier", "Init the headers of the table regarding the filters\n\n@return String[]", "Gets the addresses of the child resources under the given resource.\n\n@param context the operation context\n@param registry registry entry representing the resource\n@param resource the current resource\n@param validChildType a single child type to which the results should be limited. If {@code null} the result\nshould include all child types\n@return map where the keys are the child types and the values are a set of child names associated with a type", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Use this API to fetch vpath resource of given name .", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly" ]
public <Result> Result process(IUnitOfWork<Result, State> work) { releaseReadLock(); acquireWriteLock(); try { if (log.isTraceEnabled()) log.trace("process - " + Thread.currentThread().getName()); return modify(work); } finally { if (log.isTraceEnabled()) log.trace("Downgrading from write lock to read lock..."); acquireReadLock(); releaseWriteLock(); } }
[ "Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference" ]
[ "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Pretty-print the object.", "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "Validates that we only have allowable filters.\n\n<p>Note that equality and ancestor filters are allowed, however they may result in\ninefficient sharding.", "Reads the given text stream and compressed its content.\n\n@param stream The input stream\n@return A byte array containing the GZIP-compressed content of the stream\n@throws IOException If an error ocurred", "Use this API to fetch all the sslparameter resources that are configured on netscaler.", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set", "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null" ]
public static base_response rename(nitro_service client, cmppolicylabel resource, String new_labelname) throws Exception { cmppolicylabel renameresource = new cmppolicylabel(); renameresource.labelname = resource.labelname; return renameresource.rename_resource(client,new_labelname); }
[ "Use this API to rename a cmppolicylabel resource." ]
[ "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", "Add tables to the tree.\n\n@param parentNode parent tree node\n@param file tables container", "Returns the index of a key in the set.\n\n@param key The key to search for.\n@return Returns the index of the key if it exists, else a negative integer.", "Add a clause where the ID is equal to the argument.", "A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0", "Remove script for a given ID\n\n@param id ID of script\n@throws Exception exception", "Triggers expansion of the parent.", "Use this API to delete sslcipher of given name.", "See also WELD-1454.\n\n@param ij\n@return the formatted string" ]
public int getPartition(byte[] key, byte[] value, int numReduceTasks) { try { /** * {@link partitionId} is the Voldemort primary partition that this * record belongs to. */ int partitionId = ByteUtils.readInt(value, ByteUtils.SIZE_OF_INT); /** * This is the base number we will ultimately mod by {@link numReduceTasks} * to determine which reduce task to shuffle to. */ int magicNumber = partitionId; if (getSaveKeys() && !buildPrimaryReplicasOnly) { /** * When saveKeys is enabled (which also implies we are generating * READ_ONLY_V2 format files), then we are generating files with * a replica type, with one file per replica. * * Each replica is sent to a different reducer, and thus the * {@link magicNumber} is scaled accordingly. * * The downside to this is that it is pretty wasteful. The files * generated for each replicas are identical to one another, so * there's no point in generating them independently in many * reducers. * * This is one of the reasons why buildPrimaryReplicasOnly was * written. In this mode, we only generate the files for the * primary replica, which means the number of reducers is * minimized and {@link magicNumber} does not need to be scaled. */ int replicaType = (int) ByteUtils.readBytes(value, 2 * ByteUtils.SIZE_OF_INT, ByteUtils.SIZE_OF_BYTE); magicNumber = magicNumber * getStoreDef().getReplicationFactor() + replicaType; } if (!getReducerPerBucket()) { /** * Partition files can be split in many chunks in order to limit the * maximum file size downloaded and handled by Voldemort servers. * * {@link chunkId} represents which chunk of partition then current * record belongs to. */ int chunkId = ReadOnlyUtils.chunk(key, getNumChunks()); /** * When reducerPerBucket is disabled, all chunks are sent to a * different reducer. This increases parallelism at the expense * of adding more load on Hadoop. * * {@link magicNumber} is thus scaled accordingly, in order to * leverage the extra reducers available to us. */ magicNumber = magicNumber * getNumChunks() + chunkId; } /** * Finally, we mod {@link magicNumber} by {@link numReduceTasks}, * since the MapReduce framework expects the return of this function * to be bounded by the number of reduce tasks running in the job. */ return magicNumber % numReduceTasks; } catch (Exception e) { throw new VoldemortException("Caught exception in getPartition()!" + " key: " + ByteUtils.toHexString(key) + ", value: " + ByteUtils.toHexString(value) + ", numReduceTasks: " + numReduceTasks, e); } }
[ "This function computes which reduce task to shuffle a record to." ]
[ "Checks length and compare order of field names with declared PK fields in metadata.", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.\nNo UnsupportedEncodingException to handle as it is dealt with in this method.", "Retrieve the state object associated with the specified interceptor instance and property\nname on this request context.\n\n@param interceptor the interceptor instance\n@param stateName the name key that the state object was stored under\n@param stateType class of the type the stored state should be returned as\n@param <T> the type the stored state should be returned as\n@return the stored state object\n@see #setState(HttpConnectionInterceptor, String, Object)\n@since 2.6.0", "Use this API to fetch wisite_binding resource of given name .", "Return configuration tweaks in a format appropriate for ness-jdbc DatabaseModule.", "Returns the local collection representing the given namespace.\n\n@param namespace the namespace referring to the local collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the local collection representing the given namespace.", "Emit an enum 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(Enum, Object...)", "Use this API to add gslbsite." ]
void rejectAttributes(RejectedAttributesLogContext rejectedAttributes, ModelNode attributeValue) { for (RejectAttributeChecker checker : checks) { rejectedAttributes.checkAttribute(checker, name, attributeValue); } }
[ "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value" ]
[ "Validate the Combination filter field in Multi configuration jobs", "Get the status of the upload session. It contains the number of parts that are processed so far,\nthe total number of parts required for the commit and expiration date and time of the upload session.\n@return the status.", "Replies the elements of the left map without the pairs in the right map.\nIf the pair's values differ from\nthe value within the map, the map entry is not removed.\n\n<p>\nThe difference is an immutable\nsnapshot of the state of the maps at the time this method is called. It\nwill never change, even if the maps change at a later time.\n</p>\n\n<p>\nSince this method uses {@code HashMap} instances internally, the keys of\nthe supplied maps must be well-behaved with respect to\n{@link Object#equals} and {@link Object#hashCode}.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to update.\n@param right the pairs to remove.\n@return the map with the content of the left map except the pairs of the right map.\n@since 2.15", "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.", "Replaces the model used to depict the controller in the scene.\n\n@param controllerModel root of hierarchy to use for controller model\n@see #getControllerModel()\n@see #showControllerModel(boolean)", "Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Use this API to fetch dnsview resource of given name .", "Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists" ]
public void setDynamicValue(String attribute, String value) { if (null == m_dynamicValues) { m_dynamicValues = new ConcurrentHashMap<String, String>(); } m_dynamicValues.put(attribute, value); }
[ "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache" ]
[ "Scale all widgets in Main Scene hierarchy\n@param scale", "Set default values for annotations.\nInitial annotation take precedence over the default annotation when both annotation types are present\n\n@param defaultAnnotations default value for annotations", "replaces the old with the new item. The new item will not be added when the old one is not\nfound.\n\n@param oldObject will be removed\n@param newObject is added only when hte old item is removed", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "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", "Updates the information about the user status for this terms of service with any info fields that have\nbeen modified locally.\n@param info the updated info.", "Sets the package pattern to match against.", "Creates a new capsule\n\n@param mode the capsule mode, or {@code null} for the default mode\n@param wrappedJar a path to a capsule JAR that will be launched (wrapped) by the empty capsule in {@code jarFile}\nor {@code null} if no wrapped capsule is wanted\n@return the capsule.", "Read the parameters on initialization.\n\n@see org.apache.solr.update.processor.UpdateRequestProcessorFactory#init(org.apache.solr.common.util.NamedList)" ]
@Override public void add(String headerName, String headerValue) { List<String> headerValues = headers.get(headerName); if (headerValues == null) { headerValues = new LinkedList<String>(); this.headers.put(headerName, headerValues); } headerValues.add(headerValue); }
[ "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)" ]
[ "Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\notherwise.", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account", "Multiplied a transpose orthogonal matrix Q by the specified rotator. This is used\nto update the U and V matrices. Updating the transpose of the matrix is faster\nsince it only modifies the rows.\n\n\n@param Q Orthogonal matrix\n@param m Coordinate of rotator.\n@param n Coordinate of rotator.\n@param c cosine of rotator.\n@param s sine of rotator.", "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with differences", "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "The only indication that a task is a SubProject is the contents\nof the subproject file name field. We test these here then add a skeleton\nsubproject structure to match the way we do things with MPP files.", "This method writes resource data to a Planner file.", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Moves our current playback position to the specified beat; this will be reflected in any status and beat packets\nthat we are sending. An incoming value less than one will jump us to the first beat.\n\n@param beat the beat that we should pretend to be playing" ]
public byte[] toByteArray() { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(this); return baos.toByteArray(); } catch (IOException e) { throw E.ioException(e); } }
[ "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array" ]
[ "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created.", "Use this API to fetch dnsnsecrec resource of given name .", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "Checks if the given AnnotatedType is sensible, otherwise provides warnings.", "Get the target file for misc items.\n\n@param item the misc item\n@return the target location", "Processes changes on aliases, updating the planned state of the item.\n\n@param addAliases\naliases that should be added to the document\n@param deleteAliases\naliases that should be removed from the document", "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}" ]