query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public Where<T, ID> or() { ManyClause clause = new ManyClause(pop("OR"), ManyClause.OR_OPERATION); push(clause); addNeedsFuture(clause); return this; }
[ "OR operation which takes the previous clause and the next clause and OR's them together." ]
[ "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", "For internal use! This method creates real new PB instances", "Configure all UI elements in the except...
private void writeAssignments() { for (ResourceAssignment assignment : m_projectFile.getResourceAssignments()) { Resource resource = assignment.getResource(); if (resource != null) { Task task = assignment.getTask(); if (task != null && task.getUniqueID(...
[ "Writes assignment data to a PM XML file." ]
[ "Checks if request is intended for Gerrit host.", "Loads the favorite list.\n\n@return the list of favorites\n\n@throws CmsException if something goes wrong", "Get the collection of public contacts for the specified user ID.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return ...
private PersistenceBroker obtainBroker() { PersistenceBroker _broker; try { if (pbKey == null) { //throw new OJBRuntimeException("Not possible to do action, cause no tx runnning and no PBKey is set"); log.warn("No tx runnning an...
[ "Used to get PB, when no tx is running." ]
[ "Returns the specified element, or null.", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>...
public void collectVariables(EnvVars env, Run build, TaskListener listener) { EnvVars buildParameters = Utils.extractBuildParameters(build, listener); if (buildParameters != null) { env.putAll(buildParameters); } addAllWithFilter(envVars, env, filter.getPatternFilter()); ...
[ "Collect environment variables and system properties under with filter constrains" ]
[ "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "The primary run loop of the kqueue event processor.", "Hides the original Java-style method name using an attribute\nwhich should be respected by Visual Studio, the c...
public static <K, V, T> List<Versioned<V>> get(Store<K, V, T> storageEngine, K key, T transform) { Map<K, List<Versioned<V>>> result = storageEngine.getAll(Collections.singleton(key), Collections.singletonMap(key, ...
[ "Implements get by delegating to getAll." ]
[ "Use this API to add dospolicy resources.", "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON", "Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.", "Generates a schedule based on so...
private void writeProjectExtendedAttributes(Project project) { Project.ExtendedAttributes attributes = m_factory.createProjectExtendedAttributes(); project.setExtendedAttributes(attributes); List<Project.ExtendedAttributes.ExtendedAttribute> list = attributes.getExtendedAttribute(); Set<Fiel...
[ "This method writes project extended attribute data into an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data", "Retrieve the start slack.\n\n@return start slack", "View that redirects the top level window to the URL defined in postDeclineUrl property after user declines to authoriz...
public Association getAssociation(String collectionRole) { if ( associations == null ) { return null; } return associations.get( collectionRole ); }
[ "Return the association as cached in the entry state.\n\n@param collectionRole the role of the association\n@return the cached association" ]
[ "Polls the next char from the stack\n\n@return next char", "The metadata cache can become huge over time. This simply flushes it periodically.", "A specific, existing section can be deleted by making a DELETE request\non the URL for that section.\n\nNote that sections must be empty to be deleted.\n\nThe last re...
public void resetResendCount() { this.resendCount = 0; if (this.initializationComplete) this.nodeStage = NodeStage.NODEBUILDINFO_DONE; this.lastUpdated = Calendar.getInstance().getTime(); }
[ "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete." ]
[ "Set the group name\n\n@param name new name of server group\n@param id ID of group", "Mbeans for FETCH_ENTRIES", "Adds a new leap second to these rules.\n\n@param mjDay the Modified Julian Day that the leap second occurs at the end of\n@param leapAdjustment the leap seconds to add/remove at the end of the day...
private void readResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx) { for (Project.Resources.Resource.ExtendedAttribute attrib : xml.getExtendedAttribute()) { int xmlFieldID = Integer.parseInt(attrib.getFieldID()) & 0x0000FFFF; ResourceField mpxFieldID = MPPResourc...
[ "This method processes any extended attributes associated with a resource.\n\n@param xml MSPDI resource instance\n@param mpx MPX resource instance" ]
[ "Register the Rowgroup buckets and places the header cells for the rows", "Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException", "Start with specifying the artifact version", "Descri...
public void addRequiredValues(@Nonnull final Values sourceValues) { Object taskDirectory = sourceValues.getObject(TASK_DIRECTORY_KEY, Object.class); MfClientHttpRequestFactoryProvider requestFactoryProvider = sourceValues.getObject(CLIENT_HTTP_REQUEST_FACTORY_KEY, ...
[ "Add the elements that all values objects require from the provided values object.\n\n@param sourceValues the values object containing the required elements" ]
[ "Return true if the expression is a constructor call on a class that matches the supplied.\n@param expression - the expression\n@param classNamePattern - the possible List of class names\n@return as described", "Query a player to determine the port on which its database server is running.\n\n@param announcement t...
public void unlink(Object obj, ObjectReferenceDescriptor ord, boolean insert) { linkOrUnlink(false, obj, ord, insert); }
[ "Unlink the specified reference from this object.\nMore info see OJB doc.\n\n@param obj Object with reference\n@param ord the ObjectReferenceDescriptor of the reference\n@param insert flag signals insert operation" ]
[ "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Use this API to fetch cacheselector resource of given name .", "Links the form with an HTML element which can be clicked.\n\n@param form the collection of the input fields\n@return a FormAction\n@see Form", "Get the p...
public void setLargePayloadSupportEnabled(AmazonS3 s3, String s3BucketName) { if (s3 == null || s3BucketName == null) { String errorMessage = "S3 client and/or S3 bucket name cannot be null."; LOG.error(errorMessage); throw new AmazonClientException(errorMessage); } if (isLargePayloadSupportEnabled()) { ...
[ "Enables support for large-payload messages.\n\n@param s3\nAmazon S3 client which is going to be used for storing\nlarge-payload messages.\n@param s3BucketName\nName of the bucket which is going to be used for storing\nlarge-payload messages. The bucket must be already created and\nconfigured in s3." ]
[ "Gets id of a property and creates the new one if necessary.\n\n@param txn transaction\n@param propertyName name of the property.\n@param allowCreate if set to true and if there is no property named as propertyName,\ncreate the new id for the propertyName.\n@return < 0 if there is no such property and cre...
public static Result get(XmlFileModel key) { String cacheKey = getKey(key); Result result = null; CacheDocument reference = map.get(cacheKey); if (reference == null) return new Result(false, null); if (reference.parseFailure) return new Result(true,...
[ "Retrieve the currently cached value for the given document." ]
[ "Get a writer implementation to push data into Canvas while being able to control the behavior of blank values.\nIf the serializeNulls parameter is set to true, this writer will serialize null fields in the JSON being\nsent to Canvas. This is required if you want to explicitly blank out a value that is currently se...
private Envelope getLayerEnvelope(ProxyLayerSupport layer) { Bbox bounds = layer.getLayerInfo().getMaxExtent(); return new Envelope(bounds.getX(), bounds.getMaxX(), bounds.getY(), bounds.getMaxY()); }
[ "Return the max bounds of the layer as envelope.\n\n@param layer the layer to get envelope from\n@return Envelope the envelope" ]
[ "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException", "Replies the elements of the given map except the pair with the given key.\n\n<p>\nThe replied map is a view on the given map. It means that any ch...
private DiscountCurve createDiscountCurve(String discountCurveName) { DiscountCurve discountCurve = model.getDiscountCurve(discountCurveName); if(discountCurve == null) { discountCurve = DiscountCurveInterpolation.createDiscountCurveFromDiscountFactors(discountCurveName, new double[] { 0.0 }, new double[] { 1.0 ...
[ "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." ]
[ "Convert a field value to something suitable to be stored in the database.", "Analyses the command-line arguments which are relevant for the\nserialization process in general. It fills out the class arguments with\nthis data.\n\n@param cmd\n{@link CommandLine} objects; contains the command line\narguments parsed ...
public void add(Vector3d v1) { x += v1.x; y += v1.y; z += v1.z; }
[ "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector" ]
[ "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and will not be set.", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of b...
public static String toPrettyJson(Object o) { try { return MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(o); } catch (JsonProcessingException e) { LoggerFactory .getLogger(Serializer.class) .error("Could not serialize the object. This will be ignored and the error will be wr...
[ "Serialize the object JSON. When an error occures return a string with the given error." ]
[ "Get container for principal.\n\n@param cms cmsobject\n@param list of principals\n@param captionID caption id\n@param descID description id\n@param iconID icon id\n@param ouID ou id\n@param icon icon\n@param iconList iconlist\n@return indexedcontainer", "alias of setColorUnpressed", "Returns the probability tha...
public void convertToDense() { switch ( mat.getType() ) { case DSCC: { DMatrix m = new DMatrixRMaj(mat.getNumRows(), mat.getNumCols()); ConvertDMatrixStruct.convert((DMatrix) mat, m); setMatrix(m); } break; case FSCC: { ...
[ "Switches from a sparse to dense matrix" ]
[ "Emit status line for an aggregated event.", "Issue the database statements to drop the table associated with a dao.\n\n@param dao\nAssociated dao.\n@return The number of statements executed to do so.", "Fetches the current online data for the given item, and adds numerical\nlabels if necessary.\n\n@param itemI...
public AppMsg setLayoutGravity(int gravity) { mLayoutParams = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, gravity); return this; }
[ "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity" ]
[ "Helper to read a line from the config file.\n@param propValue the property value\n@return the value of the variable set at this line.", "Inspects the object and all superclasses for public, non-final, accessible methods and returns a\ncollection containing all the attributes found.\n\n@param classToInspect the c...
I_CmsSerialDateServiceAsync getService() { if (SERVICE == null) { SERVICE = GWT.create(I_CmsSerialDateService.class); String serviceUrl = CmsCoreProvider.get().link("org.opencms.ade.contenteditor.CmsSerialDateService.gwt"); ((ServiceDefTarget)SERVICE).setServiceEntryPoi...
[ "Returns the RPC service for serial dates.\n@return the RPC service for serial dates." ]
[ "Return the current handedness of the Gear Controller.\n\n@return returns whether the user is using the controller left or right handed. This function\nreturns <code>null</code> if the controller is unavailable or the data is stale.", "Look for the closing parenthesis corresponding to the one at position\nreprese...
@SuppressWarnings("rawtypes") private MailInboundChannelAdapterSpec getImapFlowBuilder(URLName urlName) { return Mail.imapInboundAdapter(urlName.toString()) .shouldMarkMessagesAsRead(this.properties.isMarkAsRead()); }
[ "Method to build Mail Channel Adapter for IMAP.\n@param urlName Mail source URL.\n@return Mail Channel for IMAP" ]
[ "Extract definition records from the table and divide into groups.", "Check exactly the week check-boxes representing the given weeks.\n@param weeksToCheck the weeks selected.", "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader...
public boolean isEUI64(boolean partial) { int segmentCount = getSegmentCount(); int endIndex = addressSegmentIndex + segmentCount; if(addressSegmentIndex <= 5) { if(endIndex > 6) { int index3 = 5 - addressSegmentIndex; IPv6AddressSegment seg3 = getSegment(index3); IPv6AddressSegment seg4 = getSegme...
[ "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return" ]
[ "Use this API to unset the properties of snmpalarm resources.\nProperties that need to be unset are specified in args array.", "Calculates the LatLong position of the end point of a line the specified\ndistance from this LatLong, along the provided bearing, where North is 0,\nEast is 90 etc.\n\n@param bearing The...
public static authenticationvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationradiuspolicy_binding obj = new authenticationvserver_authenticationradiuspolicy_binding(); obj.set_name(name); authenticationvserver_authentication...
[ "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name ." ]
[ "Use this API to fetch sslfipskey resources of given names .", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Obtains a Pax local date-time from another date-tim...
public static Boolean compareSingleClientConfigAvro(String configAvro1, String configAvro2) { Properties props1 = readSingleClientConfigAvro(configAvro1); Properties props2 = readSingleClientConfigAvro(configAvro2); if(props1.equals(props2)) { return true; } else { ...
[ "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content" ]
[ "Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of c...
public static BoxDeveloperEditionAPIConnection getAppUserConnection(String userId, BoxConfig boxConfig) { return getAppUserConnection(userId, boxConfig.getClientId(), boxConfig.getClientSecret(), boxConfig.getJWTEncryptionPreferences()); }
[ "Creates a new Box Developer Edition connection with App User token levaraging BoxConfig.\n@param userId the user ID to use for an App User.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection." ]
[ "Use this API to unset the properties of sslocspresponder resource.\nProperties that need to be unset are specified in args array.", "Use this API to fetch all the appfwwsdl resources that are configured on netscaler.", "Returns the WDTK datatype IRI for the property datatype as represented by\nthe given JSON d...
@GwtIncompatible("Class.getDeclaredFields") public ToStringBuilder addAllFields() { List<Field> fields = getAllDeclaredFields(instance.getClass()); for(Field field : fields) { addField(field); } return this; }
[ "Adds all fields declared in the object's class and its superclasses to the output.\n@return this" ]
[ "Sets the currently edited locale.\n@param locale the locale to set.", "Deserializes a variable, NOT checking whether the datatype is custom\n@param s\n@param variableType\n@return", "Use this API to add ipset.", "Run the configured crawl. This method blocks until the crawl is done.\n\n@return the CrawlSessio...
public static HttpConnection createPost(URI uri, String body, String contentType) { HttpConnection connection = Http.POST(uri, "application/json"); if(body != null) { setEntity(connection, body, contentType); } return connection; }
[ "create a HTTP POST request.\n\n@return {@link HttpConnection}" ]
[ "Tokenizes lookup fields and returns all matching buckets in the\nindex.", "Checks if the InputStream have the text\n\n@param in InputStream to read\n@param text Text to check\n@return whether the inputstream has the text", "Initializes the persistence strategy to be used when accessing the datastore. In partic...
private Proctor getProctorNotNull() { final Proctor proctor = proctorLoader.get(); if (proctor == null) { throw new IllegalStateException("Proctor specification and/or text matrix has not been loaded"); } return proctor; }
[ "return currently-loaded Proctor instance, throwing IllegalStateException if not loaded" ]
[ "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@p...
public static appfwprofile get(nitro_service service, String name) throws Exception{ appfwprofile obj = new appfwprofile(); obj.set_name(name); appfwprofile response = (appfwprofile) obj.get_resource(service); return response; }
[ "Use this API to fetch appfwprofile resource of given name ." ]
[ "Remember execution time for all executed suites.", "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib.", "Set whether we should retrieve the waveform details in addition to the waveform previews.\n\n@para...
private void setMaxMin(IntervalRBTreeNode<T> n) { n.min = n.left; n.max = n.right; if (n.leftChild != null) { n.min = Math.min(n.min, n.leftChild.min); n.max = Math.max(n.max, n.leftChild.max); } if (n.rightChild != null) { n.min = Math.min(n.min, n.rightChild.min); n.max = M...
[ "Sets the max min.\n\n@param n the new max min" ]
[ "Sets the underlying read timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#readTimeout(long, TimeUnit)", "Throws an exception if the request can for security reasons not be performed.\nSecurity restrictions can be set via parameters of the index.\n\n@param c...
void rollback() { if (publishedFullRegistry == null) { return; } writeLock.lock(); try { publishedFullRegistry.readLock.lock(); try { clear(true); copy(publishedFullRegistry, this); modified = false; ...
[ "Discard the changes." ]
[ "Enable or disable this component.\n@param flag true to enable, false to disable.\n@see #enable()\n@see #disable()\n@see #isEnabled()", "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@par...
public <T> T getNodeMetaData(Object key) { if (metaDataMap == null) { return (T) null; } return (T) metaDataMap.get(key); }
[ "Gets the node meta data.\n\n@param key - the meta data key\n@return the node meta data value for this key" ]
[ "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON", "Computes FPS average", "Use this API to enable clusterinstance resources of given names.", "Use this API to add sslcertkey resources.", "Return the command line argument\n\n@re...
protected void processCalendarData(ProjectCalendar calendar, Row row) { int dayIndex = row.getInt("CD_DAY_OR_EXCEPTION"); if (dayIndex == 0) { processCalendarException(calendar, row); } else { processCalendarHours(calendar, row, dayIndex); } }
[ "Read calendar hours and exception data.\n\n@param calendar parent calendar\n@param row calendar hours and exception data" ]
[ "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining", "Use this API to ad...
public static void calculatePointDiff(Point2D _P1, Point2D _P2, Point2D _Result, float _Multiplier) { float diffX = _P2.getX() - _P1.getX(); float diffY = _P2.getY() - _P1.getY(); _Result.setX(_P1.getX() + (diffX * _Multiplier)); _Result.setY(_P1.getY() + (diffY * _Multiplier)); }
[ "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" ]
[ "Creates a new random symmetric matrix that will have the specified real eigenvalues.\n\n@param num Dimension of the resulting matrix.\n@param rand Random number generator.\n@param eigenvalues Set of real eigenvalues that the matrix will have.\n@return A random matrix with the specified eigenvalues.", "Turn map i...
public void selectTab() { for (Widget child : getChildren()) { if (child instanceof HasHref) { String href = ((HasHref) child).getHref(); if (parent != null && !href.isEmpty()) { parent.selectTab(href.replaceAll("[^a-zA-Z\\d\\s:]", "")); ...
[ "Select this tab item." ]
[ "Loads configuration from File. Later loads have lower priority.\n\n@param file File to load from\n@since 1.2.0", "Use this API to update route6.", "Lookup an object instance from JNDI context.\n\n@param jndiName JNDI lookup name\n@return Matching object or <em>null</em> if none found.", "Gets all checked wid...
private I_CmsSearchResultWrapper getSearchResults() { // The second parameter is just ignored - so it does not matter m_searchController.updateFromRequestParameters(pageContext.getRequest().getParameterMap(), false); I_CmsSearchControllerCommon common = m_searchController.getCommon(); /...
[ "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\"." ]
[ "Stop Redwood, closing all tracks and prohibiting future log messages.", "Logic for timestamp\n@param time Epoch date of creation\n@return String timestamp", "Calculate the duration percent complete.\n\n@param row task data\n@return percent complete", "Used by the slave host when creating the host info dmr se...
public Iterable<BoxItem.Info> getChildren(final String... fields) { return new Iterable<BoxItem.Info>() { @Override public Iterator<BoxItem.Info> iterator() { String queryString = new QueryStringBuilder().appendParam("fields", fields).toString(); URL url =...
[ "Returns an iterable containing the items in this folder and specifies which child fields to retrieve from the\nAPI.\n\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder." ]
[ "Starts this EventStream and begins long polling the API.\n@throws IllegalStateException if the EventStream is already started.", "Handles Multi Instance Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\ninstance.\n@param serialMessage the serial message to proces...
public Collection<Tag> getListUser(String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_USER); parameters.put("user_id", userId); Response response = transportAPI.get(transportAPI.getPath(), pa...
[ "Get a collection of tags used by the specified user.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param userId\nThe User ID\n@return The User object\n@throws FlickrException" ]
[ "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Reverse how the transition is applied, such that the transition previously performed when progress=start of range is only performed when progress=end of range\n\n@return", "Produces an IP...
@SuppressWarnings({ "rawtypes", "unchecked" }) private void cleanupSessions(List<String> storeNamesToCleanUp) { logger.info("Performing cleanup"); for(String store: storeNamesToCleanUp) { for(Node node: nodesToStream) { try { SocketAndStreams sands =...
[ "Helper method to Close all open socket connections and checkin back to\nthe pool\n\n@param storeNamesToCleanUp List of stores to be cleanedup from the current\nstreaming session" ]
[ "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a null Date...
public static vpnglobal_authenticationsamlpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_authenticationsamlpolicy_binding obj = new vpnglobal_authenticationsamlpolicy_binding(); vpnglobal_authenticationsamlpolicy_binding response[] = (vpnglobal_authenticationsamlpolicy_binding[]) obj.get_re...
[ "Use this API to fetch a vpnglobal_authenticationsamlpolicy_binding resources." ]
[ "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return it...
public static sslfipskey[] get(nitro_service service, String fipskeyname[]) throws Exception{ if (fipskeyname !=null && fipskeyname.length>0) { sslfipskey response[] = new sslfipskey[fipskeyname.length]; sslfipskey obj[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++) { obj[i...
[ "Use this API to fetch sslfipskey resources of given names ." ]
[ "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove", "Return all levels of moneyness for which data exists.\nMoneyness is returned as actual difference strike - par swap rate.\n\n@return The levels of moneyness as difference of strike to par swap ...
public static ContainerDescription getContainerDescription(final ModelControllerClient client) throws IOException, OperationExecutionException { return DefaultContainerDescription.lookup(Assert.checkNotNullParam("client", client)); }
[ "Returns the description of the running container.\n\n@param client the client used to query the server\n\n@return the description of the running container\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to query the ...
[ "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong", "Callback fro...
public String getAuthorizationUri(final String redirectUri, final Set<String> scopes, final String state) { if (account == null) throw new IllegalArgumentException("Auth is not set"); if (account.getClientId() == null) throw new IllegalArgumentException("client_id is not set"); ...
[ "Get the authorization uri, where the user logs in.\n\n@param redirectUri\nUri the user is redirected to, after successful authorization.\nThis must be the same as specified at the Eve Online developer\npage.\n@param scopes\nScopes of the Eve Online SSO.\n@param state\nThis should be some secret to prevent XRSF, pl...
[ "Adds a foreignkey to this table.\n\n@param relationName The name of the relation represented by the foreignkey\n@param remoteTable The referenced table\n@param localColumns The local columns\n@param remoteColumns The remote columns", "Restores a trashed folder to a new location with a new name.\n@param fold...
public EventBus emitSync(EventObject event, Object... args) { return _emitWithOnceBus(eventContextSync(event, args)); }
[ "Emit a event object with parameters and force all listeners to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)" ]
[ "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the oper...
public GVRAnimation setOffset(float startOffset) { if(startOffset<0 || startOffset>mDuration){ throw new IllegalArgumentException("offset should not be either negative or greater than duration"); } animationOffset = startOffset; mDuration = mDuration-animationOffset; ...
[ "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration" ]
[ "copied and altered from TransactionHelper", "remove all prefetching listeners", "Process stop.\n\n@param endpoint the endpoint\n@param eventType the event type", "init database with demo data", "Send post request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params ...
void releaseTransaction(@NotNull final Thread thread, final int permits) { try (CriticalSection ignored = criticalSection.enter()) { int currentThreadPermits = getThreadPermits(thread); if (permits > currentThreadPermits) { throw new ExodusException("Can't release more pe...
[ "Release transaction that was acquired in a thread with specified permits." ]
[ "Sets the bean store\n\n@param beanStore The bean store", "If the column name is a dotted column, returns the first part.\nReturns null otherwise.\n\n@param column the column that might have a prefix\n@return the first part of the prefix of the column or {@code null} if the column does not have a prefix.", "Ret...
public List<Widget> getAllViews() { List<Widget> views = new ArrayList<>(); for (Widget child: mContent.getChildren()) { Widget item = ((ListItemHostWidget) child).getGuest(); if (item != null) { views.add(item); } } return views; ...
[ "Get all views from the list content\n@return list of views currently visible" ]
[ "Check that each requirement is satisfied.\n\n@param currentPath the json path to the element being checked", "generate a message for loglevel DEBUG\n\n@param pObject the message Object", "retrieve a single reference- or collection attribute\nof a persistent instance.\n@param pInstance the persistent instance\n...
@VisibleForTesting protected TextSymbolizer createTextSymbolizer(final PJsonObject styleJson) { final TextSymbolizer textSymbolizer = this.styleBuilder.createTextSymbolizer(); // make sure that labels are also rendered if a part of the text would be outside // the view context, see http://d...
[ "Add a text symbolizer definition to the rule.\n\n@param styleJson The old style." ]
[ "Sets the path name for this ID\n\n@param pathId ID of path\n@param pathName Name of path", "This is the main entry point used to convert the internal representation\nof timephased baseline cost into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param cost timephased r...
public Bundler put(String key, CharSequence[] value) { delegate.putCharSequenceArray(key, value); return this; }
[ "Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a CharSequence array object, or null\n@return this bundler instance to chain method calls" ]
[ "Prepare a parallel HTTP DELETE 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", "Extract the generic type from the given Class object.\n@param clazz the Class to check\n@param source the expected raw source type (can be...
@Override public Object executeJavaScript(String code) throws CrawljaxException { try { JavascriptExecutor js = (JavascriptExecutor) browser; return js.executeScript(code); } catch (WebDriverException e) { throwIfConnectionException(e); throw new CrawljaxException(e); } }
[ "Execute JavaScript in the browser.\n\n@param code The code to execute.\n@return The return value of the JavaScript.\n@throws CrawljaxException when javascript execution failed." ]
[ "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token", "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resour...
public void deleteById(Object id) { int count = beginDelete().whereEquals(idColumn.getColumnName(), id).delete(); if (count == 0) { throw new RowNotFoundException(table, id); } }
[ "Deletes an entity by its primary key.\n\n@param id\nPrimary key of the entity." ]
[ "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return t...
public final void setVolumeByIncrement(float level) throws IOException { Volume volume = this.getStatus().volume; float total = volume.level; if (volume.increment <= 0f) { throw new ChromeCastException("Volume.increment is <= 0"); } // With floating points we always...
[ "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-vol...
[ "Mark the top level deployment as being a JPA deployment. If the deployment is not a top level deployment the parent is\nmarked instead", "Read in the configuration properties.", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Similar to masking, checks that the range res...
public static boolean isKeyUsed(final Jedis jedis, final String key) { return !NONE.equalsIgnoreCase(jedis.type(key)); }
[ "Determines if the queue identified by the given key is used.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key is used, false otherwise" ]
[ "Computes the square root of the complex number.\n\n@param input Input complex number.\n@param root Output. The square root of the input", "Old REST client uses old REST service", "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException...
private void handleRequestNodeInfoResponse(SerialMessage incomingMessage) { logger.trace("Handle RequestNodeInfo Response"); if(incomingMessage.getMessageBuffer()[2] != 0x00) logger.debug("Request node info successfully placed on stack."); else logger.error("Request node info not placed on stack due to erro...
[ "Handles the response of the Request node request.\n@param incomingMessage the response message to process." ]
[ "Create an ephemeral node with the given path and data. Create parents if necessary.\n@param zkClient client of zookeeper\n@param path node path of zookeeper\n@param data node data", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unm...
public void setAttribute(String strKey, Object value) { this.propertyChangeDelegate.firePropertyChange(strKey, hmAttributes.put(strKey, value), value); }
[ "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent." ]
[ "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Tries to load a site specific error page. If\n@param cms {@link CmsObject} used for r...
protected final <T> StyleSupplier<T> createStyleSupplier( final Template template, final String styleRef) { return new StyleSupplier<T>() { @Override public Style load( final MfClientHttpRequestFactory requestFactory, final ...
[ "Common method for creating styles.\n\n@param template the template that the map is part of\n@param styleRef the style ref identifying the style\n@param <T> the source type" ]
[ "Examines the list of variables for any unknown variables and throws an exception if one is found", "Set the maximum date limit.", "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String", "...
public static systemglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationldappolicy_binding obj = new systemglobal_authenticationldappolicy_binding(); systemglobal_authenticationldappolicy_binding response[] = (systemglobal_authenticationldappolicy_bindin...
[ "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources." ]
[ "Modify a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Post a build info to the server\n\n@param moduleName Strin...
public Object copy(Object obj, PersistenceBroker broker) throws ObjectCopyException { if (obj instanceof OjbCloneable) { try { return ((OjbCloneable) obj).ojbClone(); } catch (Exception e) { throw new ObjectCopyException(e); } } else { throw new ObjectCopyExcep...
[ "If users want to implement clone on all their objects, we can use this\nto make copies. This is hazardous as user may mess it up, but it is also\npotentially the fastest way of making a copy.\n\nUsually the OjbCloneable interface should just be delegating to the clone()\noperation that the user has implemented.\n\...
[ "As we merge several operations into one operation, we need to be sure the write concern applied to the aggregated\noperation respects all the requirements expressed for each separate operation.\n\nThus, for each parameter of the write concern, we keep the stricter one for the resulting merged write concern.", "U...
private static String getJsonFromRaw(Context context, int resource) { String json; try { InputStream inputStream = context.getResources().openRawResource(resource); int size = inputStream.available(); byte[] buffer = new byte[size]; inputStream.read(buffer...
[ "Fetch JSON from RAW resource\n\n@param context Context\n@param resource Resource int of the RAW file\n@return JSON" ]
[ "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder", "Use this API ...
private String FCMGetFreshToken(final String senderID) { String token = null; try { if(senderID != null){ getConfigLogger().verbose(getAccountId(), "FcmManager: Requesting a FCM token with Sender Id - "+senderID); token = FirebaseInstanceId.getInstance().getTo...
[ "request token from FCM" ]
[ "Helper method that encapsulates the logic to acquire a lock.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param lockName\nall calls to this method will contend for a unique lock with\nthe name of lockName\n@param timeout\nseconds until the lock will expire\n@param lockHolder\n...
public static MethodNode findSAM(ClassNode type) { if (!Modifier.isAbstract(type.getModifiers())) return null; if (type.isInterface()) { List<MethodNode> methods = type.getMethods(); MethodNode found=null; for (MethodNode mi : methods) { // ignore meth...
[ "Returns the single abstract method of a class node, if it is a SAM type, or null otherwise.\n@param type a type for which to search for a single abstract method\n@return the method node if type is a SAM type, null otherwise" ]
[ "Get the axis along the orientation\n@return", "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to fetc...
public List<ProjectListType.Project> getProject() { if (project == null) { project = new ArrayList<ProjectListType.Project>(); } return this.project; }
[ "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 exa...
[ "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "Counts a single page of the specified gender. If this is the first page\nof that gender on this site, a su...
public List<Versioned<V>> getWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) { validateTimeout(requestWrapper.getRoutingTimeoutInMs()); for(int attempts = 0; attempts < this.metadataRefreshAttempts; attempts++) { try { long startTimeInMs = System.currentTime...
[ "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key" ]
[ "Returns a list of your geo-tagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param minUploadDate\nMinimum upload date. Photos with an upload date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxUploadDate\nMaximum upload date. Phot...
public void setTexture(GVRRenderTexture texture) { mTexture = texture; NativeRenderTarget.setTexture(getNative(), texture.getNative()); }
[ "Sets the texture this render target will render to.\nIf no texture is provided, the render target will\nnot render anything.\n@param texture GVRRenderTexture to render to." ]
[ "Get a collection of methods declared on this object by method name.\n\n@param name the name of the method\n@return the (possibly empty) collection of methods with the given name", "this class loader interface can be used by other plugins to lookup\nresources from the bundles. A temporary class loader interface i...
public static Duration getVariance(Task task, Date date1, Date date2, TimeUnit format) { Duration variance = null; if (date1 != null && date2 != null) { ProjectCalendar calendar = task.getEffectiveCalendar(); if (calendar != null) { variance = calendar.getWor...
[ "This utility method calculates the difference in working\ntime between two dates, given the context of a task.\n\n@param task parent task\n@param date1 first date\n@param date2 second date\n@param format required format for the resulting duration\n@return difference in working time between the two dates" ]
[ "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "Compress a directory into a zip file\n\n@param dir Directory\n@param zipFile ZIP file to create\n@throws IOException I/O Erro...
public int getShort(Integer id, Integer type) { int result = 0; Integer offset = m_meta.getOffset(id, type); if (offset != null) { byte[] value = m_map.get(offset); if (value != null && value.length >= 2) { result = MPPUtility.getShort(value, 0); ...
[ "This method retrieves an integer of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required integer data" ]
[ "Use this API to update filterhtmlinjectionparameter.", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@t...
protected boolean computeOffset(final int dataIndex, CacheDataSet cache) { float layoutOffset = getLayoutOffset(); int pos = cache.getPos(dataIndex); float startDataOffset = Float.NaN; float endDataOffset = Float.NaN; if (pos > 0) { int id = cache.getId(pos - 1); ...
[ "Compute the offset for the item in the layout cache\n@return true if the item fits the container, false otherwise" ]
[ "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path", "Load the given configuration file...
public static vlan_nsip6_binding[] get(nitro_service service, Long id) throws Exception{ vlan_nsip6_binding obj = new vlan_nsip6_binding(); obj.set_id(id); vlan_nsip6_binding response[] = (vlan_nsip6_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vlan_nsip6_binding resources of given name ." ]
[ "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String.", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host he...
public GroovyMethodDoc[] methods() { Collections.sort(methods); return methods.toArray(new GroovyMethodDoc[methods.size()]); }
[ "returns a sorted array of methods" ]
[ "Returns the names of the involved fields when post processing.\n\n@return the names of the involved fields", "Sends the error to responder.", "Use this API to fetch transformpolicylabel resource of given name .", "Sets the polling status.\n\n@param status the polling status.\n@param statusCode the HTTP statu...
public String getMethodSignature() { if (method != null) { String methodSignature = method.toString(); return methodSignature.replaceFirst("public void ", ""); } return null; }
[ "Method signature without \"public void\" prefix\n\n@return The method signature in String format" ]
[ "Returns the timestamp for the time at which the suite finished executing.\nThis is determined by finding the latest end time for each of the individual\ntests in the suite.\n@param suite The suite to find the end time of.\n@return The end time (as a number of milliseconds since 00:00 1st January 1970 UTC).", "In...
public static List<List<RTFEmbeddedObject>> getEmbeddedObjects(String text) { List<List<RTFEmbeddedObject>> objects = null; List<RTFEmbeddedObject> objectData; int offset = text.indexOf(OBJDATA); if (offset != -1) { objects = new LinkedList<List<RTFEmbeddedObject>>(); ...
[ "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists...
[ "This method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions.\n\n@param date Date to be tested\n@return boolean value", "Remove a role from the list of defined roles.\n\n@param roleName - The name of the role to be removed.\n@return A key that can...
private void writeCustomInfo(Event event) { // insert customInfo (key/value) into DB for (Map.Entry<String, String> customInfo : event.getCustomInfo().entrySet()) { long cust_id = dbDialect.getIncrementer().nextLongValue(); getJdbcTemplate() .update("insert into E...
[ "write CustomInfo list into table.\n\n@param event the event" ]
[ "Convert a Java date into a Planner date.\n\n20070222\n\n@param value Java Date instance\n@return Planner date", "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RT...
public static vpnvserver_vpnnexthopserver_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnnexthopserver_binding obj = new vpnvserver_vpnnexthopserver_binding(); obj.set_name(name); vpnvserver_vpnnexthopserver_binding response[] = (vpnvserver_vpnnexthopserver_binding[]) obj.get_re...
[ "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name ." ]
[ "Creates the code mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param realOffsetStart\nthe real offset start\n@param realOffsetEnd\nthe real offset end\n@param...
private boolean hasPrimaryKey(T entity) { Object pk = getPrimaryKey(entity); if (pk == null) { return false; } else { if (pk instanceof Number && ((Number) pk).longValue() == 0) { return false; } } return true; }
[ "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero." ]
[ "Count the total number of queued resource requests for all queues. The\nresult is \"approximate\" in the face of concurrency since individual\nqueues can change size during the aggregate count.\n\n@return The (approximate) aggregate count of queued resource requests.", "Used to add working hours to the calendar....
protected String pauseMsg() throws IOException { final WorkerStatus status = new WorkerStatus(); status.setRunAt(new Date()); status.setPaused(isPaused()); return ObjectMapperFactory.get().writeValueAsString(status); }
[ "Create and serialize a WorkerStatus for a pause event.\n\n@return the JSON representation of a new WorkerStatus\n@throws IOException if there was an error serializing the WorkerStatus" ]
[ "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Calculates the legend bounds for a custom list of legends.", "Add the set of partitions to the node provided\n\n@param node The node to which we'll add the partitions\n@param donatedPartitions The list...
@RequestMapping(value="/{subscription}", method=GET, params="hub.mode=subscribe") public @ResponseBody String verifySubscription( @PathVariable("subscription") String subscription, @RequestParam("hub.challenge") String challenge, @RequestParam("hub.verify_token") String verifyToken) { logger.debug("Received...
[ "Handles subscription verification callback from Facebook.\n@param subscription The subscription name.\n@param challenge A challenge that Facebook expects to be returned.\n@param verifyToken A verification token that must match with the subscription's token given when the controller was created.\n@return The challe...
[ "Set the host.\n\n@param host the host", "Use this API to add nsip6 resources.", "Use this API to update Interface.", "Performs spellchecking using Solr and returns the spellchecking results using JSON.\n\n@param res The HttpServletResponse object.\n@param servletRequest The ServletRequest object.\n@param cms...
private String getPropertyName(Method method) { String result = method.getName(); if (result.startsWith("get")) { result = result.substring(3); } return result; }
[ "Convert a method name into a property name.\n\n@param method target method\n@return property name" ]
[ "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Find out the scrollable child view from a ViewGroup.\n\n@param viewGroup", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param ...
private void writeTasks() throws IOException { writeAttributeTypes("task_types", TaskField.values()); m_writer.writeStartList("tasks"); for (Task task : m_projectFile.getChildTasks()) { writeTask(task); } m_writer.writeEndList(); }
[ "This method writes task data to a JSON file.\nNote that we write the task hierarchy in order to make rebuilding the hierarchy easier." ]
[ "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Parse a string representation of a Boolean ...
private void setCorrectDay(Calendar date) { if (monthHasNotDay(date)) { date.set(Calendar.DAY_OF_MONTH, date.getActualMaximum(Calendar.DAY_OF_MONTH)); } else { date.set(Calendar.DAY_OF_MONTH, m_dayOfMonth); } }
[ "Set the correct day for the date with year and month already fixed.\n@param date the date, where year and month are already correct." ]
[ "Apply filters to a method name.\n@param methodName", "Returns the name of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\n@doc.tag type=\"con...
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{ dnssuffix obj = new dnssuffix(); obj.set_Dnssuffix(Dnssuffix); dnssuffix response = (dnssuffix) obj.get_resource(service); return response; }
[ "Use this API to fetch dnssuffix resource of given name ." ]
[ "Get the bar size.\n\n@param settings Parameters for rendering the scalebar.", "StartMain passes in the command line args here.\n\n@param args The command line arguments. If null is given then an empty\narray will be used instead.", "Returns the ports of the server.\n\n@return the {@link Map} which contains the...
public static void write(Path self, String text, String charset) throws IOException { Writer writer = null; try { writer = new OutputStreamWriter(Files.newOutputStream(self, CREATE, APPEND), Charset.forName(charset)); writer.write(text); writer.flush(); W...
[ "Write the text to the Path, using the specified encoding.\n\n@param self a Path\n@param text the text to write to the Path\n@param charset the charset used\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0" ]
[ "Calculate the value of a digital caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity...
protected void removeInvalidChildren() { if (getLoadState() == LoadState.LOADED) { List<CmsSitemapTreeItem> toDelete = new ArrayList<CmsSitemapTreeItem>(); for (int i = 0; i < getChildCount(); i++) { CmsSitemapTreeItem item = (CmsSitemapTreeItem)getChild(i); ...
[ "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry." ]
[ "Check if there is an attribute which tells us which concrete class is to be instantiated.", "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace p...
public ContentAssistEntry createProposal(final String proposal, final ContentAssistContext context) { return this.createProposal(proposal, context.getPrefix(), context, ContentAssistEntry.KIND_UNKNOWN, null); }
[ "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid." ]
[ "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "If this Aztec Code symbol is part of a series of Aztec Code symbols appended in a structured format,\nthis method sets the unique message ID for the series. Values may not contain s...
public List<I_CmsEditableGroupRow> getRows() { List<I_CmsEditableGroupRow> result = Lists.newArrayList(); for (Component component : m_container) { if (component instanceof I_CmsEditableGroupRow) { result.add((I_CmsEditableGroupRow)component); } } ...
[ "Gets all rows.\n\n@return the list of all rows" ]
[ "Fetch the outermost Hashmap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Use this API to create ssldhparam.", "Specify the class represented by this `ClassNode` is annotated\nby an annotation class specified by the name\n@param name the name of the annotation class\n@return this `ClassN...
protected Object checkUndefined(Object val) { if (val instanceof String && ((String) val).equals("undefined")) { return null; } return val; }
[ "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in." ]
[ "Produces the Soundex key for the given string.", "Use this API to fetch all the pqbinding resources that are configured on netscaler.\nThis uses pqbinding_args which is a way to provide additional arguments while fetching the resources.", "Creates the node corresponding to an entity.\n\n@param executionEngine ...
public static Object lookup(String jndiName) { if(log.isDebugEnabled()) log.debug("lookup("+jndiName+") was called"); try { return getContext().lookup(jndiName); } catch (NamingException e) { throw new OJBRuntimeException("Lookup faile...
[ "Lookup an object instance from JNDI context.\n\n@param jndiName JNDI lookup name\n@return Matching object or <em>null</em> if none found." ]
[ "Use this API to update ipv6.", "Print a a basic type t", "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Resets the text box by removing its content and resetting visual state.", "Sets the value of th...
public void setName(int pathId, String pathName) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + " SET " + Constants.PATH_...
[ "Sets the path name for this ID\n\n@param pathId ID of path\n@param pathName Name of path" ]
[ "Asynchronous call that begins execution of the task\nand returns immediately.", "Adds a \"Post Run\" task to the collection.\n\n@param taskItem the \"Post Run\" task", "Set the degrees of rotation. Value will be set to -1, if not available.\n\n@param rotation", "Starts listening for shakes on devices with ap...
@Override public Symmetry010Date dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the ...
[ "Add a '=' clause so the column must be equal to the value.", "Acquire the shared lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentExcept...
private Integer getOutlineLevel(Task task) { String value = task.getWBS(); Integer result = Integer.valueOf(1); if (value != null && value.length() > 0) { String[] path = WBS_SPLIT_REGEX.split(value); result = Integer.valueOf(path.length); } return result; }
[ "Extract the outline level from a task's WBS attribute.\n\n@param task Task instance\n@return outline level" ]
[ "lookup current maximum value for a single field in\ntable the given class descriptor was associated.", "Flushes all changes to disk.", "Process the next event in a given stream.\n@return the fully processed event\n@throws IOException if a stream is in the wrong state, IO errors can be thrown", "Log original ...
protected static int getIntInitParameter(ServletContext servletContext, String parameterName, int defaultValue) { final String parameterString = servletContext.getInitParameter(parameterName); if(parameterString != null && parameterString.trim().length() > 0) { try { return Integer.parseInt(parame...
[ "Parse init parameter for integer value, returning default if not found or invalid" ]
[ "Use this API to fetch Interface resource of given name .", "Converts the passed list of inners to unmodifiable map of impls.\n@param innerList list of the inners.\n@return map of the impls", "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@p...
private static void flushCurrentWord( StringBuilder currentWords, List<Word> formattedWords, boolean cutWhitespace ) { if( currentWords.length() > 0 ) { if( cutWhitespace && currentWords.charAt( currentWords.length() - 1 ) == ' ' ) { currentWords.setLength( currentWords.length() - 1 ...
[ "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to" ]
[ "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Called by spring when application context is being destroyed.", "Sets the target translator for all cells in the row.\nIt ...
private static void checkPreconditions(final String regex, final String replacement) { if( regex == null ) { throw new NullPointerException("regex should not be null"); } else if( regex.length() == 0 ) { throw new IllegalArgumentException("regex should not be empty"); } if( replacement == null ) { t...
[ "Checks the preconditions for creating a new StrRegExReplace processor.\n\n@param regex\nthe supplied regular expression\n@param replacement\nthe supplied replacement text\n@throws IllegalArgumentException\nif regex is empty\n@throws NullPointerException\nif regex or replacement is null" ]
[ "Get photos from the user's contacts.\n\nThis method requires authentication with 'read' permission.\n\n@param count\nThe number of photos to return\n@param justFriends\nSet to true to only show friends photos\n@param singlePhoto\nSet to true to get a single photo\n@param includeSelf\nSet to true to include self\n@...
public static tmsessionpolicy_binding get(nitro_service service, String name) throws Exception{ tmsessionpolicy_binding obj = new tmsessionpolicy_binding(); obj.set_name(name); tmsessionpolicy_binding response = (tmsessionpolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch tmsessionpolicy_binding resource of given name ." ]
[ "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException", "Parse a currency symbol position from a string representation.\n\n@param value String representation\n@return CurrencySymbolPositio...
public static int[] Unique(int[] values) { HashSet<Integer> lst = new HashSet<Integer>(); for (int i = 0; i < values.length; i++) { lst.add(values[i]); } int[] v = new int[lst.size()]; Iterator<Integer> it = lst.iterator(); for (int i = 0; i < v.lengt...
[ "Get unique values form the array.\n\n@param values Array of values.\n@return Unique values." ]
[ "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Specifies the container object class to be instantiated\n\n@param containerObjectClass\ncontainer object class to be instantiated\n\n@return the current builder instance", ...
public static Object getObjectFromColumn(ResultSet rs, Integer jdbcType, int columnId) throws SQLException { return getObjectFromColumn(rs, null, jdbcType, null, columnId); }
[ "Returns an java object read from the specified ResultSet column." ]
[ "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "The digits were stored as a hex value, thix switches them to an octal value.\n\n@param currentHexValue\n@param digitCount\n@return", "Returns a button component. On click, it triggers adding a bundle descriptor...
public static Mono<Void> waitForCompletion(CloudFoundryClient cloudFoundryClient, Duration completionTimeout, String jobId) { return requestJobV3(cloudFoundryClient, jobId) .filter(job -> JobState.PROCESSING != job.getState()) .repeatWhenEmpty(exponentialBackOff(Duration.ofSeconds(1), Du...
[ "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed" ]
[ "Use this API to update vserver.", "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Get the element at the index as a json object.\n\n@param i the index of the object to access", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the prop...
public static String encodeQuery(String query, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents.encodeUriComponent(query, encoding, HierarchicalUriComponents.Type.QUERY); }
[ "Encodes the given URI query with the given encoding.\n@param query the query to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
[ "Flush the network buffer and write all entries to the serve. then wait\nfor an ack from the server. This is a blocking call. It is invoked on\nevery Commit batch size of entries, It is also called on the close\nsession call\n\n@param storeNamesToCommit List of stores to be flushed and committed", "Make an indivi...
private void checkReferenceForeignkeys(ModelDef modelDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } ClassDescriptorDef classDef; ReferenceDescriptorDef refDef; for (Iterator it = mod...
[ "Checks the foreignkeys of all references in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid" ]
[ "This method is called if the data set has been scrolled.", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group", "Shutdown the socket server", "calculate and set position to m...
public void setPickRay(float ox, float oy, float oz, float dx, float dy, float dz) { synchronized (this) { mRayOrigin.x = ox; mRayOrigin.y = oy; mRayOrigin.z = oz; mRayDirection.x = dx; mRayDirection.y = dy; mRayDirection.z = dz...
[ "Sets the origin and direction of the pick ray.\n\n@param ox X coordinate of origin.\n@param oy Y coordinate of origin.\n@param oz Z coordinate of origin.\n@param dx X coordinate of ray direction.\n@param dy Y coordinate of ray direction.\n@param dz Z coordinate of ray direction.\n\nThe coordinate...
[ "Input method, called by a Subscriber indicating its intent into receive notification about a given topic.\n\n@param sr DTO containing the info given by the protocol", "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentExcep...
private void addArrayMethods(List<MethodNode> methods, ClassNode receiver, String name, ClassNode[] args) { if (args.length!=1) return; if (!receiver.isArray()) return; if (!isIntCategory(getUnwrapper(args[0]))) return; if ("getAt".equals(name)) { MethodNode node = new Method...
[ "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" ]
[ "Add \"ORDER BY\" clause to the SQL query statement. This can be called multiple times to add additional \"ORDER BY\"\nclauses. Ones earlier are applied first.", "Inserts the LokenList immediately following the 'before' token", "Add new control at the end of control bar with specified touch listener.\nSize of c...