query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@ArgumentsChecked @Throws(IllegalNullArgumentException.class) public static byte checkByte(@Nonnull final Number number) { Check.notNull(number, "number"); if (!isInByteRange(number)) { throw new IllegalNumberRangeException(number.toString(), BYTE_MIN, BYTE_MAX); } return number.byteValue(); }
[ "Checks if a given number is in the range of a byte.\n\n@param number\na number which should be in the range of a byte (positive or negative)\n\n@see java.lang.Byte#MIN_VALUE\n@see java.lang.Byte#MAX_VALUE\n\n@return number as a byte (rounding might occur)" ]
[ "Implement the persistence handler for storing the user properties.", "Allows to access the names of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used.\n@return the set of custom rounding ids, never {@code null}.", "Updates all inverse associations managed by a given entity.", "Set a proxy with authentication for REST-requests.\n\n@param proxyHost\n@param proxyPort\n@param username\n@param password", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Use this API to fetch vlan_interface_binding resources of given name .", "Use this API to add clusternodegroup.", "Use this API to link sslcertkey resources.", "Accesses a property from the DB configuration for the selected DB.\n\n@param name the name of the property\n@return the value of the property" ]
public static appfwwsdl get(nitro_service service) throws Exception{ appfwwsdl obj = new appfwwsdl(); appfwwsdl[] response = (appfwwsdl[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the appfwwsdl resources that are configured on netscaler." ]
[ "Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device", "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered operation", "Get string value of flow context for current instance\n@return string value of flow context", "EAP 7.0", "Use this API to fetch a appflowglobal_binding resource .", "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param cal Calendar instance representing the date\n@param time Date instance representing the time of day", "Obtain the path ID for a profile\n\n@param identifier Can be the path ID, or friendly name\n@param profileId\n@return\n@throws Exception" ]
@RequestMapping(value = "api/edit/server", method = RequestMethod.POST) public @ResponseBody ServerRedirect addRedirectToProfile(Model model, @RequestParam(value = "profileId", required = false) Integer profileId, @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier, @RequestParam(value = "srcUrl", required = true) String srcUrl, @RequestParam(value = "destUrl", required = true) String destUrl, @RequestParam(value = "clientUUID", required = true) String clientUUID, @RequestParam(value = "hostHeader", required = false) String hostHeader) throws Exception { if (profileId == null && profileIdentifier == null) { throw new Exception("profileId required"); } if (profileId == null) { profileId = ProfileService.getInstance().getIdFromName(profileIdentifier); } int clientId = ClientService.getInstance().findClient(clientUUID, profileId).getId(); int redirectId = ServerRedirectService.getInstance().addServerRedirectToProfile("", srcUrl, destUrl, hostHeader, profileId, clientId); return ServerRedirectService.getInstance().getRedirect(redirectId); }
[ "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception" ]
[ "Use this API to fetch server_service_binding resources of given name .", "Interim and final clusters ought to have same partition counts, same\nzones, and same node state. Partitions per node may of course differ.\n\n@param interimCluster\n@param finalCluster", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Calculate the finish variance.\n\n@return finish variance", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Use this API to fetch dnssuffix resource of given name .", "Infer the type of and create a new output variable using the results from the right side of the equation.\nIf the type is already known just return that." ]
public static String minus(CharSequence self, Pattern pattern) { return pattern.matcher(self).replaceFirst(""); }
[ "Remove a part of a CharSequence. This replaces the first occurrence\nof the pattern within self with '' and returns the result.\n\n@param self a String\n@param pattern a Pattern representing the part to remove\n@return a String minus the part to be removed\n@since 2.2.0" ]
[ "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Returns true if string starts and ends with double-quote\n@param str\n@return", "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException", "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "return currently-loaded Proctor instance, throwing IllegalStateException if not loaded", "Produces the Soundex key for the given string.", "Validates the binding types", "Retrieve and validate the timeout value from the REST request.\n\"X_VOLD_REQUEST_TIMEOUT_MS\" is the timeout header.\n\n@return true if present, false if missing", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id." ]
private String dbProp(String name) { String dbType = m_setupBean.getDatabase(); Object prop = m_setupBean.getDatabaseProperties().get(dbType).get(dbType + "." + name); if (prop == null) { return ""; } return prop.toString(); }
[ "Accesses a property from the DB configuration for the selected DB.\n\n@param name the name of the property\n@return the value of the property" ]
[ "Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "Gets the Jaccard distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Jaccard distance between x and y.", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Delete an object from the database.", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information", "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved" ]
private static void dumpRelationList(List<Relation> relations) { if (relations != null && relations.isEmpty() == false) { if (relations.size() > 1) { System.out.print('"'); } boolean first = true; for (Relation relation : relations) { if (!first) { System.out.print(','); } first = false; System.out.print(relation.getTargetTask().getID()); Duration lag = relation.getLag(); if (relation.getType() != RelationType.FINISH_START || lag.getDuration() != 0) { System.out.print(relation.getType()); } if (lag.getDuration() != 0) { if (lag.getDuration() > 0) { System.out.print("+"); } System.out.print(lag); } } if (relations.size() > 1) { System.out.print('"'); } } }
[ "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list" ]
[ "Returns the texture magnification filter\n\nIf missing, defaults to {@link GL_LINEAR }\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture magnification filter", "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "Get the primitive attributes for the associated object.\n\n@return attributes for associated objects\n@deprecated replaced by {@link #getAllAttributes()} after introduction of nested associations", "Parses formatter attributes.\n\n@param formatterLoc the node location\n@return the map of formatter attributes (unmodifiable)", "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "Puts a message in the wake-up queue of this node to send the message on wake-up.\n@param serialMessage the message to put in the wake-up queue.", "Use this API to restart dbsmonitors.", "Use this API to fetch clusterinstance_binding resource of given name ." ]
private ProctorContext getProctorContext(final HttpServletRequest request) throws IllegalAccessException, InstantiationException { final ProctorContext proctorContext = contextClass.newInstance(); final BeanWrapper beanWrapper = new BeanWrapperImpl(proctorContext); for (final PropertyDescriptor descriptor : beanWrapper.getPropertyDescriptors()) { final String propertyName = descriptor.getName(); if (!"class".equals(propertyName)) { // ignore class property which every object has final String parameterValue = request.getParameter(propertyName); if (parameterValue != null) { beanWrapper.setPropertyValue(propertyName, parameterValue); } } } return proctorContext; }
[ "Do some magic to turn request parameters into a context object" ]
[ "Retrieve a duration in the form required by Phoenix.\n\n@param duration Duration instance\n@return formatted duration", "Replace HTML entities\n@param content Content\n@param map Map\n@return Replaced content", "Given OGC PropertyIsLike Filter information, construct an SQL-compatible 'like' pattern.\n\nSQL % --> match any number of characters _ --> match a single character\n\nNOTE; the SQL command is 'string LIKE pattern [ESCAPE escape-character]' We could re-define the escape character,\nbut I'm not doing to do that in this code since some databases will not handle this case.\n\nMethod: 1.\n\nExamples: ( escape ='!', multi='*', single='.' ) broadway* -> 'broadway%' broad_ay -> 'broad_ay' broadway ->\n'broadway'\n\nbroadway!* -> 'broadway*' (* has no significance and is escaped) can't -> 'can''t' ( ' escaped for SQL\ncompliance)\n\n\nNOTE: we also handle \"'\" characters as special because they are end-of-string characters. SQL will convert ' to\n'' (double single quote).\n\nNOTE: we don't handle \"'\" as a 'special' character because it would be too confusing to have a special char as\nanother special char. Using this will throw an error (IllegalArgumentException).\n\n@param escape escape character\n@param multi ?????\n@param single ?????\n@param pattern pattern to match\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore.", "Set the buttons span text.", "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.", "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list.", "Deletes a FilePath file.\n\n@param workspace The build workspace.\n@param path The path in the workspace.\n@throws IOException In case of missing file.", "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0" ]
private void processResponse(Response<ByteArray, Object> response, Pipeline pipeline) { if(response == null) { logger.warn("RoutingTimedout on waiting for async ops; parallelResponseToWait: " + numNodesPendingResponse + "; preferred-1: " + (preferred - 1) + "; quorumOK: " + quorumSatisfied + "; zoneOK: " + zonesSatisfied); } else { numNodesPendingResponse = numNodesPendingResponse - 1; numResponsesGot = numResponsesGot + 1; if(response.getValue() instanceof Exception && !(response.getValue() instanceof ObsoleteVersionException)) { if(logger.isDebugEnabled()) { logger.debug("PUT {key:" + key + "} handling async put error"); } if(response.getValue() instanceof QuotaExceededException) { /** * TODO Not sure if we need to count this Exception for * stats or silently ignore and just log a warning. While * QuotaExceededException thrown from other places mean the * operation failed, this one does not fail the operation * but instead stores slops. Introduce a new Exception in * client side to just monitor how mamy Async writes fail on * exceeding Quota? * */ if(logger.isDebugEnabled()) { logger.debug("Received quota exceeded exception after a successful " + pipeline.getOperation().getSimpleName() + " call on node " + response.getNode().getId() + ", store '" + pipelineData.getStoreName() + "', master-node '" + pipelineData.getMaster().getId() + "'"); } } else if(handleResponseError(response, pipeline, failureDetector)) { if(logger.isDebugEnabled()) { logger.debug("PUT {key:" + key + "} severe async put error, exiting parallel put stage"); } return; } if(PipelineRoutedStore.isSlopableFailure(response.getValue()) || response.getValue() instanceof QuotaExceededException) { /** * We want to slop ParallelPuts which fail due to * QuotaExceededException. * * TODO Though this is not the right way of doing things, in * order to avoid inconsistencies and data loss, we chose to * slop the quota failed parallel puts. * * As a long term solution - 1) either Quota management * should be hidden completely in a routing layer like * Coordinator or 2) the Server should be able to * distinguish between serial and parallel puts and should * only quota for serial puts * */ pipelineData.getSynchronizer().tryDelegateSlop(response.getNode()); } if(logger.isDebugEnabled()) { logger.debug("PUT {key:" + key + "} handled async put error"); } } else { pipelineData.incrementSuccesses(); failureDetector.recordSuccess(response.getNode(), response.getRequestTime()); pipelineData.getZoneResponses().add(response.getNode().getZoneId()); } } }
[ "Process the response by reporting proper log and feeding failure\ndetectors\n\n@param response\n@param pipeline" ]
[ "Specify the socket to be used as underlying socket to connect\nto the APN service.\n\nThis assumes that the socket connects to a SOCKS proxy.\n\n@deprecated use {@link ApnsServiceBuilder#withProxy(Proxy)} instead\n@param proxySocket the underlying socket for connections\n@return this", "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Use this API to fetch all the cacheobject resources that are configured on netscaler.", "Use this API to add dnstxtrec resources.", "Notification that the server process finished.", "Add the given pair into the map.\n\n<p>\nIf the pair key already exists in the map, its value is replaced\nby the value in the pair, and the old value in the map is returned.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to add into the map.\n@return the value previously associated to the key, or <code>null</code>\nif the key was not present in the map before the addition.\n@since 2.15", "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset" ]
protected final StyleSupplier<FeatureSource> createStyleFunction( final Template template, final String styleString) { return new StyleSupplier<FeatureSource>() { @Override public Style load( final MfClientHttpRequestFactory requestFactory, final FeatureSource featureSource) { if (featureSource == null) { throw new IllegalArgumentException("Feature source cannot be null"); } final String geomType = featureSource.getSchema() == null ? Geometry.class.getSimpleName().toLowerCase() : featureSource.getSchema().getGeometryDescriptor().getType().getBinding() .getSimpleName(); final String styleRef = styleString != null ? styleString : geomType; final StyleParser styleParser = AbstractFeatureSourceLayerPlugin.this.parser; return OptionalUtils.or( () -> template.getStyle(styleRef), () -> styleParser.loadStyle(template.getConfiguration(), requestFactory, styleRef)) .orElseGet(() -> template.getConfiguration().getDefaultStyle(geomType)); } }; }
[ "Create a function that will create the style on demand. This is called later in a separate thread so\nany blocking calls will not block the parsing of the layer attributes.\n\n@param template the template for this map\n@param styleString a string that identifies a style." ]
[ "Map the currency separator character to a symbol name.\n\n@param c currency separator character\n@return symbol name", "Returns the total number of times the app has been launched\n@return Total number of app launches in int", "calculate and set position to menu items", "Creates a scheduled thread pool where each thread has the daemon\nproperty set to true. This allows the program to quit without\nexplicitly calling shutdown on the pool\n\n@param corePoolSize the number of threads to keep in the pool,\neven if they are idle\n\n@return a newly created scheduled thread pool", "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", "In MongoDB the equivalent of a stored procedure is a stored Javascript.\n\n@param storedProcedureName name of stored procedure\n@param params query parameters\n@param tupleContext the tuple context\n\n@return the result as a {@link ClosableIterator}", "Carry out any post-processing required to tidy up\nthe data read from the database.", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index" ]
protected void internalReleaseConnection(ConnectionHandle connectionHandle) throws SQLException { if (!this.cachedPoolStrategy){ connectionHandle.clearStatementCaches(false); } if (connectionHandle.getReplayLog() != null){ connectionHandle.getReplayLog().clear(); connectionHandle.recoveryResult.getReplaceTarget().clear(); } if (connectionHandle.isExpired() || (!this.poolShuttingDown && connectionHandle.isPossiblyBroken() && !isConnectionHandleAlive(connectionHandle))){ if (connectionHandle.isExpired()) { connectionHandle.internalClose(); } ConnectionPartition connectionPartition = connectionHandle.getOriginatingPartition(); postDestroyConnection(connectionHandle); maybeSignalForMoreConnections(connectionPartition); connectionHandle.clearStatementCaches(true); return; // don't place back in queue - connection is broken or expired. } connectionHandle.setConnectionLastUsedInMs(System.currentTimeMillis()); if (!this.poolShuttingDown){ putConnectionBackInPartition(connectionHandle); } else { connectionHandle.internalClose(); } }
[ "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException" ]
[ "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", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "No need to expose. Client side work.", "Is alternative.\n\n@param annotated the annotated\n@param mergedStereotypes merged stereotypes\n@return true if alternative, false otherwise", "Create a Css Selector Transform", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur.", "Sort and order steps to avoid unwanted generation", "Helper function to bind script bundler to various targets" ]
public static String getEncoding(CmsObject cms, CmsResource file) { CmsProperty encodingProperty = CmsProperty.getNullProperty(); try { encodingProperty = cms.readPropertyObject(file, CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, true); } catch (CmsException e) { LOG.debug(e.getLocalizedMessage(), e); } return CmsEncoder.lookupEncoding(encodingProperty.getValue(""), OpenCms.getSystemInfo().getDefaultEncoding()); }
[ "Returns the encoding of the file.\nEncoding is read from the content-encoding property and defaults to the systems default encoding.\nSince properties can change without rewriting content, the actual encoding can differ.\n\n@param cms {@link CmsObject} used to read properties of the given file.\n@param file the file for which the encoding is requested\n@return the file's encoding according to the content-encoding property, or the system's default encoding as default." ]
[ "Use this API to fetch appfwwsdl resource of given name .", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "Adds a Statement to a given collection of statement groups.\nIf the statement id is not null and matches that of an existing statement,\nthis statement will be replaced.\n\n@param statement\n@param claims\n@return", "Get a property as a float or throw an exception.\n\n@param key the property name", "Sets the left padding for all cells in the table.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "Check, if the current user has permissions on the document's resource.\n@param cms the context\n@param doc the solr document (from the search result)\n@param filter the resource filter to use for checking permissions\n@return <code>true</code> iff the resource mirrored by the search result can be read by the current user.", "Use this API to fetch dnstxtrec resources of given names .", "format with lazy-eval" ]
static ChangeEvent<BsonDocument> changeEventForLocalDelete( final MongoNamespace namespace, final BsonValue documentId, final boolean writePending ) { return new ChangeEvent<>( new BsonDocument(), OperationType.DELETE, null, namespace, new BsonDocument("_id", documentId), null, writePending); }
[ "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id." ]
[ "Close off the connection.\n\n@throws SQLException", "capture 3D screenshot", "Copy the contents of the given InputStream into a String.\nLeaves the stream open when done.\n@param in the InputStream to copy from\n@return the String that has been copied to\n@throws IOException in case of I/O errors", "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.", "Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.\n\n@param byteIndex the byte index to start\n@throws IndexOutOfBoundsException if the index is less than zero or bigger than 7\n@return", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "This method extracts resource data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Returns the real key object.", "If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent\nstarvation of low priority items\n\n@param groupClass\n@return" ]
private void populateCurrencySettings(Record record, ProjectProperties properties) { properties.setCurrencySymbol(record.getString(0)); properties.setSymbolPosition(record.getCurrencySymbolPosition(1)); properties.setCurrencyDigits(record.getInteger(2)); Character c = record.getCharacter(3); if (c != null) { properties.setThousandsSeparator(c.charValue()); } c = record.getCharacter(4); if (c != null) { properties.setDecimalSeparator(c.charValue()); } }
[ "Populates currency settings.\n\n@param record MPX record\n@param properties project properties" ]
[ "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Searches for brackets which are only used to construct new matrices by concatenating\n1 or more matrices together", "create logs with given partition number\n\n@param topic the topic name\n@param partitions partition number\n@param forceEnlarge enlarge the partition number of log if smaller than runtime\n@return the partition number of the log after enlarging", "Finds an ancestor of a specific type, if possible.\n\n<p>Example: (New York city target, {@link Type#COUNTRY}) returns (US country target)", "Returns the 'Up' - vector of the camera coordinate system.\n\nThe returned vector is relative to the coordinate space defined by the\ncorresponding node.<p>\n\nThe 'right' vector of the camera coordinate system is the cross product\nof the up and lookAt vectors. The default value is 0|1|0. The vector\nmay be normalized, but it needn't.<p>\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the 'Up' vector", "Use this API to fetch appfwpolicylabel_binding resource of given name .", "Load physics information for the current avatar\n@param filename name of physics file\n@param scene scene the avatar is part of\n@throws IOException if physics file cannot be parsed", "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.", "Transforms an input String into HTML using the given Configuration.\n\n@param input\nThe String to process.\n@param configuration\nThe Configuration.\n@return The processed String.\n@since 0.7\n@see Configuration" ]
public IPAddressSeqRange[] subtract(IPAddressSeqRange other) { IPAddress otherLower = other.getLower(); IPAddress otherUpper = other.getUpper(); IPAddress lower = this.getLower(); IPAddress upper = this.getUpper(); if(compareLowValues(lower, otherLower) < 0) { if(compareLowValues(upper, otherUpper) > 0) { // l ol ou u return createPair(lower, otherLower.increment(-1), otherUpper.increment(1), upper); } else { int comp = compareLowValues(upper, otherLower); if(comp < 0) { // l u ol ou return createSingle(); } else if(comp == 0) { // l u == ol ou return createSingle(lower, upper.increment(-1)); } return createSingle(lower, otherLower.increment(-1)); // l ol u ou } } else if(compareLowValues(otherUpper, upper) >= 0) { // ol l u ou return createEmpty(); } else { int comp = compareLowValues(otherUpper, lower); if(comp < 0) { return createSingle(); // ol ou l u } else if(comp == 0) { return createSingle(lower.increment(1), upper); //ol ou == l u } return createSingle(otherUpper.increment(1), upper); // ol l ou u } }
[ "Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.\nIf the result has length 2, the two ranges are in increasing order.\n\n@param other\n@return" ]
[ "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file", "add various getAt and setAt methods for primitive arrays\n@param receiver the receiver class\n@param name the name of the method\n@param args the argument classes", "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", "Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add", "Adds a slash to a path if it doesn't end with a slash.\n\n@param folderName The path to append a possible slash.\n@return The new, correct path.", "the absolute and relative calls are the trickiest parts. We have to\nmove across cursor boundaries potentially.\n\na + row value indexes from beginning of resultset\na - row value indexes from the end of th resulset.\n\nCalling absolute(1) is the same as calling first().\nCalling absolute(-1) is the same as calling last().", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Display web page, but no user interface - close", "This ensures that we are able to use the default preference from JSDK, to check basically if we are in Android or Not\n@param preference\n@throws BackingStoreException" ]
public PhotoList<Photo> getRecent(Set<String> extras, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_RECENT); if (extras != null && !extras.isEmpty()) { parameters.put(Extras.KEY_EXTRAS, StringUtilities.join(extras, ",")); } if (perPage > 0) { parameters.put("per_page", Integer.toString(perPage)); } if (page > 0) { parameters.put("page", Integer.toString(page)); } Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); PhotoList<Photo> photos = PhotoUtils.createPhotoList(photosElement); return photos; }
[ "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException" ]
[ "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", "Creates a field map for assignments.\n\n@param props props data", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "build a complete set of local files, files from referenced projects, and dependencies.", "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id", "Return an instance of this class.\n\n@param container Solr CoreContainer container object in order to create a server object.\n\n@return instance of CmsSolrSpellchecker", "Close the open stream.\n\nClose the stream if it was opened before", "Computes the power of a complex number in polar notation\n\n@param a Complex number\n@param N Power it is to be multiplied by\n@param result Result", "Creates needed textfields for general label in footer groups.\n@param djgroup\n@param jgroup" ]
public static void init(String jobId) { JobContext parent = current_.get(); JobContext ctx = new JobContext(parent); current_.set(ctx); // don't call setJobId(String) // as it will trigger listeners -- TODO fix me ctx.jobId = jobId; if (null == parent) { Act.eventBus().trigger(new JobContextInitialized(ctx)); } }
[ "make it public for CLI interaction to reuse JobContext" ]
[ "Checks if the specified max levels is correct.\n\n@param userMaxLevels the maximum number of levels in the tree\n@param defaultMaxLevels the default max number of levels\n@return the validated max levels", "Remove all controllers but leave input manager running.\n@return number of controllers removed", "Set the map attribute.\n\n@param name the attribute name\n@param attribute the attribute", "Determines if the queue identified by the given key is a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a delayed queue, false otherwise", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Get the DMR path for this node. For leaves, the DMR path is the path of its parent.\n@return The DMR path for this node.", "Send the message with the given attributes and the given body using the specified SMTP settings\n\n@param to Destination address(es)\n@param from Sender address\n@param subject Message subject\n@param body Message content. May either be a MimeMultipart or another body that java mail recognizes\n@param contentType MIME content type of body\n@param serverSetup Server settings to use for connecting to the SMTP server", "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", "To populate the dropdown list from the jelly" ]
private void handleFailedSendDataRequest(SerialMessage originalMessage) { ZWaveNode node = this.getNode(originalMessage.getMessageNode()); if (node.getNodeStage() == NodeStage.NODEBUILDINFO_DEAD) return; if (!node.isListening() && originalMessage.getPriority() != SerialMessage.SerialMessagePriority.Low) { ZWaveWakeUpCommandClass wakeUpCommandClass = (ZWaveWakeUpCommandClass)node.getCommandClass(ZWaveCommandClass.CommandClass.WAKE_UP); if (wakeUpCommandClass != null) { wakeUpCommandClass.setAwake(false); wakeUpCommandClass.putInWakeUpQueue(originalMessage); //it's a battery operated device, place in wake-up queue. return; } } else if (!node.isListening() && originalMessage.getPriority() == SerialMessage.SerialMessagePriority.Low) return; node.incrementResendCount(); logger.error("Got an error while sending data to node {}. Resending message.", node.getNodeId()); this.sendData(originalMessage); }
[ "Handles a failed SendData request. This can either be because of the stick actively reporting it\nor because of a time-out of the transaction in the send thread.\n@param originalMessage the original message that was sent" ]
[ "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Returns a set of beans specialized by this bean. An empty set is returned if this bean does not specialize another beans.", "Calculate the screen size of a tile. Normally the screen size is expressed in pixels and should therefore be\nintegers, but for the sake of accuracy we try to keep a double value as long as possible.\n\n@param worldSize\nThe width and height of a tile in the layer's world coordinate system.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile screen width and the second value is\nthe tile screen height.", "Cleanup function to remove all allocated listeners", "blocks until there is a connection", "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "This returns a string from decimal digit smallestDigit to decimal digit\nbiggest digit. Smallest digit is labeled 1, and the limits are\ninclusive.", "Gets any previous versions of this file. Note that only users with premium accounts will be able to retrieve\nprevious versions of their files.\n\n@return a list of previous file versions." ]
protected void parseOperationsL(TokenList tokens, Sequence sequence) { if( tokens.size == 0 ) return; TokenList.Token token = tokens.first; if( token.getType() != Type.VARIABLE ) throw new ParseError("The first token in an equation needs to be a variable and not "+token); while( token != null ) { if( token.getType() == Type.FUNCTION ) { throw new ParseError("Function encountered with no parentheses"); } else if( token.getType() == Type.SYMBOL && token.getSymbol() == Symbol.TRANSPOSE) { if( token.previous.getType() == Type.VARIABLE ) token = insertTranspose(token.previous,tokens,sequence); else throw new ParseError("Expected variable before transpose"); } token = token.next; } }
[ "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" ]
[ "returns array with length 3 and optional entries version, encoding, standalone", "Concats two arrays.\n\n@param first the first array\n@param second the second array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first one", "Append the given char as a decimal HTML entity.\n\n@param out\nThe StringBuilder to write to.\n@param value\nThe character.", "Update properties for a specific client id\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@param active - true false depending on if the client should be active\n@param reset - true to reset the state of a client(clears settings for all paths and disables the client)\n@return\n@throws Exception", "This method is used to extract the resource hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param resource resource instance\n@param data hyperlink data block", "convert filename to clean filename", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "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" ]
public String makeReport(String name, String report) { long increment = Long.valueOf(report); long currentLineCount = globalLineCounter.addAndGet(increment); if (currentLineCount >= maxScenarios) { return "exit"; } else { return "ok"; } }
[ "Handles reports by consumers\n\n@param name the name of the reporting consumer\n@param report the number of lines the consumer has written since last report\n@return \"exit\" if maxScenarios has been reached, \"ok\" otherwise" ]
[ "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification.", "Print formatted string in the center of 80 chars line, left and right padded.\n\n@param format\nThe string format pattern\n@param args\nThe string format arguments", "Add image in the document.\n\n@param context\nPDF context\n@param imageResult\nimage\n@throws BadElementException\nPDF construction problem\n@throws IOException\nPDF construction problem", "This logic is shared for all actual types i.e. raw types, parameterized types and generic array types.", "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "Add a range to this LOD group. Specify the scene object that should be displayed in this\nrange. Add the LOG group as a component to the parent scene object. The scene objects\nassociated with each range will automatically be added as children to the parent.\n@param range show the scene object if the camera distance is greater than this value\n@param sceneObject scene object that should be rendered when in this range\n@throws IllegalArgumentException if range is negative or sceneObject null", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Deletes a vertex from this list." ]
public void process(InputStream is) throws Exception { readHeader(is); readVersion(is); readTableData(readTableHeaders(is), is); }
[ "Extract raw table data from the input stream.\n\n@param is input stream" ]
[ "Use this API to fetch nstrafficdomain_binding resource of given name .", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Determine which math transform to use when creating the coordinate of the label.\n\n@param mapCrs the crs of the map, used if the {@link #labelProjection} is not defined.", "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table", "Decomposes the input matrix 'a' and makes sure it isn't modified.", "Returns an iterator over the items in this collection.\n@return an iterator over the items in this collection.", "Use this API to update nsrpcnode resources.", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "Removes the specified type from the frame." ]
public static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) { Class<A> annotationType = annotatedType.getJavaClass(); Map<Class<? extends Annotation>, Annotation> annotationMap = new HashMap<Class<? extends Annotation>, Annotation>(); annotationMap.putAll(buildAnnotationMap(annotatedType.getAnnotations())); annotationMap.putAll(buildAnnotationMap(classTransformer.getTypeStore().get(annotationType))); // Annotations and declared annotations are the same for annotation type return new EnhancedAnnotationImpl<A>(annotatedType, annotationMap, annotationMap, classTransformer); }
[ "we can't call this method 'of', cause it won't compile on JDK7" ]
[ "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "if you don't have an argument, choose the value that is going to be inserted into the map instead\n\n@param commandLineOption specification of the command line options\n@param value the value that is going to be inserted into the map instead of the argument", "Sets the currently edited locale.\n@param locale the locale to set.", "The user making this call must be a member of the team in order to add others.\nThe user to add must exist in the same organization as the team in order to be added.\nThe user to add can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the added user.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Inserts 'token' after 'where'. if where is null then it is inserted to the beginning of the list.\n@param where Where 'token' should be inserted after. if null the put at it at the beginning\n@param token The token that is to be inserted", "Read properties from the active profiles.\n\nGoes through all active profiles (in the order the\nprofiles are defined in settings.xml) and extracts\nthe desired properties (if present). The prefix is\nused when looking up properties in the profile but\nnot in the returned map.\n\n@param prefix The prefix to use or null if no prefix should be used\n@param properties The properties to read\n\n@return A map containing the values for the properties that were found", "Use this API to count dnszone_domain_binding resources configued on NetScaler.", "Sets the path name for this ID\n\n@param pathId ID of path\n@param pathName Name of path", "Create a new Violation for the AST node.\n@param sourceCode - the SourceCode\n@param node - the Groovy AST Node\n@param message - the message for the violation; defaults to null" ]
static void doDifference( Map<String, String> left, Map<String, String> right, Map<String, String> onlyOnLeft, Map<String, String> onlyOnRight, Map<String, String> updated ) { onlyOnRight.clear(); onlyOnRight.putAll(right); for (Map.Entry<String, String> entry : left.entrySet()) { String leftKey = entry.getKey(); String leftValue = entry.getValue(); if (right.containsKey(leftKey)) { String rightValue = onlyOnRight.remove(leftKey); if (!leftValue.equals(rightValue)) { updated.put(leftKey, leftValue); } } else { onlyOnLeft.put(leftKey, leftValue); } } }
[ "calculate the difference of the two maps, so we know what was added, removed & updated\n@param left\n@param right\n@param onlyOnLeft\n@param onlyOnRight\n@param updated" ]
[ "Set the week day the events should occur.\n@param weekDay the week day to set.", "Executes the API action \"wbsetlabel\" for the given parameters.\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param value\nthe value of the label to set. Set it to null to remove the label.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the label as returned by the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference", "Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found", "Gets the property by key converted to lowercase if requested\n@param key property key\n@param lowerCase convert property to lowercase if it is true, keep the original one if it is\nfalse\n@return node property", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "Returns a BSON version document representing a new version with a new instance ID, and\nversion counter of zero.\n@return a BsonDocument representing a synchronization version", "Check whether the patch can be applied to a given target.\n\n@param condition the conditions\n@param target the target\n@throws PatchingException", "Use this API to add dnssuffix." ]
public static vlan_interface_binding[] get(nitro_service service, Long id) throws Exception{ vlan_interface_binding obj = new vlan_interface_binding(); obj.set_id(id); vlan_interface_binding response[] = (vlan_interface_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vlan_interface_binding resources of given name ." ]
[ "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", "Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTimeout the watchTimeout to set\n@param timeUnit Time granularity", "FIXME Remove this method", "Add a dependency to the module.\n\n@param dependency Dependency", "Create a BoxStoragePolicyAssignment for a BoxStoragePolicy.\n@param api the API connection to be used by the resource.\n@param policyID the policy ID of the BoxStoragePolicy.\n@param userID the user ID of the to assign the BoxStoragePolicy to.\n@return the information about the BoxStoragePolicyAssignment created.", "Returns if this maps the specified cell.\n\n@param cell the cell name\n@return {@code true} if this maps the column, {@code false} otherwise", "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "Sets the specified date attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Remove a tag from a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param tagId\nThe tag ID\n@throws FlickrException" ]
public static Bytes toBytes(Text t) { return Bytes.of(t.getBytes(), 0, t.getLength()); }
[ "Convert from Hadoop Text to Bytes" ]
[ "Specify the address of the SOCKS proxy the connection should\nuse.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n<p>Be aware that this method only handles SOCKS proxies, not\nHTTPS proxies. Use {@link #withProxy(Proxy)} instead.\n\n@param host the hostname of the SOCKS proxy\n@param port the port of the SOCKS proxy server\n@return this", "Print a a basic type t", "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Cancel the pause operation", "return a generic Statement for the given ClassDescriptor", "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one." ]
public VectorClock incremented(int nodeId, long time) { VectorClock copyClock = this.clone(); copyClock.incrementVersion(nodeId, time); return copyClock; }
[ "Get new vector clock based on this clock but incremented on index nodeId\n\n@param nodeId The id of the node to increment\n@return A vector clock equal on each element execept that indexed by\nnodeId" ]
[ "2-D Double array to integer array.\n\n@param array Double array.\n@return Integer array.", "Submits the configured assembly to Transloadit for processing.\n\n@param isResumable boolean value that tells the assembly whether or not to use tus.\n@return {@link AssemblyResponse} the response received from the Transloadit server.\n@throws RequestException if request to Transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "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')", "Checks to see if the two matrices have the same shape and same pattern of non-zero elements\n\n@param a Matrix\n@param b Matrix\n@return true if the structure is the same", "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise", "Retrieve from the parent pom the path to the modules of the project", "Parses formatter attributes.\n\n@param formatterLoc the node location\n@return the map of formatter attributes (unmodifiable)", "Code common to both XER and database readers to extract\ncurrency format data.\n\n@param row row containing currency data", "Gets the JsonObject representation of the Field Operation.\n@param fieldOperation represents the template update operation\n@return the json object" ]
public static MetadataTemplate updateMetadataTemplate(BoxAPIConnection api, String scope, String template, List<FieldOperation> fieldOperations) { JsonArray array = new JsonArray(); for (FieldOperation fieldOperation : fieldOperations) { JsonObject jsonObject = getFieldOperationJsonObject(fieldOperation); array.add(jsonObject); } QueryStringBuilder builder = new QueryStringBuilder(); URL url = METADATA_TEMPLATE_URL_TEMPLATE.build(api.getBaseURL(), scope, template); BoxJSONRequest request = new BoxJSONRequest(api, url, "PUT"); request.setBody(array.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJson = JsonObject.readFrom(response.getJSON()); return new MetadataTemplate(responseJson); }
[ "Updates the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template\n@param fieldOperations the fields that needs to be updated / added in the template\n@return the updated metadata template" ]
[ "Upload a photo from a byte-array.\n\n@param data\nThe photo data as a byte array\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone.", "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException", "Iterates through the given CharSequence line by line, splitting each line using\nthe given regex delimiter. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see #splitEachLine(CharSequence, java.util.regex.Pattern, groovy.lang.Closure)\n@since 1.8.2", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item", "Use to generate a file based on generator node.", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Runs the server.", "Use this API to unset the properties of sslservice resource.\nProperties that need to be unset are specified in args array." ]
public static List<Object> filterMapToList(final Map<String, ?> map, final String[] nameMapping) { if( map == null ) { throw new NullPointerException("map should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } final List<Object> result = new ArrayList<Object>(nameMapping.length); for( final String key : nameMapping ) { result.add(map.get(key)); } return result; }
[ "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null" ]
[ "The length of the region left to the completion offset that is part of the\nreplace region.", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array.", "Returns status message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Polls the next char from the stack\n\n@return next char", "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "Downloads this version of the file to a given OutputStream while reporting the progress to a ProgressListener.\n@param output the stream to where the file will be written.\n@param listener a listener for monitoring the download's progress.", "returns a sorted array of nested classes and interfaces", "Converts an object to an instance of the target type.\n\n@param mapper the object mapper\n@param source the source to convert\n@param targetType the target class type\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)", "Cancel request and workers." ]
public static @Nullable CleverTapAPI getInstance(Context context) throws CleverTapMetaDataNotFoundException, CleverTapPermissionsNotSatisfied { // For Google Play Store/Android Studio tracking sdkVersion = BuildConfig.SDK_VERSION_STRING; return getDefaultInstance(context); }
[ "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}" ]
[ "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Internal function that uses recursion to create the list", "Builds the resource.\n\n@return the cms resource", "Terminates with a help message if the parse is not successful\n\n@param args command line arguments to\n@return the format in a correct state", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Figures out the correct class loader to use for a proxy for a given bean", "Time since last time the store was swapped\n\n@return Time in milliseconds since the store was swapped", "This method extracts candidate elements from the current DOM tree in the browser, based on\nthe crawl tags defined by the user.\n\n@param currentState the state in which this extract method is requested.\n@return a list of candidate elements that are not excluded.\n@throws CrawljaxException if the method fails.", "Initializes the metadataCache for MetadataStore" ]
public Configuration[] getConfigurations(String name) { ArrayList<Configuration> valuesList = new ArrayList<Configuration>(); logger.info("Getting data for {}", name); PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { String queryString = "SELECT * FROM " + Constants.DB_TABLE_CONFIGURATION; if (name != null) { queryString += " WHERE " + Constants.DB_TABLE_CONFIGURATION_NAME + "=?"; } statement = sqlConnection.prepareStatement(queryString); if (name != null) { statement.setString(1, name); } results = statement.executeQuery(); while (results.next()) { Configuration config = new Configuration(); config.setValue(results.getString(Constants.DB_TABLE_CONFIGURATION_VALUE)); config.setKey(results.getString(Constants.DB_TABLE_CONFIGURATION_NAME)); config.setId(results.getInt(Constants.GENERIC_ID)); logger.info("the configValue is = {}", config.getValue()); valuesList.add(config); } } catch (SQLException sqe) { logger.info("Exception in sql"); sqe.printStackTrace(); } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } if (valuesList.size() == 0) { return null; } return valuesList.toArray(new Configuration[0]); }
[ "Get the values for a particular configuration property\n\n@param name - name of the property\n@return All values encountered or null" ]
[ "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list", "Called by the engine to trigger the cleanup at the end of a payload thread.", "Join the Collection of Strings using the specified delimter and optionally quoting each\n\n@param s\nThe String collection\n@param delimiter\nthe delimiter String\n@param doQuote\nwhether or not to quote the Strings\n@return The joined String", "Set an attribute.\n\n@param name attribute name.\n@param value attribute value.", "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.", "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", "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.", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized" ]
public BoxFileUploadSession.Info createUploadSession(long fileSize) { URL url = UPLOAD_SESSION_URL_TEMPLATE.build(this.getAPI().getBaseUploadURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "POST"); request.addHeader("Content-Type", "application/json"); JsonObject body = new JsonObject(); body.add("file_size", fileSize); request.setBody(body.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); String sessionId = jsonObject.get("id").asString(); BoxFileUploadSession session = new BoxFileUploadSession(this.getAPI(), sessionId); return session.new Info(jsonObject); }
[ "Creates an upload session to create a new version of a file in chunks.\nThis will first verify that the version can be created and then open a session for uploading pieces of the file.\n@param fileSize the size of the file that will be uploaded.\n@return the created upload session instance." ]
[ "The service name to be removed. Can be overridden for unusual service naming patterns\n@param name The name of the resource being removed\n@return The service name to remove. May return {@code null} if only removal based on {@code unavailableCapabilities}\npassed to the constructor are to be performed", "Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileName the name of the thrift file for which to extract a path\n@parameter thriftFiles The set of Thrift files in which to lookup the\nartifact ID.\n@return The path of the directory containing Thrift files for the given\nartifact ID. null if artifact ID not found.", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise", "Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes.", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException", "OJB can handle only classes that declare at least one primary key attribute,\nthis method checks this condition.\n\n@param realObject The real object to check\n@throws ClassNotPersistenceCapableException thrown if no primary key is specified for the objects class" ]
public void createTag(final String tagUrl, final String commitMessage) throws IOException, InterruptedException { build.getWorkspace() .act(new SVNCreateTagCallable(tagUrl, commitMessage, getLocation(), getSvnAuthenticationProvider(build), buildListener)); }
[ "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure" ]
[ "Returns the docker version.\n\n@param serverUrl\nThe serverUrl to use.", "Determine if a CharSequence can be parsed as a Long.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isLong(String)\n@since 1.8.2", "Use this API to delete locationfile.", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Cuts the string at the end if it's longer than maxLength and appends the given end string to it. The length of\nthe resulting string is always less or equal to the given maxLength. It's valid to pass a null text; in this\ncase null is returned.", "Concats an element and an array.\n\n@param firstElement the first element\n@param array the array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first element", "Creates a curator built using the given zookeeper connection string and timeout", "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script.", "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange" ]
public Path getTransformedXSLTPath(FileModel payload) { ReportService reportService = new ReportService(getGraphContext()); Path outputPath = reportService.getReportDirectory(); outputPath = outputPath.resolve(this.getRelativeTransformedXSLTPath(payload)); if (!Files.isDirectory(outputPath)) { try { Files.createDirectories(outputPath); } catch (IOException e) { throw new WindupException("Failed to create output directory at: " + outputPath + " due to: " + e.getMessage(), e); } } return outputPath; }
[ "Gets the path used for the results of XSLT Transforms." ]
[ "Minimize the function starting at the given initial point.", "Obtains a Symmetry010 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Indicates if the type is a simple Web Bean\n\n@param clazz The type to inspect\n@return True if simple Web Bean, false otherwise", "Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for each document, where the first element is\nan int[][][] representing the data and the second element is an\nint[] representing the labels.", "Returns the most likely class for the word at the given position.", "Sets either the upper or low triangle of a matrix to zero", "Remove paths with no active overrides\n\n@throws Exception", "This is a convenience method provided to allow a day to be set\nas working or non-working, by using the day number to\nidentify the required day.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri" ]
public static void startTimer(final String type) { TransactionLogger instance = getInstance(); if (instance == null) { return; } instance.components.putIfAbsent(type, new Component(type)); instance.components.get(type).startTimer(); }
[ "Start component timer for current instance\n@param type - of component" ]
[ "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Injects EJBs and other EE resources.\n\n@param resourceInjectionsHierarchy\n@param beanInstance\n@param ctx", "Create the ResourceIgnoredTransformationRegistry when fetching missing content, only including relevant pieces\nto a server-config.\n\n@param rc the resolution context\n@param delegate the delegate ignored resource transformation registry for manually ignored resources\n@return", "Emits a change event for the given document id.\n\n@param nsConfig the configuration for the namespace to which the\ndocument referred to by the change event belongs.\n@param event the change event.", "Verifies if the new value is different from the field's old value. It's\nuseful, for example, in NoSQL databases that replicates data between\nservers. This verification prevents to mark a field as modified and to be\nreplicated needlessly.\n\n@param field\nthe field that we are checking before to be modified\n@param value\nthe new value\n@return true if the new and the old values are different and the value\nwas changed.", "Sets the HTML entity translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same", "Use this API to fetch servicegroupbindings resource of given name .", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance" ]
public void addResourceAssignment(ResourceAssignment assignment) { if (getExistingResourceAssignment(assignment.getResource()) == null) { m_assignments.add(assignment); getParentFile().getResourceAssignments().add(assignment); Resource resource = assignment.getResource(); if (resource != null) { resource.addResourceAssignment(assignment); } } }
[ "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment" ]
[ "Exit the Application", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "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", "Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Returns the foreignkey to the specified table.\n\n@param name The name of the foreignkey\n@param tableName The name of the referenced table\n@return The foreignkey def or <code>null</code> if it does not exist", "Use this API to fetch a tmglobal_binding resource .", "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work" ]
public static HashMap<String, JSONObject> flatRessources(JSONObject object) throws JSONException { HashMap<String, JSONObject> result = new HashMap<String, JSONObject>(); // no cycle in hierarchies!! if (object.has("resourceId") && object.has("childShapes")) { result.put(object.getString("resourceId"), object); JSONArray childShapes = object.getJSONArray("childShapes"); for (int i = 0; i < childShapes.length(); i++) { result.putAll(flatRessources(childShapes.getJSONObject(i))); } } ; return result; }
[ "Prepare a model JSON for analyze, resolves the hierarchical structure\ncreates a HashMap which contains all resourceIds as keys and for each key\nthe JSONObject, all id are keys of this map\n@param object\n@return a HashMap keys: all ressourceIds values: all child JSONObjects\n@throws org.json.JSONException" ]
[ "Adds a column to this table definition.\n\n@param columnDef The new column", "Retrieve a value from the map, ensuring that a key exists in the map\nwith the specified name.\n\n@param name column name\n@return column value", "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Each schema set has its own database cluster. The template1 database has the schema preloaded so that\neach test case need only create a new database and not re-invoke Migratory.", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "Get all Groups\n\n@return\n@throws Exception", "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", "Set the color for the statusBar\n\n@param statusBarColor", "Notifies that a footer item is changed.\n\n@param position the position." ]
public void setBaseCalendar(String val) { set(ResourceField.BASE_CALENDAR, val == null || val.length() == 0 ? "Standard" : val); }
[ "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name" ]
[ "Old REST client uses new REST service", "Choose from three numbers based on version.", "Returns the locale specified by the named scoped attribute or context\nconfiguration parameter.\n\n<p> The named scoped attribute is searched in the page, request,\nsession (if valid), and application scope(s) (in this order). If no such\nattribute exists in any of the scopes, the locale is taken from the\nnamed context configuration parameter.\n\n@param pageContext the page in which to search for the named scoped\nattribute or context configuration parameter\n@param name the name of the scoped attribute or context configuration\nparameter\n\n@return the locale specified by the named scoped attribute or context\nconfiguration parameter, or <tt>null</tt> if no scoped attribute or\nconfiguration parameter with the given name exists", "Determines the number bytes required to store a variable length\n\n@param i length of Bytes\n@return number of bytes needed", "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type.", "Get the service implementations for a given type name.\n\n@param serviceTypeName the type name\n@return the possibly empty list of services", "private int numCalls = 0;", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address", "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER" ]
@Deprecated @SuppressWarnings({ "rawtypes", "unchecked" }) public void setAttributes(Map<String, PrimitiveAttribute<?>> attributes) { if (!isPrimitiveOnly()) { throw new UnsupportedOperationException("Primitive API not supported for nested association values"); } this.attributes = (Map) attributes; }
[ "Set the attributes for the associated object.\n\n@param attributes attributes for associated objects\n@deprecated replaced by {@link #setAllAttributes(Map)} after introduction of nested associations" ]
[ "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", "Returns a vector from the PCA's basis.\n\n@param which Which component's vector is to be returned.\n@return Vector from the PCA basis.", "Triggers expansion of the parent.", "Use this API to update vpnclientlessaccesspolicy.", "Set the view frustum to pick against from the given projection matrix.\n\nIf the projection matrix is null, the picker will revert to picking\nobjects that are visible from the viewpoint of the scene's current camera.\nIf a matrix is given, the picker will pick objects that are visible\nfrom the viewpoint of it's owner the given projection matrix.\n\n@param projMatrix 4x4 projection matrix or null\n@see GVRScene#setPickVisible(boolean)", "Saves the list of currently displayed favorites.", "Executes a method on the server asynchronously", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted.", "Returns the RPC service for serial dates.\n@return the RPC service for serial dates." ]
public static String implodeObjects(Iterable<?> objects) { StringBuilder builder = new StringBuilder(); boolean first = true; for (Object o : objects) { if (first) { first = false; } else { builder.append("|"); } builder.append(o.toString()); } return builder.toString(); }
[ "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects" ]
[ "Read all configuration files.\n@return the list with all available configurations", "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Adds a filter definition to this project file.\n\n@param filter filter definition", "Reads a line from the input stream, where a line is terminated by \\r, \\n, or \\r\\n\n@param trim whether to trim trailing \\r and \\ns", "binds the objects primary key and locking values to the statement, BRJ", "Applies the &gt; operator to each element in A. Results are stored in a boolean matrix.\n\n@param A Input matrx\n@param value value each element is compared against\n@param output (Optional) Storage for results. Can be null. Is reshaped.\n@return Boolean matrix with results", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Returns true if the string is a valid Java full qualified class name.\n\n@param str the string to be examined\n@return true if str is a valid Java Fqcn", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection." ]
private void sendMessage(Message message) throws IOException { logger.debug("Sending> {}", message); int totalSize = 0; for (Field field : message.fields) { totalSize += field.getBytes().remaining(); } ByteBuffer combined = ByteBuffer.allocate(totalSize); for (Field field : message.fields) { logger.debug("..sending> {}", field); combined.put(field.getBytes()); } combined.flip(); Util.writeFully(combined, channel); }
[ "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it" ]
[ "Adds the position.\n\n@param position the position", "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred.", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "Use this API to create ssldhparam.", "Instantiates an instance of input Java shader class,\nwhich must be derived from GVRShader or GVRShaderTemplate.\n@param id Java class which implements shaders of this type.\n@param ctx GVRContext shader belongs to\n@return GVRShader subclass which implements this shader type", "Fires the event.\n\n@param source the event source\n@param date the date\n@param isTyping true if event was caused by user pressing key that may have changed the value", "Writes all data that was collected about classes to a json file.", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Converts from RGB to Hexadecimal notation." ]
public static gslbdomain_stats get(nitro_service service, String name) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); obj.set_name(name); gslbdomain_stats response = (gslbdomain_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of gslbdomain_stats resource of given name ." ]
[ "Use this API to fetch dnstxtrec resource of given name .", "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods", "Determine how many forked JVMs to use.", "Get DPI suggestions.\n\n@return DPI suggestions", "Deserialize an `AppDescriptor` from byte array\n\n@param bytes\nthe byte array\n@return\nan `AppDescriptor` instance", "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException", "Edit which photos are in the photoset.\n\n@param photosetId\nThe photoset ID\n@param primaryPhotoId\nThe primary photo Id\n@param photoIds\nThe photo IDs for the photos in the set\n@throws FlickrException", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Calculate matrix exponential of a square matrix.\n\nA scaled Pade approximation algorithm is used.\nThe algorithm has been directly translated from Golub & Van Loan \"Matrix Computations\",\nalgorithm 11.3.1. Special Horner techniques from 11.2 are also used to minimize the number\nof matrix multiplications.\n\n@param A square matrix\n@return matrix exponential of A" ]
public static void acceptsDir(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_D, OPT_DIR), "directory path for input/output") .withRequiredArg() .describedAs("dir-path") .ofType(String.class); }
[ "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
[ "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "Configures the configuration selector.", "to check availability, then class name is truncated to bundle id", "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", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "The length of the region left to the completion offset that is part of the\nreplace region.", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Add a list of enums to the options map\n@param key The key for the options map (ex: \"include[]\")\n@param list A list of enums", "parse the target resource and add it to the current shape\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
protected BlockBox createBlock(BlockBox parent, Element n, boolean replaced) { BlockBox root; if (replaced) { BlockReplacedBox rbox = new BlockReplacedBox((Element) n, (Graphics2D) parent.getGraphics().create(), parent.getVisualContext().create()); rbox.setViewport(viewport); rbox.setContentObj(new ReplacedImage(rbox, rbox.getVisualContext(), baseurl, n.getAttribute("src"))); root = rbox; } else { root = new BlockBox((Element) n, (Graphics2D) parent.getGraphics().create(), parent.getVisualContext().create()); root.setViewport(viewport); } root.setBase(baseurl); root.setParent(parent); root.setContainingBlockBox(parent); root.setClipBlock(viewport); root.setOrder(next_order++); return root; }
[ "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." ]
[ "Set to array.\n@param injectionProviders\nset of providers\n@return array of providers", "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "Use this API to delete lbroute.", "Used to set the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Initialization method.\n\n@param t1\n@param t2", "Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container", "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", "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation", "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class." ]
public void localBegin() { if (this.isInLocalTransaction) { throw new TransactionInProgressException("Connection is already in transaction"); } Connection connection = null; try { connection = this.getConnection(); } catch (LookupException e) { /** * must throw to notify user that we couldn't start a connection */ throw new PersistenceBrokerException("Can't lookup a connection", e); } if (log.isDebugEnabled()) log.debug("localBegin was called for con " + connection); // change autoCommit state only if we are not in a managed environment // and it is enabled by user if(!broker.isManaged()) { if (jcd.getUseAutoCommit() == JdbcConnectionDescriptor.AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE) { if (log.isDebugEnabled()) log.debug("Try to change autoCommit state to 'false'"); platform.changeAutoCommitState(jcd, connection, false); } } else { if(log.isDebugEnabled()) log.debug( "Found managed environment setting in PB, will skip Platform.changeAutoCommitState(...) call"); } this.isInLocalTransaction = true; }
[ "Start transaction on the underlying connection." ]
[ "Call the appropriate handler for handling the httprequest. 404 if path is not found. 405 if path is found but\nhttpMethod does not match what's configured.\n\n@param request instance of {@code HttpRequest}\n@param responder instance of {@code HttpResponder} to handle the request.", "Use this API to fetch all the vlan resources that are configured on netscaler.", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "prefix the this class fk columns with the indirection table", "Split a span into two by adding a knot in the middle.\n@param n the span index", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "read offsets before given time\n\n@param offsetRequest the offset request\n@return offsets before given time", "Returns the classpath for executable jar." ]
private void processProject(PrimaveraDatabaseReader reader, int projectID, String outputFile) throws Exception { long start = System.currentTimeMillis(); reader.setProjectID(projectID); ProjectFile projectFile = reader.read(); long elapsed = System.currentTimeMillis() - start; System.out.println("Reading database completed in " + elapsed + "ms."); System.out.println("Writing output file started."); start = System.currentTimeMillis(); ProjectWriter writer = ProjectWriterUtility.getProjectWriter(outputFile); writer.write(projectFile, outputFile); elapsed = System.currentTimeMillis() - start; System.out.println("Writing output completed in " + elapsed + "ms."); }
[ "Process a single project.\n\n@param reader Primavera reader\n@param projectID required project ID\n@param outputFile output file name" ]
[ "Invokes a function defined in the script.\n\n@param funcName\nThe function name.\n@param params\nThe parameter array.\n@return\nA boolean value representing whether the function is\nexecuted correctly. If the function cannot be found, or\nparameters don't match, {@code false} is returned.", "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", "Set the end type as derived from other values.", "Saves a screenshot of every new state.", "Set 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 #add(String, String)", "Returns the target locales.\n\n@return the target locales, never null.", "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified Iterator\n@since 1.5.5", "Join N sets.", "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept" ]
public static String createFolderPath(String path) { String[] pathParts = path.split("\\."); String path2 = ""; for (String part : pathParts) { if (path2.equals("")) { path2 = part; } else { path2 = path2 + File.separator + changeFirstLetterToLowerCase(createClassName(part)); } } return path2; }
[ "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" ]
[ "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Calculates the middle point between two points and multiplies its coordinates with the given\nsmoothness _Mulitplier.\n@param _P1 First point\n@param _P2 Second point\n@param _Result Resulting point\n@param _Multiplier Smoothness multiplier", "Use this API to clear Interface.", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "Create an import declaration and delegates its registration for an upper class.", "Verify JUnit presence and version.", "set the insetsFrameLayout to display the content in fullscreen\nunder the statusBar and navigationBar\n\n@param fullscreen", "Gets all of the column names for a result meta data\n\n@param rsmd Resultset metadata\n@return Array of column names\n@throws Exception exception", "Use this API to clear Interface." ]
public final void notifyFooterItemRangeChanged(int positionStart, int itemCount) { if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > footerItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for footer items [0 - " + (footerItemCount - 1) + "]."); } notifyItemRangeChanged(positionStart + headerItemCount + contentItemCount, itemCount); }
[ "Notifies that multiple footer items are changed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "The Maven3Builder class is looking for the PATH+JDK environment variable due to legacy code.\nIn The pipeline flow we need to convert the JAVA_HOME to PATH+JDK in order to reuse the code.", "Non-supported in JadeAgentIntrospector", "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.", "Click handler for bottom drawer items.", "Extent aware Delete by Query\n@param query\n@param cld\n@throws PersistenceBrokerException", "This procedure is invoked to process the \"subst\" Tcl command.\nSee the user documentation for details on what it does.\n\n@param interp the current interpreter.\n@param argv command arguments.\n@exception TclException if wrong # of args or invalid argument(s).", "Creates the database.\n\n@throws PlatformException If some error occurred", "Utility function that pauses and asks for confirmation on dangerous\noperations.\n\n@param confirm User has already confirmed in command-line input\n@param opDesc Description of the dangerous operation\n@throws IOException\n@return True if user confirms the operation in either command-line input\nor here.", "Obtains the transform for a specific time in animation.\n\n@param animationTime The time in animation.\n\n@return The transform." ]
public CollectionRequest<Task> findByProject(String projectId) { String path = String.format("/projects/%s/tasks", projectId); return new CollectionRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project.\n\n@param projectId The project in which to search for tasks.\n@return Request object" ]
[ "Create an object of the given type using a constructor that matches the\nsupplied arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "EXecutes command to given container returning the inspection object as well. This method does 3 calls to\ndockerhost. Create, Start and Inspect.\n\n@param containerId\nto execute command.", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License", "Create a set out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a set.\n@return A set consisting of the items from the Iterable.", "Set the serial end date.\n@param date the serial end date." ]
public static int scale(Double factor, int pixel) { return rgb( (int) Math.round(factor * red(pixel)), (int) Math.round(factor * green(pixel)), (int) Math.round(factor * blue(pixel)) ); }
[ "Scales the brightness of a pixel." ]
[ "Convert Collection to Set\n@param collection Collection\n@return Set", "Retrieve the most recent storepoint.\n\n@param phoenixProject project data\n@return Storepoint instance", "Edit which photos are in the photoset.\n\n@param photosetId\nThe photoset ID\n@param primaryPhotoId\nThe primary photo Id\n@param photoIds\nThe photo IDs for the photos in the set\n@throws FlickrException", "Writes triples to determine the statements with the highest rank.", "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.", "Adds custom header to request\n\n@param key\n@param value", "Sets a JSON String as a request entity.\n\n@param connnection The request of {@link HttpConnection}\n@param body The JSON String to set.", "Returns an Organization\n\n@param organizationId String\n@return DbOrganization", "Store the char in the internal buffer" ]
public boolean setCurrentPage(final int page) { Log.d(TAG, "setPageId pageId = %d", page); return (page >= 0 && page < getCheckableCount()) && check(page); }
[ "Sets selected page implicitly\n@param page new selected page\n@return true if the page has been selected successfully" ]
[ "Export the odo overrides setup and odo configuration\n\n@param oldExport Whether this is a backup from scratch or backing up because user will upload after (matches API)\n@return The odo configuration and overrides in JSON format, can be written to a file after", "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value", "Use this API to fetch sslservice resource of given name .", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Logs the time taken by this rule and adds this to the total time taken for this phase", "Use this API to delete sslfipskey resources of given names.", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "Sets the timewarp setting from a numeric string\n\n@param timewarp a numeric string containing the number of milliseconds since the epoch" ]
public static base_response unset(nitro_service client, aaaparameter resource, String[] args) throws Exception{ aaaparameter unsetresource = new aaaparameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of aaaparameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Creates the node mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param parentLevel\nthe parent level", "Add join info to the query. This can be called multiple times to join with more than one table.", "Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Returns all found resolvers\n@return", "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", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "Creates a new tag in a workspace or organization.\n\nEvery tag is required to be created in a specific workspace or\norganization, and this cannot be changed once set. Note that you can use\nthe `workspace` parameter regardless of whether or not it is an\norganization.\n\nReturns the full record of the newly created tag.\n\n@param workspace The workspace or organization to create the tag in.\n@return Request object", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration." ]
@TargetApi(VERSION_CODES.KITKAT) public static void hideSystemUI(Activity activity) { // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hideSelf and show. View decorView = activity.getWindow().getDecorView(); decorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hideSelf nav bar | View.SYSTEM_UI_FLAG_FULLSCREEN // hideSelf status bar | View.SYSTEM_UI_FLAG_IMMERSIVE ); }
[ "This intro hides the system bars." ]
[ "Replaces the translations in an existing container with the translations for the provided locale.\n@param locale the locale for which translations should be loaded.\n@return <code>true</code> if replacing succeeded, <code>false</code> otherwise.", "Resets the calendar", "This filter permit to return an image sized exactly as requested wherever is its ratio by\nfilling with chosen color the missing parts. Usually used with \"fit-in\" or \"adaptive-fit-in\"\n\n@param color integer representation of color.", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context", "Sets the max.\n\n@param n the new max", "Initialize the service with a context\n@param context the servlet context to initialize the profile.", "Looks up the object from the cache\n\n@param oid The Identity to look up the object for\n@return The object if found, otherwise null", "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", "Show books.\n\n@param booksList the books list" ]
protected CmsAccessControlEntry getImportAccessControlEntry( CmsResource res, String id, String allowed, String denied, String flags) { return new CmsAccessControlEntry( res.getResourceId(), new CmsUUID(id), Integer.parseInt(allowed), Integer.parseInt(denied), Integer.parseInt(flags)); }
[ "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" ]
[ "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index", "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proctor object", "Log a warning for the resource at the provided address and the given attributes. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attributes attributes we are warning about", "Determines the component type for a given array type.\n\n@param type the given array type\n@return the component type of a given array type", "copied and altered from TransactionHelper", "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\").", "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name .", "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove.", "Prepare a parallel TCP Task.\n\n@param command\nthe command\n@return the parallel task builder" ]
public static base_responses add(nitro_service client, appfwjsoncontenttype resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwjsoncontenttype addresources[] = new appfwjsoncontenttype[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appfwjsoncontenttype(); addresources[i].jsoncontenttypevalue = resources[i].jsoncontenttypevalue; addresources[i].isregex = resources[i].isregex; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add appfwjsoncontenttype resources." ]
[ "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.", "Remove a bean from the context, calling the destruction callback if any.\n\n@param name bean name\n@return previous value", "Use this API to fetch sslservice resource of given name .", "The main method, which is essentially the same as in CRFClassifier. See the class documentation.", "Checks the extents specifications and removes unnecessary entries.\n\n@param classDef The class 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", "Fetch JSON from RAW resource\n\n@param context Context\n@param resource Resource int of the RAW file\n@return JSON", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "Synthesize and forward a KeyEvent to the library.\n\nThis call is made from the native layer.\n\n@param code id of the button\n@param action integer representing the action taken on the button" ]
public final static void appendCode(final StringBuilder out, final String in, final int start, final int end) { for (int i = start; i < end; i++) { final char c; switch (c = in.charAt(i)) { case '&': out.append("&amp;"); break; case '<': out.append("&lt;"); break; case '>': out.append("&gt;"); break; default: out.append(c); break; } } }
[ "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position." ]
[ "Return the value from the field in the object that is defined by this FieldType.", "Reads GIF image from byte array.\n\n@param data containing GIF file.\n@return read status code (0 = no errors).", "Get the refresh frequency of this scene object.\n\n@return The refresh frequency of this TextViewSceneObject.", "Return an input stream to read the data from the named table.\n\n@param name table name\n@return InputStream instance\n@throws IOException", "Set the state of an individual day in a weekly recurrence.\n\n@param day Day instance\n@param value true if this day is included in the recurrence", "Get a new token.\n\n@return 14 character String", "Clean wait task queue.", "The context returned by this method may be later reused for other interception types.\n\n@param interceptionModel\n@param ctx\n@param manager\n@param type\n@return the interception context to be used for the AroundConstruct chain", "Gets the value of the project property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the project property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetProject().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ProjectListType.Project }" ]
private Table buildTable(CmsSqlConsoleResults results) { IndexedContainer container = new IndexedContainer(); int numCols = results.getColumns().size(); for (int c = 0; c < numCols; c++) { container.addContainerProperty(Integer.valueOf(c), results.getColumnType(c), null); } int r = 0; for (List<Object> row : results.getData()) { Item item = container.addItem(Integer.valueOf(r)); for (int c = 0; c < numCols; c++) { item.getItemProperty(Integer.valueOf(c)).setValue(row.get(c)); } r += 1; } Table table = new Table(); table.setContainerDataSource(container); for (int c = 0; c < numCols; c++) { String col = (results.getColumns().get(c)); table.setColumnHeader(Integer.valueOf(c), col); } table.setWidth("100%"); table.setHeight("100%"); table.setColumnCollapsingAllowed(true); return table; }
[ "Builds the table for the database results.\n\n@param results the database results\n@return the table" ]
[ "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> }", "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Adds a table to this model.\n\n@param table The table", "Removes a child task.\n\n@param child child task instance", "Use this API to fetch all the snmpmanager resources that are configured on netscaler.", "Get the FieldDescriptor for the PathInfo\n\n@param aTableAlias\n@param aPathInfo\n@return FieldDescriptor", "Process field aliases.", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Returns the list of store defs as a map\n\n@param storeDefs\n@return" ]
public static void sendTextEmail(String to, String from, String subject, String msg, final ServerSetup setup) { sendMimeMessage(createTextEmail(to, from, subject, msg, setup)); }
[ "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup." ]
[ "Checks the extents specifications and removes unnecessary entries.\n\n@param classDef The class 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", "Return the profileId for a path\n\n@param path_id ID of path\n@return ID of profile\n@throws Exception exception", "Use this API to fetch autoscaleprofile resource of given name .", "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception", "Sets the ojbQuery, needed only as long we\ndon't support the soda constraint stuff.\n@param ojbQuery The ojbQuery to set", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray.", "Use this API to update systemuser resources.", "Replaces an existing 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." ]
public void unbind(T service, Map<String, Object> props) { synchronized (serviceMap) { serviceMap.remove(ServiceUtil.getComparableForServiceRanking(props)); updateSortedServices(); } }
[ "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties" ]
[ "Sets the last operation response.\n\n@param response the last operation response.", "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout", "Use this API to fetch the statistics of all lbvserver_stats resources that are configured on netscaler.", "format with lazy-eval", "Prepare a parallel HTTP POST Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Returns the number of key-value mappings in this map for the third key.\n\n@param firstKey\nthe first key\n@param secondKey\nthe second key\n@return Returns the number of key-value mappings in this map for the third key.", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Returns an iterator over the items in this collection.\n@return an iterator over the items in this collection." ]
public void sendFaderStartCommand(Set<Integer> deviceNumbersToStart, Set<Integer> deviceNumbersToStop) throws IOException { ensureRunning(); byte[] payload = new byte[FADER_START_PAYLOAD.length]; System.arraycopy(FADER_START_PAYLOAD, 0, payload, 0, FADER_START_PAYLOAD.length); payload[2] = getDeviceNumber(); for (int i = 1; i <= 4; i++) { if (deviceNumbersToStart.contains(i)) { payload[i + 4] = 0; } if (deviceNumbersToStop.contains(i)) { payload[i + 4] = 1; } } assembleAndSendPacket(Util.PacketType.FADER_START_COMMAND, payload, getBroadcastAddress(), BeatFinder.BEAT_PORT); }
[ "Broadcast a packet that tells some players to start playing and others to stop. If a player number is in\nboth sets, it will be told to stop. Numbers outside the range 1 to 4 are ignored.\n\n@param deviceNumbersToStart the players that should start playing if they aren't already\n@param deviceNumbersToStop the players that should stop playing\n\n@throws IOException if there is a problem broadcasting the command to the players\n@throws IllegalStateException if the {@code VirtualCdj} is not active" ]
[ "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "Read holidays from the database and create calendar exceptions.", "adds a CmsJspImageBean as hi-DPI variant to this image\n@param factor the variant multiplier, e.g. \"2x\" (the common retina multiplier)\n@param image the image to be used for this variant", "Returns the naming context.", "Returns the ordered Map value of the field.\n\n@return the ordered Map value of the field. It returns a reference of the value.\n@throws IllegalArgumentException if the value cannot be converted to ordered Map.", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "This method finds the start of the next working period.\n\n@param cal current Calendar instance" ]
public TreeNode getModuleTree(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final TreeNode tree = new TreeNode(); tree.setName(module.getName()); // Add submodules for (final DbModule submodule : module.getSubmodules()) { addModuleToTree(submodule, tree); } return tree; }
[ "Generate a groupId tree regarding the filters\n\n@param moduleId\n@return TreeNode" ]
[ "Adds a chain of vertices to the end of this list.", "Sets the search scope.\n\n@param cms The current CmsObject object.", "This is the main entry point used to convert the internal representation\nof timephased work into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Linear interpolation of ARGB values.\n@param t the interpolation parameter\n@param rgb1 the lower interpolation range\n@param rgb2 the upper interpolation range\n@return the interpolated value", "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Gets the gradient at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@param gradient The output gradient, a vector of partial derivatives.", "Formats a double value.\n\n@param number numeric value\n@return Double instance", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu" ]
public static sslservice[] get(nitro_service service) throws Exception{ sslservice obj = new sslservice(); sslservice[] response = (sslservice[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the sslservice resources that are configured on netscaler." ]
[ "Get the days difference", "Puts value at given column\n\n@param value Will be encoded using UTF-8", "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "Only call with the read lock held", "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "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", "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol", "Hides the Loader component" ]
public static String replaceFirst(final CharSequence self, final CharSequence regex, final CharSequence replacement) { return self.toString().replaceFirst(regex.toString(), replacement.toString()); }
[ "Replaces the first substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the CharSequence to be substituted for each match\n@return a CharSequence with replaced content\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceFirst(String, String)\n@since 1.8.2" ]
[ "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}", "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Launch Sample Activity residing in the same module", "Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.", "Extract and return the table name for a class.", "Adds a new Pie Slice to the PieChart. After inserting and calculation of the highlighting color\na complete recalculation is initiated.\n\n@param _Slice The newly added PieSlice.", "Output the SQL type for a Java String.", "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported." ]
public QueryBuilder<T, ID> orderByRaw(String rawSql) { addOrderBy(new OrderBy(rawSql, (ArgumentHolder[]) null)); return this; }
[ "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\"." ]
[ "Emit a string event with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "The cell String is the string representation of the object.\nIf padLeft is greater than 0, it is padded. Ditto right", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "Fall-back for types that are not handled by a subclasse's dispatch method.", "Returns the parent of this path or null if this path is the root path.\n\n@return the parent of this path or null if this path is the root path.", "Check whether the URL start with one of the given prefixes.\n\n@param uri URI\n@param patterns possible prefixes\n@return true when URL starts with one of the prefixes", "Set the attributes of a feature.\n\n@param feature the feature\n@param attributes the attributes\n@throws LayerException oops" ]
private static <T> void writeConfig(BufferedWriter writer, DatabaseTableConfig<T> config) throws IOException, SQLException { writer.append(CONFIG_FILE_START_MARKER); writer.newLine(); if (config.getDataClass() != null) { writer.append(FIELD_NAME_DATA_CLASS).append('=').append(config.getDataClass().getName()); writer.newLine(); } if (config.getTableName() != null) { writer.append(FIELD_NAME_TABLE_NAME).append('=').append(config.getTableName()); writer.newLine(); } writer.append(CONFIG_FILE_FIELDS_START); writer.newLine(); if (config.getFieldConfigs() != null) { for (DatabaseFieldConfig field : config.getFieldConfigs()) { DatabaseFieldConfigLoader.write(writer, field, config.getTableName()); } } writer.append(CONFIG_FILE_FIELDS_END); writer.newLine(); writer.append(CONFIG_FILE_END_MARKER); writer.newLine(); }
[ "Write the config to the writer." ]
[ "Adds multiple observers using unique integer prefixes for each.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization", "Print classes that were parts of relationships, but not parsed by javadoc", "Get a list of referring domains for a photoset.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photosetId\n(Optional) The id of the photoset to get stats for. If not provided, stats for all photos 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.getPhotosetDomains.html\"", "Waits the given amount of time in seconds for a standalone server to start.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "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", "and class as property", "Select the default currency properties from the database.\n\n@param currencyID default currency ID" ]
private static boolean matches(Type from, Type to, Map<String, Type> typeMap) { if (to.equals(from)) return true; if (from instanceof TypeVariable) { return to.equals(typeMap.get(((TypeVariable<?>) from).getName())); } return false; }
[ "Checks if two types are the same or are equivalent under a variable\nmapping given in the type map that was provided." ]
[ "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id.", "Replace the current with a new generated identity object and\nreturns the old one.", "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig", "Use this API to fetch nssimpleacl resources of given names .", "Called when app's singleton registry has been initialized", "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)", "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.", "Load the avatar base model\n@param avatarResource resource with avatar model" ]
@SuppressWarnings("unchecked") public static <E> E getObject(String className) { if (className == null) { return (E) null; } try { return (E) Class.forName(className).newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
[ "create an instance from the className\n@param <E> class of object\n@param className full class name\n@return an object or null if className is null" ]
[ "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "Fetch the latest versions for cluster metadata", "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.", "Returns the configured request parameter for the query string, or the default parameter if no core is configured.\n@return The configured request parameter for the query string, or the default parameter if no core is configured.", "Use this API to fetch the statistics of all authenticationvserver_stats resources that are configured on netscaler.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Unlock the given region. Does not report failures.", "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception" ]
private boolean isSatisfied() { if(pipelineData.getZonesRequired() != null) { return ((pipelineData.getSuccesses() >= required) && (pipelineData.getZoneResponses() .size() >= (pipelineData.getZonesRequired() + 1))); } else { return pipelineData.getSuccesses() >= required; } }
[ "Checks whether every property except 'preferred' is satisfied\n\n@return" ]
[ "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step.", "Parse representations from a file object response.\n@param jsonObject representations json object in get response for /files/file-id?fields=representations\n@return list of representations", "Links the given widget to InstantSearch according to the interfaces it implements.\n\n@param widget a widget implementing ({@link AlgoliaResultsListener} || {@link AlgoliaErrorListener} || {@link AlgoliaSearcherListener}).", "Marks the start of a query identified by the provided correlationId\n\n@param query - Query data\n@param correlationId - Identifier\n@return Start event to pass to the Events systems EventBus", "Creates the operation to add a resource.\n\n@param address the address of the operation to add.\n@param properties the properties to set for the resource.\n\n@return the operation.", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Returns the list of Solr fields a search result must have to initialize the gallery search result correctly.\n@return the list of Solr fields.", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores" ]
public List<Integer> getConnectionRetries() { List<Integer> items = new ArrayList<Integer>(); for (int i = 0; i < 10; i++) { items.add(i); } return items; }
[ "To populate the dropdown list from the jelly" ]
[ "The Baseline Start field shows the planned beginning date for a task at\nthe time you saved a baseline. Information in this field becomes available\nwhen you set a baseline.\n\n@return Date", "Adds a property to report design, this properties are mostly used by\nexporters to know if any specific configuration is needed\n\n@param name\n@param value\n@return A Dynamic Report Builder", "as it is daemon thread\n\nTODO when release external resources should shutdown the scheduler.", "Processes the template for all reference definitions of the current class definition.\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\"", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Sets the maxConnectionAge. Any connections older than this setting will be closed\noff whether it is idle or not. Connections currently in use will not be affected until they\nare returned to the pool.\n\n@param maxConnectionAge the maxConnectionAge to set.\n@param timeUnit the unit of the maxConnectionAge argument.", "Called by the engine to trigger the cleanup at the end of a payload thread.", "Use this API to fetch a vpnglobal_binding resource .", "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed" ]
public static Duration getDuration(ProjectProperties properties, Integer durationValue, Integer unitsValue) { Duration result; if (durationValue == null) { result = null; } else { result = Duration.getInstance(durationValue.intValue(), TimeUnit.MINUTES); TimeUnit units = getDurationUnits(unitsValue); if (result.getUnits() != units) { result = result.convertUnits(units, properties); } } return (result); }
[ "Convert the integer representation of a duration value and duration units\ninto an MPXJ Duration instance.\n\n@param properties project properties, used for duration units conversion\n@param durationValue integer duration value\n@param unitsValue integer units value\n@return Duration instance" ]
[ "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth server token secret\n@param token OAuth server issued token\n@return this Replication instance to set more options or trigger the replication", "Invoked periodically.", "Add an addon to the app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAllAddons} to get a list of addons that can be used.\n@return The request object", "Set the value of switch component.", "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')", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null" ]
public DynamicReportBuilder setTemplateFile(String path, boolean importFields, boolean importVariables, boolean importParameters, boolean importDatasets) { report.setTemplateFileName(path); report.setTemplateImportFields(importFields); report.setTemplateImportParameters(importParameters); report.setTemplateImportVariables(importVariables); report.setTemplateImportDatasets(importDatasets); return this; }
[ "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return" ]
[ "Set the model used by the left table.\n\n@param model table model", "Populates a resource availability table.\n\n@param table resource availability table\n@param data file data", "This method is used to finalize the configuration\nafter the configuration items have been set.", "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "A smoothed pulse function. A cubic function is used to smooth the step between two thresholds.\n@param a1 the lower threshold position for the start of the pulse\n@param a2 the upper threshold position for the start of the pulse\n@param b1 the lower threshold position for the end of the pulse\n@param b2 the upper threshold position for the end of the pulse\n@param x the input parameter\n@return the output value", "Add a source and destination.\n\n@param source Source path to be routed. Routed path can have named wild-card pattern with braces \"{}\".\n@param destination Destination of the path.", "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved" ]
public void logError(String message, Object sender) { getEventManager().sendEvent(this, IErrorEvents.class, "onError", new Object[] { message, sender }); }
[ "Logs an error by sending an error event to all listeners.\n\nError events can be generated by any part of GearVRF,\nfrom any thread. They are always sent to the event receiver\nof the GVRContext.\n\n@param message error message\n@param sender object which had the error\n@see IErrorEvents" ]
[ "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", "Executes an operation on the controller latching onto an existing transaction\n\n@param operation the operation\n@param handler the handler\n@param control the transaction control\n@param prepareStep the prepare step to be executed before any other steps\n@param operationId the id of the current transaction\n@return the result of the operation", "Create the work pattern assignment map.\n\n@param rows calendar rows\n@return work pattern assignment map", "Notifies all listeners that the data is about to be loaded.", "Checks the id value.\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", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Use this API to count linkset_interface_binding resources configued on NetScaler.", "Gets the crouton's layout parameters, constructing a default if necessary.\n\n@return the layout parameters", "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" ]
private ChildTaskContainer getParentTask(String wbs) { ChildTaskContainer result; String parentWbs = getParentWBS(wbs); if (parentWbs == null) { result = m_projectFile; } else { result = m_taskMap.get(parentWbs); } return result; }
[ "Retrieve the parent task based on its WBS.\n\n@param wbs parent WBS\n@return parent task" ]
[ "Method used to read the sub project details from a byte array.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset\n@return new SubProject instance", "Do not call this method outside of activity!!!", "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", "Visits an annotation on a local variable type.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#LOCAL_VARIABLE\nLOCAL_VARIABLE} or {@link TypeReference#RESOURCE_VARIABLE\nRESOURCE_VARIABLE}. See {@link TypeReference}.\n@param typePath\nthe path to the annotated type argument, wildcard bound, array\nelement type, or static inner type within 'typeRef'. May be\n<tt>null</tt> if the annotation targets 'typeRef' as a whole.\n@param start\nthe fist instructions corresponding to the continuous ranges\nthat make the scope of this local variable (inclusive).\n@param end\nthe last instructions corresponding to the continuous ranges\nthat make the scope of this local variable (exclusive). This\narray must have the same size as the 'start' array.\n@param index\nthe local variable's index in each range. This array must have\nthe same size as the 'start' array.\n@param desc\nthe class descriptor of the annotation class.\n@param visible\n<tt>true</tt> if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or <tt>null</tt> if\nthis visitor is not interested in visiting this annotation.", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "Calculates all dates of the series.\n@return all dates of the series in milliseconds.", "Retrieves the working hours on the given date.\n\n@param date required date\n@param cal optional calendar instance\n@param day optional day instance\n@return working hours", "I promise that this is always a collection of HazeltaskTasks" ]
public static base_response change(nitro_service client, appfwsignatures resource) throws Exception { appfwsignatures updateresource = new appfwsignatures(); updateresource.name = resource.name; updateresource.mergedefault = resource.mergedefault; return updateresource.perform_operation(client,"update"); }
[ "Use this API to change appfwsignatures." ]
[ "Use this API to unset the properties of nsdiameter resource.\nProperties that need to be unset are specified in args array.", "This method displays the resource assignments for each resource. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a resource-by-resource basis.\n\n@param file MPX file", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Generates new individual particle radius based on min and max radius setting.\n\n@return new particle radius", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Process a text-based PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation" ]
public Backup getBackupData() throws Exception { Backup backupData = new Backup(); backupData.setGroups(getGroups()); backupData.setProfiles(getProfiles()); ArrayList<Script> scripts = new ArrayList<Script>(); Collections.addAll(scripts, ScriptService.getInstance().getScripts()); backupData.setScripts(scripts); return backupData; }
[ "Return the structured backup data\n\n@return Backup of current configuration\n@throws Exception exception" ]
[ "Build query string.\n@return Query string or null if query string contains no parameters at all.", "Gets the aggregate result count summary. only list the counts for brief\nunderstanding\n\n@return the aggregate result count summary", "Create an executable jar to generate the report. Created jar contains only\nallure configuration file.", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device", "Find out the scrollable child view from a ViewGroup.\n\n@param viewGroup", "We have obtained a beat grid for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this beat grid\n@param beatGrid the beat grid which we retrieved", "Validate the header signature.\n\n@param input The input to read the signature from\n@throws IOException If any read problems occur", "Update the selection state of the item\n@param dataIndex data set index\n@param select if it is true the item is marked as selected, otherwise - unselected\n@return true if the selection state has been changed successfully, otherwise - false" ]
public static Double getDistanceWithinThresholdOfCoordinates( Tuple2<Double, Double> point1, Tuple2<Double, Double> point2) { throw new NotImplementedError(); }
[ "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception." ]
[ "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "get the TypeArgSignature corresponding to given type\n\n@param type\n@return", "Returns the default shared instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Provides lookup of elements by non-namespaced name.\n\n@param name the name or shortcut key for nodes of interest\n@return the nodes of interest which match name", "Get all the names of inputs that are required to be in the Values object when this graph is executed.", "Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?" ]
public void downloadRange(OutputStream output, long rangeStart, long rangeEnd, ProgressListener listener) { URL url = CONTENT_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); if (rangeEnd > 0) { request.addHeader("Range", String.format("bytes=%s-%s", Long.toString(rangeStart), Long.toString(rangeEnd))); } else { request.addHeader("Range", String.format("bytes=%s-", Long.toString(rangeStart))); } BoxAPIResponse response = request.send(); InputStream input = response.getBody(listener); byte[] buffer = new byte[BUFFER_SIZE]; try { int n = input.read(buffer); while (n != -1) { output.write(buffer, 0, n); n = input.read(buffer); } } catch (IOException e) { throw new BoxAPIException("Couldn't connect to the Box API due to a network error.", e); } finally { response.disconnect(); } }
[ "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd, while reporting the\nprogress to a ProgressListener.\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.\n@param listener a listener for monitoring the download's progress." ]
[ "Takes the file, reads it in, and prints out the likelihood of each possible\nlabel at each point.\n\n@param filename\nThe path to the specified file", "Return the max bounds of the layer as envelope.\n\n@param layer the layer to get envelope from\n@return Envelope the envelope", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Use this API to unset the properties of clusterinstance resource.\nProperties that need to be unset are specified in args array.", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Set the named arguments.\n\n@param vars\nthe new named arguments", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "Removes elements from begin to end from the list, inclusive. Returns a new list which\nis composed of the removed elements", "Creates a map of work pattern rows indexed by the primary key.\n\n@param rows work pattern rows\n@return work pattern map" ]
public static void validateClusterPartitionState(final Cluster subsetCluster, final Cluster supersetCluster) { if(!supersetCluster.getNodeIds().containsAll(subsetCluster.getNodeIds())) { throw new VoldemortException("Superset cluster does not contain all nodes from subset cluster[ subset cluster node ids (" + subsetCluster.getNodeIds() + ") are not a subset of superset cluster node ids (" + supersetCluster.getNodeIds() + ") ]"); } for(int nodeId: subsetCluster.getNodeIds()) { Node supersetNode = supersetCluster.getNodeById(nodeId); Node subsetNode = subsetCluster.getNodeById(nodeId); if(!supersetNode.getPartitionIds().equals(subsetNode.getPartitionIds())) { throw new VoldemortRebalancingException("Partition IDs do not match between clusters for nodes with id " + nodeId + " : subset cluster has " + subsetNode.getPartitionIds() + " and superset cluster has " + supersetNode.getPartitionIds()); } } Set<Integer> nodeIds = supersetCluster.getNodeIds(); nodeIds.removeAll(subsetCluster.getNodeIds()); for(int nodeId: nodeIds) { Node supersetNode = supersetCluster.getNodeById(nodeId); if(!supersetNode.getPartitionIds().isEmpty()) { throw new VoldemortRebalancingException("New node " + nodeId + " in superset cluster already has partitions: " + supersetNode.getPartitionIds()); } } }
[ "Confirm that all nodes shared between clusters host exact same partition\nIDs and that nodes only in the super set cluster have no partition IDs.\n\n@param subsetCluster\n@param supersetCluster" ]
[ "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Filter on a search term. Can be course name, code or full ID. Must be at least 3 characters\n@param searchTerm Search term to filter by\n@return This object to allow adding more options", "Gets the current Stack. If the stack is not set, a new empty instance is created and set.\n@return", "Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found.", "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\n@return {@code this}", "Template method for verification of lazy initialisation.", "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", "add a single Object to the Collection. This method is used during reading Collection elements\nfrom the database. Thus it is is save to cast anObject to the underlying element type of the\ncollection.", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields" ]
public static String format(Flags flags) { StringBuilder buf = new StringBuilder(); buf.append('('); if (flags.contains(Flags.Flag.ANSWERED)) { buf.append("\\Answered "); } if (flags.contains(Flags.Flag.DELETED)) { buf.append("\\Deleted "); } if (flags.contains(Flags.Flag.DRAFT)) { buf.append("\\Draft "); } if (flags.contains(Flags.Flag.FLAGGED)) { buf.append("\\Flagged "); } if (flags.contains(Flags.Flag.RECENT)) { buf.append("\\Recent "); } if (flags.contains(Flags.Flag.SEEN)) { buf.append("\\Seen "); } String[] userFlags = flags.getUserFlags(); if(null!=userFlags) { for(String uf: userFlags) { buf.append(uf).append(' '); } } // Remove the trailing space, if necessary. if (buf.length() > 1) { buf.setLength(buf.length() - 1); } buf.append(')'); return buf.toString(); }
[ "Returns IMAP formatted String of MessageFlags for named user" ]
[ "An invalid reference or references. The verification of the digest of a\nreference failed. This can be caused by a change to the referenced data\nsince the signature was generated.\n\n@param aInvalidReferences\nThe indices to the invalid references.\n@return Result object", "Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.\n@return ClassDescriptor or null", "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "Counts a single pair of coordinates in all datasets.\n\n@param xCoord\n@param yCoord\n@param itemDocument", "Set the timeout for idle connections. Voldemort client caches all\nconnections to the Voldemort server. This setting allows the a connection\nto be dropped, if it is idle for more than this time.\n\nThis could be useful in the following cases 1) Voldemort client is not\ndirectly connected to the server and is connected via a proxy or\nfirewall. The Proxy or firewall could drop the connection silently. If\nthe connection is dropped, then client will see operations fail with a\ntimeout. Setting this property enables the Voldemort client to tear down\nthe connection before a firewall could drop it. 2) Voldemort server\ncaches the connection and each connection has an associated memory cost.\nSetting this property on all clients, enable the clients to prune the\nconnections and there by freeing up the server connections.\n\nthrows IllegalArgumentException if the timeout is less than 10 minutes.\n\nCurrently it can't be set below 10 minutes to avoid the racing risk of\ncontention between connection checkout and selector trying to close it.\nThis is intended for low throughput scenarios.\n\n@param idleConnectionTimeout\nzero or negative number to disable the feature ( default -1)\ntimeout\n@param unit {@link TimeUnit}\n@return ClientConfig object for chained set\n\nthrows {@link IllegalArgumentException} if the timeout is greater\nthan 0, but less than 10 minutes.", "Creates an endpoint reference by duplicating the endpoint reference of a given server.\n@param server\n@param address\n@param props\n@return", "process all messages in this batch, provided there is plenty of output space.", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents", "Creates a new form session to edit the file with the given name using the given form configuration.\n\n@param configPath the site path of the form configuration\n@param fileName the name (not path) of the XML content to edit\n@return the id of the newly created form session\n\n@throws CmsUgcException if something goes wrong" ]
public static boolean inArea(Point point, Rect area, float offsetRatio) { int offset = (int) (area.width() * offsetRatio); return point.x >= area.left - offset && point.x <= area.right + offset && point.y >= area.top - offset && point.y <= area.bottom + offset; }
[ "judge if an point in the area or not\n\n@param point\n@param area\n@param offsetRatio\n@return" ]
[ "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", "Build the tree of joins for the given criteria", "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible", "Sets a custom configuration attribute.\n@param attributeName the attribute name. Names starting with\n{@link #JDBC_PROPERTY_NAME_PREFIX} will be used (without the prefix) by the\nConnectionFactory when creating connections from DriverManager\n(not used for external DataSource connections). Names starting with\n{@link #DBCP_PROPERTY_NAME_PREFIX} to Commons DBCP (if used, also without prefix).\n@param attributeValue the attribute value", "Add the final assignment of the property to the partial value object's source code.", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "Remove the nodes representing the entity and the embedded elements attached to it.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values of the key identifying the entity to remove" ]
public void disconnect() { if (sendThread != null) { sendThread.interrupt(); try { sendThread.join(); } catch (InterruptedException e) { } sendThread = null; } if (receiveThread != null) { receiveThread.interrupt(); try { receiveThread.join(); } catch (InterruptedException e) { } receiveThread = null; } if(transactionCompleted.availablePermits() < 0) transactionCompleted.release(transactionCompleted.availablePermits()); transactionCompleted.drainPermits(); logger.trace("Transaction completed permit count -> {}", transactionCompleted.availablePermits()); if (this.serialPort != null) { this.serialPort.close(); this.serialPort = null; } logger.info("Disconnected from serial port"); }
[ "Disconnects from the serial interface and stops\nsend and receive threads." ]
[ "Return all URI schemes that are supported in the system.", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return", "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException", "Use this API to fetch all the appfwsignatures resources that are configured on netscaler.", "Creates the string mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param position\nthe position\n@throws IOException\nSignals that an I/O exception has occurred.", "Go through all node IDs and determine which node\n\n@param cluster\n@param storeRoutingPlan\n@return", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Call batch tasks inside of a connection which may, or may not, have been \"saved\".", "Reads a single byte from the input stream." ]
public static final void deleteQuietly(File file) { if (file != null) { if (file.isDirectory()) { File[] children = file.listFiles(); if (children != null) { for (File child : children) { deleteQuietly(child); } } } file.delete(); } }
[ "Delete a file ignoring failures.\n\n@param file file to delete" ]
[ "Removes the specified objects.\n\n@param collection The collection to remove.", "Disables all the overrides for a specific profile\n\n@param model\n@param profileID\n@param clientUUID\n@return", "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation.", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Do not call this method outside of activity!!!", "Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects", "Returns a compact representation of all of the projects the task is in.\n\n@param task The task to get projects on.\n@return Request object", "Send a master handoff yield command to all registered listeners.\n\n@param toPlayer the device number to which we are being instructed to yield the tempo master role", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments." ]
private static String wordShapeChris2Long(String s, boolean omitIfInBoundary, int len, Collection<String> knownLCWords) { final char[] beginChars = new char[BOUNDARY_SIZE]; final char[] endChars = new char[BOUNDARY_SIZE]; int beginUpto = 0; int endUpto = 0; final Set<Character> seenSet = new TreeSet<Character>(); // TreeSet guarantees stable ordering; has no size parameter boolean nonLetters = false; for (int i = 0; i < len; i++) { int iIncr = 0; char c = s.charAt(i); char m = c; if (Character.isDigit(c)) { m = 'd'; } else if (Character.isLowerCase(c)) { m = 'x'; } else if (Character.isUpperCase(c) || Character.isTitleCase(c)) { m = 'X'; } for (String gr : greek) { if (s.startsWith(gr, i)) { m = 'g'; //System.out.println(s + " :: " + s.substring(i+1)); iIncr = gr.length() - 1; break; } } if (m != 'x' && m != 'X') { nonLetters = true; } if (i < BOUNDARY_SIZE) { beginChars[beginUpto++] = m; } else if (i < len - BOUNDARY_SIZE) { seenSet.add(Character.valueOf(m)); } else { endChars[endUpto++] = m; } i += iIncr; // System.out.println("Position skips to " + i); } // Calculate size. This may be an upperbound, but is often correct int sbSize = beginUpto + endUpto + seenSet.size(); if (knownLCWords != null) { sbSize++; } final StringBuilder sb = new StringBuilder(sbSize); // put in the beginning chars sb.append(beginChars, 0, beginUpto); // put in the stored ones sorted if (omitIfInBoundary) { for (Character chr : seenSet) { char ch = chr.charValue(); boolean insert = true; for (int i = 0; i < beginUpto; i++) { if (beginChars[i] == ch) { insert = false; break; } } for (int i = 0; i < endUpto; i++) { if (endChars[i] == ch) { insert = false; break; } } if (insert) { sb.append(ch); } } } else { for (Character chr : seenSet) { sb.append(chr.charValue()); } } // and add end ones sb.append(endChars, 0, endUpto); if (knownLCWords != null) { if (!nonLetters && knownLCWords.contains(s.toLowerCase())) { sb.append('k'); } } // System.out.println(s + " became " + sb); return sb.toString(); }
[ "That is, of size 6, which become 8, since HashMaps are powers of 2. Still, it's half the size" ]
[ "Use to generate a file based on generator node.", "remove files from directory. All-or-nothing operation - if any of the files fails to be removed, all deleted files are restored.\n\nThe operation is performed in two steps - first all the files are moved to a backup folder, and afterwards backup folder is removed.\nIf an error occurs in the first step of the operation, all files are restored and the operation ends with status {@code false}.\nIf an error occurs in the second step, the operation ends with status {@code false}, but the files are not rolled back.\n\n@throws IOException if an error occurred", "Sets the value of the setting with the specified key.\n\n@param key name of the setting\n@param value the setting value\n@return this {@code EnvironmentConfig} instance", "Provide array of String results from inputOutput MFString field named string.\n@return value of string field", "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Tell a device to turn sync on or off.\n\n@param deviceNumber the device whose sync state is to be set\n@param synced {@code} true if sync should be turned on, else it will be turned off\n\n@throws IOException if there is a problem sending the command to the device\n@throws IllegalStateException if the {@code VirtualCdj} is not active\n@throws IllegalArgumentException if {@code deviceNumber} is not found on the network", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used multiple times with the same connection when gathering\nall track metadata.\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@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved metadata, or {@code null} if there is no such track\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Make all elements of a String array upper case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements upper case" ]
public void add(StatementRank rank, Resource subject) { if (this.bestRank == rank) { subjects.add(subject); } else if(bestRank == StatementRank.NORMAL && rank == StatementRank.PREFERRED) { //We found a preferred statement subjects.clear(); bestRank = StatementRank.PREFERRED; subjects.add(subject); } }
[ "Adds a Statement.\n\n@param rank\nrank of the statement\n@param subject\nrdf resource that refers to the statement" ]
[ "Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "Returns the port as configured by the system variables, fallback is the default port value\n\n@param portIdentifier - SYS_*_PORT defined in Constants\n@return", "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String", "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution.", "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", "In case parent thread spawn thread we need create a new queue\nfor child thread but use the only one root step. In the end all steps will be\nchildren of root step, all we need is sync adding steps\n@param parentValue value from parent thread\n@return local copy of queue in this thread with parent root as first element", "Set HTTP headers to allow caching for the given number of seconds.\n\n@param response where to set the caching settings\n@param seconds number of seconds into the future that the response should be cacheable for", "Performs the update to the persistent configuration model. This default implementation simply removes\nthe targeted resource.\n\n@param context the operation context\n@param operation the operation\n@throws OperationFailedException if there is a problem updating the model" ]
public void forAllMemberTagTokens(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { forAllMemberTagTokens(template, attributes, FOR_FIELD); } else if (getCurrentMethod() != null) { forAllMemberTagTokens(template, attributes, FOR_METHOD); } }
[ "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"" ]
[ "The read timeout for the underlying URLConnection to the twitter stream.", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Get a View that displays the data at the specified\nposition in the data set. In this case, if we are at\nthe end of the list and we are still in append mode, we\nask for a pending view and return it, plus kick off the\nbackground task to append more data to the wrapped\nadapter.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View", "Retrieve the next available field.\n\n@return FieldType instance for the next available field", "Determines if a token stream contains only numeric tokens\n@param stream\n@return true if all tokens in the given stream can be parsed as an integer", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Set an enterprise text value.\n\n@param index text index (1-40)\n@param value text value", "Adds a materialization listener.\n\n@param listener\nThe listener to add", "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" ]
private boolean hasBidirectionalAssociation(Class clazz) { ClassDescriptor cdesc; Collection refs; boolean hasBidirAssc; if (_withoutBidirAssc.contains(clazz)) { return false; } if (_withBidirAssc.contains(clazz)) { return true; } // first time we meet this class, let's look at metadata cdesc = _pb.getClassDescriptor(clazz); refs = cdesc.getObjectReferenceDescriptors(); hasBidirAssc = false; REFS_CYCLE: for (Iterator it = refs.iterator(); it.hasNext(); ) { ObjectReferenceDescriptor ord; ClassDescriptor relCDesc; Collection relRefs; ord = (ObjectReferenceDescriptor) it.next(); relCDesc = _pb.getClassDescriptor(ord.getItemClass()); relRefs = relCDesc.getObjectReferenceDescriptors(); for (Iterator relIt = relRefs.iterator(); relIt.hasNext(); ) { ObjectReferenceDescriptor relOrd; relOrd = (ObjectReferenceDescriptor) relIt.next(); if (relOrd.getItemClass().equals(clazz)) { hasBidirAssc = true; break REFS_CYCLE; } } } if (hasBidirAssc) { _withBidirAssc.add(clazz); } else { _withoutBidirAssc.add(clazz); } return hasBidirAssc; }
[ "Does the given class has bidirectional assiciation\nwith some other class?" ]
[ "only TOP or Bottom", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses", "Computes the unbiased standard deviation of all the elements.\n\n@return standard deviation", "Try to link the declaration with the importerService referenced by the ServiceReference,.\nreturn true if they have been link together, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<S> of S\n@return true if they have been link together, false otherwise.", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty.", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2", "Populate the properties indicating the source of this schedule.\n\n@param properties project properties", "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments." ]
public static Iterable<BoxFileVersionRetention.Info> getRetentions( final BoxAPIConnection api, QueryFilter filter, String ... fields) { filter.addFields(fields); return new BoxResourceIterable<BoxFileVersionRetention.Info>(api, ALL_RETENTIONS_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), filter.toString()), DEFAULT_LIMIT) { @Override protected BoxFileVersionRetention.Info factory(JsonObject jsonObject) { BoxFileVersionRetention retention = new BoxFileVersionRetention(api, jsonObject.get("id").asString()); return retention.new Info(jsonObject); } }; }
[ "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter." ]
[ "Stop the drag action.", "Make sure we don't attempt to recover inline; if the parser\nsuccessfully recovers, it won't throw an exception.", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "1-D Gabor function.\n\n@param x Value.\n@param mean Mean.\n@param amplitude Amplitude.\n@param position Position.\n@param width Width.\n@param phase Phase.\n@param frequency Frequency.\n@return Gabor response.", "Sets the specified many-to-one attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have been wrapped with \"\".\n@return an iterable containing info about all the groups.", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates" ]
public static <T> List<T> copyOf(T[] elements) { Preconditions.checkNotNull(elements); return ofInternal(elements.clone()); }
[ "Creates an immutable list that consists of the elements in the given array. A copy of the given array is used which means\nthat any modifications to the given array will not affect the immutable list.\n\n@param elements the given array of elements\n@return an immutable list" ]
[ "Retrieve a UUID from an input stream.\n\n@param is input stream\n@return UUID instance", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Converts a standard optimizer to one which the given amount of l1 or l2 regularization.", "Creates and returns a GVRSceneObject with the specified mesh attributes.\n\n@param vertices the vertex positions of that make up the mesh. (x1, y1, z1, x2, y2, z2, ...)\n@param velocities the velocity attributes for each vertex. (vx1, vy1, vz1, vx2, vy2, vz2...)\n@param particleTimeStamps the spawning times of each vertex. (t1, 0, t2, 0, t3, 0 ..)\n\n@return The GVRSceneObject with this mesh.", "Deletes data associated with the given profile ID\n\n@param profileId ID of profile", "Returns number of dependencies layers in the image.\n\n@param imageContent\n@return\n@throws IOException", "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list" ]
public PhotoList<Photo> search(SearchParameters params, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_SEARCH); parameters.putAll(params.getAsParameters()); if (perPage > 0) { parameters.put("per_page", "" + perPage); } if (page > 0) { parameters.put("page", "" + page); } Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perpage")); photos.setTotal(photosElement.getAttribute("total")); NodeList photoNodes = photosElement.getElementsByTagName("photo"); for (int i = 0; i < photoNodes.getLength(); i++) { Element photoElement = (Element) photoNodes.item(i); photos.add(PhotoUtils.createPhoto(photoElement)); } return photos; }
[ "Search for photos which match the given search parameters.\n\n@param params\nThe search parameters\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return A PhotoList\n@throws FlickrException" ]
[ "Creates all propertyvfsbundle files for the currently loaded translations.\nThe method is used to convert xmlvfsbundle files into propertyvfsbundle files.\n\n@throws CmsIllegalArgumentException thrown if resource creation fails.\n@throws CmsLoaderException thrown if the propertyvfsbundle type can't be read from the resource manager.\n@throws CmsException thrown if creation, type retrieval or locking fails.", "Processes the most recent dump of the sites table to extract information\nabout registered sites.\n\n@return a Sites objects that contains the extracted information, or null\nif no sites dump was available (typically in offline mode without\nhaving any previously downloaded sites dumps)\n@throws IOException\nif there was a problem accessing the sites table dump or the\ndump download directory", "Send ourselves \"updates\" about any tracks that were loaded before we started, since we missed them.", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "Print an extended attribute currency value.\n\n@param value currency value\n@return string representation", "Purges the JSP repository.<p<\n\n@param afterPurgeAction the action to execute after purging", "Get transformer to use.\n\n@return transformation to apply", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Counts a single pair of coordinates in all datasets.\n\n@param xCoord\n@param yCoord\n@param itemDocument" ]
public Map<String, List<Locale>> getAvailableLocales() { if (m_availableLocales == null) { // create lazy map only on demand m_availableLocales = CmsCollectionsGenericWrapper.createLazyMap(new CmsAvailableLocaleLoaderTransformer()); } return m_availableLocales; }
[ "Returns a lazily generated map from site paths of resources to the available locales for the resource.\n\n@return a lazily generated map from site paths of resources to the available locales for the resource." ]
[ "Returns the given text with the first letter in upper case.\n\n<h2>Examples:</h2>\n<pre>\ncapitalize(\"hi\") == \"Hi\"\ncapitalize(\"Hi\") == \"Hi\"\ncapitalize(\"hi there\") == \"hi there\"\ncapitalize(\"\") == \"\"\ncapitalize(null) == null\n</pre>\n@param text the text to capitalize\n@return text with the first letter in upper case", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Generate a Jongo query with provided the parameter.\n\n@param key\n@param value\n@return String", "Creates a general purpose solver. Use this if you are not sure what you need.\n\n@param numRows The number of rows that the decomposition is optimized for.\n@param numCols The number of columns that the decomposition is optimized for.", "Refresh the layout element.", "Use this API to delete sslcertkey resources of given names.", "If first and second are Strings, then this returns an MutableInternedPair\nwhere the Strings have been interned, and if this Pair is serialized\nand then deserialized, first and second are interned upon\ndeserialization.\n\n@param p A pair of Strings\n@return MutableInternedPair, with same first and second as this.", "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" ]
public static boolean isArrayOfUnboundedTypeVariablesOrObjects(Type[] types) { for (Type type : types) { if (Object.class.equals(type)) { continue; } if (type instanceof TypeVariable<?>) { Type[] bounds = ((TypeVariable<?>) type).getBounds(); if (bounds == null || bounds.length == 0 || (bounds.length == 1 && Object.class.equals(bounds[0]))) { continue; } } return false; } return true; }
[ "Determines whether the given array only contains unbounded type variables or Object.class.\n\n@param types the given array of types\n@return true if and only if the given array only contains unbounded type variables or Object.class" ]
[ "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool", "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process.", "Roll the java.util.Time forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Gets the Chi Square distance between two normalized histograms.\n\n@param histogram1 Histogram.\n@param histogram2 Histogram.\n@return The Chi Square distance between x and y.", "Creates an option to deploy existing content to the runtime for each deployment\n\n@param deployments a set of deployments to deploy\n\n@return the deploy operation", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Convert string to qname.\n\n@param str the string\n@return the qname", "Runs a query that returns a single int." ]
private void readProjectProperties(Document cdp) { WorkspaceProperties props = cdp.getWorkspaceProperties(); ProjectProperties mpxjProps = m_projectFile.getProjectProperties(); mpxjProps.setSymbolPosition(props.getCurrencyPosition()); mpxjProps.setCurrencyDigits(props.getCurrencyDigits()); mpxjProps.setCurrencySymbol(props.getCurrencySymbol()); mpxjProps.setDaysPerMonth(props.getDaysPerMonth()); mpxjProps.setMinutesPerDay(props.getHoursPerDay()); mpxjProps.setMinutesPerWeek(props.getHoursPerWeek()); m_workHoursPerDay = mpxjProps.getMinutesPerDay().doubleValue() / 60.0; }
[ "Extracts project properties from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file" ]
[ "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.", "Set the offsets in the compressed data area for each mip-map level.\n@param offsets array of offsets", "Resolve a resource transformer for a given address.\n\n@param address the address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the resource transformer", "Function to perform backward softmax", "Creates a solver for symmetric positive definite matrices.\n\n@return A new solver for symmetric positive definite matrices.", "Returns script view\n\n@param model\n@return\n@throws Exception", "Return a new File object based on the baseDir and the segments.\n\nThis method does not perform any operation on the file system.", "Run the configured crawl. This method blocks until the crawl is done.\n\n@return the CrawlSession once the crawl is done.", "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" ]
public void setDividerPadding(float padding, final Axis axis) { if (axis == getOrientationAxis()) { super.setDividerPadding(padding, axis); } else { Log.w(TAG, "Cannot apply divider padding for wrong axis [%s], orientation = %s", axis, getOrientation()); } }
[ "Sets divider padding for axis. If axis does not match the orientation, it has no effect.\n@param padding\n@param axis {@link Axis}" ]
[ "Curries a function that takes three arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes two arguments. Never <code>null</code>.", "Generate a schedule descriptor for the given start and end date.\n\n@param startDate The start date.\n@param endDate The end date.\n@return The schedule descriptor", "Parses command-line and gets read-only metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Use this API to delete appfwjsoncontenttype of given name.", "create an instance from the className\n@param <E> class of object\n@param className full class name\n@return an object or null if className is null", "Create a HttpComponents HttpUriRequest object for the given HTTP method and URI specification.\n\n@param httpMethod the HTTP method\n@param uri the URI\n@return the HttpComponents HttpUriRequest object", "Removes a set of calendar hours from the day to which they\nare currently attached.\n\n@param hours calendar hours instance", "Adds the supplied marker to the map.\n\n@param marker" ]
public Rectangle toRelative(Rectangle rect) { return new Rectangle(rect.getLeft() - origX, rect.getBottom() - origY, rect.getRight() - origX, rect.getTop() - origY); }
[ "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle" ]
[ "Takes an HTML file, looks for the first instance of the specified insertion point, and\ninserts the diagram image reference and a client side map in that point.", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Check the variable name and if not set, set it with the singleton variable being on the top of the stack.", "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge", "Last caller of this method will unregister the Mbean. All callers\ndecrement the counter.", "Sets the position of the currency symbol.\n\n@param posn currency symbol position.", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Gets the SerialMessage as a byte array.\n@return the message" ]
public static ProxyMetaClass getInstance(Class theClass) throws IntrospectionException { MetaClassRegistry metaRegistry = GroovySystem.getMetaClassRegistry(); MetaClass meta = metaRegistry.getMetaClass(theClass); return new ProxyMetaClass(metaRegistry, theClass, meta); }
[ "convenience factory method for the most usual case." ]
[ "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process.", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "Inits the ws client.\n\n@param context the context\n@throws Exception the exception", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "Extract name of the resource from a resource ID.\n@param id the resource ID\n@return the name of the resource", "Inserts the specified objects at the specified index in the array.\n\n@param items The objects to insert into the array.\n@param index The index at which the object must be inserted.", "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "Writes the results of the processing to a CSV file.", "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects" ]
public void setProgressBackgroundColor(int colorRes) { mCircleView.setBackgroundColor(colorRes); mProgress.setBackgroundColor(getResources().getColor(colorRes)); }
[ "Set the background color of the progress spinner disc.\n\n@param colorRes Resource id of the color." ]
[ "Updates the terms and statements of the current document.\nThe updates are computed with respect to the current data in the document,\nmaking sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param currentDocument\nthe document to be updated; needs to have a correct revision id and\nentity id\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero.", "Refresh the layout element.", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache", "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map", "Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to", "Returns the value of a property of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Configure all UI elements in the exceptions panel." ]
public void addInterface(Class<?> newInterface) { if (!newInterface.isInterface()) { throw new IllegalArgumentException(newInterface + " is not an interface"); } additionalInterfaces.add(newInterface); }
[ "Adds an additional interface that the proxy should implement. The default\nimplementation will be to forward invocations to the bean instance.\n\n@param newInterface an interface" ]
[ "Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture information", "Only sets and gets that are by row and column are used.", "Process StepStartedEvent. New step will be created and added to\nstepStorage.\n\n@param event to process", "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", "This is the original, naive implementation, using the Wagner &\nFischer algorithm from 1974. It uses a flattened matrix for\nspeed, but still computes the entire matrix.", "Check if the current node is part of routing request based on cluster.xml\nor throw an exception.\n\n@param key The key we are checking\n@param routingStrategy The routing strategy\n@param currentNode Current node", "Reset autoCommit state.", "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "Provides the results of a QR decomposition. These will be modified by adding or removing\nrows from the original 'A' matrix.\n\n@param Q The Q matrix which is to be modified. Is modified later and reference saved.\n@param R The R matrix which is to be modified. Is modified later and reference saved." ]
public static base_response export(nitro_service client, sslfipskey resource) throws Exception { sslfipskey exportresource = new sslfipskey(); exportresource.fipskeyname = resource.fipskeyname; exportresource.key = resource.key; return exportresource.perform_operation(client,"export"); }
[ "Use this API to export sslfipskey." ]
[ "Prints the error message as log message.\n\n@param level the log level", "Write the document object to a file.\n\n@param document the document object.\n@param filePathname the path name of the file to be written to.\n@param method the output method: for instance html, xml, text\n@param indent amount of indentation. -1 to use the default.\n@throws TransformerException if an exception occurs.\n@throws IOException if an IO exception occurs.", "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Get a property as a boolean or throw exception.\n\n@param key the property name", "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.", "Initializes the metadataCache for MetadataStore", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Log a message at the provided level." ]
@Deprecated @SuppressWarnings("deprecation") protected void registerAddOperation(final ManagementResourceRegistration registration, final OperationStepHandler handler, OperationEntry.Flag... flags) { if (handler instanceof DescriptionProvider) { registration.registerOperationHandler(getOperationDefinition(ModelDescriptionConstants.ADD, (DescriptionProvider) handler, OperationEntry.EntryType.PUBLIC,flags) , handler); } else { registration.registerOperationHandler(getOperationDefinition(ModelDescriptionConstants.ADD, new DefaultResourceAddDescriptionProvider(registration, descriptionResolver, orderedChild), OperationEntry.EntryType.PUBLIC, flags) , handler); } }
[ "Registers add operation\n\n@param registration resource on which to register\n@param handler operation handler to register\n@param flags with flags\n@deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.controller.registry.OperationEntry.Flag...)}" ]
[ "Updates the file metadata.\n\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "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.", "Generate a Jongo query with provided the parameter.\n\n@param key\n@param value\n@return String", "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it.", "Use this API to fetch cachepolicylabel_binding resource of given name .", "Set hint number for country", "Use this API to fetch dnssuffix resources of given names .", "Finds all lazily-declared classes and methods and adds their definitions to the source.", "Sets the real offset.\n\n@param start the start\n@param end the end" ]
private void updateDefaultTimeAndSizeRollingAppender(final FoundationFileRollingAppender appender) { if (appender.getDatePattern().trim().length() == 0) { appender.setDatePattern(FoundationLoggerConstants.DEFAULT_DATE_PATTERN.toString()); } String maxFileSizeKey = "log4j.appender."+appender.getName()+".MaxFileSize"; appender.setMaxFileSize(FoundationLogger.log4jConfigProps.getProperty(maxFileSizeKey, FoundationLoggerConstants.Foundation_MAX_FILE_SIZE.toString())); // if (appender.getMaxFileSize() == null || appender.getMaxFileSize().equals(FoundationLoggerConstants.DEFAULT_FILE_SIZE.toString())) { // appender.setMaxFileSize(FoundationLoggerConstants.Foundation_MAX_FILE_SIZE.toString()); // } String maxRollCountKey = "log4j.appender."+appender.getName()+".MaxRollFileCount"; appender.setMaxRollFileCount(Integer.parseInt(FoundationLogger.log4jConfigProps.getProperty(maxRollCountKey,"100"))); }
[ "Set default values for the TimeAndSizeRollingAppender appender\n\n@param appender" ]
[ "Create an info object from an authscope object.\n\n@param authscope the authscope", "Copies a classworlds file to a temporary location either on the local filesystem or on a slave depending on the\nnode type.\n\n@return The path of the classworlds.conf file", "Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler.", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Converts the provided object to a date, if possible.\n\n@param date the date.\n\n@return the date as {@link java.util.Date}", "Gets the actual type arguments of a Type\n\n@param type The type to examine\n@return The type arguments", "returns &gt; 0 when o1 is more specific than o2,\n\nreturns == 0 when o1 and o2 are equal or unrelated,\n\nreturns &lt; 0 when o2 is more specific than o1,", "Generates a sub-trajectory", "add a Component to this Worker. After the call dragging is enabled for this\nComponent.\n@param c the Component to register" ]
public static ForwardCurveInterpolation createForwardCurveFromMonteCarloLiborModel(String name, LIBORModelMonteCarloSimulationModel model, double startTime) throws CalculationException{ int timeIndex = model.getTimeIndex(startTime); // Get all Libors at timeIndex which are not yet fixed (others null) and times for the timeDiscretizationFromArray of the curves ArrayList<RandomVariable> liborsAtTimeIndex = new ArrayList<>(); int firstLiborIndex = model.getLiborPeriodDiscretization().getTimeIndexNearestGreaterOrEqual(startTime); double firstLiborTime = model.getLiborPeriodDiscretization().getTime(firstLiborIndex); if(firstLiborTime>startTime) { liborsAtTimeIndex.add(model.getLIBOR(startTime, startTime, firstLiborTime)); } // Vector of times for the forward curve double[] times = new double[firstLiborTime==startTime ? (model.getNumberOfLibors()-firstLiborIndex) : (model.getNumberOfLibors()-firstLiborIndex+1)]; times[0]=0; int indexOffset = firstLiborTime==startTime ? 0 : 1; for(int i=firstLiborIndex;i<model.getNumberOfLibors();i++) { liborsAtTimeIndex.add(model.getLIBOR(timeIndex,i)); times[i-firstLiborIndex+indexOffset]=model.getLiborPeriodDiscretization().getTime(i)-startTime; } RandomVariable[] libors = liborsAtTimeIndex.toArray(new RandomVariable[liborsAtTimeIndex.size()]); return ForwardCurveInterpolation.createForwardCurveFromForwards(name, times, libors, model.getLiborPeriodDiscretization().getTimeStep(firstLiborIndex)); }
[ "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates." ]
[ "Creates an upload session to create a new version of a file in chunks.\nThis will first verify that the version can be created and then open a session for uploading pieces of the file.\n@param fileSize the size of the file that will be uploaded.\n@return the created upload session instance.", "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array.", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "Gets the project name for a favorite entry.\n\n@param cms the CMS context\n@param entry the favorite entry\n@return the project name for the favorite entry\n@throws CmsException if something goes wrong", "Get the underlying channel. This may block until the channel is set.\n\n@return the channel\n@throws IOException for any error", "Returns an empty Search object in Json\n@return String\n@throws IOException", "Pause between cluster change in metadata and starting server rebalancing\nwork.", "Performs a query to retrieve all the design documents defined in the database.\n\n@return a list of the design documents from the database\n@throws IOException if there was an error communicating with the server\n@since 2.5.0", "Get a list of tags for the specified photo.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param photoId\nThe photo ID\n@return The collection of Tag objects" ]
public byte[] toArray() { byte[] copy = new byte[length]; System.arraycopy(data, offset, copy, 0, length); return copy; }
[ "Returns a byte array containing a copy of the bytes" ]
[ "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Use this API to update systemcollectionparam.", "Answer the SQL-Clause for a LikeCriteria\n\n@param c\n@param buf", "Private recursive helper function to actually do the type-safe checking\nof assignability.", "Delete all backups asynchronously", "Get a setted section knowing his title\n\nN.B. this search only into section list and bottom section list.\n@param title is the title of the section\n@return the section with title or null if the section is not founded", "Perform a normal scan", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "Use this API to fetch autoscaleaction resource of given name ." ]