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
fedups/com.obdobion.argument
src/main/java/com/obdobion/argument/input/NamespaceParser.java
NamespaceParser.unparseTokens
static public void unparseTokens(final String prefix, final List<ICmdLineArg<?>> args, final StringBuilder out) { """ <p> unparseTokens. </p> @param prefix a {@link java.lang.String} object. @param args a {@link java.util.List} object. @param out a {@link java.lang.StringBuilder} object. """ fin...
java
static public void unparseTokens(final String prefix, final List<ICmdLineArg<?>> args, final StringBuilder out) { final Iterator<ICmdLineArg<?>> aIter = args.iterator(); while (aIter.hasNext()) { final ICmdLineArg<?> arg = aIter.next(); if (arg.isParsed()) ...
[ "static", "public", "void", "unparseTokens", "(", "final", "String", "prefix", ",", "final", "List", "<", "ICmdLineArg", "<", "?", ">", ">", "args", ",", "final", "StringBuilder", "out", ")", "{", "final", "Iterator", "<", "ICmdLineArg", "<", "?", ">", "...
<p> unparseTokens. </p> @param prefix a {@link java.lang.String} object. @param args a {@link java.util.List} object. @param out a {@link java.lang.StringBuilder} object.
[ "<p", ">", "unparseTokens", ".", "<", "/", "p", ">" ]
train
https://github.com/fedups/com.obdobion.argument/blob/9679aebbeedaef4e592227842fa0e91410708a67/src/main/java/com/obdobion/argument/input/NamespaceParser.java#L151-L160
jbundle/jbundle
thin/base/screen/grid/src/main/java/org/jbundle/thin/base/screen/grid/JCellButton.java
JCellButton.init
public void init(Icon icon, String text) { """ Creates new JCellButton. The icon and text are reversed, because of a conflicting method in JButton. @param text the button text. @param icon The button icon. """ this.setText(text); this.setIcon(icon); this.setMargin(JScreenConstants.NO_...
java
public void init(Icon icon, String text) { this.setText(text); this.setIcon(icon); this.setMargin(JScreenConstants.NO_INSETS); }
[ "public", "void", "init", "(", "Icon", "icon", ",", "String", "text", ")", "{", "this", ".", "setText", "(", "text", ")", ";", "this", ".", "setIcon", "(", "icon", ")", ";", "this", ".", "setMargin", "(", "JScreenConstants", ".", "NO_INSETS", ")", ";...
Creates new JCellButton. The icon and text are reversed, because of a conflicting method in JButton. @param text the button text. @param icon The button icon.
[ "Creates", "new", "JCellButton", ".", "The", "icon", "and", "text", "are", "reversed", "because", "of", "a", "conflicting", "method", "in", "JButton", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/grid/src/main/java/org/jbundle/thin/base/screen/grid/JCellButton.java#L82-L87
auth0/auth0-java
src/main/java/com/auth0/client/mgmt/filter/QueryFilter.java
QueryFilter.withPage
public QueryFilter withPage(int pageNumber, int amountPerPage) { """ Filter by page @param pageNumber the page number to retrieve. @param amountPerPage the amount of items per page to retrieve. @return this filter instance """ parameters.put("page", pageNumber); parameters.put("per_page...
java
public QueryFilter withPage(int pageNumber, int amountPerPage) { parameters.put("page", pageNumber); parameters.put("per_page", amountPerPage); return this; }
[ "public", "QueryFilter", "withPage", "(", "int", "pageNumber", ",", "int", "amountPerPage", ")", "{", "parameters", ".", "put", "(", "\"page\"", ",", "pageNumber", ")", ";", "parameters", ".", "put", "(", "\"per_page\"", ",", "amountPerPage", ")", ";", "retu...
Filter by page @param pageNumber the page number to retrieve. @param amountPerPage the amount of items per page to retrieve. @return this filter instance
[ "Filter", "by", "page" ]
train
https://github.com/auth0/auth0-java/blob/b7bc099ee9c6cde5a87c4ecfebc6d811aeb1027c/src/main/java/com/auth0/client/mgmt/filter/QueryFilter.java#L57-L61
pmwmedia/tinylog
tinylog-impl/src/main/java/org/tinylog/core/ConfigurationParser.java
ConfigurationParser.getLocale
public static Locale getLocale() { """ Loads the locale from configuration. @return Locale from configuration or {@link Locale#ROOT} if no locale is configured """ String tag = Configuration.get("locale"); if (tag == null) { return Locale.ROOT; } else { String[] splittedTag = tag.split("_", MAX_...
java
public static Locale getLocale() { String tag = Configuration.get("locale"); if (tag == null) { return Locale.ROOT; } else { String[] splittedTag = tag.split("_", MAX_LOCALE_ARGUMENTS); if (splittedTag.length == 1) { return new Locale(splittedTag[0]); } else if (splittedTag.length == 2) { retu...
[ "public", "static", "Locale", "getLocale", "(", ")", "{", "String", "tag", "=", "Configuration", ".", "get", "(", "\"locale\"", ")", ";", "if", "(", "tag", "==", "null", ")", "{", "return", "Locale", ".", "ROOT", ";", "}", "else", "{", "String", "[",...
Loads the locale from configuration. @return Locale from configuration or {@link Locale#ROOT} if no locale is configured
[ "Loads", "the", "locale", "from", "configuration", "." ]
train
https://github.com/pmwmedia/tinylog/blob/d03d4ef84a1310155037e08ca8822a91697d1086/tinylog-impl/src/main/java/org/tinylog/core/ConfigurationParser.java#L50-L64
joniles/mpxj
src/main/java/net/sf/mpxj/ResourceAssignment.java
ResourceAssignment.setFinish
public void setFinish(int index, Date value) { """ Set a finish value. @param index finish index (1-10) @param value finish value """ set(selectField(AssignmentFieldLists.CUSTOM_FINISH, index), value); }
java
public void setFinish(int index, Date value) { set(selectField(AssignmentFieldLists.CUSTOM_FINISH, index), value); }
[ "public", "void", "setFinish", "(", "int", "index", ",", "Date", "value", ")", "{", "set", "(", "selectField", "(", "AssignmentFieldLists", ".", "CUSTOM_FINISH", ",", "index", ")", ",", "value", ")", ";", "}" ]
Set a finish value. @param index finish index (1-10) @param value finish value
[ "Set", "a", "finish", "value", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/ResourceAssignment.java#L1562-L1565
OpenLiberty/open-liberty
dev/com.ibm.ws.springboot.utility/src/com/ibm/ws/springboot/utility/tasks/BaseCommandTask.java
BaseCommandTask.getArgumentValue
protected String getArgumentValue(String arg, String[] args, ConsoleWrapper stdin, PrintStream stdout) { """ Gets the value for the specified argument String. No validation is done in the format of args as it is assumed to have been done previously. @param arg Argument name to resolve a value for @param...
java
protected String getArgumentValue(String arg, String[] args, ConsoleWrapper stdin, PrintStream stdout) { for (int i = 1; i < args.length; i++) { String key = args[i].split("=")[0]; if (key.equals(arg)) { return getValue(args[i]); } } return nul...
[ "protected", "String", "getArgumentValue", "(", "String", "arg", ",", "String", "[", "]", "args", ",", "ConsoleWrapper", "stdin", ",", "PrintStream", "stdout", ")", "{", "for", "(", "int", "i", "=", "1", ";", "i", "<", "args", ".", "length", ";", "i", ...
Gets the value for the specified argument String. No validation is done in the format of args as it is assumed to have been done previously. @param arg Argument name to resolve a value for @param args List of arguments. Assumes the script name is included and therefore minimum length is 2. @param stdin Standard...
[ "Gets", "the", "value", "for", "the", "specified", "argument", "String", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.springboot.utility/src/com/ibm/ws/springboot/utility/tasks/BaseCommandTask.java#L163-L171
autermann/yaml
src/main/java/com/github/autermann/yaml/nodes/YamlMappingNode.java
YamlMappingNode.put
public T put(YamlNode key, Long value) { """ Adds the specified {@code key}/{@code value} pair to this mapping. @param key the key @param value the value @return {@code this} """ return put(key, getNodeFactory().longNode(value)); }
java
public T put(YamlNode key, Long value) { return put(key, getNodeFactory().longNode(value)); }
[ "public", "T", "put", "(", "YamlNode", "key", ",", "Long", "value", ")", "{", "return", "put", "(", "key", ",", "getNodeFactory", "(", ")", ".", "longNode", "(", "value", ")", ")", ";", "}" ]
Adds the specified {@code key}/{@code value} pair to this mapping. @param key the key @param value the value @return {@code this}
[ "Adds", "the", "specified", "{", "@code", "key", "}", "/", "{", "@code", "value", "}", "pair", "to", "this", "mapping", "." ]
train
https://github.com/autermann/yaml/blob/5f8ab03e4fec3a2abe72c03561cdaa3a3936634d/src/main/java/com/github/autermann/yaml/nodes/YamlMappingNode.java#L540-L542
fcrepo4/fcrepo4
fcrepo-auth-webac/src/main/java/org/fcrepo/auth/webac/WebACFilter.java
WebACFilter.addURIToAuthorize
private void addURIToAuthorize(final HttpServletRequest httpRequest, final URI uri) { """ Add URIs to collect permissions information for. @param httpRequest the request. @param uri the uri to check. """ @SuppressWarnings("unchecked") Set<URI> targetURIs = (Set<URI>) httpRequest.getAttribut...
java
private void addURIToAuthorize(final HttpServletRequest httpRequest, final URI uri) { @SuppressWarnings("unchecked") Set<URI> targetURIs = (Set<URI>) httpRequest.getAttribute(URIS_TO_AUTHORIZE); if (targetURIs == null) { targetURIs = new HashSet<>(); httpRequest.setAttrib...
[ "private", "void", "addURIToAuthorize", "(", "final", "HttpServletRequest", "httpRequest", ",", "final", "URI", "uri", ")", "{", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "Set", "<", "URI", ">", "targetURIs", "=", "(", "Set", "<", "URI", ">", ")", ...
Add URIs to collect permissions information for. @param httpRequest the request. @param uri the uri to check.
[ "Add", "URIs", "to", "collect", "permissions", "information", "for", "." ]
train
https://github.com/fcrepo4/fcrepo4/blob/7489ad5bc8fb44e2442c93eceb7d97ac54553ab6/fcrepo-auth-webac/src/main/java/org/fcrepo/auth/webac/WebACFilter.java#L169-L177
h2oai/h2o-3
h2o-algos/src/main/java/hex/deeplearning/DeepLearningTask2.java
DeepLearningTask2.postGlobal
@Override protected void postGlobal() { """ Finish up the work after all nodes have reduced their models via the above reduce() method. All we do is average the models and add to the global training sample counter. After this returns, model_info() can be queried for the updated model. """ assert(_res.m...
java
@Override protected void postGlobal() { assert(_res.model_info().get_params()._replicate_training_data); super.postGlobal(); // model averaging (DeepLearningTask only computed the per-node models, each on all the data) _res.model_info().div(_res._chunk_node_count); _res.model_info().add_processed_...
[ "@", "Override", "protected", "void", "postGlobal", "(", ")", "{", "assert", "(", "_res", ".", "model_info", "(", ")", ".", "get_params", "(", ")", ".", "_replicate_training_data", ")", ";", "super", ".", "postGlobal", "(", ")", ";", "// model averaging (Dee...
Finish up the work after all nodes have reduced their models via the above reduce() method. All we do is average the models and add to the global training sample counter. After this returns, model_info() can be queried for the updated model.
[ "Finish", "up", "the", "work", "after", "all", "nodes", "have", "reduced", "their", "models", "via", "the", "above", "reduce", "()", "method", ".", "All", "we", "do", "is", "average", "the", "models", "and", "add", "to", "the", "global", "training", "sam...
train
https://github.com/h2oai/h2o-3/blob/845eb49dfeaadf638b6e2f779d82fac996391fad/h2o-algos/src/main/java/hex/deeplearning/DeepLearningTask2.java#L75-L88
joelittlejohn/jsonschema2pojo
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/rules/PrimitiveTypes.java
PrimitiveTypes.isPrimitive
public static boolean isPrimitive(String name, JCodeModel owner) { """ Check if a name string refers to a given type. @param name the name of a Java type @param owner the current code model for type generation @return <code>true</code> when the given name refers to a primitive Java type (e.g. "int"), other...
java
public static boolean isPrimitive(String name, JCodeModel owner) { try { return JType.parse(owner, name) != owner.VOID; } catch (IllegalArgumentException e) { return false; } }
[ "public", "static", "boolean", "isPrimitive", "(", "String", "name", ",", "JCodeModel", "owner", ")", "{", "try", "{", "return", "JType", ".", "parse", "(", "owner", ",", "name", ")", "!=", "owner", ".", "VOID", ";", "}", "catch", "(", "IllegalArgumentEx...
Check if a name string refers to a given type. @param name the name of a Java type @param owner the current code model for type generation @return <code>true</code> when the given name refers to a primitive Java type (e.g. "int"), otherwise <code>false</code>
[ "Check", "if", "a", "name", "string", "refers", "to", "a", "given", "type", "." ]
train
https://github.com/joelittlejohn/jsonschema2pojo/blob/0552b80db93214eb186e4ae45b40866cc1e7eb84/jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/rules/PrimitiveTypes.java#L43-L49
dfoerderreuther/console-builder
console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java
AskBuilder.answer
public <T extends Enum<T>> T answer(final Class<T> enumClass) { """ Return user input as T extends Enum<T>. Complete with enum values. @param enumClass Class of enum to return @param <T> the return type @return user input as enum value """ return answer(enumClass, "unknown value"); }
java
public <T extends Enum<T>> T answer(final Class<T> enumClass) { return answer(enumClass, "unknown value"); }
[ "public", "<", "T", "extends", "Enum", "<", "T", ">", ">", "T", "answer", "(", "final", "Class", "<", "T", ">", "enumClass", ")", "{", "return", "answer", "(", "enumClass", ",", "\"unknown value\"", ")", ";", "}" ]
Return user input as T extends Enum<T>. Complete with enum values. @param enumClass Class of enum to return @param <T> the return type @return user input as enum value
[ "Return", "user", "input", "as", "T", "extends", "Enum<T", ">", ".", "Complete", "with", "enum", "values", "." ]
train
https://github.com/dfoerderreuther/console-builder/blob/814bee4a1a812a3a39a9b239e5eccb525b944e65/console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java#L147-L149
redkale/redkale
src/org/redkale/net/http/HttpRequest.java
HttpRequest.getRequstURIPath
public short getRequstURIPath(String prefix, short defvalue) { """ 获取请求URL分段中含prefix段的short值 <br> 例如请求URL /pipes/record/query/type:10 <br> 获取type参数: short type = request.getRequstURIPath("type:", (short)0); @param prefix prefix段前缀 @param defvalue 默认short值 @return short值 """ String val =...
java
public short getRequstURIPath(String prefix, short defvalue) { String val = getRequstURIPath(prefix, null); try { return val == null ? defvalue : Short.parseShort(val); } catch (NumberFormatException e) { return defvalue; } }
[ "public", "short", "getRequstURIPath", "(", "String", "prefix", ",", "short", "defvalue", ")", "{", "String", "val", "=", "getRequstURIPath", "(", "prefix", ",", "null", ")", ";", "try", "{", "return", "val", "==", "null", "?", "defvalue", ":", "Short", ...
获取请求URL分段中含prefix段的short值 <br> 例如请求URL /pipes/record/query/type:10 <br> 获取type参数: short type = request.getRequstURIPath("type:", (short)0); @param prefix prefix段前缀 @param defvalue 默认short值 @return short值
[ "获取请求URL分段中含prefix段的short值", "<br", ">", "例如请求URL", "/", "pipes", "/", "record", "/", "query", "/", "type", ":", "10", "<br", ">", "获取type参数", ":", "short", "type", "=", "request", ".", "getRequstURIPath", "(", "type", ":", "(", "short", ")", "0", ")", ...
train
https://github.com/redkale/redkale/blob/ea5169b5c5ea7412fd762331c0c497165832e901/src/org/redkale/net/http/HttpRequest.java#L817-L824
mongodb/stitch-android-sdk
core/services/mongodb-remote/src/main/java/com/mongodb/stitch/core/services/mongodb/remote/sync/internal/DataSynchronizer.java
DataSynchronizer.sanitizeCachedDocument
private static BsonDocument sanitizeCachedDocument( final MongoCollection<BsonDocument> localCollection, final BsonDocument document, final BsonValue documentId ) { """ Given a local collection, a document fetched from that collection, and its _id, ensure that the document does not...
java
private static BsonDocument sanitizeCachedDocument( final MongoCollection<BsonDocument> localCollection, final BsonDocument document, final BsonValue documentId ) { if (document == null) { return null; } if (document.containsKey(DOCUMENT_VERSION_FIELD)) { final Bs...
[ "private", "static", "BsonDocument", "sanitizeCachedDocument", "(", "final", "MongoCollection", "<", "BsonDocument", ">", "localCollection", ",", "final", "BsonDocument", "document", ",", "final", "BsonValue", "documentId", ")", "{", "if", "(", "document", "==", "nu...
Given a local collection, a document fetched from that collection, and its _id, ensure that the document does not contain forbidden fields (currently just the document version field), and remove them from the document and the local collection. If no changes are made, the original document reference is returned. If chan...
[ "Given", "a", "local", "collection", "a", "document", "fetched", "from", "that", "collection", "and", "its", "_id", "ensure", "that", "the", "document", "does", "not", "contain", "forbidden", "fields", "(", "currently", "just", "the", "document", "version", "f...
train
https://github.com/mongodb/stitch-android-sdk/blob/159b9334b1f1a827285544be5ee20cdf7b04e4cc/core/services/mongodb-remote/src/main/java/com/mongodb/stitch/core/services/mongodb/remote/sync/internal/DataSynchronizer.java#L3137-L3158
google/closure-compiler
src/com/google/javascript/jscomp/AggressiveInlineAliases.java
AggressiveInlineAliases.tryReplacingAliasingAssignment
private boolean tryReplacingAliasingAssignment(Ref alias, Node aliasLhsNode) { """ Replaces the rhs of an aliasing assignment with null, unless the assignment result is used in a complex expression. """ // either VAR/CONST/LET or ASSIGN. Node assignment = aliasLhsNode.getParent(); if (!NodeUtil.is...
java
private boolean tryReplacingAliasingAssignment(Ref alias, Node aliasLhsNode) { // either VAR/CONST/LET or ASSIGN. Node assignment = aliasLhsNode.getParent(); if (!NodeUtil.isNameDeclaration(assignment) && NodeUtil.isExpressionResultUsed(assignment)) { // e.g. don't change "if (alias = someVariable)" t...
[ "private", "boolean", "tryReplacingAliasingAssignment", "(", "Ref", "alias", ",", "Node", "aliasLhsNode", ")", "{", "// either VAR/CONST/LET or ASSIGN.", "Node", "assignment", "=", "aliasLhsNode", ".", "getParent", "(", ")", ";", "if", "(", "!", "NodeUtil", ".", "...
Replaces the rhs of an aliasing assignment with null, unless the assignment result is used in a complex expression.
[ "Replaces", "the", "rhs", "of", "an", "aliasing", "assignment", "with", "null", "unless", "the", "assignment", "result", "is", "used", "in", "a", "complex", "expression", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/jscomp/AggressiveInlineAliases.java#L446-L460
astrapi69/jaulp-wicket
jaulp-wicket-base/src/main/java/de/alpharogroup/wicket/base/util/WicketImageExtensions.java
WicketImageExtensions.getImage
public static Image getImage(final String wicketId, final String contentType, final byte[] data) { """ Gets the image. @param wicketId the id from the image for the html template. @param contentType the content type @param data the data @return the image """ return new Image(wicketId, new DatabaseIm...
java
public static Image getImage(final String wicketId, final String contentType, final byte[] data) { return new Image(wicketId, new DatabaseImageResource(contentType, data)); }
[ "public", "static", "Image", "getImage", "(", "final", "String", "wicketId", ",", "final", "String", "contentType", ",", "final", "byte", "[", "]", "data", ")", "{", "return", "new", "Image", "(", "wicketId", ",", "new", "DatabaseImageResource", "(", "conten...
Gets the image. @param wicketId the id from the image for the html template. @param contentType the content type @param data the data @return the image
[ "Gets", "the", "image", "." ]
train
https://github.com/astrapi69/jaulp-wicket/blob/85d74368d00abd9bb97659b5794e38c0f8a013d4/jaulp-wicket-base/src/main/java/de/alpharogroup/wicket/base/util/WicketImageExtensions.java#L41-L44
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/SharesInner.java
SharesInner.createOrUpdate
public ShareInner createOrUpdate(String deviceName, String name, String resourceGroupName, ShareInner share) { """ Creates a new share or updates an existing share on the device. @param deviceName The device name. @param name The share name. @param resourceGroupName The resource group name. @param share The ...
java
public ShareInner createOrUpdate(String deviceName, String name, String resourceGroupName, ShareInner share) { return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, share).toBlocking().last().body(); }
[ "public", "ShareInner", "createOrUpdate", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ",", "ShareInner", "share", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGr...
Creates a new share or updates an existing share on the device. @param deviceName The device name. @param name The share name. @param resourceGroupName The resource group name. @param share The share properties. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if ...
[ "Creates", "a", "new", "share", "or", "updates", "an", "existing", "share", "on", "the", "device", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/SharesInner.java#L331-L333
mirage-sql/mirage
src/main/java/com/miragesql/miragesql/util/OgnlUtil.java
OgnlUtil.getValue
public static Object getValue(Object exp, Object root) { """ Returns the value using the OGNL expression and the root object. @param exp the OGNL expression @param root the root object @return the value @see #getValue(Object, Map, Object, String, int) """ return getValue(exp, root, null, 0);...
java
public static Object getValue(Object exp, Object root) { return getValue(exp, root, null, 0); }
[ "public", "static", "Object", "getValue", "(", "Object", "exp", ",", "Object", "root", ")", "{", "return", "getValue", "(", "exp", ",", "root", ",", "null", ",", "0", ")", ";", "}" ]
Returns the value using the OGNL expression and the root object. @param exp the OGNL expression @param root the root object @return the value @see #getValue(Object, Map, Object, String, int)
[ "Returns", "the", "value", "using", "the", "OGNL", "expression", "and", "the", "root", "object", "." ]
train
https://github.com/mirage-sql/mirage/blob/29a44b7ad267b5a48bc250cd0ef7d74813d46889/src/main/java/com/miragesql/miragesql/util/OgnlUtil.java#L48-L50
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/wishlists/WishlistItemUrl.java
WishlistItemUrl.getWishlistItemUrl
public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { """ Get Resource Url for GetWishlistItem @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only b...
java
public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatte...
[ "public", "static", "MozuUrl", "getWishlistItemUrl", "(", "String", "responseFields", ",", "String", "wishlistId", ",", "String", "wishlistItemId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/wishlists/{wishlistId}/items/{wishlis...
Get Resource Url for GetWishlistItem @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. @param wishlistId Unique ...
[ "Get", "Resource", "Url", "for", "GetWishlistItem" ]
train
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/wishlists/WishlistItemUrl.java#L23-L30
DV8FromTheWorld/JDA
src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java
PermissionUtil.checkPermission
public static boolean checkPermission(Channel channel, Member member, Permission... permissions) { """ Checks to see if the {@link net.dv8tion.jda.core.entities.Member Member} has the specified {@link net.dv8tion.jda.core.Permission Permissions} in the specified {@link net.dv8tion.jda.core.entities.Channel Channe...
java
public static boolean checkPermission(Channel channel, Member member, Permission... permissions) { Checks.notNull(channel, "Channel"); Checks.notNull(member, "Member"); Checks.notNull(permissions, "Permissions"); GuildImpl guild = (GuildImpl) channel.getGuild(); checkGuild(g...
[ "public", "static", "boolean", "checkPermission", "(", "Channel", "channel", ",", "Member", "member", ",", "Permission", "...", "permissions", ")", "{", "Checks", ".", "notNull", "(", "channel", ",", "\"Channel\"", ")", ";", "Checks", ".", "notNull", "(", "m...
Checks to see if the {@link net.dv8tion.jda.core.entities.Member Member} has the specified {@link net.dv8tion.jda.core.Permission Permissions} in the specified {@link net.dv8tion.jda.core.entities.Channel Channel}. This method properly deals with {@link net.dv8tion.jda.core.entities.PermissionOverride PermissionOverrid...
[ "Checks", "to", "see", "if", "the", "{", "@link", "net", ".", "dv8tion", ".", "jda", ".", "core", ".", "entities", ".", "Member", "Member", "}", "has", "the", "specified", "{", "@link", "net", ".", "dv8tion", ".", "jda", ".", "core", ".", "Permission...
train
https://github.com/DV8FromTheWorld/JDA/blob/8ecbbe354d03f6bf448411bba573d0d4c268b560/src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java#L293-L304
OpenTSDB/opentsdb
src/tsd/RpcHandler.java
RpcHandler.sendStatusAndClose
private void sendStatusAndClose(final Channel chan, final HttpResponseStatus status) { """ Helper method for sending a status-only HTTP response. This is used in cases where {@link #createQueryInstance(TSDB, HttpRequest, Channel)} failed to determine a query and we still want to return an error status to the cl...
java
private void sendStatusAndClose(final Channel chan, final HttpResponseStatus status) { if (chan.isConnected()) { final DefaultHttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, status); final ChannelFuture future = chan.write(response); future.addListener(ChannelFutureListener.C...
[ "private", "void", "sendStatusAndClose", "(", "final", "Channel", "chan", ",", "final", "HttpResponseStatus", "status", ")", "{", "if", "(", "chan", ".", "isConnected", "(", ")", ")", "{", "final", "DefaultHttpResponse", "response", "=", "new", "DefaultHttpRespo...
Helper method for sending a status-only HTTP response. This is used in cases where {@link #createQueryInstance(TSDB, HttpRequest, Channel)} failed to determine a query and we still want to return an error status to the client.
[ "Helper", "method", "for", "sending", "a", "status", "-", "only", "HTTP", "response", ".", "This", "is", "used", "in", "cases", "where", "{" ]
train
https://github.com/OpenTSDB/opentsdb/blob/3fc2d491c3c1ad397252c0a80203a69a3f9e3ef3/src/tsd/RpcHandler.java#L313-L319
Ordinastie/MalisisCore
src/main/java/net/malisis/core/util/callback/CallbackRegistry.java
CallbackRegistry.registerCallback
public void registerCallback(C callback, CallbackOption<P> option) { """ Registers a {@link ICallback} to be call when the {@link ICallbackPredicate} returns true. @param callback the callback @param option the option """ callbacks.add(Pair.of(callback, option)); callbacks = Ordering.natural() ....
java
public void registerCallback(C callback, CallbackOption<P> option) { callbacks.add(Pair.of(callback, option)); callbacks = Ordering.natural() .reverse() .onResultOf(Priority::ordinal) .onResultOf(CallbackOption<P>::getPriority) .onResultOf(Pair<C, CallbackOption<P>>::getRight) .s...
[ "public", "void", "registerCallback", "(", "C", "callback", ",", "CallbackOption", "<", "P", ">", "option", ")", "{", "callbacks", ".", "add", "(", "Pair", ".", "of", "(", "callback", ",", "option", ")", ")", ";", "callbacks", "=", "Ordering", ".", "na...
Registers a {@link ICallback} to be call when the {@link ICallbackPredicate} returns true. @param callback the callback @param option the option
[ "Registers", "a", "{", "@link", "ICallback", "}", "to", "be", "call", "when", "the", "{", "@link", "ICallbackPredicate", "}", "returns", "true", "." ]
train
https://github.com/Ordinastie/MalisisCore/blob/4f8e1fa462d5c372fc23414482ba9f429881cc54/src/main/java/net/malisis/core/util/callback/CallbackRegistry.java#L76-L85
urish/gwt-titanium
src/main/java/org/urish/gwtit/client/util/Timers.java
Timers.setInterval
public static Timer setInterval(int milliseconds, TimerCallback callback) { """ Defines a repeating timer with a specified interval. @param milliseconds Interval between timer shots. @param callback Callback to fire on each timer shot. @return The new interval object """ IntervalTimer interval = new Int...
java
public static Timer setInterval(int milliseconds, TimerCallback callback) { IntervalTimer interval = new IntervalTimer(); interval.setId(nativeSetInterval(milliseconds, callback, interval)); return interval; }
[ "public", "static", "Timer", "setInterval", "(", "int", "milliseconds", ",", "TimerCallback", "callback", ")", "{", "IntervalTimer", "interval", "=", "new", "IntervalTimer", "(", ")", ";", "interval", ".", "setId", "(", "nativeSetInterval", "(", "milliseconds", ...
Defines a repeating timer with a specified interval. @param milliseconds Interval between timer shots. @param callback Callback to fire on each timer shot. @return The new interval object
[ "Defines", "a", "repeating", "timer", "with", "a", "specified", "interval", "." ]
train
https://github.com/urish/gwt-titanium/blob/5b53a312093a84f235366932430f02006a570612/src/main/java/org/urish/gwtit/client/util/Timers.java#L127-L131
jmrozanec/cron-utils
src/main/java/com/cronutils/descriptor/refactor/SecondsDescriptor.java
SecondsDescriptor.createAndDescription
@VisibleForTesting StringBuilder createAndDescription(final StringBuilder builder, final List<FieldExpression> expressions) { """ Creates human readable description for And element. @param builder - StringBuilder instance to which description will be appended @param expressions - field expressions @re...
java
@VisibleForTesting StringBuilder createAndDescription(final StringBuilder builder, final List<FieldExpression> expressions) { if ((expressions.size() - 2) >= 0) { for (int j = 0; j < expressions.size() - 2; j++) { builder.append(String.format(" %s, ", describe(expressions.get(j),...
[ "@", "VisibleForTesting", "StringBuilder", "createAndDescription", "(", "final", "StringBuilder", "builder", ",", "final", "List", "<", "FieldExpression", ">", "expressions", ")", "{", "if", "(", "(", "expressions", ".", "size", "(", ")", "-", "2", ")", ">=", ...
Creates human readable description for And element. @param builder - StringBuilder instance to which description will be appended @param expressions - field expressions @return same StringBuilder instance as parameter
[ "Creates", "human", "readable", "description", "for", "And", "element", "." ]
train
https://github.com/jmrozanec/cron-utils/blob/adac5ec8fd9160b082f9762a6eedea0715731170/src/main/java/com/cronutils/descriptor/refactor/SecondsDescriptor.java#L167-L178
ironjacamar/ironjacamar
codegenerator/src/main/java/org/ironjacamar/codegenerator/MethodForConnection.java
MethodForConnection.newParam
public MethodParam newParam(String name, String type) { """ new param @param name param name @param type param type @return new param """ MethodParam p = new MethodParam(); p.setName(name); p.setType(type); return p; }
java
public MethodParam newParam(String name, String type) { MethodParam p = new MethodParam(); p.setName(name); p.setType(type); return p; }
[ "public", "MethodParam", "newParam", "(", "String", "name", ",", "String", "type", ")", "{", "MethodParam", "p", "=", "new", "MethodParam", "(", ")", ";", "p", ".", "setName", "(", "name", ")", ";", "p", ".", "setType", "(", "type", ")", ";", "return...
new param @param name param name @param type param type @return new param
[ "new", "param" ]
train
https://github.com/ironjacamar/ironjacamar/blob/f0389ee7e62aa8b40ba09b251edad76d220ea796/codegenerator/src/main/java/org/ironjacamar/codegenerator/MethodForConnection.java#L66-L72
facebook/fresco
drawee/src/main/java/com/facebook/drawee/view/SimpleDraweeView.java
SimpleDraweeView.setActualImageResource
public void setActualImageResource(@DrawableRes int resourceId, @Nullable Object callerContext) { """ Sets the actual image resource to the given resource ID. Similar to {@link #setImageResource(int)}, this sets the displayed image to the given resource. However, {@link #setImageResource(int)} bypasses all Dra...
java
public void setActualImageResource(@DrawableRes int resourceId, @Nullable Object callerContext) { setImageURI(UriUtil.getUriForResourceId(resourceId), callerContext); }
[ "public", "void", "setActualImageResource", "(", "@", "DrawableRes", "int", "resourceId", ",", "@", "Nullable", "Object", "callerContext", ")", "{", "setImageURI", "(", "UriUtil", ".", "getUriForResourceId", "(", "resourceId", ")", ",", "callerContext", ")", ";", ...
Sets the actual image resource to the given resource ID. Similar to {@link #setImageResource(int)}, this sets the displayed image to the given resource. However, {@link #setImageResource(int)} bypasses all Drawee functionality and makes the view act as a normal {@link android.widget.ImageView}, whereas this method kee...
[ "Sets", "the", "actual", "image", "resource", "to", "the", "given", "resource", "ID", "." ]
train
https://github.com/facebook/fresco/blob/0b85879d51c5036d5e46e627a6651afefc0b971a/drawee/src/main/java/com/facebook/drawee/view/SimpleDraweeView.java#L208-L210
fhoeben/hsac-fitnesse-fixtures
src/main/java/nl/hsac/fitnesse/fixture/fit/OurColumnFixture.java
OurColumnFixture.parseIntArg
protected Integer parseIntArg(int index, Integer defaultValue) { """ Gets fixture parameter (i.e. extra column in header row). Please note this can not be called from a constructor, as the parameters will not have been initialized yet! @param index index (zero based) to get value from. @param defaultValue value...
java
protected Integer parseIntArg(int index, Integer defaultValue) { Integer result = defaultValue; try { String argValue = getStringArg(index); if (argValue != null && !"".equals(argValue)) { result = Integer.valueOf(argValue); } } catch (NumberFo...
[ "protected", "Integer", "parseIntArg", "(", "int", "index", ",", "Integer", "defaultValue", ")", "{", "Integer", "result", "=", "defaultValue", ";", "try", "{", "String", "argValue", "=", "getStringArg", "(", "index", ")", ";", "if", "(", "argValue", "!=", ...
Gets fixture parameter (i.e. extra column in header row). Please note this can not be called from a constructor, as the parameters will not have been initialized yet! @param index index (zero based) to get value from. @param defaultValue value to use if parameter is not present or was no int. @return parameter value, i...
[ "Gets", "fixture", "parameter", "(", "i", ".", "e", ".", "extra", "column", "in", "header", "row", ")", ".", "Please", "note", "this", "can", "not", "be", "called", "from", "a", "constructor", "as", "the", "parameters", "will", "not", "have", "been", "...
train
https://github.com/fhoeben/hsac-fitnesse-fixtures/blob/4e9018d7386a9aa65bfcbf07eb28ae064edd1732/src/main/java/nl/hsac/fitnesse/fixture/fit/OurColumnFixture.java#L45-L56
line/armeria
core/src/main/java/com/linecorp/armeria/server/streaming/JsonTextSequences.java
JsonTextSequences.fromStream
public static HttpResponse fromStream(Stream<?> contentStream, Executor executor, ObjectMapper mapper) { """ Creates a new JSON Text Sequences from the specified {@link Stream}. @param contentStream the {@link Stream} which publishes the objects supposed to send as cont...
java
public static HttpResponse fromStream(Stream<?> contentStream, Executor executor, ObjectMapper mapper) { return fromStream(defaultHttpHeaders, contentStream, HttpHeaders.EMPTY_HEADERS, executor, mapper); }
[ "public", "static", "HttpResponse", "fromStream", "(", "Stream", "<", "?", ">", "contentStream", ",", "Executor", "executor", ",", "ObjectMapper", "mapper", ")", "{", "return", "fromStream", "(", "defaultHttpHeaders", ",", "contentStream", ",", "HttpHeaders", ".",...
Creates a new JSON Text Sequences from the specified {@link Stream}. @param contentStream the {@link Stream} which publishes the objects supposed to send as contents @param executor the executor which iterates the stream
[ "Creates", "a", "new", "JSON", "Text", "Sequences", "from", "the", "specified", "{", "@link", "Stream", "}", "." ]
train
https://github.com/line/armeria/blob/67d29e019fd35a35f89c45cc8f9119ff9b12b44d/core/src/main/java/com/linecorp/armeria/server/streaming/JsonTextSequences.java#L166-L169
gallandarakhneorg/afc
core/maths/mathtree/src/main/java/org/arakhne/afc/math/tree/node/AbstractParentlessTreeNode.java
AbstractParentlessTreeNode.firePropertyDataChanged
protected final void firePropertyDataChanged(Collection<? extends D> oldData, Collection<? extends D> newData) { """ Fire the event for the changes of the user data associated to a node. @param oldData is the list of old values @param newData is the list of new values """ firePropertyDataChanged(new Tree...
java
protected final void firePropertyDataChanged(Collection<? extends D> oldData, Collection<? extends D> newData) { firePropertyDataChanged(new TreeDataEvent(this, oldData, newData, this.data)); }
[ "protected", "final", "void", "firePropertyDataChanged", "(", "Collection", "<", "?", "extends", "D", ">", "oldData", ",", "Collection", "<", "?", "extends", "D", ">", "newData", ")", "{", "firePropertyDataChanged", "(", "new", "TreeDataEvent", "(", "this", ",...
Fire the event for the changes of the user data associated to a node. @param oldData is the list of old values @param newData is the list of new values
[ "Fire", "the", "event", "for", "the", "changes", "of", "the", "user", "data", "associated", "to", "a", "node", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/core/maths/mathtree/src/main/java/org/arakhne/afc/math/tree/node/AbstractParentlessTreeNode.java#L427-L429
elki-project/elki
elki-index-mtree/src/main/java/de/lmu/ifi/dbs/elki/index/tree/metrical/mtreevariants/strategies/split/MSTSplit.java
MSTSplit.edgelength
private static double edgelength(double[][] matrix, int[] edges, int i) { """ Length of edge i. @param matrix Distance matrix @param edges Edge list @param i Edge number @return Edge length """ i <<= 1; return matrix[edges[i]][edges[i + 1]]; }
java
private static double edgelength(double[][] matrix, int[] edges, int i) { i <<= 1; return matrix[edges[i]][edges[i + 1]]; }
[ "private", "static", "double", "edgelength", "(", "double", "[", "]", "[", "]", "matrix", ",", "int", "[", "]", "edges", ",", "int", "i", ")", "{", "i", "<<=", "1", ";", "return", "matrix", "[", "edges", "[", "i", "]", "]", "[", "edges", "[", "...
Length of edge i. @param matrix Distance matrix @param edges Edge list @param i Edge number @return Edge length
[ "Length", "of", "edge", "i", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-index-mtree/src/main/java/de/lmu/ifi/dbs/elki/index/tree/metrical/mtreevariants/strategies/split/MSTSplit.java#L183-L186
google/closure-compiler
src/com/google/javascript/jscomp/ProcessTweaks.java
ProcessTweaks.stripAllCalls
private void stripAllCalls(Map<String, TweakInfo> tweakInfos) { """ Removes all CALL nodes in the given TweakInfos, replacing calls to getter functions with the tweak's default value. """ for (TweakInfo tweakInfo : tweakInfos.values()) { boolean isRegistered = tweakInfo.isRegistered(); for (Tw...
java
private void stripAllCalls(Map<String, TweakInfo> tweakInfos) { for (TweakInfo tweakInfo : tweakInfos.values()) { boolean isRegistered = tweakInfo.isRegistered(); for (TweakFunctionCall functionCall : tweakInfo.functionCalls) { Node callNode = functionCall.callNode; Node parent = callNod...
[ "private", "void", "stripAllCalls", "(", "Map", "<", "String", ",", "TweakInfo", ">", "tweakInfos", ")", "{", "for", "(", "TweakInfo", "tweakInfo", ":", "tweakInfos", ".", "values", "(", ")", ")", "{", "boolean", "isRegistered", "=", "tweakInfo", ".", "isR...
Removes all CALL nodes in the given TweakInfos, replacing calls to getter functions with the tweak's default value.
[ "Removes", "all", "CALL", "nodes", "in", "the", "given", "TweakInfos", "replacing", "calls", "to", "getter", "functions", "with", "the", "tweak", "s", "default", "value", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/jscomp/ProcessTweaks.java#L236-L264
projectodd/stilts
stomp-server-core/src/main/java/org/projectodd/stilts/stomp/server/protocol/websockets/ServerHandshakeHandler.java
ServerHandshakeHandler.reconfigureUpstream
protected void reconfigureUpstream(ChannelPipeline pipeline, Handshake handshake) { """ Remove HTTP handlers, replace with web-socket handlers. @param pipeline The pipeline to reconfigure. """ pipeline.replace( "http-decoder", "websockets-decoder", handshake.newDecoder() ); ChannelHandler[] ...
java
protected void reconfigureUpstream(ChannelPipeline pipeline, Handshake handshake) { pipeline.replace( "http-decoder", "websockets-decoder", handshake.newDecoder() ); ChannelHandler[] additionalHandlers = handshake.newAdditionalHandlers(); String currentTail = "websockets-decoder"; for (C...
[ "protected", "void", "reconfigureUpstream", "(", "ChannelPipeline", "pipeline", ",", "Handshake", "handshake", ")", "{", "pipeline", ".", "replace", "(", "\"http-decoder\"", ",", "\"websockets-decoder\"", ",", "handshake", ".", "newDecoder", "(", ")", ")", ";", "C...
Remove HTTP handlers, replace with web-socket handlers. @param pipeline The pipeline to reconfigure.
[ "Remove", "HTTP", "handlers", "replace", "with", "web", "-", "socket", "handlers", "." ]
train
https://github.com/projectodd/stilts/blob/6ba81d4162325b98f591c206520476cf575d0567/stomp-server-core/src/main/java/org/projectodd/stilts/stomp/server/protocol/websockets/ServerHandshakeHandler.java#L198-L207
nguyenq/tess4j
src/main/java/net/sourceforge/tess4j/Tesseract1.java
Tesseract1.doOCR
@Override public String doOCR(BufferedImage bi, Rectangle rect) throws TesseractException { """ Performs OCR operation. @param bi a buffered image @param rect the bounding rectangle defines the region of the image to be recognized. A rectangle of zero dimension or <code>null</code> indicates the whole im...
java
@Override public String doOCR(BufferedImage bi, Rectangle rect) throws TesseractException { try { return doOCR(ImageIOHelper.getIIOImageList(bi), rect); } catch (Exception e) { logger.error(e.getMessage(), e); throw new TesseractException(e); } }
[ "@", "Override", "public", "String", "doOCR", "(", "BufferedImage", "bi", ",", "Rectangle", "rect", ")", "throws", "TesseractException", "{", "try", "{", "return", "doOCR", "(", "ImageIOHelper", ".", "getIIOImageList", "(", "bi", ")", ",", "rect", ")", ";", ...
Performs OCR operation. @param bi a buffered image @param rect the bounding rectangle defines the region of the image to be recognized. A rectangle of zero dimension or <code>null</code> indicates the whole image. @return the recognized text @throws TesseractException
[ "Performs", "OCR", "operation", "." ]
train
https://github.com/nguyenq/tess4j/blob/cfcd4a8a44042f150b4aaf7bdf5ffc485a2236e1/src/main/java/net/sourceforge/tess4j/Tesseract1.java#L253-L261
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_12_01/implementation/JobCancellationsInner.java
JobCancellationsInner.triggerAsync
public Observable<Void> triggerAsync(String vaultName, String resourceGroupName, String jobName) { """ Cancels a job. This is an asynchronous operation. To know the status of the cancellation, call GetCancelOperationResult API. @param vaultName The name of the recovery services vault. @param resourceGroupName ...
java
public Observable<Void> triggerAsync(String vaultName, String resourceGroupName, String jobName) { return triggerWithServiceResponseAsync(vaultName, resourceGroupName, jobName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { ...
[ "public", "Observable", "<", "Void", ">", "triggerAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "jobName", ")", "{", "return", "triggerWithServiceResponseAsync", "(", "vaultName", ",", "resourceGroupName", ",", "jobName", ")"...
Cancels a job. This is an asynchronous operation. To know the status of the cancellation, call GetCancelOperationResult API. @param vaultName The name of the recovery services vault. @param resourceGroupName The name of the resource group where the recovery services vault is present. @param jobName Name of the job to ...
[ "Cancels", "a", "job", ".", "This", "is", "an", "asynchronous", "operation", ".", "To", "know", "the", "status", "of", "the", "cancellation", "call", "GetCancelOperationResult", "API", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_12_01/implementation/JobCancellationsInner.java#L97-L104
paypal/SeLion
client/src/main/java/com/paypal/selion/internal/platform/grid/LocalNode.java
LocalNode.checkForPresenceOf
private boolean checkForPresenceOf(ConfigProperty property, String systemProperty, String driverBinary) { """ Return true when one of the following conditions is met <br> <br> 1. ConfigProperty for driverBinary is specified and not blank or null. <br> 2. System Property which Selenium uses to find driverBinary ...
java
private boolean checkForPresenceOf(ConfigProperty property, String systemProperty, String driverBinary) { if (StringUtils.isBlank(Config.getConfigProperty(property)) && System.getProperty(systemProperty) == null) { // check the CWD and PATH for the driverBinary String location = new Exec...
[ "private", "boolean", "checkForPresenceOf", "(", "ConfigProperty", "property", ",", "String", "systemProperty", ",", "String", "driverBinary", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "Config", ".", "getConfigProperty", "(", "property", ")", ")", ...
Return true when one of the following conditions is met <br> <br> 1. ConfigProperty for driverBinary is specified and not blank or null. <br> 2. System Property which Selenium uses to find driverBinary is present. <br> 3. driverBinary exists in the current working directory OR the PATH <br>
[ "Return", "true", "when", "one", "of", "the", "following", "conditions", "is", "met", "<br", ">", "<br", ">", "1", ".", "ConfigProperty", "for", "driverBinary", "is", "specified", "and", "not", "blank", "or", "null", ".", "<br", ">", "2", ".", "System", ...
train
https://github.com/paypal/SeLion/blob/694d12d0df76db48d0360b16192770c6a4fbdfd2/client/src/main/java/com/paypal/selion/internal/platform/grid/LocalNode.java#L171-L178
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/io/dxfdwg/libs/dwg/utils/ByteUtils.java
ByteUtils.bytesToInt
public static final int bytesToInt( byte[] data, int[] offset ) { """ Return the <code>int</code> represented by the bytes in <code>data</code> staring at offset <code>offset[0]</code>. @param data the array from which to read @param offset A single element array whose first element is the index in data from...
java
public static final int bytesToInt( byte[] data, int[] offset ) { /** * TODO: We use network-order within OceanStore, but temporarily * supporting intel-order to work with some JNI code until JNI code is * set to interoperate with network-order. */ int result = 0; ...
[ "public", "static", "final", "int", "bytesToInt", "(", "byte", "[", "]", "data", ",", "int", "[", "]", "offset", ")", "{", "/**\n * TODO: We use network-order within OceanStore, but temporarily\n * supporting intel-order to work with some JNI code until JNI code is\...
Return the <code>int</code> represented by the bytes in <code>data</code> staring at offset <code>offset[0]</code>. @param data the array from which to read @param offset A single element array whose first element is the index in data from which to begin reading on function entry, and which on function exit has been i...
[ "Return", "the", "<code", ">", "int<", "/", "code", ">", "represented", "by", "the", "bytes", "in", "<code", ">", "data<", "/", "code", ">", "staring", "at", "offset", "<code", ">", "offset", "[", "0", "]", "<", "/", "code", ">", "." ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/io/dxfdwg/libs/dwg/utils/ByteUtils.java#L49-L63
salesforce/Argus
ArgusCore/src/main/java/com/salesforce/dva/argus/entity/Notification.java
Notification.setCooldownExpirationByTriggerAndMetric
public void setCooldownExpirationByTriggerAndMetric(Trigger trigger, Metric metric, long cooldownExpiration) { """ Sets the cool down expiration time of the notification given a metric,trigger combination. @param trigger The trigger @param metric The metric @param cooldownExpiration cool down expiratio...
java
public void setCooldownExpirationByTriggerAndMetric(Trigger trigger, Metric metric, long cooldownExpiration) { requireArgument(cooldownExpiration >= 0, "Cool down expiration time cannot be negative."); String key = _hashTriggerAndMetric(trigger, metric); this.cooldownExpirationByTriggerAndMetric.put(key, c...
[ "public", "void", "setCooldownExpirationByTriggerAndMetric", "(", "Trigger", "trigger", ",", "Metric", "metric", ",", "long", "cooldownExpiration", ")", "{", "requireArgument", "(", "cooldownExpiration", ">=", "0", ",", "\"Cool down expiration time cannot be negative.\"", "...
Sets the cool down expiration time of the notification given a metric,trigger combination. @param trigger The trigger @param metric The metric @param cooldownExpiration cool down expiration time in milliseconds
[ "Sets", "the", "cool", "down", "expiration", "time", "of", "the", "notification", "given", "a", "metric", "trigger", "combination", "." ]
train
https://github.com/salesforce/Argus/blob/121b59a268da264316cded6a3e9271366a23cd86/ArgusCore/src/main/java/com/salesforce/dva/argus/entity/Notification.java#L510-L515
hazelcast/hazelcast
hazelcast-client/src/main/java/com/hazelcast/client/cache/impl/ClientCacheHelper.java
ClientCacheHelper.getCacheConfig
static <K, V> CacheConfig<K, V> getCacheConfig(HazelcastClientInstanceImpl client, String cacheName, String simpleCacheName) { """ Gets the cache configuration from the server. @param client the client instance which will send the operation to server ...
java
static <K, V> CacheConfig<K, V> getCacheConfig(HazelcastClientInstanceImpl client, String cacheName, String simpleCacheName) { ClientMessage request = CacheGetConfigCodec.encodeRequest(cacheName, simpleCacheName); try { int partitionId = cli...
[ "static", "<", "K", ",", "V", ">", "CacheConfig", "<", "K", ",", "V", ">", "getCacheConfig", "(", "HazelcastClientInstanceImpl", "client", ",", "String", "cacheName", ",", "String", "simpleCacheName", ")", "{", "ClientMessage", "request", "=", "CacheGetConfigCod...
Gets the cache configuration from the server. @param client the client instance which will send the operation to server @param cacheName full cache name with prefixes @param simpleCacheName pure cache name without any prefix @param <K> type of the key of the cache @param <V> type...
[ "Gets", "the", "cache", "configuration", "from", "the", "server", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast-client/src/main/java/com/hazelcast/client/cache/impl/ClientCacheHelper.java#L68-L82
square/javapoet
src/main/java/com/squareup/javapoet/TypeVariableName.java
TypeVariableName.get
public static TypeVariableName get(String name, Type... bounds) { """ Returns type variable named {@code name} with {@code bounds}. """ return TypeVariableName.of(name, TypeName.list(bounds)); }
java
public static TypeVariableName get(String name, Type... bounds) { return TypeVariableName.of(name, TypeName.list(bounds)); }
[ "public", "static", "TypeVariableName", "get", "(", "String", "name", ",", "Type", "...", "bounds", ")", "{", "return", "TypeVariableName", ".", "of", "(", "name", ",", "TypeName", ".", "list", "(", "bounds", ")", ")", ";", "}" ]
Returns type variable named {@code name} with {@code bounds}.
[ "Returns", "type", "variable", "named", "{" ]
train
https://github.com/square/javapoet/blob/0f93da9a3d9a1da8d29fc993409fcf83d40452bc/src/main/java/com/squareup/javapoet/TypeVariableName.java#L98-L100
EdwardRaff/JSAT
JSAT/src/jsat/io/JSATData.java
JSATData.loadSimple
public static SimpleDataSet loadSimple(InputStream inRaw, DataStore backingStore) throws IOException { """ Loads in a JSAT dataset as a {@link SimpleDataSet}. So long as the input stream is valid, this will not fail. @param inRaw the input stream, caller should buffer it @param backingStore the data store to ...
java
public static SimpleDataSet loadSimple(InputStream inRaw, DataStore backingStore) throws IOException { return (SimpleDataSet) load(inRaw, true, backingStore); }
[ "public", "static", "SimpleDataSet", "loadSimple", "(", "InputStream", "inRaw", ",", "DataStore", "backingStore", ")", "throws", "IOException", "{", "return", "(", "SimpleDataSet", ")", "load", "(", "inRaw", ",", "true", ",", "backingStore", ")", ";", "}" ]
Loads in a JSAT dataset as a {@link SimpleDataSet}. So long as the input stream is valid, this will not fail. @param inRaw the input stream, caller should buffer it @param backingStore the data store to put all data points in @return a SimpleDataSet object @throws IOException
[ "Loads", "in", "a", "JSAT", "dataset", "as", "a", "{", "@link", "SimpleDataSet", "}", ".", "So", "long", "as", "the", "input", "stream", "is", "valid", "this", "will", "not", "fail", "." ]
train
https://github.com/EdwardRaff/JSAT/blob/0ff53b7b39684b2379cc1da522f5b3a954b15cfb/JSAT/src/jsat/io/JSATData.java#L537-L540
j-a-w-r/jawr-main-repo
jawr-dwr2.x/jawr-dwr2.x-webapp-sample/src/main/java/org/getahead/dwrdemo/cli/JettyLauncher.java
JettyLauncher.main
public static void main(String[] args) throws Exception { """ Sets up and runs server. @param args The command line arguments @throws Exception Don't care because top level """ Server server = new Server(8080); server.setStopAtShutdown(true); server.setHandler(new WebAppContext("web",...
java
public static void main(String[] args) throws Exception { Server server = new Server(8080); server.setStopAtShutdown(true); server.setHandler(new WebAppContext("web","/dwr")); server.start(); server.join(); }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "Exception", "{", "Server", "server", "=", "new", "Server", "(", "8080", ")", ";", "server", ".", "setStopAtShutdown", "(", "true", ")", ";", "server", ".", "setHandler",...
Sets up and runs server. @param args The command line arguments @throws Exception Don't care because top level
[ "Sets", "up", "and", "runs", "server", "." ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr-dwr2.x/jawr-dwr2.x-webapp-sample/src/main/java/org/getahead/dwrdemo/cli/JettyLauncher.java#L17-L24
james-hu/jabb-core
src/main/java/net/sf/jabb/util/db/ColumnMetaData.java
ColumnMetaData.createList
static public List<ColumnMetaData> createList(ResultSetMetaData m) throws SQLException { """ Get all the column meta data and put them into a list in their default order @param m the result set meta data @return a list of column meta data @throws SQLException """ List<ColumnMetaData> result = new ArrayLi...
java
static public List<ColumnMetaData> createList(ResultSetMetaData m) throws SQLException{ List<ColumnMetaData> result = new ArrayList<ColumnMetaData>(m.getColumnCount()); for (int i = 1; i <= m.getColumnCount(); i ++){ ColumnMetaData cm = new ColumnMetaData(m, i); result.add(cm); } return result; }
[ "static", "public", "List", "<", "ColumnMetaData", ">", "createList", "(", "ResultSetMetaData", "m", ")", "throws", "SQLException", "{", "List", "<", "ColumnMetaData", ">", "result", "=", "new", "ArrayList", "<", "ColumnMetaData", ">", "(", "m", ".", "getColum...
Get all the column meta data and put them into a list in their default order @param m the result set meta data @return a list of column meta data @throws SQLException
[ "Get", "all", "the", "column", "meta", "data", "and", "put", "them", "into", "a", "list", "in", "their", "default", "order" ]
train
https://github.com/james-hu/jabb-core/blob/bceed441595c5e5195a7418795f03b69fa7b61e4/src/main/java/net/sf/jabb/util/db/ColumnMetaData.java#L100-L107
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ADMMessage.java
ADMMessage.withData
public ADMMessage withData(java.util.Map<String, String> data) { """ The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object @param data The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' obj...
java
public ADMMessage withData(java.util.Map<String, String> data) { setData(data); return this; }
[ "public", "ADMMessage", "withData", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "data", ")", "{", "setData", "(", "data", ")", ";", "return", "this", ";", "}" ]
The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object @param data The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object @return Returns a reference to this object so that method calls can be chai...
[ "The", "data", "payload", "used", "for", "a", "silent", "push", ".", "This", "payload", "is", "added", "to", "the", "notifications", "data", ".", "pinpoint", ".", "jsonBody", "object" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ADMMessage.java#L275-L278
f2prateek/dart
henson/src/main/java/dart/henson/Bundler.java
Bundler.put
public Bundler put(String key, Parcelable[] value) { """ Inserts an array of Parcelable values into the mapping of the underlying Bundle, replacing any existing value for the given key. Either key or value may be null. @param key a String, or null @param value an array of Parcelable objects, or null @return ...
java
public Bundler put(String key, Parcelable[] value) { delegate.putParcelableArray(key, value); return this; }
[ "public", "Bundler", "put", "(", "String", "key", ",", "Parcelable", "[", "]", "value", ")", "{", "delegate", ".", "putParcelableArray", "(", "key", ",", "value", ")", ";", "return", "this", ";", "}" ]
Inserts an array of Parcelable values into the mapping of the underlying Bundle, replacing any existing value for the given key. Either key or value may be null. @param key a String, or null @param value an array of Parcelable objects, or null @return this bundler instance to chain method calls
[ "Inserts", "an", "array", "of", "Parcelable", "values", "into", "the", "mapping", "of", "the", "underlying", "Bundle", "replacing", "any", "existing", "value", "for", "the", "given", "key", ".", "Either", "key", "or", "value", "may", "be", "null", "." ]
train
https://github.com/f2prateek/dart/blob/7163b1b148e5141817975ae7dad99d58a8589aeb/henson/src/main/java/dart/henson/Bundler.java#L361-L364
samskivert/samskivert
src/main/java/com/samskivert/swing/util/SwingUtil.java
SwingUtil.setOpaque
public static void setOpaque (JComponent comp, final boolean opaque) { """ Set the opacity on the specified component, <em>and all of its children.</em> """ applyToHierarchy(comp, new ComponentOp() { public void apply (Component comp) { if (comp instanceof JComponent) { ...
java
public static void setOpaque (JComponent comp, final boolean opaque) { applyToHierarchy(comp, new ComponentOp() { public void apply (Component comp) { if (comp instanceof JComponent) { ((JComponent) comp).setOpaque(opaque); } } ...
[ "public", "static", "void", "setOpaque", "(", "JComponent", "comp", ",", "final", "boolean", "opaque", ")", "{", "applyToHierarchy", "(", "comp", ",", "new", "ComponentOp", "(", ")", "{", "public", "void", "apply", "(", "Component", "comp", ")", "{", "if",...
Set the opacity on the specified component, <em>and all of its children.</em>
[ "Set", "the", "opacity", "on", "the", "specified", "component", "<em", ">", "and", "all", "of", "its", "children", ".", "<", "/", "em", ">" ]
train
https://github.com/samskivert/samskivert/blob/a64d9ef42b69819bdb2c66bddac6a64caef928b6/src/main/java/com/samskivert/swing/util/SwingUtil.java#L262-L271
jlinn/quartz-redis-jobstore
src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java
AbstractRedisStorage.replaceTrigger
public boolean replaceTrigger(TriggerKey triggerKey, OperableTrigger newTrigger, T jedis) throws JobPersistenceException, ClassNotFoundException { """ Remove (delete) the <code>{@link org.quartz.Trigger}</code> with the given key, and store the new given one - which must be associated with the same job. @param ...
java
public boolean replaceTrigger(TriggerKey triggerKey, OperableTrigger newTrigger, T jedis) throws JobPersistenceException, ClassNotFoundException { OperableTrigger oldTrigger = retrieveTrigger(triggerKey, jedis); boolean found = oldTrigger != null; if(found){ if(!oldTrigger.getJobKey(...
[ "public", "boolean", "replaceTrigger", "(", "TriggerKey", "triggerKey", ",", "OperableTrigger", "newTrigger", ",", "T", "jedis", ")", "throws", "JobPersistenceException", ",", "ClassNotFoundException", "{", "OperableTrigger", "oldTrigger", "=", "retrieveTrigger", "(", "...
Remove (delete) the <code>{@link org.quartz.Trigger}</code> with the given key, and store the new given one - which must be associated with the same job. @param triggerKey the key of the trigger to be replaced @param newTrigger the replacement trigger @param jedis a thread-safe Redis connection @return true if the targ...
[ "Remove", "(", "delete", ")", "the", "<code", ">", "{" ]
train
https://github.com/jlinn/quartz-redis-jobstore/blob/be9a52ee776d8a09866fe99fd9718bc13a0cb992/src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java#L258-L269
albfernandez/itext2
src/main/java/com/lowagie/text/pdf/PdfContentByte.java
PdfContentByte.setLineDash
public final void setLineDash(float[] array, float phase) { """ Changes the value of the <VAR>line dash pattern</VAR>. <P> The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an <I>array</I> and a <I>phase</I>. The array specifies the length of the alternating...
java
public final void setLineDash(float[] array, float phase) { content.append("["); for (int i = 0; i < array.length; i++) { content.append(array[i]); if (i < array.length - 1) content.append(' '); } content.append("] ").append(phase).append(" d").append_i(separator)...
[ "public", "final", "void", "setLineDash", "(", "float", "[", "]", "array", ",", "float", "phase", ")", "{", "content", ".", "append", "(", "\"[\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", ".", "length", ";", "i", "++",...
Changes the value of the <VAR>line dash pattern</VAR>. <P> The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an <I>array</I> and a <I>phase</I>. The array specifies the length of the alternating dashes and gaps. The phase specifies the distance into the dash pattern ...
[ "Changes", "the", "value", "of", "the", "<VAR", ">", "line", "dash", "pattern<", "/", "VAR", ">", ".", "<P", ">", "The", "line", "dash", "pattern", "controls", "the", "pattern", "of", "dashes", "and", "gaps", "used", "to", "stroke", "paths", ".", "It",...
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/pdf/PdfContentByte.java#L415-L422
xiancloud/xian
xian-gateway/src/main/java/info/xiancloud/gateway/access_token_validation/ValidateAccessToken.java
ValidateAccessToken.fetchAccessTokenAndReturnScope
private static Single<Optional<String>> fetchAccessTokenAndReturnScope(UnitRequest request) { """ query for access token info and set it into the request context and return the scope of current token. @return the scope of the request or empty if no token string is provided. """ LOG.info("fetchAcce...
java
private static Single<Optional<String>> fetchAccessTokenAndReturnScope(UnitRequest request) { LOG.info("fetchAccessTokenAndReturnScope"); String ip = request.getContext().getIp(); if (StringUtil.isEmpty(ip)) { throw new IllegalArgumentException("Client's ip is empty, please check!");...
[ "private", "static", "Single", "<", "Optional", "<", "String", ">", ">", "fetchAccessTokenAndReturnScope", "(", "UnitRequest", "request", ")", "{", "LOG", ".", "info", "(", "\"fetchAccessTokenAndReturnScope\"", ")", ";", "String", "ip", "=", "request", ".", "get...
query for access token info and set it into the request context and return the scope of current token. @return the scope of the request or empty if no token string is provided.
[ "query", "for", "access", "token", "info", "and", "set", "it", "into", "the", "request", "context", "and", "return", "the", "scope", "of", "current", "token", "." ]
train
https://github.com/xiancloud/xian/blob/1948e088545553d2745b2c86d8b5a64988bb850e/xian-gateway/src/main/java/info/xiancloud/gateway/access_token_validation/ValidateAccessToken.java#L75-L101
Wolfgang-Schuetzelhofer/jcypher
src/main/java/iot/jcypher/query/values/ReplaceWith.java
ReplaceWith.with
public JcString with(String with) { """ <div color='red' style="font-size:24px;color:red"><b><i><u>JCYPHER</u></i></b></div> <div color='red' style="font-size:18px;color:red"><i>specify the replacement for a part of a string</i></div> <br/> """ JcString w = new JcString(with, this, OPERATOR.Common.COMMA_SE...
java
public JcString with(String with) { JcString w = new JcString(with, this, OPERATOR.Common.COMMA_SEPARATOR); JcString ret = new JcString(null, w, new FunctionInstance(FUNCTION.String.REPLACE, 3)); QueryRecorder.recordInvocationConditional(this, "with", ret, QueryRecorder.literal(with)); return ret; }
[ "public", "JcString", "with", "(", "String", "with", ")", "{", "JcString", "w", "=", "new", "JcString", "(", "with", ",", "this", ",", "OPERATOR", ".", "Common", ".", "COMMA_SEPARATOR", ")", ";", "JcString", "ret", "=", "new", "JcString", "(", "null", ...
<div color='red' style="font-size:24px;color:red"><b><i><u>JCYPHER</u></i></b></div> <div color='red' style="font-size:18px;color:red"><i>specify the replacement for a part of a string</i></div> <br/>
[ "<div", "color", "=", "red", "style", "=", "font", "-", "size", ":", "24px", ";", "color", ":", "red", ">", "<b", ">", "<i", ">", "<u", ">", "JCYPHER<", "/", "u", ">", "<", "/", "i", ">", "<", "/", "b", ">", "<", "/", "div", ">", "<div", ...
train
https://github.com/Wolfgang-Schuetzelhofer/jcypher/blob/0f36914b4d6993a004cc235bb18dd3e02a59d253/src/main/java/iot/jcypher/query/values/ReplaceWith.java#L40-L46
Ordinastie/MalisisCore
src/main/java/net/malisis/core/util/EntityUtils.java
EntityUtils.addHitEffects
@SideOnly(Side.CLIENT) public static void addHitEffects(World world, RayTraceResult target, ParticleManager particleManager, IBlockState... states) { """ Adds the hit effects into the world for the specified {@link IBlockState}. @param world the world @param target the target @param particleManager the effec...
java
@SideOnly(Side.CLIENT) public static void addHitEffects(World world, RayTraceResult target, ParticleManager particleManager, IBlockState... states) { BlockPos pos = target.getBlockPos(); if (ArrayUtils.isEmpty(states)) states = new IBlockState[] { world.getBlockState(pos) }; IBlockState baseState = world.ge...
[ "@", "SideOnly", "(", "Side", ".", "CLIENT", ")", "public", "static", "void", "addHitEffects", "(", "World", "world", ",", "RayTraceResult", "target", ",", "ParticleManager", "particleManager", ",", "IBlockState", "...", "states", ")", "{", "BlockPos", "pos", ...
Adds the hit effects into the world for the specified {@link IBlockState}. @param world the world @param target the target @param particleManager the effect renderer @param states the states
[ "Adds", "the", "hit", "effects", "into", "the", "world", "for", "the", "specified", "{", "@link", "IBlockState", "}", "." ]
train
https://github.com/Ordinastie/MalisisCore/blob/4f8e1fa462d5c372fc23414482ba9f429881cc54/src/main/java/net/malisis/core/util/EntityUtils.java#L327-L373
audit4j/audit4j-core
src/main/java/org/audit4j/core/dto/AuditEvent.java
AuditEvent.addField
public void addField(String name, Object value, Object type) { """ Adds the element. @param name the name @param value the value @param type the type """ if (value == null) { this.fields.add(new Field(name, null, null)); } else { this.fields.add(new Field(name, v...
java
public void addField(String name, Object value, Object type) { if (value == null) { this.fields.add(new Field(name, null, null)); } else { this.fields.add(new Field(name, value.toString(), type.toString())); } }
[ "public", "void", "addField", "(", "String", "name", ",", "Object", "value", ",", "Object", "type", ")", "{", "if", "(", "value", "==", "null", ")", "{", "this", ".", "fields", ".", "add", "(", "new", "Field", "(", "name", ",", "null", ",", "null",...
Adds the element. @param name the name @param value the value @param type the type
[ "Adds", "the", "element", "." ]
train
https://github.com/audit4j/audit4j-core/blob/dc8569108851e64cb0ecc7a39048db0ad070fba2/src/main/java/org/audit4j/core/dto/AuditEvent.java#L167-L173
exoplatform/jcr
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/TransientPropertyData.java
TransientPropertyData.createPropertyData
public static TransientPropertyData createPropertyData(NodeData parent, InternalQName name, int type, boolean multiValued) { """ Factory method. @param parent NodeData @param name InternalQName @param type int @param multiValued boolean @return TransientPropertyData """ QPath path = QPath.ma...
java
public static TransientPropertyData createPropertyData(NodeData parent, InternalQName name, int type, boolean multiValued) { QPath path = QPath.makeChildPath(parent.getQPath(), name); TransientPropertyData propData = new TransientPropertyData(path, IdGenerator.generate(), -1, type, parent....
[ "public", "static", "TransientPropertyData", "createPropertyData", "(", "NodeData", "parent", ",", "InternalQName", "name", ",", "int", "type", ",", "boolean", "multiValued", ")", "{", "QPath", "path", "=", "QPath", ".", "makeChildPath", "(", "parent", ".", "get...
Factory method. @param parent NodeData @param name InternalQName @param type int @param multiValued boolean @return TransientPropertyData
[ "Factory", "method", "." ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/TransientPropertyData.java#L152-L160
DataSketches/sketches-core
src/main/java/com/yahoo/sketches/theta/DirectQuickSelectSketchR.java
DirectQuickSelectSketchR.setHashTableThreshold
static final int setHashTableThreshold(final int lgNomLongs, final int lgArrLongs) { """ Returns the cardinality limit given the current size of the hash table array. @param lgNomLongs <a href="{@docRoot}/resources/dictionary.html#lgNomLongs">See lgNomLongs</a>. @param lgArrLongs <a href="{@docRoot}/resources/...
java
static final int setHashTableThreshold(final int lgNomLongs, final int lgArrLongs) { //FindBugs may complain if DQS_RESIZE_THRESHOLD == REBUILD_THRESHOLD, but this allows us // to tune these constants for different sketches. final double fraction = (lgArrLongs <= lgNomLongs) ? DQS_RESIZE_THRESHOLD : REBUILD...
[ "static", "final", "int", "setHashTableThreshold", "(", "final", "int", "lgNomLongs", ",", "final", "int", "lgArrLongs", ")", "{", "//FindBugs may complain if DQS_RESIZE_THRESHOLD == REBUILD_THRESHOLD, but this allows us", "// to tune these constants for different sketches.", "final"...
Returns the cardinality limit given the current size of the hash table array. @param lgNomLongs <a href="{@docRoot}/resources/dictionary.html#lgNomLongs">See lgNomLongs</a>. @param lgArrLongs <a href="{@docRoot}/resources/dictionary.html#lgArrLongs">See lgArrLongs</a>. @return the hash table threshold
[ "Returns", "the", "cardinality", "limit", "given", "the", "current", "size", "of", "the", "hash", "table", "array", "." ]
train
https://github.com/DataSketches/sketches-core/blob/900c8c9668a1e2f1d54d453e956caad54702e540/src/main/java/com/yahoo/sketches/theta/DirectQuickSelectSketchR.java#L252-L257
usc/wechat-mp-sdk
wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java
WebUtil.getPostString
public static String getPostString(InputStream is, String encoding) { """ get string from post stream @param is @param encoding @return """ try { StringWriter sw = new StringWriter(); IOUtils.copy(is, sw, encoding); return sw.toString(); } catch (IOExce...
java
public static String getPostString(InputStream is, String encoding) { try { StringWriter sw = new StringWriter(); IOUtils.copy(is, sw, encoding); return sw.toString(); } catch (IOException e) { // no op return null; } finally { ...
[ "public", "static", "String", "getPostString", "(", "InputStream", "is", ",", "String", "encoding", ")", "{", "try", "{", "StringWriter", "sw", "=", "new", "StringWriter", "(", ")", ";", "IOUtils", ".", "copy", "(", "is", ",", "sw", ",", "encoding", ")",...
get string from post stream @param is @param encoding @return
[ "get", "string", "from", "post", "stream" ]
train
https://github.com/usc/wechat-mp-sdk/blob/39d9574a8e3ffa3b61f88b4bef534d93645a825f/wechat-mp-web/src/main/java/org/usc/wechat/mp/web/util/WebUtil.java#L35-L47
alkacon/opencms-core
src/org/opencms/publish/CmsPublishManager.java
CmsPublishManager.removeResourceFromUsersPubList
public void removeResourceFromUsersPubList(CmsObject cms, Collection<CmsUUID> structureIds) throws CmsException { """ Removes the given resource to the given user's publish list.<p> @param cms the current cms context @param structureIds the collection of structure IDs to remove @throws CmsException if somet...
java
public void removeResourceFromUsersPubList(CmsObject cms, Collection<CmsUUID> structureIds) throws CmsException { m_securityManager.removeResourceFromUsersPubList(cms.getRequestContext(), structureIds); }
[ "public", "void", "removeResourceFromUsersPubList", "(", "CmsObject", "cms", ",", "Collection", "<", "CmsUUID", ">", "structureIds", ")", "throws", "CmsException", "{", "m_securityManager", ".", "removeResourceFromUsersPubList", "(", "cms", ".", "getRequestContext", "("...
Removes the given resource to the given user's publish list.<p> @param cms the current cms context @param structureIds the collection of structure IDs to remove @throws CmsException if something goes wrong
[ "Removes", "the", "given", "resource", "to", "the", "given", "user", "s", "publish", "list", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/publish/CmsPublishManager.java#L645-L648
google/closure-compiler
src/com/google/javascript/refactoring/Matchers.java
Matchers.functionCall
public static Matcher functionCall(final String name) { """ Returns a Matcher that matches all nodes that are function calls that match the provided name. @param name The name of the function to match. For non-static functions, this must be the fully qualified name that includes the type of the object. For ins...
java
public static Matcher functionCall(final String name) { return new Matcher() { @Override public boolean matches(Node node, NodeMetadata metadata) { // TODO(mknichel): Handle the case when functions are applied through .call or .apply. return node.isCall() && propertyAccess(name).matches(...
[ "public", "static", "Matcher", "functionCall", "(", "final", "String", "name", ")", "{", "return", "new", "Matcher", "(", ")", "{", "@", "Override", "public", "boolean", "matches", "(", "Node", "node", ",", "NodeMetadata", "metadata", ")", "{", "// TODO(mkni...
Returns a Matcher that matches all nodes that are function calls that match the provided name. @param name The name of the function to match. For non-static functions, this must be the fully qualified name that includes the type of the object. For instance: {@code ns.AppContext.prototype.get} will match {@code appCont...
[ "Returns", "a", "Matcher", "that", "matches", "all", "nodes", "that", "are", "function", "calls", "that", "match", "the", "provided", "name", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/refactoring/Matchers.java#L178-L186
OpenTSDB/opentsdb
src/utils/DateTime.java
DateTime.msFromNanoDiff
public static double msFromNanoDiff(final long end, final long start) { """ Calculates the difference between two values and returns the time in milliseconds as a double. @param end The end timestamp @param start The start timestamp @return The value in milliseconds @throws IllegalArgumentException if end is ...
java
public static double msFromNanoDiff(final long end, final long start) { if (end < start) { throw new IllegalArgumentException("End (" + end + ") cannot be less " + "than start (" + start + ")"); } return ((double) end - (double) start) / 1000000; }
[ "public", "static", "double", "msFromNanoDiff", "(", "final", "long", "end", ",", "final", "long", "start", ")", "{", "if", "(", "end", "<", "start", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"End (\"", "+", "end", "+", "\") cannot be less...
Calculates the difference between two values and returns the time in milliseconds as a double. @param end The end timestamp @param start The start timestamp @return The value in milliseconds @throws IllegalArgumentException if end is less than start @since 2.2
[ "Calculates", "the", "difference", "between", "two", "values", "and", "returns", "the", "time", "in", "milliseconds", "as", "a", "double", "." ]
train
https://github.com/OpenTSDB/opentsdb/blob/3fc2d491c3c1ad397252c0a80203a69a3f9e3ef3/src/utils/DateTime.java#L385-L391
intive-FDV/DynamicJasper
src/main/java/ar/com/fdvs/dj/domain/builders/DynamicReportBuilder.java
DynamicReportBuilder.setWhenNoData
public DynamicReportBuilder setWhenNoData(String text, Style style, boolean showTitle, boolean showColumnHeader) { """ Defines the text to show when the data source is empty.<br> @param text @param style : the style of the text @param showTitle : if true, the title is shown @param showColum...
java
public DynamicReportBuilder setWhenNoData(String text, Style style, boolean showTitle, boolean showColumnHeader) { this.report.setWhenNoDataStyle(style); this.report.setWhenNoDataText(text); this.report.setWhenNoDataType(DJConstants.WHEN_NO_DATA_TYPE_NO_DATA_SECTION); this.report.setWhen...
[ "public", "DynamicReportBuilder", "setWhenNoData", "(", "String", "text", ",", "Style", "style", ",", "boolean", "showTitle", ",", "boolean", "showColumnHeader", ")", "{", "this", ".", "report", ".", "setWhenNoDataStyle", "(", "style", ")", ";", "this", ".", "...
Defines the text to show when the data source is empty.<br> @param text @param style : the style of the text @param showTitle : if true, the title is shown @param showColumnHeader : if true, the column headers are shown @return A Dynamic Report Builder
[ "Defines", "the", "text", "to", "show", "when", "the", "data", "source", "is", "empty", ".", "<br", ">" ]
train
https://github.com/intive-FDV/DynamicJasper/blob/63919574cc401ae40574d13129f628e66d1682a3/src/main/java/ar/com/fdvs/dj/domain/builders/DynamicReportBuilder.java#L1542-L1549
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/export/CmsEntityWrapper.java
CmsEntityWrapper.addAttributeValueEntity
public void addAttributeValueEntity(String attributeName, CmsEntityWrapper value) { """ Wrapper method.<p> @param attributeName argument for the wrapped method @param value argument for the wrapped method """ m_entity.addAttributeValue(attributeName, value.getEntity()); }
java
public void addAttributeValueEntity(String attributeName, CmsEntityWrapper value) { m_entity.addAttributeValue(attributeName, value.getEntity()); }
[ "public", "void", "addAttributeValueEntity", "(", "String", "attributeName", ",", "CmsEntityWrapper", "value", ")", "{", "m_entity", ".", "addAttributeValue", "(", "attributeName", ",", "value", ".", "getEntity", "(", ")", ")", ";", "}" ]
Wrapper method.<p> @param attributeName argument for the wrapped method @param value argument for the wrapped method
[ "Wrapper", "method", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/export/CmsEntityWrapper.java#L69-L72
derari/cthul
objects/src/main/java/org/cthul/objects/Boxing.java
Boxing.boxAllAs
public static <T> T boxAllAs(Object src, int srcPos, int len, Class<T> type) { """ Transforms a primitive array into an array of boxed values. @param <T> @param src source array @param srcPos start position @param len length @param type target type @return array """ return (T) boxAll(type, src, s...
java
public static <T> T boxAllAs(Object src, int srcPos, int len, Class<T> type) { return (T) boxAll(type, src, srcPos, len); }
[ "public", "static", "<", "T", ">", "T", "boxAllAs", "(", "Object", "src", ",", "int", "srcPos", ",", "int", "len", ",", "Class", "<", "T", ">", "type", ")", "{", "return", "(", "T", ")", "boxAll", "(", "type", ",", "src", ",", "srcPos", ",", "l...
Transforms a primitive array into an array of boxed values. @param <T> @param src source array @param srcPos start position @param len length @param type target type @return array
[ "Transforms", "a", "primitive", "array", "into", "an", "array", "of", "boxed", "values", "." ]
train
https://github.com/derari/cthul/blob/74a31e3cb6a94f5f25cc5253d1dbd42e19a17ebc/objects/src/main/java/org/cthul/objects/Boxing.java#L480-L482
jnidzwetzki/bitfinex-v2-wss-api-java
src/main/java/com/github/jnidzwetzki/bitfinex/v2/manager/BiConsumerCallbackManager.java
BiConsumerCallbackManager.registerCallback
public void registerCallback(final S symbol, final BiConsumer<S, T> callback) throws BitfinexClientException { """ Register a new callback @param symbol @param callback @throws BitfinexClientException """ final List<BiConsumer<S, T>> callbackList = callbacks.computeIfAbsent(symbol, (k) -> new CopyOnWr...
java
public void registerCallback(final S symbol, final BiConsumer<S, T> callback) throws BitfinexClientException { final List<BiConsumer<S, T>> callbackList = callbacks.computeIfAbsent(symbol, (k) -> new CopyOnWriteArrayList<>()); callbackList.add(callback); }
[ "public", "void", "registerCallback", "(", "final", "S", "symbol", ",", "final", "BiConsumer", "<", "S", ",", "T", ">", "callback", ")", "throws", "BitfinexClientException", "{", "final", "List", "<", "BiConsumer", "<", "S", ",", "T", ">", ">", "callbackLi...
Register a new callback @param symbol @param callback @throws BitfinexClientException
[ "Register", "a", "new", "callback" ]
train
https://github.com/jnidzwetzki/bitfinex-v2-wss-api-java/blob/2e6adf1eb6f8cd4c8722f1619f78ab2cc3c600ee/src/main/java/com/github/jnidzwetzki/bitfinex/v2/manager/BiConsumerCallbackManager.java#L51-L55
groovy/groovy-core
src/main/org/codehaus/groovy/ast/CompileUnit.java
CompileUnit.addClassNodeToCompile
public void addClassNodeToCompile(ClassNode node, SourceUnit location) { """ this method actually does not compile a class. It's only a marker that this type has to be compiled by the CompilationUnit at the end of a parse step no node should be be left. """ classesToCompile.put(node.getName(), node);...
java
public void addClassNodeToCompile(ClassNode node, SourceUnit location) { classesToCompile.put(node.getName(), node); classNameToSource.put(node.getName(), location); }
[ "public", "void", "addClassNodeToCompile", "(", "ClassNode", "node", ",", "SourceUnit", "location", ")", "{", "classesToCompile", ".", "put", "(", "node", ".", "getName", "(", ")", ",", "node", ")", ";", "classNameToSource", ".", "put", "(", "node", ".", "...
this method actually does not compile a class. It's only a marker that this type has to be compiled by the CompilationUnit at the end of a parse step no node should be be left.
[ "this", "method", "actually", "does", "not", "compile", "a", "class", ".", "It", "s", "only", "a", "marker", "that", "this", "type", "has", "to", "be", "compiled", "by", "the", "CompilationUnit", "at", "the", "end", "of", "a", "parse", "step", "no", "n...
train
https://github.com/groovy/groovy-core/blob/01309f9d4be34ddf93c4a9943b5a97843bff6181/src/main/org/codehaus/groovy/ast/CompileUnit.java#L166-L169
jbossas/jboss-vfs
src/main/java/org/jboss/vfs/util/automount/Automounter.java
Automounter.addHandle
public static boolean addHandle(VirtualFile owner, Closeable handle) { """ Add handle to owner, to be auto closed. @param owner the handle owner @param handle the handle @return add result """ RegistryEntry entry = getEntry(owner); return entry.handles.add(handle); }
java
public static boolean addHandle(VirtualFile owner, Closeable handle) { RegistryEntry entry = getEntry(owner); return entry.handles.add(handle); }
[ "public", "static", "boolean", "addHandle", "(", "VirtualFile", "owner", ",", "Closeable", "handle", ")", "{", "RegistryEntry", "entry", "=", "getEntry", "(", "owner", ")", ";", "return", "entry", ".", "handles", ".", "add", "(", "handle", ")", ";", "}" ]
Add handle to owner, to be auto closed. @param owner the handle owner @param handle the handle @return add result
[ "Add", "handle", "to", "owner", "to", "be", "auto", "closed", "." ]
train
https://github.com/jbossas/jboss-vfs/blob/420f4b896d6178ee5f6758f3421e9f350d2b8ab5/src/main/java/org/jboss/vfs/util/automount/Automounter.java#L134-L137
lightblueseas/vintage-time
src/main/java/de/alpharogroup/date/CalculateDateExtensions.java
CalculateDateExtensions.substractYearsFromDate
public static Date substractYearsFromDate(final Date date, final int substractYears) { """ Substract years to the given Date object and returns it. @param date The Date object to substract the years. @param substractYears The years to substract. @return The resulted Date object. """ final Calendar dat...
java
public static Date substractYearsFromDate(final Date date, final int substractYears) { final Calendar dateOnCalendar = Calendar.getInstance(); dateOnCalendar.setTime(date); dateOnCalendar.add(Calendar.YEAR, substractYears * -1); return dateOnCalendar.getTime(); }
[ "public", "static", "Date", "substractYearsFromDate", "(", "final", "Date", "date", ",", "final", "int", "substractYears", ")", "{", "final", "Calendar", "dateOnCalendar", "=", "Calendar", ".", "getInstance", "(", ")", ";", "dateOnCalendar", ".", "setTime", "(",...
Substract years to the given Date object and returns it. @param date The Date object to substract the years. @param substractYears The years to substract. @return The resulted Date object.
[ "Substract", "years", "to", "the", "given", "Date", "object", "and", "returns", "it", "." ]
train
https://github.com/lightblueseas/vintage-time/blob/fbf201e679d9f9b92e7b5771f3eea1413cc2e113/src/main/java/de/alpharogroup/date/CalculateDateExtensions.java#L436-L442
GenesysPureEngage/provisioning-client-java
src/main/java/com/genesys/provisioning/ExportApi.java
ExportApi.exportFile
public String exportFile(List<String> fields, String fileName, List<String> personDBIDs, ExportFilterParams filterParameters) throws ProvisioningApiException { """ Export users. Export the specified users with the properties you list in the **fields** parameter. @param fields fields. @param fileName the file na...
java
public String exportFile(List<String> fields, String fileName, List<String> personDBIDs, ExportFilterParams filterParameters) throws ProvisioningApiException { try { ExportFileResponse resp = exportApi.exportFile(new ExportFileData() .fields(fields) .fileName(fileName) .personDBIDs(personDBIDs) ...
[ "public", "String", "exportFile", "(", "List", "<", "String", ">", "fields", ",", "String", "fileName", ",", "List", "<", "String", ">", "personDBIDs", ",", "ExportFilterParams", "filterParameters", ")", "throws", "ProvisioningApiException", "{", "try", "{", "Ex...
Export users. Export the specified users with the properties you list in the **fields** parameter. @param fields fields. @param fileName the file name to be exported. @param personDBIDs DBIDs of users to be exported. @param filterParameters Filter parameters. @return Id of the export. @throws ProvisioningApiException i...
[ "Export", "users", ".", "Export", "the", "specified", "users", "with", "the", "properties", "you", "list", "in", "the", "**", "fields", "**", "parameter", "." ]
train
https://github.com/GenesysPureEngage/provisioning-client-java/blob/1ad594c3767cec83052168e350994f922a26f75e/src/main/java/com/genesys/provisioning/ExportApi.java#L44-L61
landawn/AbacusUtil
src/com/landawn/abacus/util/StringUtil.java
StringUtil.removeStart
public static String removeStart(final String str, final String removeStr) { """ <p> Removes a substring only if it is at the beginning of a source string, otherwise returns the source string. </p> <p> A {@code null} source string will return {@code null}. An empty ("") source string will return the empty ...
java
public static String removeStart(final String str, final String removeStr) { if (N.isNullOrEmpty(str) || N.isNullOrEmpty(removeStr)) { return str; } if (str.startsWith(removeStr)) { return str.substring(removeStr.length()); } return str; }
[ "public", "static", "String", "removeStart", "(", "final", "String", "str", ",", "final", "String", "removeStr", ")", "{", "if", "(", "N", ".", "isNullOrEmpty", "(", "str", ")", "||", "N", ".", "isNullOrEmpty", "(", "removeStr", ")", ")", "{", "return", ...
<p> Removes a substring only if it is at the beginning of a source string, otherwise returns the source string. </p> <p> A {@code null} source string will return {@code null}. An empty ("") source string will return the empty string. A {@code null} search string will return the source string. </p> <pre> N.removeStart...
[ "<p", ">", "Removes", "a", "substring", "only", "if", "it", "is", "at", "the", "beginning", "of", "a", "source", "string", "otherwise", "returns", "the", "source", "string", ".", "<", "/", "p", ">" ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/StringUtil.java#L1147-L1157
hellosign/hellosign-java-sdk
src/main/java/com/hellosign/sdk/resource/TemplateSignatureRequest.java
TemplateSignatureRequest.setCustomFields
public void setCustomFields(Map<String, String> fields) { """ Overwrites the current map of custom fields to the provided map. This is a map of String field names to String field values. @param fields Map """ clearCustomFields(); for (String key : fields.keySet()) { CustomField ...
java
public void setCustomFields(Map<String, String> fields) { clearCustomFields(); for (String key : fields.keySet()) { CustomField f = new CustomField(); f.setName(key); f.setValue(fields.get(key)); customFields.add(f); } }
[ "public", "void", "setCustomFields", "(", "Map", "<", "String", ",", "String", ">", "fields", ")", "{", "clearCustomFields", "(", ")", ";", "for", "(", "String", "key", ":", "fields", ".", "keySet", "(", ")", ")", "{", "CustomField", "f", "=", "new", ...
Overwrites the current map of custom fields to the provided map. This is a map of String field names to String field values. @param fields Map
[ "Overwrites", "the", "current", "map", "of", "custom", "fields", "to", "the", "provided", "map", ".", "This", "is", "a", "map", "of", "String", "field", "names", "to", "String", "field", "values", "." ]
train
https://github.com/hellosign/hellosign-java-sdk/blob/08fa7aeb3b0c68ddb6c7ea797d114d55d36d36b1/src/main/java/com/hellosign/sdk/resource/TemplateSignatureRequest.java#L238-L246
kiegroup/droolsjbpm-integration
kie-server-parent/kie-server-common/src/main/java/org/kie/server/common/rest/KieServerHttpRequest.java
KieServerHttpRequest.basicAuthorization
public KieServerHttpRequest basicAuthorization(final String name, final String password ) { """ Set the 'Authorization' header to given values in Basic authentication format @param name @param password @return this request """ return header(AUTHORIZATION, "Basic " + org.kie.server.common.rest.Bas...
java
public KieServerHttpRequest basicAuthorization(final String name, final String password ) { return header(AUTHORIZATION, "Basic " + org.kie.server.common.rest.Base64Util.encode(name + ':' + password)); }
[ "public", "KieServerHttpRequest", "basicAuthorization", "(", "final", "String", "name", ",", "final", "String", "password", ")", "{", "return", "header", "(", "AUTHORIZATION", ",", "\"Basic \"", "+", "org", ".", "kie", ".", "server", ".", "common", ".", "rest"...
Set the 'Authorization' header to given values in Basic authentication format @param name @param password @return this request
[ "Set", "the", "Authorization", "header", "to", "given", "values", "in", "Basic", "authentication", "format" ]
train
https://github.com/kiegroup/droolsjbpm-integration/blob/6c26200ab03855dbb92b56ca0c6363cdec0eaf2c/kie-server-parent/kie-server-common/src/main/java/org/kie/server/common/rest/KieServerHttpRequest.java#L1040-L1042
eclipse/hawkbit
hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/utils/QuotaHelper.java
QuotaHelper.assertAssignmentQuota
public static void assertAssignmentQuota(final Long parentId, final long requested, final long limit, @NotNull final String type, @NotNull final String parentType, final Function<Long, Long> countFct) { """ Asserts the specified assignment quota. @param parentId The ID of the parent entity. @param...
java
public static void assertAssignmentQuota(final Long parentId, final long requested, final long limit, @NotNull final String type, @NotNull final String parentType, final Function<Long, Long> countFct) { // check if the quota is unlimited if (limit <= 0) { LOG.debug("Quota 'Max {...
[ "public", "static", "void", "assertAssignmentQuota", "(", "final", "Long", "parentId", ",", "final", "long", "requested", ",", "final", "long", "limit", ",", "@", "NotNull", "final", "String", "type", ",", "@", "NotNull", "final", "String", "parentType", ",", ...
Asserts the specified assignment quota. @param parentId The ID of the parent entity. @param requested The number of entities that shall be assigned to the parent entity. @param limit The maximum number of entities that may be assigned to the parent entity. @param type The type of the entities that shall be assigned. @...
[ "Asserts", "the", "specified", "assignment", "quota", "." ]
train
https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/utils/QuotaHelper.java#L107-L132
zxing/zxing
core/src/main/java/com/google/zxing/qrcode/detector/Detector.java
Detector.calculateModuleSize
protected final float calculateModuleSize(ResultPoint topLeft, ResultPoint topRight, ResultPoint bottomLeft) { """ <p>Computes an average estimated module size based on estimated derived from the positions of the three finder ...
java
protected final float calculateModuleSize(ResultPoint topLeft, ResultPoint topRight, ResultPoint bottomLeft) { // Take the average return (calculateModuleSizeOneWay(topLeft, topRight) + calculateModuleSizeOneWay(topL...
[ "protected", "final", "float", "calculateModuleSize", "(", "ResultPoint", "topLeft", ",", "ResultPoint", "topRight", ",", "ResultPoint", "bottomLeft", ")", "{", "// Take the average", "return", "(", "calculateModuleSizeOneWay", "(", "topLeft", ",", "topRight", ")", "+...
<p>Computes an average estimated module size based on estimated derived from the positions of the three finder patterns.</p> @param topLeft detected top-left finder pattern center @param topRight detected top-right finder pattern center @param bottomLeft detected bottom-left finder pattern center @return estimated mod...
[ "<p", ">", "Computes", "an", "average", "estimated", "module", "size", "based", "on", "estimated", "derived", "from", "the", "positions", "of", "the", "three", "finder", "patterns", ".", "<", "/", "p", ">" ]
train
https://github.com/zxing/zxing/blob/653ac2a3beb11481eff82e7d5f2bab8a745f7fac/core/src/main/java/com/google/zxing/qrcode/detector/Detector.java#L228-L234
eserating/siren4j
src/main/java/com/google/code/siren4j/component/builder/BaseBuilder.java
BaseBuilder.callMethod
private void callMethod(Object obj, Step step) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { """ Finds and calls the method specified by the step passed in. @param obj assumed not <code>null</code>. @param step assumed not ...
java
private void callMethod(Object obj, Step step) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Class<?> clazz = obj.getClass(); Method method = ReflectionUtils.findMethod(clazz, step.getMethodName(), step.getArgTyp...
[ "private", "void", "callMethod", "(", "Object", "obj", ",", "Step", "step", ")", "throws", "SecurityException", ",", "NoSuchMethodException", ",", "IllegalArgumentException", ",", "IllegalAccessException", ",", "InvocationTargetException", "{", "Class", "<", "?", ">",...
Finds and calls the method specified by the step passed in. @param obj assumed not <code>null</code>. @param step assumed not <code>null</code>. @throws SecurityException @throws NoSuchMethodException @throws IllegalArgumentException @throws IllegalAccessException @throws InvocationTargetException
[ "Finds", "and", "calls", "the", "method", "specified", "by", "the", "step", "passed", "in", "." ]
train
https://github.com/eserating/siren4j/blob/f12e3185076ad920352ec4f6eb2a071a3683505f/src/main/java/com/google/code/siren4j/component/builder/BaseBuilder.java#L171-L177
ziccardi/jnrpe
jnrpe-plugins/src/main/java/it/jnrpe/plugin/utils/HttpUtils.java
HttpUtils.setRequestProperties
public static void setRequestProperties(final Properties props, HttpURLConnection conn, Integer timeout) { """ Sets request headers for an http connection @param props properties to be sent @param conn the connection @param timeout the connection timeout """ if (props != null) { if (pr...
java
public static void setRequestProperties(final Properties props, HttpURLConnection conn, Integer timeout) { if (props != null) { if (props.get("User-Agent") == null) { conn.setRequestProperty("User-Agent", "Java"); } for (Entry entry : props.entrySet()) { ...
[ "public", "static", "void", "setRequestProperties", "(", "final", "Properties", "props", ",", "HttpURLConnection", "conn", ",", "Integer", "timeout", ")", "{", "if", "(", "props", "!=", "null", ")", "{", "if", "(", "props", ".", "get", "(", "\"User-Agent\"",...
Sets request headers for an http connection @param props properties to be sent @param conn the connection @param timeout the connection timeout
[ "Sets", "request", "headers", "for", "an", "http", "connection" ]
train
https://github.com/ziccardi/jnrpe/blob/ac9046355851136994388442b01ba4063305f9c4/jnrpe-plugins/src/main/java/it/jnrpe/plugin/utils/HttpUtils.java#L137-L152
sdl/odata
odata_renderer/src/main/java/com/sdl/odata/renderer/json/writer/JsonServiceDocumentWriter.java
JsonServiceDocumentWriter.writeObject
private void writeObject(JsonGenerator jsonGenerator, Object entity) throws IOException { """ Build an embedded json object that will have key-value attributes like 'name' and 'url' (they are MUST), 'title' and 'kind'. @param jsonGenerator jsonGenerator @param entity entitySet or singleton @throws IOE...
java
private void writeObject(JsonGenerator jsonGenerator, Object entity) throws IOException { jsonGenerator.writeStartObject(); writeName(jsonGenerator, entity); writeKind(jsonGenerator, entity); writeURL(jsonGenerator, entity); jsonGenerator.writeEndObject(); }
[ "private", "void", "writeObject", "(", "JsonGenerator", "jsonGenerator", ",", "Object", "entity", ")", "throws", "IOException", "{", "jsonGenerator", ".", "writeStartObject", "(", ")", ";", "writeName", "(", "jsonGenerator", ",", "entity", ")", ";", "writeKind", ...
Build an embedded json object that will have key-value attributes like 'name' and 'url' (they are MUST), 'title' and 'kind'. @param jsonGenerator jsonGenerator @param entity entitySet or singleton @throws IOException
[ "Build", "an", "embedded", "json", "object", "that", "will", "have", "key", "-", "value", "attributes", "like", "name", "and", "url", "(", "they", "are", "MUST", ")", "title", "and", "kind", "." ]
train
https://github.com/sdl/odata/blob/eb747d73e9af0f4e59a25b82ed656e526a7e2189/odata_renderer/src/main/java/com/sdl/odata/renderer/json/writer/JsonServiceDocumentWriter.java#L106-L114
apache/incubator-gobblin
gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/source/extractor/extract/kafka/KafkaUtils.java
KafkaUtils.getPartitionAvgRecordMillis
public static double getPartitionAvgRecordMillis(State state, KafkaPartition partition) { """ Get the average time to pull a record of a partition, which is stored in property "[topicname].[partitionid].avg.record.millis". If state doesn't contain this property, it returns defaultValue. """ double avgReco...
java
public static double getPartitionAvgRecordMillis(State state, KafkaPartition partition) { double avgRecordMillis = state.getPropAsDouble( getPartitionPropName(partition.getTopicName(), partition.getId()) + "." + KafkaSource.AVG_RECORD_MILLIS); // cap to prevent a poorly behaved topic from impacting the...
[ "public", "static", "double", "getPartitionAvgRecordMillis", "(", "State", "state", ",", "KafkaPartition", "partition", ")", "{", "double", "avgRecordMillis", "=", "state", ".", "getPropAsDouble", "(", "getPartitionPropName", "(", "partition", ".", "getTopicName", "("...
Get the average time to pull a record of a partition, which is stored in property "[topicname].[partitionid].avg.record.millis". If state doesn't contain this property, it returns defaultValue.
[ "Get", "the", "average", "time", "to", "pull", "a", "record", "of", "a", "partition", "which", "is", "stored", "in", "property", "[", "topicname", "]", ".", "[", "partitionid", "]", ".", "avg", ".", "record", ".", "millis", ".", "If", "state", "doesn",...
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/source/extractor/extract/kafka/KafkaUtils.java#L146-L161
lessthanoptimal/BoofCV
main/boofcv-feature/src/main/java/boofcv/alg/shapes/ShapeFittingOps.java
ShapeFittingOps.fitEllipse_I32
public static FitData<EllipseRotated_F64> fitEllipse_I32( List<Point2D_I32> points, int iterations , boolean computeError , FitData<EllipseRotated_F64> outputStorage ) { """ Convenience function. Same as {@link #fitEllipse_F64(java.util.List, int, boolean,FitData)}, but converts ...
java
public static FitData<EllipseRotated_F64> fitEllipse_I32( List<Point2D_I32> points, int iterations , boolean computeError , FitData<EllipseRotated_F64> outputStorage ) { List<Point2D_F64> pointsF = convert_I32_F64(points); return fitEllipse_F64(pointsF,iterations,computeError,out...
[ "public", "static", "FitData", "<", "EllipseRotated_F64", ">", "fitEllipse_I32", "(", "List", "<", "Point2D_I32", ">", "points", ",", "int", "iterations", ",", "boolean", "computeError", ",", "FitData", "<", "EllipseRotated_F64", ">", "outputStorage", ")", "{", ...
Convenience function. Same as {@link #fitEllipse_F64(java.util.List, int, boolean,FitData)}, but converts the set of integer points into floating point points. @param points (Input) Set of unordered points. Not modified. @param iterations Number of iterations used to refine the fit. If set to zero then an algebraic so...
[ "Convenience", "function", ".", "Same", "as", "{" ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-feature/src/main/java/boofcv/alg/shapes/ShapeFittingOps.java#L160-L167
looly/hutool
hutool-core/src/main/java/cn/hutool/core/io/BufferUtil.java
BufferUtil.create
public static ByteBuffer create(CharSequence data, Charset charset) { """ 从字符串创建新Buffer @param data 数据 @param charset 编码 @return {@link ByteBuffer} @since 4.5.0 """ return create(StrUtil.bytes(data, charset)); }
java
public static ByteBuffer create(CharSequence data, Charset charset) { return create(StrUtil.bytes(data, charset)); }
[ "public", "static", "ByteBuffer", "create", "(", "CharSequence", "data", ",", "Charset", "charset", ")", "{", "return", "create", "(", "StrUtil", ".", "bytes", "(", "data", ",", "charset", ")", ")", ";", "}" ]
从字符串创建新Buffer @param data 数据 @param charset 编码 @return {@link ByteBuffer} @since 4.5.0
[ "从字符串创建新Buffer" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/io/BufferUtil.java#L237-L239
apache/flink
flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java
BatchTask.constructLogString
public static String constructLogString(String message, String taskName, AbstractInvokable parent) { """ Utility function that composes a string for logging purposes. The string includes the given message, the given name of the task and the index in its subtask group as well as the number of instances that exist...
java
public static String constructLogString(String message, String taskName, AbstractInvokable parent) { return message + ": " + taskName + " (" + (parent.getEnvironment().getTaskInfo().getIndexOfThisSubtask() + 1) + '/' + parent.getEnvironment().getTaskInfo().getNumberOfParallelSubtasks() + ')'; }
[ "public", "static", "String", "constructLogString", "(", "String", "message", ",", "String", "taskName", ",", "AbstractInvokable", "parent", ")", "{", "return", "message", "+", "\": \"", "+", "taskName", "+", "\" (\"", "+", "(", "parent", ".", "getEnvironment",...
Utility function that composes a string for logging purposes. The string includes the given message, the given name of the task and the index in its subtask group as well as the number of instances that exist in its subtask group. @param message The main message for the log. @param taskName The name of the task. @para...
[ "Utility", "function", "that", "composes", "a", "string", "for", "logging", "purposes", ".", "The", "string", "includes", "the", "given", "message", "the", "given", "name", "of", "the", "task", "and", "the", "index", "in", "its", "subtask", "group", "as", ...
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java#L1172-L1175
UrielCh/ovh-java-sdk
ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java
ApiOvhCloud.project_serviceName_ipLoadbalancing_id_validate_POST
public void project_serviceName_ipLoadbalancing_id_validate_POST(String serviceName, String id) throws IOException { """ Validate the import of your load balancing IP into OpenStack REST: POST /cloud/project/{serviceName}/ipLoadbalancing/{id}/validate @param serviceName [required] The project id @param id [re...
java
public void project_serviceName_ipLoadbalancing_id_validate_POST(String serviceName, String id) throws IOException { String qPath = "/cloud/project/{serviceName}/ipLoadbalancing/{id}/validate"; StringBuilder sb = path(qPath, serviceName, id); exec(qPath, "POST", sb.toString(), null); }
[ "public", "void", "project_serviceName_ipLoadbalancing_id_validate_POST", "(", "String", "serviceName", ",", "String", "id", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/cloud/project/{serviceName}/ipLoadbalancing/{id}/validate\"", ";", "StringBuilder", "sb", ...
Validate the import of your load balancing IP into OpenStack REST: POST /cloud/project/{serviceName}/ipLoadbalancing/{id}/validate @param serviceName [required] The project id @param id [required] ID of your load balancing ip import API beta
[ "Validate", "the", "import", "of", "your", "load", "balancing", "IP", "into", "OpenStack" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java#L1611-L1615
igniterealtime/Smack
smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoService.java
OmemoService.decryptMessage
OmemoMessage.Received decryptMessage(OmemoManager.LoggedInOmemoManager managerGuard, BareJid senderJid, OmemoElement omemoElement) throws CorruptedOmemoKeyException, CryptoFailedException, NoRawSessionException { """ Decr...
java
OmemoMessage.Received decryptMessage(OmemoManager.LoggedInOmemoManager managerGuard, BareJid senderJid, OmemoElement omemoElement) throws CorruptedOmemoKeyException, CryptoFailedException, NoRawSessionException { Omem...
[ "OmemoMessage", ".", "Received", "decryptMessage", "(", "OmemoManager", ".", "LoggedInOmemoManager", "managerGuard", ",", "BareJid", "senderJid", ",", "OmemoElement", "omemoElement", ")", "throws", "CorruptedOmemoKeyException", ",", "CryptoFailedException", ",", "NoRawSessi...
Decrypt an OMEMO message. @param managerGuard authenticated OmemoManager. @param senderJid BareJid of the sender. @param omemoElement omemoElement. @return decrypted OmemoMessage object. @throws CorruptedOmemoKeyException if the identityKey of the sender is damaged. @throws CryptoFailedException if decryption fails. @...
[ "Decrypt", "an", "OMEMO", "message", ".", "@param", "managerGuard", "authenticated", "OmemoManager", ".", "@param", "senderJid", "BareJid", "of", "the", "sender", ".", "@param", "omemoElement", "omemoElement", ".", "@return", "decrypted", "OmemoMessage", "object", "...
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoService.java#L445-L480
aol/cyclops
cyclops/src/main/java/cyclops/companion/Functions.java
Functions.concatMapnts
public static Function<? super ReactiveSeq<Integer>, ? extends ReactiveSeq<Integer>> concatMapnts(IntFunction<? extends IntStream> b) { """ /* Fluent flatMap operation using primitive types e.g. <pre> {@code import static cyclops.ReactiveSeq.concatMapnts; ReactiveSeq.ofInts(1,2,3) .to(concatMapnts(i->IntS...
java
public static Function<? super ReactiveSeq<Integer>, ? extends ReactiveSeq<Integer>> concatMapnts(IntFunction<? extends IntStream> b){ return a->a.ints(i->i,s->s.flatMap(b)); }
[ "public", "static", "Function", "<", "?", "super", "ReactiveSeq", "<", "Integer", ">", ",", "?", "extends", "ReactiveSeq", "<", "Integer", ">", ">", "concatMapnts", "(", "IntFunction", "<", "?", "extends", "IntStream", ">", "b", ")", "{", "return", "a", ...
/* Fluent flatMap operation using primitive types e.g. <pre> {@code import static cyclops.ReactiveSeq.concatMapnts; ReactiveSeq.ofInts(1,2,3) .to(concatMapnts(i->IntStream.of(i*2))); //[2,4,6] } </pre>
[ "/", "*", "Fluent", "flatMap", "operation", "using", "primitive", "types", "e", ".", "g", ".", "<pre", ">", "{", "@code", "import", "static", "cyclops", ".", "ReactiveSeq", ".", "concatMapnts", ";" ]
train
https://github.com/aol/cyclops/blob/59a9fde30190a4d1faeb9f6d9851d209d82b81dd/cyclops/src/main/java/cyclops/companion/Functions.java#L297-L300
google/error-prone
check_api/src/main/java/com/google/errorprone/matchers/Matchers.java
Matchers.methodHasArity
public static Matcher<MethodTree> methodHasArity(final int arity) { """ Matches if the method accepts the given number of arguments. @param arity the number of arguments the method should accept """ return new Matcher<MethodTree>() { @Override public boolean matches(MethodTree methodTree, Vi...
java
public static Matcher<MethodTree> methodHasArity(final int arity) { return new Matcher<MethodTree>() { @Override public boolean matches(MethodTree methodTree, VisitorState state) { return methodTree.getParameters().size() == arity; } }; }
[ "public", "static", "Matcher", "<", "MethodTree", ">", "methodHasArity", "(", "final", "int", "arity", ")", "{", "return", "new", "Matcher", "<", "MethodTree", ">", "(", ")", "{", "@", "Override", "public", "boolean", "matches", "(", "MethodTree", "methodTre...
Matches if the method accepts the given number of arguments. @param arity the number of arguments the method should accept
[ "Matches", "if", "the", "method", "accepts", "the", "given", "number", "of", "arguments", "." ]
train
https://github.com/google/error-prone/blob/fe2e3cc2cf1958cb7c487bfe89852bb4c225ba9d/check_api/src/main/java/com/google/errorprone/matchers/Matchers.java#L1422-L1429
kiegroup/drools
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java
FEELParser.isVariableNamePartValid
public static boolean isVariableNamePartValid( String namePart, Scope scope ) { """ Either namePart is a string of digits, or it must be a valid name itself """ if ( DIGITS_PATTERN.matcher(namePart).matches() ) { return true; } if ( REUSABLE_KEYWORDS.contains(namePart) ) { ...
java
public static boolean isVariableNamePartValid( String namePart, Scope scope ) { if ( DIGITS_PATTERN.matcher(namePart).matches() ) { return true; } if ( REUSABLE_KEYWORDS.contains(namePart) ) { return scope.followUp(namePart, true); } return isVariableNameV...
[ "public", "static", "boolean", "isVariableNamePartValid", "(", "String", "namePart", ",", "Scope", "scope", ")", "{", "if", "(", "DIGITS_PATTERN", ".", "matcher", "(", "namePart", ")", ".", "matches", "(", ")", ")", "{", "return", "true", ";", "}", "if", ...
Either namePart is a string of digits, or it must be a valid name itself
[ "Either", "namePart", "is", "a", "string", "of", "digits", "or", "it", "must", "be", "a", "valid", "name", "itself" ]
train
https://github.com/kiegroup/drools/blob/22b0275d6dbe93070b8090948502cf46eda543c4/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java#L82-L90
lessthanoptimal/ddogleg
src/org/ddogleg/optimization/trustregion/TrustRegionUpdateDogleg_F64.java
TrustRegionUpdateDogleg_F64.fractionCauchyToGN
static double fractionCauchyToGN(double lengthCauchy , double lengthGN , double lengthPtoGN, double region ) { """ Compute the fractional distance from P to GN where the point intersects the region's boundary """ // First triangle has 3 known sides double a=lengthGN,b=lengthCauchy,c=lengthPtoGN; // Law...
java
static double fractionCauchyToGN(double lengthCauchy , double lengthGN , double lengthPtoGN, double region ) { // First triangle has 3 known sides double a=lengthGN,b=lengthCauchy,c=lengthPtoGN; // Law of cosine to find angle for side GN (a.k.a 'a') double cosineA = (a*a - b*b - c*c)/(-2.0*b*c); double angl...
[ "static", "double", "fractionCauchyToGN", "(", "double", "lengthCauchy", ",", "double", "lengthGN", ",", "double", "lengthPtoGN", ",", "double", "region", ")", "{", "// First triangle has 3 known sides", "double", "a", "=", "lengthGN", ",", "b", "=", "lengthCauchy",...
Compute the fractional distance from P to GN where the point intersects the region's boundary
[ "Compute", "the", "fractional", "distance", "from", "P", "to", "GN", "where", "the", "point", "intersects", "the", "region", "s", "boundary" ]
train
https://github.com/lessthanoptimal/ddogleg/blob/3786bf448ba23d0e04962dd08c34fa68de276029/src/org/ddogleg/optimization/trustregion/TrustRegionUpdateDogleg_F64.java#L207-L225
mapfish/mapfish-print
core/src/main/java/org/mapfish/print/SvgUtil.java
SvgUtil.convertFromSvg
public static BufferedImage convertFromSvg(final URI svgFile, final int width, final int height) throws TranscoderException { """ Renders an SVG image into a {@link BufferedImage}. @param svgFile the svg file @param width the width @param height the height @return a buffered image @throws Transc...
java
public static BufferedImage convertFromSvg(final URI svgFile, final int width, final int height) throws TranscoderException { BufferedImageTranscoder imageTranscoder = new BufferedImageTranscoder(); imageTranscoder.addTranscodingHint(TIFFTranscoder.KEY_WIDTH, (float) width); imageTr...
[ "public", "static", "BufferedImage", "convertFromSvg", "(", "final", "URI", "svgFile", ",", "final", "int", "width", ",", "final", "int", "height", ")", "throws", "TranscoderException", "{", "BufferedImageTranscoder", "imageTranscoder", "=", "new", "BufferedImageTrans...
Renders an SVG image into a {@link BufferedImage}. @param svgFile the svg file @param width the width @param height the height @return a buffered image @throws TranscoderException
[ "Renders", "an", "SVG", "image", "into", "a", "{", "@link", "BufferedImage", "}", "." ]
train
https://github.com/mapfish/mapfish-print/blob/25a452cb39f592bd8a53b20db1037703898e1e22/core/src/main/java/org/mapfish/print/SvgUtil.java#L30-L41
apache/incubator-druid
sql/src/main/java/org/apache/druid/sql/calcite/planner/Calcites.java
Calcites.jodaToCalciteDateString
public static DateString jodaToCalciteDateString(final DateTime dateTime, final DateTimeZone timeZone) { """ Calcite expects DATE literals to be represented by DateStrings in the local time zone. @param dateTime joda timestamp @param timeZone session time zone @return Calcite style Calendar, appropriate for...
java
public static DateString jodaToCalciteDateString(final DateTime dateTime, final DateTimeZone timeZone) { return new DateString(CALCITE_DATE_PRINTER.print(dateTime.withZone(timeZone))); }
[ "public", "static", "DateString", "jodaToCalciteDateString", "(", "final", "DateTime", "dateTime", ",", "final", "DateTimeZone", "timeZone", ")", "{", "return", "new", "DateString", "(", "CALCITE_DATE_PRINTER", ".", "print", "(", "dateTime", ".", "withZone", "(", ...
Calcite expects DATE literals to be represented by DateStrings in the local time zone. @param dateTime joda timestamp @param timeZone session time zone @return Calcite style Calendar, appropriate for literals
[ "Calcite", "expects", "DATE", "literals", "to", "be", "represented", "by", "DateStrings", "in", "the", "local", "time", "zone", "." ]
train
https://github.com/apache/incubator-druid/blob/f776b9408962b9006cfcfe4d6c1794751972cc8e/sql/src/main/java/org/apache/druid/sql/calcite/planner/Calcites.java#L285-L288
opencb/biodata
biodata-tools/src/main/java/org/opencb/biodata/tools/feature/WigUtils.java
WigUtils.getStart
public static int getStart(String headerLine) throws InvalidObjectException { """ Extract the 'start' value from the given Wig header line. @param headerLine Header line where to look for the 'start' @return Start value """ String str = getHeaderInfo("start", headerLine); if...
java
public static int getStart(String headerLine) throws InvalidObjectException { String str = getHeaderInfo("start", headerLine); if (str == null) { throw new InvalidObjectException("WigFile format, it could not find 'start' in the header line"); } return Integer.parseInt(str); ...
[ "public", "static", "int", "getStart", "(", "String", "headerLine", ")", "throws", "InvalidObjectException", "{", "String", "str", "=", "getHeaderInfo", "(", "\"start\"", ",", "headerLine", ")", ";", "if", "(", "str", "==", "null", ")", "{", "throw", "new", ...
Extract the 'start' value from the given Wig header line. @param headerLine Header line where to look for the 'start' @return Start value
[ "Extract", "the", "start", "value", "from", "the", "given", "Wig", "header", "line", "." ]
train
https://github.com/opencb/biodata/blob/21b3d51d71f578efab908422aca4bab7a73097b1/biodata-tools/src/main/java/org/opencb/biodata/tools/feature/WigUtils.java#L169-L175
aspectran/aspectran
with-freemarker/src/main/java/com/aspectran/freemarker/directive/AbstractTrimDirectiveModel.java
AbstractTrimDirectiveModel.parseStringParameter
@SuppressWarnings("rawtypes") protected String parseStringParameter(Map params, String paramName) { """ Parse string parameter. @param params the params @param paramName the param name @return the string """ Object paramModel = params.get(paramName); if (paramModel == null) { ...
java
@SuppressWarnings("rawtypes") protected String parseStringParameter(Map params, String paramName) { Object paramModel = params.get(paramName); if (paramModel == null) { return null; } if (!(paramModel instanceof SimpleScalar)) { throw new IllegalArgumentExcept...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "protected", "String", "parseStringParameter", "(", "Map", "params", ",", "String", "paramName", ")", "{", "Object", "paramModel", "=", "params", ".", "get", "(", "paramName", ")", ";", "if", "(", "paramModel"...
Parse string parameter. @param params the params @param paramName the param name @return the string
[ "Parse", "string", "parameter", "." ]
train
https://github.com/aspectran/aspectran/blob/2d758a2a28b71ee85b42823c12dc44674d7f2c70/with-freemarker/src/main/java/com/aspectran/freemarker/directive/AbstractTrimDirectiveModel.java#L77-L87
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/map/impl/MapKeyLoader.java
MapKeyLoader.startInitialLoad
public Future startInitialLoad(MapStoreContext mapStoreContext, int partitionId) { """ Triggers key loading on the map key loader with the {@link Role#SENDER} role. @param mapStoreContext the map store context for this map @param partitionId the partition ID of this map key loader @return a future repres...
java
public Future startInitialLoad(MapStoreContext mapStoreContext, int partitionId) { this.partitionId = partitionId; this.mapNamePartition = partitionService.getPartitionId(toData.apply(mapName)); Role newRole = calculateRole(); role.nextOrStay(newRole); state.next(State.LOADING);...
[ "public", "Future", "startInitialLoad", "(", "MapStoreContext", "mapStoreContext", ",", "int", "partitionId", ")", "{", "this", ".", "partitionId", "=", "partitionId", ";", "this", ".", "mapNamePartition", "=", "partitionService", ".", "getPartitionId", "(", "toData...
Triggers key loading on the map key loader with the {@link Role#SENDER} role. @param mapStoreContext the map store context for this map @param partitionId the partition ID of this map key loader @return a future representing pending completion of the key loading task
[ "Triggers", "key", "loading", "on", "the", "map", "key", "loader", "with", "the", "{", "@link", "Role#SENDER", "}", "role", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/map/impl/MapKeyLoader.java#L184-L205
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/tree/CmsTreeItem.java
CmsTreeItem.setOpen
public void setOpen(boolean open, boolean fireEvents) { """ Opens or closes this tree item (i.e. shows or hides its descendants).<p> @param open if <code>true</code>, open the tree item, else close it @param fireEvents true if the open/close events should be fired """ if (m_open == open) { ...
java
public void setOpen(boolean open, boolean fireEvents) { if (m_open == open) { return; } m_open = open; executeOpen(fireEvents); CmsDomUtil.resizeAncestor(getParent()); }
[ "public", "void", "setOpen", "(", "boolean", "open", ",", "boolean", "fireEvents", ")", "{", "if", "(", "m_open", "==", "open", ")", "{", "return", ";", "}", "m_open", "=", "open", ";", "executeOpen", "(", "fireEvents", ")", ";", "CmsDomUtil", ".", "re...
Opens or closes this tree item (i.e. shows or hides its descendants).<p> @param open if <code>true</code>, open the tree item, else close it @param fireEvents true if the open/close events should be fired
[ "Opens", "or", "closes", "this", "tree", "item", "(", "i", ".", "e", ".", "shows", "or", "hides", "its", "descendants", ")", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/tree/CmsTreeItem.java#L712-L720
RestComm/sip-servlets
sip-servlets-examples/facebook-c2c/src/main/java/com/facebook/api/FacebookRestClient.java
FacebookRestClient.data_getCookies
public T data_getCookies(Integer userId, CharSequence cookieName) throws FacebookException, IOException { """ Retrieves all cookies for the application and the given <code>userId</code>. If a <code>cookieName</code> is specified, only that cookie will be returned. @param userId The user from whom to get th...
java
public T data_getCookies(Integer userId, CharSequence cookieName) throws FacebookException, IOException { Collection<Pair<String, CharSequence>> params = new ArrayList<Pair<String, CharSequence>>(FacebookMethod.DATA_GET_COOKIES.numParams()); params.add(new Pair<String,CharSequence>("uid", userId.toSt...
[ "public", "T", "data_getCookies", "(", "Integer", "userId", ",", "CharSequence", "cookieName", ")", "throws", "FacebookException", ",", "IOException", "{", "Collection", "<", "Pair", "<", "String", ",", "CharSequence", ">", ">", "params", "=", "new", "ArrayList"...
Retrieves all cookies for the application and the given <code>userId</code>. If a <code>cookieName</code> is specified, only that cookie will be returned. @param userId The user from whom to get the cookies (defaults to logged-in user). @param cookieName The name of the cookie to get. If null, all cookies will be retu...
[ "Retrieves", "all", "cookies", "for", "the", "application", "and", "the", "given", "<code", ">", "userId<", "/", "code", ">", ".", "If", "a", "<code", ">", "cookieName<", "/", "code", ">", "is", "specified", "only", "that", "cookie", "will", "be", "retur...
train
https://github.com/RestComm/sip-servlets/blob/fd7011d2803ab1d205b140768a760c8c69e0c997/sip-servlets-examples/facebook-c2c/src/main/java/com/facebook/api/FacebookRestClient.java#L2279-L2289
JodaOrg/joda-beans
src/main/java/org/joda/beans/impl/direct/DirectMetaBean.java
DirectMetaBean.propertyGet
protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { """ Gets the value of the property. @param bean the bean to query, not null @param propertyName the property name, not null @param quiet true to return null if unable to read @return the value of the property, may be null @thro...
java
protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { // used to enable 100% test coverage in beans if (quiet) { return null; } throw new NoSuchElementException("Unknown property: " + propertyName); }
[ "protected", "Object", "propertyGet", "(", "Bean", "bean", ",", "String", "propertyName", ",", "boolean", "quiet", ")", "{", "// used to enable 100% test coverage in beans", "if", "(", "quiet", ")", "{", "return", "null", ";", "}", "throw", "new", "NoSuchElementEx...
Gets the value of the property. @param bean the bean to query, not null @param propertyName the property name, not null @param quiet true to return null if unable to read @return the value of the property, may be null @throws NoSuchElementException if the property name is invalid
[ "Gets", "the", "value", "of", "the", "property", "." ]
train
https://github.com/JodaOrg/joda-beans/blob/f07dbe42947150b23a173f35984c6ab33c5529bf/src/main/java/org/joda/beans/impl/direct/DirectMetaBean.java#L83-L89
gallandarakhneorg/afc
advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java
DBaseFileAttributePool.getRawValue
@SuppressWarnings("resource") @Pure public Object getRawValue(int recordNumber, String name, OutputParameter<AttributeType> type) throws AttributeException { """ Replies the raw value that corresponds to the specified attribute name for the given record. @param recordNumber is the index of the record to read...
java
@SuppressWarnings("resource") @Pure public Object getRawValue(int recordNumber, String name, OutputParameter<AttributeType> type) throws AttributeException { try { final DBaseFileReader dbReader = getReader(); synchronized (dbReader) { dbReader.seek(recordNumber); final DBaseFileRecord record = dbRead...
[ "@", "SuppressWarnings", "(", "\"resource\"", ")", "@", "Pure", "public", "Object", "getRawValue", "(", "int", "recordNumber", ",", "String", "name", ",", "OutputParameter", "<", "AttributeType", ">", "type", ")", "throws", "AttributeException", "{", "try", "{",...
Replies the raw value that corresponds to the specified attribute name for the given record. @param recordNumber is the index of the record to read ({@code 0..recordCount-1}). @param name is the name of the attribute value to replies. @param type is the type of the replied value. Tis attribute will be set by this func...
[ "Replies", "the", "raw", "value", "that", "corresponds", "to", "the", "specified", "attribute", "name", "for", "the", "given", "record", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java#L416-L438
actorapp/actor-platform
actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/calls/peers/PeerConnectionInt.java
PeerConnectionInt.onCandidate
public void onCandidate(long sessionId, int index, String id, String sdp) { """ Call this method when new candidate arrived from other peer @param index index of media in sdp @param id id of candidate @param sdp sdp of candidate """ send(new PeerConnectionActor.OnCandidate(sessionId, index, i...
java
public void onCandidate(long sessionId, int index, String id, String sdp) { send(new PeerConnectionActor.OnCandidate(sessionId, index, id, sdp)); }
[ "public", "void", "onCandidate", "(", "long", "sessionId", ",", "int", "index", ",", "String", "id", ",", "String", "sdp", ")", "{", "send", "(", "new", "PeerConnectionActor", ".", "OnCandidate", "(", "sessionId", ",", "index", ",", "id", ",", "sdp", ")"...
Call this method when new candidate arrived from other peer @param index index of media in sdp @param id id of candidate @param sdp sdp of candidate
[ "Call", "this", "method", "when", "new", "candidate", "arrived", "from", "other", "peer" ]
train
https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/calls/peers/PeerConnectionInt.java#L104-L106
icode/ameba
src/main/java/ameba/message/error/ExceptionMapperUtils.java
ExceptionMapperUtils.getResponseType
public static MediaType getResponseType(ContainerRequest request, Integer status) { """ <p>getResponseType.</p> @param request a {@link org.glassfish.jersey.server.ContainerRequest} object. @param status a {@link java.lang.Integer} object. @return a {@link javax.ws.rs.core.MediaType} object. """ ...
java
public static MediaType getResponseType(ContainerRequest request, Integer status) { if (status != null && status == 406) { return MediaType.TEXT_HTML_TYPE; } List<MediaType> accepts = request.getAcceptableMediaTypes(); MediaType m; if (accepts != null && accepts.size(...
[ "public", "static", "MediaType", "getResponseType", "(", "ContainerRequest", "request", ",", "Integer", "status", ")", "{", "if", "(", "status", "!=", "null", "&&", "status", "==", "406", ")", "{", "return", "MediaType", ".", "TEXT_HTML_TYPE", ";", "}", "Lis...
<p>getResponseType.</p> @param request a {@link org.glassfish.jersey.server.ContainerRequest} object. @param status a {@link java.lang.Integer} object. @return a {@link javax.ws.rs.core.MediaType} object.
[ "<p", ">", "getResponseType", ".", "<", "/", "p", ">" ]
train
https://github.com/icode/ameba/blob/9d4956e935898e41331b2745e400ef869cd265e0/src/main/java/ameba/message/error/ExceptionMapperUtils.java#L57-L72
kaazing/java.client
amqp-0-9-1/amqp/src/main/java/org/kaazing/net/ws/amqp/AmqpChannel.java
AmqpChannel.openChannel
AmqpChannel openChannel() { """ Creates a Channel to the AMQP server on the given clients connection @return AmqpChannel """ if (readyState == ReadyState.OPEN) { // If the channel is already open, just bail. return this; } // try { Object[...
java
AmqpChannel openChannel() { if (readyState == ReadyState.OPEN) { // If the channel is already open, just bail. return this; } // try { Object[] args = {""}; WrappedByteBuffer bodyArg = null; HashMap<String, Object> headersArg =...
[ "AmqpChannel", "openChannel", "(", ")", "{", "if", "(", "readyState", "==", "ReadyState", ".", "OPEN", ")", "{", "// If the channel is already open, just bail.", "return", "this", ";", "}", "// try {", "Object", "[", "]", "args", "=", "{", "\"\"", "}", ";", ...
Creates a Channel to the AMQP server on the given clients connection @return AmqpChannel
[ "Creates", "a", "Channel", "to", "the", "AMQP", "server", "on", "the", "given", "clients", "connection" ]
train
https://github.com/kaazing/java.client/blob/25ad2ae5bb24aa9d6b79400fce649b518dcfbe26/amqp-0-9-1/amqp/src/main/java/org/kaazing/net/ws/amqp/AmqpChannel.java#L309-L338
RKumsher/utils
src/main/java/com/github/rkumsher/date/RandomDateUtils.java
RandomDateUtils.randomInstant
public static Instant randomInstant(Instant startInclusive, Instant endExclusive) { """ Returns a random {@link Instant} within the specified range. @param startInclusive the earliest {@link Instant} that can be returned @param endExclusive the upper bound (not included) @return the random {@link Instant} @t...
java
public static Instant randomInstant(Instant startInclusive, Instant endExclusive) { checkArgument(startInclusive != null, "Start must be non-null"); checkArgument(endExclusive != null, "End must be non-null"); checkArgument(!startInclusive.isAfter(endExclusive), "End must be on or after start"); checkAr...
[ "public", "static", "Instant", "randomInstant", "(", "Instant", "startInclusive", ",", "Instant", "endExclusive", ")", "{", "checkArgument", "(", "startInclusive", "!=", "null", ",", "\"Start must be non-null\"", ")", ";", "checkArgument", "(", "endExclusive", "!=", ...
Returns a random {@link Instant} within the specified range. @param startInclusive the earliest {@link Instant} that can be returned @param endExclusive the upper bound (not included) @return the random {@link Instant} @throws IllegalArgumentException if startInclusive or endExclusive are null or if endExclusive is ea...
[ "Returns", "a", "random", "{", "@link", "Instant", "}", "within", "the", "specified", "range", "." ]
train
https://github.com/RKumsher/utils/blob/fcdb190569cd0288249bf4b46fd418f8c01d1caf/src/main/java/com/github/rkumsher/date/RandomDateUtils.java#L454-L468
reactor/reactor-netty
src/main/java/reactor/netty/http/client/HttpClient.java
HttpClient.doOnRequestError
public final HttpClient doOnRequestError(BiConsumer<? super HttpClientRequest, ? super Throwable> doOnRequest) { """ Setup a callback called when {@link HttpClientRequest} has not been sent. Note that some mutation of {@link HttpClientRequest} performed late in lifecycle {@link #doOnRequest(BiConsumer)} or {@lin...
java
public final HttpClient doOnRequestError(BiConsumer<? super HttpClientRequest, ? super Throwable> doOnRequest) { Objects.requireNonNull(doOnRequest, "doOnRequest"); return new HttpClientDoOnError(this, doOnRequest, null); }
[ "public", "final", "HttpClient", "doOnRequestError", "(", "BiConsumer", "<", "?", "super", "HttpClientRequest", ",", "?", "super", "Throwable", ">", "doOnRequest", ")", "{", "Objects", ".", "requireNonNull", "(", "doOnRequest", ",", "\"doOnRequest\"", ")", ";", ...
Setup a callback called when {@link HttpClientRequest} has not been sent. Note that some mutation of {@link HttpClientRequest} performed late in lifecycle {@link #doOnRequest(BiConsumer)} or {@link RequestSender#send(BiFunction)} might not be visible if the error results from a connection failure. @param doOnRequest a...
[ "Setup", "a", "callback", "called", "when", "{", "@link", "HttpClientRequest", "}", "has", "not", "been", "sent", ".", "Note", "that", "some", "mutation", "of", "{", "@link", "HttpClientRequest", "}", "performed", "late", "in", "lifecycle", "{", "@link", "#d...
train
https://github.com/reactor/reactor-netty/blob/4ed14316e1d7fca3cecd18d6caa5f2251e159e49/src/main/java/reactor/netty/http/client/HttpClient.java#L531-L534
atomix/copycat
server/src/main/java/io/atomix/copycat/server/state/ServerStateMachine.java
ServerStateMachine.suspectSessions
private void suspectSessions(long exclude, long timestamp) { """ Marked as suspicious any sessions that have timed out according to the given timestamp. <p> Sessions are marked suspicious instead of being expired since log cleaning can result in large gaps in time between entries in the log. Thus, once log comp...
java
private void suspectSessions(long exclude, long timestamp) { for (ServerSessionContext session : executor.context().sessions().sessions.values()) { if (session.id() != exclude && timestamp - session.timeout() > session.getTimestamp()) { session.suspect(); } } }
[ "private", "void", "suspectSessions", "(", "long", "exclude", ",", "long", "timestamp", ")", "{", "for", "(", "ServerSessionContext", "session", ":", "executor", ".", "context", "(", ")", ".", "sessions", "(", ")", ".", "sessions", ".", "values", "(", ")",...
Marked as suspicious any sessions that have timed out according to the given timestamp. <p> Sessions are marked suspicious instead of being expired since log cleaning can result in large gaps in time between entries in the log. Thus, once log compaction has occurred, it's possible that a session could be marked expired...
[ "Marked", "as", "suspicious", "any", "sessions", "that", "have", "timed", "out", "according", "to", "the", "given", "timestamp", ".", "<p", ">", "Sessions", "are", "marked", "suspicious", "instead", "of", "being", "expired", "since", "log", "cleaning", "can", ...
train
https://github.com/atomix/copycat/blob/c90b88ccd5c63d6ea0b49fb77c25e2f3272a7b10/server/src/main/java/io/atomix/copycat/server/state/ServerStateMachine.java#L976-L982
graphql-java/graphql-java
src/main/java/graphql/schema/idl/SchemaTypeExtensionsChecker.java
SchemaTypeExtensionsChecker.checkObjectTypeExtensions
private void checkObjectTypeExtensions(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) { """ /* Object type extensions have the potential to be invalid if incorrectly defined. The named type must already be defined and must be an Object type. The fields of an Object type extension must have un...
java
private void checkObjectTypeExtensions(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) { typeRegistry.objectTypeExtensions() .forEach((name, extensions) -> { checkTypeExtensionHasCorrespondingType(errors, typeRegistry, name, extensions, ObjectTypeDefin...
[ "private", "void", "checkObjectTypeExtensions", "(", "List", "<", "GraphQLError", ">", "errors", ",", "TypeDefinitionRegistry", "typeRegistry", ")", "{", "typeRegistry", ".", "objectTypeExtensions", "(", ")", ".", "forEach", "(", "(", "name", ",", "extensions", ")...
/* Object type extensions have the potential to be invalid if incorrectly defined. The named type must already be defined and must be an Object type. The fields of an Object type extension must have unique names; no two fields may share the same name. Any fields of an Object type extension must not be already defined ...
[ "/", "*", "Object", "type", "extensions", "have", "the", "potential", "to", "be", "invalid", "if", "incorrectly", "defined", "." ]
train
https://github.com/graphql-java/graphql-java/blob/9214b6044317849388bd88a14b54fc1c18c9f29f/src/main/java/graphql/schema/idl/SchemaTypeExtensionsChecker.java#L69-L111
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/workspace/VoiceApi.java
VoiceApi.completeTransfer
public void completeTransfer(String connId, String parentConnId) throws WorkspaceApiException { """ Complete a previously initiated two-step transfer using the provided IDs. @param connId The connection ID of the consult call (established). @param parentConnId The connection ID of the parent call (held). """...
java
public void completeTransfer(String connId, String parentConnId) throws WorkspaceApiException { this.completeTransfer(connId, parentConnId, null, null); }
[ "public", "void", "completeTransfer", "(", "String", "connId", ",", "String", "parentConnId", ")", "throws", "WorkspaceApiException", "{", "this", ".", "completeTransfer", "(", "connId", ",", "parentConnId", ",", "null", ",", "null", ")", ";", "}" ]
Complete a previously initiated two-step transfer using the provided IDs. @param connId The connection ID of the consult call (established). @param parentConnId The connection ID of the parent call (held).
[ "Complete", "a", "previously", "initiated", "two", "-", "step", "transfer", "using", "the", "provided", "IDs", "." ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/workspace/VoiceApi.java#L830-L832
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/field/event/DisableBehOnFieldHandler.java
DisableBehOnFieldHandler.init
public void init(BaseField field, BaseListener listenerToDisable, String strDisableOnMatch, boolean bDisableIfMatch) { """ Constructor. @param field The basefield owner of this listener (usually null and set on setOwner()). """ super.init(field); m_listenerToDisable = listenerToDisable; ...
java
public void init(BaseField field, BaseListener listenerToDisable, String strDisableOnMatch, boolean bDisableIfMatch) { super.init(field); m_listenerToDisable = listenerToDisable; m_strDisableOnMatch = strDisableOnMatch; m_bDisableIfMatch = bDisableIfMatch; }
[ "public", "void", "init", "(", "BaseField", "field", ",", "BaseListener", "listenerToDisable", ",", "String", "strDisableOnMatch", ",", "boolean", "bDisableIfMatch", ")", "{", "super", ".", "init", "(", "field", ")", ";", "m_listenerToDisable", "=", "listenerToDis...
Constructor. @param field The basefield owner of this listener (usually null and set on setOwner()).
[ "Constructor", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/event/DisableBehOnFieldHandler.java#L73-L79