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
apereo/cas
support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java
GrouperFacade.getGrouperGroupAttribute
public static String getGrouperGroupAttribute(final GrouperGroupField groupField, final WsGroup group) { """ Construct grouper group attribute. This is the name of every individual group attribute transformed into a CAS attribute value. @param groupField the group field @param group the group @return t...
java
public static String getGrouperGroupAttribute(final GrouperGroupField groupField, final WsGroup group) { switch (groupField) { case DISPLAY_EXTENSION: return group.getDisplayExtension(); case DISPLAY_NAME: return group.getDisplayName(); case EX...
[ "public", "static", "String", "getGrouperGroupAttribute", "(", "final", "GrouperGroupField", "groupField", ",", "final", "WsGroup", "group", ")", "{", "switch", "(", "groupField", ")", "{", "case", "DISPLAY_EXTENSION", ":", "return", "group", ".", "getDisplayExtensi...
Construct grouper group attribute. This is the name of every individual group attribute transformed into a CAS attribute value. @param groupField the group field @param group the group @return the final attribute name
[ "Construct", "grouper", "group", "attribute", ".", "This", "is", "the", "name", "of", "every", "individual", "group", "attribute", "transformed", "into", "a", "CAS", "attribute", "value", "." ]
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java#L33-L45
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/ExtensionUtils.java
ExtensionUtils.listProductExtensionDirectories
static List<File> listProductExtensionDirectories() { """ List all of product extension directory. It returns empty List object if there is no product extension. """ List<File> dirs = new ArrayList<File>(); for (ProductExtensionInfo info : ProductExtension.getProductExtensions()) { ...
java
static List<File> listProductExtensionDirectories() { List<File> dirs = new ArrayList<File>(); for (ProductExtensionInfo info : ProductExtension.getProductExtensions()) { // there are some fat tests which constructs incorrect ProductExtensionInfo. // in order to avoid the test fa...
[ "static", "List", "<", "File", ">", "listProductExtensionDirectories", "(", ")", "{", "List", "<", "File", ">", "dirs", "=", "new", "ArrayList", "<", "File", ">", "(", ")", ";", "for", "(", "ProductExtensionInfo", "info", ":", "ProductExtension", ".", "get...
List all of product extension directory. It returns empty List object if there is no product extension.
[ "List", "all", "of", "product", "extension", "directory", ".", "It", "returns", "empty", "List", "object", "if", "there", "is", "no", "product", "extension", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/ExtensionUtils.java#L71-L87
lotaris/minirox-client-java
src/main/java/com/lotaris/minirox/client/MiniRoxConnector.java
MiniRoxConnector.notifyStart
public void notifyStart(String projectName, String projectVersion, String category) { """ Send a starting notification to Mini ROX @param projectName The project name @param projectVersion The project version @param category The category """ try { if (isStarted()) { JSONObject startNotification =...
java
public void notifyStart(String projectName, String projectVersion, String category) { try { if (isStarted()) { JSONObject startNotification = new JSONObject(). put("project", new JSONObject(). put("name", projectName). put("version", projectVersion) ). put("category", category); ...
[ "public", "void", "notifyStart", "(", "String", "projectName", ",", "String", "projectVersion", ",", "String", "category", ")", "{", "try", "{", "if", "(", "isStarted", "(", ")", ")", "{", "JSONObject", "startNotification", "=", "new", "JSONObject", "(", ")"...
Send a starting notification to Mini ROX @param projectName The project name @param projectVersion The project version @param category The category
[ "Send", "a", "starting", "notification", "to", "Mini", "ROX" ]
train
https://github.com/lotaris/minirox-client-java/blob/56fc0e22210d4fbaaa2b47aa9f8c504379b57dad/src/main/java/com/lotaris/minirox/client/MiniRoxConnector.java#L61-L84
Hygieia/Hygieia
collectors/misc/score/src/main/java/com/capitalone/dashboard/widget/BuildWidgetScore.java
BuildWidgetScore.fetchBuildDurationWithinThresholdRatio
private Double fetchBuildDurationWithinThresholdRatio(Iterable<Build> builds, long thresholdInMillis) { """ Calculate builds that completed successfully within threshold time Only builds with status as Success, Unstable is included for calculation @param builds iterable builds @param thresholdInMillis thresho...
java
private Double fetchBuildDurationWithinThresholdRatio(Iterable<Build> builds, long thresholdInMillis) { int totalBuilds = 0, totalBelowThreshold = 0; for (Build build : builds) { if (!Constants.SUCCESS_STATUS.contains(build.getBuildStatus())) { continue; } totalBuilds++; if (bui...
[ "private", "Double", "fetchBuildDurationWithinThresholdRatio", "(", "Iterable", "<", "Build", ">", "builds", ",", "long", "thresholdInMillis", ")", "{", "int", "totalBuilds", "=", "0", ",", "totalBelowThreshold", "=", "0", ";", "for", "(", "Build", "build", ":",...
Calculate builds that completed successfully within threshold time Only builds with status as Success, Unstable is included for calculation @param builds iterable builds @param thresholdInMillis threshold for build times in milliseconds @return percentage of builds within threshold
[ "Calculate", "builds", "that", "completed", "successfully", "within", "threshold", "time", "Only", "builds", "with", "status", "as", "Success", "Unstable", "is", "included", "for", "calculation" ]
train
https://github.com/Hygieia/Hygieia/blob/d8b67a590da2744acf59bcd99d9b34ef1bb84890/collectors/misc/score/src/main/java/com/capitalone/dashboard/widget/BuildWidgetScore.java#L220-L236
ironjacamar/ironjacamar
core/src/main/java/org/ironjacamar/core/tracer/Tracer.java
Tracer.clearConnection
public static synchronized void clearConnection(String poolName, Object mcp, Object cl, Object connection) { """ Clear connection @param poolName The name of the pool @param mcp The managed connection pool @param cl The connection listener @param connection The connection """ log.tracef("%s", new Tra...
java
public static synchronized void clearConnection(String poolName, Object mcp, Object cl, Object connection) { log.tracef("%s", new TraceEvent(poolName, Integer.toHexString(System.identityHashCode(mcp)), TraceEvent.CLEAR_CONNECTION, ...
[ "public", "static", "synchronized", "void", "clearConnection", "(", "String", "poolName", ",", "Object", "mcp", ",", "Object", "cl", ",", "Object", "connection", ")", "{", "log", ".", "tracef", "(", "\"%s\"", ",", "new", "TraceEvent", "(", "poolName", ",", ...
Clear connection @param poolName The name of the pool @param mcp The managed connection pool @param cl The connection listener @param connection The connection
[ "Clear", "connection" ]
train
https://github.com/ironjacamar/ironjacamar/blob/f0389ee7e62aa8b40ba09b251edad76d220ea796/core/src/main/java/org/ironjacamar/core/tracer/Tracer.java#L405-L412
groupon/odo
proxyserver/src/main/java/com/groupon/odo/Proxy.java
Proxy.processClientId
private void processClientId(HttpServletRequest httpServletRequest, History history) { """ Apply the matching client UUID for the request @param httpServletRequest @param history """ // get the client id from the request header if applicable.. otherwise set to default // also set the client...
java
private void processClientId(HttpServletRequest httpServletRequest, History history) { // get the client id from the request header if applicable.. otherwise set to default // also set the client uuid in the history object if (httpServletRequest.getHeader(Constants.PROFILE_CLIENT_HEADER_NAME) !=...
[ "private", "void", "processClientId", "(", "HttpServletRequest", "httpServletRequest", ",", "History", "history", ")", "{", "// get the client id from the request header if applicable.. otherwise set to default", "// also set the client uuid in the history object", "if", "(", "httpServ...
Apply the matching client UUID for the request @param httpServletRequest @param history
[ "Apply", "the", "matching", "client", "UUID", "for", "the", "request" ]
train
https://github.com/groupon/odo/blob/3bae43d5eca8ace036775e5b2d3ed9af1a9ff9b1/proxyserver/src/main/java/com/groupon/odo/Proxy.java#L531-L541
cache2k/cache2k
cache2k-core/src/main/java/org/cache2k/core/util/TunableFactory.java
TunableFactory.get
@SuppressWarnings("unchecked") public synchronized static <T extends TunableConstants> T get(Properties p, Class<T> c) { """ Provide tuning object with initialized information from the properties file. @param p Properties from the execution context @param c Tunable class @param <T> type of requested tunable...
java
@SuppressWarnings("unchecked") public synchronized static <T extends TunableConstants> T get(Properties p, Class<T> c) { T cfg = getDefault(c); if (p != null && p.containsKey(TUNE_MARKER) && p.containsKey(cfg.getClass().getName() + ".tuning")) { cfg = (T) cfg.clone(); apply(p, cfg); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "synchronized", "static", "<", "T", "extends", "TunableConstants", ">", "T", "get", "(", "Properties", "p", ",", "Class", "<", "T", ">", "c", ")", "{", "T", "cfg", "=", "getDefault", "(", "c",...
Provide tuning object with initialized information from the properties file. @param p Properties from the execution context @param c Tunable class @param <T> type of requested tunable class @return Created and initialized object
[ "Provide", "tuning", "object", "with", "initialized", "information", "from", "the", "properties", "file", "." ]
train
https://github.com/cache2k/cache2k/blob/3c9ccff12608c598c387ec50957089784cc4b618/cache2k-core/src/main/java/org/cache2k/core/util/TunableFactory.java#L91-L101
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/CmsAreaSelectPanel.java
CmsAreaSelectPanel.setSelectPosition
private void setSelectPosition(int posX, int posY, int height, int width) { """ Sets position and size of the select area.<p> @param posX the new X position @param posY the new Y position @param height the new height @param width the new width """ setSelectPositionX(posX, width); setSele...
java
private void setSelectPosition(int posX, int posY, int height, int width) { setSelectPositionX(posX, width); setSelectPositionY(posY, height); }
[ "private", "void", "setSelectPosition", "(", "int", "posX", ",", "int", "posY", ",", "int", "height", ",", "int", "width", ")", "{", "setSelectPositionX", "(", "posX", ",", "width", ")", ";", "setSelectPositionY", "(", "posY", ",", "height", ")", ";", "}...
Sets position and size of the select area.<p> @param posX the new X position @param posY the new Y position @param height the new height @param width the new width
[ "Sets", "position", "and", "size", "of", "the", "select", "area", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/CmsAreaSelectPanel.java#L779-L783
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/servlet/RendererRequestUtils.java
RendererRequestUtils.getRenderedUrl
public static String getRenderedUrl(String url, JawrConfig jawrConfig, String contextPath, boolean sslRequest) { """ Renders the URL taking in account the context path, the jawr config @param url the URL @param jawrConfig the jawr config @param contextPath the context path @param sslRequest the flag indi...
java
public static String getRenderedUrl(String url, JawrConfig jawrConfig, String contextPath, boolean sslRequest) { String contextPathOverride = getContextPathOverride(sslRequest, jawrConfig); // If the contextPathOverride is not null and we are in production mode, // or if we are in debug mode but we should use th...
[ "public", "static", "String", "getRenderedUrl", "(", "String", "url", ",", "JawrConfig", "jawrConfig", ",", "String", "contextPath", ",", "boolean", "sslRequest", ")", "{", "String", "contextPathOverride", "=", "getContextPathOverride", "(", "sslRequest", ",", "jawr...
Renders the URL taking in account the context path, the jawr config @param url the URL @param jawrConfig the jawr config @param contextPath the context path @param sslRequest the flag indicating if it's an SSL request or not @return the new URL
[ "Renders", "the", "URL", "taking", "in", "account", "the", "context", "path", "the", "jawr", "config" ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr/jawr-core/src/main/java/net/jawr/web/servlet/RendererRequestUtils.java#L325-L352
fcrepo3/fcrepo
fcrepo-common/src/main/java/org/fcrepo/common/rdf/JRDF.java
JRDF.sameResource
public static boolean sameResource(URIReference u1, String u2) { """ Tells whether the given resources are equivalent, with one given as a URI string. @param u1 first resource. @param u2 second resource, given as a URI string. @return true if equivalent, false otherwise. """ return u1.getURI()....
java
public static boolean sameResource(URIReference u1, String u2) { return u1.getURI().toString().equals(u2); }
[ "public", "static", "boolean", "sameResource", "(", "URIReference", "u1", ",", "String", "u2", ")", "{", "return", "u1", ".", "getURI", "(", ")", ".", "toString", "(", ")", ".", "equals", "(", "u2", ")", ";", "}" ]
Tells whether the given resources are equivalent, with one given as a URI string. @param u1 first resource. @param u2 second resource, given as a URI string. @return true if equivalent, false otherwise.
[ "Tells", "whether", "the", "given", "resources", "are", "equivalent", "with", "one", "given", "as", "a", "URI", "string", "." ]
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-common/src/main/java/org/fcrepo/common/rdf/JRDF.java#L70-L72
samskivert/samskivert
src/main/java/com/samskivert/util/ConfigUtil.java
ConfigUtil.loadInheritedProperties
public static Properties loadInheritedProperties (String path, ClassLoader loader) throws IOException { """ Like {@link #loadInheritedProperties(String)} but this method uses the supplied class loader rather than the class loader used to load the <code>ConfigUtil</code> class. """ Properties p...
java
public static Properties loadInheritedProperties (String path, ClassLoader loader) throws IOException { Properties props = new Properties(); loadInheritedProperties(path, loader, props); return props; }
[ "public", "static", "Properties", "loadInheritedProperties", "(", "String", "path", ",", "ClassLoader", "loader", ")", "throws", "IOException", "{", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "loadInheritedProperties", "(", "path", ",", "loade...
Like {@link #loadInheritedProperties(String)} but this method uses the supplied class loader rather than the class loader used to load the <code>ConfigUtil</code> class.
[ "Like", "{" ]
train
https://github.com/samskivert/samskivert/blob/a64d9ef42b69819bdb2c66bddac6a64caef928b6/src/main/java/com/samskivert/util/ConfigUtil.java#L224-L230
apache/incubator-gobblin
gobblin-utility/src/main/java/org/apache/gobblin/util/JobLauncherUtils.java
JobLauncherUtils.cleanTaskStagingData
public static void cleanTaskStagingData(State state, Logger logger) throws IOException { """ Cleanup staging data of a Gobblin task. @param state a {@link State} instance storing task configuration properties @param logger a {@link Logger} used for logging """ int numBranches = state.getPropAsInt(Confi...
java
public static void cleanTaskStagingData(State state, Logger logger) throws IOException { int numBranches = state.getPropAsInt(ConfigurationKeys.FORK_BRANCHES_KEY, 1); for (int branchId = 0; branchId < numBranches; branchId++) { String writerFsUri = state.getProp( ForkOperatorUtils.getPropertyNa...
[ "public", "static", "void", "cleanTaskStagingData", "(", "State", "state", ",", "Logger", "logger", ")", "throws", "IOException", "{", "int", "numBranches", "=", "state", ".", "getPropAsInt", "(", "ConfigurationKeys", ".", "FORK_BRANCHES_KEY", ",", "1", ")", ";"...
Cleanup staging data of a Gobblin task. @param state a {@link State} instance storing task configuration properties @param logger a {@link Logger} used for logging
[ "Cleanup", "staging", "data", "of", "a", "Gobblin", "task", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-utility/src/main/java/org/apache/gobblin/util/JobLauncherUtils.java#L176-L201
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobCredentialsInner.java
JobCredentialsInner.createOrUpdateAsync
public Observable<JobCredentialInner> createOrUpdateAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters) { """ Creates or updates a job credential. @param resourceGroupName The name of the resource group that contains the resource. You can...
java
public Observable<JobCredentialInner> createOrUpdateAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, credentialName, parameters).map(new Func1...
[ "public", "Observable", "<", "JobCredentialInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "jobAgentName", ",", "String", "credentialName", ",", "JobCredentialInner", "parameters", ")", "{", "return", ...
Creates or updates a job credential. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param jobAgentName The name of the job agent. @param credentialName The name o...
[ "Creates", "or", "updates", "a", "job", "credential", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobCredentialsInner.java#L361-L368
ngageoint/geopackage-core-java
src/main/java/mil/nga/geopackage/extension/properties/PropertiesManagerCore.java
PropertiesManagerCore.addValue
public int addValue(String property, String value) { """ Add a property value to all GeoPackages @param property property name @param value value @return number of GeoPackages added to """ int count = 0; for (String geoPackage : propertiesMap.keySet()) { if (addValue(geoPackage, property, value))...
java
public int addValue(String property, String value) { int count = 0; for (String geoPackage : propertiesMap.keySet()) { if (addValue(geoPackage, property, value)) { count++; } } return count; }
[ "public", "int", "addValue", "(", "String", "property", ",", "String", "value", ")", "{", "int", "count", "=", "0", ";", "for", "(", "String", "geoPackage", ":", "propertiesMap", ".", "keySet", "(", ")", ")", "{", "if", "(", "addValue", "(", "geoPackag...
Add a property value to all GeoPackages @param property property name @param value value @return number of GeoPackages added to
[ "Add", "a", "property", "value", "to", "all", "GeoPackages" ]
train
https://github.com/ngageoint/geopackage-core-java/blob/6431c3b041a45b7f3802904ea4156b4082a72daa/src/main/java/mil/nga/geopackage/extension/properties/PropertiesManagerCore.java#L395-L403
jaxio/celerio
celerio-engine/src/main/java/com/jaxio/celerio/factory/RelationCollisionUtil.java
RelationCollisionUtil.getManyToOneNamer
public Namer getManyToOneNamer(Attribute fromAttribute, Namer targetEntityNamer) { """ Compute the appropriate namer for the Java field marked by @ManyToOne @param fromAttribute the column that is the foreign key. @param targetEntityNamer the default namer for the entity on the other side of the relation. ...
java
public Namer getManyToOneNamer(Attribute fromAttribute, Namer targetEntityNamer) { // configuration Namer result = getManyToOneNamerFromConf(fromAttribute.getColumnConfig(), targetEntityNamer); // fall back if (result == null) { result = getXToOneNamerFallBack(fromAttribute,...
[ "public", "Namer", "getManyToOneNamer", "(", "Attribute", "fromAttribute", ",", "Namer", "targetEntityNamer", ")", "{", "// configuration", "Namer", "result", "=", "getManyToOneNamerFromConf", "(", "fromAttribute", ".", "getColumnConfig", "(", ")", ",", "targetEntityNam...
Compute the appropriate namer for the Java field marked by @ManyToOne @param fromAttribute the column that is the foreign key. @param targetEntityNamer the default namer for the entity on the other side of the relation.
[ "Compute", "the", "appropriate", "namer", "for", "the", "Java", "field", "marked", "by", "@ManyToOne" ]
train
https://github.com/jaxio/celerio/blob/fbfacb639e286f9f3f3a18986f74ea275bebd887/celerio-engine/src/main/java/com/jaxio/celerio/factory/RelationCollisionUtil.java#L56-L66
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/fixed/CommonOps_DDF2.java
CommonOps_DDF2.elementMult
public static void elementMult( DMatrix2 a , DMatrix2 b) { """ <p>Performs an element by element multiplication operation:<br> <br> a<sub>i</sub> = a<sub>i</sub> * b<sub>i</sub> <br> </p> @param a The left vector in the multiplication operation. Modified. @param b The right vector in the multiplication operat...
java
public static void elementMult( DMatrix2 a , DMatrix2 b) { a.a1 *= b.a1; a.a2 *= b.a2; }
[ "public", "static", "void", "elementMult", "(", "DMatrix2", "a", ",", "DMatrix2", "b", ")", "{", "a", ".", "a1", "*=", "b", ".", "a1", ";", "a", ".", "a2", "*=", "b", ".", "a2", ";", "}" ]
<p>Performs an element by element multiplication operation:<br> <br> a<sub>i</sub> = a<sub>i</sub> * b<sub>i</sub> <br> </p> @param a The left vector in the multiplication operation. Modified. @param b The right vector in the multiplication operation. Not modified.
[ "<p", ">", "Performs", "an", "element", "by", "element", "multiplication", "operation", ":", "<br", ">", "<br", ">", "a<sub", ">", "i<", "/", "sub", ">", "=", "a<sub", ">", "i<", "/", "sub", ">", "*", "b<sub", ">", "i<", "/", "sub", ">", "<br", "...
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/fixed/CommonOps_DDF2.java#L879-L882
line/centraldogma
server/src/main/java/com/linecorp/centraldogma/server/internal/storage/repository/git/GitRepository.java
GitRepository.cloneTo
public void cloneTo(File newRepoDir, GitRepositoryFormat format) { """ Clones this repository into a new one. @param format the repository format """ cloneTo(newRepoDir, format, (current, total) -> { /* no-op */ }); }
java
public void cloneTo(File newRepoDir, GitRepositoryFormat format) { cloneTo(newRepoDir, format, (current, total) -> { /* no-op */ }); }
[ "public", "void", "cloneTo", "(", "File", "newRepoDir", ",", "GitRepositoryFormat", "format", ")", "{", "cloneTo", "(", "newRepoDir", ",", "format", ",", "(", "current", ",", "total", ")", "->", "{", "/* no-op */", "}", ")", ";", "}" ]
Clones this repository into a new one. @param format the repository format
[ "Clones", "this", "repository", "into", "a", "new", "one", "." ]
train
https://github.com/line/centraldogma/blob/b9e46c67fbc26628c2186ce2f46e7fb303c831e9/server/src/main/java/com/linecorp/centraldogma/server/internal/storage/repository/git/GitRepository.java#L1499-L1501
Azure/azure-sdk-for-java
servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/ClientFactory.java
ClientFactory.acceptSessionFromConnectionStringBuilder
public static IMessageSession acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException { """ Accept a {@link IMessageSession} from service bus connection string builder with specified se...
java
public static IMessageSession acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException { return Utils.completeFuture(acceptSessionFromConnectionStringBuilderAsync(amqpConnectionString...
[ "public", "static", "IMessageSession", "acceptSessionFromConnectionStringBuilder", "(", "ConnectionStringBuilder", "amqpConnectionStringBuilder", ",", "String", "sessionId", ",", "ReceiveMode", "receiveMode", ")", "throws", "InterruptedException", ",", "ServiceBusException", "{",...
Accept a {@link IMessageSession} from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session. @param amqpConnectionStringBuilder the connection string builder @param sessionId session id, if null, service will ...
[ "Accept", "a", "{", "@link", "IMessageSession", "}", "from", "service", "bus", "connection", "string", "builder", "with", "specified", "session", "id", ".", "Session", "Id", "can", "be", "null", "if", "null", "service", "will", "return", "the", "first", "ava...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/ClientFactory.java#L526-L528
aws/aws-sdk-java
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerResult.java
DescribeBrokerResult.withTags
public DescribeBrokerResult withTags(java.util.Map<String, String> tags) { """ The list of all tags associated with this broker. @param tags The list of all tags associated with this broker. @return Returns a reference to this object so that method calls can be chained together. """ setTags(tags);...
java
public DescribeBrokerResult withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
[ "public", "DescribeBrokerResult", "withTags", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "setTags", "(", "tags", ")", ";", "return", "this", ";", "}" ]
The list of all tags associated with this broker. @param tags The list of all tags associated with this broker. @return Returns a reference to this object so that method calls can be chained together.
[ "The", "list", "of", "all", "tags", "associated", "with", "this", "broker", "." ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerResult.java#L928-L931
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/UsersInner.java
UsersInner.createOrUpdate
public UserInner createOrUpdate(String deviceName, String name, String resourceGroupName, UserInner user) { """ Creates a new user or updates an existing user's information on a data box edge/gateway device. @param deviceName The device name. @param name The user name. @param resourceGroupName The resource gr...
java
public UserInner createOrUpdate(String deviceName, String name, String resourceGroupName, UserInner user) { return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, user).toBlocking().last().body(); }
[ "public", "UserInner", "createOrUpdate", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ",", "UserInner", "user", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGroup...
Creates a new user or updates an existing user's information on a data box edge/gateway device. @param deviceName The device name. @param name The user name. @param resourceGroupName The resource group name. @param user The user details. @throws IllegalArgumentException thrown if parameters fail the validation @throws...
[ "Creates", "a", "new", "user", "or", "updates", "an", "existing", "user", "s", "information", "on", "a", "data", "box", "edge", "/", "gateway", "device", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/UsersInner.java#L322-L324
Impetus/Kundera
src/kundera-mongo/src/main/java/com/impetus/client/mongodb/DefaultMongoDBDataHandler.java
DefaultMongoDBDataHandler.getLobFromGFSEntity
public Object getLobFromGFSEntity(GridFS gfs, EntityMetadata m, Object entity, KunderaMetadata kunderaMetadata) { """ Gets the lob from GFS entity. @param gfs the gfs @param m the m @param entity the entity @param kunderaMetadata the kundera metadata @return the lob from gfs entity """ Metam...
java
public Object getLobFromGFSEntity(GridFS gfs, EntityMetadata m, Object entity, KunderaMetadata kunderaMetadata) { MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata() .getMetamodel(m.getPersistenceUnit()); EntityType entityType = metaModel.entity(m.getEn...
[ "public", "Object", "getLobFromGFSEntity", "(", "GridFS", "gfs", ",", "EntityMetadata", "m", ",", "Object", "entity", ",", "KunderaMetadata", "kunderaMetadata", ")", "{", "MetamodelImpl", "metaModel", "=", "(", "MetamodelImpl", ")", "kunderaMetadata", ".", "getAppli...
Gets the lob from GFS entity. @param gfs the gfs @param m the m @param entity the entity @param kunderaMetadata the kundera metadata @return the lob from gfs entity
[ "Gets", "the", "lob", "from", "GFS", "entity", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-mongo/src/main/java/com/impetus/client/mongodb/DefaultMongoDBDataHandler.java#L650-L665
virgo47/javasimon
spring/src/main/java/org/javasimon/spring/BasicMonitoringInterceptor.java
BasicMonitoringInterceptor.invoke
public final Object invoke(MethodInvocation invocation) throws Throwable { """ Performs method invocation and wraps it with Stopwatch. @param invocation method invocation @return return object from the method @throws Throwable anything thrown by the method """ final Split split = stopwatchSource.start(i...
java
public final Object invoke(MethodInvocation invocation) throws Throwable { final Split split = stopwatchSource.start(invocation); try { return processInvoke(invocation, split); } finally { split.stop(); } }
[ "public", "final", "Object", "invoke", "(", "MethodInvocation", "invocation", ")", "throws", "Throwable", "{", "final", "Split", "split", "=", "stopwatchSource", ".", "start", "(", "invocation", ")", ";", "try", "{", "return", "processInvoke", "(", "invocation",...
Performs method invocation and wraps it with Stopwatch. @param invocation method invocation @return return object from the method @throws Throwable anything thrown by the method
[ "Performs", "method", "invocation", "and", "wraps", "it", "with", "Stopwatch", "." ]
train
https://github.com/virgo47/javasimon/blob/17dfaa93cded9ce8ef64a134b28ccbf4d0284d2f/spring/src/main/java/org/javasimon/spring/BasicMonitoringInterceptor.java#L48-L55
jenkinsci/jenkins
cli/src/main/java/hudson/cli/Connection.java
Connection.encryptConnection
public Connection encryptConnection(SecretKey sessionKey, String algorithm) throws IOException, GeneralSecurityException { """ Upgrades a connection with transport encryption by the specified symmetric cipher. @return A new {@link Connection} object that includes the transport encryption. """ Ciphe...
java
public Connection encryptConnection(SecretKey sessionKey, String algorithm) throws IOException, GeneralSecurityException { Cipher cout = Cipher.getInstance(algorithm); cout.init(Cipher.ENCRYPT_MODE, sessionKey, new IvParameterSpec(sessionKey.getEncoded())); CipherOutputStream o = new CipherOutpu...
[ "public", "Connection", "encryptConnection", "(", "SecretKey", "sessionKey", ",", "String", "algorithm", ")", "throws", "IOException", ",", "GeneralSecurityException", "{", "Cipher", "cout", "=", "Cipher", ".", "getInstance", "(", "algorithm", ")", ";", "cout", "....
Upgrades a connection with transport encryption by the specified symmetric cipher. @return A new {@link Connection} object that includes the transport encryption.
[ "Upgrades", "a", "connection", "with", "transport", "encryption", "by", "the", "specified", "symmetric", "cipher", "." ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/cli/src/main/java/hudson/cli/Connection.java#L195-L205
real-logic/simple-binary-encoding
sbe-tool/src/main/java/uk/co/real_logic/sbe/otf/OtfHeaderDecoder.java
OtfHeaderDecoder.getBlockLength
public int getBlockLength(final DirectBuffer buffer, final int bufferOffset) { """ Get the block length of the root block in the message. @param buffer from which to read the value. @param bufferOffset in the buffer at which the message header begins. @return the length of the root block in the coming m...
java
public int getBlockLength(final DirectBuffer buffer, final int bufferOffset) { return Types.getInt(buffer, bufferOffset + blockLengthOffset, blockLengthType, blockLengthByteOrder); }
[ "public", "int", "getBlockLength", "(", "final", "DirectBuffer", "buffer", ",", "final", "int", "bufferOffset", ")", "{", "return", "Types", ".", "getInt", "(", "buffer", ",", "bufferOffset", "+", "blockLengthOffset", ",", "blockLengthType", ",", "blockLengthByteO...
Get the block length of the root block in the message. @param buffer from which to read the value. @param bufferOffset in the buffer at which the message header begins. @return the length of the root block in the coming message.
[ "Get", "the", "block", "length", "of", "the", "root", "block", "in", "the", "message", "." ]
train
https://github.com/real-logic/simple-binary-encoding/blob/9a7be490c86d98f0e430e4189bc6c8c4fbef658b/sbe-tool/src/main/java/uk/co/real_logic/sbe/otf/OtfHeaderDecoder.java#L142-L145
albfernandez/itext2
src/main/java/com/lowagie/text/pdf/VerticalText.java
VerticalText.setVerticalLayout
public void setVerticalLayout(float startX, float startY, float height, int maxLines, float leading) { """ Sets the layout. @param startX the top right X line position @param startY the top right Y line position @param height the height of the lines @param maxLines the maximum number of lines @param leading t...
java
public void setVerticalLayout(float startX, float startY, float height, int maxLines, float leading) { this.startX = startX; this.startY = startY; this.height = height; this.maxLines = maxLines; setLeading(leading); }
[ "public", "void", "setVerticalLayout", "(", "float", "startX", ",", "float", "startY", ",", "float", "height", ",", "int", "maxLines", ",", "float", "leading", ")", "{", "this", ".", "startX", "=", "startX", ";", "this", ".", "startY", "=", "startY", ";"...
Sets the layout. @param startX the top right X line position @param startY the top right Y line position @param height the height of the lines @param maxLines the maximum number of lines @param leading the separation between the lines
[ "Sets", "the", "layout", "." ]
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/pdf/VerticalText.java#L141-L147
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscCompilationJobsInner.java
DscCompilationJobsInner.createAsync
public Observable<DscCompilationJobInner> createAsync(String resourceGroupName, String automationAccountName, UUID compilationJobId, DscCompilationJobCreateParameters parameters) { """ Creates the Dsc compilation job of the configuration. @param resourceGroupName Name of an Azure Resource group. @param automat...
java
public Observable<DscCompilationJobInner> createAsync(String resourceGroupName, String automationAccountName, UUID compilationJobId, DscCompilationJobCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, automationAccountName, compilationJobId, parameters).map(new Func1<Service...
[ "public", "Observable", "<", "DscCompilationJobInner", ">", "createAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "UUID", "compilationJobId", ",", "DscCompilationJobCreateParameters", "parameters", ")", "{", "return", "createWithSer...
Creates the Dsc compilation job of the configuration. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param compilationJobId The the DSC configuration Id. @param parameters The parameters supplied to the create compilation job operation. @thro...
[ "Creates", "the", "Dsc", "compilation", "job", "of", "the", "configuration", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscCompilationJobsInner.java#L128-L135
ow2-chameleon/fuchsia
importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java
ZWaveCommandClass.getInstance
public static ZWaveCommandClass getInstance(int i, ZWaveNode node, ZWaveController controller) { """ Gets an instance of the right command class. Returns null if the command class is not found. @param i the code to instantiate @param node the node this instance commands. @param controller the controller to sen...
java
public static ZWaveCommandClass getInstance(int i, ZWaveNode node, ZWaveController controller) { return ZWaveCommandClass.getInstance(i, node, controller, null); }
[ "public", "static", "ZWaveCommandClass", "getInstance", "(", "int", "i", ",", "ZWaveNode", "node", ",", "ZWaveController", "controller", ")", "{", "return", "ZWaveCommandClass", ".", "getInstance", "(", "i", ",", "node", ",", "controller", ",", "null", ")", ";...
Gets an instance of the right command class. Returns null if the command class is not found. @param i the code to instantiate @param node the node this instance commands. @param controller the controller to send messages to. @return the ZWaveCommandClass instance that was instantiated, null otherwise
[ "Gets", "an", "instance", "of", "the", "right", "command", "class", ".", "Returns", "null", "if", "the", "command", "class", "is", "not", "found", "." ]
train
https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveCommandClass.java#L180-L182
joniles/mpxj
src/main/java/net/sf/mpxj/json/JsonWriter.java
JsonWriter.writeTimeUnitsField
private void writeTimeUnitsField(String fieldName, Object value) throws IOException { """ Write a time units field to the JSON file. @param fieldName field name @param value field value """ TimeUnit val = (TimeUnit) value; if (val != m_projectFile.getProjectProperties().getDefaultDurationUnits(...
java
private void writeTimeUnitsField(String fieldName, Object value) throws IOException { TimeUnit val = (TimeUnit) value; if (val != m_projectFile.getProjectProperties().getDefaultDurationUnits()) { m_writer.writeNameValuePair(fieldName, val.toString()); } }
[ "private", "void", "writeTimeUnitsField", "(", "String", "fieldName", ",", "Object", "value", ")", "throws", "IOException", "{", "TimeUnit", "val", "=", "(", "TimeUnit", ")", "value", ";", "if", "(", "val", "!=", "m_projectFile", ".", "getProjectProperties", "...
Write a time units field to the JSON file. @param fieldName field name @param value field value
[ "Write", "a", "time", "units", "field", "to", "the", "JSON", "file", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/json/JsonWriter.java#L458-L465
apache/incubator-gobblin
gobblin-utility/src/main/java/org/apache/gobblin/util/FileListUtils.java
FileListUtils.getAnyNonHiddenFile
public static FileStatus getAnyNonHiddenFile(FileSystem fs, Path path) throws IOException { """ Get any data file, which is not hidden or a directory, from the given path """ HiddenFilter hiddenFilter = new HiddenFilter(); FileStatus root = fs.getFileStatus(path); if (!root.isDirectory()) { ...
java
public static FileStatus getAnyNonHiddenFile(FileSystem fs, Path path) throws IOException { HiddenFilter hiddenFilter = new HiddenFilter(); FileStatus root = fs.getFileStatus(path); if (!root.isDirectory()) { return hiddenFilter.accept(path) ? root : null; } // DFS to get the first dat...
[ "public", "static", "FileStatus", "getAnyNonHiddenFile", "(", "FileSystem", "fs", ",", "Path", "path", ")", "throws", "IOException", "{", "HiddenFilter", "hiddenFilter", "=", "new", "HiddenFilter", "(", ")", ";", "FileStatus", "root", "=", "fs", ".", "getFileSta...
Get any data file, which is not hidden or a directory, from the given path
[ "Get", "any", "data", "file", "which", "is", "not", "hidden", "or", "a", "directory", "from", "the", "given", "path" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-utility/src/main/java/org/apache/gobblin/util/FileListUtils.java#L237-L265
UrielCh/ovh-java-sdk
ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java
ApiOvhOrder.license_windows_new_GET
public ArrayList<String> license_windows_new_GET(String ip, OvhLicenseTypeEnum serviceType, OvhWindowsSqlVersionEnum sqlVersion, OvhWindowsOsVersionEnum version) throws IOException { """ Get allowed durations for 'new' option REST: GET /order/license/windows/new @param serviceType [required] # DEPRECATED # The...
java
public ArrayList<String> license_windows_new_GET(String ip, OvhLicenseTypeEnum serviceType, OvhWindowsSqlVersionEnum sqlVersion, OvhWindowsOsVersionEnum version) throws IOException { String qPath = "/order/license/windows/new"; StringBuilder sb = path(qPath); query(sb, "ip", ip); query(sb, "serviceType", servic...
[ "public", "ArrayList", "<", "String", ">", "license_windows_new_GET", "(", "String", "ip", ",", "OvhLicenseTypeEnum", "serviceType", ",", "OvhWindowsSqlVersionEnum", "sqlVersion", ",", "OvhWindowsOsVersionEnum", "version", ")", "throws", "IOException", "{", "String", "q...
Get allowed durations for 'new' option REST: GET /order/license/windows/new @param serviceType [required] # DEPRECATED # The kind of service on which this license will be used # Will not be used, keeped only for compatibility # @param sqlVersion [required] The SQL Server version to enable on this license Windows licen...
[ "Get", "allowed", "durations", "for", "new", "option" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java#L1301-L1310
dlemmermann/PreferencesFX
preferencesfx/src/main/java/com/dlsc/preferencesfx/util/Ascii.java
Ascii.startsWithIgnoreCase
public static boolean startsWithIgnoreCase(CharSequence seq, CharSequence prefix, int fromIndex) { """ Returns if the character sequence {@code seq} starts with the character sequence {@code prefix} starting at {@code fromIndex}, ignoring the case of any ASCII alphabetic characters between {@code 'a'} and {@code...
java
public static boolean startsWithIgnoreCase(CharSequence seq, CharSequence prefix, int fromIndex) { int seqOffset = fromIndex; int prefixOffset = 0; int prefixCounter = prefix.length(); // Note: fromIndex might be near -1>>>1. if ((fromIndex < 0) || (fromIndex > seq.length() - prefixCounter)) { ...
[ "public", "static", "boolean", "startsWithIgnoreCase", "(", "CharSequence", "seq", ",", "CharSequence", "prefix", ",", "int", "fromIndex", ")", "{", "int", "seqOffset", "=", "fromIndex", ";", "int", "prefixOffset", "=", "0", ";", "int", "prefixCounter", "=", "...
Returns if the character sequence {@code seq} starts with the character sequence {@code prefix} starting at {@code fromIndex}, ignoring the case of any ASCII alphabetic characters between {@code 'a'} and {@code 'z'} or {@code 'A'} and {@code 'Z'} inclusive. @since NEXT
[ "Returns", "if", "the", "character", "sequence", "{", "@code", "seq", "}", "starts", "with", "the", "character", "sequence", "{", "@code", "prefix", "}", "starting", "at", "{", "@code", "fromIndex", "}", "ignoring", "the", "case", "of", "any", "ASCII", "al...
train
https://github.com/dlemmermann/PreferencesFX/blob/e06a49663ec949c2f7eb56e6b5952c030ed42d33/preferencesfx/src/main/java/com/dlsc/preferencesfx/util/Ascii.java#L154-L175
ahome-it/lienzo-core
src/main/java/com/ait/lienzo/client/widget/DragContext.java
DragContext.dragUpdate
public void dragUpdate(final INodeXYEvent event) { """ Updates the context for the specified Drag Move event. Used internally. @param event Drag Move event """ m_evtx = event.getX(); m_evty = event.getY(); m_dstx = m_evtx - m_begx; m_dsty = m_evty - m_begy; final...
java
public void dragUpdate(final INodeXYEvent event) { m_evtx = event.getX(); m_evty = event.getY(); m_dstx = m_evtx - m_begx; m_dsty = m_evty - m_begy; final Point2D p2 = new Point2D(0, 0); m_gtol.transform(new Point2D(m_dstx, m_dsty), p2); m_lclp.setX(p2.g...
[ "public", "void", "dragUpdate", "(", "final", "INodeXYEvent", "event", ")", "{", "m_evtx", "=", "event", ".", "getX", "(", ")", ";", "m_evty", "=", "event", ".", "getY", "(", ")", ";", "m_dstx", "=", "m_evtx", "-", "m_begx", ";", "m_dsty", "=", "m_ev...
Updates the context for the specified Drag Move event. Used internally. @param event Drag Move event
[ "Updates", "the", "context", "for", "the", "specified", "Drag", "Move", "event", ".", "Used", "internally", "." ]
train
https://github.com/ahome-it/lienzo-core/blob/8e03723700dec366f77064d12fb8676d8cd6be99/src/main/java/com/ait/lienzo/client/widget/DragContext.java#L177-L202
googolmo/OkVolley
okvolley/src/main/java/im/amomo/volley/OkRequest.java
OkRequest.writePartHeader
protected OkRequest<T> writePartHeader(final String name, final String filename) throws IOException { """ Write part header @param name @param filename @return this request @throws java.io.IOException """ return writePartHeader(name, filename, null); }
java
protected OkRequest<T> writePartHeader(final String name, final String filename) throws IOException { return writePartHeader(name, filename, null); }
[ "protected", "OkRequest", "<", "T", ">", "writePartHeader", "(", "final", "String", "name", ",", "final", "String", "filename", ")", "throws", "IOException", "{", "return", "writePartHeader", "(", "name", ",", "filename", ",", "null", ")", ";", "}" ]
Write part header @param name @param filename @return this request @throws java.io.IOException
[ "Write", "part", "header" ]
train
https://github.com/googolmo/OkVolley/blob/5c41df7cf1a8156c85e179a3c4af8a1c1485ffec/okvolley/src/main/java/im/amomo/volley/OkRequest.java#L206-L209
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/utils/coverage/CoverageUtilities.java
CoverageUtilities.createSubCoverageFromTemplate
public static GridCoverage2D createSubCoverageFromTemplate( GridCoverage2D template, Envelope2D subregion, Double value, WritableRaster[] writableRasterHolder ) { """ Create a subcoverage given a template coverage and an envelope. @param template the template coverage used for the resolution. @para...
java
public static GridCoverage2D createSubCoverageFromTemplate( GridCoverage2D template, Envelope2D subregion, Double value, WritableRaster[] writableRasterHolder ) { RegionMap regionMap = getRegionParamsFromGridCoverage(template); double xRes = regionMap.getXres(); double yRes = regionM...
[ "public", "static", "GridCoverage2D", "createSubCoverageFromTemplate", "(", "GridCoverage2D", "template", ",", "Envelope2D", "subregion", ",", "Double", "value", ",", "WritableRaster", "[", "]", "writableRasterHolder", ")", "{", "RegionMap", "regionMap", "=", "getRegion...
Create a subcoverage given a template coverage and an envelope. @param template the template coverage used for the resolution. @param subregion the envelope to extract to the new coverage. This should be snapped on the resolution of the coverage, in order to avoid shifts. @param value the value to set the new raster t...
[ "Create", "a", "subcoverage", "given", "a", "template", "coverage", "and", "an", "envelope", "." ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/utils/coverage/CoverageUtilities.java#L344-L376
http-builder-ng/http-builder-ng
http-builder-ng-core/src/main/java/groovyx/net/http/optional/Download.java
Download.toStream
public static void toStream(final HttpConfig config, final OutputStream ostream) { """ Downloads the content into an `OutputStream`. @param config the `HttpConfig` instance @param ostream the `OutputStream` to contain the content. """ toStream(config, ContentTypes.ANY.getAt(0), ostream); }
java
public static void toStream(final HttpConfig config, final OutputStream ostream) { toStream(config, ContentTypes.ANY.getAt(0), ostream); }
[ "public", "static", "void", "toStream", "(", "final", "HttpConfig", "config", ",", "final", "OutputStream", "ostream", ")", "{", "toStream", "(", "config", ",", "ContentTypes", ".", "ANY", ".", "getAt", "(", "0", ")", ",", "ostream", ")", ";", "}" ]
Downloads the content into an `OutputStream`. @param config the `HttpConfig` instance @param ostream the `OutputStream` to contain the content.
[ "Downloads", "the", "content", "into", "an", "OutputStream", "." ]
train
https://github.com/http-builder-ng/http-builder-ng/blob/865f37732c102c748d3db8b905199dac9222a525/http-builder-ng-core/src/main/java/groovyx/net/http/optional/Download.java#L103-L105
lucee/Lucee
core/src/main/java/lucee/commons/io/IOUtil.java
IOUtil.getMimeType
public static String getMimeType(InputStream is, String defaultValue) { """ return the mime type of a file, dont check extension @param barr @param defaultValue @return mime type of the file """ try { return getMimeType(IOUtil.toBytesMax(is, 1000), defaultValue); } catch (IOException e) { ret...
java
public static String getMimeType(InputStream is, String defaultValue) { try { return getMimeType(IOUtil.toBytesMax(is, 1000), defaultValue); } catch (IOException e) { return defaultValue; } }
[ "public", "static", "String", "getMimeType", "(", "InputStream", "is", ",", "String", "defaultValue", ")", "{", "try", "{", "return", "getMimeType", "(", "IOUtil", ".", "toBytesMax", "(", "is", ",", "1000", ")", ",", "defaultValue", ")", ";", "}", "catch",...
return the mime type of a file, dont check extension @param barr @param defaultValue @return mime type of the file
[ "return", "the", "mime", "type", "of", "a", "file", "dont", "check", "extension" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/commons/io/IOUtil.java#L1040-L1047
phax/ph-schedule
ph-schedule/src/main/java/com/helger/schedule/quartz/trigger/JDK8TriggerBuilder.java
JDK8TriggerBuilder.withIdentity
@Nonnull public JDK8TriggerBuilder <T> withIdentity (final String name) { """ Use a <code>TriggerKey</code> with the given name and default group to identify the Trigger. <p> If none of the 'withIdentity' methods are set on the JDK8TriggerBuilder, then a random, unique TriggerKey will be generated. </p> ...
java
@Nonnull public JDK8TriggerBuilder <T> withIdentity (final String name) { m_aTriggerKey = new TriggerKey (name, null); return this; }
[ "@", "Nonnull", "public", "JDK8TriggerBuilder", "<", "T", ">", "withIdentity", "(", "final", "String", "name", ")", "{", "m_aTriggerKey", "=", "new", "TriggerKey", "(", "name", ",", "null", ")", ";", "return", "this", ";", "}" ]
Use a <code>TriggerKey</code> with the given name and default group to identify the Trigger. <p> If none of the 'withIdentity' methods are set on the JDK8TriggerBuilder, then a random, unique TriggerKey will be generated. </p> @param name the name element for the Trigger's TriggerKey @return the updated JDK8TriggerBui...
[ "Use", "a", "<code", ">", "TriggerKey<", "/", "code", ">", "with", "the", "given", "name", "and", "default", "group", "to", "identify", "the", "Trigger", ".", "<p", ">", "If", "none", "of", "the", "withIdentity", "methods", "are", "set", "on", "the", "...
train
https://github.com/phax/ph-schedule/blob/b000790b46a9f8d23ad44cc20591f753d07c0229/ph-schedule/src/main/java/com/helger/schedule/quartz/trigger/JDK8TriggerBuilder.java#L143-L148
js-lib-com/template.xhtml
src/main/java/js/template/xhtml/Serializer.java
Serializer.addAttribute
private static void addAttribute(Element element, Set<Attr> attributes, Object value) { """ Helper method to add an attribute to a set. @param element attribute to add owning element, for debugging, @param attributes set of attributes, @param value attribute value to add. """ Attr attr = (Attr) value; ...
java
private static void addAttribute(Element element, Set<Attr> attributes, Object value) { Attr attr = (Attr) value; if (!attributes.add(attr)) { throw new TemplateException("Invalid element |%s|. It has both static attribute |%s| and attribute operator.", element, attr.getName()); } }
[ "private", "static", "void", "addAttribute", "(", "Element", "element", ",", "Set", "<", "Attr", ">", "attributes", ",", "Object", "value", ")", "{", "Attr", "attr", "=", "(", "Attr", ")", "value", ";", "if", "(", "!", "attributes", ".", "add", "(", ...
Helper method to add an attribute to a set. @param element attribute to add owning element, for debugging, @param attributes set of attributes, @param value attribute value to add.
[ "Helper", "method", "to", "add", "an", "attribute", "to", "a", "set", "." ]
train
https://github.com/js-lib-com/template.xhtml/blob/d50cec08aca9ab9680baebe2a26a341c096564fb/src/main/java/js/template/xhtml/Serializer.java#L419-L424
elki-project/elki
elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/projection/NearestNeighborAffinityMatrixBuilder.java
NearestNeighborAffinityMatrixBuilder.computeH
protected static double computeH(DoubleArray dist_i, double[] pij_row, double mbeta) { """ Compute H (observed perplexity) for row i, and the row pij_i. @param dist_i Distances to neighbors @param pij_row Row pij[i] (output) @param mbeta {@code -1. / (2 * sigma * sigma)} @return Observed perplexity """ ...
java
protected static double computeH(DoubleArray dist_i, double[] pij_row, double mbeta) { final int len = dist_i.size(); assert (pij_row.length == len); double sumP = 0.; for(int j = 0; j < len; j++) { sumP += (pij_row[j] = FastMath.exp(dist_i.get(j) * mbeta)); } if(!(sumP > 0)) { // Al...
[ "protected", "static", "double", "computeH", "(", "DoubleArray", "dist_i", ",", "double", "[", "]", "pij_row", ",", "double", "mbeta", ")", "{", "final", "int", "len", "=", "dist_i", ".", "size", "(", ")", ";", "assert", "(", "pij_row", ".", "length", ...
Compute H (observed perplexity) for row i, and the row pij_i. @param dist_i Distances to neighbors @param pij_row Row pij[i] (output) @param mbeta {@code -1. / (2 * sigma * sigma)} @return Observed perplexity
[ "Compute", "H", "(", "observed", "perplexity", ")", "for", "row", "i", "and", "the", "row", "pij_i", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/projection/NearestNeighborAffinityMatrixBuilder.java#L258-L276
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java
LogRepositoryBaseImpl.getLogFile
protected File getLogFile(File parentLocation, long timestamp) { """ calculates repository file name. @param timestamp the time in 'millis' of the first record in the file. @return the file according to repository pattern """ if (timestamp < 0) { throw new IllegalArgumentException("time...
java
protected File getLogFile(File parentLocation, long timestamp) { if (timestamp < 0) { throw new IllegalArgumentException("timestamp cannot be negative"); } StringBuilder sb = new StringBuilder(); sb.append(timestamp).append(EXTENSION); return new File(parentLocation, ...
[ "protected", "File", "getLogFile", "(", "File", "parentLocation", ",", "long", "timestamp", ")", "{", "if", "(", "timestamp", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"timestamp cannot be negative\"", ")", ";", "}", "StringBuilder", ...
calculates repository file name. @param timestamp the time in 'millis' of the first record in the file. @return the file according to repository pattern
[ "calculates", "repository", "file", "name", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L274-L281
symphonyoss/messageml-utils
src/main/java/org/symphonyoss/symphony/entityjson/EntityJsonParser.java
EntityJsonParser.parseEntityJson
public EntityJson parseEntityJson(Object instanceSource, Reader instanceReader) throws SchemaValidationException, InvalidInstanceException { """ Parse an EntityJSON instance from the given URL. Callers may prefer to catch EntityJSONException and treat all failures in the same way. @param instanceSource An o...
java
public EntityJson parseEntityJson(Object instanceSource, Reader instanceReader) throws SchemaValidationException, InvalidInstanceException { try { return new EntityJson(validate(ENTITY_JSON_SCHEMA_URL, instanceSource, instanceReader)); } catch (NoSchemaException | InvalidSchemaException e) {...
[ "public", "EntityJson", "parseEntityJson", "(", "Object", "instanceSource", ",", "Reader", "instanceReader", ")", "throws", "SchemaValidationException", ",", "InvalidInstanceException", "{", "try", "{", "return", "new", "EntityJson", "(", "validate", "(", "ENTITY_JSON_S...
Parse an EntityJSON instance from the given URL. Callers may prefer to catch EntityJSONException and treat all failures in the same way. @param instanceSource An object describing the source of the instance, typically an instance of java.net.URL or java.io.File. @param instanceReader A Reader containing the JSON re...
[ "Parse", "an", "EntityJSON", "instance", "from", "the", "given", "URL", "." ]
train
https://github.com/symphonyoss/messageml-utils/blob/68daed66267062d144a05b3ee9a9bf4b715e3f95/src/main/java/org/symphonyoss/symphony/entityjson/EntityJsonParser.java#L135-L146
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroupbindings.java
servicegroupbindings.get
public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception { """ Use this API to fetch servicegroupbindings resource of given name . """ servicegroupbindings obj = new servicegroupbindings(); obj.set_servicegroupname(servicegroupname); servicegroupbindings res...
java
public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception{ servicegroupbindings obj = new servicegroupbindings(); obj.set_servicegroupname(servicegroupname); servicegroupbindings response = (servicegroupbindings) obj.get_resource(service); return response; }
[ "public", "static", "servicegroupbindings", "get", "(", "nitro_service", "service", ",", "String", "servicegroupname", ")", "throws", "Exception", "{", "servicegroupbindings", "obj", "=", "new", "servicegroupbindings", "(", ")", ";", "obj", ".", "set_servicegroupname"...
Use this API to fetch servicegroupbindings resource of given name .
[ "Use", "this", "API", "to", "fetch", "servicegroupbindings", "resource", "of", "given", "name", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroupbindings.java#L146-L151
cdapio/tigon
tigon-queue/src/main/java/co/cask/tigon/data/transaction/queue/AbstractQueueConsumer.java
AbstractQueueConsumer.getEntries
private boolean getEntries(SortedMap<byte[], SimpleQueueEntry> entries, int maxBatchSize) throws IOException { """ Try to dequeue (claim) entries up to a maximum size. @param entries For claimed entries to fill in. @param maxBatchSize Maximum number of entries to claim. @return The entries instance. @throws ja...
java
private boolean getEntries(SortedMap<byte[], SimpleQueueEntry> entries, int maxBatchSize) throws IOException { boolean hasEntry = fetchFromCache(entries, maxBatchSize); // If not enough entries from the cache, try to get more. // ANDREAS: I think this is wrong. If the batch=10, and the cache has 5 entries,...
[ "private", "boolean", "getEntries", "(", "SortedMap", "<", "byte", "[", "]", ",", "SimpleQueueEntry", ">", "entries", ",", "int", "maxBatchSize", ")", "throws", "IOException", "{", "boolean", "hasEntry", "=", "fetchFromCache", "(", "entries", ",", "maxBatchSize"...
Try to dequeue (claim) entries up to a maximum size. @param entries For claimed entries to fill in. @param maxBatchSize Maximum number of entries to claim. @return The entries instance. @throws java.io.IOException
[ "Try", "to", "dequeue", "(", "claim", ")", "entries", "up", "to", "a", "maximum", "size", "." ]
train
https://github.com/cdapio/tigon/blob/5be6dffd7c79519d1211bb08f75be7dcfbbad392/tigon-queue/src/main/java/co/cask/tigon/data/transaction/queue/AbstractQueueConsumer.java#L233-L248
pravega/pravega
segmentstore/server/src/main/java/io/pravega/segmentstore/server/tables/ContainerKeyCache.java
ContainerKeyCache.includeUpdateBatch
List<Long> includeUpdateBatch(long segmentId, TableKeyBatch batch, long batchOffset) { """ Updates the tail cache for the given Table Segment with the contents of the given {@link TableKeyBatch}. Each {@link TableKeyBatch.Item} is updated only if no previous entry exists with its {@link TableKeyBatch.Item#getHash...
java
List<Long> includeUpdateBatch(long segmentId, TableKeyBatch batch, long batchOffset) { SegmentKeyCache cache; int generation; synchronized (this.segmentCaches) { generation = this.currentCacheGeneration; cache = this.segmentCaches.computeIfAbsent(segmentId, s -> new Segme...
[ "List", "<", "Long", ">", "includeUpdateBatch", "(", "long", "segmentId", ",", "TableKeyBatch", "batch", ",", "long", "batchOffset", ")", "{", "SegmentKeyCache", "cache", ";", "int", "generation", ";", "synchronized", "(", "this", ".", "segmentCaches", ")", "{...
Updates the tail cache for the given Table Segment with the contents of the given {@link TableKeyBatch}. Each {@link TableKeyBatch.Item} is updated only if no previous entry exists with its {@link TableKeyBatch.Item#getHash()} or if its {@link TableKeyBatch.Item#getOffset()} is greater than the existing entry's offset....
[ "Updates", "the", "tail", "cache", "for", "the", "given", "Table", "Segment", "with", "the", "contents", "of", "the", "given", "{", "@link", "TableKeyBatch", "}", ".", "Each", "{", "@link", "TableKeyBatch", ".", "Item", "}", "is", "updated", "only", "if", ...
train
https://github.com/pravega/pravega/blob/6e24df7470669b3956a07018f52b2c6b3c2a3503/segmentstore/server/src/main/java/io/pravega/segmentstore/server/tables/ContainerKeyCache.java#L129-L138
canoo/dolphin-platform
platform/dolphin-platform-remoting-server/src/main/java/com/canoo/dp/impl/server/legacy/ServerAttribute.java
ServerAttribute.firePropertyChange
@Override protected void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { """ Overriding the standard behavior of PCLs such that firing is enforced to be done verbosely. This is safe since on the server side PCLs are never used for the control of the client notifi...
java
@Override protected void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { verbosely(new Runnable() { @Override public void run() { ServerAttribute.super.firePropertyChange(propertyName, oldValue, newValue); } ...
[ "@", "Override", "protected", "void", "firePropertyChange", "(", "final", "String", "propertyName", ",", "final", "Object", "oldValue", ",", "final", "Object", "newValue", ")", "{", "verbosely", "(", "new", "Runnable", "(", ")", "{", "@", "Override", "public",...
Overriding the standard behavior of PCLs such that firing is enforced to be done verbosely. This is safe since on the server side PCLs are never used for the control of the client notification as part of the OpenDolphin infrastructure (as opposed to the java client). That is: all remaining PCLs are application specific...
[ "Overriding", "the", "standard", "behavior", "of", "PCLs", "such", "that", "firing", "is", "enforced", "to", "be", "done", "verbosely", ".", "This", "is", "safe", "since", "on", "the", "server", "side", "PCLs", "are", "never", "used", "for", "the", "contro...
train
https://github.com/canoo/dolphin-platform/blob/fb99c1fab24df80d2fa094d8688b546140146874/platform/dolphin-platform-remoting-server/src/main/java/com/canoo/dp/impl/server/legacy/ServerAttribute.java#L125-L134
groupon/odo
client/src/main/java/com/groupon/odo/client/Client.java
Client.setCustomRequestForDefaultClient
public static boolean setCustomRequestForDefaultClient(String profileName, String pathName, String customData) { """ set custom request for profile's default client @param profileName profileName to modify @param pathName friendly name of path @param customData custom request data @return true if success, fa...
java
public static boolean setCustomRequestForDefaultClient(String profileName, String pathName, String customData) { try { return setCustomForDefaultClient(profileName, pathName, false, customData); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "public", "static", "boolean", "setCustomRequestForDefaultClient", "(", "String", "profileName", ",", "String", "pathName", ",", "String", "customData", ")", "{", "try", "{", "return", "setCustomForDefaultClient", "(", "profileName", ",", "pathName", ",", "false", "...
set custom request for profile's default client @param profileName profileName to modify @param pathName friendly name of path @param customData custom request data @return true if success, false otherwise
[ "set", "custom", "request", "for", "profile", "s", "default", "client" ]
train
https://github.com/groupon/odo/blob/3bae43d5eca8ace036775e5b2d3ed9af1a9ff9b1/client/src/main/java/com/groupon/odo/client/Client.java#L818-L825
alkacon/opencms-core
src/org/opencms/file/CmsObject.java
CmsObject.readSiblingsForResourceId
public List<CmsResource> readSiblingsForResourceId(CmsUUID resourceId, CmsResourceFilter filter) throws CmsException { """ Reads all resources with the given resource id.<p> @param resourceId the resource id for which we want the siblings @param filter the resource filter used to read the resources @retur...
java
public List<CmsResource> readSiblingsForResourceId(CmsUUID resourceId, CmsResourceFilter filter) throws CmsException { CmsResource pseudoResource = new CmsResource( null, resourceId, null, 0, false, 0, null, nul...
[ "public", "List", "<", "CmsResource", ">", "readSiblingsForResourceId", "(", "CmsUUID", "resourceId", ",", "CmsResourceFilter", "filter", ")", "throws", "CmsException", "{", "CmsResource", "pseudoResource", "=", "new", "CmsResource", "(", "null", ",", "resourceId", ...
Reads all resources with the given resource id.<p> @param resourceId the resource id for which we want the siblings @param filter the resource filter used to read the resources @return the siblings which share the given resource id @throws CmsException if something goes wrong
[ "Reads", "all", "resources", "with", "the", "given", "resource", "id", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/file/CmsObject.java#L3450-L3473
zaproxy/zaproxy
src/org/zaproxy/zap/view/ContextStructurePanel.java
ContextStructurePanel.saveToContext
private void saveToContext(Context context, boolean updateSiteStructure) { """ Save the data from this panel to the provided context. @param context the context @param updateSiteStructure {@code true} if the nodes of the context should be restructured, {@code false} otherwise @see Context#restructureSiteTree(...
java
private void saveToContext(Context context, boolean updateSiteStructure) { ParameterParser urlParamParser = context.getUrlParamParser(); ParameterParser formParamParser = context.getPostParamParser(); List<String> structParams = new ArrayList<String>(); List<StructuralNodeModifier> ddns = new ArrayList<Stru...
[ "private", "void", "saveToContext", "(", "Context", "context", ",", "boolean", "updateSiteStructure", ")", "{", "ParameterParser", "urlParamParser", "=", "context", ".", "getUrlParamParser", "(", ")", ";", "ParameterParser", "formParamParser", "=", "context", ".", "...
Save the data from this panel to the provided context. @param context the context @param updateSiteStructure {@code true} if the nodes of the context should be restructured, {@code false} otherwise @see Context#restructureSiteTree()
[ "Save", "the", "data", "from", "this", "panel", "to", "the", "provided", "context", "." ]
train
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/view/ContextStructurePanel.java#L226-L263
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.findOrCreateChild
public Node findOrCreateChild( Node parent, String name, String nodeType ) throws RepositoryException { """ Get or create a node with the specified node and node type under the specified parent node. @param parent the parent node. may not be ...
java
public Node findOrCreateChild( Node parent, String name, String nodeType ) throws RepositoryException { return findOrCreateNode(parent, name, nodeType, nodeType); }
[ "public", "Node", "findOrCreateChild", "(", "Node", "parent", ",", "String", "name", ",", "String", "nodeType", ")", "throws", "RepositoryException", "{", "return", "findOrCreateNode", "(", "parent", ",", "name", ",", "nodeType", ",", "nodeType", ")", ";", "}"...
Get or create a node with the specified node and node type under the specified parent node. @param parent the parent node. may not be null @param name the name of the child node. may not be null @param nodeType the node type. may be null @return the existing or newly created child node @throws RepositoryException
[ "Get", "or", "create", "a", "node", "with", "the", "specified", "node", "and", "node", "type", "under", "the", "specified", "parent", "node", "." ]
train
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L474-L478
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/gui/MouseOverArea.java
MouseOverArea.setLocation
public void setLocation(float x, float y) { """ Moves the component. @param x X coordinate @param y Y coordinate """ if (area != null) { area.setX(x); area.setY(y); } }
java
public void setLocation(float x, float y) { if (area != null) { area.setX(x); area.setY(y); } }
[ "public", "void", "setLocation", "(", "float", "x", ",", "float", "y", ")", "{", "if", "(", "area", "!=", "null", ")", "{", "area", ".", "setX", "(", "x", ")", ";", "area", ".", "setY", "(", "y", ")", ";", "}", "}" ]
Moves the component. @param x X coordinate @param y Y coordinate
[ "Moves", "the", "component", "." ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/gui/MouseOverArea.java#L185-L190
linkedin/PalDB
paldb/src/main/java/com/linkedin/paldb/impl/Serializers.java
Serializers.getSerializer
Serializer getSerializer(int index) { """ Returns the serializer given the index. @param index serializer index @return serializer """ if (index >= serializersArray.length) { throw new IllegalArgumentException(String.format("The serializer can't be found at index %d", index)); } return se...
java
Serializer getSerializer(int index) { if (index >= serializersArray.length) { throw new IllegalArgumentException(String.format("The serializer can't be found at index %d", index)); } return serializersArray[index]; }
[ "Serializer", "getSerializer", "(", "int", "index", ")", "{", "if", "(", "index", ">=", "serializersArray", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", "String", ".", "format", "(", "\"The serializer can't be found at index %d\"", ",", ...
Returns the serializer given the index. @param index serializer index @return serializer
[ "Returns", "the", "serializer", "given", "the", "index", "." ]
train
https://github.com/linkedin/PalDB/blob/d05ccdd3f67855eb2675dbd82599f19aa7a9f650/paldb/src/main/java/com/linkedin/paldb/impl/Serializers.java#L237-L242
netscaler/sdx_nitro
src/main/java/com/citrix/sdx/nitro/resource/config/xen/xen_health_monitor_temp.java
xen_health_monitor_temp.get_nitro_bulk_response
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { """ <pre> Converts API response of bulk operation into object and returns the object array in case of get request. </pre> """ xen_health_monitor_temp_responses result = (xen_health_monitor_temp_res...
java
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { xen_health_monitor_temp_responses result = (xen_health_monitor_temp_responses) service.get_payload_formatter().string_to_resource(xen_health_monitor_temp_responses.class, response); if(result.errorcode !...
[ "protected", "base_resource", "[", "]", "get_nitro_bulk_response", "(", "nitro_service", "service", ",", "String", "response", ")", "throws", "Exception", "{", "xen_health_monitor_temp_responses", "result", "=", "(", "xen_health_monitor_temp_responses", ")", "service", "....
<pre> Converts API response of bulk operation into object and returns the object array in case of get request. </pre>
[ "<pre", ">", "Converts", "API", "response", "of", "bulk", "operation", "into", "object", "and", "returns", "the", "object", "array", "in", "case", "of", "get", "request", ".", "<", "/", "pre", ">" ]
train
https://github.com/netscaler/sdx_nitro/blob/c840919f1a8f7c0a5634c0f23d34fa14d1765ff1/src/main/java/com/citrix/sdx/nitro/resource/config/xen/xen_health_monitor_temp.java#L173-L190
soi-toolkit/soi-toolkit-mule
tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/cli/util/OptionSet.java
OptionSet.addOption
OptionSet addOption(String key, boolean details, Options.Separator separator, boolean value, Options.Multiplicity multiplicity) { """ The master method to add an option. Since there are combinations which are not acceptabl...
java
OptionSet addOption(String key, boolean details, Options.Separator separator, boolean value, Options.Multiplicity multiplicity) { if (key == null) throw new IllegalArgumentException(CLASS + ": key may not be null"); if ...
[ "OptionSet", "addOption", "(", "String", "key", ",", "boolean", "details", ",", "Options", ".", "Separator", "separator", ",", "boolean", "value", ",", "Options", ".", "Multiplicity", "multiplicity", ")", "{", "if", "(", "key", "==", "null", ")", "throw", ...
The master method to add an option. Since there are combinations which are not acceptable (like a NONE separator and a true value), this method is not public. Internally, we only supply acceptable combinations.
[ "The", "master", "method", "to", "add", "an", "option", ".", "Since", "there", "are", "combinations", "which", "are", "not", "acceptable", "(", "like", "a", "NONE", "separator", "and", "a", "true", "value", ")", "this", "method", "is", "not", "public", "...
train
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/cli/util/OptionSet.java#L271-L289
Azure/azure-sdk-for-java
cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java
ModelsImpl.patchClosedListWithServiceResponseAsync
public Observable<ServiceResponse<OperationStatus>> patchClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, PatchClosedListOptionalParameter patchClosedListOptionalParameter) { """ Adds a batch of sublists to an existing closedlist. @param appId The application ID. @param version...
java
public Observable<ServiceResponse<OperationStatus>> patchClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, PatchClosedListOptionalParameter patchClosedListOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.cli...
[ "public", "Observable", "<", "ServiceResponse", "<", "OperationStatus", ">", ">", "patchClosedListWithServiceResponseAsync", "(", "UUID", "appId", ",", "String", "versionId", ",", "UUID", "clEntityId", ",", "PatchClosedListOptionalParameter", "patchClosedListOptionalParameter...
Adds a batch of sublists to an existing closedlist. @param appId The application ID. @param versionId The version ID. @param clEntityId The closed list model ID. @param patchClosedListOptionalParameter the object representing the optional parameters to be set before calling this API @throws IllegalArgumentException th...
[ "Adds", "a", "batch", "of", "sublists", "to", "an", "existing", "closedlist", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java#L4458-L4474
Azure/azure-sdk-for-java
network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsInner.java
ExpressRouteCircuitAuthorizationsInner.beginCreateOrUpdate
public ExpressRouteCircuitAuthorizationInner beginCreateOrUpdate(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters) { """ Creates or updates an authorization in the specified express route circuit. @param resourceGroupName The n...
java
public ExpressRouteCircuitAuthorizationInner beginCreateOrUpdate(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, circuitName, authorizationName, authoriz...
[ "public", "ExpressRouteCircuitAuthorizationInner", "beginCreateOrUpdate", "(", "String", "resourceGroupName", ",", "String", "circuitName", ",", "String", "authorizationName", ",", "ExpressRouteCircuitAuthorizationInner", "authorizationParameters", ")", "{", "return", "beginCreat...
Creates or updates an authorization in the specified express route circuit. @param resourceGroupName The name of the resource group. @param circuitName The name of the express route circuit. @param authorizationName The name of the authorization. @param authorizationParameters Parameters supplied to the create or upda...
[ "Creates", "or", "updates", "an", "authorization", "in", "the", "specified", "express", "route", "circuit", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsInner.java#L444-L446
querydsl/querydsl
querydsl-sql/src/main/java/com/querydsl/sql/ColumnMetadata.java
ColumnMetadata.named
public static ColumnMetadata named(String name) { """ Creates default column meta data with the given column name, but without any type or constraint information. Use the fluent builder methods to further configure it. @throws NullPointerException if the name is null """ return new ColumnMetadata...
java
public static ColumnMetadata named(String name) { return new ColumnMetadata(null, name, null, true, UNDEFINED, UNDEFINED); }
[ "public", "static", "ColumnMetadata", "named", "(", "String", "name", ")", "{", "return", "new", "ColumnMetadata", "(", "null", ",", "name", ",", "null", ",", "true", ",", "UNDEFINED", ",", "UNDEFINED", ")", ";", "}" ]
Creates default column meta data with the given column name, but without any type or constraint information. Use the fluent builder methods to further configure it. @throws NullPointerException if the name is null
[ "Creates", "default", "column", "meta", "data", "with", "the", "given", "column", "name", "but", "without", "any", "type", "or", "constraint", "information", ".", "Use", "the", "fluent", "builder", "methods", "to", "further", "configure", "it", "." ]
train
https://github.com/querydsl/querydsl/blob/2bf234caf78549813a1e0f44d9c30ecc5ef734e3/querydsl-sql/src/main/java/com/querydsl/sql/ColumnMetadata.java#L69-L71
dfoerderreuther/console-builder
console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java
AskBuilder.answer
public <T> T answer(Function<String, T> function, final String validationErrorMessage) { """ Return user input as T @param function {@link Function} or {@link de.eleon.console.builder.functional.Transformer} for value conversion @param validationErrorMessage error message if function conversion fails @param <...
java
public <T> T answer(Function<String, T> function, final String validationErrorMessage) { validateWith(functionValidator(function, validationErrorMessage)); return function.apply(answer()); }
[ "public", "<", "T", ">", "T", "answer", "(", "Function", "<", "String", ",", "T", ">", "function", ",", "final", "String", "validationErrorMessage", ")", "{", "validateWith", "(", "functionValidator", "(", "function", ",", "validationErrorMessage", ")", ")", ...
Return user input as T @param function {@link Function} or {@link de.eleon.console.builder.functional.Transformer} for value conversion @param validationErrorMessage error message if function conversion fails @param <T> the return type @return user input as T
[ "Return", "user", "input", "as", "T" ]
train
https://github.com/dfoerderreuther/console-builder/blob/814bee4a1a812a3a39a9b239e5eccb525b944e65/console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java#L135-L138
greenmail-mail-test/greenmail
greenmail-core/src/main/java/com/icegreen/greenmail/store/SimpleMessageAttributes.java
SimpleMessageAttributes.getSentDate
private static Date getSentDate(MimeMessage msg, Date defaultVal) { """ Compute "sent" date @param msg Message to take sent date from. May be null to use default @param defaultVal Default if sent date is not present @return Sent date or now if no date could be found """ if (msg == null) { ...
java
private static Date getSentDate(MimeMessage msg, Date defaultVal) { if (msg == null) { return defaultVal; } try { Date sentDate = msg.getSentDate(); if (sentDate == null) { return defaultVal; } else { return...
[ "private", "static", "Date", "getSentDate", "(", "MimeMessage", "msg", ",", "Date", "defaultVal", ")", "{", "if", "(", "msg", "==", "null", ")", "{", "return", "defaultVal", ";", "}", "try", "{", "Date", "sentDate", "=", "msg", ".", "getSentDate", "(", ...
Compute "sent" date @param msg Message to take sent date from. May be null to use default @param defaultVal Default if sent date is not present @return Sent date or now if no date could be found
[ "Compute", "sent", "date" ]
train
https://github.com/greenmail-mail-test/greenmail/blob/6d19a62233d1ef6fedbbd1f6fdde2d28e713834a/greenmail-core/src/main/java/com/icegreen/greenmail/store/SimpleMessageAttributes.java#L102-L116
deeplearning4j/deeplearning4j
datavec/datavec-spark/src/main/java/org/datavec/spark/transform/DataFrames.java
DataFrames.var
public static Column var(DataRowsFacade dataFrame, String columnName) { """ Standard deviation for a column @param dataFrame the dataframe to get the column from @param columnName the name of the column to get the standard deviation for @return the column that represents the standard deviation """ ...
java
public static Column var(DataRowsFacade dataFrame, String columnName) { return dataFrame.get().groupBy(columnName).agg(functions.variance(columnName)).col(columnName); }
[ "public", "static", "Column", "var", "(", "DataRowsFacade", "dataFrame", ",", "String", "columnName", ")", "{", "return", "dataFrame", ".", "get", "(", ")", ".", "groupBy", "(", "columnName", ")", ".", "agg", "(", "functions", ".", "variance", "(", "column...
Standard deviation for a column @param dataFrame the dataframe to get the column from @param columnName the name of the column to get the standard deviation for @return the column that represents the standard deviation
[ "Standard", "deviation", "for", "a", "column" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/datavec/datavec-spark/src/main/java/org/datavec/spark/transform/DataFrames.java#L88-L90
jcuda/jcufft
JCufftJava/src/main/java/jcuda/jcufft/JCufft.java
JCufft.cufftPlan2d
public static int cufftPlan2d(cufftHandle plan, int nx, int ny, int type) { """ <pre> Creates a 2D FFT plan configuration according to specified signal sizes and data type. cufftResult cufftPlan2d( cufftHandle *plan, int nx, int ny, cufftType type ); This function is the same as cufftPlan1d() except that ...
java
public static int cufftPlan2d(cufftHandle plan, int nx, int ny, int type) { plan.setDimension(2); plan.setType(type); plan.setSize(nx, ny, 0); return checkResult(cufftPlan2dNative(plan, nx, ny, type)); }
[ "public", "static", "int", "cufftPlan2d", "(", "cufftHandle", "plan", ",", "int", "nx", ",", "int", "ny", ",", "int", "type", ")", "{", "plan", ".", "setDimension", "(", "2", ")", ";", "plan", ".", "setType", "(", "type", ")", ";", "plan", ".", "se...
<pre> Creates a 2D FFT plan configuration according to specified signal sizes and data type. cufftResult cufftPlan2d( cufftHandle *plan, int nx, int ny, cufftType type ); This function is the same as cufftPlan1d() except that it takes a second size parameter, ny, and does not support batching. Input ---- plan Pointe...
[ "<pre", ">", "Creates", "a", "2D", "FFT", "plan", "configuration", "according", "to", "specified", "signal", "sizes", "and", "data", "type", "." ]
train
https://github.com/jcuda/jcufft/blob/833c87ffb0864f7ee7270fddef8af57f48939b3a/JCufftJava/src/main/java/jcuda/jcufft/JCufft.java#L253-L259
eclipse/xtext-lib
org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/IntegerExtensions.java
IntegerExtensions.bitwiseAnd
@Pure @Inline(value="($1 & $2)", constantExpression=true) public static int bitwiseAnd(int a, int b) { """ The bitwise <code>and</code> operation. This is the equivalent to the java <code>&</code> operator. @param a an integer. @param b an integer. @return <code>a&b</code> """ return a & b; }
java
@Pure @Inline(value="($1 & $2)", constantExpression=true) public static int bitwiseAnd(int a, int b) { return a & b; }
[ "@", "Pure", "@", "Inline", "(", "value", "=", "\"($1 & $2)\"", ",", "constantExpression", "=", "true", ")", "public", "static", "int", "bitwiseAnd", "(", "int", "a", ",", "int", "b", ")", "{", "return", "a", "&", "b", ";", "}" ]
The bitwise <code>and</code> operation. This is the equivalent to the java <code>&</code> operator. @param a an integer. @param b an integer. @return <code>a&b</code>
[ "The", "bitwise", "<code", ">", "and<", "/", "code", ">", "operation", ".", "This", "is", "the", "equivalent", "to", "the", "java", "<code", ">", "&<", "/", "code", ">", "operator", "." ]
train
https://github.com/eclipse/xtext-lib/blob/7063572e1f1bd713a3aa53bdf3a8dc60e25c169a/org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/IntegerExtensions.java#L106-L110
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/field/FloatField.java
FloatField.moveSQLToField
public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { """ Move the physical binary data to this SQL parameter row. @param resultset The resultset to get the SQL data from. @param iColumn the column in the resultset that has my data. @exception SQLException From SQL calls. """ ...
java
public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { float fResult = resultset.getFloat(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else { if ((!this.isNullable(...
[ "public", "void", "moveSQLToField", "(", "ResultSet", "resultset", ",", "int", "iColumn", ")", "throws", "SQLException", "{", "float", "fResult", "=", "resultset", ".", "getFloat", "(", "iColumn", ")", ";", "if", "(", "resultset", ".", "wasNull", "(", ")", ...
Move the physical binary data to this SQL parameter row. @param resultset The resultset to get the SQL data from. @param iColumn the column in the resultset that has my data. @exception SQLException From SQL calls.
[ "Move", "the", "physical", "binary", "data", "to", "this", "SQL", "parameter", "row", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/FloatField.java#L170-L182
livetribe/livetribe-slp
core/src/main/java/org/livetribe/slp/spi/msg/BytesBlock.java
BytesBlock.writeInt
protected static void writeInt(int value, byte[] bytes, int offset, int length) { """ Writes an integer value to <code>bytes</code> in network byte order @param value The integer value to write @param bytes The bytes where the integer value is written to @param offset The offset in <code>bytes</code>from wh...
java
protected static void writeInt(int value, byte[] bytes, int offset, int length) { for (int i = length - 1; i >= 0; --i) { bytes[offset + i] = (byte)(value & 0xFF); value >>= 8; } }
[ "protected", "static", "void", "writeInt", "(", "int", "value", ",", "byte", "[", "]", "bytes", ",", "int", "offset", ",", "int", "length", ")", "{", "for", "(", "int", "i", "=", "length", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "{"...
Writes an integer value to <code>bytes</code> in network byte order @param value The integer value to write @param bytes The bytes where the integer value is written to @param offset The offset in <code>bytes</code>from where to start writing the integer @param length The number of bytes to write
[ "Writes", "an", "integer", "value", "to", "<code", ">", "bytes<", "/", "code", ">", "in", "network", "byte", "order" ]
train
https://github.com/livetribe/livetribe-slp/blob/6cc13dbe81feab133fe3dd291ca081cbc6e1f591/core/src/main/java/org/livetribe/slp/spi/msg/BytesBlock.java#L80-L87
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/workspace/VoiceApi.java
VoiceApi.dndOff
public void dndOff() throws WorkspaceApiException { """ Turn off Do Not Disturb for the current agent on the voice channel. """ try { ApiSuccessResponse response = this.voiceApi.setDNDOff(null); throwIfNotOk("dndOff", response); } catch (ApiException e) { ...
java
public void dndOff() throws WorkspaceApiException { try { ApiSuccessResponse response = this.voiceApi.setDNDOff(null); throwIfNotOk("dndOff", response); } catch (ApiException e) { throw new WorkspaceApiException("dndOff failed.", e); } }
[ "public", "void", "dndOff", "(", ")", "throws", "WorkspaceApiException", "{", "try", "{", "ApiSuccessResponse", "response", "=", "this", ".", "voiceApi", ".", "setDNDOff", "(", "null", ")", ";", "throwIfNotOk", "(", "\"dndOff\"", ",", "response", ")", ";", "...
Turn off Do Not Disturb for the current agent on the voice channel.
[ "Turn", "off", "Do", "Not", "Disturb", "for", "the", "current", "agent", "on", "the", "voice", "channel", "." ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/workspace/VoiceApi.java#L401-L408
landawn/AbacusUtil
src/com/landawn/abacus/util/N.java
N.copy
@SuppressWarnings( { """ Returns a new created instance of the specified {@code cls} and set with same properties retrieved by 'getXXX' method in the specified {@code entity}. @param targetClass a Java Object what allows access to properties using getter and setter methods. @param entity a Java Object wha...
java
@SuppressWarnings({ "unchecked" }) public static <T> T copy(final Class<? extends T> targetClass, final Object entity, final Collection<String> selectPropNames) { final Class<?> srcCls = entity.getClass(); T copy = null; if (selectPropNames == null && Utils.kryoParser != null && target...
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", "}", ")", "public", "static", "<", "T", ">", "T", "copy", "(", "final", "Class", "<", "?", "extends", "T", ">", "targetClass", ",", "final", "Object", "entity", ",", "final", "Collection", "<", "String"...
Returns a new created instance of the specified {@code cls} and set with same properties retrieved by 'getXXX' method in the specified {@code entity}. @param targetClass a Java Object what allows access to properties using getter and setter methods. @param entity a Java Object what allows access to properties using ge...
[ "Returns", "a", "new", "created", "instance", "of", "the", "specified", "{", "@code", "cls", "}", "and", "set", "with", "same", "properties", "retrieved", "by", "getXXX", "method", "in", "the", "specified", "{", "@code", "entity", "}", "." ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/N.java#L4146-L4172
lessthanoptimal/BoofCV
main/boofcv-feature/src/main/java/boofcv/alg/feature/describe/DescribePointSift.java
DescribePointSift.setImageGradient
public void setImageGradient(Deriv derivX , Deriv derivY ) { """ Sets the image spacial derivatives. These should be computed from an image at the appropriate scale in scale-space. @param derivX x-derivative of input image @param derivY y-derivative of input image """ this.imageDerivX.wrap(derivX); t...
java
public void setImageGradient(Deriv derivX , Deriv derivY ) { this.imageDerivX.wrap(derivX); this.imageDerivY.wrap(derivY); }
[ "public", "void", "setImageGradient", "(", "Deriv", "derivX", ",", "Deriv", "derivY", ")", "{", "this", ".", "imageDerivX", ".", "wrap", "(", "derivX", ")", ";", "this", ".", "imageDerivY", ".", "wrap", "(", "derivY", ")", ";", "}" ]
Sets the image spacial derivatives. These should be computed from an image at the appropriate scale in scale-space. @param derivX x-derivative of input image @param derivY y-derivative of input image
[ "Sets", "the", "image", "spacial", "derivatives", ".", "These", "should", "be", "computed", "from", "an", "image", "at", "the", "appropriate", "scale", "in", "scale", "-", "space", "." ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-feature/src/main/java/boofcv/alg/feature/describe/DescribePointSift.java#L91-L94
jenkinsci/java-client-api
jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java
JenkinsServer.createJob
public JenkinsServer createJob(FolderJob folder, String jobName, String jobXml) throws IOException { """ Create a job on the server using the provided xml and in the provided folder @param folder {@link FolderJob} @param jobName name of the job to be created. @param jobXml the <code>config.xml</code> which s...
java
public JenkinsServer createJob(FolderJob folder, String jobName, String jobXml) throws IOException { return createJob(folder, jobName, jobXml, false); }
[ "public", "JenkinsServer", "createJob", "(", "FolderJob", "folder", ",", "String", "jobName", ",", "String", "jobXml", ")", "throws", "IOException", "{", "return", "createJob", "(", "folder", ",", "jobName", ",", "jobXml", ",", "false", ")", ";", "}" ]
Create a job on the server using the provided xml and in the provided folder @param folder {@link FolderJob} @param jobName name of the job to be created. @param jobXml the <code>config.xml</code> which should be used to create the job. @throws IOException in case of an error.
[ "Create", "a", "job", "on", "the", "server", "using", "the", "provided", "xml", "and", "in", "the", "provided", "folder" ]
train
https://github.com/jenkinsci/java-client-api/blob/c4f5953d3d4dda92cd946ad3bf2b811524c32da9/jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java#L372-L374
sebastiangraf/treetank
interfacemodules/jax-rx/src/main/java/org/treetank/service/jaxrx/implementation/DatabaseRepresentation.java
DatabaseRepresentation.serializIt
private void serializIt(final String resource, final Long revision, final OutputStream output, final boolean nodeid) throws JaxRxException, TTException { """ The XML serializer to a given tnk file. @param resource The resource that has to be serialized. @param revision The revision of the document. ...
java
private void serializIt(final String resource, final Long revision, final OutputStream output, final boolean nodeid) throws JaxRxException, TTException { // Connection to treetank, creating a session ISession session = null; // INodeReadTrx rtx = null; try { session =...
[ "private", "void", "serializIt", "(", "final", "String", "resource", ",", "final", "Long", "revision", ",", "final", "OutputStream", "output", ",", "final", "boolean", "nodeid", ")", "throws", "JaxRxException", ",", "TTException", "{", "// Connection to treetank, cr...
The XML serializer to a given tnk file. @param resource The resource that has to be serialized. @param revision The revision of the document. @param output The output stream where we write the XML file. @param nodeid <code>true</code> when you want the result nodes with node id's. <code>false</code> otherwise. @throws...
[ "The", "XML", "serializer", "to", "a", "given", "tnk", "file", "." ]
train
https://github.com/sebastiangraf/treetank/blob/9b96d631b6c2a8502a0cc958dcb02bd6a6fd8b60/interfacemodules/jax-rx/src/main/java/org/treetank/service/jaxrx/implementation/DatabaseRepresentation.java#L568-L597
Chorus-bdd/Chorus
interpreter/chorus-interpreter/src/main/java/org/chorusbdd/chorus/interpreter/interpreter/HandlerManager.java
HandlerManager.runLifecycleMethods
private void runLifecycleMethods(Object handler, Scope scope, Scope targetMethodScope, boolean isDestroy) throws Exception { """ Run any lifecycle methods which match the targetMethodScope (.e.g at end of SCENARIO, run SCENARIO scoped methods) """ String description = isDestroy ? "@Destroy" : "@Initial...
java
private void runLifecycleMethods(Object handler, Scope scope, Scope targetMethodScope, boolean isDestroy) throws Exception { String description = isDestroy ? "@Destroy" : "@Initialize"; log.debug("Running " + description + " methods for Handler " + handler); Class<?> handlerClass = handler.getC...
[ "private", "void", "runLifecycleMethods", "(", "Object", "handler", ",", "Scope", "scope", ",", "Scope", "targetMethodScope", ",", "boolean", "isDestroy", ")", "throws", "Exception", "{", "String", "description", "=", "isDestroy", "?", "\"@Destroy\"", ":", "\"@Ini...
Run any lifecycle methods which match the targetMethodScope (.e.g at end of SCENARIO, run SCENARIO scoped methods)
[ "Run", "any", "lifecycle", "methods", "which", "match", "the", "targetMethodScope", "(", ".", "e", ".", "g", "at", "end", "of", "SCENARIO", "run", "SCENARIO", "scoped", "methods", ")" ]
train
https://github.com/Chorus-bdd/Chorus/blob/1eea7ca858876bce821bb49b43fd5b6ba1737997/interpreter/chorus-interpreter/src/main/java/org/chorusbdd/chorus/interpreter/interpreter/HandlerManager.java#L166-L187
gallandarakhneorg/afc
advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/ifx/Rectangle2ifx.java
Rectangle2ifx.heightProperty
@Pure public IntegerProperty heightProperty() { """ Replies the property that is the height of the box. @return the height property. """ if (this.height == null) { this.height = new ReadOnlyIntegerWrapper(this, MathFXAttributeNames.HEIGHT); this.height.bind(Bindings.subtract(maxYProperty(), minYPro...
java
@Pure public IntegerProperty heightProperty() { if (this.height == null) { this.height = new ReadOnlyIntegerWrapper(this, MathFXAttributeNames.HEIGHT); this.height.bind(Bindings.subtract(maxYProperty(), minYProperty())); } return this.height; }
[ "@", "Pure", "public", "IntegerProperty", "heightProperty", "(", ")", "{", "if", "(", "this", ".", "height", "==", "null", ")", "{", "this", ".", "height", "=", "new", "ReadOnlyIntegerWrapper", "(", "this", ",", "MathFXAttributeNames", ".", "HEIGHT", ")", ...
Replies the property that is the height of the box. @return the height property.
[ "Replies", "the", "property", "that", "is", "the", "height", "of", "the", "box", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/ifx/Rectangle2ifx.java#L304-L311
google/closure-compiler
src/com/google/javascript/jscomp/TypedScopeCreator.java
TypedScopeCreator.createInitialScope
@VisibleForTesting TypedScope createInitialScope(Node root) { """ Create the outermost scope. This scope contains native binding such as {@code Object}, {@code Date}, etc. @param root The global ROOT node """ checkArgument(root.isRoot(), root); NodeTraversal.traverse( compiler, r...
java
@VisibleForTesting TypedScope createInitialScope(Node root) { checkArgument(root.isRoot(), root); NodeTraversal.traverse( compiler, root, new IdentifyGlobalEnumsAndTypedefsAsNonNullable(typeRegistry, codingConvention)); TypedScope s = TypedScope.createGlobalScope(root); decla...
[ "@", "VisibleForTesting", "TypedScope", "createInitialScope", "(", "Node", "root", ")", "{", "checkArgument", "(", "root", ".", "isRoot", "(", ")", ",", "root", ")", ";", "NodeTraversal", ".", "traverse", "(", "compiler", ",", "root", ",", "new", "IdentifyGl...
Create the outermost scope. This scope contains native binding such as {@code Object}, {@code Date}, etc. @param root The global ROOT node
[ "Create", "the", "outermost", "scope", ".", "This", "scope", "contains", "native", "binding", "such", "as", "{", "@code", "Object", "}", "{", "@code", "Date", "}", "etc", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/jscomp/TypedScopeCreator.java#L611-L637
samskivert/samskivert
src/main/java/com/samskivert/servlet/util/HTMLUtil.java
HTMLUtil.restrictHTML
public static String restrictHTML (String src, boolean allowFormatting, boolean allowImages, boolean allowLinks) { """ Restrict HTML except for the specified tags. @param allowFormatting enables &lt;i&gt;, &lt;b&gt;, &lt;u&gt;, &lt;font&gt;, &lt;br&gt;, &lt;p&gt;, and &lt;hr&gt;. @param allowImages e...
java
public static String restrictHTML (String src, boolean allowFormatting, boolean allowImages, boolean allowLinks) { // TODO: these regexes should probably be checked to make // sure that javascript can't live inside a link ArrayList<String> allow = new ArrayList<String>(); if ...
[ "public", "static", "String", "restrictHTML", "(", "String", "src", ",", "boolean", "allowFormatting", ",", "boolean", "allowImages", ",", "boolean", "allowLinks", ")", "{", "// TODO: these regexes should probably be checked to make", "// sure that javascript can't live inside ...
Restrict HTML except for the specified tags. @param allowFormatting enables &lt;i&gt;, &lt;b&gt;, &lt;u&gt;, &lt;font&gt;, &lt;br&gt;, &lt;p&gt;, and &lt;hr&gt;. @param allowImages enabled &lt;img ...&gt;. @param allowLinks enabled &lt;a href ...&gt;.
[ "Restrict", "HTML", "except", "for", "the", "specified", "tags", "." ]
train
https://github.com/samskivert/samskivert/blob/a64d9ef42b69819bdb2c66bddac6a64caef928b6/src/main/java/com/samskivert/servlet/util/HTMLUtil.java#L160-L186
carewebframework/carewebframework-core
org.carewebframework.shell/src/main/java/org/carewebframework/shell/layout/LayoutParser.java
LayoutParser.parseCondition
private void parseCondition(Element node, LayoutTrigger parent) { """ Parse a trigger condition node. @param node The DOM node. @param parent The parent layout trigger. """ new LayoutTriggerCondition(parent, getDefinition(null, node)); }
java
private void parseCondition(Element node, LayoutTrigger parent) { new LayoutTriggerCondition(parent, getDefinition(null, node)); }
[ "private", "void", "parseCondition", "(", "Element", "node", ",", "LayoutTrigger", "parent", ")", "{", "new", "LayoutTriggerCondition", "(", "parent", ",", "getDefinition", "(", "null", ",", "node", ")", ")", ";", "}" ]
Parse a trigger condition node. @param node The DOM node. @param parent The parent layout trigger.
[ "Parse", "a", "trigger", "condition", "node", "." ]
train
https://github.com/carewebframework/carewebframework-core/blob/fa3252d4f7541dbe151b92c3d4f6f91433cd1673/org.carewebframework.shell/src/main/java/org/carewebframework/shell/layout/LayoutParser.java#L314-L316
Wikidata/Wikidata-Toolkit
wdtk-wikibaseapi/src/main/java/org/wikidata/wdtk/wikibaseapi/WbEditingAction.java
WbEditingAction.wbRemoveClaims
public JsonNode wbRemoveClaims(List<String> statementIds, boolean bot, long baserevid, String summary) throws IOException, MediaWikiApiErrorException { """ Executes the API action "wbremoveclaims" for the given parameters. @param statementIds the statement ids to delete @param bot if true, edits will...
java
public JsonNode wbRemoveClaims(List<String> statementIds, boolean bot, long baserevid, String summary) throws IOException, MediaWikiApiErrorException { Validate.notNull(statementIds, "statementIds parameter cannot be null when deleting statements"); Validate.notEmpty(statementIds, "statement ids to ...
[ "public", "JsonNode", "wbRemoveClaims", "(", "List", "<", "String", ">", "statementIds", ",", "boolean", "bot", ",", "long", "baserevid", ",", "String", "summary", ")", "throws", "IOException", ",", "MediaWikiApiErrorException", "{", "Validate", ".", "notNull", ...
Executes the API action "wbremoveclaims" for the given parameters. @param statementIds the statement ids to delete @param bot if true, edits will be flagged as "bot edits" provided that the logged in user is in the bot group; for regular users, the flag will just be ignored @param baserevid the revision of the data th...
[ "Executes", "the", "API", "action", "wbremoveclaims", "for", "the", "given", "parameters", "." ]
train
https://github.com/Wikidata/Wikidata-Toolkit/blob/7732851dda47e1febff406fba27bfec023f4786e/wdtk-wikibaseapi/src/main/java/org/wikidata/wdtk/wikibaseapi/WbEditingAction.java#L583-L597
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/block/MatrixOps_DDRB.java
MatrixOps_DDRB.identity
public static DMatrixRBlock identity(int numRows, int numCols, int blockLength ) { """ <p> Returns a new matrix with ones along the diagonal and zeros everywhere else. </p> @param numRows Number of rows. @param numCols NUmber of columns. @param blockLength Block length. @return An identify matrix. """ ...
java
public static DMatrixRBlock identity(int numRows, int numCols, int blockLength ) { DMatrixRBlock A = new DMatrixRBlock(numRows,numCols,blockLength); int minLength = Math.min(numRows,numCols); for( int i = 0; i < minLength; i += blockLength ) { int h = Math.min(blockLength,A.numRows...
[ "public", "static", "DMatrixRBlock", "identity", "(", "int", "numRows", ",", "int", "numCols", ",", "int", "blockLength", ")", "{", "DMatrixRBlock", "A", "=", "new", "DMatrixRBlock", "(", "numRows", ",", "numCols", ",", "blockLength", ")", ";", "int", "minLe...
<p> Returns a new matrix with ones along the diagonal and zeros everywhere else. </p> @param numRows Number of rows. @param numCols NUmber of columns. @param blockLength Block length. @return An identify matrix.
[ "<p", ">", "Returns", "a", "new", "matrix", "with", "ones", "along", "the", "diagonal", "and", "zeros", "everywhere", "else", ".", "<", "/", "p", ">" ]
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/block/MatrixOps_DDRB.java#L519-L537
alibaba/transmittable-thread-local
src/main/java/com/alibaba/ttl/TtlRunnable.java
TtlRunnable.get
@Nullable public static TtlRunnable get(@Nullable Runnable runnable, boolean releaseTtlValueReferenceAfterRun, boolean idempotent) { """ Factory method, wrap input {@link Runnable} to {@link TtlRunnable}. @param runnable input {@link Runnable}. if input is {@code null}, return {@code...
java
@Nullable public static TtlRunnable get(@Nullable Runnable runnable, boolean releaseTtlValueReferenceAfterRun, boolean idempotent) { if (null == runnable) return null; if (runnable instanceof TtlEnhanced) { // avoid redundant decoration, and ensure idempotency if (idempotent...
[ "@", "Nullable", "public", "static", "TtlRunnable", "get", "(", "@", "Nullable", "Runnable", "runnable", ",", "boolean", "releaseTtlValueReferenceAfterRun", ",", "boolean", "idempotent", ")", "{", "if", "(", "null", "==", "runnable", ")", "return", "null", ";", ...
Factory method, wrap input {@link Runnable} to {@link TtlRunnable}. @param runnable input {@link Runnable}. if input is {@code null}, return {@code null}. @param releaseTtlValueReferenceAfterRun release TTL value reference after run, avoid memory leak even if {@link TtlRunnable} is referred. @p...
[ "Factory", "method", "wrap", "input", "{", "@link", "Runnable", "}", "to", "{", "@link", "TtlRunnable", "}", "." ]
train
https://github.com/alibaba/transmittable-thread-local/blob/30b4d99cdb7064b4c1797d2e40bfa07adce8e7f9/src/main/java/com/alibaba/ttl/TtlRunnable.java#L121-L131
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/PublicEndpoint.java
PublicEndpoint.withMetrics
public PublicEndpoint withMetrics(java.util.Map<String, Double> metrics) { """ Custom metrics that your app reports to Amazon Pinpoint. @param metrics Custom metrics that your app reports to Amazon Pinpoint. @return Returns a reference to this object so that method calls can be chained together. """ ...
java
public PublicEndpoint withMetrics(java.util.Map<String, Double> metrics) { setMetrics(metrics); return this; }
[ "public", "PublicEndpoint", "withMetrics", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "Double", ">", "metrics", ")", "{", "setMetrics", "(", "metrics", ")", ";", "return", "this", ";", "}" ]
Custom metrics that your app reports to Amazon Pinpoint. @param metrics Custom metrics that your app reports to Amazon Pinpoint. @return Returns a reference to this object so that method calls can be chained together.
[ "Custom", "metrics", "that", "your", "app", "reports", "to", "Amazon", "Pinpoint", "." ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/PublicEndpoint.java#L410-L413
VoltDB/voltdb
src/frontend/org/voltdb/NonVoltDBBackend.java
NonVoltDBBackend.printTransformedSql
static protected void printTransformedSql(String originalSql, String modifiedSql) { """ Prints the original and modified SQL statements, to the "Transformed SQL" output file, assuming that that file is defined; and only if the original and modified SQL are not the same, i.e., only if some transformation has ind...
java
static protected void printTransformedSql(String originalSql, String modifiedSql) { if (transformedSqlFileWriter != null && !originalSql.equals(modifiedSql)) { try { transformedSqlFileWriter.write("original SQL: " + originalSql + "\n"); transformedSqlFileWriter.write(...
[ "static", "protected", "void", "printTransformedSql", "(", "String", "originalSql", ",", "String", "modifiedSql", ")", "{", "if", "(", "transformedSqlFileWriter", "!=", "null", "&&", "!", "originalSql", ".", "equals", "(", "modifiedSql", ")", ")", "{", "try", ...
Prints the original and modified SQL statements, to the "Transformed SQL" output file, assuming that that file is defined; and only if the original and modified SQL are not the same, i.e., only if some transformation has indeed taken place.
[ "Prints", "the", "original", "and", "modified", "SQL", "statements", "to", "the", "Transformed", "SQL", "output", "file", "assuming", "that", "that", "file", "is", "defined", ";", "and", "only", "if", "the", "original", "and", "modified", "SQL", "are", "not"...
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/NonVoltDBBackend.java#L911-L922
matthewhorridge/owlapi-gwt
owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWL2DatatypeImpl_CustomFieldSerializer.java
OWL2DatatypeImpl_CustomFieldSerializer.deserializeInstance
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWL2DatatypeImpl instance) throws SerializationException { """ Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.google.gwt.user...
java
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWL2DatatypeImpl instance) throws SerializationException { deserialize(streamReader, instance); }
[ "@", "Override", "public", "void", "deserializeInstance", "(", "SerializationStreamReader", "streamReader", ",", "OWL2DatatypeImpl", "instance", ")", "throws", "SerializationException", "{", "deserialize", "(", "streamReader", ",", "instance", ")", ";", "}" ]
Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.google.gwt.user.client.rpc.SerializationStreamReader} to read the object's content from @param instance the object instance to deserialize @throws com.google.gwt.user.clie...
[ "Deserializes", "the", "content", "of", "the", "object", "from", "the", "{" ]
train
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWL2DatatypeImpl_CustomFieldSerializer.java#L87-L90
pressgang-ccms/PressGangCCMSContentSpecProcessor
src/main/java/org/jboss/pressgang/ccms/contentspec/processor/ContentSpecProcessor.java
ContentSpecProcessor.doesMetaDataMatch
protected boolean doesMetaDataMatch(final KeyValueNode<?> metaData, final CSNodeWrapper node) { """ Checks to see if a ContentSpec meta data matches a Content Spec Entity meta data. @param metaData The ContentSpec meta data object. @param node The Content Spec Entity topic. @return True if the meta data i...
java
protected boolean doesMetaDataMatch(final KeyValueNode<?> metaData, final CSNodeWrapper node) { if (!(node.getNodeType().equals(CommonConstants.CS_NODE_META_DATA) || node.getNodeType().equals( CommonConstants.CS_NODE_META_DATA_TOPIC))) return false; // If the unique id is not from the p...
[ "protected", "boolean", "doesMetaDataMatch", "(", "final", "KeyValueNode", "<", "?", ">", "metaData", ",", "final", "CSNodeWrapper", "node", ")", "{", "if", "(", "!", "(", "node", ".", "getNodeType", "(", ")", ".", "equals", "(", "CommonConstants", ".", "C...
Checks to see if a ContentSpec meta data matches a Content Spec Entity meta data. @param metaData The ContentSpec meta data object. @param node The Content Spec Entity topic. @return True if the meta data is determined to match otherwise false.
[ "Checks", "to", "see", "if", "a", "ContentSpec", "meta", "data", "matches", "a", "Content", "Spec", "Entity", "meta", "data", "." ]
train
https://github.com/pressgang-ccms/PressGangCCMSContentSpecProcessor/blob/85ffac047c4ede0f972364ab1f03f7d61a4de5f1/src/main/java/org/jboss/pressgang/ccms/contentspec/processor/ContentSpecProcessor.java#L2040-L2062
lucee/Lucee
core/src/main/java/lucee/runtime/converter/ScriptConverter.java
ScriptConverter._serializeMap
private void _serializeMap(Map map, StringBuilder sb, Set<Object> done) throws ConverterException { """ serialize a Map (as Struct) @param map Map to serialize @param sb @param done @throws ConverterException """ if (map instanceof Serializable) { _serializeSerializable((Serializable) map, sb); ...
java
private void _serializeMap(Map map, StringBuilder sb, Set<Object> done) throws ConverterException { if (map instanceof Serializable) { _serializeSerializable((Serializable) map, sb); return; } sb.append(goIn()); sb.append("{"); Iterator it = map.keySet().iterator(); boolean doIt = false; deep++; whil...
[ "private", "void", "_serializeMap", "(", "Map", "map", ",", "StringBuilder", "sb", ",", "Set", "<", "Object", ">", "done", ")", "throws", "ConverterException", "{", "if", "(", "map", "instanceof", "Serializable", ")", "{", "_serializeSerializable", "(", "(", ...
serialize a Map (as Struct) @param map Map to serialize @param sb @param done @throws ConverterException
[ "serialize", "a", "Map", "(", "as", "Struct", ")" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/converter/ScriptConverter.java#L240-L264
HanSolo/SteelSeries-Swing
src/main/java/eu/hansolo/steelseries/extras/LightBulb.java
LightBulb.createImage
private BufferedImage createImage(final int WIDTH, final int HEIGHT, final int TRANSPARENCY) { """ Returns a compatible image of the given size and transparency @param WIDTH @param HEIGHT @param TRANSPARENCY @return a compatible image of the given size and transparency """ final GraphicsConfigurati...
java
private BufferedImage createImage(final int WIDTH, final int HEIGHT, final int TRANSPARENCY) { final GraphicsConfiguration GFX_CONF = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration(); if (WIDTH <= 0 || HEIGHT <= 0) { return GFX_CONF.createC...
[ "private", "BufferedImage", "createImage", "(", "final", "int", "WIDTH", ",", "final", "int", "HEIGHT", ",", "final", "int", "TRANSPARENCY", ")", "{", "final", "GraphicsConfiguration", "GFX_CONF", "=", "GraphicsEnvironment", ".", "getLocalGraphicsEnvironment", "(", ...
Returns a compatible image of the given size and transparency @param WIDTH @param HEIGHT @param TRANSPARENCY @return a compatible image of the given size and transparency
[ "Returns", "a", "compatible", "image", "of", "the", "given", "size", "and", "transparency" ]
train
https://github.com/HanSolo/SteelSeries-Swing/blob/c2f7b45a477757ef21bbb6a1174ddedb2250ae57/src/main/java/eu/hansolo/steelseries/extras/LightBulb.java#L497-L504
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/LinkedList.java
LinkedList.insertLinkBefore
public final synchronized void insertLinkBefore(Link insertLink, Link followingLink) { """ Insert the specified link into the list. @param insertLink link to be inserted @param followingLink link before which the insertLink is inserted. """ if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
java
public final synchronized void insertLinkBefore(Link insertLink, Link followingLink) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry( this, tc, "insertLinkBefore", new long[] { insertLink.getSequence(), ...
[ "public", "final", "synchronized", "void", "insertLinkBefore", "(", "Link", "insertLink", ",", "Link", "followingLink", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr",...
Insert the specified link into the list. @param insertLink link to be inserted @param followingLink link before which the insertLink is inserted.
[ "Insert", "the", "specified", "link", "into", "the", "list", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/LinkedList.java#L139-L154
avianey/facebook-api-android-maven
facebook/src/main/java/com/facebook/Request.java
Request.newMeRequest
public static Request newMeRequest(Session session, final GraphUserCallback callback) { """ Creates a new Request configured to retrieve a user's own profile. @param session the Session to use, or null; if non-null, the session must be in an opened state @param callback a callback that will be called when th...
java
public static Request newMeRequest(Session session, final GraphUserCallback callback) { Callback wrapper = new Callback() { @Override public void onCompleted(Response response) { if (callback != null) { callback.onCompleted(response.getGraphObjectAs(Gr...
[ "public", "static", "Request", "newMeRequest", "(", "Session", "session", ",", "final", "GraphUserCallback", "callback", ")", "{", "Callback", "wrapper", "=", "new", "Callback", "(", ")", "{", "@", "Override", "public", "void", "onCompleted", "(", "Response", ...
Creates a new Request configured to retrieve a user's own profile. @param session the Session to use, or null; if non-null, the session must be in an opened state @param callback a callback that will be called when the request is completed to handle success or error conditions @return a Request that is ready to execut...
[ "Creates", "a", "new", "Request", "configured", "to", "retrieve", "a", "user", "s", "own", "profile", "." ]
train
https://github.com/avianey/facebook-api-android-maven/blob/ae6c7aa7ae45739ee19f18c1983e05f7e35b9ede/facebook/src/main/java/com/facebook/Request.java#L275-L285
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/ComparableTimSort.java
ComparableTimSort.pushRun
private void pushRun(int runBase, int runLen) { """ Pushes the specified run onto the pending-run stack. @param runBase index of the first element in the run @param runLen the number of elements in the run """ this.runBase[stackSize] = runBase; this.runLen[stackSize] = runLen; stac...
java
private void pushRun(int runBase, int runLen) { this.runBase[stackSize] = runBase; this.runLen[stackSize] = runLen; stackSize++; }
[ "private", "void", "pushRun", "(", "int", "runBase", ",", "int", "runLen", ")", "{", "this", ".", "runBase", "[", "stackSize", "]", "=", "runBase", ";", "this", ".", "runLen", "[", "stackSize", "]", "=", "runLen", ";", "stackSize", "++", ";", "}" ]
Pushes the specified run onto the pending-run stack. @param runBase index of the first element in the run @param runLen the number of elements in the run
[ "Pushes", "the", "specified", "run", "onto", "the", "pending", "-", "run", "stack", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/ComparableTimSort.java#L381-L385
joniles/mpxj
src/main/java/net/sf/mpxj/mpp/MPP9Reader.java
MPP9Reader.processFieldNameAliases
private void processFieldNameAliases(Map<Integer, FieldType> map, byte[] data) { """ Retrieve any resource field aliases defined in the MPP file. @param map index to field map @param data resource field name alias data """ if (data != null) { int offset = 0; int index = 0; ...
java
private void processFieldNameAliases(Map<Integer, FieldType> map, byte[] data) { if (data != null) { int offset = 0; int index = 0; CustomFieldContainer fields = m_file.getCustomFields(); while (offset < data.length) { String alias = MPPUtility.get...
[ "private", "void", "processFieldNameAliases", "(", "Map", "<", "Integer", ",", "FieldType", ">", "map", ",", "byte", "[", "]", "data", ")", "{", "if", "(", "data", "!=", "null", ")", "{", "int", "offset", "=", "0", ";", "int", "index", "=", "0", ";...
Retrieve any resource field aliases defined in the MPP file. @param map index to field map @param data resource field name alias data
[ "Retrieve", "any", "resource", "field", "aliases", "defined", "in", "the", "MPP", "file", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/mpp/MPP9Reader.java#L864-L886
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/report/AbstractOutputFileReporter.java
AbstractOutputFileReporter.createReportFile
private void createReportFile(String reportFileName, String content) { """ Creates the HTML report file @param reportFileName The report file to write @param content The String content of the report file """ File targetDirectory = new File(getReportDirectory()); if (!targetDirectory.exists())...
java
private void createReportFile(String reportFileName, String content) { File targetDirectory = new File(getReportDirectory()); if (!targetDirectory.exists()) { if (!targetDirectory.mkdirs()) { throw new CitrusRuntimeException("Unable to create report output directory: " + getR...
[ "private", "void", "createReportFile", "(", "String", "reportFileName", ",", "String", "content", ")", "{", "File", "targetDirectory", "=", "new", "File", "(", "getReportDirectory", "(", ")", ")", ";", "if", "(", "!", "targetDirectory", ".", "exists", "(", "...
Creates the HTML report file @param reportFileName The report file to write @param content The String content of the report file
[ "Creates", "the", "HTML", "report", "file" ]
train
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/report/AbstractOutputFileReporter.java#L54-L69
landawn/AbacusUtil
src/com/landawn/abacus/util/stream/Stream.java
Stream.parallelConcat
public static <T> Stream<T> parallelConcat(final Collection<? extends Stream<? extends T>> c) { """ Put the stream in try-catch to stop the back-end reading thread if error happens <br /> <code> try (Stream<Integer> stream = Stream.parallelConcat(a,b, ...)) { stream.forEach(N::println); } </code> @param c...
java
public static <T> Stream<T> parallelConcat(final Collection<? extends Stream<? extends T>> c) { return parallelConcat(c, DEFAULT_READING_THREAD_NUM); }
[ "public", "static", "<", "T", ">", "Stream", "<", "T", ">", "parallelConcat", "(", "final", "Collection", "<", "?", "extends", "Stream", "<", "?", "extends", "T", ">", ">", "c", ")", "{", "return", "parallelConcat", "(", "c", ",", "DEFAULT_READING_THREAD...
Put the stream in try-catch to stop the back-end reading thread if error happens <br /> <code> try (Stream<Integer> stream = Stream.parallelConcat(a,b, ...)) { stream.forEach(N::println); } </code> @param c @return
[ "Put", "the", "stream", "in", "try", "-", "catch", "to", "stop", "the", "back", "-", "end", "reading", "thread", "if", "error", "happens", "<br", "/", ">", "<code", ">", "try", "(", "Stream<Integer", ">", "stream", "=", "Stream", ".", "parallelConcat", ...
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/stream/Stream.java#L4238-L4240
Azure/azure-sdk-for-java
cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingsImpl.java
TrainingsImpl.getImagePerformancesAsync
public Observable<List<ImagePerformance>> getImagePerformancesAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter) { """ Get image with its prediction for a given project iteration. This API supports batching and range selection. By default it will o...
java
public Observable<List<ImagePerformance>> getImagePerformancesAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter) { return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, getImagePerformancesOptionalParameter).map(new Func1<Se...
[ "public", "Observable", "<", "List", "<", "ImagePerformance", ">", ">", "getImagePerformancesAsync", "(", "UUID", "projectId", ",", "UUID", "iterationId", ",", "GetImagePerformancesOptionalParameter", "getImagePerformancesOptionalParameter", ")", "{", "return", "getImagePer...
Get image with its prediction for a given project iteration. This API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. The filtering is on an and/or relationship. For example...
[ "Get", "image", "with", "its", "prediction", "for", "a", "given", "project", "iteration", ".", "This", "API", "supports", "batching", "and", "range", "selection", ".", "By", "default", "it", "will", "only", "return", "first", "50", "images", "matching", "ima...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingsImpl.java#L1438-L1445
hyperledger/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/security/certgen/TLSCertificateBuilder.java
TLSCertificateBuilder.serverCert
public TLSCertificateKeyPair serverCert(String subjectAlternativeName) { """ * Creates a TLS server certificate key pair with the given DNS subject alternative name @param subjectAlternativeName the DNS SAN to be encoded in the certificate @return a TLSCertificateKeyPair """ try { return...
java
public TLSCertificateKeyPair serverCert(String subjectAlternativeName) { try { return createCert(CertType.SERVER, subjectAlternativeName); } catch (Exception e) { throw new RuntimeException(e); } }
[ "public", "TLSCertificateKeyPair", "serverCert", "(", "String", "subjectAlternativeName", ")", "{", "try", "{", "return", "createCert", "(", "CertType", ".", "SERVER", ",", "subjectAlternativeName", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw...
* Creates a TLS server certificate key pair with the given DNS subject alternative name @param subjectAlternativeName the DNS SAN to be encoded in the certificate @return a TLSCertificateKeyPair
[ "*", "Creates", "a", "TLS", "server", "certificate", "key", "pair", "with", "the", "given", "DNS", "subject", "alternative", "name" ]
train
https://github.com/hyperledger/fabric-sdk-java/blob/4a2d7b3408b8b0a1ed812aa36942c438159c37a0/src/main/java/org/hyperledger/fabric/sdk/security/certgen/TLSCertificateBuilder.java#L89-L95
pac4j/pac4j
pac4j-saml/src/main/java/org/pac4j/saml/profile/impl/AbstractSAML2ResponseValidator.java
AbstractSAML2ResponseValidator.validateSignature
protected final void validateSignature(final Signature signature, final String idpEntityId, final SignatureTrustEngine trustEngine) { """ Validate the given digital signature by checking its profile and value. @param signature the signature @param idpEntityId the id...
java
protected final void validateSignature(final Signature signature, final String idpEntityId, final SignatureTrustEngine trustEngine) { final SAMLSignatureProfileValidator validator = new SAMLSignatureProfileValidator(); try { validator.validate(sign...
[ "protected", "final", "void", "validateSignature", "(", "final", "Signature", "signature", ",", "final", "String", "idpEntityId", ",", "final", "SignatureTrustEngine", "trustEngine", ")", "{", "final", "SAMLSignatureProfileValidator", "validator", "=", "new", "SAMLSigna...
Validate the given digital signature by checking its profile and value. @param signature the signature @param idpEntityId the idp entity id @param trustEngine the trust engine
[ "Validate", "the", "given", "digital", "signature", "by", "checking", "its", "profile", "and", "value", "." ]
train
https://github.com/pac4j/pac4j/blob/d9cd029f8783792b31dd48bf1e32f80628f2c4a3/pac4j-saml/src/main/java/org/pac4j/saml/profile/impl/AbstractSAML2ResponseValidator.java#L99-L123
nikkiii/embedhttp
src/main/java/org/nikkii/embedhttp/util/HttpUtil.java
HttpUtil.capitalizeHeader
public static String capitalizeHeader(String header) { """ Fixes capitalization on headers @param header The header input @return A header with all characters after '-' capitalized """ StringTokenizer st = new StringTokenizer(header, "-"); StringBuilder out = new StringBuilder(); while (st.hasMoreTok...
java
public static String capitalizeHeader(String header) { StringTokenizer st = new StringTokenizer(header, "-"); StringBuilder out = new StringBuilder(); while (st.hasMoreTokens()) { String l = st.nextToken(); out.append(Character.toUpperCase(l.charAt(0))); if (l.length() > 1) { out.append(l.substring(1...
[ "public", "static", "String", "capitalizeHeader", "(", "String", "header", ")", "{", "StringTokenizer", "st", "=", "new", "StringTokenizer", "(", "header", ",", "\"-\"", ")", ";", "StringBuilder", "out", "=", "new", "StringBuilder", "(", ")", ";", "while", "...
Fixes capitalization on headers @param header The header input @return A header with all characters after '-' capitalized
[ "Fixes", "capitalization", "on", "headers" ]
train
https://github.com/nikkiii/embedhttp/blob/7c965b6910dc6ee4ea46d7ae188c0751b98c2615/src/main/java/org/nikkii/embedhttp/util/HttpUtil.java#L40-L53
RestComm/sip-servlets
sip-servlets-examples/chatserver/src/main/java/org/mobicents/servlet/sip/example/ChatroomSipServlet.java
ChatroomSipServlet.doMessage
protected void doMessage(SipServletRequest request) throws ServletException, IOException { """ This is called by the container when a MESSAGE message arrives. """ request.createResponse(SipServletResponse.SC_OK).send(); Object message = request.getContent(); ...
java
protected void doMessage(SipServletRequest request) throws ServletException, IOException { request.createResponse(SipServletResponse.SC_OK).send(); Object message = request.getContent(); String from = request.getFrom().getURI().toString(); logg...
[ "protected", "void", "doMessage", "(", "SipServletRequest", "request", ")", "throws", "ServletException", ",", "IOException", "{", "request", ".", "createResponse", "(", "SipServletResponse", ".", "SC_OK", ")", ".", "send", "(", ")", ";", "Object", "message", "=...
This is called by the container when a MESSAGE message arrives.
[ "This", "is", "called", "by", "the", "container", "when", "a", "MESSAGE", "message", "arrives", "." ]
train
https://github.com/RestComm/sip-servlets/blob/fd7011d2803ab1d205b140768a760c8c69e0c997/sip-servlets-examples/chatserver/src/main/java/org/mobicents/servlet/sip/example/ChatroomSipServlet.java#L92-L136
kite-sdk/kite
kite-data/kite-data-core/src/main/java/org/kitesdk/data/spi/filesystem/SignalManager.java
SignalManager.getReadyTimestamp
public long getReadyTimestamp(Constraints viewConstraints) { """ Check the last time the specified constraints have been signaled as ready. @param viewConstraints The constraints to check for a signal. @return the timestamp of the last time the constraints were signaled as ready. if the constraints have nev...
java
public long getReadyTimestamp(Constraints viewConstraints) { String normalizedConstraints = getNormalizedConstraints(viewConstraints); Path signalPath = new Path(signalDirectory, normalizedConstraints); // check if the signal exists try { try { FileStatus signalStatus = rootFileSystem.get...
[ "public", "long", "getReadyTimestamp", "(", "Constraints", "viewConstraints", ")", "{", "String", "normalizedConstraints", "=", "getNormalizedConstraints", "(", "viewConstraints", ")", ";", "Path", "signalPath", "=", "new", "Path", "(", "signalDirectory", ",", "normal...
Check the last time the specified constraints have been signaled as ready. @param viewConstraints The constraints to check for a signal. @return the timestamp of the last time the constraints were signaled as ready. if the constraints have never been signaled, -1 will be returned. @throws DatasetException if the sig...
[ "Check", "the", "last", "time", "the", "specified", "constraints", "have", "been", "signaled", "as", "ready", "." ]
train
https://github.com/kite-sdk/kite/blob/72bfb4b1a881af85808cd7f14bc3e15160a1e811/kite-data/kite-data-core/src/main/java/org/kitesdk/data/spi/filesystem/SignalManager.java#L97-L113
deeplearning4j/deeplearning4j
nd4j/nd4j-parameter-server-parent/nd4j-parameter-server-node/src/main/java/org/nd4j/parameterserver/distributed/v2/transport/impl/AeronUdpTransport.java
AeronUdpTransport.addPrecursor
public <T extends VoidMessage> void addPrecursor(@NonNull Class<T> cls, @NonNull MessageCallable<T> callable) { """ This method add precursor for incoming messages. If precursor is defined for given message class - runnable will be executed before processMessage() @param cls @param callable """ precu...
java
public <T extends VoidMessage> void addPrecursor(@NonNull Class<T> cls, @NonNull MessageCallable<T> callable) { precursors.put(cls.getCanonicalName(), callable); }
[ "public", "<", "T", "extends", "VoidMessage", ">", "void", "addPrecursor", "(", "@", "NonNull", "Class", "<", "T", ">", "cls", ",", "@", "NonNull", "MessageCallable", "<", "T", ">", "callable", ")", "{", "precursors", ".", "put", "(", "cls", ".", "getC...
This method add precursor for incoming messages. If precursor is defined for given message class - runnable will be executed before processMessage() @param cls @param callable
[ "This", "method", "add", "precursor", "for", "incoming", "messages", ".", "If", "precursor", "is", "defined", "for", "given", "message", "class", "-", "runnable", "will", "be", "executed", "before", "processMessage", "()" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/nd4j/nd4j-parameter-server-parent/nd4j-parameter-server-node/src/main/java/org/nd4j/parameterserver/distributed/v2/transport/impl/AeronUdpTransport.java#L540-L542
deeplearning4j/deeplearning4j
datavec/datavec-spark/src/main/java/org/datavec/spark/transform/Normalization.java
Normalization.zeromeanUnitVariance
public static DataRowsFacade zeromeanUnitVariance(DataRowsFacade frame, List<String> skipColumns) { """ Normalize by zero mean unit variance @param frame the data to normalize @return a zero mean unit variance centered rdd """ List<String> columnsList = DataFrames.toList(frame.get().columns()); ...
java
public static DataRowsFacade zeromeanUnitVariance(DataRowsFacade frame, List<String> skipColumns) { List<String> columnsList = DataFrames.toList(frame.get().columns()); columnsList.removeAll(skipColumns); String[] columnNames = DataFrames.toArray(columnsList); //first row is std second r...
[ "public", "static", "DataRowsFacade", "zeromeanUnitVariance", "(", "DataRowsFacade", "frame", ",", "List", "<", "String", ">", "skipColumns", ")", "{", "List", "<", "String", ">", "columnsList", "=", "DataFrames", ".", "toList", "(", "frame", ".", "get", "(", ...
Normalize by zero mean unit variance @param frame the data to normalize @return a zero mean unit variance centered rdd
[ "Normalize", "by", "zero", "mean", "unit", "variance" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/datavec/datavec-spark/src/main/java/org/datavec/spark/transform/Normalization.java#L123-L142
looly/hutool
hutool-poi/src/main/java/cn/hutool/poi/excel/ExcelUtil.java
ExcelUtil.read03BySax
public static Excel03SaxReader read03BySax(String path, int sheetIndex, RowHandler rowHandler) { """ Sax方式读取Excel03 @param path 路径 @param sheetIndex Sheet索引,-1表示全部Sheet, 0表示第一个Sheet @param rowHandler 行处理器 @return {@link Excel03SaxReader} @since 3.2.0 """ try { return new Excel03SaxReader(rowHandl...
java
public static Excel03SaxReader read03BySax(String path, int sheetIndex, RowHandler rowHandler) { try { return new Excel03SaxReader(rowHandler).read(path, sheetIndex); } catch (NoClassDefFoundError e) { throw new DependencyException(ObjectUtil.defaultIfNull(e.getCause(), e), PoiChecker.NO_POI_ERROR_MSG); ...
[ "public", "static", "Excel03SaxReader", "read03BySax", "(", "String", "path", ",", "int", "sheetIndex", ",", "RowHandler", "rowHandler", ")", "{", "try", "{", "return", "new", "Excel03SaxReader", "(", "rowHandler", ")", ".", "read", "(", "path", ",", "sheetInd...
Sax方式读取Excel03 @param path 路径 @param sheetIndex Sheet索引,-1表示全部Sheet, 0表示第一个Sheet @param rowHandler 行处理器 @return {@link Excel03SaxReader} @since 3.2.0
[ "Sax方式读取Excel03" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-poi/src/main/java/cn/hutool/poi/excel/ExcelUtil.java#L174-L180
matthewhorridge/owlapi-gwt
owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLImportsDeclarationImpl_CustomFieldSerializer.java
OWLImportsDeclarationImpl_CustomFieldSerializer.deserializeInstance
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLImportsDeclarationImpl instance) throws SerializationException { """ Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.google...
java
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLImportsDeclarationImpl instance) throws SerializationException { deserialize(streamReader, instance); }
[ "@", "Override", "public", "void", "deserializeInstance", "(", "SerializationStreamReader", "streamReader", ",", "OWLImportsDeclarationImpl", "instance", ")", "throws", "SerializationException", "{", "deserialize", "(", "streamReader", ",", "instance", ")", ";", "}" ]
Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.google.gwt.user.client.rpc.SerializationStreamReader} to read the object's content from @param instance the object instance to deserialize @throws com.google.gwt.user.clie...
[ "Deserializes", "the", "content", "of", "the", "object", "from", "the", "{" ]
train
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLImportsDeclarationImpl_CustomFieldSerializer.java#L83-L86
thorntail/thorntail
plugins/gradle/gradle-plugin/src/main/java/org/wildfly/swarm/plugin/gradle/GradleDependencyResolutionHelper.java
GradleDependencyResolutionHelper.isProject
public static boolean isProject(Project project, DependencyDescriptor descriptor) { """ Convenience method to determine if the given dependency descriptor represents an internal Gradle project or not. @param project the Gradle project reference. @param descriptor the dependency descriptor. @return true if ...
java
public static boolean isProject(Project project, DependencyDescriptor descriptor) { final String specGAV = String.format("%s:%s:%s", descriptor.getGroup(), descriptor.getName(), descriptor.getVersion()); return getAllProjects(project).containsKey(specGAV) || getIncludedProjectIdentifiers(project).contai...
[ "public", "static", "boolean", "isProject", "(", "Project", "project", ",", "DependencyDescriptor", "descriptor", ")", "{", "final", "String", "specGAV", "=", "String", ".", "format", "(", "\"%s:%s:%s\"", ",", "descriptor", ".", "getGroup", "(", ")", ",", "des...
Convenience method to determine if the given dependency descriptor represents an internal Gradle project or not. @param project the Gradle project reference. @param descriptor the dependency descriptor. @return true if the descriptor represents a Gradle project, false otherwise.
[ "Convenience", "method", "to", "determine", "if", "the", "given", "dependency", "descriptor", "represents", "an", "internal", "Gradle", "project", "or", "not", "." ]
train
https://github.com/thorntail/thorntail/blob/4a391b68ffae98c6e66d30a3bfb99dadc9509f14/plugins/gradle/gradle-plugin/src/main/java/org/wildfly/swarm/plugin/gradle/GradleDependencyResolutionHelper.java#L92-L95
defei/codelogger-utils
src/main/java/org/codelogger/utils/beans/StorageComponent.java
StorageComponent.put
public void put(final ValueType value, final KeyType... keys) { """ Storages the value by keys. @param value the value to storage. @param keys the keys to storage value. """ if (ArrayUtils.isEmpty(keys)) { return; } int keysLength = keys.length; if (keysLength...
java
public void put(final ValueType value, final KeyType... keys) { if (ArrayUtils.isEmpty(keys)) { return; } int keysLength = keys.length; if (keysLength == 1) { put(value, keys[0]); } else { StorageComponent<KeyType, ValueType> childStorageCompo...
[ "public", "void", "put", "(", "final", "ValueType", "value", ",", "final", "KeyType", "...", "keys", ")", "{", "if", "(", "ArrayUtils", ".", "isEmpty", "(", "keys", ")", ")", "{", "return", ";", "}", "int", "keysLength", "=", "keys", ".", "length", "...
Storages the value by keys. @param value the value to storage. @param keys the keys to storage value.
[ "Storages", "the", "value", "by", "keys", "." ]
train
https://github.com/defei/codelogger-utils/blob/d906f5d217b783c7ae3e53442cd6fb87b20ecc0a/src/main/java/org/codelogger/utils/beans/StorageComponent.java#L145-L161