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
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
HtmlWriter.getResource
public Content getResource(String key, Object o0, Object o1) { """ Get the configuration string as a content. @param key the key to look for in the configuration file @param o1 string or content argument added to configuration text @param o2 string or content argument added to configuration text @return a ...
java
public Content getResource(String key, Object o0, Object o1) { return configuration.getResource(key, o0, o1); }
[ "public", "Content", "getResource", "(", "String", "key", ",", "Object", "o0", ",", "Object", "o1", ")", "{", "return", "configuration", ".", "getResource", "(", "key", ",", "o0", ",", "o1", ")", ";", "}" ]
Get the configuration string as a content. @param key the key to look for in the configuration file @param o1 string or content argument added to configuration text @param o2 string or content argument added to configuration text @return a content tree for the text
[ "Get", "the", "configuration", "string", "as", "a", "content", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java#L277-L279
alkacon/opencms-core
src/org/opencms/ui/favorites/CmsFavoriteEntry.java
CmsFavoriteEntry.readId
public static CmsUUID readId(JSONObject obj, String key) { """ Reads a UUID from a JSON object. Returns null if the JSON value for the given key is not present or not a valid UUID @param obj the JSON object @param key the JSON key @return the UUID """ String strValue = obj.optString(key); ...
java
public static CmsUUID readId(JSONObject obj, String key) { String strValue = obj.optString(key); if (!CmsUUID.isValidUUID(strValue)) { return null; } return new CmsUUID(strValue); }
[ "public", "static", "CmsUUID", "readId", "(", "JSONObject", "obj", ",", "String", "key", ")", "{", "String", "strValue", "=", "obj", ".", "optString", "(", "key", ")", ";", "if", "(", "!", "CmsUUID", ".", "isValidUUID", "(", "strValue", ")", ")", "{", ...
Reads a UUID from a JSON object. Returns null if the JSON value for the given key is not present or not a valid UUID @param obj the JSON object @param key the JSON key @return the UUID
[ "Reads", "a", "UUID", "from", "a", "JSON", "object", "." ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/favorites/CmsFavoriteEntry.java#L157-L164
astrapi69/jaulp-wicket
jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/labeled/LabeledFormComponentPanel.java
LabeledFormComponentPanel.newLabel
protected Component newLabel(final String id, final String forId, final IModel<String> model) { """ Factory method for creating the new {@link Label}. This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a new {@link Label}. @param ...
java
protected Component newLabel(final String id, final String forId, final IModel<String> model) { return ComponentFactory.newLabel(id, forId, model); }
[ "protected", "Component", "newLabel", "(", "final", "String", "id", ",", "final", "String", "forId", ",", "final", "IModel", "<", "String", ">", "model", ")", "{", "return", "ComponentFactory", ".", "newLabel", "(", "id", ",", "forId", ",", "model", ")", ...
Factory method for creating the new {@link Label}. This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a new {@link Label}. @param id the id @param forId the for id @param model the model @return the new {@link Label}
[ "Factory", "method", "for", "creating", "the", "new", "{", "@link", "Label", "}", ".", "This", "method", "is", "invoked", "in", "the", "constructor", "from", "the", "derived", "classes", "and", "can", "be", "overridden", "so", "users", "can", "provide", "t...
train
https://github.com/astrapi69/jaulp-wicket/blob/85d74368d00abd9bb97659b5794e38c0f8a013d4/jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/labeled/LabeledFormComponentPanel.java#L136-L139
spring-projects/spring-security-oauth
spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/endpoint/DefaultRedirectResolver.java
DefaultRedirectResolver.hostMatches
protected boolean hostMatches(String registered, String requested) { """ Check if host matches the registered value. @param registered the registered host @param requested the requested host @return true if they match """ if (matchSubdomains) { return registered.equals(requested) || requested.endsWit...
java
protected boolean hostMatches(String registered, String requested) { if (matchSubdomains) { return registered.equals(requested) || requested.endsWith("." + registered); } return registered.equals(requested); }
[ "protected", "boolean", "hostMatches", "(", "String", "registered", ",", "String", "requested", ")", "{", "if", "(", "matchSubdomains", ")", "{", "return", "registered", ".", "equals", "(", "requested", ")", "||", "requested", ".", "endsWith", "(", "\".\"", ...
Check if host matches the registered value. @param registered the registered host @param requested the requested host @return true if they match
[ "Check", "if", "host", "matches", "the", "registered", "value", "." ]
train
https://github.com/spring-projects/spring-security-oauth/blob/bbae0027eceb2c74a21ac26bbc86142dc732ffbe/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/endpoint/DefaultRedirectResolver.java#L190-L195
etnetera/seb
src/main/java/cz/etnetera/seb/listener/SebListener.java
SebListener.saveFile
protected void saveFile(SebEvent event, byte[] bytes, String name, String extension) { """ Save bytes into output file with given name and extension. @param event @param bytes @param name @param extension """ event.saveFile(bytes, getListenerFileName(name), extension); }
java
protected void saveFile(SebEvent event, byte[] bytes, String name, String extension) { event.saveFile(bytes, getListenerFileName(name), extension); }
[ "protected", "void", "saveFile", "(", "SebEvent", "event", ",", "byte", "[", "]", "bytes", ",", "String", "name", ",", "String", "extension", ")", "{", "event", ".", "saveFile", "(", "bytes", ",", "getListenerFileName", "(", "name", ")", ",", "extension", ...
Save bytes into output file with given name and extension. @param event @param bytes @param name @param extension
[ "Save", "bytes", "into", "output", "file", "with", "given", "name", "and", "extension", "." ]
train
https://github.com/etnetera/seb/blob/6aed29c7726db12f440c60cfd253de229064ed04/src/main/java/cz/etnetera/seb/listener/SebListener.java#L449-L451
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/TriggersInner.java
TriggersInner.createOrUpdateAsync
public Observable<TriggerInner> createOrUpdateAsync(String deviceName, String name, String resourceGroupName, TriggerInner trigger) { """ Creates or updates a trigger. @param deviceName Creates or updates a trigger @param name The trigger name. @param resourceGroupName The resource group name. @param trigger...
java
public Observable<TriggerInner> createOrUpdateAsync(String deviceName, String name, String resourceGroupName, TriggerInner trigger) { return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger).map(new Func1<ServiceResponse<TriggerInner>, TriggerInner>() { @Override ...
[ "public", "Observable", "<", "TriggerInner", ">", "createOrUpdateAsync", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ",", "TriggerInner", "trigger", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "deviceNam...
Creates or updates a trigger. @param deviceName Creates or updates a trigger @param name The trigger name. @param resourceGroupName The resource group name. @param trigger The trigger. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable for the request
[ "Creates", "or", "updates", "a", "trigger", "." ]
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/TriggersInner.java#L473-L480
jenkinsci/jenkins
core/src/main/java/hudson/security/TokenBasedRememberMeServices2.java
TokenBasedRememberMeServices2.findRememberMeCookieValue
private String findRememberMeCookieValue(HttpServletRequest request, HttpServletResponse response) { """ Patched version of the super.autoLogin with a time-independent equality check for the token validation """ Cookie[] cookies = request.getCookies(); if ((cookies == null) || (cookies.length ...
java
private String findRememberMeCookieValue(HttpServletRequest request, HttpServletResponse response) { Cookie[] cookies = request.getCookies(); if ((cookies == null) || (cookies.length == 0)) { return null; } for (Cookie cookie : cookies) { if (ACEGI_SECURITY_HASH...
[ "private", "String", "findRememberMeCookieValue", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "{", "Cookie", "[", "]", "cookies", "=", "request", ".", "getCookies", "(", ")", ";", "if", "(", "(", "cookies", "==", "null", ...
Patched version of the super.autoLogin with a time-independent equality check for the token validation
[ "Patched", "version", "of", "the", "super", ".", "autoLogin", "with", "a", "time", "-", "independent", "equality", "check", "for", "the", "token", "validation" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/security/TokenBasedRememberMeServices2.java#L185-L199
crnk-project/crnk-framework
crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/ControllerRegistry.java
ControllerRegistry.getController
public Controller getController(JsonPath jsonPath, String method) { """ Iterate over all registered controllers to get the first suitable one. @param jsonPath built JsonPath object mad from request path @param method type of a HTTP request @return suitable controller """ for (Controller controller : c...
java
public Controller getController(JsonPath jsonPath, String method) { for (Controller controller : controllers) { if (controller.isAcceptable(jsonPath, method)) { LOGGER.debug("using controller {}", controller); return controller; } } throw new BadRequestException(jsonPath + " with method " + method);...
[ "public", "Controller", "getController", "(", "JsonPath", "jsonPath", ",", "String", "method", ")", "{", "for", "(", "Controller", "controller", ":", "controllers", ")", "{", "if", "(", "controller", ".", "isAcceptable", "(", "jsonPath", ",", "method", ")", ...
Iterate over all registered controllers to get the first suitable one. @param jsonPath built JsonPath object mad from request path @param method type of a HTTP request @return suitable controller
[ "Iterate", "over", "all", "registered", "controllers", "to", "get", "the", "first", "suitable", "one", "." ]
train
https://github.com/crnk-project/crnk-framework/blob/2fd3ef9a991788d46fd2e83b43c8ea37cbaf8681/crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/ControllerRegistry.java#L47-L55
MariaDB/mariadb-connector-j
src/main/java/org/mariadb/jdbc/internal/com/read/resultset/SelectResultSet.java
SelectResultSet.createResultSet
public static ResultSet createResultSet(String[] columnNames, ColumnType[] columnTypes, String[][] data, Protocol protocol) { """ Create a result set from given data. Useful for creating "fake" resultSets for DatabaseMetaData, (one example is MariaDbDatabaseMetaData.getTypeInfo()) @param columnName...
java
public static ResultSet createResultSet(String[] columnNames, ColumnType[] columnTypes, String[][] data, Protocol protocol) { int columnNameLength = columnNames.length; ColumnInformation[] columns = new ColumnInformation[columnNameLength]; for (int i = 0; i < columnNameLength; i++) { colu...
[ "public", "static", "ResultSet", "createResultSet", "(", "String", "[", "]", "columnNames", ",", "ColumnType", "[", "]", "columnTypes", ",", "String", "[", "]", "[", "]", "data", ",", "Protocol", "protocol", ")", "{", "int", "columnNameLength", "=", "columnN...
Create a result set from given data. Useful for creating "fake" resultSets for DatabaseMetaData, (one example is MariaDbDatabaseMetaData.getTypeInfo()) @param columnNames - string array of column names @param columnTypes - column types @param data - each element of this array represents a complete row in the Re...
[ "Create", "a", "result", "set", "from", "given", "data", ".", "Useful", "for", "creating", "fake", "resultSets", "for", "DatabaseMetaData", "(", "one", "example", "is", "MariaDbDatabaseMetaData", ".", "getTypeInfo", "()", ")" ]
train
https://github.com/MariaDB/mariadb-connector-j/blob/d148c7cd347c4680617be65d9e511b289d38a30b/src/main/java/org/mariadb/jdbc/internal/com/read/resultset/SelectResultSet.java#L305-L328
UrielCh/ovh-java-sdk
ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java
ApiOvhCloud.project_serviceName_network_private_networkId_subnet_GET
public ArrayList<OvhSubnet> project_serviceName_network_private_networkId_subnet_GET(String serviceName, String networkId) throws IOException { """ Get network subnets REST: GET /cloud/project/{serviceName}/network/private/{networkId}/subnet @param networkId [required] Network id @param serviceName [required]...
java
public ArrayList<OvhSubnet> project_serviceName_network_private_networkId_subnet_GET(String serviceName, String networkId) throws IOException { String qPath = "/cloud/project/{serviceName}/network/private/{networkId}/subnet"; StringBuilder sb = path(qPath, serviceName, networkId); String resp = exec(qPath, "GET",...
[ "public", "ArrayList", "<", "OvhSubnet", ">", "project_serviceName_network_private_networkId_subnet_GET", "(", "String", "serviceName", ",", "String", "networkId", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/cloud/project/{serviceName}/network/private/{networ...
Get network subnets REST: GET /cloud/project/{serviceName}/network/private/{networkId}/subnet @param networkId [required] Network id @param serviceName [required] Service name
[ "Get", "network", "subnets" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java#L726-L731
JOML-CI/JOML
src/org/joml/Matrix4f.java
Matrix4f.orthoLH
public Matrix4f orthoLH(float left, float right, float bottom, float top, float zNear, float zFar, boolean zZeroToOne, Matrix4f dest) { """ Apply an orthographic projection transformation for a left-handed coordiante system using the given NDC z range to this matrix and store the result in <code>dest</code>. <p>...
java
public Matrix4f orthoLH(float left, float right, float bottom, float top, float zNear, float zFar, boolean zZeroToOne, Matrix4f dest) { if ((properties & PROPERTY_IDENTITY) != 0) return dest.setOrthoLH(left, right, bottom, top, zNear, zFar, zZeroToOne); return orthoLHGeneric(left, right, bot...
[ "public", "Matrix4f", "orthoLH", "(", "float", "left", ",", "float", "right", ",", "float", "bottom", ",", "float", "top", ",", "float", "zNear", ",", "float", "zFar", ",", "boolean", "zZeroToOne", ",", "Matrix4f", "dest", ")", "{", "if", "(", "(", "pr...
Apply an orthographic projection transformation for a left-handed coordiante system using the given NDC z range to this matrix and store the result in <code>dest</code>. <p> If <code>M</code> is <code>this</code> matrix and <code>O</code> the orthographic projection matrix, then the new matrix will be <code>M * O</code...
[ "Apply", "an", "orthographic", "projection", "transformation", "for", "a", "left", "-", "handed", "coordiante", "system", "using", "the", "given", "NDC", "z", "range", "to", "this", "matrix", "and", "store", "the", "result", "in", "<code", ">", "dest<", "/",...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix4f.java#L7016-L7020
UrielCh/ovh-java-sdk
ovh-java-sdk-emaildomain/src/main/java/net/minidev/ovh/api/ApiOvhEmaildomain.java
ApiOvhEmaildomain.domain_account_accountName_changePassword_POST
public OvhTaskPop domain_account_accountName_changePassword_POST(String domain, String accountName, String password) throws IOException { """ Change mailbox password (length : [9;30], no space at begin and end, no accent) REST: POST /email/domain/{domain}/account/{accountName}/changePassword @param password [r...
java
public OvhTaskPop domain_account_accountName_changePassword_POST(String domain, String accountName, String password) throws IOException { String qPath = "/email/domain/{domain}/account/{accountName}/changePassword"; StringBuilder sb = path(qPath, domain, accountName); HashMap<String, Object>o = new HashMap<String...
[ "public", "OvhTaskPop", "domain_account_accountName_changePassword_POST", "(", "String", "domain", ",", "String", "accountName", ",", "String", "password", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/email/domain/{domain}/account/{accountName}/changePassword\...
Change mailbox password (length : [9;30], no space at begin and end, no accent) REST: POST /email/domain/{domain}/account/{accountName}/changePassword @param password [required] New password @param domain [required] Name of your domain name @param accountName [required] Name of account
[ "Change", "mailbox", "password", "(", "length", ":", "[", "9", ";", "30", "]", "no", "space", "at", "begin", "and", "end", "no", "accent", ")" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-emaildomain/src/main/java/net/minidev/ovh/api/ApiOvhEmaildomain.java#L558-L565
tminglei/form-binder-java
src/main/java/com/github/tminglei/bind/Mappings.java
Mappings.text
public static Mapping<String> text(Constraint... constraints) { """ (convert to String) mapping @param constraints constraints @return new created mapping """ return new FieldMapping( InputMode.SINGLE, mkSimpleConverter(Function.identity()), new Mapping...
java
public static Mapping<String> text(Constraint... constraints) { return new FieldMapping( InputMode.SINGLE, mkSimpleConverter(Function.identity()), new MappingMeta(MAPPING_STRING, String.class) ).constraint(constraints); }
[ "public", "static", "Mapping", "<", "String", ">", "text", "(", "Constraint", "...", "constraints", ")", "{", "return", "new", "FieldMapping", "(", "InputMode", ".", "SINGLE", ",", "mkSimpleConverter", "(", "Function", ".", "identity", "(", ")", ")", ",", ...
(convert to String) mapping @param constraints constraints @return new created mapping
[ "(", "convert", "to", "String", ")", "mapping" ]
train
https://github.com/tminglei/form-binder-java/blob/4c0bd1e8f81ae56b21142bb525ee6b4deb7f92ab/src/main/java/com/github/tminglei/bind/Mappings.java#L34-L40
apache/incubator-heron
heron/spi/src/java/org/apache/heron/spi/statemgr/SchedulerStateManagerAdaptor.java
SchedulerStateManagerAdaptor.getSchedulerLocation
public Scheduler.SchedulerLocation getSchedulerLocation(String topologyName) { """ Get the scheduler location for the given topology @return SchedulerLocation """ return awaitResult(delegate.getSchedulerLocation(null, topologyName)); }
java
public Scheduler.SchedulerLocation getSchedulerLocation(String topologyName) { return awaitResult(delegate.getSchedulerLocation(null, topologyName)); }
[ "public", "Scheduler", ".", "SchedulerLocation", "getSchedulerLocation", "(", "String", "topologyName", ")", "{", "return", "awaitResult", "(", "delegate", ".", "getSchedulerLocation", "(", "null", ",", "topologyName", ")", ")", ";", "}" ]
Get the scheduler location for the given topology @return SchedulerLocation
[ "Get", "the", "scheduler", "location", "for", "the", "given", "topology" ]
train
https://github.com/apache/incubator-heron/blob/776abe2b5a45b93a0eb957fd65cbc149d901a92a/heron/spi/src/java/org/apache/heron/spi/statemgr/SchedulerStateManagerAdaptor.java#L256-L258
apache/incubator-druid
core/src/main/java/org/apache/druid/java/util/common/lifecycle/Lifecycle.java
Lifecycle.addManagedInstance
public <T> T addManagedInstance(T o, Stage stage) { """ Adds a "managed" instance (annotated with {@link LifecycleStart} and {@link LifecycleStop}) to the Lifecycle. If the lifecycle has already been started, it throws an {@link ISE} @param o The object to add to the lifecycle @param stage The stage to ad...
java
public <T> T addManagedInstance(T o, Stage stage) { addHandler(new AnnotationBasedHandler(o), stage); return o; }
[ "public", "<", "T", ">", "T", "addManagedInstance", "(", "T", "o", ",", "Stage", "stage", ")", "{", "addHandler", "(", "new", "AnnotationBasedHandler", "(", "o", ")", ",", "stage", ")", ";", "return", "o", ";", "}" ]
Adds a "managed" instance (annotated with {@link LifecycleStart} and {@link LifecycleStop}) to the Lifecycle. If the lifecycle has already been started, it throws an {@link ISE} @param o The object to add to the lifecycle @param stage The stage to add the lifecycle at @throws ISE {@link Lifecycle#addHandler(Handl...
[ "Adds", "a", "managed", "instance", "(", "annotated", "with", "{", "@link", "LifecycleStart", "}", "and", "{", "@link", "LifecycleStop", "}", ")", "to", "the", "Lifecycle", ".", "If", "the", "lifecycle", "has", "already", "been", "started", "it", "throws", ...
train
https://github.com/apache/incubator-druid/blob/f776b9408962b9006cfcfe4d6c1794751972cc8e/core/src/main/java/org/apache/druid/java/util/common/lifecycle/Lifecycle.java#L139-L143
apache/reef
lang/java/reef-runtime-yarn/src/main/java/org/apache/reef/runtime/yarn/client/uploader/JobFolder.java
JobFolder.uploadAsLocalResource
public LocalResource uploadAsLocalResource(final File localFile, final LocalResourceType type) throws IOException { """ Shortcut to first upload the file and then form a LocalResource for the YARN submission. @param localFile File on local FS to upload to the (remote) DFS. @return an instance of a LocalResource ...
java
public LocalResource uploadAsLocalResource(final File localFile, final LocalResourceType type) throws IOException { final Path remoteFile = upload(localFile); return getLocalResourceForPath(remoteFile, type); }
[ "public", "LocalResource", "uploadAsLocalResource", "(", "final", "File", "localFile", ",", "final", "LocalResourceType", "type", ")", "throws", "IOException", "{", "final", "Path", "remoteFile", "=", "upload", "(", "localFile", ")", ";", "return", "getLocalResource...
Shortcut to first upload the file and then form a LocalResource for the YARN submission. @param localFile File on local FS to upload to the (remote) DFS. @return an instance of a LocalResource on (remote) DFS. @throws IOException if unable to upload the file or local file cannot be read.
[ "Shortcut", "to", "first", "upload", "the", "file", "and", "then", "form", "a", "LocalResource", "for", "the", "YARN", "submission", "." ]
train
https://github.com/apache/reef/blob/e2c47121cde21108a602c560cf76565a40d0e916/lang/java/reef-runtime-yarn/src/main/java/org/apache/reef/runtime/yarn/client/uploader/JobFolder.java#L92-L95
lucee/Lucee
core/src/main/java/lucee/runtime/type/scope/ScopeContext.java
ScopeContext.getClusterScope
public static Cluster getClusterScope(Config config, boolean create) throws PageException { """ Returns the current Cluster Scope, if there is no current Cluster Scope and create is true, returns a new Cluster Scope. If create is false and the request has no valid Cluster Scope, this method returns null. @par...
java
public static Cluster getClusterScope(Config config, boolean create) throws PageException { if (cluster == null && create) { cluster = ((ConfigImpl) config).createClusterScope(); } return cluster; }
[ "public", "static", "Cluster", "getClusterScope", "(", "Config", "config", ",", "boolean", "create", ")", "throws", "PageException", "{", "if", "(", "cluster", "==", "null", "&&", "create", ")", "{", "cluster", "=", "(", "(", "ConfigImpl", ")", "config", "...
Returns the current Cluster Scope, if there is no current Cluster Scope and create is true, returns a new Cluster Scope. If create is false and the request has no valid Cluster Scope, this method returns null. @param config @param create @return @throws PageException
[ "Returns", "the", "current", "Cluster", "Scope", "if", "there", "is", "no", "current", "Cluster", "Scope", "and", "create", "is", "true", "returns", "a", "new", "Cluster", "Scope", ".", "If", "create", "is", "false", "and", "the", "request", "has", "no", ...
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/type/scope/ScopeContext.java#L201-L207
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
SequenceManagerStoredProcedureImpl.sp_createSequenceQuery
protected String sp_createSequenceQuery(String sequenceName, long maxKey) { """ Insert syntax for our special table @param sequenceName @param maxKey @return sequence insert statement """ return "insert into " + SEQ_TABLE_NAME + " (" + SEQ_NAME_STRING + "," + SEQ_ID_STRING + ...
java
protected String sp_createSequenceQuery(String sequenceName, long maxKey) { return "insert into " + SEQ_TABLE_NAME + " (" + SEQ_NAME_STRING + "," + SEQ_ID_STRING + ") values ('" + sequenceName + "'," + maxKey + ")"; }
[ "protected", "String", "sp_createSequenceQuery", "(", "String", "sequenceName", ",", "long", "maxKey", ")", "{", "return", "\"insert into \"", "+", "SEQ_TABLE_NAME", "+", "\" (\"", "+", "SEQ_NAME_STRING", "+", "\",\"", "+", "SEQ_ID_STRING", "+", "\") values ('\"", "...
Insert syntax for our special table @param sequenceName @param maxKey @return sequence insert statement
[ "Insert", "syntax", "for", "our", "special", "table" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java#L148-L153
pgjdbc/pgjdbc
pgjdbc/src/main/java/org/postgresql/jdbc/EscapedFunctions.java
EscapedFunctions.sqlinsert
public static String sqlinsert(List<?> parsedArgs) throws SQLException { """ insert to overlay translation. @param parsedArgs arguments @return sql call @throws SQLException if something wrong happens """ if (parsedArgs.size() != 4) { throw new PSQLException(GT.tr("{0} function takes four and on...
java
public static String sqlinsert(List<?> parsedArgs) throws SQLException { if (parsedArgs.size() != 4) { throw new PSQLException(GT.tr("{0} function takes four and only four argument.", "insert"), PSQLState.SYNTAX_ERROR); } StringBuilder buf = new StringBuilder(); buf.append("overlay("); ...
[ "public", "static", "String", "sqlinsert", "(", "List", "<", "?", ">", "parsedArgs", ")", "throws", "SQLException", "{", "if", "(", "parsedArgs", ".", "size", "(", ")", "!=", "4", ")", "{", "throw", "new", "PSQLException", "(", "GT", ".", "tr", "(", ...
insert to overlay translation. @param parsedArgs arguments @return sql call @throws SQLException if something wrong happens
[ "insert", "to", "overlay", "translation", "." ]
train
https://github.com/pgjdbc/pgjdbc/blob/95ba7b261e39754674c5817695ae5ebf9a341fae/pgjdbc/src/main/java/org/postgresql/jdbc/EscapedFunctions.java#L236-L246
dbracewell/mango
src/main/java/com/davidbracewell/scripting/ScriptEnvironment.java
ScriptEnvironment.getInterface
public <T> T getInterface(String objectName, Class<T> clazz) { """ <p> Gets an object created in the scripting environment and converts it to a Java Interface. </p> @param <T> The type of the Java Interface @param objectName The name of the object in the script @param clazz The class information f...
java
public <T> T getInterface(String objectName, Class<T> clazz) { Invocable inv = (Invocable) engine; Object o = engine.get(objectName); if (o == null) { return null; } return inv.getInterface(o, clazz); }
[ "public", "<", "T", ">", "T", "getInterface", "(", "String", "objectName", ",", "Class", "<", "T", ">", "clazz", ")", "{", "Invocable", "inv", "=", "(", "Invocable", ")", "engine", ";", "Object", "o", "=", "engine", ".", "get", "(", "objectName", ")"...
<p> Gets an object created in the scripting environment and converts it to a Java Interface. </p> @param <T> The type of the Java Interface @param objectName The name of the object in the script @param clazz The class information for the Java interface @return The object as the Java interface or null if th...
[ "<p", ">", "Gets", "an", "object", "created", "in", "the", "scripting", "environment", "and", "converts", "it", "to", "a", "Java", "Interface", ".", "<", "/", "p", ">" ]
train
https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/scripting/ScriptEnvironment.java#L159-L166
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/AbstractCommandBuilder.java
AbstractCommandBuilder.normalizePath
protected Path normalizePath(final Path parent, final String path) { """ Resolves the path relative to the parent and normalizes it. @param parent the parent path @param path the path @return the normalized path """ return parent.resolve(path).toAbsolutePath().normalize(); }
java
protected Path normalizePath(final Path parent, final String path) { return parent.resolve(path).toAbsolutePath().normalize(); }
[ "protected", "Path", "normalizePath", "(", "final", "Path", "parent", ",", "final", "String", "path", ")", "{", "return", "parent", ".", "resolve", "(", "path", ")", ".", "toAbsolutePath", "(", ")", ".", "normalize", "(", ")", ";", "}" ]
Resolves the path relative to the parent and normalizes it. @param parent the parent path @param path the path @return the normalized path
[ "Resolves", "the", "path", "relative", "to", "the", "parent", "and", "normalizes", "it", "." ]
train
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/AbstractCommandBuilder.java#L564-L566
mgormley/pacaya
src/main/java/edu/jhu/pacaya/gm/model/FactorGraph.java
FactorGraph.getClamped
public FactorGraph getClamped(VarConfig clampVars) { """ Gets a new factor graph, identical to this one, except that specified variables are clamped to their values. This is accomplished by adding a unary factor on each clamped variable. The original K factors are preserved in order with IDs 1...K. @param cla...
java
public FactorGraph getClamped(VarConfig clampVars) { FactorGraph clmpFg = new FactorGraph(); // Add ALL the original variables to the clamped factor graph. for (Var v : this.getVars()) { clmpFg.addVar(v); } // Add ALL the original factors to the clamped factor graph. ...
[ "public", "FactorGraph", "getClamped", "(", "VarConfig", "clampVars", ")", "{", "FactorGraph", "clmpFg", "=", "new", "FactorGraph", "(", ")", ";", "// Add ALL the original variables to the clamped factor graph.", "for", "(", "Var", "v", ":", "this", ".", "getVars", ...
Gets a new factor graph, identical to this one, except that specified variables are clamped to their values. This is accomplished by adding a unary factor on each clamped variable. The original K factors are preserved in order with IDs 1...K. @param clampVars The variables to clamp.
[ "Gets", "a", "new", "factor", "graph", "identical", "to", "this", "one", "except", "that", "specified", "variables", "are", "clamped", "to", "their", "values", ".", "This", "is", "accomplished", "by", "adding", "a", "unary", "factor", "on", "each", "clamped"...
train
https://github.com/mgormley/pacaya/blob/786294cbac7cc65dbc32210c10acc32ed0c69233/src/main/java/edu/jhu/pacaya/gm/model/FactorGraph.java#L52-L71
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java
SIBMBeanResultFactory.createSIBQueuedMessage
public static QueuedMessage createSIBQueuedMessage(SIMPQueuedMessageControllable qmc) { """ Create a SIBQueuedMessageImpl instance from the supplied SIMPQueuedMessageControllable. @param qmc @return """ String id = null; int jsApproximateLength = 0; String name = null; Str...
java
public static QueuedMessage createSIBQueuedMessage(SIMPQueuedMessageControllable qmc) { String id = null; int jsApproximateLength = 0; String name = null; String state = null; String transactionId = null; String type = null; String busSystemMessageId = null; ...
[ "public", "static", "QueuedMessage", "createSIBQueuedMessage", "(", "SIMPQueuedMessageControllable", "qmc", ")", "{", "String", "id", "=", "null", ";", "int", "jsApproximateLength", "=", "0", ";", "String", "name", "=", "null", ";", "String", "state", "=", "null...
Create a SIBQueuedMessageImpl instance from the supplied SIMPQueuedMessageControllable. @param qmc @return
[ "Create", "a", "SIBQueuedMessageImpl", "instance", "from", "the", "supplied", "SIMPQueuedMessageControllable", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java#L43-L79
aspectran/aspectran
core/src/main/java/com/aspectran/core/util/MethodUtils.java
MethodUtils.invokeMethod
public static Object invokeMethod(Object object, String methodName) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { """ <p>Invoke a named method whose parameter type matches the object type.</p> @param object invoke method on this object @param methodName get metho...
java
public static Object invokeMethod(Object object, String methodName) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { return invokeMethod(object, methodName, EMPTY_OBJECT_ARRAY, EMPTY_CLASS_PARAMETERS); }
[ "public", "static", "Object", "invokeMethod", "(", "Object", "object", ",", "String", "methodName", ")", "throws", "NoSuchMethodException", ",", "IllegalAccessException", ",", "InvocationTargetException", "{", "return", "invokeMethod", "(", "object", ",", "methodName", ...
<p>Invoke a named method whose parameter type matches the object type.</p> @param object invoke method on this object @param methodName get method with this name @return the value returned by the invoked method @throws NoSuchMethodException if there is no such accessible method @throws InvocationTargetException wraps ...
[ "<p", ">", "Invoke", "a", "named", "method", "whose", "parameter", "type", "matches", "the", "object", "type", ".", "<", "/", "p", ">" ]
train
https://github.com/aspectran/aspectran/blob/2d758a2a28b71ee85b42823c12dc44674d7f2c70/core/src/main/java/com/aspectran/core/util/MethodUtils.java#L152-L155
cdapio/tigon
tigon-yarn/src/main/java/co/cask/tigon/internal/io/FieldAccessorGenerator.java
FieldAccessorGenerator.invokeReflection
private void invokeReflection(Method method, String signature) { """ Generates the try-catch block that wrap around the given reflection method call. @param method The method to be called within the try-catch block. """ GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, method, signature, new ...
java
private void invokeReflection(Method method, String signature) { GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, method, signature, new Type[0], classWriter); /** * try { * // Call method * } catch (IllegalAccessException e) { * throw Throwables.propagate(e); * } ...
[ "private", "void", "invokeReflection", "(", "Method", "method", ",", "String", "signature", ")", "{", "GeneratorAdapter", "mg", "=", "new", "GeneratorAdapter", "(", "Opcodes", ".", "ACC_PUBLIC", ",", "method", ",", "signature", ",", "new", "Type", "[", "0", ...
Generates the try-catch block that wrap around the given reflection method call. @param method The method to be called within the try-catch block.
[ "Generates", "the", "try", "-", "catch", "block", "that", "wrap", "around", "the", "given", "reflection", "method", "call", "." ]
train
https://github.com/cdapio/tigon/blob/5be6dffd7c79519d1211bb08f75be7dcfbbad392/tigon-yarn/src/main/java/co/cask/tigon/internal/io/FieldAccessorGenerator.java#L193-L222
deeplearning4j/deeplearning4j
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/ops/SDMath.java
SDMath.iamax
public SDVariable iamax(String name, SDVariable in, int... dimensions) { """ Index of the max absolute value: argmax(abs(in)) @see SameDiff#argmax(String, SDVariable, boolean, int...) """ return iamax(name, in, false, dimensions); }
java
public SDVariable iamax(String name, SDVariable in, int... dimensions) { return iamax(name, in, false, dimensions); }
[ "public", "SDVariable", "iamax", "(", "String", "name", ",", "SDVariable", "in", ",", "int", "...", "dimensions", ")", "{", "return", "iamax", "(", "name", ",", "in", ",", "false", ",", "dimensions", ")", ";", "}" ]
Index of the max absolute value: argmax(abs(in)) @see SameDiff#argmax(String, SDVariable, boolean, int...)
[ "Index", "of", "the", "max", "absolute", "value", ":", "argmax", "(", "abs", "(", "in", "))" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/ops/SDMath.java#L1212-L1214
Azure/azure-sdk-for-java
kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java
ClustersInner.createOrUpdateAsync
public Observable<ClusterInner> createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) { """ Create or update a Kusto cluster. @param resourceGroupName The name of the resource group containing the Kusto cluster. @param clusterName The name of the Kusto cluster. @param para...
java
public Observable<ClusterInner> createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1<ServiceResponse<ClusterInner>, ClusterInner>() { @Override ...
[ "public", "Observable", "<", "ClusterInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "clusterName", ",", "ClusterInner", "parameters", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "resourceGroupName", ",", "clus...
Create or update a Kusto cluster. @param resourceGroupName The name of the resource group containing the Kusto cluster. @param clusterName The name of the Kusto cluster. @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. @throws IllegalArgumentException thrown if parameters fail t...
[ "Create", "or", "update", "a", "Kusto", "cluster", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java#L258-L265
xwiki/xwiki-rendering
xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XMLWikiPrinter.java
XMLWikiPrinter.createAttributes
private Attributes createAttributes(Map<String, String> parameters) { """ Convert provided map into {@link Attributes} to use in xml writer. """ AttributesImpl attributes = new AttributesImpl(); if (parameters != null && !parameters.isEmpty()) { for (Map.Entry<String, String> entry...
java
private Attributes createAttributes(Map<String, String> parameters) { AttributesImpl attributes = new AttributesImpl(); if (parameters != null && !parameters.isEmpty()) { for (Map.Entry<String, String> entry : parameters.entrySet()) { String value = entry.getValue(); ...
[ "private", "Attributes", "createAttributes", "(", "Map", "<", "String", ",", "String", ">", "parameters", ")", "{", "AttributesImpl", "attributes", "=", "new", "AttributesImpl", "(", ")", ";", "if", "(", "parameters", "!=", "null", "&&", "!", "parameters", "...
Convert provided map into {@link Attributes} to use in xml writer.
[ "Convert", "provided", "map", "into", "{" ]
train
https://github.com/xwiki/xwiki-rendering/blob/a21cdfcb64ef5b76872e3eedf78c530f26d7beb0/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XMLWikiPrinter.java#L298-L314
xvik/generics-resolver
src/main/java/ru/vyarus/java/generics/resolver/util/type/CommonTypeFactory.java
CommonTypeFactory.resolveWildcardCommodity
private static Type resolveWildcardCommodity(final Type first, final Type second, final boolean alwaysIncludeInterfaces, final PathsCache cache) { """ Used when one of ...
java
private static Type resolveWildcardCommodity(final Type first, final Type second, final boolean alwaysIncludeInterfaces, final PathsCache cache) { final List<Type> f...
[ "private", "static", "Type", "resolveWildcardCommodity", "(", "final", "Type", "first", ",", "final", "Type", "second", ",", "final", "boolean", "alwaysIncludeInterfaces", ",", "final", "PathsCache", "cache", ")", "{", "final", "List", "<", "Type", ">", "firstTy...
Used when one of types is wildcard (contains multiple declaration types like {@code ? extends One & Two}). <p> All contained types from one type is compared for commodity with all contained types in another type. Overall commodity type is a wildcard with all non {@code Object} matches (of course after duplicates exclus...
[ "Used", "when", "one", "of", "types", "is", "wildcard", "(", "contains", "multiple", "declaration", "types", "like", "{", "@code", "?", "extends", "One", "&", "Two", "}", ")", ".", "<p", ">", "All", "contained", "types", "from", "one", "type", "is", "c...
train
https://github.com/xvik/generics-resolver/blob/d7d9d2783265df1178230e8f0b7cb6d853b67a7b/src/main/java/ru/vyarus/java/generics/resolver/util/type/CommonTypeFactory.java#L185-L211
adamfisk/littleshoot-util
src/main/java/org/littleshoot/util/CommonUtils.java
CommonUtils.getDataDir
public static File getDataDir() { """ Gets the directory to use for LittleShoot data. @return The platform-specific LittleShoot data directory. """ final File dir; if (SystemUtils.IS_OS_WINDOWS) { dir = new File(System.getenv("APPDATA"), "LittleShoot"); } else if (SystemU...
java
public static File getDataDir() { final File dir; if (SystemUtils.IS_OS_WINDOWS) { dir = new File(System.getenv("APPDATA"), "LittleShoot"); } else if (SystemUtils.IS_OS_MAC_OSX) { // TODO: Is this correct on international machines?? dir = new File("/Library/Ap...
[ "public", "static", "File", "getDataDir", "(", ")", "{", "final", "File", "dir", ";", "if", "(", "SystemUtils", ".", "IS_OS_WINDOWS", ")", "{", "dir", "=", "new", "File", "(", "System", ".", "getenv", "(", "\"APPDATA\"", ")", ",", "\"LittleShoot\"", ")",...
Gets the directory to use for LittleShoot data. @return The platform-specific LittleShoot data directory.
[ "Gets", "the", "directory", "to", "use", "for", "LittleShoot", "data", "." ]
train
https://github.com/adamfisk/littleshoot-util/blob/3c0dc4955116b3382d6b0575d2f164b7508a4f73/src/main/java/org/littleshoot/util/CommonUtils.java#L112-L128
casmi/casmi
src/main/java/casmi/util/FileUtil.java
FileUtil.searchFilePath
public static String searchFilePath(String fileName) { """ Search an absolute file path from current working directory recursively. @param fileName file name to search. @return an absolute file path. """ java.io.File dir = new java.io.File(System.getProperty("user.dir")); return recursiveSe...
java
public static String searchFilePath(String fileName) { java.io.File dir = new java.io.File(System.getProperty("user.dir")); return recursiveSearch(dir, fileName); }
[ "public", "static", "String", "searchFilePath", "(", "String", "fileName", ")", "{", "java", ".", "io", ".", "File", "dir", "=", "new", "java", ".", "io", ".", "File", "(", "System", ".", "getProperty", "(", "\"user.dir\"", ")", ")", ";", "return", "re...
Search an absolute file path from current working directory recursively. @param fileName file name to search. @return an absolute file path.
[ "Search", "an", "absolute", "file", "path", "from", "current", "working", "directory", "recursively", "." ]
train
https://github.com/casmi/casmi/blob/90f6514a9cbce0685186e7a92beb69e22a3b11c4/src/main/java/casmi/util/FileUtil.java#L189-L192
tango-controls/JTango
server/src/main/java/org/tango/server/build/StatusBuilder.java
StatusBuilder.build
public void build(final Class<?> clazz, final Field field, final DeviceImpl device, final Object businessObject) throws DevFailed { """ Create a status @param clazz @param field @param device @param businessObject @throws DevFailed """ xlogger.entry(); BuilderUtils.checkStati...
java
public void build(final Class<?> clazz, final Field field, final DeviceImpl device, final Object businessObject) throws DevFailed { xlogger.entry(); BuilderUtils.checkStatic(field); Method getter; final String stateName = field.getName(); final String getterName = Bui...
[ "public", "void", "build", "(", "final", "Class", "<", "?", ">", "clazz", ",", "final", "Field", "field", ",", "final", "DeviceImpl", "device", ",", "final", "Object", "businessObject", ")", "throws", "DevFailed", "{", "xlogger", ".", "entry", "(", ")", ...
Create a status @param clazz @param field @param device @param businessObject @throws DevFailed
[ "Create", "a", "status" ]
train
https://github.com/tango-controls/JTango/blob/1ccc9dcb83e6de2359a9f1906d170571cacf1345/server/src/main/java/org/tango/server/build/StatusBuilder.java#L61-L97
gallandarakhneorg/afc
core/maths/mathgeom/tobeincluded/src/d3/continuous/Capsule3d.java
Capsule3d.setProperties
public void setProperties(Point3d a, Point3d b, DoubleProperty radius1) { """ Set the capsule. @param a the first point of the capsule's segment. @param b the second point of the capsule's segment. @param radius1 the radius of the capsule. """ this.medial1.setProperties(a.xProperty, a.yProperty, a.zProp...
java
public void setProperties(Point3d a, Point3d b, DoubleProperty radius1) { this.medial1.setProperties(a.xProperty, a.yProperty, a.zProperty); this.medial2.setProperties(b.xProperty, b.yProperty, b.zProperty); this.radiusProperty = radius1; ensureAIsLowerPoint(); }
[ "public", "void", "setProperties", "(", "Point3d", "a", ",", "Point3d", "b", ",", "DoubleProperty", "radius1", ")", "{", "this", ".", "medial1", ".", "setProperties", "(", "a", ".", "xProperty", ",", "a", ".", "yProperty", ",", "a", ".", "zProperty", ")"...
Set the capsule. @param a the first point of the capsule's segment. @param b the second point of the capsule's segment. @param radius1 the radius of the capsule.
[ "Set", "the", "capsule", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/core/maths/mathgeom/tobeincluded/src/d3/continuous/Capsule3d.java#L337-L342
bitcoinj/bitcoinj
core/src/main/java/org/bitcoinj/core/LegacyAddress.java
LegacyAddress.fromScriptHash
public static LegacyAddress fromScriptHash(NetworkParameters params, byte[] hash160) throws AddressFormatException { """ Construct a {@link LegacyAddress} that represents the given P2SH script hash. @param params network this address is valid for @param hash160 P2SH script hash @return constructed address ...
java
public static LegacyAddress fromScriptHash(NetworkParameters params, byte[] hash160) throws AddressFormatException { return new LegacyAddress(params, true, hash160); }
[ "public", "static", "LegacyAddress", "fromScriptHash", "(", "NetworkParameters", "params", ",", "byte", "[", "]", "hash160", ")", "throws", "AddressFormatException", "{", "return", "new", "LegacyAddress", "(", "params", ",", "true", ",", "hash160", ")", ";", "}"...
Construct a {@link LegacyAddress} that represents the given P2SH script hash. @param params network this address is valid for @param hash160 P2SH script hash @return constructed address
[ "Construct", "a", "{", "@link", "LegacyAddress", "}", "that", "represents", "the", "given", "P2SH", "script", "hash", "." ]
train
https://github.com/bitcoinj/bitcoinj/blob/9cf13d29315014ed59cf4fc5944e5f227e8df9a6/core/src/main/java/org/bitcoinj/core/LegacyAddress.java#L111-L113
threerings/nenya
core/src/main/java/com/threerings/miso/client/MisoScenePanel.java
MisoScenePanel.getTipIcon
protected Icon getTipIcon (SceneObject scobj, String action) { """ Provides an icon for this tooltip, the default looks up an object action handler for the action and requests the icon from it. """ ObjectActionHandler oah = ObjectActionHandler.lookup(action); return (oah == null) ? null : oah....
java
protected Icon getTipIcon (SceneObject scobj, String action) { ObjectActionHandler oah = ObjectActionHandler.lookup(action); return (oah == null) ? null : oah.getTipIcon(action); }
[ "protected", "Icon", "getTipIcon", "(", "SceneObject", "scobj", ",", "String", "action", ")", "{", "ObjectActionHandler", "oah", "=", "ObjectActionHandler", ".", "lookup", "(", "action", ")", ";", "return", "(", "oah", "==", "null", ")", "?", "null", ":", ...
Provides an icon for this tooltip, the default looks up an object action handler for the action and requests the icon from it.
[ "Provides", "an", "icon", "for", "this", "tooltip", "the", "default", "looks", "up", "an", "object", "action", "handler", "for", "the", "action", "and", "requests", "the", "icon", "from", "it", "." ]
train
https://github.com/threerings/nenya/blob/3165a012fd859009db3367f87bd2a5b820cc760a/core/src/main/java/com/threerings/miso/client/MisoScenePanel.java#L1093-L1097
jkrasnay/sqlbuilder
src/main/java/ca/krasnay/sqlbuilder/orm/ReflectionUtils.java
ReflectionUtils.setFieldValue
public static void setFieldValue(Object object, String fieldName, Object value) { """ Convenience method for setting the value of a private object field, without the stress of checked exceptions in the reflection API. @param object Object containing the field. @param fieldName Name of the field to set. @pa...
java
public static void setFieldValue(Object object, String fieldName, Object value) { try { getDeclaredFieldInHierarchy(object.getClass(), fieldName).set(object, value); } catch (IllegalArgumentException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) {...
[ "public", "static", "void", "setFieldValue", "(", "Object", "object", ",", "String", "fieldName", ",", "Object", "value", ")", "{", "try", "{", "getDeclaredFieldInHierarchy", "(", "object", ".", "getClass", "(", ")", ",", "fieldName", ")", ".", "set", "(", ...
Convenience method for setting the value of a private object field, without the stress of checked exceptions in the reflection API. @param object Object containing the field. @param fieldName Name of the field to set. @param value Value to which to set the field.
[ "Convenience", "method", "for", "setting", "the", "value", "of", "a", "private", "object", "field", "without", "the", "stress", "of", "checked", "exceptions", "in", "the", "reflection", "API", "." ]
train
https://github.com/jkrasnay/sqlbuilder/blob/8e6acedc51cfad0527263376af51e1ef052f7147/src/main/java/ca/krasnay/sqlbuilder/orm/ReflectionUtils.java#L139-L147
sdaschner/jaxrs-analyzer
src/main/java/com/sebastian_daschner/jaxrs_analyzer/analysis/ProjectAnalyzer.java
ProjectAnalyzer.addToClassPool
private void addToClassPool(final Path location) { """ Adds the location to the class pool. @param location The location of a jar file or a directory """ if (!location.toFile().exists()) throw new IllegalArgumentException("The location '" + location + "' does not exist!"); try { ...
java
private void addToClassPool(final Path location) { if (!location.toFile().exists()) throw new IllegalArgumentException("The location '" + location + "' does not exist!"); try { ContextClassReader.addClassPath(location.toUri().toURL()); } catch (Exception e) { ...
[ "private", "void", "addToClassPool", "(", "final", "Path", "location", ")", "{", "if", "(", "!", "location", ".", "toFile", "(", ")", ".", "exists", "(", ")", ")", "throw", "new", "IllegalArgumentException", "(", "\"The location '\"", "+", "location", "+", ...
Adds the location to the class pool. @param location The location of a jar file or a directory
[ "Adds", "the", "location", "to", "the", "class", "pool", "." ]
train
https://github.com/sdaschner/jaxrs-analyzer/blob/4ac62942202d05632977d6c14d3cd7e2d27e2b9b/src/main/java/com/sebastian_daschner/jaxrs_analyzer/analysis/ProjectAnalyzer.java#L137-L145
threerings/narya
core/src/main/java/com/threerings/io/ObjectOutputStream.java
ObjectOutputStream.addTranslation
public void addTranslation (String className, String streamedName) { """ Configures this object output stream with a mapping from a classname to a streamed name. """ if (_translations == null) { _translations = Maps.newHashMap(); } _translations.put(className, streamedName);...
java
public void addTranslation (String className, String streamedName) { if (_translations == null) { _translations = Maps.newHashMap(); } _translations.put(className, streamedName); }
[ "public", "void", "addTranslation", "(", "String", "className", ",", "String", "streamedName", ")", "{", "if", "(", "_translations", "==", "null", ")", "{", "_translations", "=", "Maps", ".", "newHashMap", "(", ")", ";", "}", "_translations", ".", "put", "...
Configures this object output stream with a mapping from a classname to a streamed name.
[ "Configures", "this", "object", "output", "stream", "with", "a", "mapping", "from", "a", "classname", "to", "a", "streamed", "name", "." ]
train
https://github.com/threerings/narya/blob/5b01edc8850ed0c32d004b4049e1ac4a02027ede/core/src/main/java/com/threerings/io/ObjectOutputStream.java#L54-L60
blacklocus/metrics-cloudwatch
src/main/java/com/blacklocus/metrics/MetricNameBuilder.java
MetricNameBuilder.addDimension
public MetricNameBuilder addDimension(String name, String value) throws MetricsNameSyntaxException { """ {@link #addDimension(String, String, boolean)} without permutation (false) @return this for chaining @throws MetricsNameSyntaxException on validation failure """ return addDimension(name, value,...
java
public MetricNameBuilder addDimension(String name, String value) throws MetricsNameSyntaxException { return addDimension(name, value, false); }
[ "public", "MetricNameBuilder", "addDimension", "(", "String", "name", ",", "String", "value", ")", "throws", "MetricsNameSyntaxException", "{", "return", "addDimension", "(", "name", ",", "value", ",", "false", ")", ";", "}" ]
{@link #addDimension(String, String, boolean)} without permutation (false) @return this for chaining @throws MetricsNameSyntaxException on validation failure
[ "{", "@link", "#addDimension", "(", "String", "String", "boolean", ")", "}", "without", "permutation", "(", "false", ")" ]
train
https://github.com/blacklocus/metrics-cloudwatch/blob/0554929b5729621c3d3ffd925284af174ab1dd32/src/main/java/com/blacklocus/metrics/MetricNameBuilder.java#L134-L136
googleads/googleads-java-lib
examples/admanager_axis/src/main/java/admanager/axis/v201808/contactservice/GetUninvitedContacts.java
GetUninvitedContacts.runExample
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { """ Runs the example. @param adManagerServices the services factory. @param session the session. @throws ApiException if the API request failed with one or more service errors. @throws ...
java
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { ContactServiceInterface contactService = adManagerServices.get(session, ContactServiceInterface.class); // Create a statement to select contacts. StatementBuilder statementBui...
[ "public", "static", "void", "runExample", "(", "AdManagerServices", "adManagerServices", ",", "AdManagerSession", "session", ")", "throws", "RemoteException", "{", "ContactServiceInterface", "contactService", "=", "adManagerServices", ".", "get", "(", "session", ",", "C...
Runs the example. @param adManagerServices the services factory. @param session the session. @throws ApiException if the API request failed with one or more service errors. @throws RemoteException if the API request failed due to other errors.
[ "Runs", "the", "example", "." ]
train
https://github.com/googleads/googleads-java-lib/blob/967957cc4f6076514e3a7926fe653e4f1f7cc9c9/examples/admanager_axis/src/main/java/admanager/axis/v201808/contactservice/GetUninvitedContacts.java#L52-L89
QSFT/Doradus
doradus-server/src/main/java/com/dell/doradus/service/spider/SpiderTransaction.java
SpiderTransaction.addShardStart
public void addShardStart(TableDefinition tableDef, int shardNumber, Date startDate) { """ Add a column to the "_shards" row for the given shard number and date, indicating that this shard is being used. The "_shards" row lives in the table's Terms store and uses the format: <pre> _shards = {{shard 1}:{date 1}...
java
public void addShardStart(TableDefinition tableDef, int shardNumber, Date startDate) { assert tableDef.isSharded() && shardNumber > 0; addColumn(SpiderService.termsStoreName(tableDef), SHARDS_ROW_KEY, Integer.toString(shardNumber), Utils.toBytes...
[ "public", "void", "addShardStart", "(", "TableDefinition", "tableDef", ",", "int", "shardNumber", ",", "Date", "startDate", ")", "{", "assert", "tableDef", ".", "isSharded", "(", ")", "&&", "shardNumber", ">", "0", ";", "addColumn", "(", "SpiderService", ".", ...
Add a column to the "_shards" row for the given shard number and date, indicating that this shard is being used. The "_shards" row lives in the table's Terms store and uses the format: <pre> _shards = {{shard 1}:{date 1}, {shard 1}:{date 2}, ...} </pre> Dates are stored as {@link Date#getTime()} values, converted to st...
[ "Add", "a", "column", "to", "the", "_shards", "row", "for", "the", "given", "shard", "number", "and", "date", "indicating", "that", "this", "shard", "is", "being", "used", ".", "The", "_shards", "row", "lives", "in", "the", "table", "s", "Terms", "store"...
train
https://github.com/QSFT/Doradus/blob/ad64d3c37922eefda68ec8869ef089c1ca604b70/doradus-server/src/main/java/com/dell/doradus/service/spider/SpiderTransaction.java#L307-L313
jbundle/jbundle
thin/base/remote/src/main/java/org/jbundle/thin/base/message/remote/RemoteMessageQueue.java
RemoteMessageQueue.createMessageSender
public BaseMessageSender createMessageSender() { """ Create a new (Remote) message sender. @return The message sender. """ RemoteTask server = (RemoteTask)((App)this.getMessageManager().getApplication()).getRemoteTask(null); try { return new RemoteMessageSender(server, this); ...
java
public BaseMessageSender createMessageSender() { RemoteTask server = (RemoteTask)((App)this.getMessageManager().getApplication()).getRemoteTask(null); try { return new RemoteMessageSender(server, this); } catch (RemoteException ex) { ex.printStackTrace(); ...
[ "public", "BaseMessageSender", "createMessageSender", "(", ")", "{", "RemoteTask", "server", "=", "(", "RemoteTask", ")", "(", "(", "App", ")", "this", ".", "getMessageManager", "(", ")", ".", "getApplication", "(", ")", ")", ".", "getRemoteTask", "(", "null...
Create a new (Remote) message sender. @return The message sender.
[ "Create", "a", "new", "(", "Remote", ")", "message", "sender", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/remote/src/main/java/org/jbundle/thin/base/message/remote/RemoteMessageQueue.java#L64-L73
integration-technology/amazon-mws-orders
src/main/java/com/amazonservices/mws/client/MwsConnection.java
MwsConnection.newCall
public MwsCall newCall(String servicePath, String operationName) { """ Create a new request. <p> After first call to this method connection parameters can no longer be updated. @param servicePath @param operationName @return A new request. """ if (!frozen) { freeze(); } ...
java
public MwsCall newCall(String servicePath, String operationName) { if (!frozen) { freeze(); } ServiceEndpoint sep = getServiceEndpoint(servicePath); // in future use sep+config to determine MwsCall implementation. return new MwsAQCall(this, sep, operationName); }
[ "public", "MwsCall", "newCall", "(", "String", "servicePath", ",", "String", "operationName", ")", "{", "if", "(", "!", "frozen", ")", "{", "freeze", "(", ")", ";", "}", "ServiceEndpoint", "sep", "=", "getServiceEndpoint", "(", "servicePath", ")", ";", "//...
Create a new request. <p> After first call to this method connection parameters can no longer be updated. @param servicePath @param operationName @return A new request.
[ "Create", "a", "new", "request", ".", "<p", ">", "After", "first", "call", "to", "this", "method", "connection", "parameters", "can", "no", "longer", "be", "updated", "." ]
train
https://github.com/integration-technology/amazon-mws-orders/blob/042e8cd5b10588a30150222bf9c91faf4f130b3c/src/main/java/com/amazonservices/mws/client/MwsConnection.java#L683-L690
alkacon/opencms-core
src/org/opencms/workplace/CmsDialog.java
CmsDialog.dialogButtonsSetOkCancel
public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes) { """ Builds a button row with a "set", an "ok", and a "cancel" button.<p> @param setAttributes additional attributes for the "set" button @param okAttributes additional attributes for the "ok" button @p...
java
public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes) { return dialogButtons( new int[] {BUTTON_SET, BUTTON_OK, BUTTON_CANCEL}, new String[] {setAttributes, okAttributes, cancelAttributes}); }
[ "public", "String", "dialogButtonsSetOkCancel", "(", "String", "setAttributes", ",", "String", "okAttributes", ",", "String", "cancelAttributes", ")", "{", "return", "dialogButtons", "(", "new", "int", "[", "]", "{", "BUTTON_SET", ",", "BUTTON_OK", ",", "BUTTON_CA...
Builds a button row with a "set", an "ok", and a "cancel" button.<p> @param setAttributes additional attributes for the "set" button @param okAttributes additional attributes for the "ok" button @param cancelAttributes additional attributes for the "cancel" button @return the button row
[ "Builds", "a", "button", "row", "with", "a", "set", "an", "ok", "and", "a", "cancel", "button", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/workplace/CmsDialog.java#L754-L759
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.restoreKeyAsync
public ServiceFuture<KeyBundle> restoreKeyAsync(String vaultBaseUrl, byte[] keyBundleBackup, final ServiceCallback<KeyBundle> serviceCallback) { """ Restores a backed up key to a vault. Imports a previously backed up key into Azure Key Vault, restoring the key, its key identifier, attributes and access control po...
java
public ServiceFuture<KeyBundle> restoreKeyAsync(String vaultBaseUrl, byte[] keyBundleBackup, final ServiceCallback<KeyBundle> serviceCallback) { return ServiceFuture.fromResponse(restoreKeyWithServiceResponseAsync(vaultBaseUrl, keyBundleBackup), serviceCallback); }
[ "public", "ServiceFuture", "<", "KeyBundle", ">", "restoreKeyAsync", "(", "String", "vaultBaseUrl", ",", "byte", "[", "]", "keyBundleBackup", ",", "final", "ServiceCallback", "<", "KeyBundle", ">", "serviceCallback", ")", "{", "return", "ServiceFuture", ".", "from...
Restores a backed up key to a vault. Imports a previously backed up key into Azure Key Vault, restoring the key, its key identifier, attributes and access control policies. The RESTORE operation may be used to import a previously backed up key. Individual versions of a key cannot be restored. The key is restored in its...
[ "Restores", "a", "backed", "up", "key", "to", "a", "vault", ".", "Imports", "a", "previously", "backed", "up", "key", "into", "Azure", "Key", "Vault", "restoring", "the", "key", "its", "key", "identifier", "attributes", "and", "access", "control", "policies"...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java#L2067-L2069
grpc/grpc-java
examples/src/main/java/io/grpc/examples/advanced/JsonMarshaller.java
JsonMarshaller.jsonMarshaller
public static <T extends Message> Marshaller<T> jsonMarshaller(final T defaultInstance) { """ Create a {@code Marshaller} for json protos of the same type as {@code defaultInstance}. <p>This is an unstable API and has not been optimized yet for performance. """ final Parser parser = JsonFormat.parser();...
java
public static <T extends Message> Marshaller<T> jsonMarshaller(final T defaultInstance) { final Parser parser = JsonFormat.parser(); final Printer printer = JsonFormat.printer(); return jsonMarshaller(defaultInstance, parser, printer); }
[ "public", "static", "<", "T", "extends", "Message", ">", "Marshaller", "<", "T", ">", "jsonMarshaller", "(", "final", "T", "defaultInstance", ")", "{", "final", "Parser", "parser", "=", "JsonFormat", ".", "parser", "(", ")", ";", "final", "Printer", "print...
Create a {@code Marshaller} for json protos of the same type as {@code defaultInstance}. <p>This is an unstable API and has not been optimized yet for performance.
[ "Create", "a", "{", "@code", "Marshaller", "}", "for", "json", "protos", "of", "the", "same", "type", "as", "{", "@code", "defaultInstance", "}", "." ]
train
https://github.com/grpc/grpc-java/blob/973885457f9609de232d2553b82c67f6c3ff57bf/examples/src/main/java/io/grpc/examples/advanced/JsonMarshaller.java#L47-L51
ngageoint/geopackage-android-map
geopackage-map/src/main/java/mil/nga/geopackage/map/features/StyleUtils.java
StyleUtils.setStyle
public static boolean setStyle(PolylineOptions polylineOptions, StyleRow style, float density) { """ Set the style into the polyline options @param polylineOptions polyline options @param style style row @param density display density: {@link android.util.DisplayMetrics#density} @return tru...
java
public static boolean setStyle(PolylineOptions polylineOptions, StyleRow style, float density) { if (style != null) { Color color = style.getColorOrDefault(); polylineOptions.color(color.getColorWithAlpha()); double width = style.getWidthOrDefault(); polylineOp...
[ "public", "static", "boolean", "setStyle", "(", "PolylineOptions", "polylineOptions", ",", "StyleRow", "style", ",", "float", "density", ")", "{", "if", "(", "style", "!=", "null", ")", "{", "Color", "color", "=", "style", ".", "getColorOrDefault", "(", ")",...
Set the style into the polyline options @param polylineOptions polyline options @param style style row @param density display density: {@link android.util.DisplayMetrics#density} @return true if style was set into the polyline options
[ "Set", "the", "style", "into", "the", "polyline", "options" ]
train
https://github.com/ngageoint/geopackage-android-map/blob/634d78468a5c52d2bc98791cc7ff03981ebf573b/geopackage-map/src/main/java/mil/nga/geopackage/map/features/StyleUtils.java#L465-L478
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java
responderaction.get
public static responderaction get(nitro_service service, String name) throws Exception { """ Use this API to fetch responderaction resource of given name . """ responderaction obj = new responderaction(); obj.set_name(name); responderaction response = (responderaction) obj.get_resource(service); return...
java
public static responderaction get(nitro_service service, String name) throws Exception{ responderaction obj = new responderaction(); obj.set_name(name); responderaction response = (responderaction) obj.get_resource(service); return response; }
[ "public", "static", "responderaction", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "responderaction", "obj", "=", "new", "responderaction", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "res...
Use this API to fetch responderaction resource of given name .
[ "Use", "this", "API", "to", "fetch", "responderaction", "resource", "of", "given", "name", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L496-L501
matthewhorridge/binaryowl
src/main/java/org/semanticweb/binaryowl/BinaryOWLMetadata.java
BinaryOWLMetadata.getStringAttribute
public String getStringAttribute(String name, String defaultValue) { """ Gets the string value of an attribute. @param name The name of the attribute. Not null. @param defaultValue The default value for the attribute. May be null. This value will be returned if this metadata object does not contain a string ...
java
public String getStringAttribute(String name, String defaultValue) { return getValue(stringAttributes, name, defaultValue); }
[ "public", "String", "getStringAttribute", "(", "String", "name", ",", "String", "defaultValue", ")", "{", "return", "getValue", "(", "stringAttributes", ",", "name", ",", "defaultValue", ")", ";", "}" ]
Gets the string value of an attribute. @param name The name of the attribute. Not null. @param defaultValue The default value for the attribute. May be null. This value will be returned if this metadata object does not contain a string value for the specified attribute name. @return Either the string value of the at...
[ "Gets", "the", "string", "value", "of", "an", "attribute", "." ]
train
https://github.com/matthewhorridge/binaryowl/blob/7fccfe804120f86b38ca855ddbb569a81a042257/src/main/java/org/semanticweb/binaryowl/BinaryOWLMetadata.java#L247-L249
vlingo/vlingo-actors
src/main/java/io/vlingo/actors/World.java
World.start
public static World start(final String name, final Configuration configuration) { """ Answers a new {@code World} with the given {@code name} and that is configured with the contents of the {@code configuration}. @param name the {@code String} name to assign to the new {@code World} instance @param configuratio...
java
public static World start(final String name, final Configuration configuration) { if (name == null) { throw new IllegalArgumentException("The world name must not be null."); } return new World(name, configuration); }
[ "public", "static", "World", "start", "(", "final", "String", "name", ",", "final", "Configuration", "configuration", ")", "{", "if", "(", "name", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"The world name must not be null.\"", ")",...
Answers a new {@code World} with the given {@code name} and that is configured with the contents of the {@code configuration}. @param name the {@code String} name to assign to the new {@code World} instance @param configuration the {@code Configuration} used for configuration @return {@code World}
[ "Answers", "a", "new", "{" ]
train
https://github.com/vlingo/vlingo-actors/blob/c7d046fd139c0490cf0fd2588d7dc2f792f13493/src/main/java/io/vlingo/actors/World.java#L78-L84
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.updateClob
public void updateClob(String columnName, java.sql.Clob c) throws SQLException { """ <p>Updates the designated column with a java.sql.Clob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updat...
java
public void updateClob(String columnName, java.sql.Clob c) throws SQLException { try { rsetImpl.updateClob(columnName, c); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateClob", "4123", this); throw WSJdbcU...
[ "public", "void", "updateClob", "(", "String", "columnName", ",", "java", ".", "sql", ".", "Clob", "c", ")", "throws", "SQLException", "{", "try", "{", "rsetImpl", ".", "updateClob", "(", "columnName", ",", "c", ")", ";", "}", "catch", "(", "SQLException...
<p>Updates the designated column with a java.sql.Clob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. @param columnName the name of ...
[ "<p", ">", "Updates", "the", "designated", "column", "with", "a", "java", ".", "sql", ".", "Clob", "value", ".", "The", "updater", "methods", "are", "used", "to", "update", "column", "values", "in", "the", "current", "row", "or", "the", "insert", "row", ...
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L4686-L4696
patrickfav/bcrypt
modules/bcrypt/src/main/java/at/favre/lib/crypto/bcrypt/BCryptOpenBSDProtocol.java
BCryptOpenBSDProtocol.enhancedKeySchedule
private void enhancedKeySchedule(int[] P, int[] S, byte[] data, byte[] key) { """ Perform the "enhanced key schedule" step described by Provos and Mazieres in "A Future-Adaptable Password Scheme" http://www.openbsd.org/papers/bcrypt-paper.ps @param data salt information @param key password information "...
java
private void enhancedKeySchedule(int[] P, int[] S, byte[] data, byte[] key) { int i; int[] koffp = {0}, doffp = {0}; int[] lr = {0, 0}; int plen = P.length, slen = S.length; for (i = 0; i < plen; i++) { P[i] = P[i] ^ streamToWord(key, koffp); } //noi...
[ "private", "void", "enhancedKeySchedule", "(", "int", "[", "]", "P", ",", "int", "[", "]", "S", ",", "byte", "[", "]", "data", ",", "byte", "[", "]", "key", ")", "{", "int", "i", ";", "int", "[", "]", "koffp", "=", "{", "0", "}", ",", "doffp"...
Perform the "enhanced key schedule" step described by Provos and Mazieres in "A Future-Adaptable Password Scheme" http://www.openbsd.org/papers/bcrypt-paper.ps @param data salt information @param key password information
[ "Perform", "the", "enhanced", "key", "schedule", "step", "described", "by", "Provos", "and", "Mazieres", "in", "A", "Future", "-", "Adaptable", "Password", "Scheme", "http", ":", "//", "www", ".", "openbsd", ".", "org", "/", "papers", "/", "bcrypt", "-", ...
train
https://github.com/patrickfav/bcrypt/blob/40e75be395b4e1b57b9872b22d98a9fb560e0184/modules/bcrypt/src/main/java/at/favre/lib/crypto/bcrypt/BCryptOpenBSDProtocol.java#L366-L393
carewebframework/carewebframework-core
org.carewebframework.shell/src/main/java/org/carewebframework/shell/property/PropertyUtil.java
PropertyUtil.findMethod
private static Method findMethod(String methodName, Object instance, Class<?> valueClass, boolean setter) throws NoSuchMethodException { """ Returns the requested method from an object instance. @param m...
java
private static Method findMethod(String methodName, Object instance, Class<?> valueClass, boolean setter) throws NoSuchMethodException { if (methodName == null) { return null; } ...
[ "private", "static", "Method", "findMethod", "(", "String", "methodName", ",", "Object", "instance", ",", "Class", "<", "?", ">", "valueClass", ",", "boolean", "setter", ")", "throws", "NoSuchMethodException", "{", "if", "(", "methodName", "==", "null", ")", ...
Returns the requested method from an object instance. @param methodName Name of the setter method. @param instance Object instance to search. @param valueClass The desired property return type (null if don't care). @param setter If true, search for setter method signature. If false, getter method signature. @return Th...
[ "Returns", "the", "requested", "method", "from", "an", "object", "instance", "." ]
train
https://github.com/carewebframework/carewebframework-core/blob/fa3252d4f7541dbe151b92c3d4f6f91433cd1673/org.carewebframework.shell/src/main/java/org/carewebframework/shell/property/PropertyUtil.java#L73-L93
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/row/decomposition/TriangularSolver_DDRM.java
TriangularSolver_DDRM.invertLower
public static void invertLower( double L[] , int m ) { """ <p> Inverts a square lower triangular matrix: L = L<sup>-1</sup> </p> @param L @param m """ for( int i = 0; i < m; i++ ) { double L_ii = L[ i*m + i ]; for( int j = 0; j < i; j++ ) { double val = ...
java
public static void invertLower( double L[] , int m ) { for( int i = 0; i < m; i++ ) { double L_ii = L[ i*m + i ]; for( int j = 0; j < i; j++ ) { double val = 0; for( int k = j; k < i; k++ ) { val += L[ i*m + k] * L[ k*m + j ]; ...
[ "public", "static", "void", "invertLower", "(", "double", "L", "[", "]", ",", "int", "m", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "m", ";", "i", "++", ")", "{", "double", "L_ii", "=", "L", "[", "i", "*", "m", "+", "i", ...
<p> Inverts a square lower triangular matrix: L = L<sup>-1</sup> </p> @param L @param m
[ "<p", ">", "Inverts", "a", "square", "lower", "triangular", "matrix", ":", "L", "=", "L<sup", ">", "-", "1<", "/", "sup", ">", "<", "/", "p", ">" ]
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/row/decomposition/TriangularSolver_DDRM.java#L48-L60
wellner/jcarafe
jcarafe-core/src/main/java/org/mitre/jcarafe/jarafe/JarafeMEDecoder.java
JarafeMEDecoder.classifyInstanceDistribution
public List<StringDoublePair> classifyInstanceDistribution(List<String> features) { """ /* @param features - A list of strings representing the features for a classification instance @return labelposteriorpair list - A list of pairs that include each label and a posterior probability mass """ List<scala...
java
public List<StringDoublePair> classifyInstanceDistribution(List<String> features) { List<scala.Tuple2<String,Double>> r = maxEnt.decodeInstanceAsDistribution(features); List<StringDoublePair> res = new ArrayList<StringDoublePair>(); for (scala.Tuple2<String,Double> el : r) { res.add(new StringDoub...
[ "public", "List", "<", "StringDoublePair", ">", "classifyInstanceDistribution", "(", "List", "<", "String", ">", "features", ")", "{", "List", "<", "scala", ".", "Tuple2", "<", "String", ",", "Double", ">", ">", "r", "=", "maxEnt", ".", "decodeInstanceAsDist...
/* @param features - A list of strings representing the features for a classification instance @return labelposteriorpair list - A list of pairs that include each label and a posterior probability mass
[ "/", "*" ]
train
https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/org/mitre/jcarafe/jarafe/JarafeMEDecoder.java#L51-L58
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/serializer/SARLSyntacticSequencer.java
SARLSyntacticSequencer.emit_XExpressionInClosure_SemicolonKeyword_1_1_q
protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { """ Ambiguous syntax: ';'? This ambiguous syntax occurs at: expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end) expressions+=XExpressionOrVarDeclaration (ambiguit...
java
protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
[ "protected", "void", "emit_XExpressionInClosure_SemicolonKeyword_1_1_q", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}" ]
Ambiguous syntax: ';'? This ambiguous syntax occurs at: expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end) expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
[ "Ambiguous", "syntax", ":", ";", "?" ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/serializer/SARLSyntacticSequencer.java#L558-L560
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/tools/PostTools.java
PostTools.convertToJson
private String convertToJson(Map<String, ?> map) throws MovieDbException { """ Use Jackson to convert Map to JSON string. @param map Map to convert to json @return json string @throws MovieDbException exception """ try { return MAPPER.writeValueAsString(map); } catch (JsonProce...
java
private String convertToJson(Map<String, ?> map) throws MovieDbException { try { return MAPPER.writeValueAsString(map); } catch (JsonProcessingException ex) { throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "JSON conversion failed", "", ex); } }
[ "private", "String", "convertToJson", "(", "Map", "<", "String", ",", "?", ">", "map", ")", "throws", "MovieDbException", "{", "try", "{", "return", "MAPPER", ".", "writeValueAsString", "(", "map", ")", ";", "}", "catch", "(", "JsonProcessingException", "ex"...
Use Jackson to convert Map to JSON string. @param map Map to convert to json @return json string @throws MovieDbException exception
[ "Use", "Jackson", "to", "convert", "Map", "to", "JSON", "string", "." ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/tools/PostTools.java#L68-L74
js-lib-com/commons
src/main/java/js/util/Strings.java
Strings.isSeparator
private static boolean isSeparator(char character, char... separators) { """ Test if <code>character</code> is a separator as defined by given <code>separators</code> list. If separator list is empty consider used {@link #DEFAULT_SEPARATORS}. This predicate is designed specifically for {@link #split(String, char...
java
private static boolean isSeparator(char character, char... separators) { if(separators.length == 0) { separators = DEFAULT_SEPARATORS; } for(int i = 0; i < separators.length; ++i) { if(character == separators[i]) { return true; } } return false; }
[ "private", "static", "boolean", "isSeparator", "(", "char", "character", ",", "char", "...", "separators", ")", "{", "if", "(", "separators", ".", "length", "==", "0", ")", "{", "separators", "=", "DEFAULT_SEPARATORS", ";", "}", "for", "(", "int", "i", "...
Test if <code>character</code> is a separator as defined by given <code>separators</code> list. If separator list is empty consider used {@link #DEFAULT_SEPARATORS}. This predicate is designed specifically for {@link #split(String, char...)} operation. @param character character to test if usable as separator, @param ...
[ "Test", "if", "<code", ">", "character<", "/", "code", ">", "is", "a", "separator", "as", "defined", "by", "given", "<code", ">", "separators<", "/", "code", ">", "list", ".", "If", "separator", "list", "is", "empty", "consider", "used", "{", "@link", ...
train
https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Strings.java#L607-L618
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/query/OJBSearchFilter.java
OJBSearchFilter.matchList
public void matchList(String elementName, Vector values, int oper) { """ Change the search filter to one that specifies an element to match or not match one of a list of values. The old search filter is deleted. @param elementName is the name of the element to be matched @param values is a vector of possible...
java
public void matchList(String elementName, Vector values, int oper) { // Delete the old search criteria criteria = new Criteria(); if (oper != NOT_IN) { for (int i = 0; i < values.size(); i++) { Criteria tempCrit = new Criteria(); ...
[ "public", "void", "matchList", "(", "String", "elementName", ",", "Vector", "values", ",", "int", "oper", ")", "{", "// Delete the old search criteria\r", "criteria", "=", "new", "Criteria", "(", ")", ";", "if", "(", "oper", "!=", "NOT_IN", ")", "{", "for", ...
Change the search filter to one that specifies an element to match or not match one of a list of values. The old search filter is deleted. @param elementName is the name of the element to be matched @param values is a vector of possible matches @param oper is the IN or NOT_IN operator to indicate how to matche
[ "Change", "the", "search", "filter", "to", "one", "that", "specifies", "an", "element", "to", "match", "or", "not", "match", "one", "of", "a", "list", "of", "values", ".", "The", "old", "search", "filter", "is", "deleted", "." ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/OJBSearchFilter.java#L52-L75
sebastiangraf/treetank
interfacemodules/xml/src/main/java/org/treetank/service/xml/xpath/parser/XPathParser.java
XPathParser.parseSequenceType
private SequenceType parseSequenceType() { """ Parses the the rule SequenceType according to the following production rule: [ <p> 49] SequenceType ::= (ItemType OccurrenceIndicator?) | <"void" "(" ")"> . </p> @return SequenceType """ if (is("empty-sequence", true)) { consume(TokenTy...
java
private SequenceType parseSequenceType() { if (is("empty-sequence", true)) { consume(TokenType.OPEN_BR, true); consume(TokenType.CLOSE_BR, true); return new SequenceType(); } else { final AbsFilter filter = parseItemType(); if (isWildcard()) ...
[ "private", "SequenceType", "parseSequenceType", "(", ")", "{", "if", "(", "is", "(", "\"empty-sequence\"", ",", "true", ")", ")", "{", "consume", "(", "TokenType", ".", "OPEN_BR", ",", "true", ")", ";", "consume", "(", "TokenType", ".", "CLOSE_BR", ",", ...
Parses the the rule SequenceType according to the following production rule: [ <p> 49] SequenceType ::= (ItemType OccurrenceIndicator?) | <"void" "(" ")"> . </p> @return SequenceType
[ "Parses", "the", "the", "rule", "SequenceType", "according", "to", "the", "following", "production", "rule", ":", "[", "<p", ">", "49", "]", "SequenceType", "::", "=", "(", "ItemType", "OccurrenceIndicator?", ")", "|", "<", "void", "(", ")", ">", ".", "<...
train
https://github.com/sebastiangraf/treetank/blob/9b96d631b6c2a8502a0cc958dcb02bd6a6fd8b60/interfacemodules/xml/src/main/java/org/treetank/service/xml/xpath/parser/XPathParser.java#L1338-L1353
carewebframework/carewebframework-core
org.carewebframework.api-parent/org.carewebframework.api.core/src/main/java/org/carewebframework/api/event/EventSubscriptions.java
EventSubscriptions.invokeCallbacks
public void invokeCallbacks(String eventName, T eventData) { """ Invokes callbacks on all subscribers of this and parent events. @param eventName Name of the event. @param eventData The associated event data. """ String name = eventName; while (!StringUtils.isEmpty(name)) { ...
java
public void invokeCallbacks(String eventName, T eventData) { String name = eventName; while (!StringUtils.isEmpty(name)) { Iterable<IGenericEvent<T>> subscribers = getSubscribers(name); if (subscribers != null) { for (IGenericEvent<T> subscri...
[ "public", "void", "invokeCallbacks", "(", "String", "eventName", ",", "T", "eventData", ")", "{", "String", "name", "=", "eventName", ";", "while", "(", "!", "StringUtils", ".", "isEmpty", "(", "name", ")", ")", "{", "Iterable", "<", "IGenericEvent", "<", ...
Invokes callbacks on all subscribers of this and parent events. @param eventName Name of the event. @param eventData The associated event data.
[ "Invokes", "callbacks", "on", "all", "subscribers", "of", "this", "and", "parent", "events", "." ]
train
https://github.com/carewebframework/carewebframework-core/blob/fa3252d4f7541dbe151b92c3d4f6f91433cd1673/org.carewebframework.api-parent/org.carewebframework.api.core/src/main/java/org/carewebframework/api/event/EventSubscriptions.java#L150-L171
UrielCh/ovh-java-sdk
ovh-java-sdk-vps/src/main/java/net/minidev/ovh/api/ApiOvhVps.java
ApiOvhVps.serviceName_ips_ipAddress_PUT
public void serviceName_ips_ipAddress_PUT(String serviceName, String ipAddress, OvhIp body) throws IOException { """ Alter this object properties REST: PUT /vps/{serviceName}/ips/{ipAddress} @param body [required] New object properties @param serviceName [required] The internal name of your VPS offer @param ...
java
public void serviceName_ips_ipAddress_PUT(String serviceName, String ipAddress, OvhIp body) throws IOException { String qPath = "/vps/{serviceName}/ips/{ipAddress}"; StringBuilder sb = path(qPath, serviceName, ipAddress); exec(qPath, "PUT", sb.toString(), body); }
[ "public", "void", "serviceName_ips_ipAddress_PUT", "(", "String", "serviceName", ",", "String", "ipAddress", ",", "OvhIp", "body", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/vps/{serviceName}/ips/{ipAddress}\"", ";", "StringBuilder", "sb", "=", "pa...
Alter this object properties REST: PUT /vps/{serviceName}/ips/{ipAddress} @param body [required] New object properties @param serviceName [required] The internal name of your VPS offer @param ipAddress [required] The effective ip address of the Ip object
[ "Alter", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-vps/src/main/java/net/minidev/ovh/api/ApiOvhVps.java#L562-L566
undertow-io/undertow
core/src/main/java/io/undertow/server/HttpServerExchange.java
HttpServerExchange.isRequestComplete
public boolean isRequestComplete() { """ Returns true if all data has been read from the request, or if there was not data. @return true if the request is complete """ PooledByteBuffer[] data = getAttachment(BUFFERED_REQUEST_DATA); if(data != null) { return false; } ...
java
public boolean isRequestComplete() { PooledByteBuffer[] data = getAttachment(BUFFERED_REQUEST_DATA); if(data != null) { return false; } return allAreSet(state, FLAG_REQUEST_TERMINATED); }
[ "public", "boolean", "isRequestComplete", "(", ")", "{", "PooledByteBuffer", "[", "]", "data", "=", "getAttachment", "(", "BUFFERED_REQUEST_DATA", ")", ";", "if", "(", "data", "!=", "null", ")", "{", "return", "false", ";", "}", "return", "allAreSet", "(", ...
Returns true if all data has been read from the request, or if there was not data. @return true if the request is complete
[ "Returns", "true", "if", "all", "data", "has", "been", "read", "from", "the", "request", "or", "if", "there", "was", "not", "data", "." ]
train
https://github.com/undertow-io/undertow/blob/87de0b856a7a4ba8faf5b659537b9af07b763263/core/src/main/java/io/undertow/server/HttpServerExchange.java#L1237-L1243
nextreports/nextreports-engine
src/ro/nextreports/engine/querybuilder/sql/dialect/DialectFactory.java
DialectFactory.addDialect
public static void addDialect(String dialectName, String dialectClass) { """ Add dialect @param dialectName dialect name @param dialectClass dialect class """ MAPPERS.put(dialectName, new VersionInsensitiveMapper(dialectClass)); LOG.info("Dialect added: " + dialectName + " = " + dialectClass)...
java
public static void addDialect(String dialectName, String dialectClass) { MAPPERS.put(dialectName, new VersionInsensitiveMapper(dialectClass)); LOG.info("Dialect added: " + dialectName + " = " + dialectClass); }
[ "public", "static", "void", "addDialect", "(", "String", "dialectName", ",", "String", "dialectClass", ")", "{", "MAPPERS", ".", "put", "(", "dialectName", ",", "new", "VersionInsensitiveMapper", "(", "dialectClass", ")", ")", ";", "LOG", ".", "info", "(", "...
Add dialect @param dialectName dialect name @param dialectClass dialect class
[ "Add", "dialect" ]
train
https://github.com/nextreports/nextreports-engine/blob/a847575a9298b5fce63b88961190c5b83ddccc44/src/ro/nextreports/engine/querybuilder/sql/dialect/DialectFactory.java#L171-L174
Falydoor/limesurvey-rc
src/main/java/com/github/falydoor/limesurveyrc/LimesurveyRC.java
LimesurveyRC.getQuestions
public Stream<LsQuestion> getQuestions(int surveyId) throws LimesurveyRCException { """ Gets questions from a survey. The questions are ordered using the "group_order" field from the groups and then the "question_order" field from the questions @param surveyId the survey id of the survey you want to get the qu...
java
public Stream<LsQuestion> getQuestions(int surveyId) throws LimesurveyRCException { return getGroups(surveyId).flatMap(group -> { try { return getQuestionsFromGroup(surveyId, group.getId()); } catch (LimesurveyRCException e) { LOGGER.error("Unable to get q...
[ "public", "Stream", "<", "LsQuestion", ">", "getQuestions", "(", "int", "surveyId", ")", "throws", "LimesurveyRCException", "{", "return", "getGroups", "(", "surveyId", ")", ".", "flatMap", "(", "group", "->", "{", "try", "{", "return", "getQuestionsFromGroup", ...
Gets questions from a survey. The questions are ordered using the "group_order" field from the groups and then the "question_order" field from the questions @param surveyId the survey id of the survey you want to get the questions @return a stream of questions in an ordered order @throws LimesurveyRCException the lime...
[ "Gets", "questions", "from", "a", "survey", ".", "The", "questions", "are", "ordered", "using", "the", "group_order", "field", "from", "the", "groups", "and", "then", "the", "question_order", "field", "from", "the", "questions" ]
train
https://github.com/Falydoor/limesurvey-rc/blob/b8d573389086395e46a0bdeeddeef4d1c2c0a488/src/main/java/com/github/falydoor/limesurveyrc/LimesurveyRC.java#L204-L213
UrielCh/ovh-java-sdk
ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java
ApiOvhOrder.license_windows_serviceName_upgrade_GET
public ArrayList<String> license_windows_serviceName_upgrade_GET(String serviceName, OvhWindowsSqlVersionEnum sqlVersion, OvhWindowsOsVersionEnum version) throws IOException { """ Get allowed durations for 'upgrade' option REST: GET /order/license/windows/{serviceName}/upgrade @param version [required] The win...
java
public ArrayList<String> license_windows_serviceName_upgrade_GET(String serviceName, OvhWindowsSqlVersionEnum sqlVersion, OvhWindowsOsVersionEnum version) throws IOException { String qPath = "/order/license/windows/{serviceName}/upgrade"; StringBuilder sb = path(qPath, serviceName); query(sb, "sqlVersion", sqlVer...
[ "public", "ArrayList", "<", "String", ">", "license_windows_serviceName_upgrade_GET", "(", "String", "serviceName", ",", "OvhWindowsSqlVersionEnum", "sqlVersion", ",", "OvhWindowsOsVersionEnum", "version", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/ord...
Get allowed durations for 'upgrade' option REST: GET /order/license/windows/{serviceName}/upgrade @param version [required] The windows version you want to enable on your windows license @param sqlVersion [required] The SQL Server version to enable on this license Windows license @param serviceName [required] The name...
[ "Get", "allowed", "durations", "for", "upgrade", "option" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java#L1228-L1235
mnlipp/jgrapes
org.jgrapes.io/src/org/jgrapes/io/NioDispatcher.java
NioDispatcher.onStart
@Handler public void onStart(Start event) { """ Starts this dispatcher. A dispatcher has an associated thread that keeps it running. @param event the event """ synchronized (this) { if (runner != null && !runner.isInterrupted()) { return; } ru...
java
@Handler public void onStart(Start event) { synchronized (this) { if (runner != null && !runner.isInterrupted()) { return; } runner = new Thread(this, Components.simpleObjectName(this)); runner.start(); } }
[ "@", "Handler", "public", "void", "onStart", "(", "Start", "event", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "runner", "!=", "null", "&&", "!", "runner", ".", "isInterrupted", "(", ")", ")", "{", "return", ";", "}", "runner", "=", ...
Starts this dispatcher. A dispatcher has an associated thread that keeps it running. @param event the event
[ "Starts", "this", "dispatcher", ".", "A", "dispatcher", "has", "an", "associated", "thread", "that", "keeps", "it", "running", "." ]
train
https://github.com/mnlipp/jgrapes/blob/8b5d874935d84c34a52d3e3d3745e869b5203fa0/org.jgrapes.io/src/org/jgrapes/io/NioDispatcher.java#L60-L69
facebookarchive/hadoop-20
src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java
FSEditLog.logSetQuota
public void logSetQuota(String src, long nsQuota, long dsQuota) { """ Add set namespace quota record to edit log @param src the string representation of the path to a directory @param quota the directory size limit """ SetQuotaOp op = SetQuotaOp.getInstance(); op.set(src, nsQuota, dsQuota); log...
java
public void logSetQuota(String src, long nsQuota, long dsQuota) { SetQuotaOp op = SetQuotaOp.getInstance(); op.set(src, nsQuota, dsQuota); logEdit(op); }
[ "public", "void", "logSetQuota", "(", "String", "src", ",", "long", "nsQuota", ",", "long", "dsQuota", ")", "{", "SetQuotaOp", "op", "=", "SetQuotaOp", ".", "getInstance", "(", ")", ";", "op", ".", "set", "(", "src", ",", "nsQuota", ",", "dsQuota", ")"...
Add set namespace quota record to edit log @param src the string representation of the path to a directory @param quota the directory size limit
[ "Add", "set", "namespace", "quota", "record", "to", "edit", "log" ]
train
https://github.com/facebookarchive/hadoop-20/blob/2a29bc6ecf30edb1ad8dbde32aa49a317b4d44f4/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java#L826-L830
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/Validate.java
Validate.inclusiveBetween
public static <T> void inclusiveBetween(final T start, final T end, final Comparable<T> value) { """ <p>Validate that the specified argument object fall between the two inclusive values specified; otherwise, throws an exception.</p> <pre>Validate.inclusiveBetween(0, 2, 1);</pre> @param <T> the type of the a...
java
public static <T> void inclusiveBetween(final T start, final T end, final Comparable<T> value) { // TODO when breaking BC, consider returning value if (value.compareTo(start) < 0 || value.compareTo(end) > 0) { throw new IllegalArgumentException(StringUtils.simpleFormat(DEFAULT_INCLUSIVE_BETW...
[ "public", "static", "<", "T", ">", "void", "inclusiveBetween", "(", "final", "T", "start", ",", "final", "T", "end", ",", "final", "Comparable", "<", "T", ">", "value", ")", "{", "// TODO when breaking BC, consider returning value", "if", "(", "value", ".", ...
<p>Validate that the specified argument object fall between the two inclusive values specified; otherwise, throws an exception.</p> <pre>Validate.inclusiveBetween(0, 2, 1);</pre> @param <T> the type of the argument object @param start the inclusive start value, not null @param end the inclusive end value, not null ...
[ "<p", ">", "Validate", "that", "the", "specified", "argument", "object", "fall", "between", "the", "two", "inclusive", "values", "specified", ";", "otherwise", "throws", "an", "exception", ".", "<", "/", "p", ">" ]
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/Validate.java#L989-L994
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/core/QueryReferenceBroker.java
QueryReferenceBroker.retrieveProxyCollection
public void retrieveProxyCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced) { """ Retrieve a single Proxied Collection on behalf of <b>obj</b>. The Collection is retrieved only if <b>cascade.retrieve is true</b> or if <b>forced</b> is set to true. * @param obj - the obje...
java
public void retrieveProxyCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced) { doRetrieveCollection(obj, cld, cds, forced, true); }
[ "public", "void", "retrieveProxyCollection", "(", "Object", "obj", ",", "ClassDescriptor", "cld", ",", "CollectionDescriptor", "cds", ",", "boolean", "forced", ")", "{", "doRetrieveCollection", "(", "obj", ",", "cld", ",", "cds", ",", "forced", ",", "true", ")...
Retrieve a single Proxied Collection on behalf of <b>obj</b>. The Collection is retrieved only if <b>cascade.retrieve is true</b> or if <b>forced</b> is set to true. * @param obj - the object to be updated @param cld - the ClassDescriptor describing obj @param cds - the CollectionDescriptor describing the collecti...
[ "Retrieve", "a", "single", "Proxied", "Collection", "on", "behalf", "of", "<b", ">", "obj<", "/", "b", ">", ".", "The", "Collection", "is", "retrieved", "only", "if", "<b", ">", "cascade", ".", "retrieve", "is", "true<", "/", "b", ">", "or", "if", "<...
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/core/QueryReferenceBroker.java#L736-L739
palaima/DebugDrawer
debugdrawer/src/main/java/io/palaima/debugdrawer/util/UIUtils.java
UIUtils.getThemeAttributeDimensionSize
public static int getThemeAttributeDimensionSize(Context context, int attr) { """ Returns the size in pixels of an attribute dimension @param context the context to get the resources from @param attr is the attribute dimension we want to know the size from @return the size in pixels of an attribute dimensi...
java
public static int getThemeAttributeDimensionSize(Context context, int attr) { TypedArray a = null; try { a = context.getTheme().obtainStyledAttributes(new int[]{attr}); return a.getDimensionPixelSize(0, 0); } finally { if (a != null) { a.recycl...
[ "public", "static", "int", "getThemeAttributeDimensionSize", "(", "Context", "context", ",", "int", "attr", ")", "{", "TypedArray", "a", "=", "null", ";", "try", "{", "a", "=", "context", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "new", ...
Returns the size in pixels of an attribute dimension @param context the context to get the resources from @param attr is the attribute dimension we want to know the size from @return the size in pixels of an attribute dimension
[ "Returns", "the", "size", "in", "pixels", "of", "an", "attribute", "dimension" ]
train
https://github.com/palaima/DebugDrawer/blob/49b5992a1148757bd740c4a0b7df10ef70ade6d8/debugdrawer/src/main/java/io/palaima/debugdrawer/util/UIUtils.java#L123-L133
bekkopen/NoCommons
src/main/java/no/bekk/bekkopen/banking/Kidnummer.java
Kidnummer.mod10Kid
public static Kidnummer mod10Kid(String baseNumber, int targetLength) { """ Create a valid KID numer of the wanted length, using MOD10. Input is padded with leading zeros to reach wanted target length @param baseNumber base number to calculate checksum digit for @param targetLength wanted length, 0-padded. Betw...
java
public static Kidnummer mod10Kid(String baseNumber, int targetLength) { if (baseNumber.length() >= targetLength) throw new IllegalArgumentException("baseNumber too long"); String padded = String.format("%0" + (targetLength-1) + "d", new BigInteger(baseNumber)); Kidnummer k = new ...
[ "public", "static", "Kidnummer", "mod10Kid", "(", "String", "baseNumber", ",", "int", "targetLength", ")", "{", "if", "(", "baseNumber", ".", "length", "(", ")", ">=", "targetLength", ")", "throw", "new", "IllegalArgumentException", "(", "\"baseNumber too long\"",...
Create a valid KID numer of the wanted length, using MOD10. Input is padded with leading zeros to reach wanted target length @param baseNumber base number to calculate checksum digit for @param targetLength wanted length, 0-padded. Between 2-25 @return Kidnummer
[ "Create", "a", "valid", "KID", "numer", "of", "the", "wanted", "length", "using", "MOD10", ".", "Input", "is", "padded", "with", "leading", "zeros", "to", "reach", "wanted", "target", "length" ]
train
https://github.com/bekkopen/NoCommons/blob/5a576696390cecaac111fa97fde581e0c1afb9b8/src/main/java/no/bekk/bekkopen/banking/Kidnummer.java#L36-L42
igniterealtime/Smack
smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.java
OutgoingFileTransfer.sendStream
public synchronized void sendStream(final InputStream in, final String fileName, final long fileSize, final String description) { """ This method handles the stream negotiation process and transmits the file to the remote user. It returns immediately and the progress of the file transfer can be monitored through...
java
public synchronized void sendStream(final InputStream in, final String fileName, final long fileSize, final String description) { checkTransferThread(); setFileInfo(fileName, fileSize); transferThread = new Thread(new Runnable() { @Override public void run() { ...
[ "public", "synchronized", "void", "sendStream", "(", "final", "InputStream", "in", ",", "final", "String", "fileName", ",", "final", "long", "fileSize", ",", "final", "String", "description", ")", "{", "checkTransferThread", "(", ")", ";", "setFileInfo", "(", ...
This method handles the stream negotiation process and transmits the file to the remote user. It returns immediately and the progress of the file transfer can be monitored through several methods: <UL> <LI>{@link FileTransfer#getStatus()} <LI>{@link FileTransfer#getProgress()} <LI>{@link FileTransfer#isDone()} </UL> ...
[ "This", "method", "handles", "the", "stream", "negotiation", "process", "and", "transmits", "the", "file", "to", "the", "remote", "user", ".", "It", "returns", "immediately", "and", "the", "progress", "of", "the", "file", "transfer", "can", "be", "monitored", ...
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.java#L287-L325
querydsl/querydsl
querydsl-core/src/main/java/com/querydsl/core/types/dsl/PathBuilder.java
PathBuilder.get
@SuppressWarnings("unchecked") public <A extends Comparable<?>> DatePath<A> get(DatePath<A> path) { """ Create a new Date path @param <A> @param path existing path @return property path """ DatePath<A> newPath = getDate(toString(path), (Class<A>) path.getType()); return addMetadataOf(n...
java
@SuppressWarnings("unchecked") public <A extends Comparable<?>> DatePath<A> get(DatePath<A> path) { DatePath<A> newPath = getDate(toString(path), (Class<A>) path.getType()); return addMetadataOf(newPath, path); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "A", "extends", "Comparable", "<", "?", ">", ">", "DatePath", "<", "A", ">", "get", "(", "DatePath", "<", "A", ">", "path", ")", "{", "DatePath", "<", "A", ">", "newPath", "=", "getDa...
Create a new Date path @param <A> @param path existing path @return property path
[ "Create", "a", "new", "Date", "path" ]
train
https://github.com/querydsl/querydsl/blob/2bf234caf78549813a1e0f44d9c30ecc5ef734e3/querydsl-core/src/main/java/com/querydsl/core/types/dsl/PathBuilder.java#L260-L264
alkacon/opencms-core
src/org/opencms/workplace/editors/directedit/CmsDirectEditDefaultProvider.java
CmsDirectEditDefaultProvider.startDirectEditDisabled
public String startDirectEditDisabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) { """ Returns the start HTML for a disabled direct edit button.<p> @param params the direct edit parameters @param resourceInfo contains information about the resource to edit @return the start HTML for...
java
public String startDirectEditDisabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) { String editId = getNextDirectEditId(); StringBuffer result = new StringBuffer(256); result.append("<!-- EDIT BLOCK START (DISABLED): "); result.append(params.m_resourceName); ...
[ "public", "String", "startDirectEditDisabled", "(", "CmsDirectEditParams", "params", ",", "CmsDirectEditResourceInfo", "resourceInfo", ")", "{", "String", "editId", "=", "getNextDirectEditId", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "...
Returns the start HTML for a disabled direct edit button.<p> @param params the direct edit parameters @param resourceInfo contains information about the resource to edit @return the start HTML for a disabled direct edit button
[ "Returns", "the", "start", "HTML", "for", "a", "disabled", "direct", "edit", "button", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/workplace/editors/directedit/CmsDirectEditDefaultProvider.java#L213-L257
apache/incubator-gobblin
gobblin-config-management/gobblin-config-core/src/main/java/org/apache/gobblin/config/store/hdfs/SimpleHDFSStoreMetadata.java
SimpleHDFSStoreMetadata.readMetadata
Config readMetadata() throws IOException { """ Get all metadata from the {@link #CONFIG_STORE_METADATA_FILENAME} file at {@link #storeMetadataFilePath} """ if (!isStoreMetadataFilePresent()) { throw new IOException("Store metadata file does not exist at " + this.storeMetadataFilePath); } try ...
java
Config readMetadata() throws IOException { if (!isStoreMetadataFilePresent()) { throw new IOException("Store metadata file does not exist at " + this.storeMetadataFilePath); } try (InputStream storeMetadataInputStream = this.fs.open(this.storeMetadataFilePath)) { return ConfigFactory.parseReader...
[ "Config", "readMetadata", "(", ")", "throws", "IOException", "{", "if", "(", "!", "isStoreMetadataFilePresent", "(", ")", ")", "{", "throw", "new", "IOException", "(", "\"Store metadata file does not exist at \"", "+", "this", ".", "storeMetadataFilePath", ")", ";",...
Get all metadata from the {@link #CONFIG_STORE_METADATA_FILENAME} file at {@link #storeMetadataFilePath}
[ "Get", "all", "metadata", "from", "the", "{", "@link", "#CONFIG_STORE_METADATA_FILENAME", "}", "file", "at", "{", "@link", "#storeMetadataFilePath", "}" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-config-management/gobblin-config-core/src/main/java/org/apache/gobblin/config/store/hdfs/SimpleHDFSStoreMetadata.java#L130-L137
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SECTION
public static HtmlTree SECTION(Content body) { """ Generates a SECTION tag with role attribute and some content. @param body content of the section tag @return an HtmlTree object for the SECTION tag """ HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body)); htmltree.setRole(Rol...
java
public static HtmlTree SECTION(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body)); htmltree.setRole(Role.REGION); return htmltree; }
[ "public", "static", "HtmlTree", "SECTION", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SECTION", ",", "nullCheck", "(", "body", ")", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "REGI...
Generates a SECTION tag with role attribute and some content. @param body content of the section tag @return an HtmlTree object for the SECTION tag
[ "Generates", "a", "SECTION", "tag", "with", "role", "attribute", "and", "some", "content", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L685-L689
jeremylong/DependencyCheck
core/src/main/java/org/owasp/dependencycheck/xml/hints/HintRule.java
HintRule.addGivenProduct
public void addGivenProduct(String source, String name, String value, boolean regex, Confidence confidence) { """ Adds a given product to the list of evidence to matched. @param source the source of the evidence @param name the name of the evidence @param value the value of the evidence @param regex whether ...
java
public void addGivenProduct(String source, String name, String value, boolean regex, Confidence confidence) { givenProduct.add(new EvidenceMatcher(source, name, value, regex, confidence)); }
[ "public", "void", "addGivenProduct", "(", "String", "source", ",", "String", "name", ",", "String", "value", ",", "boolean", "regex", ",", "Confidence", "confidence", ")", "{", "givenProduct", ".", "add", "(", "new", "EvidenceMatcher", "(", "source", ",", "n...
Adds a given product to the list of evidence to matched. @param source the source of the evidence @param name the name of the evidence @param value the value of the evidence @param regex whether value is a regex @param confidence the confidence of the evidence
[ "Adds", "a", "given", "product", "to", "the", "list", "of", "evidence", "to", "matched", "." ]
train
https://github.com/jeremylong/DependencyCheck/blob/6cc7690ea12e4ca1454210ceaa2e9a5523f0926c/core/src/main/java/org/owasp/dependencycheck/xml/hints/HintRule.java#L106-L108
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/CFG.java
CFG.getOutgoingEdgeWithType
public Edge getOutgoingEdgeWithType(BasicBlock basicBlock, @Type int edgeType) { """ Get the first outgoing edge in basic block with given type. @param basicBlock the basic block @param edgeType the edge type @return the Edge, or null if there is no edge with that edge type """ return getEdgeWit...
java
public Edge getOutgoingEdgeWithType(BasicBlock basicBlock, @Type int edgeType) { return getEdgeWithType(outgoingEdgeIterator(basicBlock), edgeType); }
[ "public", "Edge", "getOutgoingEdgeWithType", "(", "BasicBlock", "basicBlock", ",", "@", "Type", "int", "edgeType", ")", "{", "return", "getEdgeWithType", "(", "outgoingEdgeIterator", "(", "basicBlock", ")", ",", "edgeType", ")", ";", "}" ]
Get the first outgoing edge in basic block with given type. @param basicBlock the basic block @param edgeType the edge type @return the Edge, or null if there is no edge with that edge type
[ "Get", "the", "first", "outgoing", "edge", "in", "basic", "block", "with", "given", "type", "." ]
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/CFG.java#L504-L506
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/NFSubstitution.java
MultiplierSubstitution.setDivisor
public void setDivisor(int radix, short exponent) { """ Sets the substitution's divisor based on the values passed in. @param radix The radix of the divisor. @param exponent The exponent of the divisor. """ divisor = NFRule.power(radix, exponent); if (divisor == 0) { throw new Il...
java
public void setDivisor(int radix, short exponent) { divisor = NFRule.power(radix, exponent); if (divisor == 0) { throw new IllegalStateException("Substitution with divisor 0"); } }
[ "public", "void", "setDivisor", "(", "int", "radix", ",", "short", "exponent", ")", "{", "divisor", "=", "NFRule", ".", "power", "(", "radix", ",", "exponent", ")", ";", "if", "(", "divisor", "==", "0", ")", "{", "throw", "new", "IllegalStateException", ...
Sets the substitution's divisor based on the values passed in. @param radix The radix of the divisor. @param exponent The exponent of the divisor.
[ "Sets", "the", "substitution", "s", "divisor", "based", "on", "the", "values", "passed", "in", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/NFSubstitution.java#L672-L678
axibase/atsd-api-java
src/main/java/com/axibase/tsd/client/AtsdPropertyExtractor.java
AtsdPropertyExtractor.getAsInt
public int getAsInt(final String name, final int defaultValue) { """ Get property by name as int value @param name name of property without the prefix. @param defaultValue default value for case when the property is not set. @return property's value. """ return AtsdUtil.getPropertyIntValue...
java
public int getAsInt(final String name, final int defaultValue) { return AtsdUtil.getPropertyIntValue(fullName(name), clientProperties, defaultValue); }
[ "public", "int", "getAsInt", "(", "final", "String", "name", ",", "final", "int", "defaultValue", ")", "{", "return", "AtsdUtil", ".", "getPropertyIntValue", "(", "fullName", "(", "name", ")", ",", "clientProperties", ",", "defaultValue", ")", ";", "}" ]
Get property by name as int value @param name name of property without the prefix. @param defaultValue default value for case when the property is not set. @return property's value.
[ "Get", "property", "by", "name", "as", "int", "value" ]
train
https://github.com/axibase/atsd-api-java/blob/63a0767d08b202dad2ebef4372ff947d6fba0246/src/main/java/com/axibase/tsd/client/AtsdPropertyExtractor.java#L34-L36
gallandarakhneorg/afc
advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/DBaseFileReader.java
DBaseFileReader.readNumberRecordValue
private static int readNumberRecordValue(DBaseFileField field, int nrecord, int nfield, byte[] rawData, int rawOffset, OutputParameter<Double> value) throws IOException { """ Read a NUMBER record value. @param field is the current parsed field. @param nrecord is the number of the record @param nfield is th...
java
private static int readNumberRecordValue(DBaseFileField field, int nrecord, int nfield, byte[] rawData, int rawOffset, OutputParameter<Double> value) throws IOException { final String buffer = new String(rawData, rawOffset, field.getLength()); try { final String b = buffer.trim(); if (b != null && b.length...
[ "private", "static", "int", "readNumberRecordValue", "(", "DBaseFileField", "field", ",", "int", "nrecord", ",", "int", "nfield", ",", "byte", "[", "]", "rawData", ",", "int", "rawOffset", ",", "OutputParameter", "<", "Double", ">", "value", ")", "throws", "...
Read a NUMBER record value. @param field is the current parsed field. @param nrecord is the number of the record @param nfield is the number of the field @param rawData raw data @param rawOffset is the index at which the data could be obtained @param value will be set with the value extracted from the dBASE file @retu...
[ "Read", "a", "NUMBER", "record", "value", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/DBaseFileReader.java#L1122-L1135
elki-project/elki
elki-itemsets/src/main/java/de/lmu/ifi/dbs/elki/algorithm/itemsetmining/Itemset.java
Itemset.compareLexicographical
protected static int compareLexicographical(Itemset a, Itemset o) { """ Robust compare using the iterators, lexicographical only! Note: This does NOT take length into account. @param o Other itemset. @return Comparison result. """ int i1 = a.iter(), i2 = o.iter(); while(a.iterValid(i1) && o.iter...
java
protected static int compareLexicographical(Itemset a, Itemset o) { int i1 = a.iter(), i2 = o.iter(); while(a.iterValid(i1) && o.iterValid(i2)) { int v1 = a.iterDim(i1), v2 = o.iterDim(i2); if(v1 < v2) { return -1; } if(v2 < v1) { return +1; } i1 = a.iterAdvan...
[ "protected", "static", "int", "compareLexicographical", "(", "Itemset", "a", ",", "Itemset", "o", ")", "{", "int", "i1", "=", "a", ".", "iter", "(", ")", ",", "i2", "=", "o", ".", "iter", "(", ")", ";", "while", "(", "a", ".", "iterValid", "(", "...
Robust compare using the iterators, lexicographical only! Note: This does NOT take length into account. @param o Other itemset. @return Comparison result.
[ "Robust", "compare", "using", "the", "iterators", "lexicographical", "only!" ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-itemsets/src/main/java/de/lmu/ifi/dbs/elki/algorithm/itemsetmining/Itemset.java#L195-L209
aws/aws-sdk-java
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ThingGroupDocument.java
ThingGroupDocument.withAttributes
public ThingGroupDocument withAttributes(java.util.Map<String, String> attributes) { """ <p> The thing group attributes. </p> @param attributes The thing group attributes. @return Returns a reference to this object so that method calls can be chained together. """ setAttributes(attributes); ...
java
public ThingGroupDocument withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
[ "public", "ThingGroupDocument", "withAttributes", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "setAttributes", "(", "attributes", ")", ";", "return", "this", ";", "}" ]
<p> The thing group attributes. </p> @param attributes The thing group attributes. @return Returns a reference to this object so that method calls can be chained together.
[ "<p", ">", "The", "thing", "group", "attributes", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ThingGroupDocument.java#L214-L217
aws/aws-sdk-java
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminInitiateAuthRequest.java
AdminInitiateAuthRequest.withClientMetadata
public AdminInitiateAuthRequest withClientMetadata(java.util.Map<String, String> clientMetadata) { """ <p> This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. </...
java
public AdminInitiateAuthRequest withClientMetadata(java.util.Map<String, String> clientMetadata) { setClientMetadata(clientMetadata); return this; }
[ "public", "AdminInitiateAuthRequest", "withClientMetadata", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "clientMetadata", ")", "{", "setClientMetadata", "(", "clientMetadata", ")", ";", "return", "this", ";", "}" ]
<p> This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. </p> @param clientMetadata This is a random key-value pair map which can contain any key and will be passed to y...
[ "<p", ">", "This", "is", "a", "random", "key", "-", "value", "pair", "map", "which", "can", "contain", "any", "key", "and", "will", "be", "passed", "to", "your", "PreAuthentication", "Lambda", "trigger", "as", "-", "is", ".", "It", "can", "be", "used",...
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminInitiateAuthRequest.java#L1107-L1110
pip-services3-java/pip-services3-components-java
src/org/pipservices3/components/log/Logger.java
Logger.setReferences
public void setReferences(IReferences references) { """ Sets references to dependent components. @param references references to locate the component dependencies. """ Object contextInfo = references.getOneOptional(new Descriptor("pip-services3", "context-info", "*", "*", "1.0")); if (contextInfo instan...
java
public void setReferences(IReferences references) { Object contextInfo = references.getOneOptional(new Descriptor("pip-services3", "context-info", "*", "*", "1.0")); if (contextInfo instanceof ContextInfo && contextInfo != null && _source == null) _source = ((ContextInfo) contextInfo).getName(); }
[ "public", "void", "setReferences", "(", "IReferences", "references", ")", "{", "Object", "contextInfo", "=", "references", ".", "getOneOptional", "(", "new", "Descriptor", "(", "\"pip-services3\"", ",", "\"context-info\"", ",", "\"*\"", ",", "\"*\"", ",", "\"1.0\"...
Sets references to dependent components. @param references references to locate the component dependencies.
[ "Sets", "references", "to", "dependent", "components", "." ]
train
https://github.com/pip-services3-java/pip-services3-components-java/blob/122352fbf9b208f6417376da7b8ad725bc85ee58/src/org/pipservices3/components/log/Logger.java#L50-L54
baidubce/bce-sdk-java
src/main/java/com/baidubce/services/tsdb/model/Datapoint.java
Datapoint.addStringValue
public Datapoint addStringValue(long time, String value) { """ Add datapoint of String type value. @param time datapoint's timestamp @param value datapoint's value @return Datapoint """ initialValues(); checkType(TsdbConstants.TYPE_STRING); values.add(Lists.<JsonNode> newArrayList...
java
public Datapoint addStringValue(long time, String value) { initialValues(); checkType(TsdbConstants.TYPE_STRING); values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new TextNode(value))); return this; }
[ "public", "Datapoint", "addStringValue", "(", "long", "time", ",", "String", "value", ")", "{", "initialValues", "(", ")", ";", "checkType", "(", "TsdbConstants", ".", "TYPE_STRING", ")", ";", "values", ".", "add", "(", "Lists", ".", "<", "JsonNode", ">", ...
Add datapoint of String type value. @param time datapoint's timestamp @param value datapoint's value @return Datapoint
[ "Add", "datapoint", "of", "String", "type", "value", "." ]
train
https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Datapoint.java#L140-L146
liferay/com-liferay-commerce
commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListItemPersistenceImpl.java
CommerceWishListItemPersistenceImpl.countByCW_CPI
@Override public int countByCW_CPI(long commerceWishListId, String CPInstanceUuid) { """ Returns the number of commerce wish list items where commerceWishListId = &#63; and CPInstanceUuid = &#63;. @param commerceWishListId the commerce wish list ID @param CPInstanceUuid the cp instance uuid @return the numbe...
java
@Override public int countByCW_CPI(long commerceWishListId, String CPInstanceUuid) { FinderPath finderPath = FINDER_PATH_COUNT_BY_CW_CPI; Object[] finderArgs = new Object[] { commerceWishListId, CPInstanceUuid }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { ...
[ "@", "Override", "public", "int", "countByCW_CPI", "(", "long", "commerceWishListId", ",", "String", "CPInstanceUuid", ")", "{", "FinderPath", "finderPath", "=", "FINDER_PATH_COUNT_BY_CW_CPI", ";", "Object", "[", "]", "finderArgs", "=", "new", "Object", "[", "]", ...
Returns the number of commerce wish list items where commerceWishListId = &#63; and CPInstanceUuid = &#63;. @param commerceWishListId the commerce wish list ID @param CPInstanceUuid the cp instance uuid @return the number of matching commerce wish list items
[ "Returns", "the", "number", "of", "commerce", "wish", "list", "items", "where", "commerceWishListId", "=", "&#63", ";", "and", "CPInstanceUuid", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListItemPersistenceImpl.java#L2242-L2303
eFaps/eFaps-Kernel
src/main/java/org/efaps/db/wrapper/SQLSelect.java
SQLSelect.columnIndex
public int columnIndex(final int _tableIndex, final String _columnName) { """ Column index. @param _tableIndex the table index @param _columnName the column name @return the int """ final Optional<Column> colOpt = getColumns().stream() .filter(column -> column.tableIndex ==...
java
public int columnIndex(final int _tableIndex, final String _columnName) { final Optional<Column> colOpt = getColumns().stream() .filter(column -> column.tableIndex == _tableIndex && column.columnName.equals(_columnName)) .findFirst(); final int ret; ...
[ "public", "int", "columnIndex", "(", "final", "int", "_tableIndex", ",", "final", "String", "_columnName", ")", "{", "final", "Optional", "<", "Column", ">", "colOpt", "=", "getColumns", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "column", "-...
Column index. @param _tableIndex the table index @param _columnName the column name @return the int
[ "Column", "index", "." ]
train
https://github.com/eFaps/eFaps-Kernel/blob/04b96548f518c2386a93f5ec2b9349f9b9063859/src/main/java/org/efaps/db/wrapper/SQLSelect.java#L137-L150
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/script/el/tokens/ExpressionToken.java
ExpressionToken.applyValuesToList
private static void applyValuesToList(Object value, List list) { """ Set a list of values on a {@link List}. The behavior of this method is different given the type of <code>value</code>:<br/> - value is java.lang.String[]: add each item in the String[] to the list - value is a String: add the value to the lis...
java
private static void applyValuesToList(Object value, List list) { if(list == null) { String msg = "Can not add a value to a null java.util.List"; LOGGER.error(msg); throw new RuntimeException(msg); } if(value instanceof String[]) { String[] ary = (...
[ "private", "static", "void", "applyValuesToList", "(", "Object", "value", ",", "List", "list", ")", "{", "if", "(", "list", "==", "null", ")", "{", "String", "msg", "=", "\"Can not add a value to a null java.util.List\"", ";", "LOGGER", ".", "error", "(", "msg...
Set a list of values on a {@link List}. The behavior of this method is different given the type of <code>value</code>:<br/> - value is java.lang.String[]: add each item in the String[] to the list - value is a String: add the value to the list - otherwise, add the value to the end of the list @param value the value to...
[ "Set", "a", "list", "of", "values", "on", "a", "{" ]
train
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/script/el/tokens/ExpressionToken.java#L255-L271
micronaut-projects/micronaut-core
http-server-netty/src/main/java/io/micronaut/http/server/netty/websocket/NettyServerWebSocketUpgradeHandler.java
NettyServerWebSocketUpgradeHandler.getWebSocketURL
protected String getWebSocketURL(ChannelHandlerContext ctx, HttpRequest req) { """ Obtains the web socket URL. @param ctx The context @param req The request @return The socket URL """ boolean isSecure = ctx.pipeline().get(SslHandler.class) != null; return (isSecure ? SCHEME_SECURE_WEBSOC...
java
protected String getWebSocketURL(ChannelHandlerContext ctx, HttpRequest req) { boolean isSecure = ctx.pipeline().get(SslHandler.class) != null; return (isSecure ? SCHEME_SECURE_WEBSOCKET : SCHEME_WEBSOCKET) + req.getHeaders().get(HttpHeaderNames.HOST) + req.getUri() ; }
[ "protected", "String", "getWebSocketURL", "(", "ChannelHandlerContext", "ctx", ",", "HttpRequest", "req", ")", "{", "boolean", "isSecure", "=", "ctx", ".", "pipeline", "(", ")", ".", "get", "(", "SslHandler", ".", "class", ")", "!=", "null", ";", "return", ...
Obtains the web socket URL. @param ctx The context @param req The request @return The socket URL
[ "Obtains", "the", "web", "socket", "URL", "." ]
train
https://github.com/micronaut-projects/micronaut-core/blob/c31f5b03ce0eb88c2f6470710987db03b8967d5c/http-server-netty/src/main/java/io/micronaut/http/server/netty/websocket/NettyServerWebSocketUpgradeHandler.java#L266-L269
grails/grails-core
grails-bootstrap/src/main/groovy/grails/util/GrailsNameUtils.java
GrailsNameUtils.getPropertyForGetter
public static String getPropertyForGetter(String getterName, String returnType) { """ Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter. If not null or empty the getter name is assumed to be a valid identifier. @param getterName The getter name @p...
java
public static String getPropertyForGetter(String getterName, String returnType) { if (getterName == null || getterName.length() == 0) return null; if (getterName.startsWith("get")) { String prop = getterName.substring(3); return convertValidPropertyMethodSuffix(prop); } ...
[ "public", "static", "String", "getPropertyForGetter", "(", "String", "getterName", ",", "String", "returnType", ")", "{", "if", "(", "getterName", "==", "null", "||", "getterName", ".", "length", "(", ")", "==", "0", ")", "return", "null", ";", "if", "(", ...
Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter. If not null or empty the getter name is assumed to be a valid identifier. @param getterName The getter name @param returnType The type the method returns @return The property name equivalent
[ "Returns", "a", "property", "name", "equivalent", "for", "the", "given", "getter", "name", "and", "return", "type", "or", "null", "if", "it", "is", "not", "a", "valid", "getter", ".", "If", "not", "null", "or", "empty", "the", "getter", "name", "is", "...
train
https://github.com/grails/grails-core/blob/c0b08aa995b0297143b75d05642abba8cb7b4122/grails-bootstrap/src/main/groovy/grails/util/GrailsNameUtils.java#L576-L588
allengeorge/libraft
libraft-agent/src/main/java/io/libraft/agent/RaftAgent.java
RaftAgent.fromConfigurationObject
public static RaftAgent fromConfigurationObject(RaftConfiguration configuration, RaftListener raftListener) { """ Create an instance of {@code RaftAgent} from a {@code RaftConfiguration} object. This method can be used when the {@code RaftAgent} configuration is part of a larger configuration. @param configura...
java
public static RaftAgent fromConfigurationObject(RaftConfiguration configuration, RaftListener raftListener) { RaftConfigurationLoader.validate(configuration); return new RaftAgent(configuration, raftListener); }
[ "public", "static", "RaftAgent", "fromConfigurationObject", "(", "RaftConfiguration", "configuration", ",", "RaftListener", "raftListener", ")", "{", "RaftConfigurationLoader", ".", "validate", "(", "configuration", ")", ";", "return", "new", "RaftAgent", "(", "configur...
Create an instance of {@code RaftAgent} from a {@code RaftConfiguration} object. This method can be used when the {@code RaftAgent} configuration is part of a larger configuration. @param configuration instance of {@code RaftConfiguration} with the configuration to be used. This object will be validated @param raftLis...
[ "Create", "an", "instance", "of", "{", "@code", "RaftAgent", "}", "from", "a", "{", "@code", "RaftConfiguration", "}", "object", ".", "This", "method", "can", "be", "used", "when", "the", "{", "@code", "RaftAgent", "}", "configuration", "is", "part", "of",...
train
https://github.com/allengeorge/libraft/blob/00d68bb5e68d4020af59df3c8a9a14380108ac89/libraft-agent/src/main/java/io/libraft/agent/RaftAgent.java#L156-L159
adessoAG/wicked-charts
highcharts-wrapper/src/main/java/de/adesso/wickedcharts/highcharts/options/util/OptionsUtil.java
OptionsUtil.copyRenderTo
public void copyRenderTo(final Options from, final Options to) { """ Copies the renderTo configuration from one {@link Options} object to another. Null-safe. @param from Object to copy from @param to Object to copy to """ if (to.getChartOptions() == null) { to.setChartOptions(new Chart...
java
public void copyRenderTo(final Options from, final Options to) { if (to.getChartOptions() == null) { to.setChartOptions(new ChartOptions()); } to.getChartOptions().setRenderTo(from.getChartOptions().getRenderTo()); }
[ "public", "void", "copyRenderTo", "(", "final", "Options", "from", ",", "final", "Options", "to", ")", "{", "if", "(", "to", ".", "getChartOptions", "(", ")", "==", "null", ")", "{", "to", ".", "setChartOptions", "(", "new", "ChartOptions", "(", ")", "...
Copies the renderTo configuration from one {@link Options} object to another. Null-safe. @param from Object to copy from @param to Object to copy to
[ "Copies", "the", "renderTo", "configuration", "from", "one", "{", "@link", "Options", "}", "object", "to", "another", ".", "Null", "-", "safe", "." ]
train
https://github.com/adessoAG/wicked-charts/blob/498aceff025f612e22ba5135b26531afeabac03c/highcharts-wrapper/src/main/java/de/adesso/wickedcharts/highcharts/options/util/OptionsUtil.java#L43-L48
IBM/ibm-cos-sdk-java
ibm-cos-java-sdk-kms/src/main/java/com/ibm/cloud/objectstorage/services/kms/model/ReEncryptRequest.java
ReEncryptRequest.setDestinationEncryptionContext
public void setDestinationEncryptionContext(java.util.Map<String, String> destinationEncryptionContext) { """ <p> Encryption context to use when the data is reencrypted. </p> @param destinationEncryptionContext Encryption context to use when the data is reencrypted. """ this.destinationEncryption...
java
public void setDestinationEncryptionContext(java.util.Map<String, String> destinationEncryptionContext) { this.destinationEncryptionContext = destinationEncryptionContext == null ? null : new com.ibm.cloud.objectstorage.internal.SdkInternalMap<String, String>( destinationEncryptionContext); ...
[ "public", "void", "setDestinationEncryptionContext", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "destinationEncryptionContext", ")", "{", "this", ".", "destinationEncryptionContext", "=", "destinationEncryptionContext", "==", "null", "?",...
<p> Encryption context to use when the data is reencrypted. </p> @param destinationEncryptionContext Encryption context to use when the data is reencrypted.
[ "<p", ">", "Encryption", "context", "to", "use", "when", "the", "data", "is", "reencrypted", ".", "<", "/", "p", ">" ]
train
https://github.com/IBM/ibm-cos-sdk-java/blob/d0bb2dd754c328a05e7dba8dc42e28b271b6daf2/ibm-cos-java-sdk-kms/src/main/java/com/ibm/cloud/objectstorage/services/kms/model/ReEncryptRequest.java#L421-L424
validator/validator
src/nu/validator/gnu/xml/aelfred2/XmlParser.java
XmlParser.parseDocument
private void parseDocument() throws Exception { """ Parse an XML document. <pre> [1] document ::= prolog element Misc* </pre> <p> This is the top-level parsing function for a single XML document. As a minimum, a well-formed document must have a document element, and a valid document must have a prolog (...
java
private void parseDocument() throws Exception { try { // added by MHK boolean sawDTD = parseProlog(); require('<'); parseElement(!sawDTD); } catch (EOFException ee) { // added by MHK fatal("premature end of file", "[EOF]", null); } try { ...
[ "private", "void", "parseDocument", "(", ")", "throws", "Exception", "{", "try", "{", "// added by MHK", "boolean", "sawDTD", "=", "parseProlog", "(", ")", ";", "require", "(", "'", "'", ")", ";", "parseElement", "(", "!", "sawDTD", ")", ";", "}", "catch...
Parse an XML document. <pre> [1] document ::= prolog element Misc* </pre> <p> This is the top-level parsing function for a single XML document. As a minimum, a well-formed document must have a document element, and a valid document must have a prolog (one with doctype) as well.
[ "Parse", "an", "XML", "document", "." ]
train
https://github.com/validator/validator/blob/c7b7f85b3a364df7d9944753fb5b2cd0ce642889/src/nu/validator/gnu/xml/aelfred2/XmlParser.java#L613-L635
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getBundleRepository
public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) { """ Get bundle repository @param locService a location service @param msgs true if messages should be output to the log, false otherwise. @return a bundle repository """ return Bundle...
java
public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) { return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository(); }
[ "public", "ContentBasedLocalBundleRepository", "getBundleRepository", "(", "String", "featureName", ",", "WsLocationAdmin", "locService", ")", "{", "return", "BundleRepositoryRegistry", ".", "getRepositoryHolder", "(", "featureName", ")", ".", "getBundleRepository", "(", ")...
Get bundle repository @param locService a location service @param msgs true if messages should be output to the log, false otherwise. @return a bundle repository
[ "Get", "bundle", "repository" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L502-L504
twitter/cloudhopper-commons
ch-commons-rfs/src/main/java/com/cloudhopper/commons/rfs/provider/SftpRemoteFileSystem.java
SftpRemoteFileSystem.findSshPrivateKeys
protected File[] findSshPrivateKeys(File[] sshDirs) { """ Best attempt to find all .ssh private keys (identity) by searching inside every provided .ssh directory. Currently searches for any "id_rsa" or "id_dsa" files. """ ArrayList<File> files = new ArrayList<File>(); // search every direct...
java
protected File[] findSshPrivateKeys(File[] sshDirs) { ArrayList<File> files = new ArrayList<File>(); // search every directory for (File sshDir : sshDirs) { File f0 = new File(sshDir, "id_dsa"); if (f0.exists() && f0.canRead() && f0.isFile()) { files.add(...
[ "protected", "File", "[", "]", "findSshPrivateKeys", "(", "File", "[", "]", "sshDirs", ")", "{", "ArrayList", "<", "File", ">", "files", "=", "new", "ArrayList", "<", "File", ">", "(", ")", ";", "// search every directory", "for", "(", "File", "sshDir", ...
Best attempt to find all .ssh private keys (identity) by searching inside every provided .ssh directory. Currently searches for any "id_rsa" or "id_dsa" files.
[ "Best", "attempt", "to", "find", "all", ".", "ssh", "private", "keys", "(", "identity", ")", "by", "searching", "inside", "every", "provided", ".", "ssh", "directory", ".", "Currently", "searches", "for", "any", "id_rsa", "or", "id_dsa", "files", "." ]
train
https://github.com/twitter/cloudhopper-commons/blob/b5bc397dbec4537e8149e7ec0733c1d7ed477499/ch-commons-rfs/src/main/java/com/cloudhopper/commons/rfs/provider/SftpRemoteFileSystem.java#L86-L103
schallee/alib4j
servlet/src/main/java/net/darkmist/alib/servlet/ServletUtil.java
ServletUtil.getContextAttribute
public static final <T> T getContextAttribute(HttpServlet servlet, String name, Class<T> cls, Set<GetOpts> opts, T defaultValue) { """ /* getContextAttribute(HttpServlet...) which implements ServletConfig and causes ambigous calls unless explicitly specified... """ return getContextAttribute((ServletConfig)s...
java
public static final <T> T getContextAttribute(HttpServlet servlet, String name, Class<T> cls, Set<GetOpts> opts, T defaultValue) { return getContextAttribute((ServletConfig)servlet, name, cls, opts, defaultValue); }
[ "public", "static", "final", "<", "T", ">", "T", "getContextAttribute", "(", "HttpServlet", "servlet", ",", "String", "name", ",", "Class", "<", "T", ">", "cls", ",", "Set", "<", "GetOpts", ">", "opts", ",", "T", "defaultValue", ")", "{", "return", "ge...
/* getContextAttribute(HttpServlet...) which implements ServletConfig and causes ambigous calls unless explicitly specified...
[ "/", "*", "getContextAttribute", "(", "HttpServlet", "...", ")", "which", "implements", "ServletConfig", "and", "causes", "ambigous", "calls", "unless", "explicitly", "specified", "..." ]
train
https://github.com/schallee/alib4j/blob/0e0718aee574bbb62268e1cf58e99286529ce529/servlet/src/main/java/net/darkmist/alib/servlet/ServletUtil.java#L116-L119
gallandarakhneorg/afc
advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java
DBaseFileAttributePool.getContainer
@Pure public static DBaseFileAttributeProvider getContainer(URL dbaseFile, int recordNumber) { """ Get an attribute container that corresponds to the specified file. @param dbaseFile is the file to read @param recordNumber is the index of the record inside the file ({@code 0..size-1}). @return a container or...
java
@Pure public static DBaseFileAttributeProvider getContainer(URL dbaseFile, int recordNumber) { final DBaseFileAttributePool pool = getPool(dbaseFile); if (pool != null) { final DBaseFileAttributeAccessor accessor = pool.getAccessor(recordNumber); if (accessor != null) { return new DBaseFileAttributeProvi...
[ "@", "Pure", "public", "static", "DBaseFileAttributeProvider", "getContainer", "(", "URL", "dbaseFile", ",", "int", "recordNumber", ")", "{", "final", "DBaseFileAttributePool", "pool", "=", "getPool", "(", "dbaseFile", ")", ";", "if", "(", "pool", "!=", "null", ...
Get an attribute container that corresponds to the specified file. @param dbaseFile is the file to read @param recordNumber is the index of the record inside the file ({@code 0..size-1}). @return a container or <code>null</code> on error
[ "Get", "an", "attribute", "container", "that", "corresponds", "to", "the", "specified", "file", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java#L163-L173