repository_name
stringlengths
7
58
func_path_in_repository
stringlengths
11
218
func_name
stringlengths
4
140
whole_func_string
stringlengths
153
5.32k
language
stringclasses
1 value
func_code_string
stringlengths
72
4k
func_code_tokens
listlengths
20
832
func_documentation_string
stringlengths
61
2k
func_documentation_tokens
listlengths
1
647
split_name
stringclasses
1 value
func_code_url
stringlengths
102
339
Impetus/Kundera
src/kundera-neo4j/src/main/java/com/impetus/client/neo4j/Neo4JClient.java
Neo4JClient.addEntityFromIndexHits
protected void addEntityFromIndexHits(EntityMetadata m, List<Object> entities, IndexHits<Node> hits) { """ Adds the entity from index hits. @param m the m @param entities the entities @param hits the hits """ for (Node node : hits) { if (node != null) { ...
java
protected void addEntityFromIndexHits(EntityMetadata m, List<Object> entities, IndexHits<Node> hits) { for (Node node : hits) { if (node != null) { Object entity = getEntityWithAssociationFromNode(m, node); if (entity != null) {...
[ "protected", "void", "addEntityFromIndexHits", "(", "EntityMetadata", "m", ",", "List", "<", "Object", ">", "entities", ",", "IndexHits", "<", "Node", ">", "hits", ")", "{", "for", "(", "Node", "node", ":", "hits", ")", "{", "if", "(", "node", "!=", "n...
Adds the entity from index hits. @param m the m @param entities the entities @param hits the hits
[ "Adds", "the", "entity", "from", "index", "hits", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-neo4j/src/main/java/com/impetus/client/neo4j/Neo4JClient.java#L889-L904
fhoeben/hsac-fitnesse-fixtures
src/main/java/nl/hsac/fitnesse/fixture/slim/MapFixture.java
MapFixture.setValuesForIn
public void setValuesForIn(String values, String name, Map<String, Object> map) { """ Stores list of values in map. @param values comma separated list of values. @param name name to use this list for. @param map map to store values in. """ getMapHelper().setValuesForIn(values, name, map); }
java
public void setValuesForIn(String values, String name, Map<String, Object> map) { getMapHelper().setValuesForIn(values, name, map); }
[ "public", "void", "setValuesForIn", "(", "String", "values", ",", "String", "name", ",", "Map", "<", "String", ",", "Object", ">", "map", ")", "{", "getMapHelper", "(", ")", ".", "setValuesForIn", "(", "values", ",", "name", ",", "map", ")", ";", "}" ]
Stores list of values in map. @param values comma separated list of values. @param name name to use this list for. @param map map to store values in.
[ "Stores", "list", "of", "values", "in", "map", "." ]
train
https://github.com/fhoeben/hsac-fitnesse-fixtures/blob/4e9018d7386a9aa65bfcbf07eb28ae064edd1732/src/main/java/nl/hsac/fitnesse/fixture/slim/MapFixture.java#L114-L116
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.getDeletedSasDefinition
public DeletedSasDefinitionBundle getDeletedSasDefinition(String vaultBaseUrl, String storageAccountName, String sasDefinitionName) { """ Gets the specified deleted sas definition. The Get Deleted SAS Definition operation returns the specified deleted SAS definition along with its attributes. This operation requi...
java
public DeletedSasDefinitionBundle getDeletedSasDefinition(String vaultBaseUrl, String storageAccountName, String sasDefinitionName) { return getDeletedSasDefinitionWithServiceResponseAsync(vaultBaseUrl, storageAccountName, sasDefinitionName).toBlocking().single().body(); }
[ "public", "DeletedSasDefinitionBundle", "getDeletedSasDefinition", "(", "String", "vaultBaseUrl", ",", "String", "storageAccountName", ",", "String", "sasDefinitionName", ")", "{", "return", "getDeletedSasDefinitionWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "storageAc...
Gets the specified deleted sas definition. The Get Deleted SAS Definition operation returns the specified deleted SAS definition along with its attributes. This operation requires the storage/getsas permission. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param storageAccountName T...
[ "Gets", "the", "specified", "deleted", "sas", "definition", ".", "The", "Get", "Deleted", "SAS", "Definition", "operation", "returns", "the", "specified", "deleted", "SAS", "definition", "along", "with", "its", "attributes", ".", "This", "operation", "requires", ...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java#L10880-L10882
googleapis/google-cloud-java
google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
WebSecurityScannerClient.listFindings
public final ListFindingsPagedResponse listFindings(ScanRunName parent, String filter) { """ List Findings under a given ScanRun. <p>Sample code: <pre><code> try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN...
java
public final ListFindingsPagedResponse listFindings(ScanRunName parent, String filter) { ListFindingsRequest request = ListFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setFilter(filter) .build(); return listFindings(request); }
[ "public", "final", "ListFindingsPagedResponse", "listFindings", "(", "ScanRunName", "parent", ",", "String", "filter", ")", "{", "ListFindingsRequest", "request", "=", "ListFindingsRequest", ".", "newBuilder", "(", ")", ".", "setParent", "(", "parent", "==", "null",...
List Findings under a given ScanRun. <p>Sample code: <pre><code> try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = ""; for (Finding element : webSecurityScannerClient.listFindin...
[ "List", "Findings", "under", "a", "given", "ScanRun", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java#L1321-L1328
spring-projects/spring-android
spring-android-rest-template/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java
HttpComponentsClientHttpRequestFactory.setLegacySocketTimeout
@SuppressWarnings("deprecation") private void setLegacySocketTimeout(HttpClient client, int timeout) { """ Apply the specified socket timeout to deprecated {@link HttpClient} implementations. See {@link #setLegacyConnectionTimeout}. @param client the client to configure @param timeout the custom socket timeout...
java
@SuppressWarnings("deprecation") private void setLegacySocketTimeout(HttpClient client, int timeout) { if (org.apache.http.impl.client.AbstractHttpClient.class.isInstance(client)) { client.getParams().setIntParameter( org.apache.http.params.CoreConnectionPNames.SO_TIMEOUT, timeout); } }
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "private", "void", "setLegacySocketTimeout", "(", "HttpClient", "client", ",", "int", "timeout", ")", "{", "if", "(", "org", ".", "apache", ".", "http", ".", "impl", ".", "client", ".", "AbstractHttpClient"...
Apply the specified socket timeout to deprecated {@link HttpClient} implementations. See {@link #setLegacyConnectionTimeout}. @param client the client to configure @param timeout the custom socket timeout @see #setLegacyConnectionTimeout
[ "Apply", "the", "specified", "socket", "timeout", "to", "deprecated", "{" ]
train
https://github.com/spring-projects/spring-android/blob/941296e152d49a40e0745a3e81628a974f72b7e4/spring-android-rest-template/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java#L163-L169
liferay/com-liferay-commerce
commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommerceTierPriceEntryPersistenceImpl.java
CommerceTierPriceEntryPersistenceImpl.findAll
@Override public List<CommerceTierPriceEntry> findAll() { """ Returns all the commerce tier price entries. @return the commerce tier price entries """ return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
java
@Override public List<CommerceTierPriceEntry> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
[ "@", "Override", "public", "List", "<", "CommerceTierPriceEntry", ">", "findAll", "(", ")", "{", "return", "findAll", "(", "QueryUtil", ".", "ALL_POS", ",", "QueryUtil", ".", "ALL_POS", ",", "null", ")", ";", "}" ]
Returns all the commerce tier price entries. @return the commerce tier price entries
[ "Returns", "all", "the", "commerce", "tier", "price", "entries", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommerceTierPriceEntryPersistenceImpl.java#L4839-L4842
apache/incubator-shardingsphere
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/communication/jdbc/recognizer/JDBCDriverURLRecognizerEngine.java
JDBCDriverURLRecognizerEngine.getDatabaseType
public static DatabaseType getDatabaseType(final String url) { """ Get database type. @param url JDBC URL @return database type """ switch (getDriverClassName(url)) { case "com.mysql.cj.jdbc.Driver": case "com.mysql.jdbc.Driver": return DatabaseType.MySQL; ...
java
public static DatabaseType getDatabaseType(final String url) { switch (getDriverClassName(url)) { case "com.mysql.cj.jdbc.Driver": case "com.mysql.jdbc.Driver": return DatabaseType.MySQL; case "org.postgresql.Driver": return DatabaseType.Postgr...
[ "public", "static", "DatabaseType", "getDatabaseType", "(", "final", "String", "url", ")", "{", "switch", "(", "getDriverClassName", "(", "url", ")", ")", "{", "case", "\"com.mysql.cj.jdbc.Driver\"", ":", "case", "\"com.mysql.jdbc.Driver\"", ":", "return", "Database...
Get database type. @param url JDBC URL @return database type
[ "Get", "database", "type", "." ]
train
https://github.com/apache/incubator-shardingsphere/blob/f88fd29fc345dfb31fdce12e9e96cbfa0fd2402d/sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/communication/jdbc/recognizer/JDBCDriverURLRecognizerEngine.java#L74-L90
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.addAnnotationInfo
public void addAnnotationInfo(PackageDoc packageDoc, Content htmltree) { """ Adds the annotatation types for the given packageDoc. @param packageDoc the package to write annotations for. @param htmltree the documentation tree to which the annotation info will be added """ addAnnotationInfo(package...
java
public void addAnnotationInfo(PackageDoc packageDoc, Content htmltree) { addAnnotationInfo(packageDoc, packageDoc.annotations(), htmltree); }
[ "public", "void", "addAnnotationInfo", "(", "PackageDoc", "packageDoc", ",", "Content", "htmltree", ")", "{", "addAnnotationInfo", "(", "packageDoc", ",", "packageDoc", ".", "annotations", "(", ")", ",", "htmltree", ")", ";", "}" ]
Adds the annotatation types for the given packageDoc. @param packageDoc the package to write annotations for. @param htmltree the documentation tree to which the annotation info will be added
[ "Adds", "the", "annotatation", "types", "for", "the", "given", "packageDoc", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L1838-L1840
tvesalainen/util
rpm/src/main/java/org/vesalainen/pm/deb/DEBBuilder.java
DEBBuilder.addFile
@Override public FileBuilder addFile(Path source, String target) throws IOException { """ Add regular file to package. @param source @param target @return @throws IOException """ checkTarget(target); FileBuilder fb = new FileBuilder(target, source); fileBuilders.add(fb); ...
java
@Override public FileBuilder addFile(Path source, String target) throws IOException { checkTarget(target); FileBuilder fb = new FileBuilder(target, source); fileBuilders.add(fb); return fb; }
[ "@", "Override", "public", "FileBuilder", "addFile", "(", "Path", "source", ",", "String", "target", ")", "throws", "IOException", "{", "checkTarget", "(", "target", ")", ";", "FileBuilder", "fb", "=", "new", "FileBuilder", "(", "target", ",", "source", ")",...
Add regular file to package. @param source @param target @return @throws IOException
[ "Add", "regular", "file", "to", "package", "." ]
train
https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/rpm/src/main/java/org/vesalainen/pm/deb/DEBBuilder.java#L362-L369
apache/incubator-gobblin
gobblin-utility/src/main/java/org/apache/gobblin/util/FileListUtils.java
FileListUtils.listFilesRecursively
public static List<FileStatus> listFilesRecursively(FileSystem fs, Path path, PathFilter fileFilter) throws IOException { """ Helper method to list out all files under a specified path. The specified {@link PathFilter} is treated as a file filter, that is it is only applied to file {@link Path}s. """ ...
java
public static List<FileStatus> listFilesRecursively(FileSystem fs, Path path, PathFilter fileFilter) throws IOException { return listFilesRecursively(fs, path, fileFilter, false); }
[ "public", "static", "List", "<", "FileStatus", ">", "listFilesRecursively", "(", "FileSystem", "fs", ",", "Path", "path", ",", "PathFilter", "fileFilter", ")", "throws", "IOException", "{", "return", "listFilesRecursively", "(", "fs", ",", "path", ",", "fileFilt...
Helper method to list out all files under a specified path. The specified {@link PathFilter} is treated as a file filter, that is it is only applied to file {@link Path}s.
[ "Helper", "method", "to", "list", "out", "all", "files", "under", "a", "specified", "path", ".", "The", "specified", "{" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-utility/src/main/java/org/apache/gobblin/util/FileListUtils.java#L116-L119
threerings/narya
core/src/main/java/com/threerings/presents/peer/server/PeerManager.java
PeerManager.changedCacheData
protected void changedCacheData (String cache, final Streamable data) { """ Called when possibly cached data has changed on one of our peer servers. """ // see if we have any observers ObserverList<StaleCacheObserver> list = _cacheobs.get(cache); if (list == null) { return; ...
java
protected void changedCacheData (String cache, final Streamable data) { // see if we have any observers ObserverList<StaleCacheObserver> list = _cacheobs.get(cache); if (list == null) { return; } // if so, notify them list.apply(new ObserverList.ObserverOp...
[ "protected", "void", "changedCacheData", "(", "String", "cache", ",", "final", "Streamable", "data", ")", "{", "// see if we have any observers", "ObserverList", "<", "StaleCacheObserver", ">", "list", "=", "_cacheobs", ".", "get", "(", "cache", ")", ";", "if", ...
Called when possibly cached data has changed on one of our peer servers.
[ "Called", "when", "possibly", "cached", "data", "has", "changed", "on", "one", "of", "our", "peer", "servers", "." ]
train
https://github.com/threerings/narya/blob/5b01edc8850ed0c32d004b4049e1ac4a02027ede/core/src/main/java/com/threerings/presents/peer/server/PeerManager.java#L1283-L1297
google/error-prone-javac
src/jdk.jshell/share/classes/jdk/internal/jshell/tool/JShellTool.java
JShellTool.messageFormat
String messageFormat(String key, Object... args) { """ Format using resource bundle look-up using MessageFormat @param key the resource key @param args """ String rs = getResourceString(key); return MessageFormat.format(rs, args); }
java
String messageFormat(String key, Object... args) { String rs = getResourceString(key); return MessageFormat.format(rs, args); }
[ "String", "messageFormat", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "String", "rs", "=", "getResourceString", "(", "key", ")", ";", "return", "MessageFormat", ".", "format", "(", "rs", ",", "args", ")", ";", "}" ]
Format using resource bundle look-up using MessageFormat @param key the resource key @param args
[ "Format", "using", "resource", "bundle", "look", "-", "up", "using", "MessageFormat" ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/JShellTool.java#L787-L790
javamelody/javamelody
javamelody-swing/src/main/java/net/bull/javamelody/swing/util/MSwingUtilities.java
MSwingUtilities.getScaledInstance
public static ImageIcon getScaledInstance(ImageIcon icon, int targetWidth, int targetHeight) { """ Redimensionne une ImageIcon. @param icon ImageIcon @param targetWidth int @param targetHeight int @return ImageIcon """ return new ImageIcon(getScaledInstance(icon.getImage(), targetWidth, targetHeight)); ...
java
public static ImageIcon getScaledInstance(ImageIcon icon, int targetWidth, int targetHeight) { return new ImageIcon(getScaledInstance(icon.getImage(), targetWidth, targetHeight)); }
[ "public", "static", "ImageIcon", "getScaledInstance", "(", "ImageIcon", "icon", ",", "int", "targetWidth", ",", "int", "targetHeight", ")", "{", "return", "new", "ImageIcon", "(", "getScaledInstance", "(", "icon", ".", "getImage", "(", ")", ",", "targetWidth", ...
Redimensionne une ImageIcon. @param icon ImageIcon @param targetWidth int @param targetHeight int @return ImageIcon
[ "Redimensionne", "une", "ImageIcon", "." ]
train
https://github.com/javamelody/javamelody/blob/18ad583ddeb5dcadd797dfda295409c6983ffd71/javamelody-swing/src/main/java/net/bull/javamelody/swing/util/MSwingUtilities.java#L217-L219
gallandarakhneorg/afc
advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java
DBaseFileAttributePool.getProvider
@Pure public static DBaseFileAttributeProvider getProvider(String resource, int recordNumber) { """ Get an attribute container that corresponds to the specified file <p>The resource should be located according to the {@link Class#getResource(String)} or {@link Class#getResourceAsStream(String)} functions. ...
java
@Pure public static DBaseFileAttributeProvider getProvider(String resource, int recordNumber) { final DBaseFileAttributePool pool = getPool(resource); if (pool != null) { final DBaseFileAttributeAccessor accessor = pool.getAccessor(recordNumber); if (accessor != null) { return new DBaseFileAttributeProvi...
[ "@", "Pure", "public", "static", "DBaseFileAttributeProvider", "getProvider", "(", "String", "resource", ",", "int", "recordNumber", ")", "{", "final", "DBaseFileAttributePool", "pool", "=", "getPool", "(", "resource", ")", ";", "if", "(", "pool", "!=", "null", ...
Get an attribute container that corresponds to the specified file <p>The resource should be located according to the {@link Class#getResource(String)} or {@link Class#getResourceAsStream(String)} functions. @param resource is the resource to read @param recordNumber is the index of the record inside the file ({@code ...
[ "Get", "an", "attribute", "container", "that", "corresponds", "to", "the", "specified", "file" ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java#L222-L232
intuit/QuickBooks-V3-Java-SDK
ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java
HTTPBatchClientConnectionInterceptor.populateRequestHeaders
private void populateRequestHeaders(HttpRequestBase httpRequest, Map<String, String> requestHeaders) { """ Method to populate the HTTP request headers by reading it from the requestHeaders Map @param httpRequest the http request @param requestHeaders the request headers """ Set<String> keySet = re...
java
private void populateRequestHeaders(HttpRequestBase httpRequest, Map<String, String> requestHeaders) { Set<String> keySet = requestHeaders.keySet(); Iterator<String> keySetIterator = keySet.iterator(); while (keySetIterator.hasNext()) { String key = keySetIterator.next(); ...
[ "private", "void", "populateRequestHeaders", "(", "HttpRequestBase", "httpRequest", ",", "Map", "<", "String", ",", "String", ">", "requestHeaders", ")", "{", "Set", "<", "String", ">", "keySet", "=", "requestHeaders", ".", "keySet", "(", ")", ";", "Iterator",...
Method to populate the HTTP request headers by reading it from the requestHeaders Map @param httpRequest the http request @param requestHeaders the request headers
[ "Method", "to", "populate", "the", "HTTP", "request", "headers", "by", "reading", "it", "from", "the", "requestHeaders", "Map" ]
train
https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L344-L360
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/Validate.java
Validate.isInstanceOf
@GwtIncompatible("incompatible method") public static void isInstanceOf(final Class<?> type, final Object obj, final String message, final Object... values) { """ <p>Validate that the argument is an instance of the specified class; otherwise throwing an exception with the specified message. This method is use...
java
@GwtIncompatible("incompatible method") public static void isInstanceOf(final Class<?> type, final Object obj, final String message, final Object... values) { // TODO when breaking BC, consider returning obj if (!type.isInstance(obj)) { throw new IllegalArgumentException(StringUtils.simp...
[ "@", "GwtIncompatible", "(", "\"incompatible method\"", ")", "public", "static", "void", "isInstanceOf", "(", "final", "Class", "<", "?", ">", "type", ",", "final", "Object", "obj", ",", "final", "String", "message", ",", "final", "Object", "...", "values", ...
<p>Validate that the argument is an instance of the specified class; otherwise throwing an exception with the specified message. This method is useful when validating according to an arbitrary class</p> <pre>Validate.isInstanceOf(OkClass.class, object, "Wrong class, object is of class %s", object.getClass().getName())...
[ "<p", ">", "Validate", "that", "the", "argument", "is", "an", "instance", "of", "the", "specified", "class", ";", "otherwise", "throwing", "an", "exception", "with", "the", "specified", "message", ".", "This", "method", "is", "useful", "when", "validating", ...
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/Validate.java#L1292-L1298
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/SubscriptionsApi.java
SubscriptionsApi.getAllSubscriptionsAsync
public com.squareup.okhttp.Call getAllSubscriptionsAsync(String uid, Integer offset, Integer count, final ApiCallback<SubscriptionsEnvelope> callback) throws ApiException { """ Get All Subscriptions (asynchronously) Get All Subscriptions @param uid User ID (optional) @param offset Offset for pagination. (option...
java
public com.squareup.okhttp.Call getAllSubscriptionsAsync(String uid, Integer offset, Integer count, final ApiCallback<SubscriptionsEnvelope> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener...
[ "public", "com", ".", "squareup", ".", "okhttp", ".", "Call", "getAllSubscriptionsAsync", "(", "String", "uid", ",", "Integer", "offset", ",", "Integer", "count", ",", "final", "ApiCallback", "<", "SubscriptionsEnvelope", ">", "callback", ")", "throws", "ApiExce...
Get All Subscriptions (asynchronously) Get All Subscriptions @param uid User ID (optional) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set. (optional) @param callback The callback to be executed when the API call finishes @return The request call @throws ApiExceptio...
[ "Get", "All", "Subscriptions", "(", "asynchronously", ")", "Get", "All", "Subscriptions" ]
train
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/SubscriptionsApi.java#L397-L422
mguymon/naether
src/main/java/com/tobedevoured/naether/repo/RepositoryClient.java
RepositoryClient.setProperties
public void setProperties( Map<String,String> properties ) { """ Set User Properties for a {@link MavenRepositorySystemSession} @param properties Map """ Map<String,String> userProperties = systemSession.getUserProperties(); if ( userProperties == null ) { userProperties = new Ha...
java
public void setProperties( Map<String,String> properties ) { Map<String,String> userProperties = systemSession.getUserProperties(); if ( userProperties == null ) { userProperties = new HashMap<String,String>(); } userProperties.putAll( properties ); log.debug...
[ "public", "void", "setProperties", "(", "Map", "<", "String", ",", "String", ">", "properties", ")", "{", "Map", "<", "String", ",", "String", ">", "userProperties", "=", "systemSession", ".", "getUserProperties", "(", ")", ";", "if", "(", "userProperties", ...
Set User Properties for a {@link MavenRepositorySystemSession} @param properties Map
[ "Set", "User", "Properties", "for", "a", "{", "@link", "MavenRepositorySystemSession", "}" ]
train
https://github.com/mguymon/naether/blob/218d8fd36c0b8b6e16d66e5715975570b4560ec4/src/main/java/com/tobedevoured/naether/repo/RepositoryClient.java#L58-L69
jbossas/jboss-vfs
src/main/java/org/jboss/vfs/util/automount/Automounter.java
Automounter.removeHandle
public static boolean removeHandle(VirtualFile owner, Closeable handle) { """ Remove handle from owner. @param owner the handle owner @param handle the handle @return remove result """ RegistryEntry entry = getEntry(owner); return entry.handles.remove(handle); }
java
public static boolean removeHandle(VirtualFile owner, Closeable handle) { RegistryEntry entry = getEntry(owner); return entry.handles.remove(handle); }
[ "public", "static", "boolean", "removeHandle", "(", "VirtualFile", "owner", ",", "Closeable", "handle", ")", "{", "RegistryEntry", "entry", "=", "getEntry", "(", "owner", ")", ";", "return", "entry", ".", "handles", ".", "remove", "(", "handle", ")", ";", ...
Remove handle from owner. @param owner the handle owner @param handle the handle @return remove result
[ "Remove", "handle", "from", "owner", "." ]
train
https://github.com/jbossas/jboss-vfs/blob/420f4b896d6178ee5f6758f3421e9f350d2b8ab5/src/main/java/org/jboss/vfs/util/automount/Automounter.java#L146-L149
stapler/stapler
core/src/main/java/org/kohsuke/stapler/Stapler.java
Stapler.serveStaticResource
boolean serveStaticResource(HttpServletRequest req, StaplerResponse rsp, OpenConnection con, long expiration) throws IOException { """ Serves the specified {@link URLConnection} as a static resource. """ if (con == null) return false; try { return serveStaticResource(req, rsp, con.s...
java
boolean serveStaticResource(HttpServletRequest req, StaplerResponse rsp, OpenConnection con, long expiration) throws IOException { if (con == null) return false; try { return serveStaticResource(req, rsp, con.stream, con.getLastModified(), expiration, ...
[ "boolean", "serveStaticResource", "(", "HttpServletRequest", "req", ",", "StaplerResponse", "rsp", ",", "OpenConnection", "con", ",", "long", "expiration", ")", "throws", "IOException", "{", "if", "(", "con", "==", "null", ")", "return", "false", ";", "try", "...
Serves the specified {@link URLConnection} as a static resource.
[ "Serves", "the", "specified", "{" ]
train
https://github.com/stapler/stapler/blob/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7/core/src/main/java/org/kohsuke/stapler/Stapler.java#L432-L443
ops4j/org.ops4j.pax.exam2
containers/pax-exam-container-karaf/src/main/java/org/ops4j/pax/exam/karaf/options/KarafDistributionOption.java
KarafDistributionOption.editConfigurationFilePut
public static Option editConfigurationFilePut(String configurationFilePath, String key, Object value) { """ This option allows to configure each configuration file based on the karaf.home location. The value is "put". Which means it is either replaced or added. <p> If you like to extend an option (e.g. ...
java
public static Option editConfigurationFilePut(String configurationFilePath, String key, Object value) { return new KarafDistributionConfigurationFilePutOption(configurationFilePath, key, value); }
[ "public", "static", "Option", "editConfigurationFilePut", "(", "String", "configurationFilePath", ",", "String", "key", ",", "Object", "value", ")", "{", "return", "new", "KarafDistributionConfigurationFilePutOption", "(", "configurationFilePath", ",", "key", ",", "valu...
This option allows to configure each configuration file based on the karaf.home location. The value is "put". Which means it is either replaced or added. <p> If you like to extend an option (e.g. make a=b to a=b,c) please make use of the {@link KarafDistributionConfigurationFileExtendOption}. @param configurationFileP...
[ "This", "option", "allows", "to", "configure", "each", "configuration", "file", "based", "on", "the", "karaf", ".", "home", "location", ".", "The", "value", "is", "put", ".", "Which", "means", "it", "is", "either", "replaced", "or", "added", ".", "<p", "...
train
https://github.com/ops4j/org.ops4j.pax.exam2/blob/7f83796cbbb857123d8fc7fe817a7637218d5d77/containers/pax-exam-container-karaf/src/main/java/org/ops4j/pax/exam/karaf/options/KarafDistributionOption.java#L157-L160
joniles/mpxj
src/main/java/net/sf/mpxj/common/DateHelper.java
DateHelper.getTime
public static Date getTime(int hour, int minutes) { """ Create a Date instance representing a specific time. @param hour hour 0-23 @param minutes minutes 0-59 @return new Date instance """ Calendar cal = popCalendar(); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minutes...
java
public static Date getTime(int hour, int minutes) { Calendar cal = popCalendar(); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minutes); cal.set(Calendar.SECOND, 0); Date result = cal.getTime(); pushCalendar(cal); return result; }
[ "public", "static", "Date", "getTime", "(", "int", "hour", ",", "int", "minutes", ")", "{", "Calendar", "cal", "=", "popCalendar", "(", ")", ";", "cal", ".", "set", "(", "Calendar", ".", "HOUR_OF_DAY", ",", "hour", ")", ";", "cal", ".", "set", "(", ...
Create a Date instance representing a specific time. @param hour hour 0-23 @param minutes minutes 0-59 @return new Date instance
[ "Create", "a", "Date", "instance", "representing", "a", "specific", "time", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/common/DateHelper.java#L318-L327
m-m-m/util
value/src/main/java/net/sf/mmm/util/value/impl/ComposedValueConverterImpl.java
ComposedValueConverterImpl.addConverter
public void addConverter(ValueConverter<?, ?> converter) { """ This method registers the given {@code converter} to this composed converter. @param converter is the converter to add. """ getInitializationState().requireNotInitilized(); if (this.converters == null) { this.converters = new Arra...
java
public void addConverter(ValueConverter<?, ?> converter) { getInitializationState().requireNotInitilized(); if (this.converters == null) { this.converters = new ArrayList<>(); } this.converters.add(converter); }
[ "public", "void", "addConverter", "(", "ValueConverter", "<", "?", ",", "?", ">", "converter", ")", "{", "getInitializationState", "(", ")", ".", "requireNotInitilized", "(", ")", ";", "if", "(", "this", ".", "converters", "==", "null", ")", "{", "this", ...
This method registers the given {@code converter} to this composed converter. @param converter is the converter to add.
[ "This", "method", "registers", "the", "given", "{", "@code", "converter", "}", "to", "this", "composed", "converter", "." ]
train
https://github.com/m-m-m/util/blob/f0e4e084448f8dfc83ca682a9e1618034a094ce6/value/src/main/java/net/sf/mmm/util/value/impl/ComposedValueConverterImpl.java#L71-L78
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionEngineImpl.java
OSGiInjectionEngineImpl.createDefinitionResourceBindingListenerReference
private Reference createDefinitionResourceBindingListenerReference(String refName, String bindingName, String type, ...
java
private Reference createDefinitionResourceBindingListenerReference(String refName, String bindingName, String type, ...
[ "private", "Reference", "createDefinitionResourceBindingListenerReference", "(", "String", "refName", ",", "String", "bindingName", ",", "String", "type", ",", "@", "Sensitive", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "Boolean", "transactio...
Attempt to create an indirect reference for a resource definition from a resource binding provider. @return an indirect reference object based on a binding provider, or null
[ "Attempt", "to", "create", "an", "indirect", "reference", "for", "a", "resource", "definition", "from", "a", "resource", "binding", "provider", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionEngineImpl.java#L550-L563
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview_dnspolicy_binding.java
dnsview_dnspolicy_binding.count_filtered
public static long count_filtered(nitro_service service, String viewname, String filter) throws Exception { """ Use this API to count the filtered set of dnsview_dnspolicy_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP". """ dnsview_dnspolicy_binding obj = new dnsvie...
java
public static long count_filtered(nitro_service service, String viewname, String filter) throws Exception{ dnsview_dnspolicy_binding obj = new dnsview_dnspolicy_binding(); obj.set_viewname(viewname); options option = new options(); option.set_count(true); option.set_filter(filter); dnsview_dnspolicy_binding...
[ "public", "static", "long", "count_filtered", "(", "nitro_service", "service", ",", "String", "viewname", ",", "String", "filter", ")", "throws", "Exception", "{", "dnsview_dnspolicy_binding", "obj", "=", "new", "dnsview_dnspolicy_binding", "(", ")", ";", "obj", "...
Use this API to count the filtered set of dnsview_dnspolicy_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
[ "Use", "this", "API", "to", "count", "the", "filtered", "set", "of", "dnsview_dnspolicy_binding", "resources", ".", "filter", "string", "should", "be", "in", "JSON", "format", ".", "eg", ":", "port", ":", "80", "servicetype", ":", "HTTP", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview_dnspolicy_binding.java#L164-L175
Azure/azure-sdk-for-java
resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java
ResourcesInner.createOrUpdateById
public GenericResourceInner createOrUpdateById(String resourceId, String apiVersion, GenericResourceInner parameters) { """ Create a resource by ID. @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{reso...
java
public GenericResourceInner createOrUpdateById(String resourceId, String apiVersion, GenericResourceInner parameters) { return createOrUpdateByIdWithServiceResponseAsync(resourceId, apiVersion, parameters).toBlocking().last().body(); }
[ "public", "GenericResourceInner", "createOrUpdateById", "(", "String", "resourceId", ",", "String", "apiVersion", ",", "GenericResourceInner", "parameters", ")", "{", "return", "createOrUpdateByIdWithServiceResponseAsync", "(", "resourceId", ",", "apiVersion", ",", "paramet...
Create a resource by ID. @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} @param apiVersion The API version to use for the ope...
[ "Create", "a", "resource", "by", "ID", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java#L2070-L2072
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetToken
public void putPasswordResetToken(final RequestContext requestContext, final String token) { """ Put password reset token. @param requestContext the request context @param token the token """ val flowScope = requestContext.getFlowScope(); flowScope.put(FLOWSCOPE_PARAMETER_NAME_TOKE...
java
public void putPasswordResetToken(final RequestContext requestContext, final String token) { val flowScope = requestContext.getFlowScope(); flowScope.put(FLOWSCOPE_PARAMETER_NAME_TOKEN, token); }
[ "public", "void", "putPasswordResetToken", "(", "final", "RequestContext", "requestContext", ",", "final", "String", "token", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", "put", "(", "FLOWSCOPE_PARAMETE...
Put password reset token. @param requestContext the request context @param token the token
[ "Put", "password", "reset", "token", "." ]
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L35-L38
percolate/caffeine
caffeine/src/main/java/com/percolate/caffeine/ViewUtils.java
ViewUtils.getText
public static String getText(Activity context, int id) { """ Get text as String from EditView. <b>Note:</b> returns "" for null EditText, not a NullPointerException @param context The current Context or Activity that this method is called from. @param id Id for the TextView/EditView to get text from. @r...
java
public static String getText(Activity context, int id) { TextView view = findViewById(context, id); String text = ""; if (view != null) { text = view.getText().toString(); } else { Log.e("Caffeine", "Null view given to getText(). \"\" will be returned."); ...
[ "public", "static", "String", "getText", "(", "Activity", "context", ",", "int", "id", ")", "{", "TextView", "view", "=", "findViewById", "(", "context", ",", "id", ")", ";", "String", "text", "=", "\"\"", ";", "if", "(", "view", "!=", "null", ")", "...
Get text as String from EditView. <b>Note:</b> returns "" for null EditText, not a NullPointerException @param context The current Context or Activity that this method is called from. @param id Id for the TextView/EditView to get text from. @return the text
[ "Get", "text", "as", "String", "from", "EditView", ".", "<b", ">", "Note", ":", "<", "/", "b", ">", "returns", "for", "null", "EditText", "not", "a", "NullPointerException" ]
train
https://github.com/percolate/caffeine/blob/e2265cab474a6397f4d75b1ed928c356a7b9672e/caffeine/src/main/java/com/percolate/caffeine/ViewUtils.java#L112-L122
querydsl/querydsl
querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java
Expressions.booleanTemplate
public static BooleanTemplate booleanTemplate(String template, Object... args) { """ Create a new Template expression @param template template @param args template parameters @return template expression """ return booleanTemplate(createTemplate(template), ImmutableList.copyOf(args)); }
java
public static BooleanTemplate booleanTemplate(String template, Object... args) { return booleanTemplate(createTemplate(template), ImmutableList.copyOf(args)); }
[ "public", "static", "BooleanTemplate", "booleanTemplate", "(", "String", "template", ",", "Object", "...", "args", ")", "{", "return", "booleanTemplate", "(", "createTemplate", "(", "template", ")", ",", "ImmutableList", ".", "copyOf", "(", "args", ")", ")", "...
Create a new Template expression @param template template @param args template parameters @return template expression
[ "Create", "a", "new", "Template", "expression" ]
train
https://github.com/querydsl/querydsl/blob/2bf234caf78549813a1e0f44d9c30ecc5ef734e3/querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java#L960-L962
alkacon/opencms-core
src/org/opencms/main/OpenCmsSolrHandler.java
OpenCmsSolrHandler.getBaseUri
private String getBaseUri(HttpServletRequest req, CmsObject cms) { """ Returns the base URI.<p> @param req the servlet request @param cms the CmsObject @return the base URI """ String baseUri = req.getParameter(PARAM_BASE_URI); if (CmsStringUtil.isEmptyOrWhitespaceOnly(baseUri)) { ...
java
private String getBaseUri(HttpServletRequest req, CmsObject cms) { String baseUri = req.getParameter(PARAM_BASE_URI); if (CmsStringUtil.isEmptyOrWhitespaceOnly(baseUri)) { String referer = req.getHeader(HEADER_REFERER_KEY); CmsSite site = OpenCms.getSiteManager().getSiteForSiteR...
[ "private", "String", "getBaseUri", "(", "HttpServletRequest", "req", ",", "CmsObject", "cms", ")", "{", "String", "baseUri", "=", "req", ".", "getParameter", "(", "PARAM_BASE_URI", ")", ";", "if", "(", "CmsStringUtil", ".", "isEmptyOrWhitespaceOnly", "(", "baseU...
Returns the base URI.<p> @param req the servlet request @param cms the CmsObject @return the base URI
[ "Returns", "the", "base", "URI", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/main/OpenCmsSolrHandler.java#L249-L263
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.findAndRemoveFromGCBuffer
protected synchronized boolean findAndRemoveFromGCBuffer(long expirationTime, int hashcode, int size) { """ Call this method to get and remove the EVT from GC buffer. @return boolean indicate whether it is found from GC buffer. """ EvictionTableEntry evt = null; int i; for (i = 0; i ...
java
protected synchronized boolean findAndRemoveFromGCBuffer(long expirationTime, int hashcode, int size) { EvictionTableEntry evt = null; int i; for (i = 0; i < garbageCollectorBuffer.size(); i++) { evt = (EvictionTableEntry) garbageCollectorBuffer.get(i); if (evt.expiration...
[ "protected", "synchronized", "boolean", "findAndRemoveFromGCBuffer", "(", "long", "expirationTime", ",", "int", "hashcode", ",", "int", "size", ")", "{", "EvictionTableEntry", "evt", "=", "null", ";", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "...
Call this method to get and remove the EVT from GC buffer. @return boolean indicate whether it is found from GC buffer.
[ "Call", "this", "method", "to", "get", "and", "remove", "the", "EVT", "from", "GC", "buffer", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L387-L404
BranchMetrics/android-branch-deep-linking
Branch-SDK/src/io/branch/referral/Branch.java
Branch.userCompletedAction
public void userCompletedAction(@NonNull final String action, JSONObject metadata) { """ <p>A void call to indicate that the user has performed a specific action and for that to be reported to the Branch API, with additional app-defined meta data to go along with that action.</p> @param action A {@link Strin...
java
public void userCompletedAction(@NonNull final String action, JSONObject metadata) { userCompletedAction(action, metadata, null); }
[ "public", "void", "userCompletedAction", "(", "@", "NonNull", "final", "String", "action", ",", "JSONObject", "metadata", ")", "{", "userCompletedAction", "(", "action", ",", "metadata", ",", "null", ")", ";", "}" ]
<p>A void call to indicate that the user has performed a specific action and for that to be reported to the Branch API, with additional app-defined meta data to go along with that action.</p> @param action A {@link String} value to be passed as an action that the user has carried out. For example "registered" or "lo...
[ "<p", ">", "A", "void", "call", "to", "indicate", "that", "the", "user", "has", "performed", "a", "specific", "action", "and", "for", "that", "to", "be", "reported", "to", "the", "Branch", "API", "with", "additional", "app", "-", "defined", "meta", "data...
train
https://github.com/BranchMetrics/android-branch-deep-linking/blob/e3bee2ccfcbf6d4bf1a5815b5b86666e4ff8f848/Branch-SDK/src/io/branch/referral/Branch.java#L2011-L2013
geomajas/geomajas-project-client-gwt
client/src/main/java/org/geomajas/gwt/client/gfx/context/SvgGraphicsContext.java
SvgGraphicsContext.drawText
public void drawText(Object parent, String name, String text, Coordinate position, FontStyle style) { """ Draw a string of text onto the <code>GraphicsContext</code>. @param parent parent group object @param name The text's name. @param text The actual string content. @param position The upper left corne...
java
public void drawText(Object parent, String name, String text, Coordinate position, FontStyle style) { if (isAttached()) { Element element = helper.createOrUpdateElement(parent, name, "text", style); if (text != null) { element.setInnerText(text); } if (position != null) { int fontSize = 12; i...
[ "public", "void", "drawText", "(", "Object", "parent", ",", "String", "name", ",", "String", "text", ",", "Coordinate", "position", ",", "FontStyle", "style", ")", "{", "if", "(", "isAttached", "(", ")", ")", "{", "Element", "element", "=", "helper", "."...
Draw a string of text onto the <code>GraphicsContext</code>. @param parent parent group object @param name The text's name. @param text The actual string content. @param position The upper left corner for the text to originate. @param style The styling object for the text.
[ "Draw", "a", "string", "of", "text", "onto", "the", "<code", ">", "GraphicsContext<", "/", "code", ">", "." ]
train
https://github.com/geomajas/geomajas-project-client-gwt/blob/1c1adc48deb192ed825265eebcc74d70bbf45670/client/src/main/java/org/geomajas/gwt/client/gfx/context/SvgGraphicsContext.java#L493-L509
landawn/AbacusUtil
src/com/landawn/abacus/util/JdbcUtil.java
JdbcUtil.importData
@SuppressWarnings("rawtypes") public static int importData(final DataSet dataset, final int offset, final int count, final PreparedStatement stmt, final Map<String, ? extends Type> columnTypeMap) throws UncheckedSQLException { """ Imports the data from <code>DataSet</code> to database. @param ...
java
@SuppressWarnings("rawtypes") public static int importData(final DataSet dataset, final int offset, final int count, final PreparedStatement stmt, final Map<String, ? extends Type> columnTypeMap) throws UncheckedSQLException { return importData(dataset, offset, count, stmt, 200, 0, columnType...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "static", "int", "importData", "(", "final", "DataSet", "dataset", ",", "final", "int", "offset", ",", "final", "int", "count", ",", "final", "PreparedStatement", "stmt", ",", "final", "Map", "<", ...
Imports the data from <code>DataSet</code> to database. @param dataset @param offset @param count @param stmt the column order in the sql must be consistent with the column order in the DataSet. @param columnTypeMap @return @throws UncheckedSQLException
[ "Imports", "the", "data", "from", "<code", ">", "DataSet<", "/", "code", ">", "to", "database", "." ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/JdbcUtil.java#L2277-L2281
sarl/sarl
main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/SREutils.java
SREutils.setSreSpecificData
public static <S> S setSreSpecificData(SRESpecificDataContainer container, S data, Class<S> type) { """ Change the data associated to the given container by the SRE. @param <S> the type of the data. @param type the type of the data. @param container the container. @param data the SRE-specific data. @return ...
java
public static <S> S setSreSpecificData(SRESpecificDataContainer container, S data, Class<S> type) { assert container != null; final S oldData = container.$getSreSpecificData(type); container.$setSreSpecificData(data); return oldData; }
[ "public", "static", "<", "S", ">", "S", "setSreSpecificData", "(", "SRESpecificDataContainer", "container", ",", "S", "data", ",", "Class", "<", "S", ">", "type", ")", "{", "assert", "container", "!=", "null", ";", "final", "S", "oldData", "=", "container"...
Change the data associated to the given container by the SRE. @param <S> the type of the data. @param type the type of the data. @param container the container. @param data the SRE-specific data. @return the SRE-specific data that was associated to the container before associating data to it. @since 0.6
[ "Change", "the", "data", "associated", "to", "the", "given", "container", "by", "the", "SRE", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/SREutils.java#L94-L99
Netflix/servo
servo-graphite/src/main/java/com/netflix/servo/publish/graphite/GraphiteMetricObserver.java
GraphiteMetricObserver.checkNoReturnedData
private void checkNoReturnedData(Socket socket) throws IOException { """ the graphite protocol is a "one-way" streaming protocol and as such there is no easy way to check that we are sending the output to the wrong place. We can aim the graphite writer at any listening socket and it will never care if the data i...
java
private void checkNoReturnedData(Socket socket) throws IOException { BufferedInputStream reader = new BufferedInputStream(socket.getInputStream()); if (reader.available() > 0) { byte[] buffer = new byte[1000]; int toRead = Math.min(reader.available(), 1000); int read = reader.read(buffer, 0, ...
[ "private", "void", "checkNoReturnedData", "(", "Socket", "socket", ")", "throws", "IOException", "{", "BufferedInputStream", "reader", "=", "new", "BufferedInputStream", "(", "socket", ".", "getInputStream", "(", ")", ")", ";", "if", "(", "reader", ".", "availab...
the graphite protocol is a "one-way" streaming protocol and as such there is no easy way to check that we are sending the output to the wrong place. We can aim the graphite writer at any listening socket and it will never care if the data is being correctly handled. By logging any returned bytes we can help make it obv...
[ "the", "graphite", "protocol", "is", "a", "one", "-", "way", "streaming", "protocol", "and", "as", "such", "there", "is", "no", "easy", "way", "to", "check", "that", "we", "are", "sending", "the", "output", "to", "the", "wrong", "place", ".", "We", "ca...
train
https://github.com/Netflix/servo/blob/d67b5afce8c50bd9e9e31c288dbf4b78fb2ac815/servo-graphite/src/main/java/com/netflix/servo/publish/graphite/GraphiteMetricObserver.java#L167-L182
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java
lbmetrictable_metric_binding.count_filtered
public static long count_filtered(nitro_service service, String metrictable, String filter) throws Exception { """ Use this API to count the filtered set of lbmetrictable_metric_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP". """ lbmetrictable_metric_binding obj = n...
java
public static long count_filtered(nitro_service service, String metrictable, String filter) throws Exception{ lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding(); obj.set_metrictable(metrictable); options option = new options(); option.set_count(true); option.set_filter(filter); lbmetricta...
[ "public", "static", "long", "count_filtered", "(", "nitro_service", "service", ",", "String", "metrictable", ",", "String", "filter", ")", "throws", "Exception", "{", "lbmetrictable_metric_binding", "obj", "=", "new", "lbmetrictable_metric_binding", "(", ")", ";", "...
Use this API to count the filtered set of lbmetrictable_metric_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
[ "Use", "this", "API", "to", "count", "the", "filtered", "set", "of", "lbmetrictable_metric_binding", "resources", ".", "filter", "string", "should", "be", "in", "JSON", "format", ".", "eg", ":", "port", ":", "80", "servicetype", ":", "HTTP", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java#L237-L248
apache/flink
flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoFieldUtils.java
PojoFieldUtils.writeField
static void writeField(DataOutputView out, Field field) throws IOException { """ Writes a field to the given {@link DataOutputView}. <p>This write method avoids Java serialization, by writing only the classname of the field's declaring class and the field name. The written field can be read using {@link #readF...
java
static void writeField(DataOutputView out, Field field) throws IOException { Class<?> declaringClass = field.getDeclaringClass(); out.writeUTF(declaringClass.getName()); out.writeUTF(field.getName()); }
[ "static", "void", "writeField", "(", "DataOutputView", "out", ",", "Field", "field", ")", "throws", "IOException", "{", "Class", "<", "?", ">", "declaringClass", "=", "field", ".", "getDeclaringClass", "(", ")", ";", "out", ".", "writeUTF", "(", "declaringCl...
Writes a field to the given {@link DataOutputView}. <p>This write method avoids Java serialization, by writing only the classname of the field's declaring class and the field name. The written field can be read using {@link #readField(DataInputView, ClassLoader)}. @param out the output view to write to. @param field ...
[ "Writes", "a", "field", "to", "the", "given", "{", "@link", "DataOutputView", "}", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoFieldUtils.java#L45-L49
oboehm/jfachwert
src/main/java/de/jfachwert/pruefung/LengthValidator.java
LengthValidator.validate
public static String validate(String value, int expected) { """ Validiert die Laenge des uebergebenen Wertes. @param value zu pruefender Wert @param expected erwartete Laenge @return der gepruefte Wert (zur evtl. Weiterverarbeitung) """ if (value.length() != expected) { throw new Inval...
java
public static String validate(String value, int expected) { if (value.length() != expected) { throw new InvalidLengthException(value, expected); } return value; }
[ "public", "static", "String", "validate", "(", "String", "value", ",", "int", "expected", ")", "{", "if", "(", "value", ".", "length", "(", ")", "!=", "expected", ")", "{", "throw", "new", "InvalidLengthException", "(", "value", ",", "expected", ")", ";"...
Validiert die Laenge des uebergebenen Wertes. @param value zu pruefender Wert @param expected erwartete Laenge @return der gepruefte Wert (zur evtl. Weiterverarbeitung)
[ "Validiert", "die", "Laenge", "des", "uebergebenen", "Wertes", "." ]
train
https://github.com/oboehm/jfachwert/blob/67b513d29e3114c7aee65cd1ea7a5b7e540b0d1b/src/main/java/de/jfachwert/pruefung/LengthValidator.java#L91-L96
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/compiler/XPathParser.java
XPathParser.appendOp
void appendOp(int length, int op) { """ Insert room for operation. This WILL set the length value of the operation, and will update the length value for the total expression. @param length The length of the operation. @param op The op code to the inserted. """ int totalLen = m_ops.getOp(OpMap.MAPIN...
java
void appendOp(int length, int op) { int totalLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH); m_ops.setOp(totalLen, op); m_ops.setOp(totalLen + OpMap.MAPINDEX_LENGTH, length); m_ops.setOp(OpMap.MAPINDEX_LENGTH, totalLen + length); }
[ "void", "appendOp", "(", "int", "length", ",", "int", "op", ")", "{", "int", "totalLen", "=", "m_ops", ".", "getOp", "(", "OpMap", ".", "MAPINDEX_LENGTH", ")", ";", "m_ops", ".", "setOp", "(", "totalLen", ",", "op", ")", ";", "m_ops", ".", "setOp", ...
Insert room for operation. This WILL set the length value of the operation, and will update the length value for the total expression. @param length The length of the operation. @param op The op code to the inserted.
[ "Insert", "room", "for", "operation", ".", "This", "WILL", "set", "the", "length", "value", "of", "the", "operation", "and", "will", "update", "the", "length", "value", "for", "the", "total", "expression", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/compiler/XPathParser.java#L768-L776
lucee/Lucee
core/src/main/java/lucee/runtime/op/Caster.java
Caster.toDouble
public static Double toDouble(Object o, Double defaultValue) { """ cast a Object to a Double Object (reference Type) @param o Object to cast @param defaultValue @return casted Double Object """ if (o instanceof Double) return (Double) o; double dbl = toDoubleValue(o, true, Double.NaN); if (Double.isNaN...
java
public static Double toDouble(Object o, Double defaultValue) { if (o instanceof Double) return (Double) o; double dbl = toDoubleValue(o, true, Double.NaN); if (Double.isNaN(dbl)) return defaultValue; return new Double(dbl); }
[ "public", "static", "Double", "toDouble", "(", "Object", "o", ",", "Double", "defaultValue", ")", "{", "if", "(", "o", "instanceof", "Double", ")", "return", "(", "Double", ")", "o", ";", "double", "dbl", "=", "toDoubleValue", "(", "o", ",", "true", ",...
cast a Object to a Double Object (reference Type) @param o Object to cast @param defaultValue @return casted Double Object
[ "cast", "a", "Object", "to", "a", "Double", "Object", "(", "reference", "Type", ")" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/op/Caster.java#L349-L355
hdbeukel/james-extensions
src/main/java/org/jamesframework/ext/analysis/AnalysisResults.java
AnalysisResults.registerSearchRun
public void registerSearchRun(String problemID, String searchID, SearchRunResults<SolutionType> run) { """ Register results of a search run, specifying the IDs of the problem being solved and the applied search. If no runs have been registered before for this combination of problem and search, new entries are cre...
java
public void registerSearchRun(String problemID, String searchID, SearchRunResults<SolutionType> run){ if(!results.containsKey(problemID)){ results.put(problemID, new HashMap<>()); } if(!results.get(problemID).containsKey(searchID)){ results.get(problemID).put(searchID, ne...
[ "public", "void", "registerSearchRun", "(", "String", "problemID", ",", "String", "searchID", ",", "SearchRunResults", "<", "SolutionType", ">", "run", ")", "{", "if", "(", "!", "results", ".", "containsKey", "(", "problemID", ")", ")", "{", "results", ".", ...
Register results of a search run, specifying the IDs of the problem being solved and the applied search. If no runs have been registered before for this combination of problem and search, new entries are created. Else, this run is appended to the existing runs. @param problemID ID of the problem being solved @param se...
[ "Register", "results", "of", "a", "search", "run", "specifying", "the", "IDs", "of", "the", "problem", "being", "solved", "and", "the", "applied", "search", ".", "If", "no", "runs", "have", "been", "registered", "before", "for", "this", "combination", "of", ...
train
https://github.com/hdbeukel/james-extensions/blob/37a43aa6ac4d67575cabc7aed25fd96c91d4c7b2/src/main/java/org/jamesframework/ext/analysis/AnalysisResults.java#L82-L90
osglworks/java-mvc
src/main/java/org/osgl/mvc/result/ServiceUnavailable.java
ServiceUnavailable.of
public static ServiceUnavailable of(int errorCode) { """ Returns a static ServiceUnavailable instance and set the {@link #payload} thread local with error code and default message. When calling the instance on {@link #getMessage()} method, it will return whatever stored in the {@link #payload} thread local ...
java
public static ServiceUnavailable of(int errorCode) { if (_localizedErrorMsg()) { return of(errorCode, defaultMessage(SERVICE_UNAVAILABLE)); } else { touchPayload().errorCode(errorCode); return _INSTANCE; } }
[ "public", "static", "ServiceUnavailable", "of", "(", "int", "errorCode", ")", "{", "if", "(", "_localizedErrorMsg", "(", ")", ")", "{", "return", "of", "(", "errorCode", ",", "defaultMessage", "(", "SERVICE_UNAVAILABLE", ")", ")", ";", "}", "else", "{", "t...
Returns a static ServiceUnavailable instance and set the {@link #payload} thread local with error code and default message. When calling the instance on {@link #getMessage()} method, it will return whatever stored in the {@link #payload} thread local @param errorCode the app defined error code @return a static Servic...
[ "Returns", "a", "static", "ServiceUnavailable", "instance", "and", "set", "the", "{", "@link", "#payload", "}", "thread", "local", "with", "error", "code", "and", "default", "message", "." ]
train
https://github.com/osglworks/java-mvc/blob/4d2b2ec40498ac6ee7040c0424377cbeacab124b/src/main/java/org/osgl/mvc/result/ServiceUnavailable.java#L155-L162
thelinmichael/spotify-web-api-java
src/main/java/com/wrapper/spotify/SpotifyApi.java
SpotifyApi.searchItem
public SearchItemRequest.Builder searchItem(String q, String type) { """ Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string. @param q The search query's keywords (and optional field filters and operators). @param type A comma-separated list of item types t...
java
public SearchItemRequest.Builder searchItem(String q, String type) { return new SearchItemRequest.Builder(accessToken) .setDefaults(httpManager, scheme, host, port) .q(q) .type(type); }
[ "public", "SearchItemRequest", ".", "Builder", "searchItem", "(", "String", "q", ",", "String", "type", ")", "{", "return", "new", "SearchItemRequest", ".", "Builder", "(", "accessToken", ")", ".", "setDefaults", "(", "httpManager", ",", "scheme", ",", "host",...
Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string. @param q The search query's keywords (and optional field filters and operators). @param type A comma-separated list of item types to search across. Valid types are: album, artist, playlist, and track. @return A {...
[ "Get", "Spotify", "catalog", "information", "about", "artists", "albums", "tracks", "or", "playlists", "that", "match", "a", "keyword", "string", "." ]
train
https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1476-L1481
fuinorg/utils4swing
src/main/java/org/fuin/utils4swing/dialogs/DirectorySelector.java
DirectorySelector.selectDirectory
public static Result selectDirectory(final String title, final String directory) throws CanceledException { """ Blocks the current thread and waits for the result of the selection dialog. WARNING: Don't use this inside the Event Dispatching Thread (EDT)! This is only for usage outside the UI thread. The chec...
java
public static Result selectDirectory(final String title, final String directory) throws CanceledException { return selectDirectory(title, directory, false); }
[ "public", "static", "Result", "selectDirectory", "(", "final", "String", "title", ",", "final", "String", "directory", ")", "throws", "CanceledException", "{", "return", "selectDirectory", "(", "title", ",", "directory", ",", "false", ")", ";", "}" ]
Blocks the current thread and waits for the result of the selection dialog. WARNING: Don't use this inside the Event Dispatching Thread (EDT)! This is only for usage outside the UI thread. The checkbox "include subdirectories" is not visible. @param title Title to display for the dialog. @param directory Initial direc...
[ "Blocks", "the", "current", "thread", "and", "waits", "for", "the", "result", "of", "the", "selection", "dialog", ".", "WARNING", ":", "Don", "t", "use", "this", "inside", "the", "Event", "Dispatching", "Thread", "(", "EDT", ")", "!", "This", "is", "only...
train
https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/dialogs/DirectorySelector.java#L210-L213
ArcBees/gwtquery
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java
Effects.fadeTo
public Effects fadeTo(double opacity, Function... f) { """ Fade the opacity of all matched elements to a specified opacity and firing an optional callback after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width...
java
public Effects fadeTo(double opacity, Function... f) { return fadeTo(Speed.DEFAULT, opacity, f); }
[ "public", "Effects", "fadeTo", "(", "double", "opacity", ",", "Function", "...", "f", ")", "{", "return", "fadeTo", "(", "Speed", ".", "DEFAULT", ",", "opacity", ",", "f", ")", ";", "}" ]
Fade the opacity of all matched elements to a specified opacity and firing an optional callback after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.
[ "Fade", "the", "opacity", "of", "all", "matched", "elements", "to", "a", "specified", "opacity", "and", "firing", "an", "optional", "callback", "after", "completion", ".", "Only", "the", "opacity", "is", "adjusted", "for", "this", "animation", "meaning", "that...
train
https://github.com/ArcBees/gwtquery/blob/93e02bc8eb030081061c56134ebee1f585981107/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java#L495-L497
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerDnsAliasesInner.java
ServerDnsAliasesInner.beginCreateOrUpdateAsync
public Observable<ServerDnsAliasInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String dnsAliasName) { """ Creates a server dns alias. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or...
java
public Observable<ServerDnsAliasInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String dnsAliasName) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, dnsAliasName).map(new Func1<ServiceResponse<ServerDnsAliasInner>, ServerDnsAliasInner>() { ...
[ "public", "Observable", "<", "ServerDnsAliasInner", ">", "beginCreateOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "dnsAliasName", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", "(", "resourceGroupName", ...
Creates a server dns alias. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server that the alias is pointing to. @param dnsAliasName The name of the server DNS alias. @thr...
[ "Creates", "a", "server", "dns", "alias", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerDnsAliasesInner.java#L310-L317
telly/groundy
library/src/main/java/com/telly/groundy/Groundy.java
Groundy.arg
public Groundy arg(String key, CharSequence[] value) { """ Inserts a CharSequence array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null. @param key a String, or null @param value a CharSequence array object, or null """ mArgs.putC...
java
public Groundy arg(String key, CharSequence[] value) { mArgs.putCharSequenceArray(key, value); return this; }
[ "public", "Groundy", "arg", "(", "String", "key", ",", "CharSequence", "[", "]", "value", ")", "{", "mArgs", ".", "putCharSequenceArray", "(", "key", ",", "value", ")", ";", "return", "this", ";", "}" ]
Inserts a CharSequence array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null. @param key a String, or null @param value a CharSequence array object, or null
[ "Inserts", "a", "CharSequence", "array", "value", "into", "the", "mapping", "of", "this", "Bundle", "replacing", "any", "existing", "value", "for", "the", "given", "key", ".", "Either", "key", "or", "value", "may", "be", "null", "." ]
train
https://github.com/telly/groundy/blob/e90baf9901a8be20b348bd1575d5ad782560cec8/library/src/main/java/com/telly/groundy/Groundy.java#L717-L720
bitcoinj/bitcoinj
core/src/main/java/org/bitcoinj/crypto/DeterministicHierarchy.java
DeterministicHierarchy.deriveNextChild
public DeterministicKey deriveNextChild(ImmutableList<ChildNumber> parentPath, boolean relative, boolean createParent, boolean privateDerivation) { """ Extends the tree by calculating the next key that hangs off the given parent path. For example, if you pass a path of 1/2 here and there are already keys 1/2/1 an...
java
public DeterministicKey deriveNextChild(ImmutableList<ChildNumber> parentPath, boolean relative, boolean createParent, boolean privateDerivation) { DeterministicKey parent = get(parentPath, relative, createParent); int nAttempts = 0; while (nAttempts++ < HDKeyDerivation.MAX_CHILD_DERIVATION_ATTE...
[ "public", "DeterministicKey", "deriveNextChild", "(", "ImmutableList", "<", "ChildNumber", ">", "parentPath", ",", "boolean", "relative", ",", "boolean", "createParent", ",", "boolean", "privateDerivation", ")", "{", "DeterministicKey", "parent", "=", "get", "(", "p...
Extends the tree by calculating the next key that hangs off the given parent path. For example, if you pass a path of 1/2 here and there are already keys 1/2/1 and 1/2/2 then it will derive 1/2/3. @param parentPath the path to the parent @param relative whether the path is relative to the root path @param createParent...
[ "Extends", "the", "tree", "by", "calculating", "the", "next", "key", "that", "hangs", "off", "the", "given", "parent", "path", ".", "For", "example", "if", "you", "pass", "a", "path", "of", "1", "/", "2", "here", "and", "there", "are", "already", "keys...
train
https://github.com/bitcoinj/bitcoinj/blob/9cf13d29315014ed59cf4fc5944e5f227e8df9a6/core/src/main/java/org/bitcoinj/crypto/DeterministicHierarchy.java#L109-L119
liferay/com-liferay-commerce
commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDefinitionSpecificationOptionValuePersistenceImpl.java
CPDefinitionSpecificationOptionValuePersistenceImpl.findAll
@Override public List<CPDefinitionSpecificationOptionValue> findAll(int start, int end) { """ Returns a range of all the cp definition specification option values. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not prima...
java
@Override public List<CPDefinitionSpecificationOptionValue> findAll(int start, int end) { return findAll(start, end, null); }
[ "@", "Override", "public", "List", "<", "CPDefinitionSpecificationOptionValue", ">", "findAll", "(", "int", "start", ",", "int", "end", ")", "{", "return", "findAll", "(", "start", ",", "end", ",", "null", ")", ";", "}" ]
Returns a range of all the cp definition specification option values. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set...
[ "Returns", "a", "range", "of", "all", "the", "cp", "definition", "specification", "option", "values", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDefinitionSpecificationOptionValuePersistenceImpl.java#L5869-L5872
vakinge/jeesuite-libs
jeesuite-common/src/main/java/com/jeesuite/common/packagescan/InternalScanner.java
InternalScanner.findInPackage
List<String> findInPackage(Test test, String packageName) { """ Scans for classes starting at the package provided and descending into subpackages. Each class is offered up to the Test as it is discovered, and if the Test returns true the class is retained. @param test an instance of {@link Test} that ...
java
List<String> findInPackage(Test test, String packageName) { List<String> localClsssOrPkgs = new ArrayList<String>(); packageName = packageName.replace('.', '/'); Enumeration<URL> urls; try { urls = classloader.getResources(packageName); // test for empty ...
[ "List", "<", "String", ">", "findInPackage", "(", "Test", "test", ",", "String", "packageName", ")", "{", "List", "<", "String", ">", "localClsssOrPkgs", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "packageName", "=", "packageName", ".", ...
Scans for classes starting at the package provided and descending into subpackages. Each class is offered up to the Test as it is discovered, and if the Test returns true the class is retained. @param test an instance of {@link Test} that will be used to filter classes @param packageName the name of the package...
[ "Scans", "for", "classes", "starting", "at", "the", "package", "provided", "and", "descending", "into", "subpackages", ".", "Each", "class", "is", "offered", "up", "to", "the", "Test", "as", "it", "is", "discovered", "and", "if", "the", "Test", "returns", ...
train
https://github.com/vakinge/jeesuite-libs/blob/c48fe2c7fbd294892cf4030dbec96e744dd3e386/jeesuite-common/src/main/java/com/jeesuite/common/packagescan/InternalScanner.java#L63-L83
Wolfgang-Schuetzelhofer/jcypher
src/main/java/iot/jcypher/domainquery/QueryPersistor.java
QueryPersistor.augment
public QueryPersistor augment(DomainObjectMatch<?> domainObjectMatch, String as) { """ Give a name to a DomainObjectMatch for better readability in a Java-DSL like string representation @param domainObjectMatch @param as @return """ if (this.augmentations == null) this.augmentations = new HashMap<Domai...
java
public QueryPersistor augment(DomainObjectMatch<?> domainObjectMatch, String as) { if (this.augmentations == null) this.augmentations = new HashMap<DomainObjectMatch<?>, String>(); this.augmentations.put(domainObjectMatch, as); return this; }
[ "public", "QueryPersistor", "augment", "(", "DomainObjectMatch", "<", "?", ">", "domainObjectMatch", ",", "String", "as", ")", "{", "if", "(", "this", ".", "augmentations", "==", "null", ")", "this", ".", "augmentations", "=", "new", "HashMap", "<", "DomainO...
Give a name to a DomainObjectMatch for better readability in a Java-DSL like string representation @param domainObjectMatch @param as @return
[ "Give", "a", "name", "to", "a", "DomainObjectMatch", "for", "better", "readability", "in", "a", "Java", "-", "DSL", "like", "string", "representation" ]
train
https://github.com/Wolfgang-Schuetzelhofer/jcypher/blob/0f36914b4d6993a004cc235bb18dd3e02a59d253/src/main/java/iot/jcypher/domainquery/QueryPersistor.java#L118-L123
tipsy/javalin
src/main/java/io/javalin/apibuilder/ApiBuilder.java
ApiBuilder.ws
public static void ws(@NotNull String path, @NotNull Consumer<WsHandler> ws) { """ Adds a WebSocket handler on the specified path. The method can only be called inside a {@link Javalin#routes(EndpointGroup)}. @see <a href="https://javalin.io/documentation#websockets">WebSockets in docs</a> """ stat...
java
public static void ws(@NotNull String path, @NotNull Consumer<WsHandler> ws) { staticInstance().ws(prefixPath(path), ws); }
[ "public", "static", "void", "ws", "(", "@", "NotNull", "String", "path", ",", "@", "NotNull", "Consumer", "<", "WsHandler", ">", "ws", ")", "{", "staticInstance", "(", ")", ".", "ws", "(", "prefixPath", "(", "path", ")", ",", "ws", ")", ";", "}" ]
Adds a WebSocket handler on the specified path. The method can only be called inside a {@link Javalin#routes(EndpointGroup)}. @see <a href="https://javalin.io/documentation#websockets">WebSockets in docs</a>
[ "Adds", "a", "WebSocket", "handler", "on", "the", "specified", "path", ".", "The", "method", "can", "only", "be", "called", "inside", "a", "{", "@link", "Javalin#routes", "(", "EndpointGroup", ")", "}", "." ]
train
https://github.com/tipsy/javalin/blob/68b2f7592f237db1c2b597e645697eb75fdaee53/src/main/java/io/javalin/apibuilder/ApiBuilder.java#L374-L376
biojava/biojava
biojava-structure/src/main/java/org/biojava/nbio/structure/cluster/SubunitExtractor.java
SubunitExtractor.extractSubunits
public static List<Subunit> extractSubunits(Structure structure, int absMinLen, double fraction, int minLen) { """ Extract the information of each protein Chain in a Structure and converts them into a List of Subunit. The name of the Subunits is set to {@link Chain#getId()}. @param structure Structure o...
java
public static List<Subunit> extractSubunits(Structure structure, int absMinLen, double fraction, int minLen) { // The extracted subunit container List<Subunit> subunits = new ArrayList<Subunit>(); for (Chain c : structure.getPolyChains()) { // Only take protein chains if (c.isProtein()) { Atom[] ca...
[ "public", "static", "List", "<", "Subunit", ">", "extractSubunits", "(", "Structure", "structure", ",", "int", "absMinLen", ",", "double", "fraction", ",", "int", "minLen", ")", "{", "// The extracted subunit container", "List", "<", "Subunit", ">", "subunits", ...
Extract the information of each protein Chain in a Structure and converts them into a List of Subunit. The name of the Subunits is set to {@link Chain#getId()}. @param structure Structure object with protein Chains @param absMinLen {@link SubunitClustererParameters#getAbsoluteMinimumSequenceLength()} @param fraction ...
[ "Extract", "the", "information", "of", "each", "protein", "Chain", "in", "a", "Structure", "and", "converts", "them", "into", "a", "List", "of", "Subunit", ".", "The", "name", "of", "the", "Subunits", "is", "set", "to", "{", "@link", "Chain#getId", "()", ...
train
https://github.com/biojava/biojava/blob/a1c71a8e3d40cc32104b1d387a3d3b560b43356e/biojava-structure/src/main/java/org/biojava/nbio/structure/cluster/SubunitExtractor.java#L65-L94
greese/dasein-persist
src/main/java/org/dasein/persist/PersistentFactory.java
PersistentFactory.addCounter
public void addCounter(String field, Class<? extends Execution> cls) { """ Adds a query for counts on a specified field. @param field the field to count matches on @param cls the class of the query that performs the count """ counters.put(field, cls); }
java
public void addCounter(String field, Class<? extends Execution> cls) { counters.put(field, cls); }
[ "public", "void", "addCounter", "(", "String", "field", ",", "Class", "<", "?", "extends", "Execution", ">", "cls", ")", "{", "counters", ".", "put", "(", "field", ",", "cls", ")", ";", "}" ]
Adds a query for counts on a specified field. @param field the field to count matches on @param cls the class of the query that performs the count
[ "Adds", "a", "query", "for", "counts", "on", "a", "specified", "field", "." ]
train
https://github.com/greese/dasein-persist/blob/1104621ad1670a45488b093b984ec1db4c7be781/src/main/java/org/dasein/persist/PersistentFactory.java#L298-L300
google/closure-templates
java/src/com/google/template/soy/sharedpasses/render/RenderVisitor.java
RenderVisitor.renderTemplate
private void renderTemplate(TemplateNode template, Predicate<String> paramsToTypeCheck) { """ A private helper to render templates with optimized type checking. """ env = Environment.create(template, data, ijData); checkStrictParamTypes(template, paramsToTypeCheck); visitChildren(template); env...
java
private void renderTemplate(TemplateNode template, Predicate<String> paramsToTypeCheck) { env = Environment.create(template, data, ijData); checkStrictParamTypes(template, paramsToTypeCheck); visitChildren(template); env = null; // unpin for gc }
[ "private", "void", "renderTemplate", "(", "TemplateNode", "template", ",", "Predicate", "<", "String", ">", "paramsToTypeCheck", ")", "{", "env", "=", "Environment", ".", "create", "(", "template", ",", "data", ",", "ijData", ")", ";", "checkStrictParamTypes", ...
A private helper to render templates with optimized type checking.
[ "A", "private", "helper", "to", "render", "templates", "with", "optimized", "type", "checking", "." ]
train
https://github.com/google/closure-templates/blob/cc61e1dff70ae97f24f417a57410081bc498bd56/java/src/com/google/template/soy/sharedpasses/render/RenderVisitor.java#L264-L269
Wadpam/guja
guja-core/src/main/java/com/wadpam/guja/oauth2/dao/GeneratedDUserDaoImpl.java
GeneratedDUserDaoImpl.findByUsername
public DUser findByUsername(java.lang.String username) { """ find-by method for unique field username @param username the unique attribute @return the unique DUser for the specified username """ return queryUniqueByField(null, DUserMapper.Field.USERNAME.getFieldName(), username); }
java
public DUser findByUsername(java.lang.String username) { return queryUniqueByField(null, DUserMapper.Field.USERNAME.getFieldName(), username); }
[ "public", "DUser", "findByUsername", "(", "java", ".", "lang", ".", "String", "username", ")", "{", "return", "queryUniqueByField", "(", "null", ",", "DUserMapper", ".", "Field", ".", "USERNAME", ".", "getFieldName", "(", ")", ",", "username", ")", ";", "}...
find-by method for unique field username @param username the unique attribute @return the unique DUser for the specified username
[ "find", "-", "by", "method", "for", "unique", "field", "username" ]
train
https://github.com/Wadpam/guja/blob/eb8ba8e6794a96ea0dd9744cada4f9ad9618f114/guja-core/src/main/java/com/wadpam/guja/oauth2/dao/GeneratedDUserDaoImpl.java#L277-L279
gosu-lang/gosu-lang
gosu-core-api/src/main/java/gw/util/GosuStringUtil.java
GosuStringUtil.defaultString
public static String defaultString(String str, String defaultStr) { """ <p>Returns either the passed in String, or if the String is <code>null</code>, the value of <code>defaultStr</code>.</p> <pre> GosuStringUtil.defaultString(null, "NULL") = "NULL" GosuStringUtil.defaultString("", "NULL") = "" GosuStr...
java
public static String defaultString(String str, String defaultStr) { return str == null ? defaultStr : str; }
[ "public", "static", "String", "defaultString", "(", "String", "str", ",", "String", "defaultStr", ")", "{", "return", "str", "==", "null", "?", "defaultStr", ":", "str", ";", "}" ]
<p>Returns either the passed in String, or if the String is <code>null</code>, the value of <code>defaultStr</code>.</p> <pre> GosuStringUtil.defaultString(null, "NULL") = "NULL" GosuStringUtil.defaultString("", "NULL") = "" GosuStringUtil.defaultString("bat", "NULL") = "bat" </pre> @see String#valueOf(Object) @p...
[ "<p", ">", "Returns", "either", "the", "passed", "in", "String", "or", "if", "the", "String", "is", "<code", ">", "null<", "/", "code", ">", "the", "value", "of", "<code", ">", "defaultStr<", "/", "code", ">", ".", "<", "/", "p", ">" ]
train
https://github.com/gosu-lang/gosu-lang/blob/d6e9261b137ce66fef3726cabe7826d4a1f946b7/gosu-core-api/src/main/java/gw/util/GosuStringUtil.java#L5238-L5240
kaazing/gateway
mina.core/core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
SslHandler.messageReceived
public void messageReceived(NextFilter nextFilter, ByteBuffer buf) throws SSLException { """ Call when data read from net. Will perform inial hanshake or decrypt provided Buffer. Decrytpted data reurned by getAppBuffer(), if any. @param buf buffer to decrypt @param nextFilter Next filter in chain @th...
java
public void messageReceived(NextFilter nextFilter, ByteBuffer buf) throws SSLException { // append buf to inNetBuffer if (inNetBuffer == null) { inNetBuffer = IoBuffer.allocate(buf.remaining()).setAutoExpand(true); } inNetBuffer.put(buf); if (!handshakeComplete) { ...
[ "public", "void", "messageReceived", "(", "NextFilter", "nextFilter", ",", "ByteBuffer", "buf", ")", "throws", "SSLException", "{", "// append buf to inNetBuffer", "if", "(", "inNetBuffer", "==", "null", ")", "{", "inNetBuffer", "=", "IoBuffer", ".", "allocate", "...
Call when data read from net. Will perform inial hanshake or decrypt provided Buffer. Decrytpted data reurned by getAppBuffer(), if any. @param buf buffer to decrypt @param nextFilter Next filter in chain @throws SSLException on errors
[ "Call", "when", "data", "read", "from", "net", ".", "Will", "perform", "inial", "hanshake", "or", "decrypt", "provided", "Buffer", ".", "Decrytpted", "data", "reurned", "by", "getAppBuffer", "()", "if", "any", "." ]
train
https://github.com/kaazing/gateway/blob/06017b19273109b3b992e528e702586446168d57/mina.core/core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java#L287-L306
carewebframework/carewebframework-core
org.carewebframework.ui-parent/org.carewebframework.ui.core/src/main/java/org/carewebframework/ui/dialog/InputDialog.java
InputDialog.show
public static void show(Map<String, Object> args, IInputCallback callback) { """ Prompt user for input. @param args The argument map. @param callback The callback to receive the text input. If the dialog was cancelled, the text input will be returned as null. """ Window dialog = (Window) PageUtil ...
java
public static void show(Map<String, Object> args, IInputCallback callback) { Window dialog = (Window) PageUtil .createPage(DialogConstants.RESOURCE_PREFIX + "inputDialog.fsp", ExecutionContext.getPage(), args).get(0); dialog.modal(callback == null ? null : (event) -> { callb...
[ "public", "static", "void", "show", "(", "Map", "<", "String", ",", "Object", ">", "args", ",", "IInputCallback", "callback", ")", "{", "Window", "dialog", "=", "(", "Window", ")", "PageUtil", ".", "createPage", "(", "DialogConstants", ".", "RESOURCE_PREFIX"...
Prompt user for input. @param args The argument map. @param callback The callback to receive the text input. If the dialog was cancelled, the text input will be returned as null.
[ "Prompt", "user", "for", "input", "." ]
train
https://github.com/carewebframework/carewebframework-core/blob/fa3252d4f7541dbe151b92c3d4f6f91433cd1673/org.carewebframework.ui-parent/org.carewebframework.ui.core/src/main/java/org/carewebframework/ui/dialog/InputDialog.java#L63-L69
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/field/event/CheckForTheHandler.java
CheckForTheHandler.doSetData
public int doSetData(Object objData, boolean bDisplayOption, int moveMode) { """ Move the physical binary data to this field. @param objData the raw data to set the basefield to. @param bDisplayOption If true, display the change. @param iMoveMode The type of move being done (init/read/screen). @return The erro...
java
public int doSetData(Object objData, boolean bDisplayOption, int moveMode) { if (objData instanceof String) if (((String)objData).length() > 3) if (((String)objData).substring(0, 4).equalsIgnoreCase("THE ")) { objData = ((String)objData).substring(4); } return...
[ "public", "int", "doSetData", "(", "Object", "objData", ",", "boolean", "bDisplayOption", ",", "int", "moveMode", ")", "{", "if", "(", "objData", "instanceof", "String", ")", "if", "(", "(", "(", "String", ")", "objData", ")", ".", "length", "(", ")", ...
Move the physical binary data to this field. @param objData the raw data to set the basefield to. @param bDisplayOption If true, display the change. @param iMoveMode The type of move being done (init/read/screen). @return The error code (or NORMAL_RETURN if okay).
[ "Move", "the", "physical", "binary", "data", "to", "this", "field", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/event/CheckForTheHandler.java#L57-L65
lessthanoptimal/BoofCV
main/boofcv-geo/src/main/java/boofcv/factory/geo/FactoryMultiViewRobust.java
FactoryMultiViewRobust.baselineLMedS
public static ModelMatcherMultiview<Se3_F64, AssociatedPair> baselineLMedS( @Nullable ConfigEssential essential, @Nonnull ConfigLMedS lmeds ) { """ Robust solution for estimating {@link Se3_F64} using epipolar geometry from two views with {@link LeastMedianOfSquares LMedS}. Input observations...
java
public static ModelMatcherMultiview<Se3_F64, AssociatedPair> baselineLMedS( @Nullable ConfigEssential essential, @Nonnull ConfigLMedS lmeds ) { if( essential == null ) essential = new ConfigEssential(); else essential.checkValidity(); Estimate1ofEpipolar epipolar = FactoryMultiView. ...
[ "public", "static", "ModelMatcherMultiview", "<", "Se3_F64", ",", "AssociatedPair", ">", "baselineLMedS", "(", "@", "Nullable", "ConfigEssential", "essential", ",", "@", "Nonnull", "ConfigLMedS", "lmeds", ")", "{", "if", "(", "essential", "==", "null", ")", "ess...
Robust solution for estimating {@link Se3_F64} using epipolar geometry from two views with {@link LeastMedianOfSquares LMedS}. Input observations are in normalized image coordinates. <ul> <li>Error units is pixels squared times two</li> </ul> <p>See code for all the details.</p> @param essential Essential matrix es...
[ "Robust", "solution", "for", "estimating", "{", "@link", "Se3_F64", "}", "using", "epipolar", "geometry", "from", "two", "views", "with", "{", "@link", "LeastMedianOfSquares", "LMedS", "}", ".", "Input", "observations", "are", "in", "normalized", "image", "coord...
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-geo/src/main/java/boofcv/factory/geo/FactoryMultiViewRobust.java#L143-L166
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/query/Criteria.java
Criteria.addLessOrEqualThanField
public void addLessOrEqualThanField(String attribute, Object value) { """ Adds LessOrEqual Than (<=) criteria, customer_id <= person_id @param attribute The field name to be used @param value The field name to compare with """ // PAW // addSelectionCriteria(FieldCriteria.buildNotGreaterCri...
java
public void addLessOrEqualThanField(String attribute, Object value) { // PAW // addSelectionCriteria(FieldCriteria.buildNotGreaterCriteria(attribute, value, getAlias())); addSelectionCriteria(FieldCriteria.buildNotGreaterCriteria(attribute, value, getUserAlias(attribute))); }
[ "public", "void", "addLessOrEqualThanField", "(", "String", "attribute", ",", "Object", "value", ")", "{", "// PAW\r", "// addSelectionCriteria(FieldCriteria.buildNotGreaterCriteria(attribute, value, getAlias()));\r", "addSelectionCriteria", "(", "FieldCriteria", ".", "buildNotGrea...
Adds LessOrEqual Than (<=) criteria, customer_id <= person_id @param attribute The field name to be used @param value The field name to compare with
[ "Adds", "LessOrEqual", "Than", "(", "<", "=", ")", "criteria", "customer_id", "<", "=", "person_id" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L449-L454
khuxtable/seaglass
src/main/java/com/seaglasslookandfeel/ui/SeaGlassTextFieldUI.java
SeaGlassTextFieldUI.getComponentState
private int getComponentState(JComponent c, Region region) { """ DOCUMENT ME! @param c DOCUMENT ME! @param region DOCUMENT ME! @return DOCUMENT ME! """ if (region == SeaGlassRegion.SEARCH_FIELD_CANCEL_BUTTON && c.isEnabled()) { if (((JTextComponent) c).getText().length() == 0)...
java
private int getComponentState(JComponent c, Region region) { if (region == SeaGlassRegion.SEARCH_FIELD_CANCEL_BUTTON && c.isEnabled()) { if (((JTextComponent) c).getText().length() == 0) { return DISABLED; } else if (isCancelArmed) { return PRESSED; ...
[ "private", "int", "getComponentState", "(", "JComponent", "c", ",", "Region", "region", ")", "{", "if", "(", "region", "==", "SeaGlassRegion", ".", "SEARCH_FIELD_CANCEL_BUTTON", "&&", "c", ".", "isEnabled", "(", ")", ")", "{", "if", "(", "(", "(", "JTextCo...
DOCUMENT ME! @param c DOCUMENT ME! @param region DOCUMENT ME! @return DOCUMENT ME!
[ "DOCUMENT", "ME!" ]
train
https://github.com/khuxtable/seaglass/blob/f25ecba622923d7b29b64cb7d6068dd8005989b3/src/main/java/com/seaglasslookandfeel/ui/SeaGlassTextFieldUI.java#L409-L421
foundation-runtime/service-directory
1.1/sd-api/src/main/java/com/cisco/oss/foundation/directory/impl/DirectoryServiceClient.java
DirectoryServiceClient.unregisterInstance
public void unregisterInstance(String serviceName, String instanceId, boolean isOwned) { """ Unregister a ServiceInstance. @param serviceName service name. @param instanceId the instance id. @param isOwned whether the DirectoryAPI owns this ServiceProvider. """ String uri = toInstanceUri(servic...
java
public void unregisterInstance(String serviceName, String instanceId, boolean isOwned){ String uri = toInstanceUri(serviceName, instanceId) + "/" + isOwned; HttpResponse result = invoker.invoke(uri, null, HttpMethod.DELETE); if (result.getHttpCode() != HTTP_OK) { thr...
[ "public", "void", "unregisterInstance", "(", "String", "serviceName", ",", "String", "instanceId", ",", "boolean", "isOwned", ")", "{", "String", "uri", "=", "toInstanceUri", "(", "serviceName", ",", "instanceId", ")", "+", "\"/\"", "+", "isOwned", ";", "HttpR...
Unregister a ServiceInstance. @param serviceName service name. @param instanceId the instance id. @param isOwned whether the DirectoryAPI owns this ServiceProvider.
[ "Unregister", "a", "ServiceInstance", "." ]
train
https://github.com/foundation-runtime/service-directory/blob/a7bdefe173dc99e75eff4a24e07e6407e62f2ed4/1.1/sd-api/src/main/java/com/cisco/oss/foundation/directory/impl/DirectoryServiceClient.java#L226-L235
linkedin/dexmaker
dexmaker/src/main/java/com/android/dx/Code.java
Code.iput
public <D, V> void iput(FieldId<D, V> fieldId, Local<? extends D> instance, Local<? extends V> source) { """ Copies the value in {@code source} to the instance field {@code fieldId} of {@code instance}. """ addInstruction(new ThrowingCstInsn(Rops.opPutField(source.type.ropType), sourcePosition, ...
java
public <D, V> void iput(FieldId<D, V> fieldId, Local<? extends D> instance, Local<? extends V> source) { addInstruction(new ThrowingCstInsn(Rops.opPutField(source.type.ropType), sourcePosition, RegisterSpecList.make(source.spec(), instance.spec()), catches, fieldId.constant)); }
[ "public", "<", "D", ",", "V", ">", "void", "iput", "(", "FieldId", "<", "D", ",", "V", ">", "fieldId", ",", "Local", "<", "?", "extends", "D", ">", "instance", ",", "Local", "<", "?", "extends", "V", ">", "source", ")", "{", "addInstruction", "("...
Copies the value in {@code source} to the instance field {@code fieldId} of {@code instance}.
[ "Copies", "the", "value", "in", "{" ]
train
https://github.com/linkedin/dexmaker/blob/c58ffebcbb2564c7d1fa6fb58b48f351c330296d/dexmaker/src/main/java/com/android/dx/Code.java#L600-L603
Azure/autorest-clientruntime-for-java
azure-arm-client-runtime/src/main/java/com/microsoft/azure/arm/dag/DAGNode.java
DAGNode.onFaultedResolution
protected void onFaultedResolution(String dependencyKey, Throwable throwable) { """ Reports a dependency of this node has been faulted. @param dependencyKey the id of the dependency node @param throwable the reason for unsuccessful resolution """ if (toBeResolved == 0) { throw new Runti...
java
protected void onFaultedResolution(String dependencyKey, Throwable throwable) { if (toBeResolved == 0) { throw new RuntimeException("invalid state - " + this.key() + ": The dependency '" + dependencyKey + "' is already reported or there is no such dependencyKey"); } toBeResolved--; ...
[ "protected", "void", "onFaultedResolution", "(", "String", "dependencyKey", ",", "Throwable", "throwable", ")", "{", "if", "(", "toBeResolved", "==", "0", ")", "{", "throw", "new", "RuntimeException", "(", "\"invalid state - \"", "+", "this", ".", "key", "(", ...
Reports a dependency of this node has been faulted. @param dependencyKey the id of the dependency node @param throwable the reason for unsuccessful resolution
[ "Reports", "a", "dependency", "of", "this", "node", "has", "been", "faulted", "." ]
train
https://github.com/Azure/autorest-clientruntime-for-java/blob/04621e07dbb0456dd5459dd641f06a9fd4f3abad/azure-arm-client-runtime/src/main/java/com/microsoft/azure/arm/dag/DAGNode.java#L154-L159
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
SheetColumnResourcesImpl.getColumn
public Column getColumn(long sheetId, long columnId, EnumSet<ColumnInclusion> includes) throws SmartsheetException { """ Gets the Column specified in the URL. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns/{columnId} Exceptions: InvalidRequestException : if there is an...
java
public Column getColumn(long sheetId, long columnId, EnumSet<ColumnInclusion> includes) throws SmartsheetException { String path = "sheets/" + sheetId + "/columns/" + columnId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryUtil.generateComma...
[ "public", "Column", "getColumn", "(", "long", "sheetId", ",", "long", "columnId", ",", "EnumSet", "<", "ColumnInclusion", ">", "includes", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/columns/\"", "+",...
Gets the Column specified in the URL. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns/{columnId} Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ...
[ "Gets", "the", "Column", "specified", "in", "the", "URL", "." ]
train
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java#L176-L184
ecclesia/kipeto
kipeto-core/src/main/java/de/ecclesia/kipeto/repository/WritingRepository.java
WritingRepository.createReference
public void createReference(String reference, String id) throws IOException { """ Erzeugt eine Referenz (d.h. eine Art Link) unter dem Name <code>reference</code>, welche auf das Blob mit der Id <code>id</code> verweist. @param reference Name der Referenz @param id Id des Blobs welches referenziert werden ...
java
public void createReference(String reference, String id) throws IOException { Assert.isNotNull(reference); Assert.isFalse(reference.length() == 0, "Die Referenz darf nicht leer sein"); Assert.isNotNull(id, "Es muss die Id des Items übergeben werden"); Assert.isTrue(id.length() > WritingRepositoryStrategy.SUBDIR...
[ "public", "void", "createReference", "(", "String", "reference", ",", "String", "id", ")", "throws", "IOException", "{", "Assert", ".", "isNotNull", "(", "reference", ")", ";", "Assert", ".", "isFalse", "(", "reference", ".", "length", "(", ")", "==", "0",...
Erzeugt eine Referenz (d.h. eine Art Link) unter dem Name <code>reference</code>, welche auf das Blob mit der Id <code>id</code> verweist. @param reference Name der Referenz @param id Id des Blobs welches referenziert werden soll @throws IOException @throws IdNotFoundException falls unter <code>id</code> kein Blob abg...
[ "Erzeugt", "eine", "Referenz", "(", "d", ".", "h", ".", "eine", "Art", "Link", ")", "unter", "dem", "Name", "<code", ">", "reference<", "/", "code", ">", "welche", "auf", "das", "Blob", "mit", "der", "Id", "<code", ">", "id<", "/", "code", ">", "ve...
train
https://github.com/ecclesia/kipeto/blob/ea39a10ae4eaa550f71a856ab2f2845270a64913/kipeto-core/src/main/java/de/ecclesia/kipeto/repository/WritingRepository.java#L89-L101
gmessner/gitlab4j-api
src/main/java/org/gitlab4j/api/ProjectApi.java
ProjectApi.transferProject
public Project transferProject(Object projectIdOrPath, String namespace) throws GitLabApiException { """ Transfer a project to a new namespace. This was added in GitLab 11.1 <pre><code>PUT /projects/:id/transfer.</code></pre> @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), ...
java
public Project transferProject(Object projectIdOrPath, String namespace) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm().withParam("namespace", namespace, true); Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "trans...
[ "public", "Project", "transferProject", "(", "Object", "projectIdOrPath", ",", "String", "namespace", ")", "throws", "GitLabApiException", "{", "GitLabApiForm", "formData", "=", "new", "GitLabApiForm", "(", ")", ".", "withParam", "(", "\"namespace\"", ",", "namespac...
Transfer a project to a new namespace. This was added in GitLab 11.1 <pre><code>PUT /projects/:id/transfer.</code></pre> @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required @param namespace the namespace to transfer the project to @return the ...
[ "Transfer", "a", "project", "to", "a", "new", "namespace", ".", "This", "was", "added", "in", "GitLab", "11", ".", "1" ]
train
https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2379-L2383
Impetus/Kundera
src/kundera-spark/spark-core/src/main/java/com/impetus/spark/client/SparkClient.java
SparkClient.appendValue
private void appendValue(StringBuilder builder, Class fieldClazz, Object value) { """ Append value. @param builder the builder @param fieldClazz the field clazz @param value the value """ if (fieldClazz != null && value != null && (fieldClazz.isAssignableFrom(St...
java
private void appendValue(StringBuilder builder, Class fieldClazz, Object value) { if (fieldClazz != null && value != null && (fieldClazz.isAssignableFrom(String.class) || fieldClazz.isAssignableFrom(char.class) || fieldClazz.isAssignableFrom(Character...
[ "private", "void", "appendValue", "(", "StringBuilder", "builder", ",", "Class", "fieldClazz", ",", "Object", "value", ")", "{", "if", "(", "fieldClazz", "!=", "null", "&&", "value", "!=", "null", "&&", "(", "fieldClazz", ".", "isAssignableFrom", "(", "Strin...
Append value. @param builder the builder @param fieldClazz the field clazz @param value the value
[ "Append", "value", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-spark/spark-core/src/main/java/com/impetus/spark/client/SparkClient.java#L138-L170
liferay/com-liferay-commerce
commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListPersistenceImpl.java
CommerceWishListPersistenceImpl.findByGroupId
@Override public List<CommerceWishList> findByGroupId(long groupId) { """ Returns all the commerce wish lists where groupId = &#63;. @param groupId the group ID @return the matching commerce wish lists """ return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
java
@Override public List<CommerceWishList> findByGroupId(long groupId) { return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
[ "@", "Override", "public", "List", "<", "CommerceWishList", ">", "findByGroupId", "(", "long", "groupId", ")", "{", "return", "findByGroupId", "(", "groupId", ",", "QueryUtil", ".", "ALL_POS", ",", "QueryUtil", ".", "ALL_POS", ",", "null", ")", ";", "}" ]
Returns all the commerce wish lists where groupId = &#63;. @param groupId the group ID @return the matching commerce wish lists
[ "Returns", "all", "the", "commerce", "wish", "lists", "where", "groupId", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListPersistenceImpl.java#L1516-L1519
di2e/Argo
PluginFramework/src/main/java/ws/argo/probe/Probe.java
Probe.addRespondToURL
public void addRespondToURL(String label, String respondToURL) throws MalformedURLException { """ Add a URL that specifies where the Responder should send the response. Provide a label as a hint to the Responder about why this URL was included. For example: give a "internal" label for a respondToURL that is only...
java
public void addRespondToURL(String label, String respondToURL) throws MalformedURLException { // Sanity check on the respondToURL // The requirement for the respondToURL is a REST POST call, so that means // only HTTP and HTTPS schemes. // Localhost is allowed as well as a valid response destination ...
[ "public", "void", "addRespondToURL", "(", "String", "label", ",", "String", "respondToURL", ")", "throws", "MalformedURLException", "{", "// Sanity check on the respondToURL", "// The requirement for the respondToURL is a REST POST call, so that means", "// only HTTP and HTTPS schemes....
Add a URL that specifies where the Responder should send the response. Provide a label as a hint to the Responder about why this URL was included. For example: give a "internal" label for a respondToURL that is only accessible from inside a NATed network. @param label - hint about the URL @param respondToURL - the URL...
[ "Add", "a", "URL", "that", "specifies", "where", "the", "Responder", "should", "send", "the", "response", ".", "Provide", "a", "label", "as", "a", "hint", "to", "the", "Responder", "about", "why", "this", "URL", "was", "included", ".", "For", "example", ...
train
https://github.com/di2e/Argo/blob/f537a03d2d25fdfecda7999ec10e1da67dc3b8f3/PluginFramework/src/main/java/ws/argo/probe/Probe.java#L214-L227
Azure/azure-sdk-for-java
appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsInner.java
DomainsInner.deleteOwnershipIdentifierAsync
public Observable<Void> deleteOwnershipIdentifierAsync(String resourceGroupName, String domainName, String name) { """ Delete ownership identifier for domain. Delete ownership identifier for domain. @param resourceGroupName Name of the resource group to which the resource belongs. @param domainName Name of do...
java
public Observable<Void> deleteOwnershipIdentifierAsync(String resourceGroupName, String domainName, String name) { return deleteOwnershipIdentifierWithServiceResponseAsync(resourceGroupName, domainName, name).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(Servi...
[ "public", "Observable", "<", "Void", ">", "deleteOwnershipIdentifierAsync", "(", "String", "resourceGroupName", ",", "String", "domainName", ",", "String", "name", ")", "{", "return", "deleteOwnershipIdentifierWithServiceResponseAsync", "(", "resourceGroupName", ",", "dom...
Delete ownership identifier for domain. Delete ownership identifier for domain. @param resourceGroupName Name of the resource group to which the resource belongs. @param domainName Name of domain. @param name Name of identifier. @throws IllegalArgumentException thrown if parameters fail the validation @return the {@li...
[ "Delete", "ownership", "identifier", "for", "domain", ".", "Delete", "ownership", "identifier", "for", "domain", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsInner.java#L1653-L1660
RestComm/sipunit
src/main/java/org/cafesip/sipunit/SipAssert.java
SipAssert.assertNotAnswered
public static void assertNotAnswered(String msg, SipCall call) { """ Asserts that the given incoming or outgoing call leg has not been answered. Assertion failure output includes the given message text. @param msg message text to output if the assertion fails. @param call The incoming or outgoing call leg. ...
java
public static void assertNotAnswered(String msg, SipCall call) { assertNotNull("Null assert object passed in", call); assertFalse(msg, call.isCallAnswered()); }
[ "public", "static", "void", "assertNotAnswered", "(", "String", "msg", ",", "SipCall", "call", ")", "{", "assertNotNull", "(", "\"Null assert object passed in\"", ",", "call", ")", ";", "assertFalse", "(", "msg", ",", "call", ".", "isCallAnswered", "(", ")", "...
Asserts that the given incoming or outgoing call leg has not been answered. Assertion failure output includes the given message text. @param msg message text to output if the assertion fails. @param call The incoming or outgoing call leg.
[ "Asserts", "that", "the", "given", "incoming", "or", "outgoing", "call", "leg", "has", "not", "been", "answered", ".", "Assertion", "failure", "output", "includes", "the", "given", "message", "text", "." ]
train
https://github.com/RestComm/sipunit/blob/18a6be2e29be3fbdc14226e8c41b25e2d57378b1/src/main/java/org/cafesip/sipunit/SipAssert.java#L627-L630
apache/incubator-gobblin
gobblin-api/src/main/java/org/apache/gobblin/configuration/State.java
State.appendToSetProp
public synchronized void appendToSetProp(String key, String value) { """ Appends the input value to a set property that can be retrieved with {@link #getPropAsSet}. <p> Set properties are internally stored as comma separated strings. Adding a value that contains commas (for example "a,b,c") will essentially a...
java
public synchronized void appendToSetProp(String key, String value) { Set<String> set = value == null ? Sets.<String>newHashSet() : Sets.newHashSet(LIST_SPLITTER.splitToList(value)); if (contains(key)) { set.addAll(getPropAsSet(key)); } setProp(key, LIST_JOINER.join(set)); }
[ "public", "synchronized", "void", "appendToSetProp", "(", "String", "key", ",", "String", "value", ")", "{", "Set", "<", "String", ">", "set", "=", "value", "==", "null", "?", "Sets", ".", "<", "String", ">", "newHashSet", "(", ")", ":", "Sets", ".", ...
Appends the input value to a set property that can be retrieved with {@link #getPropAsSet}. <p> Set properties are internally stored as comma separated strings. Adding a value that contains commas (for example "a,b,c") will essentially add multiple values to the property ("a", "b", and "c"). This is similar to the way...
[ "Appends", "the", "input", "value", "to", "a", "set", "property", "that", "can", "be", "retrieved", "with", "{", "@link", "#getPropAsSet", "}", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-api/src/main/java/org/apache/gobblin/configuration/State.java#L248-L254
icoloma/simpleds
src/main/java/org/simpleds/metadata/ClassMetadataFactory.java
ClassMetadataFactory.addEmbeddedProperties
private void addEmbeddedProperties(ClassMetadata classMetadata, SinglePropertyMetadata propertyMetadata) { """ Recursively processes all nested {@link Embedded} properties and adds them as {@link EmbeddedPropertyMetadata} instances """ ClassMetadata nested = new ClassMetadata(); nested.setPersistentClass(p...
java
private void addEmbeddedProperties(ClassMetadata classMetadata, SinglePropertyMetadata propertyMetadata) { ClassMetadata nested = new ClassMetadata(); nested.setPersistentClass(propertyMetadata.getPropertyType()); visit(nested.getPersistentClass(), nested, new HashSet<String>()); for (Iterator<String> i = neste...
[ "private", "void", "addEmbeddedProperties", "(", "ClassMetadata", "classMetadata", ",", "SinglePropertyMetadata", "propertyMetadata", ")", "{", "ClassMetadata", "nested", "=", "new", "ClassMetadata", "(", ")", ";", "nested", ".", "setPersistentClass", "(", "propertyMeta...
Recursively processes all nested {@link Embedded} properties and adds them as {@link EmbeddedPropertyMetadata} instances
[ "Recursively", "processes", "all", "nested", "{" ]
train
https://github.com/icoloma/simpleds/blob/b07763df98b9375b764e625f617a6c78df4b068d/src/main/java/org/simpleds/metadata/ClassMetadataFactory.java#L150-L159
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java
WordVectorSerializer.fromTableAndVocab
public static WordVectors fromTableAndVocab(WeightLookupTable table, VocabCache vocab) { """ Load word vectors for the given vocab and table @param table the weights to use @param vocab the vocab to use @return wordvectors based on the given parameters """ WordVectorsImpl vectors = new WordVectors...
java
public static WordVectors fromTableAndVocab(WeightLookupTable table, VocabCache vocab) { WordVectorsImpl vectors = new WordVectorsImpl(); vectors.setLookupTable(table); vectors.setVocab(vocab); vectors.setModelUtils(new BasicModelUtils()); return vectors; }
[ "public", "static", "WordVectors", "fromTableAndVocab", "(", "WeightLookupTable", "table", ",", "VocabCache", "vocab", ")", "{", "WordVectorsImpl", "vectors", "=", "new", "WordVectorsImpl", "(", ")", ";", "vectors", ".", "setLookupTable", "(", "table", ")", ";", ...
Load word vectors for the given vocab and table @param table the weights to use @param vocab the vocab to use @return wordvectors based on the given parameters
[ "Load", "word", "vectors", "for", "the", "given", "vocab", "and", "table" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java#L1568-L1574
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/shipping/admin/profiles/ShippingInclusionRuleUrl.java
ShippingInclusionRuleUrl.getShippingInclusionRuleUrl
public static MozuUrl getShippingInclusionRuleUrl(String id, String profilecode, String responseFields) { """ Get Resource Url for GetShippingInclusionRule @param id Unique identifier of the customer segment to retrieve. @param profilecode The unique, user-defined code of the profile with which the shipping incl...
java
public static MozuUrl getShippingInclusionRuleUrl(String id, String profilecode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/shipping/admin/profiles/{profilecode}/rules/shippinginclusions/{id}?responseFields={responseFields}"); formatter.formatUrl("id", id); formatter.fo...
[ "public", "static", "MozuUrl", "getShippingInclusionRuleUrl", "(", "String", "id", ",", "String", "profilecode", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/shipping/admin/profiles/{profilecode}/r...
Get Resource Url for GetShippingInclusionRule @param id Unique identifier of the customer segment to retrieve. @param profilecode The unique, user-defined code of the profile with which the shipping inclusion rule is associated. @param responseFields Filtering syntax appended to an API call to increase or decrease the ...
[ "Get", "Resource", "Url", "for", "GetShippingInclusionRule" ]
train
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/shipping/admin/profiles/ShippingInclusionRuleUrl.java#L23-L30
RestComm/media-core
stun/src/main/java/org/restcomm/media/core/stun/messages/attributes/address/XorMappedAddressAttribute.java
XorMappedAddressAttribute.setAddress
public void setAddress(TransportAddress address, byte[] transactionID) { """ Applies a XOR mask to the specified address and then sets it as the value transported by this attribute. @param address the address that we should xor and then record in this attribute. @param transactionID the transaction identif...
java
public void setAddress(TransportAddress address, byte[] transactionID) { byte[] xorMask = new byte[16]; System.arraycopy(StunMessage.MAGIC_COOKIE, 0, xorMask, 0, 4); System.arraycopy(transactionID, 0, xorMask, 4, 12); TransportAddress xorAddress = applyXor(address, xorMask); super.setAddress(xorAddress); ...
[ "public", "void", "setAddress", "(", "TransportAddress", "address", ",", "byte", "[", "]", "transactionID", ")", "{", "byte", "[", "]", "xorMask", "=", "new", "byte", "[", "16", "]", ";", "System", ".", "arraycopy", "(", "StunMessage", ".", "MAGIC_COOKIE",...
Applies a XOR mask to the specified address and then sets it as the value transported by this attribute. @param address the address that we should xor and then record in this attribute. @param transactionID the transaction identifier that we should use when creating the XOR mask.
[ "Applies", "a", "XOR", "mask", "to", "the", "specified", "address", "and", "then", "sets", "it", "as", "the", "value", "transported", "by", "this", "attribute", "." ]
train
https://github.com/RestComm/media-core/blob/07b8703343708599f60af66bae62aded77ee81b5/stun/src/main/java/org/restcomm/media/core/stun/messages/attributes/address/XorMappedAddressAttribute.java#L142-L151
googleapis/google-cloud-java
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseId.java
DatabaseId.of
public static DatabaseId of(String project, String instance, String database) { """ Creates a {@code DatabaseId} given project, instance and database IDs. """ return new DatabaseId(new InstanceId(project, instance), database); }
java
public static DatabaseId of(String project, String instance, String database) { return new DatabaseId(new InstanceId(project, instance), database); }
[ "public", "static", "DatabaseId", "of", "(", "String", "project", ",", "String", "instance", ",", "String", "database", ")", "{", "return", "new", "DatabaseId", "(", "new", "InstanceId", "(", "project", ",", "instance", ")", ",", "database", ")", ";", "}" ...
Creates a {@code DatabaseId} given project, instance and database IDs.
[ "Creates", "a", "{" ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseId.java#L92-L94
google/error-prone
core/src/main/java/com/google/errorprone/bugpatterns/ThreeLetterTimeZoneID.java
ThreeLetterTimeZoneID.handleNonDaylightSavingsZone
static Replacement handleNonDaylightSavingsZone( boolean inJodaTimeContext, String daylightSavingsZone, String fixedOffset) { """ How we handle it depends upon whether we are in a JodaTime context or not. """ if (inJodaTimeContext) { String newDescription = SUMMARY + "\n...
java
static Replacement handleNonDaylightSavingsZone( boolean inJodaTimeContext, String daylightSavingsZone, String fixedOffset) { if (inJodaTimeContext) { String newDescription = SUMMARY + "\n\n" + observesDaylightSavingsMessage("DateTimeZone", daylightSavingsZone, fixe...
[ "static", "Replacement", "handleNonDaylightSavingsZone", "(", "boolean", "inJodaTimeContext", ",", "String", "daylightSavingsZone", ",", "String", "fixedOffset", ")", "{", "if", "(", "inJodaTimeContext", ")", "{", "String", "newDescription", "=", "SUMMARY", "+", "\"\\...
How we handle it depends upon whether we are in a JodaTime context or not.
[ "How", "we", "handle", "it", "depends", "upon", "whether", "we", "are", "in", "a", "JodaTime", "context", "or", "not", "." ]
train
https://github.com/google/error-prone/blob/fe2e3cc2cf1958cb7c487bfe89852bb4c225ba9d/core/src/main/java/com/google/errorprone/bugpatterns/ThreeLetterTimeZoneID.java#L127-L147
khuxtable/seaglass
src/main/java/com/seaglasslookandfeel/SeaGlassSynthPainterImpl.java
SeaGlassSynthPainterImpl.paintTabbedPaneTabAreaBackground
public void paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation) { """ Paints the background of the area behind the tabs of a tabbed pane. This implementation invokes the method of the same name without the orientation. @param context SynthContext...
java
public void paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation) { if (orientation == JTabbedPane.LEFT) { AffineTransform transform = new AffineTransform(); transform.scale(-1, 1); transform.rotate(Math.toRadians(90)...
[ "public", "void", "paintTabbedPaneTabAreaBackground", "(", "SynthContext", "context", ",", "Graphics", "g", ",", "int", "x", ",", "int", "y", ",", "int", "w", ",", "int", "h", ",", "int", "orientation", ")", "{", "if", "(", "orientation", "==", "JTabbedPan...
Paints the background of the area behind the tabs of a tabbed pane. This implementation invokes the method of the same name without the orientation. @param context SynthContext identifying the <code>JComponent</code> and <code>Region</code> to paint to @param g <code>Graphics</code> to paint to @param x ...
[ "Paints", "the", "background", "of", "the", "area", "behind", "the", "tabs", "of", "a", "tabbed", "pane", ".", "This", "implementation", "invokes", "the", "method", "of", "the", "same", "name", "without", "the", "orientation", "." ]
train
https://github.com/khuxtable/seaglass/blob/f25ecba622923d7b29b64cb7d6068dd8005989b3/src/main/java/com/seaglasslookandfeel/SeaGlassSynthPainterImpl.java#L1977-L1998
liferay/com-liferay-commerce
commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java
CPDefinitionInventoryPersistenceImpl.findByUUID_G
@Override public CPDefinitionInventory findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionInventoryException { """ Returns the cp definition inventory where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchCPDefinitionInventoryException} if it could not be found. @param uuid the uuid ...
java
@Override public CPDefinitionInventory findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionInventoryException { CPDefinitionInventory cpDefinitionInventory = fetchByUUID_G(uuid, groupId); if (cpDefinitionInventory == null) { StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_E...
[ "@", "Override", "public", "CPDefinitionInventory", "findByUUID_G", "(", "String", "uuid", ",", "long", "groupId", ")", "throws", "NoSuchCPDefinitionInventoryException", "{", "CPDefinitionInventory", "cpDefinitionInventory", "=", "fetchByUUID_G", "(", "uuid", ",", "groupI...
Returns the cp definition inventory where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchCPDefinitionInventoryException} if it could not be found. @param uuid the uuid @param groupId the group ID @return the matching cp definition inventory @throws NoSuchCPDefinitionInventoryException if a matching cp defin...
[ "Returns", "the", "cp", "definition", "inventory", "where", "uuid", "=", "&#63", ";", "and", "groupId", "=", "&#63", ";", "or", "throws", "a", "{", "@link", "NoSuchCPDefinitionInventoryException", "}", "if", "it", "could", "not", "be", "found", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java#L669-L696
neo4j/neo4j-java-driver
driver/src/main/java/org/neo4j/driver/internal/DriverFactory.java
DriverFactory.createLoadBalancer
protected LoadBalancer createLoadBalancer( BoltServerAddress address, ConnectionPool connectionPool, EventExecutorGroup eventExecutorGroup, Config config, RoutingSettings routingSettings ) { """ Creates new {@link LoadBalancer} for the routing driver. <p> <b>This method is protected only for testing<...
java
protected LoadBalancer createLoadBalancer( BoltServerAddress address, ConnectionPool connectionPool, EventExecutorGroup eventExecutorGroup, Config config, RoutingSettings routingSettings ) { LoadBalancingStrategy loadBalancingStrategy = createLoadBalancingStrategy( config, connectionPool ); ...
[ "protected", "LoadBalancer", "createLoadBalancer", "(", "BoltServerAddress", "address", ",", "ConnectionPool", "connectionPool", ",", "EventExecutorGroup", "eventExecutorGroup", ",", "Config", "config", ",", "RoutingSettings", "routingSettings", ")", "{", "LoadBalancingStrate...
Creates new {@link LoadBalancer} for the routing driver. <p> <b>This method is protected only for testing</b>
[ "Creates", "new", "{" ]
train
https://github.com/neo4j/neo4j-java-driver/blob/8dad6c48251fa1ab7017e72d9998a24fa2337a22/driver/src/main/java/org/neo4j/driver/internal/DriverFactory.java#L203-L210
pravega/pravega
common/src/main/java/io/pravega/common/tracing/RequestTracker.java
RequestTracker.trackRequest
public void trackRequest(String requestDescriptor, long requestId) { """ Adds a request descriptor and request id pair in the cache if tracing is enabled. In the case of tracking a request with an existing descriptor, this method adds the request id to the list associated to the descriptor. @param requestDescr...
java
public void trackRequest(String requestDescriptor, long requestId) { Preconditions.checkNotNull(requestDescriptor, "Attempting to track a null request descriptor."); if (!tracingEnabled) { return; } synchronized (lock) { List<Long> requestIds = ongoingRequests.ge...
[ "public", "void", "trackRequest", "(", "String", "requestDescriptor", ",", "long", "requestId", ")", "{", "Preconditions", ".", "checkNotNull", "(", "requestDescriptor", ",", "\"Attempting to track a null request descriptor.\"", ")", ";", "if", "(", "!", "tracingEnabled...
Adds a request descriptor and request id pair in the cache if tracing is enabled. In the case of tracking a request with an existing descriptor, this method adds the request id to the list associated to the descriptor. @param requestDescriptor Request descriptor as a single string. @param requestId Request id associat...
[ "Adds", "a", "request", "descriptor", "and", "request", "id", "pair", "in", "the", "cache", "if", "tracing", "is", "enabled", ".", "In", "the", "case", "of", "tracking", "a", "request", "with", "an", "existing", "descriptor", "this", "method", "adds", "the...
train
https://github.com/pravega/pravega/blob/6e24df7470669b3956a07018f52b2c6b3c2a3503/common/src/main/java/io/pravega/common/tracing/RequestTracker.java#L154-L171
ironjacamar/ironjacamar
core/src/main/java/org/ironjacamar/core/tracer/Tracer.java
Tracer.clearConnectionListener
public static synchronized void clearConnectionListener(String poolName, Object mcp, Object cl) { """ Clear connection listener @param poolName The name of the pool @param mcp The managed connection pool @param cl The connection listener """ log.tracef("%s", new TraceEvent(poolName, ...
java
public static synchronized void clearConnectionListener(String poolName, Object mcp, Object cl) { log.tracef("%s", new TraceEvent(poolName, Integer.toHexString(System.identityHashCode(mcp)), TraceEvent.CLEAR_CONNECTION_LISTENER, ...
[ "public", "static", "synchronized", "void", "clearConnectionListener", "(", "String", "poolName", ",", "Object", "mcp", ",", "Object", "cl", ")", "{", "log", ".", "tracef", "(", "\"%s\"", ",", "new", "TraceEvent", "(", "poolName", ",", "Integer", ".", "toHex...
Clear connection listener @param poolName The name of the pool @param mcp The managed connection pool @param cl The connection listener
[ "Clear", "connection", "listener" ]
train
https://github.com/ironjacamar/ironjacamar/blob/f0389ee7e62aa8b40ba09b251edad76d220ea796/core/src/main/java/org/ironjacamar/core/tracer/Tracer.java#L230-L236
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/BooleanUtils.java
BooleanUtils.toBoolean
public static boolean toBoolean(final Integer value, final Integer trueValue, final Integer falseValue) { """ <p>Converts an Integer to a boolean specifying the conversion values.</p> <pre> BooleanUtils.toBoolean(Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(0)) = false BooleanUtils.toBoolean(Intege...
java
public static boolean toBoolean(final Integer value, final Integer trueValue, final Integer falseValue) { if (value == null) { if (trueValue == null) { return true; } if (falseValue == null) { return false; } } else if (valu...
[ "public", "static", "boolean", "toBoolean", "(", "final", "Integer", "value", ",", "final", "Integer", "trueValue", ",", "final", "Integer", "falseValue", ")", "{", "if", "(", "value", "==", "null", ")", "{", "if", "(", "trueValue", "==", "null", ")", "{...
<p>Converts an Integer to a boolean specifying the conversion values.</p> <pre> BooleanUtils.toBoolean(Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(0)) = false BooleanUtils.toBoolean(Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(0)) = true BooleanUtils.toBoolean(Integer.valueOf(2), Integer.valueOf...
[ "<p", ">", "Converts", "an", "Integer", "to", "a", "boolean", "specifying", "the", "conversion", "values", ".", "<", "/", "p", ">" ]
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/BooleanUtils.java#L288-L303
mabe02/lanterna
src/main/java/com/googlecode/lanterna/TerminalSize.java
TerminalSize.withColumns
public TerminalSize withColumns(int columns) { """ Creates a new size based on this size, but with a different width @param columns Width of the new size, in columns @return New size based on this one, but with a new width """ if(this.columns == columns) { return this; } i...
java
public TerminalSize withColumns(int columns) { if(this.columns == columns) { return this; } if(columns == 0 && this.rows == 0) { return ZERO; } return new TerminalSize(columns, this.rows); }
[ "public", "TerminalSize", "withColumns", "(", "int", "columns", ")", "{", "if", "(", "this", ".", "columns", "==", "columns", ")", "{", "return", "this", ";", "}", "if", "(", "columns", "==", "0", "&&", "this", ".", "rows", "==", "0", ")", "{", "re...
Creates a new size based on this size, but with a different width @param columns Width of the new size, in columns @return New size based on this one, but with a new width
[ "Creates", "a", "new", "size", "based", "on", "this", "size", "but", "with", "a", "different", "width" ]
train
https://github.com/mabe02/lanterna/blob/8dfd62206ff46ab10223b2ef2dbb0a2c51850954/src/main/java/com/googlecode/lanterna/TerminalSize.java#L62-L70
ngageoint/geopackage-android-map
geopackage-map/src/main/java/mil/nga/geopackage/map/features/FeatureInfoBuilder.java
FeatureInfoBuilder.getColumnName
private String getColumnName(DataColumnsDao dataColumnsDao, FeatureRow featureRow, String columnName) { """ Get the column name by checking for a DataColumns name, otherwise returns the provided column name @param dataColumnsDao data columns dao @param featureRow feature row @param columnName column n...
java
private String getColumnName(DataColumnsDao dataColumnsDao, FeatureRow featureRow, String columnName) { String newColumnName = columnName; if (dataColumnsDao != null) { try { DataColumns dataColumn = dataColumnsDao.getDataColumn(featureRow.getTable().getTableName(), columnN...
[ "private", "String", "getColumnName", "(", "DataColumnsDao", "dataColumnsDao", ",", "FeatureRow", "featureRow", ",", "String", "columnName", ")", "{", "String", "newColumnName", "=", "columnName", ";", "if", "(", "dataColumnsDao", "!=", "null", ")", "{", "try", ...
Get the column name by checking for a DataColumns name, otherwise returns the provided column name @param dataColumnsDao data columns dao @param featureRow feature row @param columnName column name @return column name
[ "Get", "the", "column", "name", "by", "checking", "for", "a", "DataColumns", "name", "otherwise", "returns", "the", "provided", "column", "name" ]
train
https://github.com/ngageoint/geopackage-android-map/blob/634d78468a5c52d2bc98791cc7ff03981ebf573b/geopackage-map/src/main/java/mil/nga/geopackage/map/features/FeatureInfoBuilder.java#L582-L600
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/opengl/InternalTextureLoader.java
InternalTextureLoader.getTexture
private TextureImpl getTexture(InputStream in, String resourceName, int target, int magFilter, int minFilter, boolean flipped, int[] transparent) throws IOException { """ Get a texture from a image file ...
java
private TextureImpl getTexture(InputStream in, String resourceName, int target, int magFilter, int minFilter, boolean flipped, int[] transparent) throws IOException { // create the texture ID fo...
[ "private", "TextureImpl", "getTexture", "(", "InputStream", "in", ",", "String", "resourceName", ",", "int", "target", ",", "int", "magFilter", ",", "int", "minFilter", ",", "boolean", "flipped", ",", "int", "[", "]", "transparent", ")", "throws", "IOException...
Get a texture from a image file @param in The stream from which we can load the image @param resourceName The name to give this image in the internal cache @param flipped True if we should flip the image on the y-axis while loading @param target The texture target we're loading this texture into @param minFilter The s...
[ "Get", "a", "texture", "from", "a", "image", "file" ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/opengl/InternalTextureLoader.java#L282-L349
Erudika/para
para-core/src/main/java/com/erudika/para/utils/Utils.java
Utils.getObjectURI
public static String getObjectURI(ParaObject obj, boolean includeName, boolean includeId) { """ Returns the default URL for a given domain object. @param obj the domain object @param includeName true if we want to include the name of the object in the URL @param includeId true if we want to include the ID of th...
java
public static String getObjectURI(ParaObject obj, boolean includeName, boolean includeId) { if (obj == null) { return "/"; } if (includeId && obj.getId() != null) { return (includeName && !StringUtils.isBlank(obj.getName())) ? obj.getObjectURI().concat("-"). concat(urlEncode(noSpaces(obj.getName(), "-"...
[ "public", "static", "String", "getObjectURI", "(", "ParaObject", "obj", ",", "boolean", "includeName", ",", "boolean", "includeId", ")", "{", "if", "(", "obj", "==", "null", ")", "{", "return", "\"/\"", ";", "}", "if", "(", "includeId", "&&", "obj", ".",...
Returns the default URL for a given domain object. @param obj the domain object @param includeName true if we want to include the name of the object in the URL @param includeId true if we want to include the ID of the object in the URL @return the object's URL - e.g. /users/123-name, /users/, /users/123
[ "Returns", "the", "default", "URL", "for", "a", "given", "domain", "object", "." ]
train
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/utils/Utils.java#L697-L707
ios-driver/ios-driver
server/src/main/java/org/uiautomation/ios/utils/ClassicCommands.java
ClassicCommands.getInstrumentsVersion
public static InstrumentsVersion getInstrumentsVersion() { """ returns the version of the currently selected ( xcode-select -switch ) Xcode. """ List<String> s = new ArrayList<>(); s.add("instruments"); Command c = new Command(s, false); InstrumentsVersion version = new InstrumentsVersion(); ...
java
public static InstrumentsVersion getInstrumentsVersion() { List<String> s = new ArrayList<>(); s.add("instruments"); Command c = new Command(s, false); InstrumentsVersion version = new InstrumentsVersion(); c.registerListener(version); c.executeAndWait(true); return version; }
[ "public", "static", "InstrumentsVersion", "getInstrumentsVersion", "(", ")", "{", "List", "<", "String", ">", "s", "=", "new", "ArrayList", "<>", "(", ")", ";", "s", ".", "add", "(", "\"instruments\"", ")", ";", "Command", "c", "=", "new", "Command", "("...
returns the version of the currently selected ( xcode-select -switch ) Xcode.
[ "returns", "the", "version", "of", "the", "currently", "selected", "(", "xcode", "-", "select", "-", "switch", ")", "Xcode", "." ]
train
https://github.com/ios-driver/ios-driver/blob/a9744419508d970fbb1ce18e4326cc624b237c8b/server/src/main/java/org/uiautomation/ios/utils/ClassicCommands.java#L34-L44
OpenNTF/JavascriptAggregator
jaggr-service/src/main/java/com/ibm/jaggr/service/impl/AggregatorImpl.java
AggregatorImpl.initWorkingDirectory
protected void initWorkingDirectory(Map<String, String> configMap, IConfig config) throws FileNotFoundException { """ Initialize the working directory for the servlet. The working directory is in the plugin's workspace directory (returned by {@link Platform#getStateLocation(Bundle)} and is qualified with the id...
java
protected void initWorkingDirectory(Map<String, String> configMap, IConfig config) throws FileNotFoundException { final String sourceMethod = "initWorkingDirectory"; //$NON-NLS-1$ boolean isTraceLogging = log.isLoggable(Level.FINER); if (isTraceLogging) { log.entering(sourceClass, sourceMethod, new Object[...
[ "protected", "void", "initWorkingDirectory", "(", "Map", "<", "String", ",", "String", ">", "configMap", ",", "IConfig", "config", ")", "throws", "FileNotFoundException", "{", "final", "String", "sourceMethod", "=", "\"initWorkingDirectory\"", ";", "//$NON-NLS-1$\r", ...
Initialize the working directory for the servlet. The working directory is in the plugin's workspace directory (returned by {@link Platform#getStateLocation(Bundle)} and is qualified with the id of the contributing bundle (so that multiple versions can co-exist in the framework without stepping on each other and so th...
[ "Initialize", "the", "working", "directory", "for", "the", "servlet", ".", "The", "working", "directory", "is", "in", "the", "plugin", "s", "workspace", "directory", "(", "returned", "by", "{", "@link", "Platform#getStateLocation", "(", "Bundle", ")", "}", "an...
train
https://github.com/OpenNTF/JavascriptAggregator/blob/9f47a96d778251638b1df9a368462176216d5b29/jaggr-service/src/main/java/com/ibm/jaggr/service/impl/AggregatorImpl.java#L348-L374
alkacon/opencms-core
src/org/opencms/file/CmsObject.java
CmsObject.chtype
public void chtype(String resourcename, I_CmsResourceType type) throws CmsException { """ Changes the resource type of a resource.<p> OpenCms handles resources according to the resource type, not the file suffix. This is e.g. why a JSP in OpenCms can have the suffix ".html" instead of ".jsp" only. Changing th...
java
public void chtype(String resourcename, I_CmsResourceType type) throws CmsException { CmsResource resource = readResource(resourcename, CmsResourceFilter.IGNORE_EXPIRATION); getResourceType(resource).chtype(this, m_securityManager, resource, type); }
[ "public", "void", "chtype", "(", "String", "resourcename", ",", "I_CmsResourceType", "type", ")", "throws", "CmsException", "{", "CmsResource", "resource", "=", "readResource", "(", "resourcename", ",", "CmsResourceFilter", ".", "IGNORE_EXPIRATION", ")", ";", "getRe...
Changes the resource type of a resource.<p> OpenCms handles resources according to the resource type, not the file suffix. This is e.g. why a JSP in OpenCms can have the suffix ".html" instead of ".jsp" only. Changing the resource type makes sense e.g. if you want to make a plain text file a JSP resource, or a binary ...
[ "Changes", "the", "resource", "type", "of", "a", "resource", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/file/CmsObject.java#L498-L502
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.parseTokenExtract
protected TokenCodes parseTokenExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF, int log) throws MalformedMessageException { """ Method for parsing a token from a given WSBB. This will stop when the byte delimeter is reached, or when a CRLF is found. If it sees the CRLF, then it checks the boolea...
java
protected TokenCodes parseTokenExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF, int log) throws MalformedMessageException { // if we're just starting, then skip leading white space characters // otherwise ignore them (i.e we might be in the middle of // "Mozilla/5.0 (Win" ...
[ "protected", "TokenCodes", "parseTokenExtract", "(", "WsByteBuffer", "buff", ",", "byte", "bDelimiter", ",", "boolean", "bApproveCRLF", ",", "int", "log", ")", "throws", "MalformedMessageException", "{", "// if we're just starting, then skip leading white space characters", "...
Method for parsing a token from a given WSBB. This will stop when the byte delimeter is reached, or when a CRLF is found. If it sees the CRLF, then it checks the boolean input on whether CRLF is valid and will throw an exception if it's not valid. <p> Returns a TOKEN_RC code as to whether a CRLF or delimiter was reache...
[ "Method", "for", "parsing", "a", "token", "from", "a", "given", "WSBB", ".", "This", "will", "stop", "when", "the", "byte", "delimeter", "is", "reached", "or", "when", "a", "CRLF", "is", "found", ".", "If", "it", "sees", "the", "CRLF", "then", "it", ...
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3882-L3903
diirt/util
src/main/java/org/epics/util/array/ListNumbers.java
ListNumbers.binarySearchValueOrHigher
public static int binarySearchValueOrHigher(ListNumber values, double value) { """ Finds the value in the list, or the one right above it. @param values a list of values @param value a value @return the index of the value """ if (value <= values.getDouble(0)) { return 0; } ...
java
public static int binarySearchValueOrHigher(ListNumber values, double value) { if (value <= values.getDouble(0)) { return 0; } if (value >= values.getDouble(values.size() -1)) { return values.size() - 1; } int index = binarySearch(0, value...
[ "public", "static", "int", "binarySearchValueOrHigher", "(", "ListNumber", "values", ",", "double", "value", ")", "{", "if", "(", "value", "<=", "values", ".", "getDouble", "(", "0", ")", ")", "{", "return", "0", ";", "}", "if", "(", "value", ">=", "va...
Finds the value in the list, or the one right above it. @param values a list of values @param value a value @return the index of the value
[ "Finds", "the", "value", "in", "the", "list", "or", "the", "one", "right", "above", "it", "." ]
train
https://github.com/diirt/util/blob/24aca0a173a635aaf0b78d213a3fee8d4f91c077/src/main/java/org/epics/util/array/ListNumbers.java#L93-L112
Waikato/jclasslocator
src/main/java/nz/ac/waikato/cms/locator/ClassLister.java
ClassLister.updateClassnames
protected void updateClassnames(HashMap<String,HashSet<String>> cache, String superclass, HashSet<String> names) { """ Updates cache for the superclass. @param cache the cache to update @param superclass the superclass @param names the names to add """ if (!cache.containsKey(superclass)) cache.p...
java
protected void updateClassnames(HashMap<String,HashSet<String>> cache, String superclass, HashSet<String> names) { if (!cache.containsKey(superclass)) cache.put(superclass, names); else cache.get(superclass).addAll(names); }
[ "protected", "void", "updateClassnames", "(", "HashMap", "<", "String", ",", "HashSet", "<", "String", ">", ">", "cache", ",", "String", "superclass", ",", "HashSet", "<", "String", ">", "names", ")", "{", "if", "(", "!", "cache", ".", "containsKey", "("...
Updates cache for the superclass. @param cache the cache to update @param superclass the superclass @param names the names to add
[ "Updates", "cache", "for", "the", "superclass", "." ]
train
https://github.com/Waikato/jclasslocator/blob/c899072fff607a56ee7f8c2d01fbeb15157ad144/src/main/java/nz/ac/waikato/cms/locator/ClassLister.java#L219-L224
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TokensApi.java
TokensApi.checkTokenAsync
public com.squareup.okhttp.Call checkTokenAsync(TokenRequest tokenInfo, final ApiCallback<CheckTokenResponse> callback) throws ApiException { """ Check Token (asynchronously) (Deprecated) Check Token. See tokenInfo @param tokenInfo Token object to be checked (required) @param callback The callback to be execute...
java
public com.squareup.okhttp.Call checkTokenAsync(TokenRequest tokenInfo, final ApiCallback<CheckTokenResponse> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback ...
[ "public", "com", ".", "squareup", ".", "okhttp", ".", "Call", "checkTokenAsync", "(", "TokenRequest", "tokenInfo", ",", "final", "ApiCallback", "<", "CheckTokenResponse", ">", "callback", ")", "throws", "ApiException", "{", "ProgressResponseBody", ".", "ProgressList...
Check Token (asynchronously) (Deprecated) Check Token. See tokenInfo @param tokenInfo Token object to be checked (required) @param callback The callback to be executed when the API call finishes @return The request call @throws ApiException If fail to process the API call, e.g. serializing the request body object
[ "Check", "Token", "(", "asynchronously", ")", "(", "Deprecated", ")", "Check", "Token", ".", "See", "tokenInfo" ]
train
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TokensApi.java#L152-L177
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.addAnnotationSafe
private JvmAnnotationReference addAnnotationSafe(JvmAnnotationTarget target, Class<?> annotationType, int value) { """ Add annotation safely. <p>This function creates an annotation reference. If the type for the annotation is not found; no annotation is added. @param target the receiver of the annotation. ...
java
private JvmAnnotationReference addAnnotationSafe(JvmAnnotationTarget target, Class<?> annotationType, int value) { assert target != null; assert annotationType != null; try { final JvmAnnotationReference result = this.typesFactory.createJvmAnnotationReference(); final JvmType jvmType = this.typeReferences.f...
[ "private", "JvmAnnotationReference", "addAnnotationSafe", "(", "JvmAnnotationTarget", "target", ",", "Class", "<", "?", ">", "annotationType", ",", "int", "value", ")", "{", "assert", "target", "!=", "null", ";", "assert", "annotationType", "!=", "null", ";", "t...
Add annotation safely. <p>This function creates an annotation reference. If the type for the annotation is not found; no annotation is added. @param target the receiver of the annotation. @param annotationType the type of the annotation. @param value the annotations value. @return the annotation reference or <code>nu...
[ "Add", "annotation", "safely", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L403-L426