Dataset Viewer
Auto-converted to Parquet Duplicate
repository_name
stringlengths
7
54
func_path_in_repository
stringlengths
18
218
func_name
stringlengths
5
140
whole_func_string
stringlengths
79
3.99k
language
stringclasses
1 value
func_code_string
stringlengths
79
3.99k
func_code_tokens
sequencelengths
20
624
func_documentation_string
stringlengths
61
1.96k
func_documentation_tokens
sequencelengths
1
478
split_name
stringclasses
1 value
func_code_url
stringlengths
107
339
SeleniumHQ/selenium
java/client/src/org/openqa/selenium/remote/http/HttpRequest.java
HttpRequest.addQueryParameter
public HttpRequest addQueryParameter(String name, String value) { queryParameters.put( Objects.requireNonNull(name, "Name must be set"), Objects.requireNonNull(value, "Value must be set")); return this; }
java
public HttpRequest addQueryParameter(String name, String value) { queryParameters.put( Objects.requireNonNull(name, "Name must be set"), Objects.requireNonNull(value, "Value must be set")); return this; }
[ "public", "HttpRequest", "addQueryParameter", "(", "String", "name", ",", "String", "value", ")", "{", "queryParameters", ".", "put", "(", "Objects", ".", "requireNonNull", "(", "name", ",", "\"Name must be set\"", ")", ",", "Objects", ".", "requireNonNull", "("...
Set a query parameter, adding to existing values if present. The implementation will ensure that the name and value are properly encoded.
[ "Set", "a", "query", "parameter", "adding", "to", "existing", "values", "if", "present", ".", "The", "implementation", "will", "ensure", "that", "the", "name", "and", "value", "are", "properly", "encoded", "." ]
train
https://github.com/SeleniumHQ/selenium/blob/7af172729f17b20269c8ca4ea6f788db48616535/java/client/src/org/openqa/selenium/remote/http/HttpRequest.java#L61-L66
StanKocken/EfficientAdapter
efficientadapter/src/main/java/com/skocken/efficientadapter/lib/util/ViewHelper.java
ViewHelper.setText
public static void setText(EfficientCacheView cacheView, int viewId, CharSequence text) { View view = cacheView.findViewByIdEfficient(viewId); if (view instanceof TextView) { ((TextView) view).setText(text); } }
java
public static void setText(EfficientCacheView cacheView, int viewId, CharSequence text) { View view = cacheView.findViewByIdEfficient(viewId); if (view instanceof TextView) { ((TextView) view).setText(text); } }
[ "public", "static", "void", "setText", "(", "EfficientCacheView", "cacheView", ",", "int", "viewId", ",", "CharSequence", "text", ")", "{", "View", "view", "=", "cacheView", ".", "findViewByIdEfficient", "(", "viewId", ")", ";", "if", "(", "view", "instanceof"...
Equivalent to calling TextView.setText @param cacheView The cache of views to get the view from @param viewId The id of the view whose text should change @param text The new text for the view
[ "Equivalent", "to", "calling", "TextView", ".", "setText" ]
train
https://github.com/StanKocken/EfficientAdapter/blob/0bcc3a20182cbce9d7901e1e2a9104251637167d/efficientadapter/src/main/java/com/skocken/efficientadapter/lib/util/ViewHelper.java#L115-L120
mozilla/rhino
src/org/mozilla/javascript/NativeSet.java
NativeSet.loadFromIterable
static void loadFromIterable(Context cx, Scriptable scope, ScriptableObject set, Object arg1) { if ((arg1 == null) || Undefined.instance.equals(arg1)) { return; } // Call the "[Symbol.iterator]" property as a function. Object ito = ScriptRuntime.callIterator(arg1, cx, sc...
java
static void loadFromIterable(Context cx, Scriptable scope, ScriptableObject set, Object arg1) { if ((arg1 == null) || Undefined.instance.equals(arg1)) { return; } // Call the "[Symbol.iterator]" property as a function. Object ito = ScriptRuntime.callIterator(arg1, cx, sc...
[ "static", "void", "loadFromIterable", "(", "Context", "cx", ",", "Scriptable", "scope", ",", "ScriptableObject", "set", ",", "Object", "arg1", ")", "{", "if", "(", "(", "arg1", "==", "null", ")", "||", "Undefined", ".", "instance", ".", "equals", "(", "a...
If an "iterable" object was passed to the constructor, there are many many things to do. This is common code with NativeWeakSet.
[ "If", "an", "iterable", "object", "was", "passed", "to", "the", "constructor", "there", "are", "many", "many", "things", "to", "do", ".", "This", "is", "common", "code", "with", "NativeWeakSet", "." ]
train
https://github.com/mozilla/rhino/blob/fa8a86df11d37623f5faa8d445a5876612bc47b0/src/org/mozilla/javascript/NativeSet.java#L155-L184
JodaOrg/joda-time
src/main/java/org/joda/time/format/PeriodFormatterBuilder.java
PeriodFormatterBuilder.appendSuffix
public PeriodFormatterBuilder appendSuffix(String[] regularExpressions, String[] suffixes) { if (regularExpressions == null || suffixes == null || regularExpressions.length < 1 || regularExpressions.length != suffixes.length) { throw new IllegalArgumentException(); } ...
java
public PeriodFormatterBuilder appendSuffix(String[] regularExpressions, String[] suffixes) { if (regularExpressions == null || suffixes == null || regularExpressions.length < 1 || regularExpressions.length != suffixes.length) { throw new IllegalArgumentException(); } ...
[ "public", "PeriodFormatterBuilder", "appendSuffix", "(", "String", "[", "]", "regularExpressions", ",", "String", "[", "]", "suffixes", ")", "{", "if", "(", "regularExpressions", "==", "null", "||", "suffixes", "==", "null", "||", "regularExpressions", ".", "len...
Append a field suffix which applies only to the last appended field. If the field is not printed, neither is the suffix. <p> The value is converted to String. During parsing, the suffix is selected based on the match with the regular expression. The index of the first regular expression that matches value converted to ...
[ "Append", "a", "field", "suffix", "which", "applies", "only", "to", "the", "last", "appended", "field", ".", "If", "the", "field", "is", "not", "printed", "neither", "is", "the", "suffix", ".", "<p", ">", "The", "value", "is", "converted", "to", "String"...
train
https://github.com/JodaOrg/joda-time/blob/bd79f1c4245e79b3c2c56d7b04fde2a6e191fa42/src/main/java/org/joda/time/format/PeriodFormatterBuilder.java#L667-L673
jenkinsci/jenkins
core/src/main/java/hudson/util/ArgumentListBuilder.java
ArgumentListBuilder.addKeyValuePairsFromPropertyString
public ArgumentListBuilder addKeyValuePairsFromPropertyString(String prefix, String properties, VariableResolver<String> vr, Set<String> propsToMask) throws IOException { if(properties==null) return this; properties = Util.replaceMacro(properties, propertiesGeneratingResolver(vr)); for (Ent...
java
public ArgumentListBuilder addKeyValuePairsFromPropertyString(String prefix, String properties, VariableResolver<String> vr, Set<String> propsToMask) throws IOException { if(properties==null) return this; properties = Util.replaceMacro(properties, propertiesGeneratingResolver(vr)); for (Ent...
[ "public", "ArgumentListBuilder", "addKeyValuePairsFromPropertyString", "(", "String", "prefix", ",", "String", "properties", ",", "VariableResolver", "<", "String", ">", "vr", ",", "Set", "<", "String", ">", "propsToMask", ")", "throws", "IOException", "{", "if", ...
Adds key value pairs as "-Dkey=value -Dkey=value ..." by parsing a given string using {@link Properties} with masking. @param prefix The '-D' portion of the example. Defaults to -D if null. @param properties The persisted form of {@link Properties}. For example, "abc=def\nghi=jkl". Can be null, in which case this meth...
[ "Adds", "key", "value", "pairs", "as", "-", "Dkey", "=", "value", "-", "Dkey", "=", "value", "...", "by", "parsing", "a", "given", "string", "using", "{", "@link", "Properties", "}", "with", "masking", "." ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/util/ArgumentListBuilder.java#L227-L236
xmlet/XsdAsmFaster
src/main/java/org/xmlet/xsdasmfaster/classes/XsdAsmInterfaces.java
XsdAsmInterfaces.generateSequenceMethod
private void generateSequenceMethod(ClassWriter classWriter, String className, String javaType, String addingChildName, String typeName, String nextTypeName, String apiName) { String type = getFullClassTypeName(typeName, apiName); String nextType = getFullClassTypeName(nextTypeName, apiName); St...
java
private void generateSequenceMethod(ClassWriter classWriter, String className, String javaType, String addingChildName, String typeName, String nextTypeName, String apiName) { String type = getFullClassTypeName(typeName, apiName); String nextType = getFullClassTypeName(nextTypeName, apiName); St...
[ "private", "void", "generateSequenceMethod", "(", "ClassWriter", "classWriter", ",", "String", "className", ",", "String", "javaType", ",", "String", "addingChildName", ",", "String", "typeName", ",", "String", "nextTypeName", ",", "String", "apiName", ")", "{", "...
<xs:element name="personInfo"> <xs:complexType> <xs:sequence> <xs:element name="firstName" type="xs:string"/> (...) Generates the method present in the sequence interface for a sequence element. Example: PersonInfoFirstName firstName(String firstName); @param classWriter The {@link ClassWriter} of the sequence interfac...
[ "<xs", ":", "element", "name", "=", "personInfo", ">", "<xs", ":", "complexType", ">", "<xs", ":", "sequence", ">", "<xs", ":", "element", "name", "=", "firstName", "type", "=", "xs", ":", "string", "/", ">", "(", "...", ")", "Generates", "the", "met...
train
https://github.com/xmlet/XsdAsmFaster/blob/ccb78f9dd4b957ad5ac1ca349eaf24338c421e94/src/main/java/org/xmlet/xsdasmfaster/classes/XsdAsmInterfaces.java#L526-L566
joelittlejohn/jsonschema2pojo
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/rules/TypeRule.java
TypeRule.getIntegerType
private JType getIntegerType(JCodeModel owner, JsonNode node, GenerationConfig config) { if (config.isUseBigIntegers()) { return unboxIfNecessary(owner.ref(BigInteger.class), config); } else if (config.isUseLongIntegers() || node.has("minimum") && node.get("minimum").isLong() || node.has("maximum") && no...
java
private JType getIntegerType(JCodeModel owner, JsonNode node, GenerationConfig config) { if (config.isUseBigIntegers()) { return unboxIfNecessary(owner.ref(BigInteger.class), config); } else if (config.isUseLongIntegers() || node.has("minimum") && node.get("minimum").isLong() || node.has("maximum") && no...
[ "private", "JType", "getIntegerType", "(", "JCodeModel", "owner", ",", "JsonNode", "node", ",", "GenerationConfig", "config", ")", "{", "if", "(", "config", ".", "isUseBigIntegers", "(", ")", ")", "{", "return", "unboxIfNecessary", "(", "owner", ".", "ref", ...
Returns the JType for an integer field. Handles type lookup and unboxing.
[ "Returns", "the", "JType", "for", "an", "integer", "field", ".", "Handles", "type", "lookup", "and", "unboxing", "." ]
train
https://github.com/joelittlejohn/jsonschema2pojo/blob/0552b80db93214eb186e4ae45b40866cc1e7eb84/jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/rules/TypeRule.java#L146-L157
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java
TmdbEpisodes.getEpisodeInfo
public TVEpisodeInfo getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException { TmdbParameters parameters = new TmdbParameters(); parameters.add(Param.ID, tvID); parameters.add(Param.SEASON_NUMBER, seasonNumber); p...
java
public TVEpisodeInfo getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException { TmdbParameters parameters = new TmdbParameters(); parameters.add(Param.ID, tvID); parameters.add(Param.SEASON_NUMBER, seasonNumber); p...
[ "public", "TVEpisodeInfo", "getEpisodeInfo", "(", "int", "tvID", ",", "int", "seasonNumber", ",", "int", "episodeNumber", ",", "String", "language", ",", "String", "...", "appendToResponse", ")", "throws", "MovieDbException", "{", "TmdbParameters", "parameters", "="...
Get the primary information about a TV episode by combination of a season and episode number. @param tvID @param seasonNumber @param episodeNumber @param language @param appendToResponse @return @throws MovieDbException
[ "Get", "the", "primary", "information", "about", "a", "TV", "episode", "by", "combination", "of", "a", "season", "and", "episode", "number", "." ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java#L78-L94
Netflix/conductor
client/src/main/java/com/netflix/conductor/client/http/TaskClient.java
TaskClient.logMessageForTask
public void logMessageForTask(String taskId, String logMessage) { Preconditions.checkArgument(StringUtils.isNotBlank(taskId), "Task id cannot be blank"); postForEntityWithRequestOnly("tasks/" + taskId + "/log", logMessage); }
java
public void logMessageForTask(String taskId, String logMessage) { Preconditions.checkArgument(StringUtils.isNotBlank(taskId), "Task id cannot be blank"); postForEntityWithRequestOnly("tasks/" + taskId + "/log", logMessage); }
[ "public", "void", "logMessageForTask", "(", "String", "taskId", ",", "String", "logMessage", ")", "{", "Preconditions", ".", "checkArgument", "(", "StringUtils", ".", "isNotBlank", "(", "taskId", ")", ",", "\"Task id cannot be blank\"", ")", ";", "postForEntityWithR...
Log execution messages for a task. @param taskId id of the task @param logMessage the message to be logged
[ "Log", "execution", "messages", "for", "a", "task", "." ]
train
https://github.com/Netflix/conductor/blob/78fae0ed9ddea22891f9eebb96a2ec0b2783dca0/client/src/main/java/com/netflix/conductor/client/http/TaskClient.java#L288-L291
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslocspresponder.java
sslocspresponder.get
public static sslocspresponder get(nitro_service service, String name) throws Exception{ sslocspresponder obj = new sslocspresponder(); obj.set_name(name); sslocspresponder response = (sslocspresponder) obj.get_resource(service); return response; }
java
public static sslocspresponder get(nitro_service service, String name) throws Exception{ sslocspresponder obj = new sslocspresponder(); obj.set_name(name); sslocspresponder response = (sslocspresponder) obj.get_resource(service); return response; }
[ "public", "static", "sslocspresponder", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "sslocspresponder", "obj", "=", "new", "sslocspresponder", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "...
Use this API to fetch sslocspresponder resource of given name .
[ "Use", "this", "API", "to", "fetch", "sslocspresponder", "resource", "of", "given", "name", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslocspresponder.java#L634-L639
mangstadt/biweekly
src/main/java/biweekly/util/com/google/ical/util/TimeUtils.java
TimeUtils.timetMillisFromEpochSecs
private static long timetMillisFromEpochSecs(long epochSecs, TimeZone zone) { DateTimeValue date = timeFromSecsSinceEpoch(epochSecs); Calendar cal = new GregorianCalendar(zone); cal.clear(); cal.set(date.year(), date.month() - 1, date.day(), date.hour(), date.minute(), date.second()); return cal.getTimeInMill...
java
private static long timetMillisFromEpochSecs(long epochSecs, TimeZone zone) { DateTimeValue date = timeFromSecsSinceEpoch(epochSecs); Calendar cal = new GregorianCalendar(zone); cal.clear(); cal.set(date.year(), date.month() - 1, date.day(), date.hour(), date.minute(), date.second()); return cal.getTimeInMill...
[ "private", "static", "long", "timetMillisFromEpochSecs", "(", "long", "epochSecs", ",", "TimeZone", "zone", ")", "{", "DateTimeValue", "date", "=", "timeFromSecsSinceEpoch", "(", "epochSecs", ")", ";", "Calendar", "cal", "=", "new", "GregorianCalendar", "(", "zone...
Get a "time_t" in milliseconds given a number of seconds since the Dershowitz/Reingold epoch relative to a given timezone. @param epochSecs the number of seconds since the Dershowitz/Reingold epoch relative to the given timezone @param zone timezone against which epochSecs applies @return the number of milliseconds sin...
[ "Get", "a", "time_t", "in", "milliseconds", "given", "a", "number", "of", "seconds", "since", "the", "Dershowitz", "/", "Reingold", "epoch", "relative", "to", "a", "given", "timezone", "." ]
train
https://github.com/mangstadt/biweekly/blob/2e21350f85c13dfff52fdef98fdbebe2976fcf61/src/main/java/biweekly/util/com/google/ical/util/TimeUtils.java#L83-L89
RuedigerMoeller/kontraktor
modules/kontraktor-bare/src/main/java/org/nustaq/kontraktor/barebone/RemoteActorConnection.java
RemoteActorConnection.sendRequests
protected void sendRequests() { if ( ! requestUnderway ) { requestUnderway = true; delayed( new Runnable() { @Override public void run() { synchronized (requests) { Object req[]; if ( open...
java
protected void sendRequests() { if ( ! requestUnderway ) { requestUnderway = true; delayed( new Runnable() { @Override public void run() { synchronized (requests) { Object req[]; if ( open...
[ "protected", "void", "sendRequests", "(", ")", "{", "if", "(", "!", "requestUnderway", ")", "{", "requestUnderway", "=", "true", ";", "delayed", "(", "new", "Runnable", "(", ")", "{", "@", "Override", "public", "void", "run", "(", ")", "{", "synchronized...
sends pending requests async. needs be executed inside lock (see calls of this)
[ "sends", "pending", "requests", "async", ".", "needs", "be", "executed", "inside", "lock", "(", "see", "calls", "of", "this", ")" ]
train
https://github.com/RuedigerMoeller/kontraktor/blob/d5f3817f9476f3786187b8ef00400b7a4f25a404/modules/kontraktor-bare/src/main/java/org/nustaq/kontraktor/barebone/RemoteActorConnection.java#L437-L476
morimekta/utils
diff-util/src/main/java/net/morimekta/diff/DiffBase.java
DiffBase.linesToChars
LinesToCharsResult linesToChars(String text1, String text2) { List<String> lineArray = new ArrayList<>(); Map<String, Integer> lineHash = new HashMap<>(); // e.g. linearray[4] == "Hello\n" // e.g. linehash.get("Hello\n") == 4 // "\x00" is a valid character, but various debuggers...
java
LinesToCharsResult linesToChars(String text1, String text2) { List<String> lineArray = new ArrayList<>(); Map<String, Integer> lineHash = new HashMap<>(); // e.g. linearray[4] == "Hello\n" // e.g. linehash.get("Hello\n") == 4 // "\x00" is a valid character, but various debuggers...
[ "LinesToCharsResult", "linesToChars", "(", "String", "text1", ",", "String", "text2", ")", "{", "List", "<", "String", ">", "lineArray", "=", "new", "ArrayList", "<>", "(", ")", ";", "Map", "<", "String", ",", "Integer", ">", "lineHash", "=", "new", "Has...
Split two texts into a list of strings. Reduce the texts to a string of hashes where each Unicode character represents one line. @param text1 First string. @param text2 Second string. @return An object containing the encoded text1, the encoded text2 and the List of unique strings. The zeroth element of the List of un...
[ "Split", "two", "texts", "into", "a", "list", "of", "strings", ".", "Reduce", "the", "texts", "to", "a", "string", "of", "hashes", "where", "each", "Unicode", "character", "represents", "one", "line", "." ]
train
https://github.com/morimekta/utils/blob/dc987485902f1a7d58169c89c61db97425a6226d/diff-util/src/main/java/net/morimekta/diff/DiffBase.java#L657-L670
fhoeben/hsac-fitnesse-fixtures
src/main/java/nl/hsac/fitnesse/fixture/slim/ListFixture.java
ListFixture.setValueAtIn
public void setValueAtIn(Object value, int index, List aList) { Object cleanValue = cleanupValue(value); while (aList.size() <= index) { aList.add(null); } aList.set(index, cleanValue); }
java
public void setValueAtIn(Object value, int index, List aList) { Object cleanValue = cleanupValue(value); while (aList.size() <= index) { aList.add(null); } aList.set(index, cleanValue); }
[ "public", "void", "setValueAtIn", "(", "Object", "value", ",", "int", "index", ",", "List", "aList", ")", "{", "Object", "cleanValue", "=", "cleanupValue", "(", "value", ")", ";", "while", "(", "aList", ".", "size", "(", ")", "<=", "index", ")", "{", ...
Sets value of element at index (0-based). If the current list has less elements it is extended to have exactly index elements. @param value value to store. @param index 0-based index to add element. @param aList list to set element in.
[ "Sets", "value", "of", "element", "at", "index", "(", "0", "-", "based", ")", ".", "If", "the", "current", "list", "has", "less", "elements", "it", "is", "extended", "to", "have", "exactly", "index", "elements", "." ]
train
https://github.com/fhoeben/hsac-fitnesse-fixtures/blob/4e9018d7386a9aa65bfcbf07eb28ae064edd1732/src/main/java/nl/hsac/fitnesse/fixture/slim/ListFixture.java#L118-L124
sahan/ZombieLink
zombielink/src/main/java/com/lonepulse/zombielink/executor/ConfigurationService.java
ConfigurationService.getDefault
@Override public Configuration getDefault() { return new Configuration() { @Override public HttpClient httpClient() { try { SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme("http", 80, PlainSocketFactory.getSocketFactory())); schemeRegist...
java
@Override public Configuration getDefault() { return new Configuration() { @Override public HttpClient httpClient() { try { SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme("http", 80, PlainSocketFactory.getSocketFactory())); schemeRegist...
[ "@", "Override", "public", "Configuration", "getDefault", "(", ")", "{", "return", "new", "Configuration", "(", ")", "{", "@", "Override", "public", "HttpClient", "httpClient", "(", ")", "{", "try", "{", "SchemeRegistry", "schemeRegistry", "=", "new", "SchemeR...
<p>The <i>out-of-the-box</i> configuration for an instance of {@link HttpClient} which will be used for executing all endpoint requests. Below is a detailed description of all configured properties.</p> <br> <ul> <li> <p><b>HttpClient</b></p> <br> <p>It registers two {@link Scheme}s:</p> <br> <ol> <li><b>HTTP</b> on po...
[ "<p", ">", "The", "<i", ">", "out", "-", "of", "-", "the", "-", "box<", "/", "i", ">", "configuration", "for", "an", "instance", "of", "{", "@link", "HttpClient", "}", "which", "will", "be", "used", "for", "executing", "all", "endpoint", "requests", ...
train
https://github.com/sahan/ZombieLink/blob/a9971add56d4f6919a4a5e84c78e9220011d8982/zombielink/src/main/java/com/lonepulse/zombielink/executor/ConfigurationService.java#L71-L97
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/io/dxfdwg/libs/dwg/DwgFile.java
DwgFile.addDwgObjectOffset
public void addDwgObjectOffset( int handle, int offset ) { DwgObjectOffset doo = new DwgObjectOffset(handle, offset); dwgObjectOffsets.add(doo); }
java
public void addDwgObjectOffset( int handle, int offset ) { DwgObjectOffset doo = new DwgObjectOffset(handle, offset); dwgObjectOffsets.add(doo); }
[ "public", "void", "addDwgObjectOffset", "(", "int", "handle", ",", "int", "offset", ")", "{", "DwgObjectOffset", "doo", "=", "new", "DwgObjectOffset", "(", "handle", ",", "offset", ")", ";", "dwgObjectOffsets", ".", "add", "(", "doo", ")", ";", "}" ]
Add a DWG object offset to the dwgObjectOffsets vector @param handle Object handle @param offset Offset of the object data in the DWG file
[ "Add", "a", "DWG", "object", "offset", "to", "the", "dwgObjectOffsets", "vector" ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/io/dxfdwg/libs/dwg/DwgFile.java#L1152-L1155
bootique/bootique-jersey
bootique-jersey/src/main/java/io/bootique/jersey/JerseyModuleExtender.java
JerseyModuleExtender.setProperty
public JerseyModuleExtender setProperty(String name, Object value) { contributeProperties().addBinding(name).toInstance(value); return this; }
java
public JerseyModuleExtender setProperty(String name, Object value) { contributeProperties().addBinding(name).toInstance(value); return this; }
[ "public", "JerseyModuleExtender", "setProperty", "(", "String", "name", ",", "Object", "value", ")", "{", "contributeProperties", "(", ")", ".", "addBinding", "(", "name", ")", ".", "toInstance", "(", "value", ")", ";", "return", "this", ";", "}" ]
Sets Jersey container property. This allows setting ResourceConfig properties that can not be set via JAX RS features. @param name property name @param value property value @return @see org.glassfish.jersey.server.ServerProperties @since 0.22
[ "Sets", "Jersey", "container", "property", ".", "This", "allows", "setting", "ResourceConfig", "properties", "that", "can", "not", "be", "set", "via", "JAX", "RS", "features", "." ]
train
https://github.com/bootique/bootique-jersey/blob/8def056158f0ad1914e975625eb5ed3e4712648c/bootique-jersey/src/main/java/io/bootique/jersey/JerseyModuleExtender.java#L104-L107
lucee/Lucee
core/src/main/java/lucee/runtime/ComponentImpl.java
ComponentImpl.get
protected Object get(int access, String name, Object defaultValue) { return get(access, KeyImpl.init(name), defaultValue); }
java
protected Object get(int access, String name, Object defaultValue) { return get(access, KeyImpl.init(name), defaultValue); }
[ "protected", "Object", "get", "(", "int", "access", ",", "String", "name", ",", "Object", "defaultValue", ")", "{", "return", "get", "(", "access", ",", "KeyImpl", ".", "init", "(", "name", ")", ",", "defaultValue", ")", ";", "}" ]
return element that has at least given access or null @param access @param name @return matching value
[ "return", "element", "that", "has", "at", "least", "given", "access", "or", "null" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/ComponentImpl.java#L1879-L1881
landawn/AbacusUtil
src/com/landawn/abacus/util/JdbcUtil.java
JdbcUtil.importData
public static int importData(final DataSet dataset, final PreparedStatement stmt) throws UncheckedSQLException { return importData(dataset, dataset.columnNameList(), stmt); }
java
public static int importData(final DataSet dataset, final PreparedStatement stmt) throws UncheckedSQLException { return importData(dataset, dataset.columnNameList(), stmt); }
[ "public", "static", "int", "importData", "(", "final", "DataSet", "dataset", ",", "final", "PreparedStatement", "stmt", ")", "throws", "UncheckedSQLException", "{", "return", "importData", "(", "dataset", ",", "dataset", ".", "columnNameList", "(", ")", ",", "st...
Imports the data from <code>DataSet</code> to database. @param dataset @param stmt the column order in the sql must be consistent with the column order in the DataSet. @return @throws UncheckedSQLException
[ "Imports", "the", "data", "from", "<code", ">", "DataSet<", "/", "code", ">", "to", "database", "." ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/JdbcUtil.java#L2176-L2178
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java
EntityLockService.newReadLock
public IEntityLock newReadLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.READ_LOCK, owner); }
java
public IEntityLock newReadLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.READ_LOCK, owner); }
[ "public", "IEntityLock", "newReadLock", "(", "Class", "entityType", ",", "String", "entityKey", ",", "String", "owner", ")", "throws", "LockingException", "{", "return", "lockService", ".", "newLock", "(", "entityType", ",", "entityKey", ",", "IEntityLockService", ...
Returns a read lock for the entity type, entity key and owner. @return org.apereo.portal.concurrency.locking.IEntityLock @param entityType Class @param entityKey String @param owner String @exception LockingException
[ "Returns", "a", "read", "lock", "for", "the", "entity", "type", "entity", "key", "and", "owner", "." ]
train
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java#L118-L121
mygreen/xlsmapper
src/main/java/com/gh/mygreen/xlsmapper/xml/AnnotationReader.java
AnnotationReader.hasAnnotation
public <A extends Annotation> boolean hasAnnotation(final Method method, final Class<A> annClass) { return getAnnotation(method, annClass) != null; }
java
public <A extends Annotation> boolean hasAnnotation(final Method method, final Class<A> annClass) { return getAnnotation(method, annClass) != null; }
[ "public", "<", "A", "extends", "Annotation", ">", "boolean", "hasAnnotation", "(", "final", "Method", "method", ",", "final", "Class", "<", "A", ">", "annClass", ")", "{", "return", "getAnnotation", "(", "method", ",", "annClass", ")", "!=", "null", ";", ...
メソッドに付与されたアノテーションを持つか判定します。 @since 2.0 @param method 判定対象のメソッド @param annClass アノテーションのタイプ @return trueの場合、アノテーションを持ちます。
[ "メソッドに付与されたアノテーションを持つか判定します。" ]
train
https://github.com/mygreen/xlsmapper/blob/a0c6b25c622e5f3a50b199ef685d2ee46ad5483c/src/main/java/com/gh/mygreen/xlsmapper/xml/AnnotationReader.java#L145-L147
phax/ph-commons
ph-xml/src/main/java/com/helger/xml/serialize/write/XMLEmitter.java
XMLEmitter.onText
public void onText (@Nullable final String sText, final boolean bEscape) { if (bEscape) _appendMasked (EXMLCharMode.TEXT, sText); else _append (sText); }
java
public void onText (@Nullable final String sText, final boolean bEscape) { if (bEscape) _appendMasked (EXMLCharMode.TEXT, sText); else _append (sText); }
[ "public", "void", "onText", "(", "@", "Nullable", "final", "String", "sText", ",", "final", "boolean", "bEscape", ")", "{", "if", "(", "bEscape", ")", "_appendMasked", "(", "EXMLCharMode", ".", "TEXT", ",", "sText", ")", ";", "else", "_append", "(", "sTe...
Text node. @param sText The contained text @param bEscape If <code>true</code> the text should be XML masked (the default), <code>false</code> if not. The <code>false</code> case is especially interesting for HTML inline JS and CSS code.
[ "Text", "node", "." ]
train
https://github.com/phax/ph-commons/blob/d28c03565f44a0b804d96028d0969f9bb38c4313/ph-xml/src/main/java/com/helger/xml/serialize/write/XMLEmitter.java#L478-L484
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeZoneFormat.java
TimeZoneFormat.setGMTOffsetPattern
public TimeZoneFormat setGMTOffsetPattern(GMTOffsetPatternType type, String pattern) { if (isFrozen()) { throw new UnsupportedOperationException("Attempt to modify frozen object"); } if (pattern == null) { throw new NullPointerException("Null GMT offset pattern"); ...
java
public TimeZoneFormat setGMTOffsetPattern(GMTOffsetPatternType type, String pattern) { if (isFrozen()) { throw new UnsupportedOperationException("Attempt to modify frozen object"); } if (pattern == null) { throw new NullPointerException("Null GMT offset pattern"); ...
[ "public", "TimeZoneFormat", "setGMTOffsetPattern", "(", "GMTOffsetPatternType", "type", ",", "String", "pattern", ")", "{", "if", "(", "isFrozen", "(", ")", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "\"Attempt to modify frozen object\"", ")", ";"...
Sets the offset pattern for the given offset type. @param type the offset pattern. @param pattern the pattern string. @return this object. @throws IllegalArgumentException when the pattern string does not have required time field letters. @throws UnsupportedOperationException when this object is frozen. @see #getGMTOf...
[ "Sets", "the", "offset", "pattern", "for", "the", "given", "offset", "type", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeZoneFormat.java#L584-L599
willowtreeapps/Hyperion-Android
hyperion-phoenix/src/main/java/com/willowtreeapps/hyperion/phoenix/ProcessPhoenix.java
ProcessPhoenix.triggerRebirth
public static void triggerRebirth(Context context, Intent... nextIntents) { Intent intent = new Intent(context, ProcessPhoenix.class); intent.addFlags(FLAG_ACTIVITY_NEW_TASK); // In case we are called with non-Activity context. intent.putParcelableArrayListExtra(KEY_RESTART_INTENTS, new ArrayLis...
java
public static void triggerRebirth(Context context, Intent... nextIntents) { Intent intent = new Intent(context, ProcessPhoenix.class); intent.addFlags(FLAG_ACTIVITY_NEW_TASK); // In case we are called with non-Activity context. intent.putParcelableArrayListExtra(KEY_RESTART_INTENTS, new ArrayLis...
[ "public", "static", "void", "triggerRebirth", "(", "Context", "context", ",", "Intent", "...", "nextIntents", ")", "{", "Intent", "intent", "=", "new", "Intent", "(", "context", ",", "ProcessPhoenix", ".", "class", ")", ";", "intent", ".", "addFlags", "(", ...
Call to restart the application process using the specified intents. <p> Behavior of the current process after invoking this method is undefined.
[ "Call", "to", "restart", "the", "application", "process", "using", "the", "specified", "intents", ".", "<p", ">", "Behavior", "of", "the", "current", "process", "after", "invoking", "this", "method", "is", "undefined", "." ]
train
https://github.com/willowtreeapps/Hyperion-Android/blob/1910f53869a53f1395ba90588a0b4db7afdec79c/hyperion-phoenix/src/main/java/com/willowtreeapps/hyperion/phoenix/ProcessPhoenix.java#L61-L72
op4j/op4j
src/main/java/org/op4j/Op.java
Op.onArray
public static <T> Level0ArrayOperator<Date[],Date> onArray(final Date[] target) { return onArrayOf(Types.DATE, target); }
java
public static <T> Level0ArrayOperator<Date[],Date> onArray(final Date[] target) { return onArrayOf(Types.DATE, target); }
[ "public", "static", "<", "T", ">", "Level0ArrayOperator", "<", "Date", "[", "]", ",", "Date", ">", "onArray", "(", "final", "Date", "[", "]", "target", ")", "{", "return", "onArrayOf", "(", "Types", ".", "DATE", ",", "target", ")", ";", "}" ]
<p> Creates an <i>operation expression</i> on the specified target object. </p> @param target the target object on which the expression will execute @return an operator, ready for chaining
[ "<p", ">", "Creates", "an", "<i", ">", "operation", "expression<", "/", "i", ">", "on", "the", "specified", "target", "object", ".", "<", "/", "p", ">" ]
train
https://github.com/op4j/op4j/blob/b577596dfe462089d3dd169666defc6de7ad289a/src/main/java/org/op4j/Op.java#L819-L821
blinkfox/zealot
src/main/java/com/blinkfox/zealot/core/ZealotKhala.java
ZealotKhala.doBetween
private ZealotKhala doBetween(String prefix, String field, Object startValue, Object endValue, boolean match) { if (match) { SqlInfoBuilder.newInstace(this.source.setPrefix(prefix)).buildBetweenSql(field, startValue, endValue); this.source.resetPrefix(); } return this; ...
java
private ZealotKhala doBetween(String prefix, String field, Object startValue, Object endValue, boolean match) { if (match) { SqlInfoBuilder.newInstace(this.source.setPrefix(prefix)).buildBetweenSql(field, startValue, endValue); this.source.resetPrefix(); } return this; ...
[ "private", "ZealotKhala", "doBetween", "(", "String", "prefix", ",", "String", "field", ",", "Object", "startValue", ",", "Object", "endValue", ",", "boolean", "match", ")", "{", "if", "(", "match", ")", "{", "SqlInfoBuilder", ".", "newInstace", "(", "this",...
执行生成like模糊查询SQL片段的方法. @param prefix 前缀 @param field 数据库字段 @param startValue 值 @param endValue 值 @param match 是否匹配 @return ZealotKhala实例的当前实例
[ "执行生成like模糊查询SQL片段的方法", "." ]
train
https://github.com/blinkfox/zealot/blob/21b00fa3e4ed42188eef3116d494e112e7a4194c/src/main/java/com/blinkfox/zealot/core/ZealotKhala.java#L429-L435
apache/incubator-gobblin
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java
AbstractJobLauncher.cancelJob
@Override public void cancelJob(JobListener jobListener) throws JobException { synchronized (this.cancellationRequest) { if (this.cancellationRequested) { // Return immediately if a cancellation has already been requested return; } this.cancellationRequested = true; ...
java
@Override public void cancelJob(JobListener jobListener) throws JobException { synchronized (this.cancellationRequest) { if (this.cancellationRequested) { // Return immediately if a cancellation has already been requested return; } this.cancellationRequested = true; ...
[ "@", "Override", "public", "void", "cancelJob", "(", "JobListener", "jobListener", ")", "throws", "JobException", "{", "synchronized", "(", "this", ".", "cancellationRequest", ")", "{", "if", "(", "this", ".", "cancellationRequested", ")", "{", "// Return immediat...
A default implementation of {@link JobLauncher#cancelJob(JobListener)}. <p> This implementation relies on two conditional variables: one for the condition that a cancellation is requested, and the other for the condition that the cancellation is executed. Upon entrance, the method notifies the cancellation executor st...
[ "A", "default", "implementation", "of", "{", "@link", "JobLauncher#cancelJob", "(", "JobListener", ")", "}", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java#L251-L295
hibernate/hibernate-ogm
core/src/main/java/org/hibernate/ogm/datastore/document/impl/EmbeddableStateFinder.java
EmbeddableStateFinder.getOuterMostNullEmbeddableIfAny
public String getOuterMostNullEmbeddableIfAny(String column) { String[] path = column.split( "\\." ); if ( !isEmbeddableColumn( path ) ) { return null; } // the cached value may be null hence the explicit key lookup if ( columnToOuterMostNullEmbeddableCache.containsKey( column ) ) { return columnToOuter...
java
public String getOuterMostNullEmbeddableIfAny(String column) { String[] path = column.split( "\\." ); if ( !isEmbeddableColumn( path ) ) { return null; } // the cached value may be null hence the explicit key lookup if ( columnToOuterMostNullEmbeddableCache.containsKey( column ) ) { return columnToOuter...
[ "public", "String", "getOuterMostNullEmbeddableIfAny", "(", "String", "column", ")", "{", "String", "[", "]", "path", "=", "column", ".", "split", "(", "\"\\\\.\"", ")", ";", "if", "(", "!", "isEmbeddableColumn", "(", "path", ")", ")", "{", "return", "null...
Should only called on a column that is being set to null. Returns the most outer embeddable containing {@code column} that is entirely null. Return null otherwise i.e. not embeddable. The implementation lazily compute the embeddable state and caches it. The idea behind the lazy computation is that only some columns w...
[ "Should", "only", "called", "on", "a", "column", "that", "is", "being", "set", "to", "null", "." ]
train
https://github.com/hibernate/hibernate-ogm/blob/9ea971df7c27277029006a6f748d8272fb1d69d2/core/src/main/java/org/hibernate/ogm/datastore/document/impl/EmbeddableStateFinder.java#L48-L58
StanKocken/EfficientAdapter
efficientadapter/src/main/java/com/skocken/efficientadapter/lib/viewholder/EfficientViewHolder.java
EfficientViewHolder.setImageUri
public void setImageUri(int viewId, @Nullable Uri uri) { ViewHelper.setImageUri(mCacheView, viewId, uri); }
java
public void setImageUri(int viewId, @Nullable Uri uri) { ViewHelper.setImageUri(mCacheView, viewId, uri); }
[ "public", "void", "setImageUri", "(", "int", "viewId", ",", "@", "Nullable", "Uri", "uri", ")", "{", "ViewHelper", ".", "setImageUri", "(", "mCacheView", ",", "viewId", ",", "uri", ")", ";", "}" ]
Equivalent to calling ImageView.setImageUri @param viewId The id of the view whose image should change @param uri the Uri of an image, or {@code null} to clear the content
[ "Equivalent", "to", "calling", "ImageView", ".", "setImageUri" ]
train
https://github.com/StanKocken/EfficientAdapter/blob/0bcc3a20182cbce9d7901e1e2a9104251637167d/efficientadapter/src/main/java/com/skocken/efficientadapter/lib/viewholder/EfficientViewHolder.java#L376-L378
auth0/auth0-java
src/main/java/com/auth0/client/auth/AuthAPI.java
AuthAPI.signUp
public SignUpRequest signUp(String email, String password, String connection) { Asserts.assertNotNull(email, "email"); Asserts.assertNotNull(password, "password"); Asserts.assertNotNull(connection, "connection"); String url = baseUrl .newBuilder() .addPat...
java
public SignUpRequest signUp(String email, String password, String connection) { Asserts.assertNotNull(email, "email"); Asserts.assertNotNull(password, "password"); Asserts.assertNotNull(connection, "connection"); String url = baseUrl .newBuilder() .addPat...
[ "public", "SignUpRequest", "signUp", "(", "String", "email", ",", "String", "password", ",", "String", "connection", ")", "{", "Asserts", ".", "assertNotNull", "(", "email", ",", "\"email\"", ")", ";", "Asserts", ".", "assertNotNull", "(", "password", ",", "...
Creates a sign up request with the given credentials and database connection. i.e.: <pre> {@code AuthAPI auth = new AuthAPI("me.auth0.com", "B3c6RYhk1v9SbIJcRIOwu62gIUGsnze", "2679NfkaBn62e6w5E8zNEzjr-yWfkaBne"); try { Map<String, String> fields = new HashMap<String, String>(); fields.put("age", "25); fields.put("city"...
[ "Creates", "a", "sign", "up", "request", "with", "the", "given", "credentials", "and", "database", "connection", ".", "i", ".", "e", ".", ":", "<pre", ">", "{", "@code", "AuthAPI", "auth", "=", "new", "AuthAPI", "(", "me", ".", "auth0", ".", "com", "...
train
https://github.com/auth0/auth0-java/blob/b7bc099ee9c6cde5a87c4ecfebc6d811aeb1027c/src/main/java/com/auth0/client/auth/AuthAPI.java#L285-L302
oboehm/jfachwert
src/main/java/de/jfachwert/bank/Geldbetrag.java
Geldbetrag.validate
public static String validate(String zahl) { try { return Geldbetrag.valueOf(zahl).toString(); } catch (IllegalArgumentException ex) { throw new InvalidValueException(zahl, "money_amount", ex); } }
java
public static String validate(String zahl) { try { return Geldbetrag.valueOf(zahl).toString(); } catch (IllegalArgumentException ex) { throw new InvalidValueException(zahl, "money_amount", ex); } }
[ "public", "static", "String", "validate", "(", "String", "zahl", ")", "{", "try", "{", "return", "Geldbetrag", ".", "valueOf", "(", "zahl", ")", ".", "toString", "(", ")", ";", "}", "catch", "(", "IllegalArgumentException", "ex", ")", "{", "throw", "new"...
Validiert die uebergebene Zahl, ob sie sich als Geldbetrag eignet. @param zahl als String @return die Zahl zur Weitervarabeitung
[ "Validiert", "die", "uebergebene", "Zahl", "ob", "sie", "sich", "als", "Geldbetrag", "eignet", "." ]
train
https://github.com/oboehm/jfachwert/blob/67b513d29e3114c7aee65cd1ea7a5b7e540b0d1b/src/main/java/de/jfachwert/bank/Geldbetrag.java#L553-L559
netty/netty
transport-native-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java
AbstractKQueueStreamChannel.writeBytesMultiple
private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException { final long expectedWrittenBytes = array.size(); assert expectedWrittenBytes != 0; final int cnt = array.count(); assert cnt != 0; final long localWrittenBytes = socket.writevAddresses(a...
java
private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException { final long expectedWrittenBytes = array.size(); assert expectedWrittenBytes != 0; final int cnt = array.count(); assert cnt != 0; final long localWrittenBytes = socket.writevAddresses(a...
[ "private", "int", "writeBytesMultiple", "(", "ChannelOutboundBuffer", "in", ",", "IovArray", "array", ")", "throws", "IOException", "{", "final", "long", "expectedWrittenBytes", "=", "array", ".", "size", "(", ")", ";", "assert", "expectedWrittenBytes", "!=", "0",...
Write multiple bytes via {@link IovArray}. @param in the collection which contains objects to write. @param array The array which contains the content to write. @return The value that should be decremented from the write quantum which starts at {@link ChannelConfig#getWriteSpinCount()}. The typical use cases are as fol...
[ "Write", "multiple", "bytes", "via", "{" ]
train
https://github.com/netty/netty/blob/ba06eafa1c1824bd154f1a380019e7ea2edf3c4c/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java#L147-L160
mcxiaoke/Android-Next
ui/src/main/java/com/mcxiaoke/next/ui/widget/ArrayAdapterCompat.java
ArrayAdapterCompat.addAll
public void addAll(int index, T... items) { List<T> collection = Arrays.asList(items); synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.addAll(index, collection); } else { mObjects.addAll(index, collection); } ...
java
public void addAll(int index, T... items) { List<T> collection = Arrays.asList(items); synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.addAll(index, collection); } else { mObjects.addAll(index, collection); } ...
[ "public", "void", "addAll", "(", "int", "index", ",", "T", "...", "items", ")", "{", "List", "<", "T", ">", "collection", "=", "Arrays", ".", "asList", "(", "items", ")", ";", "synchronized", "(", "mLock", ")", "{", "if", "(", "mOriginalValues", "!="...
Inserts the specified objects at the specified index in the array. @param items The objects to insert into the array. @param index The index at which the object must be inserted.
[ "Inserts", "the", "specified", "objects", "at", "the", "specified", "index", "in", "the", "array", "." ]
train
https://github.com/mcxiaoke/Android-Next/blob/1bfdf99d0b81a849aa0fa6697c53ed673151ca39/ui/src/main/java/com/mcxiaoke/next/ui/widget/ArrayAdapterCompat.java#L228-L238
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java
TheMovieDbApi.searchCompanies
public ResultList<Company> searchCompanies(String query, Integer page) throws MovieDbException { return tmdbSearch.searchCompanies(query, page); }
java
public ResultList<Company> searchCompanies(String query, Integer page) throws MovieDbException { return tmdbSearch.searchCompanies(query, page); }
[ "public", "ResultList", "<", "Company", ">", "searchCompanies", "(", "String", "query", ",", "Integer", "page", ")", "throws", "MovieDbException", "{", "return", "tmdbSearch", ".", "searchCompanies", "(", "query", ",", "page", ")", ";", "}" ]
Search Companies. You can use this method to search for production companies that are part of TMDb. The company IDs will map to those returned on movie calls. http://help.themoviedb.org/kb/api/search-companies @param query query @param page page @return @throws MovieDbException exception
[ "Search", "Companies", "." ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java#L1317-L1319
google/closure-compiler
src/com/google/javascript/jscomp/ControlFlowAnalysis.java
ControlFlowAnalysis.matchLabel
private static boolean matchLabel(Node target, String label) { if (label == null) { return true; } while (target.isLabel()) { if (target.getFirstChild().getString().equals(label)) { return true; } target = target.getParent(); } return false; }
java
private static boolean matchLabel(Node target, String label) { if (label == null) { return true; } while (target.isLabel()) { if (target.getFirstChild().getString().equals(label)) { return true; } target = target.getParent(); } return false; }
[ "private", "static", "boolean", "matchLabel", "(", "Node", "target", ",", "String", "label", ")", "{", "if", "(", "label", "==", "null", ")", "{", "return", "true", ";", "}", "while", "(", "target", ".", "isLabel", "(", ")", ")", "{", "if", "(", "t...
Check if label is actually referencing the target control structure. If label is null, it always returns true.
[ "Check", "if", "label", "is", "actually", "referencing", "the", "target", "control", "structure", ".", "If", "label", "is", "null", "it", "always", "returns", "true", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/jscomp/ControlFlowAnalysis.java#L946-L957
Impetus/Kundera
src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/schemamanager/CassandraSchemaManager.java
CassandraSchemaManager.onSetReplicateOnWrite
private void onSetReplicateOnWrite(CfDef cfDef, Properties cfProperties, StringBuilder builder) { String replicateOnWrite = cfProperties.getProperty(CassandraConstants.REPLICATE_ON_WRITE); if (builder != null) { String replicateOn_Write = CQLTranslator.getKeyword(CassandraConstan...
java
private void onSetReplicateOnWrite(CfDef cfDef, Properties cfProperties, StringBuilder builder) { String replicateOnWrite = cfProperties.getProperty(CassandraConstants.REPLICATE_ON_WRITE); if (builder != null) { String replicateOn_Write = CQLTranslator.getKeyword(CassandraConstan...
[ "private", "void", "onSetReplicateOnWrite", "(", "CfDef", "cfDef", ",", "Properties", "cfProperties", ",", "StringBuilder", "builder", ")", "{", "String", "replicateOnWrite", "=", "cfProperties", ".", "getProperty", "(", "CassandraConstants", ".", "REPLICATE_ON_WRITE", ...
On set replicate on write. @param cfDef the cf def @param cfProperties the cf properties @param builder the builder
[ "On", "set", "replicate", "on", "write", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/schemamanager/CassandraSchemaManager.java#L2597-L2612
DataSketches/sketches-core
src/main/java/com/yahoo/sketches/ByteArrayUtil.java
ByteArrayUtil.putLongLE
public static void putLongLE(final byte[] array, final int offset, final long value) { array[offset ] = (byte) (value ); array[offset + 1] = (byte) (value >>> 8); array[offset + 2] = (byte) (value >>> 16); array[offset + 3] = (byte) (value >>> 24); array[offset + 4] = (byte) (value >>> 32)...
java
public static void putLongLE(final byte[] array, final int offset, final long value) { array[offset ] = (byte) (value ); array[offset + 1] = (byte) (value >>> 8); array[offset + 2] = (byte) (value >>> 16); array[offset + 3] = (byte) (value >>> 24); array[offset + 4] = (byte) (value >>> 32)...
[ "public", "static", "void", "putLongLE", "(", "final", "byte", "[", "]", "array", ",", "final", "int", "offset", ",", "final", "long", "value", ")", "{", "array", "[", "offset", "]", "=", "(", "byte", ")", "(", "value", ")", ";", "array", "[", "off...
Put the source <i>long</i> into the destination byte array starting at the given offset in little endian order. There is no bounds checking. @param array destination byte array @param offset destination offset @param value source <i>long</i>
[ "Put", "the", "source", "<i", ">", "long<", "/", "i", ">", "into", "the", "destination", "byte", "array", "starting", "at", "the", "given", "offset", "in", "little", "endian", "order", ".", "There", "is", "no", "bounds", "checking", "." ]
train
https://github.com/DataSketches/sketches-core/blob/900c8c9668a1e2f1d54d453e956caad54702e540/src/main/java/com/yahoo/sketches/ByteArrayUtil.java#L144-L153
Azure/azure-sdk-for-java
eventgrid/resource-manager/v2019_01_01/src/main/java/com/microsoft/azure/management/eventgrid/v2019_01_01/implementation/TopicsInner.java
TopicsInner.beginUpdate
public TopicInner beginUpdate(String resourceGroupName, String topicName, Map<String, String> tags) { return beginUpdateWithServiceResponseAsync(resourceGroupName, topicName, tags).toBlocking().single().body(); }
java
public TopicInner beginUpdate(String resourceGroupName, String topicName, Map<String, String> tags) { return beginUpdateWithServiceResponseAsync(resourceGroupName, topicName, tags).toBlocking().single().body(); }
[ "public", "TopicInner", "beginUpdate", "(", "String", "resourceGroupName", ",", "String", "topicName", ",", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "return", "beginUpdateWithServiceResponseAsync", "(", "resourceGroupName", ",", "topicName", ",", ...
Update a topic. Asynchronously updates a topic with the specified parameters. @param resourceGroupName The name of the resource group within the user's subscription. @param topicName Name of the topic @param tags Tags of the resource @throws IllegalArgumentException thrown if parameters fail the validation @throws Clo...
[ "Update", "a", "topic", ".", "Asynchronously", "updates", "a", "topic", "with", "the", "specified", "parameters", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/resource-manager/v2019_01_01/src/main/java/com/microsoft/azure/management/eventgrid/v2019_01_01/implementation/TopicsInner.java#L803-L805
comapi/comapi-sdk-android
COMAPI/foundation/src/main/java/com/comapi/internal/network/ServiceApiWrapper.java
ServiceApiWrapper.doQueryEvents
Observable<ComapiResult<EventsQueryResponse>> doQueryEvents(@NonNull final String token, @NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit) { return addLogging(service.queryEvents(AuthManager.addAuthPrefix(token), apiSpaceId, conversationId, from, limit).map(mapToComap...
java
Observable<ComapiResult<EventsQueryResponse>> doQueryEvents(@NonNull final String token, @NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit) { return addLogging(service.queryEvents(AuthManager.addAuthPrefix(token), apiSpaceId, conversationId, from, limit).map(mapToComap...
[ "Observable", "<", "ComapiResult", "<", "EventsQueryResponse", ">", ">", "doQueryEvents", "(", "@", "NonNull", "final", "String", "token", ",", "@", "NonNull", "final", "String", "conversationId", ",", "@", "NonNull", "final", "Long", "from", ",", "@", "NonNul...
Query events. Use {@link #doQueryConversationEvents(String, String, Long, Integer)} for better visibility of possible events. @param token Comapi access token. @param conversationId ID of a conversation to query events in it. @param from ID of the event to start from. @param limit Limit of...
[ "Query", "events", ".", "Use", "{", "@link", "#doQueryConversationEvents", "(", "String", "String", "Long", "Integer", ")", "}", "for", "better", "visibility", "of", "possible", "events", "." ]
train
https://github.com/comapi/comapi-sdk-android/blob/53140a58d5a62afe196047ccc5120bfe090ef211/COMAPI/foundation/src/main/java/com/comapi/internal/network/ServiceApiWrapper.java#L273-L279
Azure/azure-sdk-for-java
streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/InputsInner.java
InputsInner.createOrReplaceAsync
public Observable<InputInner> createOrReplaceAsync(String resourceGroupName, String jobName, String inputName, InputInner input, String ifMatch, String ifNoneMatch) { return createOrReplaceWithServiceResponseAsync(resourceGroupName, jobName, inputName, input, ifMatch, ifNoneMatch).map(new Func1<ServiceResponseW...
java
public Observable<InputInner> createOrReplaceAsync(String resourceGroupName, String jobName, String inputName, InputInner input, String ifMatch, String ifNoneMatch) { return createOrReplaceWithServiceResponseAsync(resourceGroupName, jobName, inputName, input, ifMatch, ifNoneMatch).map(new Func1<ServiceResponseW...
[ "public", "Observable", "<", "InputInner", ">", "createOrReplaceAsync", "(", "String", "resourceGroupName", ",", "String", "jobName", ",", "String", "inputName", ",", "InputInner", "input", ",", "String", "ifMatch", ",", "String", "ifNoneMatch", ")", "{", "return"...
Creates an input or replaces an already existing input under an existing streaming job. @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 jobName The name of the streaming job. @param inputName The nam...
[ "Creates", "an", "input", "or", "replaces", "an", "already", "existing", "input", "under", "an", "existing", "streaming", "job", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/InputsInner.java#L247-L254
Alluxio/alluxio
core/common/src/main/java/alluxio/util/CommonUtils.java
CommonUtils.stripSuffixIfPresent
public static String stripSuffixIfPresent(final String key, final String suffix) { if (key.endsWith(suffix)) { return key.substring(0, key.length() - suffix.length()); } return key; }
java
public static String stripSuffixIfPresent(final String key, final String suffix) { if (key.endsWith(suffix)) { return key.substring(0, key.length() - suffix.length()); } return key; }
[ "public", "static", "String", "stripSuffixIfPresent", "(", "final", "String", "key", ",", "final", "String", "suffix", ")", "{", "if", "(", "key", ".", "endsWith", "(", "suffix", ")", ")", "{", "return", "key", ".", "substring", "(", "0", ",", "key", "...
Strips the suffix if it exists. This method will leave keys without a suffix unaltered. @param key the key to strip the suffix from @param suffix suffix to remove @return the key with the suffix removed, or the key unaltered if the suffix is not present
[ "Strips", "the", "suffix", "if", "it", "exists", ".", "This", "method", "will", "leave", "keys", "without", "a", "suffix", "unaltered", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/common/src/main/java/alluxio/util/CommonUtils.java#L347-L352
apache/incubator-druid
server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
NewestSegmentFirstIterator.updateQueue
private void updateQueue(String dataSourceName, DataSourceCompactionConfig config) { final CompactibleTimelineObjectHolderCursor compactibleTimelineObjectHolderCursor = timelineIterators.get( dataSourceName ); if (compactibleTimelineObjectHolderCursor == null) { log.warn("Cannot find timeli...
java
private void updateQueue(String dataSourceName, DataSourceCompactionConfig config) { final CompactibleTimelineObjectHolderCursor compactibleTimelineObjectHolderCursor = timelineIterators.get( dataSourceName ); if (compactibleTimelineObjectHolderCursor == null) { log.warn("Cannot find timeli...
[ "private", "void", "updateQueue", "(", "String", "dataSourceName", ",", "DataSourceCompactionConfig", "config", ")", "{", "final", "CompactibleTimelineObjectHolderCursor", "compactibleTimelineObjectHolderCursor", "=", "timelineIterators", ".", "get", "(", "dataSourceName", ")...
Find the next segments to compact for the given dataSource and add them to the queue. {@link #timelineIterators} is updated according to the found segments. That is, the found segments are removed from the timeline of the given dataSource.
[ "Find", "the", "next", "segments", "to", "compact", "for", "the", "given", "dataSource", "and", "add", "them", "to", "the", "queue", ".", "{" ]
train
https://github.com/apache/incubator-druid/blob/f776b9408962b9006cfcfe4d6c1794751972cc8e/server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstIterator.java#L161-L180
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java
SARLLabelProvider.signatureWithoutReturnType
protected StyledString signatureWithoutReturnType(StyledString simpleName, JvmExecutable element) { return simpleName.append(this.uiStrings.styledParameters(element)); }
java
protected StyledString signatureWithoutReturnType(StyledString simpleName, JvmExecutable element) { return simpleName.append(this.uiStrings.styledParameters(element)); }
[ "protected", "StyledString", "signatureWithoutReturnType", "(", "StyledString", "simpleName", ",", "JvmExecutable", "element", ")", "{", "return", "simpleName", ".", "append", "(", "this", ".", "uiStrings", ".", "styledParameters", "(", "element", ")", ")", ";", "...
Create a string representation of a signature without the return type. @param simpleName the action name. @param element the executable element. @return the signature.
[ "Create", "a", "string", "representation", "of", "a", "signature", "without", "the", "return", "type", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java#L182-L184
apache/flink
flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupRawOperatorBase.java
CoGroupRawOperatorBase.setGroupOrder
public void setGroupOrder(int inputNum, Ordering order) { if (inputNum == 0) { this.groupOrder1 = order; } else if (inputNum == 1) { this.groupOrder2 = order; } else { throw new IndexOutOfBoundsException(); } }
java
public void setGroupOrder(int inputNum, Ordering order) { if (inputNum == 0) { this.groupOrder1 = order; } else if (inputNum == 1) { this.groupOrder2 = order; } else { throw new IndexOutOfBoundsException(); } }
[ "public", "void", "setGroupOrder", "(", "int", "inputNum", ",", "Ordering", "order", ")", "{", "if", "(", "inputNum", "==", "0", ")", "{", "this", ".", "groupOrder1", "=", "order", ";", "}", "else", "if", "(", "inputNum", "==", "1", ")", "{", "this",...
Sets the order of the elements within a group for the given input. @param inputNum The number of the input (here either <i>0</i> or <i>1</i>). @param order The order for the elements in a group.
[ "Sets", "the", "order", "of", "the", "elements", "within", "a", "group", "for", "the", "given", "input", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupRawOperatorBase.java#L89-L97
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/patterns/StepPattern.java
StepPattern.getMatchScore
public double getMatchScore(XPathContext xctxt, int context) throws javax.xml.transform.TransformerException { xctxt.pushCurrentNode(context); xctxt.pushCurrentExpressionNode(context); try { XObject score = execute(xctxt); return score.num(); } finally { xctx...
java
public double getMatchScore(XPathContext xctxt, int context) throws javax.xml.transform.TransformerException { xctxt.pushCurrentNode(context); xctxt.pushCurrentExpressionNode(context); try { XObject score = execute(xctxt); return score.num(); } finally { xctx...
[ "public", "double", "getMatchScore", "(", "XPathContext", "xctxt", ",", "int", "context", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "xctxt", ".", "pushCurrentNode", "(", "context", ")", ";", "xctxt", ".", "pushCurr...
Get the match score of the given node. @param xctxt The XPath runtime context. @param context The node to be tested. @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST}, {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE}, {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD}, {@link org.apache.xpat...
[ "Get", "the", "match", "score", "of", "the", "given", "node", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/patterns/StepPattern.java#L892-L912
joniles/mpxj
src/main/java/net/sf/mpxj/reader/UniversalProjectReader.java
UniversalProjectReader.handleByteOrderMark
private ProjectFile handleByteOrderMark(InputStream stream, int length, Charset charset) throws Exception { UniversalProjectReader reader = new UniversalProjectReader(); reader.setSkipBytes(length); reader.setCharset(charset); return reader.read(stream); }
java
private ProjectFile handleByteOrderMark(InputStream stream, int length, Charset charset) throws Exception { UniversalProjectReader reader = new UniversalProjectReader(); reader.setSkipBytes(length); reader.setCharset(charset); return reader.read(stream); }
[ "private", "ProjectFile", "handleByteOrderMark", "(", "InputStream", "stream", ",", "int", "length", ",", "Charset", "charset", ")", "throws", "Exception", "{", "UniversalProjectReader", "reader", "=", "new", "UniversalProjectReader", "(", ")", ";", "reader", ".", ...
The file we are working with has a byte order mark. Skip this and try again to read the file. @param stream schedule data @param length length of the byte order mark @param charset charset indicated by byte order mark @return ProjectFile instance
[ "The", "file", "we", "are", "working", "with", "has", "a", "byte", "order", "mark", ".", "Skip", "this", "and", "try", "again", "to", "read", "the", "file", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/reader/UniversalProjectReader.java#L674-L680
DV8FromTheWorld/JDA
src/main/java/net/dv8tion/jda/core/requests/RestAction.java
RestAction.completeAfter
public T completeAfter(long delay, TimeUnit unit) { Checks.notNull(unit, "TimeUnit"); try { unit.sleep(delay); return complete(); } catch (InterruptedException e) { throw new RuntimeException(e); } }
java
public T completeAfter(long delay, TimeUnit unit) { Checks.notNull(unit, "TimeUnit"); try { unit.sleep(delay); return complete(); } catch (InterruptedException e) { throw new RuntimeException(e); } }
[ "public", "T", "completeAfter", "(", "long", "delay", ",", "TimeUnit", "unit", ")", "{", "Checks", ".", "notNull", "(", "unit", ",", "\"TimeUnit\"", ")", ";", "try", "{", "unit", ".", "sleep", "(", "delay", ")", ";", "return", "complete", "(", ")", "...
Blocks the current Thread for the specified delay and calls {@link #complete()} when delay has been reached. <br>If the specified delay is negative this action will execute immediately. (see: {@link TimeUnit#sleep(long)}) @param delay The delay after which to execute a call to {@link #complete()} @param unit The {@l...
[ "Blocks", "the", "current", "Thread", "for", "the", "specified", "delay", "and", "calls", "{", "@link", "#complete", "()", "}", "when", "delay", "has", "been", "reached", ".", "<br", ">", "If", "the", "specified", "delay", "is", "negative", "this", "action...
train
https://github.com/DV8FromTheWorld/JDA/blob/8ecbbe354d03f6bf448411bba573d0d4c268b560/src/main/java/net/dv8tion/jda/core/requests/RestAction.java#L528-L540
apache/incubator-gobblin
gobblin-utility/src/main/java/org/apache/gobblin/util/ExponentialBackoff.java
ExponentialBackoff.evaluateConditionUntilTrue
@Builder(builderMethodName = "awaitCondition", buildMethodName = "await") private static boolean evaluateConditionUntilTrue(Callable<Boolean> callable, Double alpha, Integer maxRetries, Long maxWait, Long maxDelay, Long initialDelay) throws ExecutionException, InterruptedException { ExponentialBackoff expo...
java
@Builder(builderMethodName = "awaitCondition", buildMethodName = "await") private static boolean evaluateConditionUntilTrue(Callable<Boolean> callable, Double alpha, Integer maxRetries, Long maxWait, Long maxDelay, Long initialDelay) throws ExecutionException, InterruptedException { ExponentialBackoff expo...
[ "@", "Builder", "(", "builderMethodName", "=", "\"awaitCondition\"", ",", "buildMethodName", "=", "\"await\"", ")", "private", "static", "boolean", "evaluateConditionUntilTrue", "(", "Callable", "<", "Boolean", ">", "callable", ",", "Double", "alpha", ",", "Integer"...
Evaluate a condition until true with exponential backoff. @param callable Condition. @return true if the condition returned true. @throws ExecutionException if the condition throws an exception.
[ "Evaluate", "a", "condition", "until", "true", "with", "exponential", "backoff", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-utility/src/main/java/org/apache/gobblin/util/ExponentialBackoff.java#L112-L128
deeplearning4j/deeplearning4j
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/JCublasNDArrayFactory.java
JCublasNDArrayFactory.pullRows
@Override public INDArray pullRows(INDArray source, int sourceDimension, int[] indexes, char order) { if (indexes == null || indexes.length < 1) throw new IllegalStateException("Indexes can't be null or zero-length"); long[] shape; if (source.rank() == 1) { shape = ...
java
@Override public INDArray pullRows(INDArray source, int sourceDimension, int[] indexes, char order) { if (indexes == null || indexes.length < 1) throw new IllegalStateException("Indexes can't be null or zero-length"); long[] shape; if (source.rank() == 1) { shape = ...
[ "@", "Override", "public", "INDArray", "pullRows", "(", "INDArray", "source", ",", "int", "sourceDimension", ",", "int", "[", "]", "indexes", ",", "char", "order", ")", "{", "if", "(", "indexes", "==", "null", "||", "indexes", ".", "length", "<", "1", ...
This method produces concatenated array, that consist from tensors, fetched from source array, against some dimension and specified indexes @param source source tensor @param sourceDimension dimension of source tensor @param indexes indexes from source array @return
[ "This", "method", "produces", "concatenated", "array", "that", "consist", "from", "tensors", "fetched", "from", "source", "array", "against", "some", "dimension", "and", "specified", "indexes" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/JCublasNDArrayFactory.java#L635-L652
elki-project/elki
elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/projection/SNE.java
SNE.optimizeSNE
protected void optimizeSNE(AffinityMatrix pij, double[][] sol) { final int size = pij.size(); if(size * 3L * dim > 0x7FFF_FFFAL) { throw new AbortException("Memory exceeds Java array size limit."); } // Meta information on each point; joined for memory locality. // Gradient, Momentum, and lear...
java
protected void optimizeSNE(AffinityMatrix pij, double[][] sol) { final int size = pij.size(); if(size * 3L * dim > 0x7FFF_FFFAL) { throw new AbortException("Memory exceeds Java array size limit."); } // Meta information on each point; joined for memory locality. // Gradient, Momentum, and lear...
[ "protected", "void", "optimizeSNE", "(", "AffinityMatrix", "pij", ",", "double", "[", "]", "[", "]", "sol", ")", "{", "final", "int", "size", "=", "pij", ".", "size", "(", ")", ";", "if", "(", "size", "*", "3L", "*", "dim", ">", "0x7FFF_FFFA", "L",...
Perform the actual tSNE optimization. @param pij Initial affinity matrix @param sol Solution output array (preinitialized)
[ "Perform", "the", "actual", "tSNE", "optimization", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/projection/SNE.java#L219-L248
Omertron/api-thetvdb
src/main/java/com/omertron/thetvdbapi/tools/DOMHelper.java
DOMHelper.appendChild
public static void appendChild(Document doc, Element parentElement, String elementName, String elementValue) { Element child = doc.createElement(elementName); Text text = doc.createTextNode(elementValue); child.appendChild(text); parentElement.appendChild(child); }
java
public static void appendChild(Document doc, Element parentElement, String elementName, String elementValue) { Element child = doc.createElement(elementName); Text text = doc.createTextNode(elementValue); child.appendChild(text); parentElement.appendChild(child); }
[ "public", "static", "void", "appendChild", "(", "Document", "doc", ",", "Element", "parentElement", ",", "String", "elementName", ",", "String", "elementValue", ")", "{", "Element", "child", "=", "doc", ".", "createElement", "(", "elementName", ")", ";", "Text...
Add a child element to a parent element @param doc @param parentElement @param elementName @param elementValue
[ "Add", "a", "child", "element", "to", "a", "parent", "element" ]
train
https://github.com/Omertron/api-thetvdb/blob/2ff9f9580e76043f19d2fc3234d87e16a95fa485/src/main/java/com/omertron/thetvdbapi/tools/DOMHelper.java#L229-L234
dihedron/dihedron-commons
src/main/java/org/dihedron/patterns/cache/CacheHelper.java
CacheHelper.getIntoByteArray
public static byte[] getIntoByteArray(Cache cache, String resource, CacheMissHandler ... handlers) throws CacheException { if(cache == null) { logger.error("cache reference must not be null"); throw new CacheException("invalid cache"); } InputStream input = null; ByteArrayOutputStream output = null; tr...
java
public static byte[] getIntoByteArray(Cache cache, String resource, CacheMissHandler ... handlers) throws CacheException { if(cache == null) { logger.error("cache reference must not be null"); throw new CacheException("invalid cache"); } InputStream input = null; ByteArrayOutputStream output = null; tr...
[ "public", "static", "byte", "[", "]", "getIntoByteArray", "(", "Cache", "cache", ",", "String", "resource", ",", "CacheMissHandler", "...", "handlers", ")", "throws", "CacheException", "{", "if", "(", "cache", "==", "null", ")", "{", "logger", ".", "error", ...
Retrieves the given resource from the cache and translate it to a byte array; if missing tries to retrieve it using the (optional) provided set of handlers. @param cache the cache that stores the resource. @param resource the name of the resource to be retrieved. @param handlers the (optional) set of handlers that wil...
[ "Retrieves", "the", "given", "resource", "from", "the", "cache", "and", "translate", "it", "to", "a", "byte", "array", ";", "if", "missing", "tries", "to", "retrieve", "it", "using", "the", "(", "optional", ")", "provided", "set", "of", "handlers", "." ]
train
https://github.com/dihedron/dihedron-commons/blob/a5194cdaa0d6417ef4aade6ea407a1cad6e8458e/src/main/java/org/dihedron/patterns/cache/CacheHelper.java#L45-L68
wcm-io/wcm-io-handler
richtext/src/main/java/io/wcm/handler/richtext/util/RichTextUtil.java
RichTextUtil.parseText
public static @NotNull Element parseText(@NotNull String text, boolean xhtmlEntities) throws JDOMException { // add root element String xhtmlString = (xhtmlEntities ? "<!DOCTYPE root [" + XHTML_ENTITY_DEF + "]>" : "") + "<root>" + text + "</root>"; try { SAXBuilder saxBuilder = new S...
java
public static @NotNull Element parseText(@NotNull String text, boolean xhtmlEntities) throws JDOMException { // add root element String xhtmlString = (xhtmlEntities ? "<!DOCTYPE root [" + XHTML_ENTITY_DEF + "]>" : "") + "<root>" + text + "</root>"; try { SAXBuilder saxBuilder = new S...
[ "public", "static", "@", "NotNull", "Element", "parseText", "(", "@", "NotNull", "String", "text", ",", "boolean", "xhtmlEntities", ")", "throws", "JDOMException", "{", "// add root element", "String", "xhtmlString", "=", "(", "xhtmlEntities", "?", "\"<!DOCTYPE root...
Parses XHTML text string. Adds a wrapping "root" element before parsing and returns this root element. @param text XHTML text string (root element not needed) @param xhtmlEntities If set to true, Resolving of XHtml entities in XHtml fragment is supported. @return Root element with parsed xhtml content @throws JDOMExcep...
[ "Parses", "XHTML", "text", "string", ".", "Adds", "a", "wrapping", "root", "element", "before", "parsing", "and", "returns", "this", "root", "element", "." ]
train
https://github.com/wcm-io/wcm-io-handler/blob/b0fc1c11a3ceb89efb73826dcfd480d6a00c19af/richtext/src/main/java/io/wcm/handler/richtext/util/RichTextUtil.java#L141-L162
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/DiskTypeId.java
DiskTypeId.of
public static DiskTypeId of(String project, String zone, String type) { return of(ZoneId.of(project, zone), type); }
java
public static DiskTypeId of(String project, String zone, String type) { return of(ZoneId.of(project, zone), type); }
[ "public", "static", "DiskTypeId", "of", "(", "String", "project", ",", "String", "zone", ",", "String", "type", ")", "{", "return", "of", "(", "ZoneId", ".", "of", "(", "project", ",", "zone", ")", ",", "type", ")", ";", "}" ]
Returns a disk type identity given project disk, zone and disk type names.
[ "Returns", "a", "disk", "type", "identity", "given", "project", "disk", "zone", "and", "disk", "type", "names", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/DiskTypeId.java#L121-L123
apache/flink
flink-libraries/flink-gelly/src/main/java/org/apache/flink/graph/library/metric/undirected/EdgeMetrics.java
EdgeMetrics.run
@Override public EdgeMetrics<K, VV, EV> run(Graph<K, VV, EV> input) throws Exception { super.run(input); // s, t, (d(s), d(t)) DataSet<Edge<K, Tuple3<EV, LongValue, LongValue>>> edgeDegreePair = input .run(new EdgeDegreePair<K, VV, EV>() .setReduceOnTargetId(reduceOnTargetId) .setParallelism(paral...
java
@Override public EdgeMetrics<K, VV, EV> run(Graph<K, VV, EV> input) throws Exception { super.run(input); // s, t, (d(s), d(t)) DataSet<Edge<K, Tuple3<EV, LongValue, LongValue>>> edgeDegreePair = input .run(new EdgeDegreePair<K, VV, EV>() .setReduceOnTargetId(reduceOnTargetId) .setParallelism(paral...
[ "@", "Override", "public", "EdgeMetrics", "<", "K", ",", "VV", ",", "EV", ">", "run", "(", "Graph", "<", "K", ",", "VV", ",", "EV", ">", "input", ")", "throws", "Exception", "{", "super", ".", "run", "(", "input", ")", ";", "// s, t, (d(s), d(t))", ...
/* Implementation notes: <p>Use aggregator to replace SumEdgeStats when aggregators are rewritten to use a hash-combineable hashed-reduce.
[ "/", "*", "Implementation", "notes", ":" ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-libraries/flink-gelly/src/main/java/org/apache/flink/graph/library/metric/undirected/EdgeMetrics.java#L93-L123
looly/hutool
hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java
BeanUtil.fillBeanWithMapIgnoreCase
public static <T> T fillBeanWithMapIgnoreCase(Map<?, ?> map, T bean, boolean isIgnoreError) { return fillBeanWithMap(map, bean, CopyOptions.create().setIgnoreCase(true).setIgnoreError(isIgnoreError)); }
java
public static <T> T fillBeanWithMapIgnoreCase(Map<?, ?> map, T bean, boolean isIgnoreError) { return fillBeanWithMap(map, bean, CopyOptions.create().setIgnoreCase(true).setIgnoreError(isIgnoreError)); }
[ "public", "static", "<", "T", ">", "T", "fillBeanWithMapIgnoreCase", "(", "Map", "<", "?", ",", "?", ">", "map", ",", "T", "bean", ",", "boolean", "isIgnoreError", ")", "{", "return", "fillBeanWithMap", "(", "map", ",", "bean", ",", "CopyOptions", ".", ...
使用Map填充Bean对象,忽略大小写 @param <T> Bean类型 @param map Map @param bean Bean @param isIgnoreError 是否忽略注入错误 @return Bean
[ "使用Map填充Bean对象,忽略大小写" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java#L395-L397
mygreen/xlsmapper
src/main/java/com/gh/mygreen/xlsmapper/validation/SheetBindingErrors.java
SheetBindingErrors.createFieldError
public InternalFieldErrorBuilder createFieldError(final String field, final String[] errorCodes) { final String fieldPath = buildFieldPath(field); final Class<?> fieldType = getFieldType(field); final Object fieldValue = getFieldValue(field); String[] codes = new ...
java
public InternalFieldErrorBuilder createFieldError(final String field, final String[] errorCodes) { final String fieldPath = buildFieldPath(field); final Class<?> fieldType = getFieldType(field); final Object fieldValue = getFieldValue(field); String[] codes = new ...
[ "public", "InternalFieldErrorBuilder", "createFieldError", "(", "final", "String", "field", ",", "final", "String", "[", "]", "errorCodes", ")", "{", "final", "String", "fieldPath", "=", "buildFieldPath", "(", "field", ")", ";", "final", "Class", "<", "?", ">"...
フィールドエラーのビルダーを作成します。 @param field フィールドパス。 @param errorCodes エラーコード。先頭の要素が優先されます。 @return {@link FieldError}のインスタンスを組み立てるビルダクラス。
[ "フィールドエラーのビルダーを作成します。" ]
train
https://github.com/mygreen/xlsmapper/blob/a0c6b25c622e5f3a50b199ef685d2ee46ad5483c/src/main/java/com/gh/mygreen/xlsmapper/validation/SheetBindingErrors.java#L619-L634
rubenlagus/TelegramBots
telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/send/SendDocument.java
SendDocument.setDocument
public SendDocument setDocument(File file) { Objects.requireNonNull(file, "documentName cannot be null!"); this.document = new InputFile(file, file.getName()); return this; }
java
public SendDocument setDocument(File file) { Objects.requireNonNull(file, "documentName cannot be null!"); this.document = new InputFile(file, file.getName()); return this; }
[ "public", "SendDocument", "setDocument", "(", "File", "file", ")", "{", "Objects", ".", "requireNonNull", "(", "file", ",", "\"documentName cannot be null!\"", ")", ";", "this", ".", "document", "=", "new", "InputFile", "(", "file", ",", "file", ".", "getName"...
Use this method to set the document to a new file @param file New document file
[ "Use", "this", "method", "to", "set", "the", "document", "to", "a", "new", "file" ]
train
https://github.com/rubenlagus/TelegramBots/blob/d62354915d7664597a40fd9858f16bce67ef1478/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/send/SendDocument.java#L89-L93
Azure/azure-sdk-for-java
signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsInner.java
SignalRsInner.beginCreateOrUpdate
public SignalRResourceInner beginCreateOrUpdate(String resourceGroupName, String resourceName, SignalRCreateParameters parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters).toBlocking().single().body(); }
java
public SignalRResourceInner beginCreateOrUpdate(String resourceGroupName, String resourceName, SignalRCreateParameters parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters).toBlocking().single().body(); }
[ "public", "SignalRResourceInner", "beginCreateOrUpdate", "(", "String", "resourceGroupName", ",", "String", "resourceName", ",", "SignalRCreateParameters", "parameters", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceN...
Create a new SignalR service and update an exiting SignalR service. @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 resourceName The name of the SignalR resource. @param parameters Parameters for the...
[ "Create", "a", "new", "SignalR", "service", "and", "update", "an", "exiting", "SignalR", "service", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsInner.java#L1208-L1210
forge/core
facets/api/src/main/java/org/jboss/forge/addon/facets/constraints/FacetInspector.java
FacetInspector.getAllOptionalFacets
public static <FACETEDTYPE extends Faceted<FACETTYPE>, FACETTYPE extends Facet<FACETEDTYPE>> Set<Class<FACETTYPE>> getAllOptionalFacets( final Class<FACETTYPE> inspectedType) { Set<Class<FACETTYPE>> seen = new LinkedHashSet<Class<FACETTYPE>>(); return getAllRelatedFacets(seen, inspectedType, ...
java
public static <FACETEDTYPE extends Faceted<FACETTYPE>, FACETTYPE extends Facet<FACETEDTYPE>> Set<Class<FACETTYPE>> getAllOptionalFacets( final Class<FACETTYPE> inspectedType) { Set<Class<FACETTYPE>> seen = new LinkedHashSet<Class<FACETTYPE>>(); return getAllRelatedFacets(seen, inspectedType, ...
[ "public", "static", "<", "FACETEDTYPE", "extends", "Faceted", "<", "FACETTYPE", ">", ",", "FACETTYPE", "extends", "Facet", "<", "FACETEDTYPE", ">", ">", "Set", "<", "Class", "<", "FACETTYPE", ">", ">", "getAllOptionalFacets", "(", "final", "Class", "<", "FAC...
Inspect the given {@link Class} for all {@link FacetConstraintType#OPTIONAL} dependency {@link Facet} types. This method inspects the entire constraint tree.
[ "Inspect", "the", "given", "{" ]
train
https://github.com/forge/core/blob/e140eb03bbe2b3409478ad70c86c3edbef6d9a0c/facets/api/src/main/java/org/jboss/forge/addon/facets/constraints/FacetInspector.java#L135-L140
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobExecutionsInner.java
JobExecutionsInner.beginCreateOrUpdate
public JobExecutionInner beginCreateOrUpdate(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).toBlocking().single().body(); }
java
public JobExecutionInner beginCreateOrUpdate(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).toBlocking().single().body(); }
[ "public", "JobExecutionInner", "beginCreateOrUpdate", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "jobAgentName", ",", "String", "jobName", ",", "UUID", "jobExecutionId", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", ...
Creates or updatess a job execution. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param jobAgentName The name of the job agent. @param jobName The name of the j...
[ "Creates", "or", "updatess", "a", "job", "execution", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobExecutionsInner.java#L1216-L1218
app55/app55-java
src/support/java/com/googlecode/openbeans/Beans.java
Beans.instantiate
public static Object instantiate(ClassLoader loader, String name) throws IOException, ClassNotFoundException { return internalInstantiate(loader, name, null, null); }
java
public static Object instantiate(ClassLoader loader, String name) throws IOException, ClassNotFoundException { return internalInstantiate(loader, name, null, null); }
[ "public", "static", "Object", "instantiate", "(", "ClassLoader", "loader", ",", "String", "name", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "return", "internalInstantiate", "(", "loader", ",", "name", ",", "null", ",", "null", ")", ";", ...
Obtains an instance of a JavaBean specified the bean name using the specified class loader. <p> If the specified class loader is null, the system class loader is used. </p> @param loader the specified class loader. It can be null. @param name the name of the JavaBean @return an isntance of the bean. @throws IOExceptio...
[ "Obtains", "an", "instance", "of", "a", "JavaBean", "specified", "the", "bean", "name", "using", "the", "specified", "class", "loader", ".", "<p", ">", "If", "the", "specified", "class", "loader", "is", "null", "the", "system", "class", "loader", "is", "us...
train
https://github.com/app55/app55-java/blob/73e51d0f3141a859dfbd37ca9becef98477e553e/src/support/java/com/googlecode/openbeans/Beans.java#L144-L147
salesforce/Argus
ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/NamespaceResources.java
NamespaceResources.updateNamespace
@PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("/{namespaceId}") @Description("Update the namespace.") public NamespaceDto updateNamespace(@Context HttpServletRequest req, @PathParam("namespaceId") final BigInteger namespaceId, NamespaceDto newNamespac...
java
@PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("/{namespaceId}") @Description("Update the namespace.") public NamespaceDto updateNamespace(@Context HttpServletRequest req, @PathParam("namespaceId") final BigInteger namespaceId, NamespaceDto newNamespac...
[ "@", "PUT", "@", "Produces", "(", "MediaType", ".", "APPLICATION_JSON", ")", "@", "Consumes", "(", "MediaType", ".", "APPLICATION_JSON", ")", "@", "Path", "(", "\"/{namespaceId}\"", ")", "@", "Description", "(", "\"Update the namespace.\"", ")", "public", "Names...
Updates a namespace. @param req The HTTP request. @param namespaceId The ID of the namespace to update. @param newNamespace The updated namespace data. @return The updated namespace. @throws WebApplicationException If an error occurs.
[ "Updates", "a", "namespace", "." ]
train
https://github.com/salesforce/Argus/blob/121b59a268da264316cded6a3e9271366a23cd86/ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/NamespaceResources.java#L167-L200
xmlunit/xmlunit
xmlunit-placeholders/src/main/java/org/xmlunit/placeholder/PlaceholderSupport.java
PlaceholderSupport.withPlaceholderSupportChainedAfter
public static <D extends DifferenceEngineConfigurer<D>> D withPlaceholderSupportChainedAfter(D configurer, DifferenceEvaluator evaluator) { return withPlaceholderSupportUsingDelimitersChainedAfter(configurer, null, null, evaluator); }
java
public static <D extends DifferenceEngineConfigurer<D>> D withPlaceholderSupportChainedAfter(D configurer, DifferenceEvaluator evaluator) { return withPlaceholderSupportUsingDelimitersChainedAfter(configurer, null, null, evaluator); }
[ "public", "static", "<", "D", "extends", "DifferenceEngineConfigurer", "<", "D", ">", ">", "D", "withPlaceholderSupportChainedAfter", "(", "D", "configurer", ",", "DifferenceEvaluator", "evaluator", ")", "{", "return", "withPlaceholderSupportUsingDelimitersChainedAfter", ...
Adds placeholder support to a {@link DifferenceEngineConfigurer} considering an additional {@link DifferenceEvaluator}. @param configurer the configurer to add support to @param evaluator the additional evaluator - placeholder support is {@link DifferenceEvaluators#chain chain}ed after the given evaluator
[ "Adds", "placeholder", "support", "to", "a", "{", "@link", "DifferenceEngineConfigurer", "}", "considering", "an", "additional", "{", "@link", "DifferenceEvaluator", "}", "." ]
train
https://github.com/xmlunit/xmlunit/blob/fe3d701d43f57ee83dcba336e4c1555619d3084b/xmlunit-placeholders/src/main/java/org/xmlunit/placeholder/PlaceholderSupport.java#L72-L75
cdk/cdk
display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/SelectionVisibility.java
SelectionVisibility.hasSelectedBond
static boolean hasSelectedBond(List<IBond> bonds, RendererModel model) { for (IBond bond : bonds) { if (isSelected(bond, model)) return true; } return false; }
java
static boolean hasSelectedBond(List<IBond> bonds, RendererModel model) { for (IBond bond : bonds) { if (isSelected(bond, model)) return true; } return false; }
[ "static", "boolean", "hasSelectedBond", "(", "List", "<", "IBond", ">", "bonds", ",", "RendererModel", "model", ")", "{", "for", "(", "IBond", "bond", ":", "bonds", ")", "{", "if", "(", "isSelected", "(", "bond", ",", "model", ")", ")", "return", "true...
Determines if any bond in the list is selected @param bonds list of bonds @return at least bond bond is selected
[ "Determines", "if", "any", "bond", "in", "the", "list", "is", "selected" ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/SelectionVisibility.java#L111-L116
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/internal/workspace/api/UcsApi.java
UcsApi.getLuceneIndexesAsync
public com.squareup.okhttp.Call getLuceneIndexesAsync(LuceneIndexesData luceneIndexesData, final ApiCallback<ConfigResponse> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ...
java
public com.squareup.okhttp.Call getLuceneIndexesAsync(LuceneIndexesData luceneIndexesData, final ApiCallback<ConfigResponse> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ...
[ "public", "com", ".", "squareup", ".", "okhttp", ".", "Call", "getLuceneIndexesAsync", "(", "LuceneIndexesData", "luceneIndexesData", ",", "final", "ApiCallback", "<", "ConfigResponse", ">", "callback", ")", "throws", "ApiException", "{", "ProgressResponseBody", ".", ...
Get the lucene indexes for ucs (asynchronously) This request returns all the lucene indexes for contact. @param luceneIndexesData Request parameters. (optional) @param callback The callback to be executed when the API call finishes @return The request call @throws ApiException If fail to process the API call, e.g. seri...
[ "Get", "the", "lucene", "indexes", "for", "ucs", "(", "asynchronously", ")", "This", "request", "returns", "all", "the", "lucene", "indexes", "for", "contact", "." ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/internal/workspace/api/UcsApi.java#L1305-L1330
apache/incubator-gobblin
gobblin-modules/gobblin-crypto/src/main/java/org/apache/gobblin/crypto/GPGFileEncryptor.java
GPGFileEncryptor.encryptFile
public OutputStream encryptFile(OutputStream outputStream, InputStream keyIn, long keyId, String cipher) throws IOException { try { if (Security.getProvider(PROVIDER_NAME) == null) { Security.addProvider(new BouncyCastleProvider()); } PGPEncryptedDataGenerator cPk = new PGPEncrypted...
java
public OutputStream encryptFile(OutputStream outputStream, InputStream keyIn, long keyId, String cipher) throws IOException { try { if (Security.getProvider(PROVIDER_NAME) == null) { Security.addProvider(new BouncyCastleProvider()); } PGPEncryptedDataGenerator cPk = new PGPEncrypted...
[ "public", "OutputStream", "encryptFile", "(", "OutputStream", "outputStream", ",", "InputStream", "keyIn", ",", "long", "keyId", ",", "String", "cipher", ")", "throws", "IOException", "{", "try", "{", "if", "(", "Security", ".", "getProvider", "(", "PROVIDER_NAM...
Taking in an input {@link OutputStream}, keyring inputstream and a passPhrase, generate an encrypted {@link OutputStream}. @param outputStream {@link OutputStream} that will receive the encrypted content @param keyIn keyring inputstream. This InputStream is owned by the caller. @param keyId key identifier @param cipher...
[ "Taking", "in", "an", "input", "{" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-modules/gobblin-crypto/src/main/java/org/apache/gobblin/crypto/GPGFileEncryptor.java#L103-L136
ModeShape/modeshape
index-providers/modeshape-lucene-index-provider/src/main/java/org/modeshape/jcr/index/lucene/query/CompareNameQuery.java
CompareNameQuery.createQueryForNodesWithNameEqualTo
public static Query createQueryForNodesWithNameEqualTo( Name constraintValue, String fieldName, ValueFactories factories, Function<String, S...
java
public static Query createQueryForNodesWithNameEqualTo( Name constraintValue, String fieldName, ValueFactories factories, Function<String, S...
[ "public", "static", "Query", "createQueryForNodesWithNameEqualTo", "(", "Name", "constraintValue", ",", "String", "fieldName", ",", "ValueFactories", "factories", ",", "Function", "<", "String", ",", "String", ">", "caseOperation", ")", "{", "return", "new", "Compar...
Construct a {@link Query} implementation that scores documents such that the node represented by the document has a name that is greater than the supplied constraint name. @param constraintValue the constraint value; may not be null @param fieldName the name of the document field containing the name value; may not be ...
[ "Construct", "a", "{", "@link", "Query", "}", "implementation", "that", "scores", "documents", "such", "that", "the", "node", "represented", "by", "the", "document", "has", "a", "name", "that", "is", "greater", "than", "the", "supplied", "constraint", "name", ...
train
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/index-providers/modeshape-lucene-index-provider/src/main/java/org/modeshape/jcr/index/lucene/query/CompareNameQuery.java#L83-L89
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8