query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
private static int determineBatchSize(boolean canGridDialectDoMultiget, int classBatchSize, int configuredDefaultBatchSize) { // if the dialect does not support it, don't batch so that we can avoid skewing the ORM fetch statistics if ( !canGridDialectDoMultiget ) { return -1; } else if ( classBatchSize != -1...
[ "Returns the effective batch size. If the dialect is multiget capable and a batch size has been configured, use\nthat one, otherwise the default." ]
[ "Sets padding between the pages\n@param padding\n@param axis", "Read a field into our table configuration for field=value line.", "Print a a basic type t", "associate the batched Children with their owner object loop over children", "Checks to see if the submatrix has its boundaries along inner blocks.\n\n@...
private EnabledEndpoint getPartialEnabledEndpointFromResultset(ResultSet result) throws Exception { EnabledEndpoint endpoint = new EnabledEndpoint(); endpoint.setId(result.getInt(Constants.GENERIC_ID)); endpoint.setPathId(result.getInt(Constants.ENABLED_OVERRIDES_PATH_ID)); endpoint.setO...
[ "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception" ]
[ "Gets the thread dump.\n\n@return the thread dump", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Create a discount curve from forwards given by a LIBORMon...
public static boolean isFolderExist(String directoryPath) { if (StringUtils.isEmpty(directoryPath)) { return false; } File dire = new File(directoryPath); return (dire.exists() && dire.isDirectory()); }
[ "Indicates if this file represents a directory on the underlying file system.\n\n@param directoryPath\n@return" ]
[ "Use this API to fetch all the route6 resources that are configured on netscaler.", "Loads the tag definitions from the files with a \".tags.xml\" suffix from the addons.", "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered o...
public Method getMethod(Method method) { return getMethod(method.getReturnType(), method.getName(), method.getParameterTypes()); }
[ "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" ]
[ "Use this API to delete clusterinstance resources.", "The main method. See the class documentation.", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Validates the binding types", "Use this API to delete linkset of given name.", "return a HashMap with all properties, name as key, va...
public void finishFlow(final String code, final String state) throws ApiException { if (account == null) throw new IllegalArgumentException("Auth is not set"); if (codeVerifier == null) throw new IllegalArgumentException("code_verifier is not set"); if (account.getClientI...
[ "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException" ]
[ "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Visits a dependence of the current module.\n\n@param module the qualified name of the dependence.\n@param access the access flag of the dependence among\nACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC\nand ACC_M...
private void doBatchWork(BatchBackend backend) throws InterruptedException { ExecutorService executor = Executors.newFixedThreadPool( typesToIndexInParallel, "BatchIndexingWorkspace" ); for ( IndexedTypeIdentifier indexedTypeIdentifier : rootIndexedTypes ) { executor.execute( new BatchIndexingWorkspace( gridDial...
[ "Will spawn a thread for each type in rootEntities, they will all re-join\non endAllSignal when finished.\n\n@param backend\n\n@throws InterruptedException\nif interrupted while waiting for endAllSignal." ]
[ "ten less than Cube Q", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException", "Serialize a parameterized object to an OutputStream.\n\n@param object The object to serialize.\n@param parameteriz...
private void writeTermStatisticsToFile(UsageStatistics usageStatistics, String fileName) { // Make sure all keys are present in label count map: for (String key : usageStatistics.aliasCounts.keySet()) { countKey(usageStatistics.labelCounts, key, 0); } for (String key : usageStatistics.descriptionCounts.k...
[ "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use" ]
[ "Attempt to reconnect to Redis.\n\n@param jedis\nthe connection to Redis\n@param reconAttempts\nnumber of times to attempt to reconnect before giving up\n@param reconnectSleepTime\ntime in milliseconds to wait between attempts\n@return true if reconnection was successful", "Prints the data for a single class to t...
public ConnectionRepository readConnectionRepository(String fileName) { try { RepositoryPersistor persistor = new RepositoryPersistor(); return persistor.readConnectionRepository(fileName); } catch (Exception e) { throw new Metadat...
[ "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository" ]
[ "Validates operations against their description providers\n\n@param operations The operations to validate\n@throws IllegalArgumentException if any operation is not valid", "A package of the specified class will be scanned and found classes will be added to the set of bean classes for the synthetic bean archive.\n...
public ProjectFile read() throws MPXJException { MPD9DatabaseReader reader = new MPD9DatabaseReader(); reader.setProjectID(m_projectID); reader.setPreserveNoteFormatting(m_preserveNoteFormatting); reader.setDataSource(m_dataSource); reader.setConnection(m_connection); ProjectFile ...
[ "Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException" ]
[ "Returns a resource wrapper created from the input.\n\nThe wrapped result of {@link #convertRawResource(CmsObject, Object)} is returned.\n\n@param cms the current OpenCms user context\n@param input the input to create a resource from\n\n@return a resource wrapper created from the given Object\n\n@throws CmsExceptio...
public void fit( double samplePoints[] , double[] observations ) { // Create a copy of the observations and put it into a matrix y.reshape(observations.length,1,false); System.arraycopy(observations,0, y.data,0,observations.length); // reshape the matrix to avoid unnecessarily declaring...
[ "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations." ]
[ "Use this API to fetch aaagroup_aaauser_binding resources of given name .", "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false.", "Returns new boolean matrix with true or false values selected with equal p...
public void setValue(FieldContainer container, byte[] data) { if (data != null) { container.set(m_type, ((MPPUtility.getInt(data, m_offset) & m_mask) == 0) ? m_zeroValue : m_nonZeroValue); } }
[ "Extracts the value of this bit flag from the supplied byte array\nand sets the value in the supplied container.\n\n@param container container\n@param data byte array" ]
[ "Sets a string-valued additional info entry on the user.\n\n@param username the name of the user\n@param infoName the additional info key\n@param value the additional info value\n\n@throws CmsException if something goes wrong", "Check if the node matches the column values\n\n@param nodeProperties the properties o...
protected static BoxCollaboration.Info create(BoxAPIConnection api, JsonObject accessibleBy, JsonObject item, BoxCollaboration.Role role, Boolean notify, Boolean canViewPath) { String queryString = ""; if (notify != null) { queryString = ne...
[ "Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@para...
[ "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Create a model mbean from an object using the description given in the\nJmx annotation if present. Only operations are supported so far, no\nattributes, constructors, or notifications\n\n@param o The object to cre...
public static base_response flush(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl flushresource = new nssimpleacl(); flushresource.estsessions = resource.estsessions; return flushresource.perform_operation(client,"flush"); }
[ "Use this API to flush nssimpleacl." ]
[ "Helper method that creates a Velocity context and initialises it\nwith a reference to the ReportNG utils, report metadata and localised messages.\n@return An initialised Velocity context.", "Get the active overrides with parameters and the active server group for a client\n\n@param profileID Id of profile to get...
public ManagementModelNode findNode(String address) { ManagementModelNode root = (ManagementModelNode)tree.getModel().getRoot(); Enumeration<javax.swing.tree.TreeNode> allNodes = root.depthFirstEnumeration(); while (allNodes.hasMoreElements()) { ManagementModelNode node = (Management...
[ "Find a node in the tree. The node must be \"visible\" to be found.\n@param address The full address of the node matching ManagementModelNode.addressPath()\n@return The node, or null if not found." ]
[ "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "Record operation for async op...
public ItemRequest<Attachment> createOnTask(String task, InputStream fileContent, String fileName, String fileType) { MultipartContent.Part part = new MultipartContent.Part() .setContent(new InputStreamContent(fileType, fileContent)) .setHeaders(new HttpHeaders().set( ...
[ "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object" ]
[ "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized", "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@re...
protected Object transformEntity(Entity entity) { PropertyColumn propertyColumn = (PropertyColumn) entity; JRDesignField field = new JRDesignField(); ColumnProperty columnProperty = propertyColumn.getColumnProperty(); field.setName(columnProperty.getProperty()); field.setValueClassName(columnProperty.getValue...
[ "Receives a PropertyColumn and returns a JRDesignField" ]
[ "Scale all widgets in Main Scene hierarchy\n@param scale", "add a new producer, either synchronous or asynchronous, connecting\nto the specified broker\n\n@param broker broker to producer", "Given a list of store definitions return a list of store names\n\n@param storeDefList The list of store definitions\n@ret...
private boolean isPacketLongEnough(DatagramPacket packet, int expectedLength, String name) { final int length = packet.getLength(); if (length < expectedLength) { logger.warn("Ignoring too-short " + name + " packet; expecting " + expectedLength + " bytes and got " + lengt...
[ "Helper method to check that we got the right size packet.\n\n@param packet a packet that has been received\n@param expectedLength the number of bytes we expect it to contain\n@param name the description of the packet in case we need to report issues with the length\n\n@return {@code true} if enough bytes were rece...
[ "An internal method, public only so that GVRContext can make cross-package\ncalls.\n\nA synchronous (blocking) wrapper around\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream} that uses an\n{@link android.graphics.BitmapFactory.Options} <code>inTempStorage</code>\ndecode ...
protected void destroyConnection(ConnectionHandle conn) { postDestroyConnection(conn); conn.setInReplayMode(true); // we're dead, stop attempting to replay anything try { conn.internalClose(); } catch (SQLException e) { logger.error("Error in attempting to close connection", e); } }
[ "Physically close off the internal connection.\n@param conn" ]
[ "Use this API to add vpnclientlessaccesspolicy.", "We have received an update that invalidates the beat grid for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of ...
private static void verifyJUnit4Present() { try { Class<?> clazz = Class.forName("org.junit.runner.Description"); if (!Serializable.class.isAssignableFrom(clazz)) { JvmExit.halt(SlaveMain.ERR_OLD_JUNIT); } } catch (ClassNotFoundException e) { JvmExit.halt(SlaveMain.ERR_NO_JUNIT);...
[ "Verify JUnit presence and version." ]
[ "Copied from AbstractEntityPersister", "Sets the HTML entity 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 htmlElementTranslator translator\n@return this to allow chaining", "Non-zero counts of Householder vectors and co...
public static <T> DatabaseTableConfig<T> fromClass(DatabaseType databaseType, Class<T> clazz) throws SQLException { String tableName = extractTableName(databaseType, clazz); if (databaseType.isEntityNamesMustBeUpCase()) { tableName = databaseType.upCaseEntityName(tableName); } return new DatabaseTableConfig<...
[ "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class." ]
[ "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "Group results by the specified field.\n\n@param fiel...
private void gobble(Iterator iter) { if (eatTheRest) { while (iter.hasNext()) { tokens.add(iter.next()); } } }
[ "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens" ]
[ "Counts each property for which there is a statement in the given item\ndocument, ignoring the property thisPropertyIdValue to avoid properties\ncounting themselves.\n\n@param statementDocument\n@param usageRecord\n@param thisPropertyIdValue", "Computes the eigenvalue of the 2 by 2 matrix.", "Returns if a Mongo...
private String getOrdinal(Integer value) { String result; int index = value.intValue(); if (index >= ORDINAL.length) { result = "every " + index + "th"; } else { result = ORDINAL[index]; } return result; }
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text" ]
[ "joins a collection of objects together as a String using a separator", "Assign a new value to this field.\n@param numStrings - number of strings\n@param newValues - the new strings", "Creates a scatter query from the given user query\n\n@param query the user's query.\n@param numSplits the number of splits to c...
public static boolean zipFolder(File folder, String fileName){ boolean success = false; if(!folder.isDirectory()){ return false; } if(fileName == null){ fileName = folder.getAbsolutePath()+ZIP_EXT; } ZipArchiveOutputStream zipOutput = null; try { zipOutput = new ZipArchiveOutputStream(new F...
[ "Utility function to zip the content of an entire folder, but not the folder itself.\n@param folder\n@param fileName optional\n@return success or not" ]
[ "create a new instance of class clazz.\nfirst use the public default constructor.\nIf this fails also try to use protected an private constructors.\n@param clazz the class to instantiate\n@return the fresh instance of class clazz\n@throws InstantiationException", "Use this API to fetch nssimpleacl resource of giv...
public static auditmessages[] get(nitro_service service, auditmessages_args args) throws Exception{ auditmessages obj = new auditmessages(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); auditmessages[] response = (auditmessages[])obj.get_resources(service, op...
[ "Use this API to fetch all the auditmessages resources that are configured on netscaler.\nThis uses auditmessages_args which is a way to provide additional arguments while fetching the resources." ]
[ "This method is called to alert project listeners to the fact that\na task has been written to a project file.\n\n@param task task instance", "Determines whether the given list contains a descriptor with the same name.\n\n@param defs The list to search\n@param obj The object that is searched for\n@return <code>t...
public CustomField getCustomField(FieldType field) { CustomField result = m_configMap.get(field); if (result == null) { result = new CustomField(field, this); m_configMap.put(field, result); } return result; }
[ "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail" ]
[ "Searches for commas in the set of tokens. Used for inputs to functions.\n\nIgnore comma's which are inside a [ ] block\n\n@return List of output tokens between the commas", "Demonstrates how to add an override to an existing path", "Configure a new user defined field.\n\n@param fieldType field type\n@param da...
@Override public boolean shouldRetry(int retryCount, Response response) { int code = response.code(); //CHECKSTYLE IGNORE MagicNumber FOR NEXT 2 LINES return retryCount < this.retryCount && (code == 408 || (code >= 500 && code != 501 && code != 505)); }
[ "Returns if a request should be retried based on the retry count, current response,\nand the current strategy.\n\n@param retryCount The current retry attempt count.\n@param response The exception that caused the retry conditions to occur.\n@return true if the request should be retried; false otherwise." ]
[ "a small static helper to set the text color to a textView null save\n\n@param colorHolder\n@param textView\n@param colorDefault", "Updates the text style according to a new text position\n@param bstyle the style to be updated\n@param text the text position", "Use this API to unset the properties of nsconfig re...
public static Object[] filterMapToObjectArray(final Map<String, ?> values, final String[] nameMapping) { if( values == null ) { throw new NullPointerException("values should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } final Ob...
[ "Converts a Map to an array of objects, adding only those entries whose key is in the nameMapping array.\n\n@param values\nthe Map of values to convert\n@param nameMapping\nthe keys to extract from the Map (elements in the target array will be added in this order)\n@return the array of Objects\n@throws NullPointerE...
[ "Returns a ReportWriter that which will use memory or a file depending on the parameter PAGES_THRESHOLD\n@param _jasperPrint\n@param _format\n@param _parameters\n@return", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Get the Query Paramaters to be used for search reque...
public void setRightValue(int index, Object value) { m_definedRightValues[index] = value; if (value instanceof FieldType) { m_symbolicValues = true; } else { if (value instanceof Duration) { if (((Duration) value).getUnits() != TimeUnit.HOUR...
[ "Add the value to list of values to be used as part of the\nevaluation of this indicator.\n\n@param index position in the list\n@param value evaluation value" ]
[ "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.", "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.", "Decomposes and ...
public Float getFloat(String fieldName) { try { return hasValue(fieldName) ? Float.valueOf(String.valueOf(resultMap.get(fieldName))) : null; } catch (NumberFormatException e) { throw new FqlException("Field '" + fieldName +"' is not a number.", e); } }
[ "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" ]
[ "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will...
@PostConstruct public void checkUniqueSchemes() { Multimap<String, ConfigFileLoaderPlugin> schemeToPluginMap = HashMultimap.create(); for (ConfigFileLoaderPlugin plugin: getLoaderPlugins()) { schemeToPluginMap.put(plugin.getUriScheme(), plugin); } StringBuilder violatio...
[ "Method is called by spring and verifies that there is only one plugin per URI scheme." ]
[ "Starts the compressor.", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Get the PropertyDescriptor for aClass and aPropertyName...
public static BoxItem.Info getSharedItem(BoxAPIConnection api, String sharedLink) { return getSharedItem(api, sharedLink, null); }
[ "Gets an item that was shared with a shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@return info about the shared item." ]
[ "Update the list of buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildpacks the new list of buildpack names or URLs.", "Use this API to fetch all the vpnclientlessaccesspolicy resources that are configured on netscaler.", "Notifies that mult...
protected void doConfigure() { if (config != null) { for (UserBean user : config.getUsersToCreate()) { setUser(user.getEmail(), user.getLogin(), user.getPassword()); } getManagers().getUserManager().setAuthRequired(!config.isAuthenticationDisabled()); ...
[ "This method can be used by child classes to apply the configuration that is stored in config." ]
[ "Processes the template if the property value of the current object on the specified level equals the given value.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\n@doc.tag type=\"block\"\n@doc....
public AsciiTable setPaddingBottomChar(Character paddingBottomChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingBottomChar(paddingBottomChar); } } return this; }
[ "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Returns true if the given dump file type contains page revisions and\nfalse if it does not. Dumps that do not contain pages are for auxiliary\ninformation such as linked sites.\n\n@param dumpContentType\nthe type of dump\n@return true if the dumpfile contains revisions\n@throws IllegalArgumentException\nif the giv...
public Where<T, ID> in(String columnName, Object... objects) throws SQLException { return in(true, columnName, objects); }
[ "Add a IN clause so the column must be equal-to one of the objects passed in." ]
[ "Remove the given pair into the map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\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 remove from the ma...
private GraphicalIndicatorCriteria processCriteria(FieldType type) { GraphicalIndicatorCriteria criteria = new GraphicalIndicatorCriteria(m_properties); criteria.setLeftValue(type); int indicatorType = MPPUtility.getInt(m_data, m_dataOffset); m_dataOffset += 4; criteria.setIndicator(in...
[ "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data" ]
[ "Parse a date value.\n\n@param value String representation\n@return Date instance", "Use this API to update nsacl6.", "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "Internal method which performs the authenticated request by preparing the auth request with\nthe...
public static String createQuotedConstant(String str) { if (str == null || str.isEmpty()) { return str; } try { Double.parseDouble(str); } catch (NumberFormatException nfe) { return "\"" + str + "\""; } return str; }
[ "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return" ]
[ "If the HttpRequest is valid and handled it will be sent upstream, if it cannot be invoked\nthe response will be written back immediately.", "Answer the counted size\n\n@return int", "Sets the top padding character for all cells in the row.\n@param paddingTopChar new padding character, ignored if null\n@return ...
public String getTexCoordAttr(String texName) { GVRTexture tex = textures.get(texName); if (tex != null) { return tex.getTexCoordAttr(); } return null; }
[ "Gets the name of the vertex attribute containing the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of texture coordinate vertex attribute" ]
[ "given is at the begining, of is at the end", "todo move to commonops", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Stop listening for device announcements. Also discard any announcements which had been received, and\nnotify any registered listeners t...
private void allocateConnection() throws SQLException { if (m_connection == null) { m_connection = m_dataSource.getConnection(); m_allocatedConnection = true; queryDatabaseMetaData(); } }
[ "Allocates a database connection.\n\n@throws SQLException" ]
[ "Returns the compact records for all sections in the specified project.\n\n@param project The project to get sections from.\n@return Request object", "Use this API to fetch csvserver_cachepolicy_binding resources of given name .", "Removes the row with the specified key from this association.\n\n@param key the...
private T getWrappedPublisher(Publisher flexiblePublisher, Class<T> type) { if (!(flexiblePublisher instanceof FlexiblePublisher)) { throw new IllegalArgumentException(String.format("Publisher should be of type: '%s'. Found type: '%s'", FlexiblePublisher.class, flexiblePublisher.getC...
[ "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by ...
[ "Use this API to fetch all the systemuser resources that are configured on netscaler.", "Returns the list view of corporate groupIds of an organization\n\n@param organizationId String\n@return ListView", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 's...
static ChangeEvent<BsonDocument> changeEventForLocalInsert( final MongoNamespace namespace, final BsonDocument document, final boolean writePending ) { final BsonValue docId = BsonUtils.getDocumentId(document); return new ChangeEvent<>( new BsonDocument(), OperationType.INSER...
[ "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace." ]
[ "Check whether the given is is matched by one of the include expressions.\n\n@param id id to check\n@param includes list of include regular expressions\n@return true when id is included", "Used to parse the dividend dates. Returns null if the date cannot be\nparsed.\n\n@param date String received that represents ...
public static BufferedImage createImage(ImageProducer producer) { PixelGrabber pg = new PixelGrabber(producer, 0, 0, -1, -1, null, 0, 0); try { pg.grabPixels(); } catch (InterruptedException e) { throw new RuntimeException("Image fetch interrupted"); } if ((pg.status() & ImageObserver.ABORT) != 0) th...
[ "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage" ]
[ "In common shader cases, NaN makes little sense. Correspondingly, GVRF is\ngoing to use Float.NaN as illegal flag in many cases. Therefore, we need\na function to check if there is any setX that is using NaN as input.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that t...
public static String ptb2Text(String ptbText) { StringBuilder sb = new StringBuilder(ptbText.length()); // probably an overestimate PTB2TextLexer lexer = new PTB2TextLexer(new StringReader(ptbText)); try { for (String token; (token = lexer.next()) != null; ) { sb.append(token); } ...
[ "Returns a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it work...
[ "See if a range for assignment is specified. If so return the range, otherwise return null\n\nExample of assign range:\na(0:3,4:5) = blah\na((0+2):3,4:5) = blah", "Use this API to update snmpalarm.", "Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' perm...
private void checkObjectCache(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (!CHECKLEVEL_STRICT.equals(checkLevel)) { return; } ObjectCacheDef objCacheDef = classDef.getObjectCache(); if (objCacheDef == null) ...
[ "Checks the given class descriptor for correct object cache setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated" ]
[ "Stop listening for beats.", "Update the lastCheckTime of the given record.\n\n@param id the id\n@param lastCheckTime the new value", "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@par...
public static base_response change(nitro_service client, sslcertkey resource) throws Exception { sslcertkey updateresource = new sslcertkey(); updateresource.certkey = resource.certkey; updateresource.cert = resource.cert; updateresource.key = resource.key; updateresource.password = resource.password; updat...
[ "Use this API to change sslcertkey." ]
[ "Gets existing config files.\n\n@return the existing config files", "Use this API to add snmpmanager resources.", "Gets an overrideID for a class name, method name\n\n@param className name of class\n@param methodName name of method\n@return override ID of method", "Add a newline to this sequence according to ...
@Override public void put(ByteArray keyBytes, Versioned<byte[]> valueBytes, byte[] transforms) throws VoldemortException { // acquire write lock writeLock.lock(); try { String key = ByteUtils.getString(keyBytes.get(), "UTF-8"); Versioned<String> value = ne...
[ "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException" ]
[ "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized obj...
@RequestMapping(value = "api/edit/server", method = RequestMethod.GET) public @ResponseBody HashMap<String, Object> getjqRedirects(Model model, @RequestParam(value = "profileId", required = false) Integer profileId, @Reque...
[ "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
[ "Resets the handler data to a basic state.", "Send a master handoff yield response to all registered listeners.\n\n@param fromPlayer the device number that is responding to our request that it yield the tempo master role to us\n@param yielded will be {@code true} if we should now be the tempo master", "Crop the...
public static nsdiameter get(nitro_service service) throws Exception{ nsdiameter obj = new nsdiameter(); nsdiameter[] response = (nsdiameter[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the nsdiameter resources that are configured on netscaler." ]
[ "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Set the pickers selection type.", "Ensure that the node is not null.\n\n@param node t...
private void readChunkIfNeeded() { if (workBufferSize > workBufferPosition) { return; } if (workBuffer == null) { workBuffer = bitmapProvider.obtainByteArray(WORK_BUFFER_SIZE); } workBufferPosition = 0; workBufferSize = Math.min(rawData.remaining()...
[ "Reads the next chunk for the intermediate work buffer." ]
[ "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" o...
public static <T> String join(Collection<T> col, String delim) { StringBuilder sb = new StringBuilder(); Iterator<T> iter = col.iterator(); if (iter.hasNext()) sb.append(iter.next().toString()); while (iter.hasNext()) { sb.append(delim); sb.append(iter.next().toString()); } ret...
[ "Joins a collection in a string using a delimiter\n@param col Collection\n@param delim Delimiter\n@return String" ]
[ "Use this API to fetch all the clusternodegroup resources that are configured on netscaler.", "Returns the configured sort options, or the empty list if no such options are configured.\n@return The configured sort options, or the empty list if no such options are configured.", "Pauses a given deployment\n\n@par...
private static List<String> parseAndCompare(List<String> fileNames, int masterPartitionId) { List<String> sourceFileNames = new ArrayList<String>(); for(String fileName: fileNames) { String[] partitionIdReplicaChunk = fileName.split(SPLIT_LITERAL); if(Integer.parseInt(partitionId...
[ "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_" ]
[ "Use this API to fetch clusterinstance_binding resource of given name .", "Patch provided by Avril Kotzen (hi001@webmail.co.za)\nDB2 handles TINYINT (for mapping a byte).", "Add statistics about sent emails.\n\n@param recipients The list of recipients.\n@param storageUsed If a remote storage was used.", "Pars...
public static lbvserver_filterpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_filterpolicy_binding obj = new lbvserver_filterpolicy_binding(); obj.set_name(name); lbvserver_filterpolicy_binding response[] = (lbvserver_filterpolicy_binding[]) obj.get_resources(service); retur...
[ "Use this API to fetch lbvserver_filterpolicy_binding resources of given name ." ]
[ "Sets the specified range of elements in the specified array to the specified value.\n\n@param from the index of the first element (inclusive) to be filled with the specified value.\n@param to the index of the last element (inclusive) to be filled with the specified value.\n@param val the value to be stored in the ...
public GVRSceneObject startDrag(GVRSceneObject dragMe, float relX, float relY, float relZ) { synchronized (mLock) { if (mCursorController == null) { Log.w(TAG, "Physics drag failed: Cursor controller not found!"); return null; } if (mDragMe !=...
[ "Start the drag of the pivot object.\n\n@param dragMe Scene object with a rigid body.\n@param relX rel position in x-axis.\n@param relY rel position in y-axis.\n@param relZ rel position in z-axis.\n\n@return Pivot instance if success, otherwise returns null." ]
[ "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern", "The main method called from the command line.\n\n@param args the command line arguments", "Await service container stabil...
public Request header(String key, String value) { this.headers.put(key, value); return this; }
[ "Sets a header per-request\n\n@param key Header key\n@param value Header value\n@return The request itself" ]
[ "It is required that T be Serializable", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of t...
public GVRAnimation setRepeatMode(int repeatMode) { if (GVRRepeatMode.invalidRepeatMode(repeatMode)) { throw new IllegalArgumentException(repeatMode + " is not a valid repetition type"); } mRepeatMode = repeatMode; return this; }
[ "Set the repeat type.\n\nIn the default {@linkplain GVRRepeatMode#ONCE run-once} mode, animations\nrun once, ignoring the {@linkplain #getRepeatCount() repeat count.} In\n{@linkplain GVRRepeatMode#PINGPONG ping pong} and\n{@linkplain GVRRepeatMode#REPEATED repeated} modes, animations do honor\nthe repeat count, whi...
[ "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of user...
public void setControllerModel(GVRSceneObject controllerModel) { if (mControllerModel != null) { mControllerGroup.removeChildObject(mControllerModel); } mControllerModel = controllerModel; mControllerGroup.addChildObject(mControllerModel); mControllerModel...
[ "Replaces the model used to depict the controller in the scene.\n\n@param controllerModel root of hierarchy to use for controller model\n@see #getControllerModel()\n@see #showControllerModel(boolean)" ]
[ "Send an empty request using a standard HTTP connection.", "Obtains a local date in International Fixed calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the International Fixed era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Interna...
public static aaaglobal_binding get(nitro_service service) throws Exception{ aaaglobal_binding obj = new aaaglobal_binding(); aaaglobal_binding response = (aaaglobal_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch a aaaglobal_binding resource ." ]
[ "Start the timer.", "Computes the rank of a matrix using the specified tolerance.\n\n@param A Matrix whose rank is to be calculated. Not modified.\n@param threshold The numerical threshold used to determine a singular value.\n@return The matrix's rank.", "Helper method to lookup a DAO if it has already been as...
static AbstractLazyPatchableTarget createPatchableTarget(final String name, final LayerPathConfig layer, final File metadata, final InstalledImage image) throws IOException { // patchable target return new AbstractLazyPatchableTarget() { @Override public InstalledImage getInstal...
[ "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException" ]
[ "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corresponding argument\n@return the object whose index is the integer argument.", "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be ...
private void getYearlyDates(Calendar calendar, List<Date> dates) { if (m_relative) { getYearlyRelativeDates(calendar, dates); } else { getYearlyAbsoluteDates(calendar, dates); } }
[ "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates" ]
[ "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Get by index is used here.", "Renders in LI tags, Wraps with UL tags optionally.", "Clea...
private void deliverMountUpdate(SlotReference slot, boolean mounted) { if (mounted) { logger.info("Reporting media mounted in " + slot); } else { logger.info("Reporting media removed from " + slot); } for (final MountListener listener : getMountListeners()) { ...
[ "Send a mount update announcement to all registered listeners, and see if we can auto-attach a media cache file.\n\n@param slot the slot in which media has been mounted or unmounted\n@param mounted will be {@code true} if there is now media mounted in the specified slot" ]
[ "Use this API to fetch transformpolicy resource of given name .", "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", "returns an array containing values for all the Objects attribute\n@...
public static appfwpolicylabel_binding get(nitro_service service, String labelname) throws Exception{ appfwpolicylabel_binding obj = new appfwpolicylabel_binding(); obj.set_labelname(labelname); appfwpolicylabel_binding response = (appfwpolicylabel_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch appfwpolicylabel_binding resource of given name ." ]
[ "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values", "This internal method is used to convert from a Date instance to an\ninteger representing the number of minutes past midnight.\n\n@param date date instance\n@return minutes past midnig...
public ParallelTaskBuilder prepareHttpOptions(String url) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.getHttpMeta().setHttpMethod(HttpMethod.OPTIONS); cb.getHttpMeta().setRequestUrlPostfix(url); return cb; }
[ "Prepare a parallel HTTP OPTION 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" ]
[ "Use this API to update appfwlearningsettings.", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Carry out any post-processing requ...
public boolean removeKey(long key) { int i = indexOfKey(key); if (i<0) return false; // key not contained this.state[i]=REMOVED; this.values[i]=0; // delta this.distinct--; if (this.distinct < this.lowWaterMark) { int newCapacity = chooseShrinkCapacity(this.distinct,this.minLoadFactor, this.maxLoadFa...
[ "Removes the given key with its associated element from the receiver, if present.\n\n@param key the key to be removed from the receiver.\n@return <tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise." ]
[ "Migrate to Jenkins \"Credentials\" plugin from the old credential implementation", "Handle a completed request producing an optional response", "Triggers a new search with the given text.\n\n@param query the text to search for.", "This method writes a resource's availability table.\n\n@param xml MSPDI resour...
public static String rgb(int r, int g, int b) { if (r < -100 || r > 100) { throw new IllegalArgumentException("Red value must be between -100 and 100, inclusive."); } if (g < -100 || g > 100) { throw new IllegalArgumentException("Green value must be between -100 and 100, inclusive."); } ...
[ "This filter changes the amount of color in each of the three channels.\n\n@param r The amount of redness in the picture. Can range from -100 to 100 in percentage.\n@param g The amount of greenness in the picture. Can range from -100 to 100 in percentage.\n@param b The amount of blueness in the picture. Can range f...
[ "Use this API to Reboot reboot.", "Extracts the data for a single file from the input stream and writes\nit to a target directory.\n\n@param stream input stream\n@param dir target directory", "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as int...
public static void addItemsHandled(String handledItemsType, int handledItemsNumber) { JobLogger jobLogger = (JobLogger) getInstance(); if (jobLogger == null) { return; } jobLogger.addItemsHandledInstance(handledItemsType, handledItemsNumber); }
[ "Number of failed actions in scheduler" ]
[ "Returns the next index of the argument by decrementing 1 from the possibly parsed number\n\n@param description this String will be searched from the start for a number\n@param defaultIndex this will be returned if the match does not succeed\n@return the parsed index or the defaultIndex", "Post a build info to th...
public static String get(Properties props, String name, String defval) { String value = props.getProperty(name); if (value == null) value = defval; return value; }
[ "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned." ]
[ "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Use this API to update clusternodegroup resources.", "Creates an instance of a NewSimpleBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a...
static Parameter createParameter(final String name, final String value) { if (value != null && isQuoted(value)) { return new QuotedParameter(name, value); } return new Parameter(name, value); }
[ "Creates a Parameter\n\n@param name the name\n@param value the value, or <code>null</code>\n@return a name-value pair representing the arguments" ]
[ "Extracts location result from intent object\n\n@param intent valid intent object\n@return location result.\n@since 1.1.0", "High-accuracy Complementary normal distribution function.\n\n@param x Value.\n@return Result.", "sets the class object described by this descriptor.\n@param c the class to describe", "P...
private void writeCalendar(ProjectCalendar mpxj) { CalendarType xml = m_factory.createCalendarType(); m_apibo.getCalendar().add(xml); String type = mpxj.getResource() == null ? "Global" : "Resource"; xml.setBaseCalendarObjectId(getCalendarUniqueID(mpxj.getParent())); xml.setIsPersonal(...
[ "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance" ]
[ "Label accessor provided for JSON serialization only.", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Get the number of views, comments and favorites on a collection for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day accord...
public EndpointOverride getPath(int pathId, String clientUUID, String[] filters) throws Exception { EndpointOverride endpoint = null; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { String queryStrin...
[ "Returns information for a specific path id\n\n@param pathId ID of path\n@param clientUUID client UUID\n@param filters filters to set on endpoint\n@return EndpointOverride\n@throws Exception exception" ]
[ "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.", "Sets test status.", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Load a cube map texture as...
private static void handleSignals() { if (DaemonStarter.isRunMode()) { try { // handle SIGHUP to prevent process to get killed when exiting the tty Signal.handle(new Signal("HUP"), arg0 -> { // Nothing to do here System.out.prin...
[ "I KNOW WHAT I AM DOING" ]
[ "Accessor method used to retrieve a Number instance 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\n@throws MPXJException normally thrown when pars...
private void writeAssignments() { Allocations allocations = m_factory.createAllocations(); m_plannerProject.setAllocations(allocations); List<Allocation> allocationList = allocations.getAllocation(); for (ResourceAssignment mpxjAssignment : m_projectFile.getResourceAssignments()) { ...
[ "This method writes assignment data to a Planner file." ]
[ "Use this API to add responderpolicy.", "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Set the position of the given Matcher to the gi...
public void setValue(Vector3f pos) { mX = pos.x; mY = pos.y; mZ = pos.z; }
[ "Sets the position vector of the keyframe." ]
[ "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace.", "Get a property ...
protected void appendWhereClause(ClassDescriptor cld, boolean useLocking, StringBuffer stmt) { FieldDescriptor[] pkFields = cld.getPkFields(); FieldDescriptor[] fields; fields = pkFields; if(useLocking) { FieldDescriptor[] lockingFields = cld.getLockingFi...
[ "Generate a where clause for a prepared Statement.\nOnly primary key and locking fields are used in this where clause\n\n@param cld the ClassDescriptor\n@param useLocking true if locking fields should be included\n@param stmt the StatementBuffer" ]
[ "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", ...
private static void listHierarchy(Task task, String indent) { for (Task child : task.getChildTasks()) { System.out.println(indent + "Task: " + child.getName() + "\t" + child.getStart() + "\t" + child.getFinish()); listHierarchy(child, indent + " "); } }
[ "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels" ]
[ "Checks the constraints on this class.\n\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value", "Use this API to fetch a appflowglobal_binding resource .", "Convert...
public static CmsJspResourceWrapper convertResource(CmsObject cms, Object input) throws CmsException { CmsJspResourceWrapper result; if (input instanceof CmsResource) { result = CmsJspResourceWrapper.wrap(cms, (CmsResource)input); } else { result = CmsJspResourceWrapper....
[ "Returns a resource wrapper created from the input.\n\nThe wrapped result of {@link #convertRawResource(CmsObject, Object)} is returned.\n\n@param cms the current OpenCms user context\n@param input the input to create a resource from\n\n@return a resource wrapper created from the given Object\n\n@throws CmsExceptio...
[ "Tell a device to become tempo master.\n\n@param deviceNumber the device we want to take over the role of tempo master\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 dev...
private static float angleDeg(final float ax, final float ay, final float bx, final float by) { final double angleRad = Math.atan2(ay - by, ax - bx); double angle = Math.toDegrees(angleRad); if (angleRad < 0) { angle += 360; } return ...
[ "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points" ]
[ "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be ...
static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JS...
[ "Parses an item id\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@param siteIri\nthe siteIRI that this value refers to\n@throws IllegalArgumentException\nif the id is invalid" ]
[ "Set the view frustum to pick against from the field of view, aspect\nratio and near, far clip planes. The viewpoint of the frustum\nis the center of the scene object the picker is attached to.\nThe view direction is the forward direction of that scene object.\nThe frustum will pick what a camera attached to the sc...
public static java.sql.Date newDate() { return new java.sql.Date((System.currentTimeMillis() / DAY_MILLIS) * DAY_MILLIS); }
[ "Create a new Date. To the last day." ]
[ "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware.", "If the HttpRequest is valid and handled it will be sent upstream, if it cannot be invoked\nthe response will be written back immediately.", "Append the WHERE part of the statement to the StringBuilder.", ...
public static void append(File file, Writer writer, String charset) throws IOException { appendBuffered(file, writer, charset); }
[ "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3" ]
[ "Add tables to the tree.\n\n@param parentNode parent tree node\n@param file tables container", "Returns the configured body or the default value.", "Sets the value of a UDF.\n\n@param udf user defined field\n@param dataType MPXJ data type\n@param value field value", "Use this API to fetch authenticationvserve...
private static void alterHtmlDocs(Options opt, String outputFolder, String packageName, String className, String htmlFileName, Pattern insertPointPattern, RootDoc root) throws IOException { // setup files File output = new File(outputFolder, packageName.replace(".", "/")); File htmlFile = new File(output, htmlF...
[ "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." ]
[ "Creates a tar directory entry with defaults parameters.\n@param dirName the directory name\n@return dir entry with reasonable defaults", "Determine whether or not a given serializedr is \"AVRO\" based\n\n@param serializerName\n@return", "Use this API to fetch authenticationtacacspolicy_systemglobal_binding res...
@VisibleForTesting protected static int getBarSize(final ScaleBarRenderSettings settings) { if (settings.getParams().barSize != null) { return settings.getParams().barSize; } else { if (settings.getParams().getOrientation().isHorizontal()) { return settings.ge...
[ "Get the bar size.\n\n@param settings Parameters for rendering the scalebar." ]
[ "Polls from the location header and updates the polling state with the\npolling response for a PUT operation.\n\n@param pollingState the polling state for the current operation.\n@param <T> the return type of the caller.", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned v...
@UiThread private int getFlatParentPosition(int parentPosition) { int parentCount = 0; int listItemCount = mFlatItemList.size(); for (int i = 0; i < listItemCount; i++) { if (mFlatItemList.get(i).isParent()) { parentCount++; if (parentCount > pare...
[ "Gets the index of a ExpandableWrapper within the helper item list based on\nthe index of the ExpandableWrapper.\n\n@param parentPosition The index of the parent in the list of parents\n@return The index of the parent in the merged list of children and parents" ]
[ "Copies the jdb log files, with additional verification of the checksums.\n\n@param sourceFile\n@param destFile\n@throws IOException", "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "Delivers the co...
private <T> ServiceResponse<T> getPutOrPatchResult(Observable<Response<ResponseBody>> observable, Type resourceType) throws CloudException, InterruptedException, IOException { Observable<ServiceResponse<T>> asyncObservable = getPutOrPatchResultAsync(observable, resourceType); return asyncObservable.toBl...
[ "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.re...
[ "generate random velocities in the given range\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.", "Returns the result of calling a closure with the first occurrence of a regular expres...
public FieldDescriptor getAutoIncrementField() { if (m_autoIncrementField == null) { FieldDescriptor[] fds = getPkFields(); for (int i = 0; i < fds.length; i++) { FieldDescriptor fd = fds[i]; if (fd.isAutoIncrement()) ...
[ "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}" ]
[ "Append a SubQuery the SQL-Clause\n@param subQuery the subQuery value of SelectionCriteria", "Perform the entire sort operation", "Look-up the results data for a particular test class.", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list...
public List<Set<String>> makeNWiseTuples(String[] variables, int nWise) { List<Set<String>> completeTuples = new ArrayList<>(); makeNWiseTuplesHelper(completeTuples, variables, 0, new HashSet<String>(), nWise); return completeTuples; }
[ "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise" ]
[ "Set the String of request body data to be sent to the server.\n\n@param input String of request body data to be sent to the server\n@return an {@link HttpConnection} for method chaining", "visibility increased for testing", "Update artifact download url of an artifact\n\n@param gavc String\n@param downLoadUrl ...
public ValueContainer[] getKeyValues(ClassDescriptor cld, Identity oid, boolean convertToSql) throws PersistenceBrokerException { FieldDescriptor[] pkFields = cld.getPkFields(); ValueContainer[] result = new ValueContainer[pkFields.length]; Object[] pkValues = oid.getPrimaryKeyValues(); ...
[ "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException" ]
[ "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and th...
public void transform(String name, String transform) throws Exception { File configFile = new File(m_configDir, name); File transformFile = new File(m_xsltDir, transform); try (InputStream stream = new FileInputStream(transformFile)) { StreamSource source = new StreamSource(stream);...
[ "Transforms a config file with an XSLT transform.\n\n@param name file name of the config file\n@param transform file name of the XSLT file\n\n@throws Exception if something goes wrong" ]
[ "Encodes the given URI path segment with the given encoding.\n@param segment the segment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded segment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Adds a qualifier with the given prope...
public void showTrajectoryAndSpline(){ if(t.getDimension()==2){ double[] xData = new double[rotatedTrajectory.size()]; double[] yData = new double[rotatedTrajectory.size()]; for(int i = 0; i < rotatedTrajectory.size(); i++){ xData[i] = rotatedTrajectory.get(i).x; yData[i] = rotatedTra...
[ "Plots the rotated trajectory, spline and support points." ]
[ "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Creates a timespan from a list of other timespans.\n\n@return a timespan repres...
@Override public String replace(File file, String flickrId, boolean async) throws FlickrException { Payload payload = new Payload(file, flickrId); return sendReplaceRequest(async, payload); }
[ "Replace a photo from a File.\n\n@param file\n@param flickrId\n@param async\n@return photoId or ticketId\n@throws FlickrException" ]
[ "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "This method writes predecessor data to...
public void addRequest(long timeNS, long numEmptyResponses, long valueBytes, long keyBytes, long getAllAggregatedCount) { // timing instrumentation (trace only) long startTimeNs = 0; if(lo...
[ "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param k...
[ "Recycles the Renderer getting it from the tag associated to the renderer root view. This view\nis not used with RecyclerView widget.\n\n@param convertView that contains the tag.\n@param content to be updated in the recycled renderer.\n@return a recycled renderer.", "this remove the linebreak.\n\n@param input\nth...
public static Statement open(String driverklass, String jdbcuri, Properties props) { try { Driver driver = (Driver) ObjectUtils.instantiate(driverklass); Connection conn = driver.connect(jdbcuri, props); if (conn == null) throw new DukeException("Couldn't con...
[ "Opens a JDBC connection with the given parameters." ]
[ "Returns a single template.\n\n@param id id of the template to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Does the bitwise conjunction with this address. Use...
private void readCalendars() { // // Create the calendars // for (MapRow row : getTable("NCALTAB")) { ProjectCalendar calendar = m_projectFile.addCalendar(); calendar.setUniqueID(row.getInteger("UNIQUE_ID")); calendar.setName(row.getString("NAME")); c...
[ "Read calendar data from a PEP file." ]
[ "ten less than Cube Q", "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", "Checks the preconditions for creating a new StrRegExReplace pr...
public final void setWeeksOfMonth(SortedSet<WeekOfMonth> weeksOfMonth) { m_weeksOfMonth.clear(); if (null != weeksOfMonth) { m_weeksOfMonth.addAll(weeksOfMonth); } }
[ "Set the weeks of the month the events should occur.\n@param weeksOfMonth the weeks of month to set (first to fifth, where fifth means last)." ]
[ "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "So that we get these packages caught Java class analysis.", "Login the user and redirect back to original URL. If no\noriginal URL found then redirect to `default...
public static aaagroup_vpnsessionpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_vpnsessionpolicy_binding obj = new aaagroup_vpnsessionpolicy_binding(); obj.set_groupname(groupname); aaagroup_vpnsessionpolicy_binding response[] = (aaagroup_vpnsessionpolicy_binding[]) obj.g...
[ "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name ." ]
[ "Checks if the duration option is valid.\n\nNOTE: This does NOT check, if too many events are specified.\n\n@return a flag, indicating if the duration option is valid.", "Prints a cluster xml to a file.\n\n@param outputDirName\n@param fileName\n@param cluster", "Throw IllegalStateException if key is not present...
public static boolean hasPermission(Permission permission) { SecurityManager security = System.getSecurityManager(); if (security != null) { try { security.checkPermission(permission); } catch (java.security.AccessControlException e) { return false...
[ "Determines whether the specified permission is permitted.\n\n@param permission\n@return <tt>false<tt> if the specified permission is not permitted, based on the current security policy; <tt>true<tt> otherwise" ]
[ "Transforms root paths to site paths.\n\n@return lazy map from root paths to site paths.\n\n@see CmsRequestContext#removeSiteRoot(String)", "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appe...
@Override public void deploy(InputStream inputStream) throws IOException { final List<? extends HasMetadata> entities = deploy("application", inputStream); if (this.applicationName == null) { Optional<String> deploymentConfig = entities.stream() .filter(hm -> hm instanc...
[ "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException" ]
[ "Generates the Base64 encoded SHA-1 hash for content available in the stream.\nIt can be used to calculate the hash of a file.\n@param stream the input stream of the file or data.\n@return the Base64 encoded hash string.", "Set the attributes for this template.\n\n@param attributes the attribute map", "Create a...
private void addDependent(String pathName, String relativeTo) { if (relativeTo != null) { Set<String> dependents = dependenctRelativePaths.get(relativeTo); if (dependents == null) { dependents = new HashSet<String>(); dependenctRelativePaths.put(relativeTo...
[ "Must be called with pathEntries lock taken" ]
[ "Re-reads the given entity, refreshing any properties updated on the server-side during insert or update.", "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 ...
private void populateRecurringTask(Record record, RecurringTask task) throws MPXJException { //System.out.println(record); task.setStartDate(record.getDateTime(1)); task.setFinishDate(record.getDateTime(2)); task.setDuration(RecurrenceUtility.getDuration(m_projectFile.getProjectProperties(), ...
[ "Populates a recurring task.\n\n@param record MPX record\n@param task recurring task\n@throws MPXJException" ]
[ "Set the default styles. the case of the keys are not important. The retrieval will be case\ninsensitive.\n\n@param defaultStyle the mapping from geometry type name (point, polygon, etc...) to the style\nto use for that type.", "Use this API to fetch vpnclientlessaccesspolicy_binding resource of given name .", ...
@JsonProperty("paging") void paging(String paging) { builder.paging(IndexPagingState.fromByteBuffer(ByteBufferUtils.byteBuffer(paging))); }
[ "Sets the specified starting partition key.\n\n@param paging a paging state" ]
[ "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host sect...
public static byte[] hashPath(MessageDigest messageDigest, Path path) throws IOException { try (InputStream in = getRecursiveContentStream(path)) { return hashContent(messageDigest, in); } }
[ "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException" ]
[ "Log a message at the provided level.", "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d", "Record the connection establishment time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this o...
@Override public String toNormalizedString() { String result; if(hasNoStringCache() || (result = getStringCache().normalizedString) == null) { getStringCache().normalizedString = result = toNormalizedString(IPv6StringCache.normalizedParams); } return result; }
[ "The normalized string returned by this method is consistent with java.net.Inet6address.\nIPs are not compressed nor mixed in this representation." ]
[ "Converts the results to CSV data.\n\n@return the CSV data", "URL-Decodes a given string using UTF-8. No UnsupportedEncodingException to handle as it is dealt with in this\nmethod.", "Retrieve an instance of the ResourceField class based on the data read from an\nMPX file.\n\n@param value value from an MS Proje...