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
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/type/ExceptionObjectType.java
ExceptionObjectType.fromExceptionSet
public static Type fromExceptionSet(ExceptionSet exceptionSet) throws ClassNotFoundException { """ Initialize object from an exception set. @param exceptionSet the exception set @return a Type that is a supertype of all of the exceptions in the exception set """ Type commonSupertype = exceptionSe...
java
public static Type fromExceptionSet(ExceptionSet exceptionSet) throws ClassNotFoundException { Type commonSupertype = exceptionSet.getCommonSupertype(); if (commonSupertype.getType() != Const.T_OBJECT) { return commonSupertype; } ObjectType exceptionSupertype = (ObjectType) ...
[ "public", "static", "Type", "fromExceptionSet", "(", "ExceptionSet", "exceptionSet", ")", "throws", "ClassNotFoundException", "{", "Type", "commonSupertype", "=", "exceptionSet", ".", "getCommonSupertype", "(", ")", ";", "if", "(", "commonSupertype", ".", "getType", ...
Initialize object from an exception set. @param exceptionSet the exception set @return a Type that is a supertype of all of the exceptions in the exception set
[ "Initialize", "object", "from", "an", "exception", "set", "." ]
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/type/ExceptionObjectType.java#L60-L73
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/deployment/Deployment.java
Deployment.parseSubsystems
static void parseSubsystems(ModelNode node, List<Subsystem> subsystems) { """ Expects a "subsystem" child resource. Modeled as a static helper method to make it usable from both deployments and subdeployments. """ List<Property> properties = node.get("subsystem").asPropertyList(); for (Propert...
java
static void parseSubsystems(ModelNode node, List<Subsystem> subsystems) { List<Property> properties = node.get("subsystem").asPropertyList(); for (Property property : properties) { Subsystem subsystem = new Subsystem(property.getName(), property.getValue()); subsystems.add(subsys...
[ "static", "void", "parseSubsystems", "(", "ModelNode", "node", ",", "List", "<", "Subsystem", ">", "subsystems", ")", "{", "List", "<", "Property", ">", "properties", "=", "node", ".", "get", "(", "\"subsystem\"", ")", ".", "asPropertyList", "(", ")", ";",...
Expects a "subsystem" child resource. Modeled as a static helper method to make it usable from both deployments and subdeployments.
[ "Expects", "a", "subsystem", "child", "resource", ".", "Modeled", "as", "a", "static", "helper", "method", "to", "make", "it", "usable", "from", "both", "deployments", "and", "subdeployments", "." ]
train
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/deployment/Deployment.java#L46-L52
pressgang-ccms/PressGangCCMSContentSpec
src/main/java/org/jboss/pressgang/ccms/contentspec/utils/EntityUtilities.java
EntityUtilities.findTranslationLocaleFromString
public static LocaleWrapper findTranslationLocaleFromString(final LocaleProvider localeProvider, final String localeString) { """ Finds the matching locale entity from a translation locale string. @param localeProvider @param localeString @return """ if (localeString == null) return null; ...
java
public static LocaleWrapper findTranslationLocaleFromString(final LocaleProvider localeProvider, final String localeString) { if (localeString == null) return null; final CollectionWrapper<LocaleWrapper> locales = localeProvider.getLocales(); for (final LocaleWrapper locale : locales.getItems()...
[ "public", "static", "LocaleWrapper", "findTranslationLocaleFromString", "(", "final", "LocaleProvider", "localeProvider", ",", "final", "String", "localeString", ")", "{", "if", "(", "localeString", "==", "null", ")", "return", "null", ";", "final", "CollectionWrapper...
Finds the matching locale entity from a translation locale string. @param localeProvider @param localeString @return
[ "Finds", "the", "matching", "locale", "entity", "from", "a", "translation", "locale", "string", "." ]
train
https://github.com/pressgang-ccms/PressGangCCMSContentSpec/blob/2bc02e2971e4522b47a130fb7ae5a0f5ad377df1/src/main/java/org/jboss/pressgang/ccms/contentspec/utils/EntityUtilities.java#L471-L482
WiQuery/wiquery
wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/slider/AjaxSlider.java
AjaxSlider.setAjaxStopEvent
public void setAjaxStopEvent(ISliderAjaxEvent ajaxStopEvent) { """ Sets the call-back for the AJAX stop event. @param ajaxStopEvent The ISliderAjaxEvent. """ this.ajaxEvents.put(SliderAjaxEvent.ajaxStopEvent, ajaxStopEvent); setStopEvent(new SliderAjaxJsScopeUiEvent(this, SliderAjaxEvent.ajaxStopEvent)...
java
public void setAjaxStopEvent(ISliderAjaxEvent ajaxStopEvent) { this.ajaxEvents.put(SliderAjaxEvent.ajaxStopEvent, ajaxStopEvent); setStopEvent(new SliderAjaxJsScopeUiEvent(this, SliderAjaxEvent.ajaxStopEvent)); }
[ "public", "void", "setAjaxStopEvent", "(", "ISliderAjaxEvent", "ajaxStopEvent", ")", "{", "this", ".", "ajaxEvents", ".", "put", "(", "SliderAjaxEvent", ".", "ajaxStopEvent", ",", "ajaxStopEvent", ")", ";", "setStopEvent", "(", "new", "SliderAjaxJsScopeUiEvent", "("...
Sets the call-back for the AJAX stop event. @param ajaxStopEvent The ISliderAjaxEvent.
[ "Sets", "the", "call", "-", "back", "for", "the", "AJAX", "stop", "event", "." ]
train
https://github.com/WiQuery/wiquery/blob/1b8d60c7a3c37b90fd68c9cd0ff97178fcbcbb08/wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/slider/AjaxSlider.java#L294-L298
phax/ph-web
ph-http/src/main/java/com/helger/http/CacheControlBuilder.java
CacheControlBuilder.setMaxAge
@Nonnull public CacheControlBuilder setMaxAge (@Nonnull final TimeUnit eTimeUnit, final long nDuration) { """ Set the maximum age relative to the request time @param eTimeUnit {@link TimeUnit} to use @param nDuration The duration in the passed unit @return this """ return setMaxAgeSeconds (eTimeUn...
java
@Nonnull public CacheControlBuilder setMaxAge (@Nonnull final TimeUnit eTimeUnit, final long nDuration) { return setMaxAgeSeconds (eTimeUnit.toSeconds (nDuration)); }
[ "@", "Nonnull", "public", "CacheControlBuilder", "setMaxAge", "(", "@", "Nonnull", "final", "TimeUnit", "eTimeUnit", ",", "final", "long", "nDuration", ")", "{", "return", "setMaxAgeSeconds", "(", "eTimeUnit", ".", "toSeconds", "(", "nDuration", ")", ")", ";", ...
Set the maximum age relative to the request time @param eTimeUnit {@link TimeUnit} to use @param nDuration The duration in the passed unit @return this
[ "Set", "the", "maximum", "age", "relative", "to", "the", "request", "time" ]
train
https://github.com/phax/ph-web/blob/d445fd25184605b62682c93c9782409acf0ae813/ph-http/src/main/java/com/helger/http/CacheControlBuilder.java#L93-L97
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/DescriptorFactory.java
DescriptorFactory.getMethodDescriptor
public MethodDescriptor getMethodDescriptor(@SlashedClassName String className, String name, String signature, boolean isStatic) { """ Get a MethodDescriptor. @param className name of the class containing the method, in VM format (e.g., "java/lang/String") @param name name of the method @param ...
java
public MethodDescriptor getMethodDescriptor(@SlashedClassName String className, String name, String signature, boolean isStatic) { if (className == null) { throw new NullPointerException("className must be nonnull"); } MethodDescriptor methodDescriptor = new MethodDescrip...
[ "public", "MethodDescriptor", "getMethodDescriptor", "(", "@", "SlashedClassName", "String", "className", ",", "String", "name", ",", "String", "signature", ",", "boolean", "isStatic", ")", "{", "if", "(", "className", "==", "null", ")", "{", "throw", "new", "...
Get a MethodDescriptor. @param className name of the class containing the method, in VM format (e.g., "java/lang/String") @param name name of the method @param signature signature of the method @param isStatic true if method is static, false otherwise @return MethodDescriptor
[ "Get", "a", "MethodDescriptor", "." ]
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/DescriptorFactory.java#L172-L184
cdk/cdk
tool/hash/src/main/java/org/openscience/cdk/hash/stereo/GeometricTetrahedralEncoderFactory.java
GeometricTetrahedralEncoderFactory.makeElevationMap
private static void makeElevationMap(IAtom atom, List<IBond> bonds, Map<IAtom, Integer> map) { """ Maps the input bonds to a map of Atom->Elevation where the elevation is whether the bond is off the plane with respect to the central atom. @param atom central atom @param bonds bonds connected to the central a...
java
private static void makeElevationMap(IAtom atom, List<IBond> bonds, Map<IAtom, Integer> map) { map.clear(); for (IBond bond : bonds) { int elevation = 0; switch (bond.getStereo()) { case UP: case DOWN_INVERTED: elevation = +1; ...
[ "private", "static", "void", "makeElevationMap", "(", "IAtom", "atom", ",", "List", "<", "IBond", ">", "bonds", ",", "Map", "<", "IAtom", ",", "Integer", ">", "map", ")", "{", "map", ".", "clear", "(", ")", ";", "for", "(", "IBond", "bond", ":", "b...
Maps the input bonds to a map of Atom->Elevation where the elevation is whether the bond is off the plane with respect to the central atom. @param atom central atom @param bonds bonds connected to the central atom @param map map to load with elevation values (can be reused)
[ "Maps", "the", "input", "bonds", "to", "a", "map", "of", "Atom", "-", ">", "Elevation", "where", "the", "elevation", "is", "whether", "the", "bond", "is", "off", "the", "plane", "with", "respect", "to", "the", "central", "atom", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/tool/hash/src/main/java/org/openscience/cdk/hash/stereo/GeometricTetrahedralEncoderFactory.java#L258-L282
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/servlet/RendererRequestUtils.java
RendererRequestUtils.getBundleRendererContext
public static BundleRendererContext getBundleRendererContext(HttpServletRequest request, BundleRenderer renderer) { """ Returns the bundle renderer context. @param request the request @param renderer the bundle renderer @return the bundle renderer context. """ String bundleRendererCtxAttributeName = B...
java
public static BundleRendererContext getBundleRendererContext(HttpServletRequest request, BundleRenderer renderer) { String bundleRendererCtxAttributeName = BUNDLE_RENDERER_CONTEXT_ATTR_PREFIX + renderer.getResourceType(); // If we are handling an error dispatch, we should remove the current // RendererContext to...
[ "public", "static", "BundleRendererContext", "getBundleRendererContext", "(", "HttpServletRequest", "request", ",", "BundleRenderer", "renderer", ")", "{", "String", "bundleRendererCtxAttributeName", "=", "BUNDLE_RENDERER_CONTEXT_ATTR_PREFIX", "+", "renderer", ".", "getResource...
Returns the bundle renderer context. @param request the request @param renderer the bundle renderer @return the bundle renderer context.
[ "Returns", "the", "bundle", "renderer", "context", "." ]
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#L87-L109
aragozin/jvm-tools
sjk-win32/src/main/java/org/gridkit/jvmtool/win32/SjkWinHelper.java
SjkWinHelper.getThreadCpuTimes
public synchronized boolean getThreadCpuTimes(int pid, long[] result) { """ Call kernel32::GetThreadTimes. If successful kernel and user times are set to first two slots in array. <p> Time units are microseconds. @param pid @return <code>false</code> is not successful """ int rc = GetThreadTime...
java
public synchronized boolean getThreadCpuTimes(int pid, long[] result) { int rc = GetThreadTimes(pid, callBuf); if (rc == 0) { long ktime = (0xFFFFFFFFl & callBuf[4]) | ((long)callBuf[5]) << 32; long utime = (0xFFFFFFFFl & callBuf[6]) | ((long)callBuf[7]) << 32; ...
[ "public", "synchronized", "boolean", "getThreadCpuTimes", "(", "int", "pid", ",", "long", "[", "]", "result", ")", "{", "int", "rc", "=", "GetThreadTimes", "(", "pid", ",", "callBuf", ")", ";", "if", "(", "rc", "==", "0", ")", "{", "long", "ktime", "...
Call kernel32::GetThreadTimes. If successful kernel and user times are set to first two slots in array. <p> Time units are microseconds. @param pid @return <code>false</code> is not successful
[ "Call", "kernel32", "::", "GetThreadTimes", ".", "If", "successful", "kernel", "and", "user", "times", "are", "set", "to", "first", "two", "slots", "in", "array", ".", "<p", ">", "Time", "units", "are", "microseconds", "." ]
train
https://github.com/aragozin/jvm-tools/blob/d3a4d0c6a47fb9317f274988569655f30dcd2f76/sjk-win32/src/main/java/org/gridkit/jvmtool/win32/SjkWinHelper.java#L111-L125
icode/ameba
src/main/java/ameba/db/ebean/filter/CommonExprTransformer.java
CommonExprTransformer.transformArgsToList
public static List<Expression> transformArgsToList(String operator, Val<Expression>[] args) { """ <p>transformArgsToList.</p> @param operator a {@link java.lang.String} object. @param args an array of {@link ameba.db.dsl.QueryExprMeta.Val} objects. @return a {@link java.util.List} object. """ List...
java
public static List<Expression> transformArgsToList(String operator, Val<Expression>[] args) { List<Expression> et = Lists.newArrayListWithCapacity(args.length); for (Val<Expression> e : args) { if (e.object() instanceof Expression) { et.add(e.expr()); } else { ...
[ "public", "static", "List", "<", "Expression", ">", "transformArgsToList", "(", "String", "operator", ",", "Val", "<", "Expression", ">", "[", "]", "args", ")", "{", "List", "<", "Expression", ">", "et", "=", "Lists", ".", "newArrayListWithCapacity", "(", ...
<p>transformArgsToList.</p> @param operator a {@link java.lang.String} object. @param args an array of {@link ameba.db.dsl.QueryExprMeta.Val} objects. @return a {@link java.util.List} object.
[ "<p", ">", "transformArgsToList", ".", "<", "/", "p", ">" ]
train
https://github.com/icode/ameba/blob/9d4956e935898e41331b2745e400ef869cd265e0/src/main/java/ameba/db/ebean/filter/CommonExprTransformer.java#L668-L678
cesarferreira/AndroidQuickUtils
library/src/main/java/quickutils/core/categories/voice.java
voice.getSpeechRecognitionResultFromDicionary
public static String getSpeechRecognitionResultFromDicionary(int requestCode, int resultCode, Intent data, ArrayList<String> array) { """ Get the first result that matches the Result List from Google Speech Recognition activity (DO NOT FORGET call this function on onActivityResult()) and the Dictionary given ...
java
public static String getSpeechRecognitionResultFromDicionary(int requestCode, int resultCode, Intent data, ArrayList<String> array) { ArrayList<String> matches = null; if (requestCode == 0 && resultCode == -1) { matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); StringBuilder sb = new...
[ "public", "static", "String", "getSpeechRecognitionResultFromDicionary", "(", "int", "requestCode", ",", "int", "resultCode", ",", "Intent", "data", ",", "ArrayList", "<", "String", ">", "array", ")", "{", "ArrayList", "<", "String", ">", "matches", "=", "null",...
Get the first result that matches the Result List from Google Speech Recognition activity (DO NOT FORGET call this function on onActivityResult()) and the Dictionary given @param requestCode - onActivityResult request code @param resultCode - onActivityResult result code @param data - onActivityResult Intent data @par...
[ "Get", "the", "first", "result", "that", "matches", "the", "Result", "List", "from", "Google", "Speech", "Recognition", "activity", "(", "DO", "NOT", "FORGET", "call", "this", "function", "on", "onActivityResult", "()", ")", "and", "the", "Dictionary", "given"...
train
https://github.com/cesarferreira/AndroidQuickUtils/blob/73a91daedbb9f7be7986ea786fbc441c9e5a881c/library/src/main/java/quickutils/core/categories/voice.java#L77-L92
Alluxio/alluxio
core/common/src/main/java/alluxio/conf/InstancedConfiguration.java
InstancedConfiguration.lookupRecursively
private String lookupRecursively(String base, Set<String> seen) throws UnresolvablePropertyException { """ Actual recursive lookup replacement. @param base the string to resolve @param seen strings already seen during this lookup, used to prevent unbound recursion @return the resolved string """ ...
java
private String lookupRecursively(String base, Set<String> seen) throws UnresolvablePropertyException { // check argument if (base == null) { throw new UnresolvablePropertyException("Can't resolve property with null value"); } String resolved = base; // Lets find pattern match to ${key}....
[ "private", "String", "lookupRecursively", "(", "String", "base", ",", "Set", "<", "String", ">", "seen", ")", "throws", "UnresolvablePropertyException", "{", "// check argument", "if", "(", "base", "==", "null", ")", "{", "throw", "new", "UnresolvablePropertyExcep...
Actual recursive lookup replacement. @param base the string to resolve @param seen strings already seen during this lookup, used to prevent unbound recursion @return the resolved string
[ "Actual", "recursive", "lookup", "replacement", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/common/src/main/java/alluxio/conf/InstancedConfiguration.java#L387-L416
vvakame/JsonPullParser
jsonpullparser-core/src/main/java/net/vvakame/util/jsonpullparser/builder/JsonModelCoder.java
JsonModelCoder.encodeList
public void encodeList(Writer writer, List<? extends T> list) throws IOException { """ Encodes the given {@link List} of values into the JSON format, and writes it using the given writer.<br> This method is an alias of {@link #encodeListNullToBlank(Writer, List)}. @param writer {@link Writer} to be used for wr...
java
public void encodeList(Writer writer, List<? extends T> list) throws IOException { encodeListNullToBlank(writer, list); }
[ "public", "void", "encodeList", "(", "Writer", "writer", ",", "List", "<", "?", "extends", "T", ">", "list", ")", "throws", "IOException", "{", "encodeListNullToBlank", "(", "writer", ",", "list", ")", ";", "}" ]
Encodes the given {@link List} of values into the JSON format, and writes it using the given writer.<br> This method is an alias of {@link #encodeListNullToBlank(Writer, List)}. @param writer {@link Writer} to be used for writing value @param list {@link List} of values to be encoded @throws IOException
[ "Encodes", "the", "given", "{", "@link", "List", "}", "of", "values", "into", "the", "JSON", "format", "and", "writes", "it", "using", "the", "given", "writer", ".", "<br", ">", "This", "method", "is", "an", "alias", "of", "{", "@link", "#encodeListNullT...
train
https://github.com/vvakame/JsonPullParser/blob/fce183ca66354723323a77f2ae8cb5222b5836bc/jsonpullparser-core/src/main/java/net/vvakame/util/jsonpullparser/builder/JsonModelCoder.java#L325-L327
sagiegurari/fax4j
src/main/java/org/fax4j/spi/vbs/VBSFaxClientSpi.java
VBSFaxClientSpi.generateScript
protected String generateScript(String name,Object[] input) { """ This function generates the script and returns it. @param name The script name @param input The script input @return The formatted script """ //get template String template=VBSFaxClientSpi.VBS_SCRIPTS.get(name); ...
java
protected String generateScript(String name,Object[] input) { //get template String template=VBSFaxClientSpi.VBS_SCRIPTS.get(name); if((template==null)||(template.length()==0)) { this.throwUnsupportedException(); } //get common script Stri...
[ "protected", "String", "generateScript", "(", "String", "name", ",", "Object", "[", "]", "input", ")", "{", "//get template", "String", "template", "=", "VBSFaxClientSpi", ".", "VBS_SCRIPTS", ".", "get", "(", "name", ")", ";", "if", "(", "(", "template", "...
This function generates the script and returns it. @param name The script name @param input The script input @return The formatted script
[ "This", "function", "generates", "the", "script", "and", "returns", "it", "." ]
train
https://github.com/sagiegurari/fax4j/blob/42fa51acabe7bf279e27ab3dd1cf76146b27955f/src/main/java/org/fax4j/spi/vbs/VBSFaxClientSpi.java#L719-L765
lastaflute/lasta-di
src/main/java/org/lastaflute/di/util/LdiSrl.java
LdiSrl.substringLastRear
public static String substringLastRear(String str, String... delimiters) { """ Extract rear sub-string from last-found delimiter. <pre> substringLastRear("foo.bar/baz.qux", ".", "/") returns "qux" </pre> @param str The target string. (NotNull) @param delimiters The array of delimiters. (NotNull) @return The...
java
public static String substringLastRear(String str, String... delimiters) { assertStringNotNull(str); return doSubstringFirstRear(true, true, false, str, delimiters); }
[ "public", "static", "String", "substringLastRear", "(", "String", "str", ",", "String", "...", "delimiters", ")", "{", "assertStringNotNull", "(", "str", ")", ";", "return", "doSubstringFirstRear", "(", "true", ",", "true", ",", "false", ",", "str", ",", "de...
Extract rear sub-string from last-found delimiter. <pre> substringLastRear("foo.bar/baz.qux", ".", "/") returns "qux" </pre> @param str The target string. (NotNull) @param delimiters The array of delimiters. (NotNull) @return The part of string. (NotNull: if delimiter not found, returns argument-plain string)
[ "Extract", "rear", "sub", "-", "string", "from", "last", "-", "found", "delimiter", ".", "<pre", ">", "substringLastRear", "(", "foo", ".", "bar", "/", "baz", ".", "qux", ".", "/", ")", "returns", "qux", "<", "/", "pre", ">" ]
train
https://github.com/lastaflute/lasta-di/blob/c4e123610c53a04cc836c5e456660e32d613447b/src/main/java/org/lastaflute/di/util/LdiSrl.java#L717-L720
http-builder-ng/http-builder-ng
http-builder-ng-core/src/main/java/groovyx/net/http/HttpBuilder.java
HttpBuilder.traceAsync
public <T> CompletableFuture<T> traceAsync(final Class<T> type, final Consumer<HttpConfig> configuration) { """ Executes an asynchronous TRACE request on the configured URI (asynchronous alias to `trace(Class,Consumer)`), with additional configuration provided by the configuration function. The result will be cas...
java
public <T> CompletableFuture<T> traceAsync(final Class<T> type, final Consumer<HttpConfig> configuration) { return CompletableFuture.supplyAsync(() -> trace(type, configuration), getExecutor()); }
[ "public", "<", "T", ">", "CompletableFuture", "<", "T", ">", "traceAsync", "(", "final", "Class", "<", "T", ">", "type", ",", "final", "Consumer", "<", "HttpConfig", ">", "configuration", ")", "{", "return", "CompletableFuture", ".", "supplyAsync", "(", "(...
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to `trace(Class,Consumer)`), with additional configuration provided by the configuration function. The result will be cast to the specified `type`. This method is generally used for Java-specific configuration. [source,groovy] ---- HttpB...
[ "Executes", "an", "asynchronous", "TRACE", "request", "on", "the", "configured", "URI", "(", "asynchronous", "alias", "to", "trace", "(", "Class", "Consumer", ")", ")", "with", "additional", "configuration", "provided", "by", "the", "configuration", "function", ...
train
https://github.com/http-builder-ng/http-builder-ng/blob/865f37732c102c748d3db8b905199dac9222a525/http-builder-ng-core/src/main/java/groovyx/net/http/HttpBuilder.java#L2218-L2220
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addFieldInfo
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) { """ Add field info. @param fieldInfoList the field info list @param classNameToClassInfo the map from class name to class info """ for (final FieldInfo fi : fieldInfoList) { // In...
java
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) { for (final FieldInfo fi : fieldInfoList) { // Index field annotations addFieldOrMethodAnnotationInfo(fi.annotationInfo, /* isField = */ true, classNameToClassInfo); } ...
[ "void", "addFieldInfo", "(", "final", "FieldInfoList", "fieldInfoList", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "for", "(", "final", "FieldInfo", "fi", ":", "fieldInfoList", ")", "{", "// Index field annotations...
Add field info. @param fieldInfoList the field info list @param classNameToClassInfo the map from class name to class info
[ "Add", "field", "info", "." ]
train
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L484-L494
igniterealtime/Smack
smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoStore.java
OmemoStore.mergeCachedDeviceList
OmemoCachedDeviceList mergeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoDeviceListElement list) { """ Merge the received OmemoDeviceListElement with the one we already have. If we had none, the received one is saved. @param userDevice our OmemoDevice. @param contact Contact we received the li...
java
OmemoCachedDeviceList mergeCachedDeviceList(OmemoDevice userDevice, BareJid contact, OmemoDeviceListElement list) { OmemoCachedDeviceList cached = loadCachedDeviceList(userDevice, contact); if (cached == null) { cached = new OmemoCachedDeviceList(); } if (list == null) { ...
[ "OmemoCachedDeviceList", "mergeCachedDeviceList", "(", "OmemoDevice", "userDevice", ",", "BareJid", "contact", ",", "OmemoDeviceListElement", "list", ")", "{", "OmemoCachedDeviceList", "cached", "=", "loadCachedDeviceList", "(", "userDevice", ",", "contact", ")", ";", "...
Merge the received OmemoDeviceListElement with the one we already have. If we had none, the received one is saved. @param userDevice our OmemoDevice. @param contact Contact we received the list from. @param list List we received.
[ "Merge", "the", "received", "OmemoDeviceListElement", "with", "the", "one", "we", "already", "have", ".", "If", "we", "had", "none", "the", "received", "one", "is", "saved", "." ]
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoStore.java#L104-L125
elki-project/elki
elki-clustering/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/hierarchical/AGNES.java
AGNES.findMerge
protected int findMerge(int end, MatrixParadigm mat, PointerHierarchyRepresentationBuilder builder) { """ Perform the next merge step in AGNES. @param end Active set size @param mat Matrix storage @param builder Pointer representation builder @return the index that has disappeared, for shrinking the working ...
java
protected int findMerge(int end, MatrixParadigm mat, PointerHierarchyRepresentationBuilder builder) { assert (end > 0); final DBIDArrayIter ix = mat.ix, iy = mat.iy; final double[] matrix = mat.matrix; double mindist = Double.POSITIVE_INFINITY; int x = -1, y = -1; // Find minimum: for(int ox...
[ "protected", "int", "findMerge", "(", "int", "end", ",", "MatrixParadigm", "mat", ",", "PointerHierarchyRepresentationBuilder", "builder", ")", "{", "assert", "(", "end", ">", "0", ")", ";", "final", "DBIDArrayIter", "ix", "=", "mat", ".", "ix", ",", "iy", ...
Perform the next merge step in AGNES. @param end Active set size @param mat Matrix storage @param builder Pointer representation builder @return the index that has disappeared, for shrinking the working set
[ "Perform", "the", "next", "merge", "step", "in", "AGNES", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-clustering/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/hierarchical/AGNES.java#L224-L254
lettuce-io/lettuce-core
src/main/java/io/lettuce/core/cluster/RedisClusterClient.java
RedisClusterClient.connectClusterPubSubAsync
private <K, V> CompletableFuture<StatefulRedisClusterPubSubConnection<K, V>> connectClusterPubSubAsync( RedisCodec<K, V> codec) { """ Create a clustered connection with command distributor. @param codec Use this codec to encode/decode keys and values, must not be {@literal null} @param <K> Key type...
java
private <K, V> CompletableFuture<StatefulRedisClusterPubSubConnection<K, V>> connectClusterPubSubAsync( RedisCodec<K, V> codec) { if (partitions == null) { return Futures.failed(new IllegalStateException( "Partitions not initialized. Initialize via RedisClusterClient...
[ "private", "<", "K", ",", "V", ">", "CompletableFuture", "<", "StatefulRedisClusterPubSubConnection", "<", "K", ",", "V", ">", ">", "connectClusterPubSubAsync", "(", "RedisCodec", "<", "K", ",", "V", ">", "codec", ")", "{", "if", "(", "partitions", "==", "...
Create a clustered connection with command distributor. @param codec Use this codec to encode/decode keys and values, must not be {@literal null} @param <K> Key type @param <V> Value type @return a new connection
[ "Create", "a", "clustered", "connection", "with", "command", "distributor", "." ]
train
https://github.com/lettuce-io/lettuce-core/blob/b6de74e384dea112e3656684ca3f50cdfd6c8e0d/src/main/java/io/lettuce/core/cluster/RedisClusterClient.java#L632-L685
Azure/azure-sdk-for-java
sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/ServerKeysInner.java
ServerKeysInner.beginCreateOrUpdate
public ServerKeyInner beginCreateOrUpdate(String resourceGroupName, String serverName, String keyName, ServerKeyInner parameters) { """ Creates or updates a server key. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager A...
java
public ServerKeyInner beginCreateOrUpdate(String resourceGroupName, String serverName, String keyName, ServerKeyInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, keyName, parameters).toBlocking().single().body(); }
[ "public", "ServerKeyInner", "beginCreateOrUpdate", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "keyName", ",", "ServerKeyInner", "parameters", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", "(", "resourceGroupName", ",...
Creates or updates a server key. @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 keyName The name of the server key to be operated on (updated or created). T...
[ "Creates", "or", "updates", "a", "server", "key", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/ServerKeysInner.java#L406-L408
apache/incubator-druid
extensions-core/druid-bloom-filter/src/main/java/org/apache/druid/query/filter/BloomKFilter.java
BloomKFilter.computeSizeBytes
public static int computeSizeBytes(long maxNumEntries) { """ Calculate size in bytes of a BloomKFilter for a given number of entries """ // copied from constructor checkArgument(maxNumEntries > 0, "expectedEntries should be > 0"); long numBits = optimalNumOfBits(maxNumEntries, DEFAULT_FPP); in...
java
public static int computeSizeBytes(long maxNumEntries) { // copied from constructor checkArgument(maxNumEntries > 0, "expectedEntries should be > 0"); long numBits = optimalNumOfBits(maxNumEntries, DEFAULT_FPP); int nLongs = (int) Math.ceil((double) numBits / (double) Long.SIZE); int padLongs = D...
[ "public", "static", "int", "computeSizeBytes", "(", "long", "maxNumEntries", ")", "{", "// copied from constructor", "checkArgument", "(", "maxNumEntries", ">", "0", ",", "\"expectedEntries should be > 0\"", ")", ";", "long", "numBits", "=", "optimalNumOfBits", "(", "...
Calculate size in bytes of a BloomKFilter for a given number of entries
[ "Calculate", "size", "in", "bytes", "of", "a", "BloomKFilter", "for", "a", "given", "number", "of", "entries" ]
train
https://github.com/apache/incubator-druid/blob/f776b9408962b9006cfcfe4d6c1794751972cc8e/extensions-core/druid-bloom-filter/src/main/java/org/apache/druid/query/filter/BloomKFilter.java#L351-L360
getlantern/kaleidoscope
src/main/java/org/kaleidoscope/LocalTrustGraph.java
LocalTrustGraph.addDirectedRoute
public void addDirectedRoute(final LocalTrustGraphNode from, final LocalTrustGraphNode to) { """ Add a directed trust graph link between two nodes. Note: Although this is useful for testing adverse conditions, relationships must be symmetric for the normal functioning of the algorithm. An advertising node mu...
java
public void addDirectedRoute(final LocalTrustGraphNode from, final LocalTrustGraphNode to) { from.getRoutingTable().addNeighbor(to.getId()); }
[ "public", "void", "addDirectedRoute", "(", "final", "LocalTrustGraphNode", "from", ",", "final", "LocalTrustGraphNode", "to", ")", "{", "from", ".", "getRoutingTable", "(", ")", ".", "addNeighbor", "(", "to", ".", "getId", "(", ")", ")", ";", "}" ]
Add a directed trust graph link between two nodes. Note: Although this is useful for testing adverse conditions, relationships must be symmetric for the normal functioning of the algorithm. An advertising node must trust another node to send to it, and that same node must trust the sender in order to forward the mess...
[ "Add", "a", "directed", "trust", "graph", "link", "between", "two", "nodes", "." ]
train
https://github.com/getlantern/kaleidoscope/blob/7516f05724c8f54e5d535d23da9116817c08a09f/src/main/java/org/kaleidoscope/LocalTrustGraph.java#L231-L233
aws/aws-sdk-java
aws-java-sdk-iotjobsdataplane/src/main/java/com/amazonaws/services/iotjobsdataplane/model/JobExecutionState.java
JobExecutionState.withStatusDetails
public JobExecutionState withStatusDetails(java.util.Map<String, String> statusDetails) { """ <p> A collection of name/value pairs that describe the status of the job execution. </p> @param statusDetails A collection of name/value pairs that describe the status of the job execution. @return Returns a refere...
java
public JobExecutionState withStatusDetails(java.util.Map<String, String> statusDetails) { setStatusDetails(statusDetails); return this; }
[ "public", "JobExecutionState", "withStatusDetails", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "statusDetails", ")", "{", "setStatusDetails", "(", "statusDetails", ")", ";", "return", "this", ";", "}" ]
<p> A collection of name/value pairs that describe the status of the job execution. </p> @param statusDetails A collection of name/value pairs that describe the status of the job execution. @return Returns a reference to this object so that method calls can be chained together.
[ "<p", ">", "A", "collection", "of", "name", "/", "value", "pairs", "that", "describe", "the", "status", "of", "the", "job", "execution", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iotjobsdataplane/src/main/java/com/amazonaws/services/iotjobsdataplane/model/JobExecutionState.java#L153-L156
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductVariationUrl.java
ProductVariationUrl.updateProductVariationLocalizedDeltaPriceUrl
public static MozuUrl updateProductVariationLocalizedDeltaPriceUrl(String currencyCode, String productCode, String responseFields, String variationKey) { """ Get Resource Url for UpdateProductVariationLocalizedDeltaPrice @param currencyCode The three character ISO currency code, such as USD for US Dollars. @pa...
java
public static MozuUrl updateProductVariationLocalizedDeltaPriceUrl(String currencyCode, String productCode, String responseFields, String variationKey) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/products/{productCode}/variations/{variationKey}/localizedDeltaPrice/{currencyCode}?respon...
[ "public", "static", "MozuUrl", "updateProductVariationLocalizedDeltaPriceUrl", "(", "String", "currencyCode", ",", "String", "productCode", ",", "String", "responseFields", ",", "String", "variationKey", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", ...
Get Resource Url for UpdateProductVariationLocalizedDeltaPrice @param currencyCode The three character ISO currency code, such as USD for US Dollars. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param responseFields Filtering syntax ...
[ "Get", "Resource", "Url", "for", "UpdateProductVariationLocalizedDeltaPrice" ]
train
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductVariationUrl.java#L172-L180
Azure/azure-sdk-for-java
sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/FailoverGroupsInner.java
FailoverGroupsInner.beginUpdate
public FailoverGroupInner beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) { """ Updates a failover group. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manag...
java
public FailoverGroupInner beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) { return beginUpdateWithServiceResponseAsync(resourceGroupName, serverName, failoverGroupName, parameters).toBlocking().single().body(); }
[ "public", "FailoverGroupInner", "beginUpdate", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "failoverGroupName", ",", "FailoverGroupUpdate", "parameters", ")", "{", "return", "beginUpdateWithServiceResponseAsync", "(", "resourceGroupName", ...
Updates a failover group. @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 containing the failover group. @param failoverGroupName The name of the failover group. @pa...
[ "Updates", "a", "failover", "group", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/FailoverGroupsInner.java#L666-L668
line/centraldogma
client/java-armeria/src/main/java/com/linecorp/centraldogma/client/armeria/ArmeriaCentralDogma.java
ArmeriaCentralDogma.toJson
private static JsonNode toJson(AggregatedHttpMessage res, @Nullable JsonNodeType expectedNodeType) { """ Parses the content of the specified {@link AggregatedHttpMessage} into a {@link JsonNode}. """ final String content = toString(res); final JsonNode node; try { node = Jac...
java
private static JsonNode toJson(AggregatedHttpMessage res, @Nullable JsonNodeType expectedNodeType) { final String content = toString(res); final JsonNode node; try { node = Jackson.readTree(content); } catch (JsonParseException e) { throw new CentralDogmaException...
[ "private", "static", "JsonNode", "toJson", "(", "AggregatedHttpMessage", "res", ",", "@", "Nullable", "JsonNodeType", "expectedNodeType", ")", "{", "final", "String", "content", "=", "toString", "(", "res", ")", ";", "final", "JsonNode", "node", ";", "try", "{...
Parses the content of the specified {@link AggregatedHttpMessage} into a {@link JsonNode}.
[ "Parses", "the", "content", "of", "the", "specified", "{" ]
train
https://github.com/line/centraldogma/blob/b9e46c67fbc26628c2186ce2f46e7fb303c831e9/client/java-armeria/src/main/java/com/linecorp/centraldogma/client/armeria/ArmeriaCentralDogma.java#L962-L977
forge/furnace
container-api/src/main/java/org/jboss/forge/furnace/util/ClassLoaders.java
ClassLoaders.executeIn
public static <T> T executeIn(URL[] urls, Callable<T> callable) throws Exception { """ Execute the given {@link Callable} by creating an {@link URLClassLoader} from the given {@link URL} array. <p/> Return the result, if any. """ ClassLoader savedClassLoader = Thread.currentThread().getContextClassLoad...
java
public static <T> T executeIn(URL[] urls, Callable<T> callable) throws Exception { ClassLoader savedClassLoader = Thread.currentThread().getContextClassLoader(); URLClassLoader newClassLoader = null; try { newClassLoader = new URLClassLoader(urls, savedClassLoader); return e...
[ "public", "static", "<", "T", ">", "T", "executeIn", "(", "URL", "[", "]", "urls", ",", "Callable", "<", "T", ">", "callable", ")", "throws", "Exception", "{", "ClassLoader", "savedClassLoader", "=", "Thread", ".", "currentThread", "(", ")", ".", "getCon...
Execute the given {@link Callable} by creating an {@link URLClassLoader} from the given {@link URL} array. <p/> Return the result, if any.
[ "Execute", "the", "given", "{" ]
train
https://github.com/forge/furnace/blob/bbe6deaa3c0d85ba43daa3e2f7d486f2dad21e0a/container-api/src/main/java/org/jboss/forge/furnace/util/ClassLoaders.java#L87-L100
apache/incubator-gobblin
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/retention/dataset/FsCleanableHelper.java
FsCleanableHelper.cleanEmptyDirectories
public void cleanEmptyDirectories(final Set<Path> possiblyEmptyDirectories, final FileSystemDataset fsDataset) throws IOException { """ Deletes any empty paths in <code>possiblyEmptyDirectories</code> all the way upto the {@link FileSystemDataset#datasetRoot()}. """ if (this.deleteEmptyDirectories && !this...
java
public void cleanEmptyDirectories(final Set<Path> possiblyEmptyDirectories, final FileSystemDataset fsDataset) throws IOException { if (this.deleteEmptyDirectories && !this.simulate) { for (Path parentDirectory : possiblyEmptyDirectories) { PathUtils.deleteEmptyParentDirectories(fs, fsDataset.datasetR...
[ "public", "void", "cleanEmptyDirectories", "(", "final", "Set", "<", "Path", ">", "possiblyEmptyDirectories", ",", "final", "FileSystemDataset", "fsDataset", ")", "throws", "IOException", "{", "if", "(", "this", ".", "deleteEmptyDirectories", "&&", "!", "this", "....
Deletes any empty paths in <code>possiblyEmptyDirectories</code> all the way upto the {@link FileSystemDataset#datasetRoot()}.
[ "Deletes", "any", "empty", "paths", "in", "<code", ">", "possiblyEmptyDirectories<", "/", "code", ">", "all", "the", "way", "upto", "the", "{" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/retention/dataset/FsCleanableHelper.java#L158-L164
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/SSLHelper.java
SSLHelper.establishSSLContext
public static void establishSSLContext(HttpClient client, int port, LibertyServer server) { """ Adds an SSL context to the HttpClient. No trust or client certificate is established and a trust-all policy is assumed. @param client the HttpClient @param port SSL port @param server the LibertyServer """ ...
java
public static void establishSSLContext(HttpClient client, int port, LibertyServer server) { establishSSLContext(client, port, server, null, null, null, null, "TLSv1.2"); }
[ "public", "static", "void", "establishSSLContext", "(", "HttpClient", "client", ",", "int", "port", ",", "LibertyServer", "server", ")", "{", "establishSSLContext", "(", "client", ",", "port", ",", "server", ",", "null", ",", "null", ",", "null", ",", "null"...
Adds an SSL context to the HttpClient. No trust or client certificate is established and a trust-all policy is assumed. @param client the HttpClient @param port SSL port @param server the LibertyServer
[ "Adds", "an", "SSL", "context", "to", "the", "HttpClient", ".", "No", "trust", "or", "client", "certificate", "is", "established", "and", "a", "trust", "-", "all", "policy", "is", "assumed", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/SSLHelper.java#L48-L50
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParseUtil.java
BpmnParseUtil.parseOutputParameterElement
public static void parseOutputParameterElement(Element outputParameterElement, IoMapping ioMapping) { """ Parses a output parameter and adds it to the {@link IoMapping}. @param outputParameterElement the output parameter element @param ioMapping the mapping to add the element @throws BpmnParseException if the...
java
public static void parseOutputParameterElement(Element outputParameterElement, IoMapping ioMapping) { String nameAttribute = outputParameterElement.attribute("name"); if(nameAttribute == null || nameAttribute.isEmpty()) { throw new BpmnParseException("Missing attribute 'name' for outputParameter", outputP...
[ "public", "static", "void", "parseOutputParameterElement", "(", "Element", "outputParameterElement", ",", "IoMapping", "ioMapping", ")", "{", "String", "nameAttribute", "=", "outputParameterElement", ".", "attribute", "(", "\"name\"", ")", ";", "if", "(", "nameAttribu...
Parses a output parameter and adds it to the {@link IoMapping}. @param outputParameterElement the output parameter element @param ioMapping the mapping to add the element @throws BpmnParseException if the output parameter element is malformed
[ "Parses", "a", "output", "parameter", "and", "adds", "it", "to", "the", "{", "@link", "IoMapping", "}", "." ]
train
https://github.com/camunda/camunda-bpm-platform/blob/1a464fc887ef3760e53d6f91b9e5b871a0d77cc0/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParseUtil.java#L136-L146
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AVA.java
AVAKeyword.getKeyword
static String getKeyword(ObjectIdentifier oid, int standard) { """ Get a keyword for the given ObjectIdentifier according to standard. If no keyword is available, the ObjectIdentifier is encoded as a String. """ return getKeyword (oid, standard, Collections.<String, String>emptyMap()); ...
java
static String getKeyword(ObjectIdentifier oid, int standard) { return getKeyword (oid, standard, Collections.<String, String>emptyMap()); }
[ "static", "String", "getKeyword", "(", "ObjectIdentifier", "oid", ",", "int", "standard", ")", "{", "return", "getKeyword", "(", "oid", ",", "standard", ",", "Collections", ".", "<", "String", ",", "String", ">", "emptyMap", "(", ")", ")", ";", "}" ]
Get a keyword for the given ObjectIdentifier according to standard. If no keyword is available, the ObjectIdentifier is encoded as a String.
[ "Get", "a", "keyword", "for", "the", "given", "ObjectIdentifier", "according", "to", "standard", ".", "If", "no", "keyword", "is", "available", "the", "ObjectIdentifier", "is", "encoded", "as", "a", "String", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AVA.java#L1305-L1308
nohana/Amalgam
amalgam/src/main/java/com/amalgam/os/BundleUtils.java
BundleUtils.optShort
public static short optShort(@Nullable Bundle bundle, @Nullable String key, short fallback) { """ Returns a optional short value. In other words, returns the value mapped by key if it exists and is a short. The bundle argument is allowed to be {@code null}. If the bundle is null, this method returns a fallback va...
java
public static short optShort(@Nullable Bundle bundle, @Nullable String key, short fallback) { if (bundle == null) { return fallback; } return bundle.getShort(key, fallback); }
[ "public", "static", "short", "optShort", "(", "@", "Nullable", "Bundle", "bundle", ",", "@", "Nullable", "String", "key", ",", "short", "fallback", ")", "{", "if", "(", "bundle", "==", "null", ")", "{", "return", "fallback", ";", "}", "return", "bundle",...
Returns a optional short value. In other words, returns the value mapped by key if it exists and is a short. The bundle argument is allowed to be {@code null}. If the bundle is null, this method returns a fallback value. @param bundle a bundle. If the bundle is null, this method will return a fallback value. @param key...
[ "Returns", "a", "optional", "short", "value", ".", "In", "other", "words", "returns", "the", "value", "mapped", "by", "key", "if", "it", "exists", "and", "is", "a", "short", ".", "The", "bundle", "argument", "is", "allowed", "to", "be", "{" ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/os/BundleUtils.java#L827-L832
bitcoinj/bitcoinj
core/src/main/java/org/bitcoinj/core/Block.java
Block.createNextBlockWithCoinbase
@VisibleForTesting Block createNextBlockWithCoinbase(long version, byte[] pubKey, final int height) { """ Create a block sending 50BTC as a coinbase transaction to the public key specified. This method is intended for test use only. """ return createNextBlock(null, version, (TransactionOutPoint) n...
java
@VisibleForTesting Block createNextBlockWithCoinbase(long version, byte[] pubKey, final int height) { return createNextBlock(null, version, (TransactionOutPoint) null, Utils.currentTimeSeconds(), pubKey, FIFTY_COINS, height); }
[ "@", "VisibleForTesting", "Block", "createNextBlockWithCoinbase", "(", "long", "version", ",", "byte", "[", "]", "pubKey", ",", "final", "int", "height", ")", "{", "return", "createNextBlock", "(", "null", ",", "version", ",", "(", "TransactionOutPoint", ")", ...
Create a block sending 50BTC as a coinbase transaction to the public key specified. This method is intended for test use only.
[ "Create", "a", "block", "sending", "50BTC", "as", "a", "coinbase", "transaction", "to", "the", "public", "key", "specified", ".", "This", "method", "is", "intended", "for", "test", "use", "only", "." ]
train
https://github.com/bitcoinj/bitcoinj/blob/9cf13d29315014ed59cf4fc5944e5f227e8df9a6/core/src/main/java/org/bitcoinj/core/Block.java#L1028-L1032
momokan/LWJGFont
src/main/java/net/chocolapod/lwjgfont/LWJGFont.java
LWJGFont.drawParagraph
public final void drawParagraph(String[] texts, float dstX, float dstY, float dstZ, float paragraphWidth, ALIGN align) throws IOException { """ Draws the paragraph given by the specified string, using this font instance's current color.<br> if the specified string protrudes from paragraphWidth, protruded substrin...
java
public final void drawParagraph(String[] texts, float dstX, float dstY, float dstZ, float paragraphWidth, ALIGN align) throws IOException { if (LwjgFontUtil.isEmpty(texts)) { return; } String buff = ""; for (String text: texts) { if (!LwjgFontUtil.isEmpty(text)) { buff += "\n"; } buff += text; ...
[ "public", "final", "void", "drawParagraph", "(", "String", "[", "]", "texts", ",", "float", "dstX", ",", "float", "dstY", ",", "float", "dstZ", ",", "float", "paragraphWidth", ",", "ALIGN", "align", ")", "throws", "IOException", "{", "if", "(", "LwjgFontUt...
Draws the paragraph given by the specified string, using this font instance's current color.<br> if the specified string protrudes from paragraphWidth, protruded substring is auto wrapped with the specified align.<br> Note that the specified destination coordinates is a left point of the rendered string's baseline. @pa...
[ "Draws", "the", "paragraph", "given", "by", "the", "specified", "string", "using", "this", "font", "instance", "s", "current", "color", ".", "<br", ">", "if", "the", "specified", "string", "protrudes", "from", "paragraphWidth", "protruded", "substring", "is", ...
train
https://github.com/momokan/LWJGFont/blob/f2d6138b73d84a7e2c1271bae25b4c76488d9ec2/src/main/java/net/chocolapod/lwjgfont/LWJGFont.java#L187-L201
Deep-Symmetry/beat-link
src/main/java/org/deepsymmetry/beatlink/VirtualCdj.java
VirtualCdj.assembleAndSendPacket
@SuppressWarnings("SameParameterValue") private void assembleAndSendPacket(Util.PacketType kind, byte[] payload, InetAddress destination, int port) throws IOException { """ Finish the work of building and sending a protocol packet. @param kind the type of packet to create and send @param payload the conten...
java
@SuppressWarnings("SameParameterValue") private void assembleAndSendPacket(Util.PacketType kind, byte[] payload, InetAddress destination, int port) throws IOException { DatagramPacket packet = Util.buildPacket(kind, ByteBuffer.wrap(announcementBytes, DEVICE_NAME_OFFSET, DEVICE_NAME_LENGTH).a...
[ "@", "SuppressWarnings", "(", "\"SameParameterValue\"", ")", "private", "void", "assembleAndSendPacket", "(", "Util", ".", "PacketType", "kind", ",", "byte", "[", "]", "payload", ",", "InetAddress", "destination", ",", "int", "port", ")", "throws", "IOException", ...
Finish the work of building and sending a protocol packet. @param kind the type of packet to create and send @param payload the content which will follow our device name in the packet @param destination where the packet should be sent @param port the port to which the packet should be sent @throws IOException if ther...
[ "Finish", "the", "work", "of", "building", "and", "sending", "a", "protocol", "packet", "." ]
train
https://github.com/Deep-Symmetry/beat-link/blob/f958a2a70e8a87a31a75326d7b4db77c2f0b4212/src/main/java/org/deepsymmetry/beatlink/VirtualCdj.java#L1092-L1100
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/pipeline/LabeledChunkIdentifier.java
LabeledChunkIdentifier.isStartOfChunk
public static boolean isStartOfChunk(LabelTagType prev, LabelTagType cur) { """ Returns whether a chunk started between the previous and current token @param prev - the label/tag/type of the previous token @param cur - the label/tag/type of the current token @return true if the current token was the first token...
java
public static boolean isStartOfChunk(LabelTagType prev, LabelTagType cur) { if (prev == null) { return isStartOfChunk("O", "O", cur.tag, cur.type); } else { return isStartOfChunk(prev.tag, prev.type, cur.tag, cur.type); } }
[ "public", "static", "boolean", "isStartOfChunk", "(", "LabelTagType", "prev", ",", "LabelTagType", "cur", ")", "{", "if", "(", "prev", "==", "null", ")", "{", "return", "isStartOfChunk", "(", "\"O\"", ",", "\"O\"", ",", "cur", ".", "tag", ",", "cur", "."...
Returns whether a chunk started between the previous and current token @param prev - the label/tag/type of the previous token @param cur - the label/tag/type of the current token @return true if the current token was the first token of a chunk
[ "Returns", "whether", "a", "chunk", "started", "between", "the", "previous", "and", "current", "token" ]
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/pipeline/LabeledChunkIdentifier.java#L196-L203
michael-rapp/AndroidBottomSheet
library/src/main/java/de/mrapp/android/bottomsheet/BottomSheet.java
BottomSheet.createCancelOnTouchListener
private View.OnTouchListener createCancelOnTouchListener() { """ Creates and returns a listener, which allows to cancel the bottom sheet, when the decor view is touched. @return The listener, which has been created, as an instance of the type {@link View.OnTouchListener} """ return new View.OnTouc...
java
private View.OnTouchListener createCancelOnTouchListener() { return new View.OnTouchListener() { @Override public boolean onTouch(final View v, final MotionEvent event) { if (cancelable && canceledOnTouchOutside) { cancel(); v.perf...
[ "private", "View", ".", "OnTouchListener", "createCancelOnTouchListener", "(", ")", "{", "return", "new", "View", ".", "OnTouchListener", "(", ")", "{", "@", "Override", "public", "boolean", "onTouch", "(", "final", "View", "v", ",", "final", "MotionEvent", "e...
Creates and returns a listener, which allows to cancel the bottom sheet, when the decor view is touched. @return The listener, which has been created, as an instance of the type {@link View.OnTouchListener}
[ "Creates", "and", "returns", "a", "listener", "which", "allows", "to", "cancel", "the", "bottom", "sheet", "when", "the", "decor", "view", "is", "touched", "." ]
train
https://github.com/michael-rapp/AndroidBottomSheet/blob/6e4690ee9f63b14a7b143d3a3717b5f8a11ca503/library/src/main/java/de/mrapp/android/bottomsheet/BottomSheet.java#L1441-L1456
cdk/cdk
base/standard/src/main/java/org/openscience/cdk/tools/manipulator/ReactionSchemeManipulator.java
ReactionSchemeManipulator.getAllAtomContainers
public static IAtomContainerSet getAllAtomContainers(IReactionScheme scheme) { """ get all AtomContainers object from a set of Reactions. @param scheme The scheme of reaction to inspect @return The IAtomContainerSet """ return getAllAtomContainers(scheme, scheme.getBuilder().newInstance(IAtom...
java
public static IAtomContainerSet getAllAtomContainers(IReactionScheme scheme) { return getAllAtomContainers(scheme, scheme.getBuilder().newInstance(IAtomContainerSet.class)); }
[ "public", "static", "IAtomContainerSet", "getAllAtomContainers", "(", "IReactionScheme", "scheme", ")", "{", "return", "getAllAtomContainers", "(", "scheme", ",", "scheme", ".", "getBuilder", "(", ")", ".", "newInstance", "(", "IAtomContainerSet", ".", "class", ")",...
get all AtomContainers object from a set of Reactions. @param scheme The scheme of reaction to inspect @return The IAtomContainerSet
[ "get", "all", "AtomContainers", "object", "from", "a", "set", "of", "Reactions", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/base/standard/src/main/java/org/openscience/cdk/tools/manipulator/ReactionSchemeManipulator.java#L87-L89
fuzzylite/jfuzzylite
jfuzzylite/src/main/java/com/fuzzylite/defuzzifier/WeightedSum.java
WeightedSum.defuzzify
@Override public double defuzzify(Term term, double minimum, double maximum) { """ Computes the weighted sum of the given fuzzy set represented as an Aggregated term as `y = \sum_i{w_iz_i} `, where `w_i` is the activation degree of term `i`, and `z_i = \mu_i(w_i) `. From version 6.0, the implication and a...
java
@Override public double defuzzify(Term term, double minimum, double maximum) { Aggregated fuzzyOutput = (Aggregated) term; if (fuzzyOutput.getTerms().isEmpty()) { return Double.NaN; } minimum = fuzzyOutput.getMinimum(); maximum = fuzzyOutput.getMaximum(); ...
[ "@", "Override", "public", "double", "defuzzify", "(", "Term", "term", ",", "double", "minimum", ",", "double", "maximum", ")", "{", "Aggregated", "fuzzyOutput", "=", "(", "Aggregated", ")", "term", ";", "if", "(", "fuzzyOutput", ".", "getTerms", "(", ")",...
Computes the weighted sum of the given fuzzy set represented as an Aggregated term as `y = \sum_i{w_iz_i} `, where `w_i` is the activation degree of term `i`, and `z_i = \mu_i(w_i) `. From version 6.0, the implication and aggregation operators are not utilized for defuzzification. @param term is the fuzzy set represe...
[ "Computes", "the", "weighted", "sum", "of", "the", "given", "fuzzy", "set", "represented", "as", "an", "Aggregated", "term", "as", "y", "=", "\\", "sum_i", "{", "w_iz_i", "}", "where", "w_i", "is", "the", "activation", "degree", "of", "term", "i", "and",...
train
https://github.com/fuzzylite/jfuzzylite/blob/583ac1928f39512af75de80d560e67448039595a/jfuzzylite/src/main/java/com/fuzzylite/defuzzifier/WeightedSum.java#L62-L93
aws/aws-sdk-java
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/ActionExecutionInput.java
ActionExecutionInput.withConfiguration
public ActionExecutionInput withConfiguration(java.util.Map<String, String> configuration) { """ <p> Configuration data for an action execution. </p> @param configuration Configuration data for an action execution. @return Returns a reference to this object so that method calls can be chained together. ...
java
public ActionExecutionInput withConfiguration(java.util.Map<String, String> configuration) { setConfiguration(configuration); return this; }
[ "public", "ActionExecutionInput", "withConfiguration", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "configuration", ")", "{", "setConfiguration", "(", "configuration", ")", ";", "return", "this", ";", "}" ]
<p> Configuration data for an action execution. </p> @param configuration Configuration data for an action execution. @return Returns a reference to this object so that method calls can be chained together.
[ "<p", ">", "Configuration", "data", "for", "an", "action", "execution", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/ActionExecutionInput.java#L119-L122
bazaarvoice/emodb
sor/src/main/java/com/bazaarvoice/emodb/sor/audit/s3/AthenaAuditWriter.java
AthenaAuditWriter.transferLogFilesToS3
private void transferLogFilesToS3() { """ This method takes all log files prepared by {@link #prepareClosedLogFilesForTransfer()} and initiates their transfer to S3. The transfer itself is performed asynchronously. """ if (_fileTransfersEnabled) { // Find all closed log files in the stagi...
java
private void transferLogFilesToS3() { if (_fileTransfersEnabled) { // Find all closed log files in the staging directory and move them to S3 for (final File logFile : _stagingDir.listFiles((dir, name) -> name.startsWith(_logFilePrefix) && name.endsWith(COMPRESSED_FILE_SUFFIX))) { ...
[ "private", "void", "transferLogFilesToS3", "(", ")", "{", "if", "(", "_fileTransfersEnabled", ")", "{", "// Find all closed log files in the staging directory and move them to S3", "for", "(", "final", "File", "logFile", ":", "_stagingDir", ".", "listFiles", "(", "(", "...
This method takes all log files prepared by {@link #prepareClosedLogFilesForTransfer()} and initiates their transfer to S3. The transfer itself is performed asynchronously.
[ "This", "method", "takes", "all", "log", "files", "prepared", "by", "{" ]
train
https://github.com/bazaarvoice/emodb/blob/97ec7671bc78b47fc2a1c11298c0c872bd5ec7fb/sor/src/main/java/com/bazaarvoice/emodb/sor/audit/s3/AthenaAuditWriter.java#L307-L336
j256/ormlite-core
src/main/java/com/j256/ormlite/stmt/Where.java
Where.isNotNull
public Where<T, ID> isNotNull(String columnName) throws SQLException { """ Add a 'IS NOT NULL' clause so the column must not be null. '&lt;&gt;' NULL does not work. """ addClause(new IsNotNull(columnName, findColumnFieldType(columnName))); return this; }
java
public Where<T, ID> isNotNull(String columnName) throws SQLException { addClause(new IsNotNull(columnName, findColumnFieldType(columnName))); return this; }
[ "public", "Where", "<", "T", ",", "ID", ">", "isNotNull", "(", "String", "columnName", ")", "throws", "SQLException", "{", "addClause", "(", "new", "IsNotNull", "(", "columnName", ",", "findColumnFieldType", "(", "columnName", ")", ")", ")", ";", "return", ...
Add a 'IS NOT NULL' clause so the column must not be null. '&lt;&gt;' NULL does not work.
[ "Add", "a", "IS", "NOT", "NULL", "clause", "so", "the", "column", "must", "not", "be", "null", ".", "&lt", ";", "&gt", ";", "NULL", "does", "not", "work", "." ]
train
https://github.com/j256/ormlite-core/blob/154d85bbb9614a0ea65a012251257831fb4fba21/src/main/java/com/j256/ormlite/stmt/Where.java#L291-L294
keenon/loglinear
src/main/java/com/github/keenon/loglinear/model/ConcatVectorNamespace.java
ConcatVectorNamespace.setSparseFeature
public void setSparseFeature(ConcatVector vector, String featureName, Collection<String> sparseFeatures) { """ This adds a sparse set feature to a vector, setting the appropriate components of the given vector to the passed in value. @param vector the vector @param featureName the feature whose value to set @p...
java
public void setSparseFeature(ConcatVector vector, String featureName, Collection<String> sparseFeatures) { int[] indices = new int[sparseFeatures.size()]; double[] values = new double[sparseFeatures.size()]; int offset = 0; for (String index : sparseFeatures) { indices[offset...
[ "public", "void", "setSparseFeature", "(", "ConcatVector", "vector", ",", "String", "featureName", ",", "Collection", "<", "String", ">", "sparseFeatures", ")", "{", "int", "[", "]", "indices", "=", "new", "int", "[", "sparseFeatures", ".", "size", "(", ")",...
This adds a sparse set feature to a vector, setting the appropriate components of the given vector to the passed in value. @param vector the vector @param featureName the feature whose value to set @param sparseFeatures the indices we wish to set, whose values will all be set to 1.0
[ "This", "adds", "a", "sparse", "set", "feature", "to", "a", "vector", "setting", "the", "appropriate", "components", "of", "the", "given", "vector", "to", "the", "passed", "in", "value", "." ]
train
https://github.com/keenon/loglinear/blob/fa0c370ab6782015412f676ef2ab11c97be58e29/src/main/java/com/github/keenon/loglinear/model/ConcatVectorNamespace.java#L176-L186
orbisgis/h2gis
h2gis-functions/src/main/java/org/h2gis/functions/spatial/clean/MakeValidOp.java
MakeValidOp.removeLowerDimension
private void removeLowerDimension(Geometry geometry, List<Geometry> result, int dimension) { """ Reursively remove geometries with a dimension less than dimension parameter """ for (int i = 0; i < geometry.getNumGeometries(); i++) { Geometry g = geometry.getGeometryN(i); if (g i...
java
private void removeLowerDimension(Geometry geometry, List<Geometry> result, int dimension) { for (int i = 0; i < geometry.getNumGeometries(); i++) { Geometry g = geometry.getGeometryN(i); if (g instanceof GeometryCollection) { removeLowerDimension(g, result, dimension); ...
[ "private", "void", "removeLowerDimension", "(", "Geometry", "geometry", ",", "List", "<", "Geometry", ">", "result", ",", "int", "dimension", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "geometry", ".", "getNumGeometries", "(", ")", ";", ...
Reursively remove geometries with a dimension less than dimension parameter
[ "Reursively", "remove", "geometries", "with", "a", "dimension", "less", "than", "dimension", "parameter" ]
train
https://github.com/orbisgis/h2gis/blob/9cd70b447e6469cecbc2fc64b16774b59491df3b/h2gis-functions/src/main/java/org/h2gis/functions/spatial/clean/MakeValidOp.java#L237-L246
woxblom/DragListView
library/src/main/java/com/woxthebox/draglistview/BoardView.java
BoardView.addColumn
public DragItemRecyclerView addColumn(final DragItemAdapter adapter, final @Nullable View header, @Nullable View columnDragView, boolean hasFixedItemSize) { """ Adds a column at the last index of the board. @param adapter Adapter with the items for the column. @param header Header view that ...
java
public DragItemRecyclerView addColumn(final DragItemAdapter adapter, final @Nullable View header, @Nullable View columnDragView, boolean hasFixedItemSize) { final DragItemRecyclerView recyclerView = insertColumn(adapter, getColumnCount(), header, hasFixedItemSize); setupColumnDragListener(columnDragView...
[ "public", "DragItemRecyclerView", "addColumn", "(", "final", "DragItemAdapter", "adapter", ",", "final", "@", "Nullable", "View", "header", ",", "@", "Nullable", "View", "columnDragView", ",", "boolean", "hasFixedItemSize", ")", "{", "final", "DragItemRecyclerView", ...
Adds a column at the last index of the board. @param adapter Adapter with the items for the column. @param header Header view that will be positioned above the column. Can be null. @param columnDragView View that will act as handle to drag and drop columns. Can be null. @param hasFixedItemSize If ...
[ "Adds", "a", "column", "at", "the", "last", "index", "of", "the", "board", "." ]
train
https://github.com/woxblom/DragListView/blob/9823406f21d96035e88d8fd173f64419d0bb89f3/library/src/main/java/com/woxthebox/draglistview/BoardView.java#L815-L819
Carbonado/Carbonado
src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepositoryBuilder.java
JDBCRepositoryBuilder.getDataSource
public DataSource getDataSource() throws ConfigurationException { """ Returns the source of JDBC connections, which defaults to a non-pooling source if driver class, driver URL, username, and password are all supplied. @throws ConfigurationException if driver class wasn't found """ if (mDataSourc...
java
public DataSource getDataSource() throws ConfigurationException { if (mDataSource == null) { if (mDriverClassName != null && mURL != null) { try { mDataSource = new SimpleDataSource (mDriverClassName, mURL, mUsername, mPassword); ...
[ "public", "DataSource", "getDataSource", "(", ")", "throws", "ConfigurationException", "{", "if", "(", "mDataSource", "==", "null", ")", "{", "if", "(", "mDriverClassName", "!=", "null", "&&", "mURL", "!=", "null", ")", "{", "try", "{", "mDataSource", "=", ...
Returns the source of JDBC connections, which defaults to a non-pooling source if driver class, driver URL, username, and password are all supplied. @throws ConfigurationException if driver class wasn't found
[ "Returns", "the", "source", "of", "JDBC", "connections", "which", "defaults", "to", "a", "non", "-", "pooling", "source", "if", "driver", "class", "driver", "URL", "username", "and", "password", "are", "all", "supplied", "." ]
train
https://github.com/Carbonado/Carbonado/blob/eee29b365a61c8f03e1a1dc6bed0692e6b04b1db/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepositoryBuilder.java#L149-L171
looly/hutool
hutool-aop/src/main/java/cn/hutool/aop/proxy/ProxyFactory.java
ProxyFactory.createProxy
public static <T> T createProxy(T target, Class<? extends Aspect> aspectClass) { """ 根据用户引入Cglib与否自动创建代理对象 @param <T> 切面对象类型 @param target 目标对象 @param aspectClass 切面对象类 @return 代理对象 """ return createProxy(target, ReflectUtil.newInstance(aspectClass)); }
java
public static <T> T createProxy(T target, Class<? extends Aspect> aspectClass){ return createProxy(target, ReflectUtil.newInstance(aspectClass)); }
[ "public", "static", "<", "T", ">", "T", "createProxy", "(", "T", "target", ",", "Class", "<", "?", "extends", "Aspect", ">", "aspectClass", ")", "{", "return", "createProxy", "(", "target", ",", "ReflectUtil", ".", "newInstance", "(", "aspectClass", ")", ...
根据用户引入Cglib与否自动创建代理对象 @param <T> 切面对象类型 @param target 目标对象 @param aspectClass 切面对象类 @return 代理对象
[ "根据用户引入Cglib与否自动创建代理对象" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-aop/src/main/java/cn/hutool/aop/proxy/ProxyFactory.java#L32-L34
googleads/googleads-java-lib
examples/admanager_axis/src/main/java/admanager/axis/v201811/reportservice/AsyncDownloadReport.java
AsyncDownloadReport.runExample
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { """ Runs the example. @param adManagerServices the services factory. @param session the session. @throws ApiException if the API request failed with one or more service errors. @throws ...
java
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the ReportService. ReportServiceInterface reportService = adManagerServices.get(session, ReportServiceInterface.class); // Create report query. ReportQuery reportQu...
[ "public", "static", "void", "runExample", "(", "AdManagerServices", "adManagerServices", ",", "AdManagerSession", "session", ")", "throws", "RemoteException", "{", "// Get the ReportService.", "ReportServiceInterface", "reportService", "=", "adManagerServices", ".", "get", ...
Runs the example. @param adManagerServices the services factory. @param session the session. @throws ApiException if the API request failed with one or more service errors. @throws RemoteException if the API request failed due to other errors.
[ "Runs", "the", "example", "." ]
train
https://github.com/googleads/googleads-java-lib/blob/967957cc4f6076514e3a7926fe653e4f1f7cc9c9/examples/admanager_axis/src/main/java/admanager/axis/v201811/reportservice/AsyncDownloadReport.java#L62-L126
rometools/rome
rome-certiorem/src/main/java/com/rometools/certiorem/pub/Publisher.java
Publisher.sendUpdateNotification
public void sendUpdateNotification(final String hub, final String topic) throws NotificationException { """ Sends the HUB url a notification of a change in topic @param hub URL of the hub to notify. @param topic The Topic that has changed @throws NotificationException Any failure """ try { ...
java
public void sendUpdateNotification(final String hub, final String topic) throws NotificationException { try { final StringBuilder sb = new StringBuilder("hub.mode=publish&hub.url=").append(URLEncoder.encode(topic, "UTF-8")); final URL hubUrl = new URL(hub); final HttpURLConne...
[ "public", "void", "sendUpdateNotification", "(", "final", "String", "hub", ",", "final", "String", "topic", ")", "throws", "NotificationException", "{", "try", "{", "final", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "\"hub.mode=publish&hub.url=\"", ")...
Sends the HUB url a notification of a change in topic @param hub URL of the hub to notify. @param topic The Topic that has changed @throws NotificationException Any failure
[ "Sends", "the", "HUB", "url", "a", "notification", "of", "a", "change", "in", "topic" ]
train
https://github.com/rometools/rome/blob/5fcf0b1a9a6cdedbe253a45ad9468c54a0f97010/rome-certiorem/src/main/java/com/rometools/certiorem/pub/Publisher.java#L68-L97
lionsoul2014/jcseg
jcseg-core/src/main/java/org/lionsoul/jcseg/tokenizer/ASegment.java
ASegment.findCHName
@Deprecated public boolean findCHName( IWord w, IChunk chunk ) { """ find the Chinese double name: when the last name and the first char of the name make up a word @param chunk the best chunk. @return boolean """ String s1 = new String(w.getValue().charAt(0)+""); String s2 = new String...
java
@Deprecated public boolean findCHName( IWord w, IChunk chunk ) { String s1 = new String(w.getValue().charAt(0)+""); String s2 = new String(w.getValue().charAt(1)+""); if ( dic.match(ILexicon.CN_LNAME, s1) && dic.match(ILexicon.CN_DNAME_1, s2)) { IWor...
[ "@", "Deprecated", "public", "boolean", "findCHName", "(", "IWord", "w", ",", "IChunk", "chunk", ")", "{", "String", "s1", "=", "new", "String", "(", "w", ".", "getValue", "(", ")", ".", "charAt", "(", "0", ")", "+", "\"\"", ")", ";", "String", "s2...
find the Chinese double name: when the last name and the first char of the name make up a word @param chunk the best chunk. @return boolean
[ "find", "the", "Chinese", "double", "name", ":", "when", "the", "last", "name", "and", "the", "first", "char", "of", "the", "name", "make", "up", "a", "word" ]
train
https://github.com/lionsoul2014/jcseg/blob/7c8a912e3bbcaf4f8de701180b9c24e2e444a94b/jcseg-core/src/main/java/org/lionsoul/jcseg/tokenizer/ASegment.java#L1093-L1119
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.purgeDeletedSecretAsync
public ServiceFuture<Void> purgeDeletedSecretAsync(String vaultBaseUrl, String secretName, final ServiceCallback<Void> serviceCallback) { """ Permanently deletes the specified secret. The purge deleted secret operation removes the secret permanently, without the possibility of recovery. This operation can only be...
java
public ServiceFuture<Void> purgeDeletedSecretAsync(String vaultBaseUrl, String secretName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(purgeDeletedSecretWithServiceResponseAsync(vaultBaseUrl, secretName), serviceCallback); }
[ "public", "ServiceFuture", "<", "Void", ">", "purgeDeletedSecretAsync", "(", "String", "vaultBaseUrl", ",", "String", "secretName", ",", "final", "ServiceCallback", "<", "Void", ">", "serviceCallback", ")", "{", "return", "ServiceFuture", ".", "fromResponse", "(", ...
Permanently deletes the specified secret. The purge deleted secret operation removes the secret permanently, without the possibility of recovery. This operation can only be enabled on a soft-delete enabled vault. This operation requires the secrets/purge permission. @param vaultBaseUrl The vault name, for example http...
[ "Permanently", "deletes", "the", "specified", "secret", ".", "The", "purge", "deleted", "secret", "operation", "removes", "the", "secret", "permanently", "without", "the", "possibility", "of", "recovery", ".", "This", "operation", "can", "only", "be", "enabled", ...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java#L4744-L4746
zerodhatech/javakiteconnect
kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java
KiteTicker.setMode
public void setMode(ArrayList<Long> tokens, String mode) { """ Setting different modes for an arraylist of tokens. @param tokens an arraylist of tokens @param mode the mode that needs to be set. Scroll up to see different kind of modes """ JSONObject jobj = new JSONObject(); try { ...
java
public void setMode(ArrayList<Long> tokens, String mode){ JSONObject jobj = new JSONObject(); try { // int a[] = {256265, 408065, 779521, 738561, 177665, 25601}; JSONArray list = new JSONArray(); JSONArray listMain = new JSONArray(); listMain.put(0, mode);...
[ "public", "void", "setMode", "(", "ArrayList", "<", "Long", ">", "tokens", ",", "String", "mode", ")", "{", "JSONObject", "jobj", "=", "new", "JSONObject", "(", ")", ";", "try", "{", "// int a[] = {256265, 408065, 779521, 738561, 177665, 25601};", "JSONArray", "li...
Setting different modes for an arraylist of tokens. @param tokens an arraylist of tokens @param mode the mode that needs to be set. Scroll up to see different kind of modes
[ "Setting", "different", "modes", "for", "an", "arraylist", "of", "tokens", "." ]
train
https://github.com/zerodhatech/javakiteconnect/blob/4a3f15ff2c8a1b3b6ec61799f8bb047e4dfeb92d/kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java#L361-L384
chyxion/table-to-xls
src/main/java/me/chyxion/xls/css/CssUtils.java
CssUtils.parseColor
public static HSSFColor parseColor(HSSFWorkbook workBook, String color) { """ parse color @param workBook work book @param color string color @return HSSFColor """ HSSFColor poiColor = null; if (StringUtils.isNotBlank(color)) { Color awtColor = Color.decode(color); if (awtColor != null...
java
public static HSSFColor parseColor(HSSFWorkbook workBook, String color) { HSSFColor poiColor = null; if (StringUtils.isNotBlank(color)) { Color awtColor = Color.decode(color); if (awtColor != null) { int r = awtColor.getRed(); int g = awtColor.getGreen(); int b = awtColor.getB...
[ "public", "static", "HSSFColor", "parseColor", "(", "HSSFWorkbook", "workBook", ",", "String", "color", ")", "{", "HSSFColor", "poiColor", "=", "null", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "color", ")", ")", "{", "Color", "awtColor", "=", ...
parse color @param workBook work book @param color string color @return HSSFColor
[ "parse", "color" ]
train
https://github.com/chyxion/table-to-xls/blob/8dc0ab06b336c65ce949a974fb4930ee24d54ba7/src/main/java/me/chyxion/xls/css/CssUtils.java#L144-L160
agentgt/jirm
jirm-orm/src/main/java/co/jirm/mapper/definition/DefaultNamingStrategy.java
DefaultNamingStrategy.logicalCollectionColumnName
public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) { """ Return the column name if explicit or the concatenation of the property name and the referenced column """ return isNullOrEmpty( columnName ) ? columnName : unqualify( propertyName ) + "_"...
java
public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) { return isNullOrEmpty( columnName ) ? columnName : unqualify( propertyName ) + "_" + referencedColumn; }
[ "public", "String", "logicalCollectionColumnName", "(", "String", "columnName", ",", "String", "propertyName", ",", "String", "referencedColumn", ")", "{", "return", "isNullOrEmpty", "(", "columnName", ")", "?", "columnName", ":", "unqualify", "(", "propertyName", "...
Return the column name if explicit or the concatenation of the property name and the referenced column
[ "Return", "the", "column", "name", "if", "explicit", "or", "the", "concatenation", "of", "the", "property", "name", "and", "the", "referenced", "column" ]
train
https://github.com/agentgt/jirm/blob/95a2fcdef4121c439053524407af3d4ce8035722/jirm-orm/src/main/java/co/jirm/mapper/definition/DefaultNamingStrategy.java#L134-L138
fcrepo3/fcrepo
fcrepo-common/src/main/java/org/fcrepo/utilities/xml/DOM.java
DOM.selectString
public static String selectString(Node node, String xpath, String defaultValue) { """ <p>Extract the given value from the node as a String or if the value cannot be extracted, {@code defaultValue} is returned. </p><p> Example: To get the value of the attribute "foo" in the node, specify "@foo" as the path. </...
java
public static String selectString(Node node, String xpath, String defaultValue) { return selector.selectString(node, xpath, defaultValue); }
[ "public", "static", "String", "selectString", "(", "Node", "node", ",", "String", "xpath", ",", "String", "defaultValue", ")", "{", "return", "selector", ".", "selectString", "(", "node", ",", "xpath", ",", "defaultValue", ")", ";", "}" ]
<p>Extract the given value from the node as a String or if the value cannot be extracted, {@code defaultValue} is returned. </p><p> Example: To get the value of the attribute "foo" in the node, specify "@foo" as the path. </p> Note: This method does not handle namespaces explicitely. @param node the node with ...
[ "<p", ">", "Extract", "the", "given", "value", "from", "the", "node", "as", "a", "String", "or", "if", "the", "value", "cannot", "be", "extracted", "{", "@code", "defaultValue", "}", "is", "returned", ".", "<", "/", "p", ">", "<p", ">", "Example", ":...
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-common/src/main/java/org/fcrepo/utilities/xml/DOM.java#L304-L306
facebook/fresco
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/util/UI.java
UI.findViewById
public static <T extends View> T findViewById(Activity act, int viewId) { """ This method returns the reference of the View with the given Id in the layout of the Activity passed as parameter @param act The Activity that is using the layout with the given View @param viewId The id of the View we want to ge...
java
public static <T extends View> T findViewById(Activity act, int viewId) { View containerView = act.getWindow().getDecorView(); return findViewById(containerView, viewId); }
[ "public", "static", "<", "T", "extends", "View", ">", "T", "findViewById", "(", "Activity", "act", ",", "int", "viewId", ")", "{", "View", "containerView", "=", "act", ".", "getWindow", "(", ")", ".", "getDecorView", "(", ")", ";", "return", "findViewByI...
This method returns the reference of the View with the given Id in the layout of the Activity passed as parameter @param act The Activity that is using the layout with the given View @param viewId The id of the View we want to get a reference @return The View with the given id and type
[ "This", "method", "returns", "the", "reference", "of", "the", "View", "with", "the", "given", "Id", "in", "the", "layout", "of", "the", "Activity", "passed", "as", "parameter" ]
train
https://github.com/facebook/fresco/blob/0b85879d51c5036d5e46e627a6651afefc0b971a/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/util/UI.java#L30-L33
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/TagQueueRequest.java
TagQueueRequest.setTags
public void setTags(java.util.Map<String, String> tags) { """ <p> The list of tags to be added to the specified queue. </p> @param tags The list of tags to be added to the specified queue. """ this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags); }
java
public void setTags(java.util.Map<String, String> tags) { this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags); }
[ "public", "void", "setTags", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "this", ".", "tags", "=", "tags", "==", "null", "?", "null", ":", "new", "com", ".", "amazonaws", ".", "internal", ".", "SdkInte...
<p> The list of tags to be added to the specified queue. </p> @param tags The list of tags to be added to the specified queue.
[ "<p", ">", "The", "list", "of", "tags", "to", "be", "added", "to", "the", "specified", "queue", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/TagQueueRequest.java#L125-L127
kobakei/Android-RateThisApp
ratethisapp/src/main/java/com/kobakei/ratethisapp/RateThisApp.java
RateThisApp.onCreate
public static void onCreate(Context context) { """ Call this API when the launcher activity is launched.<br> It is better to call this API in onCreate() of the launcher activity. @param context Context """ SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); ...
java
public static void onCreate(Context context) { SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); Editor editor = pref.edit(); // If it is the first launch, save the date in shared preference. if (pref.getLong(KEY_INSTALL_DATE, 0) == 0L) { ...
[ "public", "static", "void", "onCreate", "(", "Context", "context", ")", "{", "SharedPreferences", "pref", "=", "context", ".", "getSharedPreferences", "(", "PREF_NAME", ",", "Context", ".", "MODE_PRIVATE", ")", ";", "Editor", "editor", "=", "pref", ".", "edit"...
Call this API when the launcher activity is launched.<br> It is better to call this API in onCreate() of the launcher activity. @param context Context
[ "Call", "this", "API", "when", "the", "launcher", "activity", "is", "launched", ".", "<br", ">", "It", "is", "better", "to", "call", "this", "API", "in", "onCreate", "()", "of", "the", "launcher", "activity", "." ]
train
https://github.com/kobakei/Android-RateThisApp/blob/c3d007c8c02beb6ff196745c2310c259737f5c81/ratethisapp/src/main/java/com/kobakei/ratethisapp/RateThisApp.java#L92-L113
Alluxio/alluxio
core/common/src/main/java/alluxio/util/io/ByteIOUtils.java
ByteIOUtils.readInt
public static int readInt(byte[] buf, int pos) { """ Reads a specific integer byte value (4 bytes) from the input byte array at the given offset. @param buf input byte array @param pos offset into the byte buffer to read @return the int value read """ checkBoundary(buf, pos, 4); return (((buf[pos+...
java
public static int readInt(byte[] buf, int pos) { checkBoundary(buf, pos, 4); return (((buf[pos++] & 0xff) << 24) | ((buf[pos++] & 0xff) << 16) | ((buf[pos++] & 0xff) << 8) | (buf[pos] & 0xff)); }
[ "public", "static", "int", "readInt", "(", "byte", "[", "]", "buf", ",", "int", "pos", ")", "{", "checkBoundary", "(", "buf", ",", "pos", ",", "4", ")", ";", "return", "(", "(", "(", "buf", "[", "pos", "++", "]", "&", "0xff", ")", "<<", "24", ...
Reads a specific integer byte value (4 bytes) from the input byte array at the given offset. @param buf input byte array @param pos offset into the byte buffer to read @return the int value read
[ "Reads", "a", "specific", "integer", "byte", "value", "(", "4", "bytes", ")", "from", "the", "input", "byte", "array", "at", "the", "given", "offset", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/common/src/main/java/alluxio/util/io/ByteIOUtils.java#L70-L74
fcrepo3/fcrepo
fcrepo-server/src/main/java/org/fcrepo/server/validation/ValidationUtility.java
ValidationUtility.validateURL
public static void validateURL(String url, String controlGroup) throws ValidationException { """ Validates the candidate URL. The result of the validation also depends on the control group of the datastream in question. Managed datastreams may be ingested using the file URI scheme, other datastreams ...
java
public static void validateURL(String url, String controlGroup) throws ValidationException { if (!(controlGroup.equalsIgnoreCase("M") || controlGroup.equalsIgnoreCase("E")) && url.startsWith("file:")) { throw new ValidationException( "Malformed URL (file: not allowed ...
[ "public", "static", "void", "validateURL", "(", "String", "url", ",", "String", "controlGroup", ")", "throws", "ValidationException", "{", "if", "(", "!", "(", "controlGroup", ".", "equalsIgnoreCase", "(", "\"M\"", ")", "||", "controlGroup", ".", "equalsIgnoreCa...
Validates the candidate URL. The result of the validation also depends on the control group of the datastream in question. Managed datastreams may be ingested using the file URI scheme, other datastreams may not. @param url The URL to validate. @param controlGroup The control group of the datastream the URL belongs to...
[ "Validates", "the", "candidate", "URL", ".", "The", "result", "of", "the", "validation", "also", "depends", "on", "the", "control", "group", "of", "the", "datastream", "in", "question", ".", "Managed", "datastreams", "may", "be", "ingested", "using", "the", ...
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-server/src/main/java/org/fcrepo/server/validation/ValidationUtility.java#L59-L74
dnsjava/dnsjava
org/xbill/DNS/Record.java
Record.fromString
public static Record fromString(Name name, int type, int dclass, long ttl, String s, Name origin) throws IOException { """ Builds a new Record from its textual representation @param name The owner name of the record. @param type The record's type. @param dclass The record's class. @param ttl The record's time ...
java
public static Record fromString(Name name, int type, int dclass, long ttl, String s, Name origin) throws IOException { return fromString(name, type, dclass, ttl, new Tokenizer(s), origin); }
[ "public", "static", "Record", "fromString", "(", "Name", "name", ",", "int", "type", ",", "int", "dclass", ",", "long", "ttl", ",", "String", "s", ",", "Name", "origin", ")", "throws", "IOException", "{", "return", "fromString", "(", "name", ",", "type",...
Builds a new Record from its textual representation @param name The owner name of the record. @param type The record's type. @param dclass The record's class. @param ttl The record's time to live. @param s The textual representation of the rdata. @param origin The default origin to be appended to relative domain names....
[ "Builds", "a", "new", "Record", "from", "its", "textual", "representation" ]
train
https://github.com/dnsjava/dnsjava/blob/d97b6a0685d59143372bb392ab591dd8dd840b61/org/xbill/DNS/Record.java#L491-L496
dkpro/dkpro-jwpl
de.tudarmstadt.ukp.wikipedia.api/src/main/java/de/tudarmstadt/ukp/wikipedia/api/CategoryGraph.java
CategoryGraph.getPathLengthInEdges
public int getPathLengthInEdges(Category node1, Category node2) { """ Gets the path length between two category nodes - measured in "edges". @param node1 The first category node. @param node2 The second category node. @return The number of edges of the path between node1 and node2. 0, if the nodes are identical...
java
public int getPathLengthInEdges(Category node1, Category node2) { if (this.graph.containsVertex(node1.getPageId()) && this.graph.containsVertex(node2.getPageId())) { if (node1.getPageId() == node2.getPageId()) { return 0; } // get the path from root node to n...
[ "public", "int", "getPathLengthInEdges", "(", "Category", "node1", ",", "Category", "node2", ")", "{", "if", "(", "this", ".", "graph", ".", "containsVertex", "(", "node1", ".", "getPageId", "(", ")", ")", "&&", "this", ".", "graph", ".", "containsVertex",...
Gets the path length between two category nodes - measured in "edges". @param node1 The first category node. @param node2 The second category node. @return The number of edges of the path between node1 and node2. 0, if the nodes are identical. -1, if no path exists.
[ "Gets", "the", "path", "length", "between", "two", "category", "nodes", "-", "measured", "in", "edges", "." ]
train
https://github.com/dkpro/dkpro-jwpl/blob/0a0304b6a0aa13acc18838957994e06dd4613a58/de.tudarmstadt.ukp.wikipedia.api/src/main/java/de/tudarmstadt/ukp/wikipedia/api/CategoryGraph.java#L657-L676
icode/ameba
src/main/java/ameba/db/ebean/filter/Filters.java
Filters.getBeanTypeByName
public static Class getBeanTypeByName(String className, SpiEbeanServer server) { """ <p>getBeanTypeByName.</p> @param className a {@link java.lang.String} object. @param server a {@link io.ebeaninternal.api.SpiEbeanServer} object. @return a {@link java.lang.Class} object. """ if (className == n...
java
public static Class getBeanTypeByName(String className, SpiEbeanServer server) { if (className == null) return null; for (BeanDescriptor descriptor : server.getBeanDescriptors()) { Class beanClass = descriptor.getBeanType(); if (beanClass.getName().equalsIgnoreCase(className) ...
[ "public", "static", "Class", "getBeanTypeByName", "(", "String", "className", ",", "SpiEbeanServer", "server", ")", "{", "if", "(", "className", "==", "null", ")", "return", "null", ";", "for", "(", "BeanDescriptor", "descriptor", ":", "server", ".", "getBeanD...
<p>getBeanTypeByName.</p> @param className a {@link java.lang.String} object. @param server a {@link io.ebeaninternal.api.SpiEbeanServer} object. @return a {@link java.lang.Class} object.
[ "<p", ">", "getBeanTypeByName", ".", "<", "/", "p", ">" ]
train
https://github.com/icode/ameba/blob/9d4956e935898e41331b2745e400ef869cd265e0/src/main/java/ameba/db/ebean/filter/Filters.java#L25-L35
joniles/mpxj
src/main/java/net/sf/mpxj/mpp/MPP14Reader.java
MPP14Reader.populateMemberData
private void populateMemberData(MPPReader reader, ProjectFile file, DirectoryEntry root) throws FileNotFoundException, IOException, MPXJException { """ Populate member data used by the rest of the reader. @param reader parent file reader @param file parent MPP file @param root Root of the POI file system. ...
java
private void populateMemberData(MPPReader reader, ProjectFile file, DirectoryEntry root) throws FileNotFoundException, IOException, MPXJException { m_reader = reader; m_file = file; m_eventManager = file.getEventManager(); m_root = root; // // Retrieve the high level document pro...
[ "private", "void", "populateMemberData", "(", "MPPReader", "reader", ",", "ProjectFile", "file", ",", "DirectoryEntry", "root", ")", "throws", "FileNotFoundException", ",", "IOException", ",", "MPXJException", "{", "m_reader", "=", "reader", ";", "m_file", "=", "f...
Populate member data used by the rest of the reader. @param reader parent file reader @param file parent MPP file @param root Root of the POI file system.
[ "Populate", "member", "data", "used", "by", "the", "rest", "of", "the", "reader", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/mpp/MPP14Reader.java#L124-L177
alkacon/opencms-core
src/org/opencms/db/generic/CmsVfsDriver.java
CmsVfsDriver.prepareProjectCondition
protected void prepareProjectCondition(CmsUUID projectId, int mode, StringBuffer conditions, List<Object> params) { """ Appends the appropriate selection criteria related with the projectId.<p> @param projectId the id of the project of the resources @param mode the selection mode @param conditions buffer to a...
java
protected void prepareProjectCondition(CmsUUID projectId, int mode, StringBuffer conditions, List<Object> params) { if ((mode & CmsDriverManager.READMODE_INCLUDE_PROJECT) > 0) { // C_READMODE_INCLUDE_PROJECT: add condition to match the PROJECT_ID conditions.append(BEGIN_INCLUDE_CONDITIO...
[ "protected", "void", "prepareProjectCondition", "(", "CmsUUID", "projectId", ",", "int", "mode", ",", "StringBuffer", "conditions", ",", "List", "<", "Object", ">", "params", ")", "{", "if", "(", "(", "mode", "&", "CmsDriverManager", ".", "READMODE_INCLUDE_PROJE...
Appends the appropriate selection criteria related with the projectId.<p> @param projectId the id of the project of the resources @param mode the selection mode @param conditions buffer to append the selection criteria @param params list to append the selection parameters
[ "Appends", "the", "appropriate", "selection", "criteria", "related", "with", "the", "projectId", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/generic/CmsVfsDriver.java#L4225-L4234
calrissian/mango
mango-core/src/main/java/org/calrissian/mango/collect/FluentCloseableIterable.java
FluentCloseableIterable.filter
public final <E> FluentCloseableIterable<E> filter(Class<E> type) { """ Returns the elements from this fluent iterable that are instances of class {@code type}. """ return from(CloseableIterables.filter(this, type)); }
java
public final <E> FluentCloseableIterable<E> filter(Class<E> type) { return from(CloseableIterables.filter(this, type)); }
[ "public", "final", "<", "E", ">", "FluentCloseableIterable", "<", "E", ">", "filter", "(", "Class", "<", "E", ">", "type", ")", "{", "return", "from", "(", "CloseableIterables", ".", "filter", "(", "this", ",", "type", ")", ")", ";", "}" ]
Returns the elements from this fluent iterable that are instances of class {@code type}.
[ "Returns", "the", "elements", "from", "this", "fluent", "iterable", "that", "are", "instances", "of", "class", "{" ]
train
https://github.com/calrissian/mango/blob/a95aa5e77af9aa0e629787228d80806560023452/mango-core/src/main/java/org/calrissian/mango/collect/FluentCloseableIterable.java#L150-L152
OpenLiberty/open-liberty
dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextDescriptorImpl.java
ThreadContextDescriptorImpl.notAvailable
public static void notAvailable(String jeeName, String taskName) { """ Raises IllegalStateException because the application or application component is unavailable. @param jeeName The metadata identifier, which is the JEE name (Application/Module/Component name with parts separated by hash signs). For now, we'...
java
public static void notAvailable(String jeeName, String taskName) { String message; int modSepIndex = jeeName.indexOf('#'); if (modSepIndex == -1) { message = Tr.formatMessage(tc, "CWWKC1011.app.unavailable", taskName, jeeName); } else { String application = jeeNam...
[ "public", "static", "void", "notAvailable", "(", "String", "jeeName", ",", "String", "taskName", ")", "{", "String", "message", ";", "int", "modSepIndex", "=", "jeeName", ".", "indexOf", "(", "'", "'", ")", ";", "if", "(", "modSepIndex", "==", "-", "1", ...
Raises IllegalStateException because the application or application component is unavailable. @param jeeName The metadata identifier, which is the JEE name (Application/Module/Component name with parts separated by hash signs). For now, we'll parse the string and issue the appropriate message. This may not be appropri...
[ "Raises", "IllegalStateException", "because", "the", "application", "or", "application", "component", "is", "unavailable", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextDescriptorImpl.java#L251-L267
albfernandez/itext2
src/main/java/com/lowagie/text/pdf/BaseFont.java
BaseFont.getFullFontName
public static String[][] getFullFontName(String name, String encoding, byte ttfAfm[]) throws DocumentException, IOException { """ Gets the full name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values c...
java
public static String[][] getFullFontName(String name, String encoding, byte ttfAfm[]) throws DocumentException, IOException { String nameBase = getBaseName(name); BaseFont fontBuilt = null; if (nameBase.toLowerCase().endsWith(".ttf") || nameBase.toLowerCase().endsWith(".otf") || nameBase.toLower...
[ "public", "static", "String", "[", "]", "[", "]", "getFullFontName", "(", "String", "name", ",", "String", "encoding", ",", "byte", "ttfAfm", "[", "]", ")", "throws", "DocumentException", ",", "IOException", "{", "String", "nameBase", "=", "getBaseName", "("...
Gets the full name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.<br> For the other fonts the array has a single element with {...
[ "Gets", "the", "full", "name", "of", "the", "font", ".", "If", "it", "is", "a", "True", "Type", "font", "each", "array", "element", "will", "have", "{", "Platform", "ID", "Platform", "Encoding", "ID", "Language", "ID", "font", "name", "}", ".", "The", ...
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/pdf/BaseFont.java#L1173-L1181
jayantk/jklol
src/com/jayantkrish/jklol/models/VariableNumMap.java
VariableNumMap.singleton
public static final VariableNumMap singleton(int varNum, String varName, Variable variable) { """ Creates a {@code VariableNumMap} containing a single variable. @param varNum @param varName @param variable @return """ return new VariableNumMap(new int[] {varNum}, new String[] {varName}, new Variable[...
java
public static final VariableNumMap singleton(int varNum, String varName, Variable variable) { return new VariableNumMap(new int[] {varNum}, new String[] {varName}, new Variable[] {variable}); }
[ "public", "static", "final", "VariableNumMap", "singleton", "(", "int", "varNum", ",", "String", "varName", ",", "Variable", "variable", ")", "{", "return", "new", "VariableNumMap", "(", "new", "int", "[", "]", "{", "varNum", "}", ",", "new", "String", "["...
Creates a {@code VariableNumMap} containing a single variable. @param varNum @param varName @param variable @return
[ "Creates", "a", "{", "@code", "VariableNumMap", "}", "containing", "a", "single", "variable", "." ]
train
https://github.com/jayantk/jklol/blob/d27532ca83e212d51066cf28f52621acc3fd44cc/src/com/jayantkrish/jklol/models/VariableNumMap.java#L94-L96
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ImageInfo.java
ImageInfo.of
public static ImageInfo of(ImageId imageId, ImageConfiguration configuration) { """ Returns an {@code ImageInfo} object given the image identity and an image configuration. Use {@link DiskImageConfiguration} to create an image from an existing disk. Use {@link StorageImageConfiguration} to create an image from a...
java
public static ImageInfo of(ImageId imageId, ImageConfiguration configuration) { return newBuilder(imageId, configuration).build(); }
[ "public", "static", "ImageInfo", "of", "(", "ImageId", "imageId", ",", "ImageConfiguration", "configuration", ")", "{", "return", "newBuilder", "(", "imageId", ",", "configuration", ")", ".", "build", "(", ")", ";", "}" ]
Returns an {@code ImageInfo} object given the image identity and an image configuration. Use {@link DiskImageConfiguration} to create an image from an existing disk. Use {@link StorageImageConfiguration} to create an image from a file stored in Google Cloud Storage.
[ "Returns", "an", "{" ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ImageInfo.java#L390-L392
getsentry/sentry-java
sentry/src/main/java/io/sentry/DefaultSentryClientFactory.java
DefaultSentryClientFactory.createAsyncConnection
protected Connection createAsyncConnection(Dsn dsn, Connection connection) { """ Encapsulates an already existing connection in an {@link AsyncConnection} and get the async options from the Sentry DSN. @param dsn Data Source Name of the Sentry server. @param connection Connection to encapsulate in an {...
java
protected Connection createAsyncConnection(Dsn dsn, Connection connection) { int maxThreads = getAsyncThreads(dsn); int priority = getAsyncPriority(dsn); BlockingDeque<Runnable> queue; int queueSize = getAsyncQueueSize(dsn); if (queueSize == -1) { queue = new Linked...
[ "protected", "Connection", "createAsyncConnection", "(", "Dsn", "dsn", ",", "Connection", "connection", ")", "{", "int", "maxThreads", "=", "getAsyncThreads", "(", "dsn", ")", ";", "int", "priority", "=", "getAsyncPriority", "(", "dsn", ")", ";", "BlockingDeque"...
Encapsulates an already existing connection in an {@link AsyncConnection} and get the async options from the Sentry DSN. @param dsn Data Source Name of the Sentry server. @param connection Connection to encapsulate in an {@link AsyncConnection}. @return the asynchronous connection.
[ "Encapsulates", "an", "already", "existing", "connection", "in", "an", "{", "@link", "AsyncConnection", "}", "and", "get", "the", "async", "options", "from", "the", "Sentry", "DSN", "." ]
train
https://github.com/getsentry/sentry-java/blob/2e01461775cbd5951ff82b566069c349146d8aca/sentry/src/main/java/io/sentry/DefaultSentryClientFactory.java#L372-L393
stevespringett/Alpine
alpine/src/main/java/alpine/filters/ContentSecurityPolicyFilter.java
ContentSecurityPolicyFilter.getValue
private String getValue(FilterConfig filterConfig, String initParam, String variable) { """ Returns the value of the initParam. @param filterConfig a FilterConfig instance @param initParam the name of the init parameter @param variable the variable to use if the init param was not defined @return a String ...
java
private String getValue(FilterConfig filterConfig, String initParam, String variable) { final String value = filterConfig.getInitParameter(initParam); if (StringUtils.isNotBlank(value)) { return value; } else { return variable; } }
[ "private", "String", "getValue", "(", "FilterConfig", "filterConfig", ",", "String", "initParam", ",", "String", "variable", ")", "{", "final", "String", "value", "=", "filterConfig", ".", "getInitParameter", "(", "initParam", ")", ";", "if", "(", "StringUtils",...
Returns the value of the initParam. @param filterConfig a FilterConfig instance @param initParam the name of the init parameter @param variable the variable to use if the init param was not defined @return a String
[ "Returns", "the", "value", "of", "the", "initParam", "." ]
train
https://github.com/stevespringett/Alpine/blob/6c5ef5e1ba4f38922096f1307d3950c09edb3093/alpine/src/main/java/alpine/filters/ContentSecurityPolicyFilter.java#L174-L181
fozziethebeat/S-Space
hadoop/src/main/java/edu/ucla/sspace/hadoop/HadoopJob.java
HadoopJob.run
public HadoopJobResults run(Collection<String> inputPaths) throws Exception { """ Exceutes the word co-occurrence counting job on the corpus files in the input directory using the current Hadoop instance, returning an iterator over all the occurrences frequences found in the corpus. @param inputPa...
java
public HadoopJobResults run(Collection<String> inputPaths) throws Exception { // Create a mostly unique file name for the output directory. String outputDir = "output-" + System.currentTimeMillis(); //conf.setBoolean("mapred.task.profile", true); Job job = new Job(conf, map...
[ "public", "HadoopJobResults", "run", "(", "Collection", "<", "String", ">", "inputPaths", ")", "throws", "Exception", "{", "// Create a mostly unique file name for the output directory.", "String", "outputDir", "=", "\"output-\"", "+", "System", ".", "currentTimeMillis", ...
Exceutes the word co-occurrence counting job on the corpus files in the input directory using the current Hadoop instance, returning an iterator over all the occurrences frequences found in the corpus. @param inputPaths the directories on the Hadoop distributed file system containing all the corpus files that will be ...
[ "Exceutes", "the", "word", "co", "-", "occurrence", "counting", "job", "on", "the", "corpus", "files", "in", "the", "input", "directory", "using", "the", "current", "Hadoop", "instance", "returning", "an", "iterator", "over", "all", "the", "occurrences", "freq...
train
https://github.com/fozziethebeat/S-Space/blob/a608102737dfd3d59038a9ead33fe60356bc6029/hadoop/src/main/java/edu/ucla/sspace/hadoop/HadoopJob.java#L184-L221
elki-project/elki
elki-core-math/src/main/java/de/lmu/ifi/dbs/elki/math/geodesy/SphereUtil.java
SphereUtil.bearingRad
public static double bearingRad(double latS, double lngS, double latE, double lngE) { """ Compute the bearing from start to end. @param latS Start latitude, in radians @param lngS Start longitude, in radians @param latE End latitude, in radians @param lngE End longitude, in radians @return Bearing in degree...
java
public static double bearingRad(double latS, double lngS, double latE, double lngE) { final DoubleWrapper tmp = new DoubleWrapper(); // To return cosine final double slatS = sinAndCos(latS, tmp), clatS = tmp.value; final double slatE = sinAndCos(latE, tmp), clatE = tmp.value; return atan2(-sin(lngS - ln...
[ "public", "static", "double", "bearingRad", "(", "double", "latS", ",", "double", "lngS", ",", "double", "latE", ",", "double", "lngE", ")", "{", "final", "DoubleWrapper", "tmp", "=", "new", "DoubleWrapper", "(", ")", ";", "// To return cosine", "final", "do...
Compute the bearing from start to end. @param latS Start latitude, in radians @param lngS Start longitude, in radians @param latE End latitude, in radians @param lngE End longitude, in radians @return Bearing in degree
[ "Compute", "the", "bearing", "from", "start", "to", "end", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-core-math/src/main/java/de/lmu/ifi/dbs/elki/math/geodesy/SphereUtil.java#L878-L883
intendia-oss/rxjava-gwt
src/main/modified/io/reactivex/super/io/reactivex/Completable.java
Completable.mergeWith
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { """ Returns a Completable which subscribes to this and the other Completable and completes when both of them complete or one emits an error. <p> <img width="640" height="442" src="htt...
java
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); }
[ "@", "CheckReturnValue", "@", "SchedulerSupport", "(", "SchedulerSupport", ".", "NONE", ")", "public", "final", "Completable", "mergeWith", "(", "CompletableSource", "other", ")", "{", "ObjectHelper", ".", "requireNonNull", "(", "other", ",", "\"other is null\"", ")...
Returns a Completable which subscribes to this and the other Completable and completes when both of them complete or one emits an error. <p> <img width="640" height="442" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.mergeWith.png" alt=""> <dl> <dt><b>Scheduler:</b></dt> <dd>{@code m...
[ "Returns", "a", "Completable", "which", "subscribes", "to", "this", "and", "the", "other", "Completable", "and", "completes", "when", "both", "of", "them", "complete", "or", "one", "emits", "an", "error", ".", "<p", ">", "<img", "width", "=", "640", "heigh...
train
https://github.com/intendia-oss/rxjava-gwt/blob/8d5635b12ce40da99e76b59dc6bfe6fc2fffc1fa/src/main/modified/io/reactivex/super/io/reactivex/Completable.java#L1749-L1754
apiman/apiman
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/URLRewritingPolicy.java
URLRewritingPolicy.doHeaderReplaceAll
private String doHeaderReplaceAll(String headerValue, String fromRegex, String toReplacement) { """ Finds all matching instances of the regular expression and replaces them with the replacement value. @param headerValue @param fromRegex @param toReplacement """ return headerValue.replaceAll(fromReg...
java
private String doHeaderReplaceAll(String headerValue, String fromRegex, String toReplacement) { return headerValue.replaceAll(fromRegex, toReplacement); }
[ "private", "String", "doHeaderReplaceAll", "(", "String", "headerValue", ",", "String", "fromRegex", ",", "String", "toReplacement", ")", "{", "return", "headerValue", ".", "replaceAll", "(", "fromRegex", ",", "toReplacement", ")", ";", "}" ]
Finds all matching instances of the regular expression and replaces them with the replacement value. @param headerValue @param fromRegex @param toReplacement
[ "Finds", "all", "matching", "instances", "of", "the", "regular", "expression", "and", "replaces", "them", "with", "the", "replacement", "value", "." ]
train
https://github.com/apiman/apiman/blob/8c049c2a2f2e4a69bbb6125686a15edd26f29c21/gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/URLRewritingPolicy.java#L109-L111
banq/jdonframework
src/main/java/com/jdon/util/jdom/XMLFilterBase.java
XMLFilterBase.dataElement
public void dataElement (String uri, String localName, String content) throws SAXException { """ Add an element with character data content but no qname or attributes. <p>This is a convenience method to add a complete element with character data content, including the start tag and end tag. This method ...
java
public void dataElement (String uri, String localName, String content) throws SAXException { dataElement(uri, localName, "", EMPTY_ATTS, content); }
[ "public", "void", "dataElement", "(", "String", "uri", ",", "String", "localName", ",", "String", "content", ")", "throws", "SAXException", "{", "dataElement", "(", "uri", ",", "localName", ",", "\"\"", ",", "EMPTY_ATTS", ",", "content", ")", ";", "}" ]
Add an element with character data content but no qname or attributes. <p>This is a convenience method to add a complete element with character data content, including the start tag and end tag. This method provides an empty string for the qname and an empty attribute list. It invokes {@link #dataElement(String, Stri...
[ "Add", "an", "element", "with", "character", "data", "content", "but", "no", "qname", "or", "attributes", "." ]
train
https://github.com/banq/jdonframework/blob/72b451caac04f775e57f52aaed3d8775044ead53/src/main/java/com/jdon/util/jdom/XMLFilterBase.java#L407-L411
b3dgs/lionengine
lionengine-game/src/main/java/com/b3dgs/lionengine/game/Configurer.java
Configurer.getIntegerDefault
public final int getIntegerDefault(int defaultValue, String attribute, String... path) { """ Get an integer in the xml tree. @param defaultValue Value used if node does not exist. @param attribute The attribute to get as integer. @param path The node path (child list) @return The integer value. @throws Lion...
java
public final int getIntegerDefault(int defaultValue, String attribute, String... path) { try { return Integer.parseInt(getNodeStringDefault(String.valueOf(defaultValue), attribute, path)); } catch (final NumberFormatException exception) { throw new Lio...
[ "public", "final", "int", "getIntegerDefault", "(", "int", "defaultValue", ",", "String", "attribute", ",", "String", "...", "path", ")", "{", "try", "{", "return", "Integer", ".", "parseInt", "(", "getNodeStringDefault", "(", "String", ".", "valueOf", "(", ...
Get an integer in the xml tree. @param defaultValue Value used if node does not exist. @param attribute The attribute to get as integer. @param path The node path (child list) @return The integer value. @throws LionEngineException If not a valid integer read.
[ "Get", "an", "integer", "in", "the", "xml", "tree", "." ]
train
https://github.com/b3dgs/lionengine/blob/cac3d5578532cf11724a737b9f09e71bf9995ab2/lionengine-game/src/main/java/com/b3dgs/lionengine/game/Configurer.java#L233-L243
hawkular/hawkular-alerts
engine/src/main/java/org/hawkular/alerts/engine/impl/PartitionManagerImpl.java
PartitionManagerImpl.calculateNewEntry
public Integer calculateNewEntry(PartitionEntry newEntry, Map<Integer, Integer> buckets) { """ Distribute a new entry across buckets using a consistent hashing strategy. @param newEntry the new entry to distribute @param buckets a table of nodes @return a code of the node which the new entry is placed """...
java
public Integer calculateNewEntry(PartitionEntry newEntry, Map<Integer, Integer> buckets) { if (newEntry == null) { throw new IllegalArgumentException("newEntry must be not null"); } if (isEmpty(buckets)) { throw new IllegalArgumentException("buckets must be not null"); ...
[ "public", "Integer", "calculateNewEntry", "(", "PartitionEntry", "newEntry", ",", "Map", "<", "Integer", ",", "Integer", ">", "buckets", ")", "{", "if", "(", "newEntry", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"newEntry must be...
Distribute a new entry across buckets using a consistent hashing strategy. @param newEntry the new entry to distribute @param buckets a table of nodes @return a code of the node which the new entry is placed
[ "Distribute", "a", "new", "entry", "across", "buckets", "using", "a", "consistent", "hashing", "strategy", "." ]
train
https://github.com/hawkular/hawkular-alerts/blob/b4a0c2909b38e03e72cc1828219562ee8fcbf426/engine/src/main/java/org/hawkular/alerts/engine/impl/PartitionManagerImpl.java#L432-L442
js-lib-com/commons
src/main/java/js/util/Files.java
Files.inotify
public static boolean inotify(File file, FileNotify notify, int timeout) throws IllegalArgumentException { """ Wait for requested action to happen on given file. If <code>timeout</code> is zero or negative this method returns false immediately. <p> This implementation is a fallback solution for JVM without <cod...
java
public static boolean inotify(File file, FileNotify notify, int timeout) throws IllegalArgumentException { Params.notNull(file, "File"); Predicate predicate = INOTIFY_PREDICATES.get(notify); if(predicate == null) { throw new BugError("Unsupported file notification |%s|. Missing predicate.", n...
[ "public", "static", "boolean", "inotify", "(", "File", "file", ",", "FileNotify", "notify", ",", "int", "timeout", ")", "throws", "IllegalArgumentException", "{", "Params", ".", "notNull", "(", "file", ",", "\"File\"", ")", ";", "Predicate", "predicate", "=", ...
Wait for requested action to happen on given file. If <code>timeout</code> is zero or negative this method returns false immediately. <p> This implementation is a fallback solution for JVM without <code>java.nio.file.WatchService</code>. Please consider using watch service when available. @param file file to wait for ...
[ "Wait", "for", "requested", "action", "to", "happen", "on", "given", "file", ".", "If", "<code", ">", "timeout<", "/", "code", ">", "is", "zero", "or", "negative", "this", "method", "returns", "false", "immediately", ".", "<p", ">", "This", "implementation...
train
https://github.com/js-lib-com/commons/blob/f8c64482142b163487745da74feb106f0765c16b/src/main/java/js/util/Files.java#L1113-L1135
prestodb/presto
presto-hive/src/main/java/com/facebook/presto/hive/S3SelectRecordCursor.java
S3SelectRecordCursor.updateSplitSchema
static Properties updateSplitSchema(Properties splitSchema, List<HiveColumnHandle> columns) { """ otherwise, Serde could not deserialize output from s3select to row data correctly """ requireNonNull(splitSchema, "splitSchema is null"); requireNonNull(columns, "columns is null"); // clon...
java
static Properties updateSplitSchema(Properties splitSchema, List<HiveColumnHandle> columns) { requireNonNull(splitSchema, "splitSchema is null"); requireNonNull(columns, "columns is null"); // clone split properties for update so as not to affect the original one Properties updatedSc...
[ "static", "Properties", "updateSplitSchema", "(", "Properties", "splitSchema", ",", "List", "<", "HiveColumnHandle", ">", "columns", ")", "{", "requireNonNull", "(", "splitSchema", ",", "\"splitSchema is null\"", ")", ";", "requireNonNull", "(", "columns", ",", "\"c...
otherwise, Serde could not deserialize output from s3select to row data correctly
[ "otherwise", "Serde", "could", "not", "deserialize", "output", "from", "s3select", "to", "row", "data", "correctly" ]
train
https://github.com/prestodb/presto/blob/89de5e379d8f85e139d292b0add8c537a2a01a88/presto-hive/src/main/java/com/facebook/presto/hive/S3SelectRecordCursor.java#L62-L75
RuntimeTools/javametrics
javaagent/src/main/java/com/ibm/javametrics/instrument/ClassAdapter.java
ClassAdapter.visitHttpMethod
private MethodVisitor visitHttpMethod(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) { """ Instrument HTTP request methods @param mv original MethodVisitor @param access @param name @param desc @param signature @param exceptions @return original...
java
private MethodVisitor visitHttpMethod(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor httpMv = mv; /* * Instrument _jspService method for JSP. Instrument doGet, doPost and * service methods for servlets. ...
[ "private", "MethodVisitor", "visitHttpMethod", "(", "MethodVisitor", "mv", ",", "int", "access", ",", "String", "name", ",", "String", "desc", ",", "String", "signature", ",", "String", "[", "]", "exceptions", ")", "{", "MethodVisitor", "httpMv", "=", "mv", ...
Instrument HTTP request methods @param mv original MethodVisitor @param access @param name @param desc @param signature @param exceptions @return original MethodVisitor or new MethodVisitor chained to original
[ "Instrument", "HTTP", "request", "methods" ]
train
https://github.com/RuntimeTools/javametrics/blob/e167a565d0878b535585329c42a29a86516dd741/javaagent/src/main/java/com/ibm/javametrics/instrument/ClassAdapter.java#L172-L191
neoremind/fluent-validator
fluent-validator/src/main/java/com/baidu/unbiz/fluentvalidator/QuickValidator.java
QuickValidator.validate
public static <T extends GenericResult<ValidationError>> T validate(Decorator decorator, FluentValidator fluentValidator, ValidatorContext context, ResultCollector<T> resultCollector) { """ Use the <code>decorator</code> to add or attach more functions the given <code>fluentValidator</code> instance. <p> The con...
java
public static <T extends GenericResult<ValidationError>> T validate(Decorator decorator, FluentValidator fluentValidator, ValidatorContext context, ResultCollector<T> resultCollector) { FluentValidator fv = decorator.decorate(fluentValidator); if (context != null) { fv.withContext(context); ...
[ "public", "static", "<", "T", "extends", "GenericResult", "<", "ValidationError", ">", ">", "T", "validate", "(", "Decorator", "decorator", ",", "FluentValidator", "fluentValidator", ",", "ValidatorContext", "context", ",", "ResultCollector", "<", "T", ">", "resul...
Use the <code>decorator</code> to add or attach more functions the given <code>fluentValidator</code> instance. <p> The context can be shared and set up in the new FluentValidator instance. <p> The motivation for this method is to provide a quick way to launch a validation task. By just passing the validation logic whi...
[ "Use", "the", "<code", ">", "decorator<", "/", "code", ">", "to", "add", "or", "attach", "more", "functions", "the", "given", "<code", ">", "fluentValidator<", "/", "code", ">", "instance", ".", "<p", ">", "The", "context", "can", "be", "shared", "and", ...
train
https://github.com/neoremind/fluent-validator/blob/b516970591aa9468b44ba63938b98ec341fd6ead/fluent-validator/src/main/java/com/baidu/unbiz/fluentvalidator/QuickValidator.java#L83-L94
HanSolo/SteelSeries-Swing
src/main/java/eu/hansolo/steelseries/tools/Model.java
Model.setSize
public void setSize(final int X, final int Y, final int WIDTH, final int HEIGHT) { """ Sets the width and height of the gauge @param X @param Y @param WIDTH @param HEIGHT """ bounds.setBounds(X, Y, WIDTH, HEIGHT); fireStateChanged(); }
java
public void setSize(final int X, final int Y, final int WIDTH, final int HEIGHT) { bounds.setBounds(X, Y, WIDTH, HEIGHT); fireStateChanged(); }
[ "public", "void", "setSize", "(", "final", "int", "X", ",", "final", "int", "Y", ",", "final", "int", "WIDTH", ",", "final", "int", "HEIGHT", ")", "{", "bounds", ".", "setBounds", "(", "X", ",", "Y", ",", "WIDTH", ",", "HEIGHT", ")", ";", "fireStat...
Sets the width and height of the gauge @param X @param Y @param WIDTH @param HEIGHT
[ "Sets", "the", "width", "and", "height", "of", "the", "gauge" ]
train
https://github.com/HanSolo/SteelSeries-Swing/blob/c2f7b45a477757ef21bbb6a1174ddedb2250ae57/src/main/java/eu/hansolo/steelseries/tools/Model.java#L337-L340
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/util/JsonUtil.java
JsonUtil.toJsonObject
public static JsonObject toJsonObject(Map<String, ?> map) { """ Transforms the provided map of name/value pairs into a {@link JsonObject}. @param map map of JSON name-value pairs @return the JSON object """ JsonObject properties = new JsonObject(); for (Map.Entry<String, ?> property : map.e...
java
public static JsonObject toJsonObject(Map<String, ?> map) { JsonObject properties = new JsonObject(); for (Map.Entry<String, ?> property : map.entrySet()) { properties.add(property.getKey(), Json.value(property.getValue().toString())); } return properties; }
[ "public", "static", "JsonObject", "toJsonObject", "(", "Map", "<", "String", ",", "?", ">", "map", ")", "{", "JsonObject", "properties", "=", "new", "JsonObject", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "?", ">", "property",...
Transforms the provided map of name/value pairs into a {@link JsonObject}. @param map map of JSON name-value pairs @return the JSON object
[ "Transforms", "the", "provided", "map", "of", "name", "/", "value", "pairs", "into", "a", "{", "@link", "JsonObject", "}", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/util/JsonUtil.java#L307-L313
EdwardRaff/JSAT
JSAT/src/jsat/linear/Matrix.java
Matrix.sameDimensions
public static boolean sameDimensions(Matrix A, Matrix B) { """ Convenience method that will return {@code true} only if the two input matrices have the exact same dimensions. @param A the first matrix @param B the second matrix @return {@code true} if they have the exact same dimensions, {@code false} otherwi...
java
public static boolean sameDimensions(Matrix A, Matrix B) { return A.rows() == B.rows() && A.cols() == B.cols(); }
[ "public", "static", "boolean", "sameDimensions", "(", "Matrix", "A", ",", "Matrix", "B", ")", "{", "return", "A", ".", "rows", "(", ")", "==", "B", ".", "rows", "(", ")", "&&", "A", ".", "cols", "(", ")", "==", "B", ".", "cols", "(", ")", ";", ...
Convenience method that will return {@code true} only if the two input matrices have the exact same dimensions. @param A the first matrix @param B the second matrix @return {@code true} if they have the exact same dimensions, {@code false} otherwise.
[ "Convenience", "method", "that", "will", "return", "{" ]
train
https://github.com/EdwardRaff/JSAT/blob/0ff53b7b39684b2379cc1da522f5b3a954b15cfb/JSAT/src/jsat/linear/Matrix.java#L777-L780
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/Validate.java
Validate.notEmpty
public static <T extends Map<?, ?>> T notEmpty(final T map, final String message, final Object... values) { """ <p>Validate that the specified argument map is neither {@code null} nor a size of zero (no elements); otherwise throwing an exception with the specified message. <pre>Validate.notEmpty(myMap, "The m...
java
public static <T extends Map<?, ?>> T notEmpty(final T map, final String message, final Object... values) { if (map == null) { throw new NullPointerException(StringUtils.simpleFormat(message, values)); } if (map.isEmpty()) { throw new IllegalArgumentException(StringUtils....
[ "public", "static", "<", "T", "extends", "Map", "<", "?", ",", "?", ">", ">", "T", "notEmpty", "(", "final", "T", "map", ",", "final", "String", "message", ",", "final", "Object", "...", "values", ")", "{", "if", "(", "map", "==", "null", ")", "{...
<p>Validate that the specified argument map is neither {@code null} nor a size of zero (no elements); otherwise throwing an exception with the specified message. <pre>Validate.notEmpty(myMap, "The map must not be empty");</pre> @param <T> the map type @param map the map to check, validated not null by this method @p...
[ "<p", ">", "Validate", "that", "the", "specified", "argument", "map", "is", "neither", "{", "@code", "null", "}", "nor", "a", "size", "of", "zero", "(", "no", "elements", ")", ";", "otherwise", "throwing", "an", "exception", "with", "the", "specified", "...
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/Validate.java#L349-L357
biojava/biojava
biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/PlainFastaHeaderParser.java
PlainFastaHeaderParser.parseHeader
@Override public void parseHeader(String header, S sequence) { """ Parse the header and set the values in the sequence @param header @param sequence """ sequence.setOriginalHeader(header); String[] data = getHeaderValues(header); if (data.length == 1) { sequence.setAccession(new AccessionID(data...
java
@Override public void parseHeader(String header, S sequence) { sequence.setOriginalHeader(header); String[] data = getHeaderValues(header); if (data.length == 1) { sequence.setAccession(new AccessionID(data[0])); } else { throw new RuntimeException( "No header or Some Error Occurred while reading h...
[ "@", "Override", "public", "void", "parseHeader", "(", "String", "header", ",", "S", "sequence", ")", "{", "sequence", ".", "setOriginalHeader", "(", "header", ")", ";", "String", "[", "]", "data", "=", "getHeaderValues", "(", "header", ")", ";", "if", "...
Parse the header and set the values in the sequence @param header @param sequence
[ "Parse", "the", "header", "and", "set", "the", "values", "in", "the", "sequence" ]
train
https://github.com/biojava/biojava/blob/a1c71a8e3d40cc32104b1d387a3d3b560b43356e/biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/PlainFastaHeaderParser.java#L58-L69
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/MetadataManager.java
MetadataManager.readConnectionRepository
public ConnectionRepository readConnectionRepository(String fileName) { """ Read JdbcConnectionDescriptors from the given repository file. @see #mergeConnectionRepository """ try { RepositoryPersistor persistor = new RepositoryPersistor(); return persistor.readCon...
java
public ConnectionRepository readConnectionRepository(String fileName) { try { RepositoryPersistor persistor = new RepositoryPersistor(); return persistor.readConnectionRepository(fileName); } catch (Exception e) { throw new Metadat...
[ "public", "ConnectionRepository", "readConnectionRepository", "(", "String", "fileName", ")", "{", "try", "{", "RepositoryPersistor", "persistor", "=", "new", "RepositoryPersistor", "(", ")", ";", "return", "persistor", ".", "readConnectionRepository", "(", "fileName", ...
Read JdbcConnectionDescriptors from the given repository file. @see #mergeConnectionRepository
[ "Read", "JdbcConnectionDescriptors", "from", "the", "given", "repository", "file", "." ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/MetadataManager.java#L369-L380
josueeduardo/snappy
snappy/src/main/java/io/joshworks/snappy/SnappyServer.java
SnappyServer.patch
public static void patch(String url, HttpConsumer<HttpExchange> endpoint, MediaTypes... mediaTypes) { """ Define a REST endpoint mapped to HTTP HEAD @param url The relative URL to be map this endpoint. @param endpoint The endpoint handler @param mediaTypes (Optional) The accepted and returned types f...
java
public static void patch(String url, HttpConsumer<HttpExchange> endpoint, MediaTypes... mediaTypes) { addResource(Methods.PATCH, url, endpoint, mediaTypes); }
[ "public", "static", "void", "patch", "(", "String", "url", ",", "HttpConsumer", "<", "HttpExchange", ">", "endpoint", ",", "MediaTypes", "...", "mediaTypes", ")", "{", "addResource", "(", "Methods", ".", "PATCH", ",", "url", ",", "endpoint", ",", "mediaTypes...
Define a REST endpoint mapped to HTTP HEAD @param url The relative URL to be map this endpoint. @param endpoint The endpoint handler @param mediaTypes (Optional) The accepted and returned types for this endpoint
[ "Define", "a", "REST", "endpoint", "mapped", "to", "HTTP", "HEAD" ]
train
https://github.com/josueeduardo/snappy/blob/d95a9e811eda3c24a5e53086369208819884fa49/snappy/src/main/java/io/joshworks/snappy/SnappyServer.java#L474-L476
PawelAdamski/HttpClientMock
src/main/java/com/github/paweladamski/httpclientmock/HttpClientVerifyBuilder.java
HttpClientVerifyBuilder.withParameter
public HttpClientVerifyBuilder withParameter(String name, String value) { """ Adds parameter condition. Parameter must be equal to provided value. @param name parameter name @param value expected parameter value @return verification builder """ return withParameter(name, equalTo(value)); }
java
public HttpClientVerifyBuilder withParameter(String name, String value) { return withParameter(name, equalTo(value)); }
[ "public", "HttpClientVerifyBuilder", "withParameter", "(", "String", "name", ",", "String", "value", ")", "{", "return", "withParameter", "(", "name", ",", "equalTo", "(", "value", ")", ")", ";", "}" ]
Adds parameter condition. Parameter must be equal to provided value. @param name parameter name @param value expected parameter value @return verification builder
[ "Adds", "parameter", "condition", ".", "Parameter", "must", "be", "equal", "to", "provided", "value", "." ]
train
https://github.com/PawelAdamski/HttpClientMock/blob/0205498434bbc0c78c187a51181cac9b266a28fb/src/main/java/com/github/paweladamski/httpclientmock/HttpClientVerifyBuilder.java#L73-L75
salesforce/Argus
ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/ChartResources.java
ChartResources.deleteChart
@DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/ { """ Delete a chart, given its id. @param req The HttpServlet request object. Cannot be null. @param chartId The chart Id. Cannot be null and must be a positive non-zero number. @return A Response object indicating whether the chart deleti...
java
@DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/{chartId}") @Description("Deletes a chart, given its id.") public Response deleteChart(@Context HttpServletRequest req, @PathParam("chartId") BigInteger chartId) { if (chartId == null || chartId.compareTo(BigInteger.ZERO) < 1) { throw new WebApplicationExce...
[ "@", "DELETE", "@", "Produces", "(", "MediaType", ".", "APPLICATION_JSON", ")", "@", "Path", "(", "\"/{chartId}\"", ")", "@", "Description", "(", "\"Deletes a chart, given its id.\"", ")", "public", "Response", "deleteChart", "(", "@", "Context", "HttpServletRequest...
Delete a chart, given its id. @param req The HttpServlet request object. Cannot be null. @param chartId The chart Id. Cannot be null and must be a positive non-zero number. @return A Response object indicating whether the chart deletion was successful or not. @throws WebApplicationException An exception...
[ "Delete", "a", "chart", "given", "its", "id", "." ]
train
https://github.com/salesforce/Argus/blob/121b59a268da264316cded6a3e9271366a23cd86/ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/ChartResources.java#L190-L209
xcesco/kripton
kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindContentProviderBuilder.java
BindContentProviderBuilder.defineJavadocHeaderForContentOperation
private void defineJavadocHeaderForContentOperation(MethodSpec.Builder builder, String value) { """ Define javadoc header for content operation. @param builder the builder @param value the value """ builder.addJavadoc("\n<h2>Supported $L operations</h2>\n", value); builder.addJavadoc("<table>\n"); ...
java
private void defineJavadocHeaderForContentOperation(MethodSpec.Builder builder, String value) { builder.addJavadoc("\n<h2>Supported $L operations</h2>\n", value); builder.addJavadoc("<table>\n"); builder.addJavadoc("<tr><th>URI</th><th>DAO.METHOD</th></tr>\n"); classBuilder.addJavadoc("<h2>Supported $L operati...
[ "private", "void", "defineJavadocHeaderForContentOperation", "(", "MethodSpec", ".", "Builder", "builder", ",", "String", "value", ")", "{", "builder", ".", "addJavadoc", "(", "\"\\n<h2>Supported $L operations</h2>\\n\"", ",", "value", ")", ";", "builder", ".", "addJa...
Define javadoc header for content operation. @param builder the builder @param value the value
[ "Define", "javadoc", "header", "for", "content", "operation", "." ]
train
https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindContentProviderBuilder.java#L655-L664
jklingsporn/vertx-jooq
vertx-jooq-generate/src/main/java/io/github/jklingsporn/vertx/jooq/generate/VertxGenerator.java
VertxGenerator.handleCustomTypeToJson
protected boolean handleCustomTypeToJson(TypedElementDefinition<?> column, String getter, String columnType, String javaMemberName, JavaWriter out) { """ Overwrite this method to handle your custom type. This is needed especially when you have custom converters. @param column the column definition @param getter ...
java
protected boolean handleCustomTypeToJson(TypedElementDefinition<?> column, String getter, String columnType, String javaMemberName, JavaWriter out) { return false; }
[ "protected", "boolean", "handleCustomTypeToJson", "(", "TypedElementDefinition", "<", "?", ">", "column", ",", "String", "getter", ",", "String", "columnType", ",", "String", "javaMemberName", ",", "JavaWriter", "out", ")", "{", "return", "false", ";", "}" ]
Overwrite this method to handle your custom type. This is needed especially when you have custom converters. @param column the column definition @param getter the getter name @param columnType the type of the column @param javaMemberName the java member name @param out the JavaWriter @return <code>true</code> if the co...
[ "Overwrite", "this", "method", "to", "handle", "your", "custom", "type", ".", "This", "is", "needed", "especially", "when", "you", "have", "custom", "converters", "." ]
train
https://github.com/jklingsporn/vertx-jooq/blob/0db00b5e040639c309691dfbc125034fa3346d88/vertx-jooq-generate/src/main/java/io/github/jklingsporn/vertx/jooq/generate/VertxGenerator.java#L72-L74
jOOQ/jOOL
jOOL-java-8/src/main/java/org/jooq/lambda/Unchecked.java
Unchecked.intToLongFunction
public static IntToLongFunction intToLongFunction(CheckedIntToLongFunction function, Consumer<Throwable> handler) { """ Wrap a {@link CheckedIntToLongFunction} in a {@link IntToLongFunction} with a custom handler for checked exceptions. <p> Example: <code><pre> IntStream.of(1, 2, 3).mapToLong(Unchecked.intToLo...
java
public static IntToLongFunction intToLongFunction(CheckedIntToLongFunction function, Consumer<Throwable> handler) { return t -> { try { return function.applyAsLong(t); } catch (Throwable e) { handler.accept(e); throw new Illega...
[ "public", "static", "IntToLongFunction", "intToLongFunction", "(", "CheckedIntToLongFunction", "function", ",", "Consumer", "<", "Throwable", ">", "handler", ")", "{", "return", "t", "->", "{", "try", "{", "return", "function", ".", "applyAsLong", "(", "t", ")",...
Wrap a {@link CheckedIntToLongFunction} in a {@link IntToLongFunction} with a custom handler for checked exceptions. <p> Example: <code><pre> IntStream.of(1, 2, 3).mapToLong(Unchecked.intToLongFunction( i -> { if (i &lt; 0) throw new Exception("Only positive numbers allowed"); return (long) i; }, e -> { throw new Ille...
[ "Wrap", "a", "{", "@link", "CheckedIntToLongFunction", "}", "in", "a", "{", "@link", "IntToLongFunction", "}", "with", "a", "custom", "handler", "for", "checked", "exceptions", ".", "<p", ">", "Example", ":", "<code", ">", "<pre", ">", "IntStream", ".", "o...
train
https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/Unchecked.java#L1115-L1126
b3log/latke
latke-core/src/main/java/org/b3log/latke/ioc/Bean.java
Bean.resolveDependencies
private void resolveDependencies(final Object reference) { """ Resolves dependencies for the specified reference. @param reference the specified reference """ final Class<?> superclass = reference.getClass().getSuperclass().getSuperclass(); // Proxy -> Orig -> Super resolveSuperclassFieldDe...
java
private void resolveDependencies(final Object reference) { final Class<?> superclass = reference.getClass().getSuperclass().getSuperclass(); // Proxy -> Orig -> Super resolveSuperclassFieldDependencies(reference, superclass); resolveCurrentclassFieldDependencies(reference); }
[ "private", "void", "resolveDependencies", "(", "final", "Object", "reference", ")", "{", "final", "Class", "<", "?", ">", "superclass", "=", "reference", ".", "getClass", "(", ")", ".", "getSuperclass", "(", ")", ".", "getSuperclass", "(", ")", ";", "// Pr...
Resolves dependencies for the specified reference. @param reference the specified reference
[ "Resolves", "dependencies", "for", "the", "specified", "reference", "." ]
train
https://github.com/b3log/latke/blob/f7e08a47eeecea5f7c94006382c24f353585de33/latke-core/src/main/java/org/b3log/latke/ioc/Bean.java#L136-L141
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/row/decomposition/qr/QrUpdate_DDRM.java
QrUpdate_DDRM.addRow
public void addRow(DMatrixRMaj Q , DMatrixRMaj R , double []row , int rowIndex , boolean resizeR ) { """ <p> Adjusts the values of the Q and R matrices to take in account the effects of inserting a row to the 'A' matrix at the specified location. This operation requires about 6mn + O(n) flops. </p> <p> If ...
java
public void addRow(DMatrixRMaj Q , DMatrixRMaj R , double []row , int rowIndex , boolean resizeR ) { // memory management and check precoditions setQR(Q,R,1); m_m = m+1; if( Q.data.length < m_m*m_m ) throw new IllegalArgumentException("Q matrix does not have enough data to g...
[ "public", "void", "addRow", "(", "DMatrixRMaj", "Q", ",", "DMatrixRMaj", "R", ",", "double", "[", "]", "row", ",", "int", "rowIndex", ",", "boolean", "resizeR", ")", "{", "// memory management and check precoditions", "setQR", "(", "Q", ",", "R", ",", "1", ...
<p> Adjusts the values of the Q and R matrices to take in account the effects of inserting a row to the 'A' matrix at the specified location. This operation requires about 6mn + O(n) flops. </p> <p> If Q and/or R does not have enough data elements to grow then an exception is thrown. </p> <p> The adjustment done is ...
[ "<p", ">", "Adjusts", "the", "values", "of", "the", "Q", "and", "R", "matrices", "to", "take", "in", "account", "the", "effects", "of", "inserting", "a", "row", "to", "the", "A", "matrix", "at", "the", "specified", "location", ".", "This", "operation", ...
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/row/decomposition/qr/QrUpdate_DDRM.java#L145-L169
netscaler/sdx_nitro
src/main/java/com/citrix/sdx/nitro/resource/config/mps/vm_device.java
vm_device.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> """ vm_device_responses result = (vm_device_responses) service.get_payload_...
java
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { vm_device_responses result = (vm_device_responses) service.get_payload_formatter().string_to_resource(vm_device_responses.class, response); if(result.errorcode != 0) { if (result.errorcode == SESS...
[ "protected", "base_resource", "[", "]", "get_nitro_bulk_response", "(", "nitro_service", "service", ",", "String", "response", ")", "throws", "Exception", "{", "vm_device_responses", "result", "=", "(", "vm_device_responses", ")", "service", ".", "get_payload_formatter"...
<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/mps/vm_device.java#L2618-L2635
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java
LcdsServiceProxy.createGroupFinderLobby
public LobbyStatus createGroupFinderLobby(int type, String uuid) { """ Create a group finder lobby. Might be deprecated? @param type unknown - The queue type? @param uuid A unique id for the team @return The lobby status of the group finder lobby """ return client.sendRpcAndWait(SERVICE, "createGrou...
java
public LobbyStatus createGroupFinderLobby(int type, String uuid) { return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", type, uuid); }
[ "public", "LobbyStatus", "createGroupFinderLobby", "(", "int", "type", ",", "String", "uuid", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"createGroupFinderLobby\"", ",", "type", ",", "uuid", ")", ";", "}" ]
Create a group finder lobby. Might be deprecated? @param type unknown - The queue type? @param uuid A unique id for the team @return The lobby status of the group finder lobby
[ "Create", "a", "group", "finder", "lobby", ".", "Might", "be", "deprecated?" ]
train
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java#L40-L42