repository_name
stringlengths
7
58
func_path_in_repository
stringlengths
11
218
func_name
stringlengths
4
140
whole_func_string
stringlengths
153
5.32k
language
stringclasses
1 value
func_code_string
stringlengths
72
4k
func_code_tokens
listlengths
20
832
func_documentation_string
stringlengths
61
2k
func_documentation_tokens
listlengths
1
647
split_name
stringclasses
1 value
func_code_url
stringlengths
102
339
apache/groovy
src/main/java/org/codehaus/groovy/vmplugin/v5/PluginDefaultGroovyMethods.java
PluginDefaultGroovyMethods.leftShift
public static StringBuilder leftShift(StringBuilder self, Object value) { """ Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuilder. @param self a StringBuilder @param value a value to append @return the StringBuilder on which this o...
java
public static StringBuilder leftShift(StringBuilder self, Object value) { if (value instanceof GString) { // Force the conversion of the GString to string now, or appending // is going to be extremely expensive, due to calls to GString#charAt, // which is going to re-evaluate...
[ "public", "static", "StringBuilder", "leftShift", "(", "StringBuilder", "self", ",", "Object", "value", ")", "{", "if", "(", "value", "instanceof", "GString", ")", "{", "// Force the conversion of the GString to string now, or appending", "// is going to be extremely expensiv...
Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuilder. @param self a StringBuilder @param value a value to append @return the StringBuilder on which this operation was invoked
[ "Overloads", "the", "left", "shift", "operator", "to", "provide", "an", "easy", "way", "to", "append", "multiple", "objects", "as", "string", "representations", "to", "a", "StringBuilder", "." ]
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/java/org/codehaus/groovy/vmplugin/v5/PluginDefaultGroovyMethods.java#L97-L108
scalecube/scalecube-services
services/src/main/java/io/scalecube/services/metrics/Metrics.java
Metrics.mark
public static void mark(Metrics metrics, Class component, String methodName, String eventType) { """ Reports an event to <code>meter</code> described by given parameters. @param metrics - {@link Metrics} instance with {@link MetricRegistry} initialized. @param component - part of metric description (calss name...
java
public static void mark(Metrics metrics, Class component, String methodName, String eventType) { mark(metrics, component.getName(), methodName, eventType); }
[ "public", "static", "void", "mark", "(", "Metrics", "metrics", ",", "Class", "component", ",", "String", "methodName", ",", "String", "eventType", ")", "{", "mark", "(", "metrics", ",", "component", ".", "getName", "(", ")", ",", "methodName", ",", "eventT...
Reports an event to <code>meter</code> described by given parameters. @param metrics - {@link Metrics} instance with {@link MetricRegistry} initialized. @param component - part of metric description (calss name is used). @param methodName - part of metric description. @param eventType - part of metric description.
[ "Reports", "an", "event", "to", "<code", ">", "meter<", "/", "code", ">", "described", "by", "given", "parameters", "." ]
train
https://github.com/scalecube/scalecube-services/blob/76c8de6019e5480a1436d12b37acf163f70eea47/services/src/main/java/io/scalecube/services/metrics/Metrics.java#L132-L134
Azure/azure-sdk-for-java
datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/implementation/TasksInner.java
TasksInner.cancelAsync
public Observable<ProjectTaskInner> cancelAsync(String groupName, String serviceName, String projectName, String taskName) { """ Cancel a task. The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running. @par...
java
public Observable<ProjectTaskInner> cancelAsync(String groupName, String serviceName, String projectName, String taskName) { return cancelWithServiceResponseAsync(groupName, serviceName, projectName, taskName).map(new Func1<ServiceResponse<ProjectTaskInner>, ProjectTaskInner>() { @Override ...
[ "public", "Observable", "<", "ProjectTaskInner", ">", "cancelAsync", "(", "String", "groupName", ",", "String", "serviceName", ",", "String", "projectName", ",", "String", "taskName", ")", "{", "return", "cancelWithServiceResponseAsync", "(", "groupName", ",", "serv...
Cancel a task. The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running. @param groupName Name of the resource group @param serviceName Name of the service @param projectName Name of the project @param taskName Nam...
[ "Cancel", "a", "task", ".", "The", "tasks", "resource", "is", "a", "nested", "proxy", "-", "only", "resource", "representing", "work", "performed", "by", "a", "DMS", "instance", ".", "This", "method", "cancels", "a", "task", "if", "it", "s", "currently", ...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/implementation/TasksInner.java#L1047-L1054
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java
EventDimensions.withAttributes
public EventDimensions withAttributes(java.util.Map<String, AttributeDimension> attributes) { """ Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter. @param attributes Custom attributes that your app reports to Amazon ...
java
public EventDimensions withAttributes(java.util.Map<String, AttributeDimension> attributes) { setAttributes(attributes); return this; }
[ "public", "EventDimensions", "withAttributes", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeDimension", ">", "attributes", ")", "{", "setAttributes", "(", "attributes", ")", ";", "return", "this", ";", "}" ]
Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter. @param attributes Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter. @return Retur...
[ "Custom", "attributes", "that", "your", "app", "reports", "to", "Amazon", "Pinpoint", ".", "You", "can", "use", "these", "attributes", "as", "selection", "criteria", "when", "you", "create", "an", "event", "filter", "." ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java#L80-L83
nohana/Amalgam
amalgam/src/main/java/com/amalgam/os/BundleUtils.java
BundleUtils.optIntegerArrayList
@Nullable public static ArrayList<Integer> optIntegerArrayList(@Nullable Bundle bundle, @Nullable String key) { """ Since Bundle#getIntegerArrayList returns concrete ArrayList type, so this method follows that implementation. """ return optIntegerArrayList(bundle, key, new ArrayList<Integer>()); ...
java
@Nullable public static ArrayList<Integer> optIntegerArrayList(@Nullable Bundle bundle, @Nullable String key) { return optIntegerArrayList(bundle, key, new ArrayList<Integer>()); }
[ "@", "Nullable", "public", "static", "ArrayList", "<", "Integer", ">", "optIntegerArrayList", "(", "@", "Nullable", "Bundle", "bundle", ",", "@", "Nullable", "String", "key", ")", "{", "return", "optIntegerArrayList", "(", "bundle", ",", "key", ",", "new", "...
Since Bundle#getIntegerArrayList returns concrete ArrayList type, so this method follows that implementation.
[ "Since", "Bundle#getIntegerArrayList", "returns", "concrete", "ArrayList", "type", "so", "this", "method", "follows", "that", "implementation", "." ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/os/BundleUtils.java#L600-L603
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java
HtmlButtonRendererBase.findNestingForm
protected FormInfo findNestingForm(UIComponent uiComponent, FacesContext facesContext) { """ find nesting form<br /> need to be overrideable to deal with dummyForm stuff in tomahawk. """ return RendererUtils.findNestingForm(uiComponent, facesContext); }
java
protected FormInfo findNestingForm(UIComponent uiComponent, FacesContext facesContext) { return RendererUtils.findNestingForm(uiComponent, facesContext); }
[ "protected", "FormInfo", "findNestingForm", "(", "UIComponent", "uiComponent", ",", "FacesContext", "facesContext", ")", "{", "return", "RendererUtils", ".", "findNestingForm", "(", "uiComponent", ",", "facesContext", ")", ";", "}" ]
find nesting form<br /> need to be overrideable to deal with dummyForm stuff in tomahawk.
[ "find", "nesting", "form<br", "/", ">", "need", "to", "be", "overrideable", "to", "deal", "with", "dummyForm", "stuff", "in", "tomahawk", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java#L644-L647
gallandarakhneorg/afc
core/inputoutput/src/main/java/org/arakhne/afc/inputoutput/xml/XMLUtil.java
XMLUtil.getAttributeUUID
@Pure public static UUID getAttributeUUID(Node document, String... path) { """ Replies the UUID that corresponds to the specified attribute's path. <p>The path is an ordered list of tag's names and ended by the name of the attribute. Be careful about the fact that the names are case sensitives. @param doc...
java
@Pure public static UUID getAttributeUUID(Node document, String... path) { assert document != null : AssertMessages.notNullParameter(0); return getAttributeUUIDWithDefault(document, true, null, path); }
[ "@", "Pure", "public", "static", "UUID", "getAttributeUUID", "(", "Node", "document", ",", "String", "...", "path", ")", "{", "assert", "document", "!=", "null", ":", "AssertMessages", ".", "notNullParameter", "(", "0", ")", ";", "return", "getAttributeUUIDWit...
Replies the UUID that corresponds to the specified attribute's path. <p>The path is an ordered list of tag's names and ended by the name of the attribute. Be careful about the fact that the names are case sensitives. @param document is the XML document to explore. @param path is the list of and ended by the attribute...
[ "Replies", "the", "UUID", "that", "corresponds", "to", "the", "specified", "attribute", "s", "path", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/core/inputoutput/src/main/java/org/arakhne/afc/inputoutput/xml/XMLUtil.java#L1056-L1060
tvesalainen/lpg
src/main/java/org/vesalainen/parser/util/Input.java
Input.setCharset
@Override public void setCharset(Charset cs, boolean fixedCharset) { """ Set current character set. Only supported with byte input! @param cs @param fixedCharset @see org.vesalainen.parser.ParserFeature#UseModifiableCharset """ if (includeLevel.in instanceof ModifiableCharset) { ...
java
@Override public void setCharset(Charset cs, boolean fixedCharset) { if (includeLevel.in instanceof ModifiableCharset) { ModifiableCharset sr = (ModifiableCharset) includeLevel.in; sr.setCharset(cs, fixedCharset); } else { throw new Uns...
[ "@", "Override", "public", "void", "setCharset", "(", "Charset", "cs", ",", "boolean", "fixedCharset", ")", "{", "if", "(", "includeLevel", ".", "in", "instanceof", "ModifiableCharset", ")", "{", "ModifiableCharset", "sr", "=", "(", "ModifiableCharset", ")", "...
Set current character set. Only supported with byte input! @param cs @param fixedCharset @see org.vesalainen.parser.ParserFeature#UseModifiableCharset
[ "Set", "current", "character", "set", ".", "Only", "supported", "with", "byte", "input!" ]
train
https://github.com/tvesalainen/lpg/blob/0917b8d295e9772b9f8a0affc258a08530cd567a/src/main/java/org/vesalainen/parser/util/Input.java#L558-L570
awslabs/amazon-sqs-java-messaging-lib
src/main/java/com/amazon/sqs/javamessaging/SQSConnection.java
SQSConnection.createQueueSession
@Override public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException { """ Creates a <code>QueueSession</code> @param transacted Only false is supported. @param acknowledgeMode Legal values are <code>Session.AUTO_ACKNOWLEDGE</code>, <code>Session.CLIENT_ACKNOWLED...
java
@Override public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException { return (QueueSession) createSession(transacted, acknowledgeMode); }
[ "@", "Override", "public", "QueueSession", "createQueueSession", "(", "boolean", "transacted", ",", "int", "acknowledgeMode", ")", "throws", "JMSException", "{", "return", "(", "QueueSession", ")", "createSession", "(", "transacted", ",", "acknowledgeMode", ")", ";"...
Creates a <code>QueueSession</code> @param transacted Only false is supported. @param acknowledgeMode Legal values are <code>Session.AUTO_ACKNOWLEDGE</code>, <code>Session.CLIENT_ACKNOWLEDGE</code>, <code>Session.DUPS_OK_ACKNOWLEDGE</code>, and <code>SQSSession.UNORDERED_ACKNOWLEDGE</code> @return a new queue session....
[ "Creates", "a", "<code", ">", "QueueSession<", "/", "code", ">" ]
train
https://github.com/awslabs/amazon-sqs-java-messaging-lib/blob/efa716d34d51ef1c5572790626cdb795419cb342/src/main/java/com/amazon/sqs/javamessaging/SQSConnection.java#L159-L162
CloudSlang/cs-actions
cs-vmware/src/main/java/io/cloudslang/content/vmware/services/VmService.java
VmService.getVMDetails
public Map<String, String> getVMDetails(HttpInputs httpInputs, VmInputs vmInputs) throws Exception { """ Method used to connect to data center to retrieve details of a virtual machine identified by the inputs provided. @param httpInputs Object that has all the inputs necessary to made a connection to data cente...
java
public Map<String, String> getVMDetails(HttpInputs httpInputs, VmInputs vmInputs) throws Exception { ConnectionResources connectionResources = new ConnectionResources(httpInputs, vmInputs); try { ManagedObjectReference vmMor = new MorObjectHandler().getMor(connectionResources, ...
[ "public", "Map", "<", "String", ",", "String", ">", "getVMDetails", "(", "HttpInputs", "httpInputs", ",", "VmInputs", "vmInputs", ")", "throws", "Exception", "{", "ConnectionResources", "connectionResources", "=", "new", "ConnectionResources", "(", "httpInputs", ","...
Method used to connect to data center to retrieve details of a virtual machine identified by the inputs provided. @param httpInputs Object that has all the inputs necessary to made a connection to data center @param vmInputs Object that has all the specific inputs necessary to identify the targeted virtual machine @...
[ "Method", "used", "to", "connect", "to", "data", "center", "to", "retrieve", "details", "of", "a", "virtual", "machine", "identified", "by", "the", "inputs", "provided", "." ]
train
https://github.com/CloudSlang/cs-actions/blob/9a1be1e99ad88286a6c153d5f2275df6ae1a57a1/cs-vmware/src/main/java/io/cloudslang/content/vmware/services/VmService.java#L250-L283
ops4j/org.ops4j.pax.exam2
core/pax-exam-spi/src/main/java/org/ops4j/pax/exam/spi/war/WarBuilder.java
WarBuilder.buildWar
public URI buildWar() { """ Builds a WAR from the given option. @return file URI referencing the WAR in a temporary directory """ if (option.getName() == null) { option.name(UUID.randomUUID().toString()); } processClassPath(); try { File webResourceDir...
java
public URI buildWar() { if (option.getName() == null) { option.name(UUID.randomUUID().toString()); } processClassPath(); try { File webResourceDir = getWebResourceDir(); File probeWar = new File(tempDir, option.getName() + ".war"); ZipBuild...
[ "public", "URI", "buildWar", "(", ")", "{", "if", "(", "option", ".", "getName", "(", ")", "==", "null", ")", "{", "option", ".", "name", "(", "UUID", ".", "randomUUID", "(", ")", ".", "toString", "(", ")", ")", ";", "}", "processClassPath", "(", ...
Builds a WAR from the given option. @return file URI referencing the WAR in a temporary directory
[ "Builds", "a", "WAR", "from", "the", "given", "option", "." ]
train
https://github.com/ops4j/org.ops4j.pax.exam2/blob/7f83796cbbb857123d8fc7fe817a7637218d5d77/core/pax-exam-spi/src/main/java/org/ops4j/pax/exam/spi/war/WarBuilder.java#L84-L117
Samsung/GearVRf
GVRf/Framework/framework/src/main/java/org/gearvrf/GVRShaderData.java
GVRShaderData.setInt
public void setInt(String key, int value) { """ Bind an {@code int} to the shader uniform {@code key}. Throws an exception of the key does not exist. @param key Name of the shader uniform @param value New data """ checkKeyIsUniform(key); NativeShaderData.setInt(getNative(), key, va...
java
public void setInt(String key, int value) { checkKeyIsUniform(key); NativeShaderData.setInt(getNative(), key, value); }
[ "public", "void", "setInt", "(", "String", "key", ",", "int", "value", ")", "{", "checkKeyIsUniform", "(", "key", ")", ";", "NativeShaderData", ".", "setInt", "(", "getNative", "(", ")", ",", "key", ",", "value", ")", ";", "}" ]
Bind an {@code int} to the shader uniform {@code key}. Throws an exception of the key does not exist. @param key Name of the shader uniform @param value New data
[ "Bind", "an", "{" ]
train
https://github.com/Samsung/GearVRf/blob/05034d465a7b0a494fabb9e9f2971ac19392f32d/GVRf/Framework/framework/src/main/java/org/gearvrf/GVRShaderData.java#L271-L275
samskivert/pythagoras
src/main/java/pythagoras/f/Arc.java
Arc.setArcByTangent
public void setArcByTangent (XY p1, XY p2, XY p3, float radius) { """ Sets the location, size, angular extents, and closure type of this arc based on the specified values. """ // use simple geometric calculations of arc center, radius and angles by tangents float a1 = -FloatMath.atan2(p1.y() -...
java
public void setArcByTangent (XY p1, XY p2, XY p3, float radius) { // use simple geometric calculations of arc center, radius and angles by tangents float a1 = -FloatMath.atan2(p1.y() - p2.y(), p1.x() - p2.x()); float a2 = -FloatMath.atan2(p3.y() - p2.y(), p3.x() - p2.x()); float am = (a1...
[ "public", "void", "setArcByTangent", "(", "XY", "p1", ",", "XY", "p2", ",", "XY", "p3", ",", "float", "radius", ")", "{", "// use simple geometric calculations of arc center, radius and angles by tangents", "float", "a1", "=", "-", "FloatMath", ".", "atan2", "(", ...
Sets the location, size, angular extents, and closure type of this arc based on the specified values.
[ "Sets", "the", "location", "size", "angular", "extents", "and", "closure", "type", "of", "this", "arc", "based", "on", "the", "specified", "values", "." ]
train
https://github.com/samskivert/pythagoras/blob/b8fea743ee8a7d742ad9c06ee4f11f50571fbd32/src/main/java/pythagoras/f/Arc.java#L177-L194
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
JavacParser.enumDeclaration
protected JCClassDecl enumDeclaration(JCModifiers mods, Comment dc) { """ EnumDeclaration = ENUM Ident [IMPLEMENTS TypeList] EnumBody @param mods The modifiers starting the enum declaration @param dc The documentation comment for the enum, or null. """ int pos = token.pos; accept(ENU...
java
protected JCClassDecl enumDeclaration(JCModifiers mods, Comment dc) { int pos = token.pos; accept(ENUM); Name name = ident(); List<JCExpression> implementing = List.nil(); if (token.kind == IMPLEMENTS) { nextToken(); implementing = typeList(); } ...
[ "protected", "JCClassDecl", "enumDeclaration", "(", "JCModifiers", "mods", ",", "Comment", "dc", ")", "{", "int", "pos", "=", "token", ".", "pos", ";", "accept", "(", "ENUM", ")", ";", "Name", "name", "=", "ident", "(", ")", ";", "List", "<", "JCExpres...
EnumDeclaration = ENUM Ident [IMPLEMENTS TypeList] EnumBody @param mods The modifiers starting the enum declaration @param dc The documentation comment for the enum, or null.
[ "EnumDeclaration", "=", "ENUM", "Ident", "[", "IMPLEMENTS", "TypeList", "]", "EnumBody" ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java#L3433-L3451
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.confirmNoFileConflicts
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { """ Confirms that UpdatedFile lists does not contain any common files @param updatedFiles1 @param updatedFiles2 @return Return true if there are no conflicts and return false otherwise """ ...
java
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
[ "private", "static", "boolean", "confirmNoFileConflicts", "(", "Set", "<", "UpdatedFile", ">", "updatedFiles1", ",", "Set", "<", "UpdatedFile", ">", "updatedFiles2", ")", "{", "for", "(", "Iterator", "<", "UpdatedFile", ">", "iter1", "=", "updatedFiles1", ".", ...
Confirms that UpdatedFile lists does not contain any common files @param updatedFiles1 @param updatedFiles2 @return Return true if there are no conflicts and return false otherwise
[ "Confirms", "that", "UpdatedFile", "lists", "does", "not", "contain", "any", "common", "files" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L193-L205
Wikidata/Wikidata-Toolkit
wdtk-storage/src/main/java/org/wikidata/wdtk/storage/datastructures/CountBitsArray.java
CountBitsArray.countBits
public long countBits(boolean bit, long position) { """ Returns the number of occurrences of <i>bit</i> up to <i>position</i>. @return number of occurrences of <i>bit</i> up to <i>position</i> """ updateCount(); int blockNumber = (int) (position / this.blockSize); long mark = ((long) blockNumber) * th...
java
public long countBits(boolean bit, long position) { updateCount(); int blockNumber = (int) (position / this.blockSize); long mark = ((long) blockNumber) * this.blockSize; long trueValues = 0; if (blockNumber > 0) { trueValues = this.countArray[blockNumber - 1]; } for (long index = mark; index <= positi...
[ "public", "long", "countBits", "(", "boolean", "bit", ",", "long", "position", ")", "{", "updateCount", "(", ")", ";", "int", "blockNumber", "=", "(", "int", ")", "(", "position", "/", "this", ".", "blockSize", ")", ";", "long", "mark", "=", "(", "("...
Returns the number of occurrences of <i>bit</i> up to <i>position</i>. @return number of occurrences of <i>bit</i> up to <i>position</i>
[ "Returns", "the", "number", "of", "occurrences", "of", "<i", ">", "bit<", "/", "i", ">", "up", "to", "<i", ">", "position<", "/", "i", ">", "." ]
train
https://github.com/Wikidata/Wikidata-Toolkit/blob/7732851dda47e1febff406fba27bfec023f4786e/wdtk-storage/src/main/java/org/wikidata/wdtk/storage/datastructures/CountBitsArray.java#L98-L110
apache/groovy
subprojects/groovy-yaml/src/main/java/groovy/yaml/YamlBuilder.java
YamlBuilder.call
public Object call(Iterable coll, Closure c) { """ A collection and closure passed to a YAML builder will create a root YAML array applying the closure to each object in the collection <p> Example: <pre><code class="groovyTestCase"> class Author { String name } def authors = [new Author (name: "Guillaume")...
java
public Object call(Iterable coll, Closure c) { return jsonBuilder.call(coll, c); }
[ "public", "Object", "call", "(", "Iterable", "coll", ",", "Closure", "c", ")", "{", "return", "jsonBuilder", ".", "call", "(", "coll", ",", "c", ")", ";", "}" ]
A collection and closure passed to a YAML builder will create a root YAML array applying the closure to each object in the collection <p> Example: <pre><code class="groovyTestCase"> class Author { String name } def authors = [new Author (name: "Guillaume"), new Author (name: "Jochen"), new Author (name: "Paul")] def y...
[ "A", "collection", "and", "closure", "passed", "to", "a", "YAML", "builder", "will", "create", "a", "root", "YAML", "array", "applying", "the", "closure", "to", "each", "object", "in", "the", "collection", "<p", ">", "Example", ":", "<pre", ">", "<code", ...
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/subprojects/groovy-yaml/src/main/java/groovy/yaml/YamlBuilder.java#L143-L145
geomajas/geomajas-project-geometry
core/src/main/java/org/geomajas/geometry/service/MathService.java
MathService.lineIntersection
public static Coordinate lineIntersection(Coordinate c1, Coordinate c2, Coordinate c3, Coordinate c4) { """ Calculates the intersection point of 2 lines. @param c1 First coordinate of the first line. @param c2 Second coordinate of the first line. @param c3 First coordinate of the second line. @param c4 Secon...
java
public static Coordinate lineIntersection(Coordinate c1, Coordinate c2, Coordinate c3, Coordinate c4) { // http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ double x1 = c1.getX(); double y1 = c1.getY(); double x2 = c2.getX(); double y2 = c2.getY(); double x3 = c3.getX(); double y3 = c3.getY(); ...
[ "public", "static", "Coordinate", "lineIntersection", "(", "Coordinate", "c1", ",", "Coordinate", "c2", ",", "Coordinate", "c3", ",", "Coordinate", "c4", ")", "{", "// http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/", "double", "x1", "=", "c1", ".", "getX",...
Calculates the intersection point of 2 lines. @param c1 First coordinate of the first line. @param c2 Second coordinate of the first line. @param c3 First coordinate of the second line. @param c4 Second coordinate of the second line. @return Returns a coordinate.
[ "Calculates", "the", "intersection", "point", "of", "2", "lines", "." ]
train
https://github.com/geomajas/geomajas-project-geometry/blob/09a214fede69c9c01e41630828c4abbb551a557d/core/src/main/java/org/geomajas/geometry/service/MathService.java#L90-L107
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/StatementManager.java
StatementManager.bindUpdate
public void bindUpdate(PreparedStatement stmt, ClassDescriptor cld, Object obj) throws java.sql.SQLException { """ binds the values of the object obj to the statements parameters """ if (cld.getUpdateProcedure() != null) { this.bindProcedure(stmt, cld, obj, cld.getUpdateProcedure...
java
public void bindUpdate(PreparedStatement stmt, ClassDescriptor cld, Object obj) throws java.sql.SQLException { if (cld.getUpdateProcedure() != null) { this.bindProcedure(stmt, cld, obj, cld.getUpdateProcedure()); } else { int index = 1; ...
[ "public", "void", "bindUpdate", "(", "PreparedStatement", "stmt", ",", "ClassDescriptor", "cld", ",", "Object", "obj", ")", "throws", "java", ".", "sql", ".", "SQLException", "{", "if", "(", "cld", ".", "getUpdateProcedure", "(", ")", "!=", "null", ")", "{...
binds the values of the object obj to the statements parameters
[ "binds", "the", "values", "of", "the", "object", "obj", "to", "the", "statements", "parameters" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java#L489-L526
wmdietl/jsr308-langtools
src/share/classes/javax/lang/model/util/SimpleElementVisitor7.java
SimpleElementVisitor7.visitVariable
@Override public R visitVariable(VariableElement e, P p) { """ This implementation calls {@code defaultAction}. @param e {@inheritDoc} @param p {@inheritDoc} @return the result of {@code defaultAction} """ return defaultAction(e, p); }
java
@Override public R visitVariable(VariableElement e, P p) { return defaultAction(e, p); }
[ "@", "Override", "public", "R", "visitVariable", "(", "VariableElement", "e", ",", "P", "p", ")", "{", "return", "defaultAction", "(", "e", ",", "p", ")", ";", "}" ]
This implementation calls {@code defaultAction}. @param e {@inheritDoc} @param p {@inheritDoc} @return the result of {@code defaultAction}
[ "This", "implementation", "calls", "{", "@code", "defaultAction", "}", "." ]
train
https://github.com/wmdietl/jsr308-langtools/blob/8812d28c20f4de070a0dd6de1b45602431379834/src/share/classes/javax/lang/model/util/SimpleElementVisitor7.java#L110-L113
liferay/com-liferay-commerce
commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java
CPOptionCategoryPersistenceImpl.findAll
@Override public List<CPOptionCategory> findAll() { """ Returns all the cp option categories. @return the cp option categories """ return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
java
@Override public List<CPOptionCategory> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
[ "@", "Override", "public", "List", "<", "CPOptionCategory", ">", "findAll", "(", ")", "{", "return", "findAll", "(", "QueryUtil", ".", "ALL_POS", ",", "QueryUtil", ".", "ALL_POS", ",", "null", ")", ";", "}" ]
Returns all the cp option categories. @return the cp option categories
[ "Returns", "all", "the", "cp", "option", "categories", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L3436-L3439
UrielCh/ovh-java-sdk
ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java
ApiOvhTelephony.billingAccount_offerTask_taskId_PUT
public void billingAccount_offerTask_taskId_PUT(String billingAccount, Long taskId, OvhOfferTask body) throws IOException { """ Alter this object properties REST: PUT /telephony/{billingAccount}/offerTask/{taskId} @param body [required] New object properties @param billingAccount [required] The name of your b...
java
public void billingAccount_offerTask_taskId_PUT(String billingAccount, Long taskId, OvhOfferTask body) throws IOException { String qPath = "/telephony/{billingAccount}/offerTask/{taskId}"; StringBuilder sb = path(qPath, billingAccount, taskId); exec(qPath, "PUT", sb.toString(), body); }
[ "public", "void", "billingAccount_offerTask_taskId_PUT", "(", "String", "billingAccount", ",", "Long", "taskId", ",", "OvhOfferTask", "body", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/telephony/{billingAccount}/offerTask/{taskId}\"", ";", "StringBuilder...
Alter this object properties REST: PUT /telephony/{billingAccount}/offerTask/{taskId} @param body [required] New object properties @param billingAccount [required] The name of your billingAccount @param taskId [required]
[ "Alter", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8242-L8246
HsiangLeekwok/hlklib
hlklib/src/main/java/com/hlk/hlklib/etc/BitmapUtils.java
BitmapUtils.computeSampleSize
public static int computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) { """ 获取缩放倍率 @param options 原始图片的基本信息 @param minSideLength 图片最小边尺寸 @param maxNumOfPixels 要压缩成的图片的像素总数 """ int initialSize = computeInitialSampleSize(options, minSideLength, maxNumOfPix...
java
public static int computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) { int initialSize = computeInitialSampleSize(options, minSideLength, maxNumOfPixels); int roundedSize; if (initialSize <= 8) { roundedSize = 1; while (roundedSize < i...
[ "public", "static", "int", "computeSampleSize", "(", "BitmapFactory", ".", "Options", "options", ",", "int", "minSideLength", ",", "int", "maxNumOfPixels", ")", "{", "int", "initialSize", "=", "computeInitialSampleSize", "(", "options", ",", "minSideLength", ",", ...
获取缩放倍率 @param options 原始图片的基本信息 @param minSideLength 图片最小边尺寸 @param maxNumOfPixels 要压缩成的图片的像素总数
[ "获取缩放倍率" ]
train
https://github.com/HsiangLeekwok/hlklib/blob/b122f6dcab7cec60c8e5455e0c31613d08bec6ad/hlklib/src/main/java/com/hlk/hlklib/etc/BitmapUtils.java#L49-L61
rzwitserloot/lombok
src/core/lombok/javac/handlers/JavacHandlerUtil.java
JavacHandlerUtil.annotationTypeMatches
public static boolean annotationTypeMatches(Class<? extends Annotation> type, JavacNode node) { """ Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type. @param type An actual annotation type, such as {@code lombok.Getter.class}. @param node A Lombok AST node r...
java
public static boolean annotationTypeMatches(Class<? extends Annotation> type, JavacNode node) { if (node.getKind() != Kind.ANNOTATION) return false; return typeMatches(type, node, ((JCAnnotation) node.get()).annotationType); }
[ "public", "static", "boolean", "annotationTypeMatches", "(", "Class", "<", "?", "extends", "Annotation", ">", "type", ",", "JavacNode", "node", ")", "{", "if", "(", "node", ".", "getKind", "(", ")", "!=", "Kind", ".", "ANNOTATION", ")", "return", "false", ...
Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type. @param type An actual annotation type, such as {@code lombok.Getter.class}. @param node A Lombok AST node representing an annotation in source code.
[ "Checks", "if", "the", "Annotation", "AST", "Node", "provided", "is", "likely", "to", "be", "an", "instance", "of", "the", "provided", "annotation", "type", "." ]
train
https://github.com/rzwitserloot/lombok/blob/75601240760bd81ff95fcde7a1b8185769ce64e8/src/core/lombok/javac/handlers/JavacHandlerUtil.java#L268-L271
aNNiMON/Lightweight-Stream-API
stream/src/main/java/com/annimon/stream/IntStream.java
IntStream.scan
@NotNull public IntStream scan(@NotNull final IntBinaryOperator accumulator) { """ Returns a {@code IntStream} produced by iterative application of a accumulation function to reduction value and next element of the current stream. Produces a {@code IntStream} consisting of {@code value1}, {@code acc(value1, ...
java
@NotNull public IntStream scan(@NotNull final IntBinaryOperator accumulator) { Objects.requireNonNull(accumulator); return new IntStream(params, new IntScan(iterator, accumulator)); }
[ "@", "NotNull", "public", "IntStream", "scan", "(", "@", "NotNull", "final", "IntBinaryOperator", "accumulator", ")", "{", "Objects", ".", "requireNonNull", "(", "accumulator", ")", ";", "return", "new", "IntStream", "(", "params", ",", "new", "IntScan", "(", ...
Returns a {@code IntStream} produced by iterative application of a accumulation function to reduction value and next element of the current stream. Produces a {@code IntStream} consisting of {@code value1}, {@code acc(value1, value2)}, {@code acc(acc(value1, value2), value3)}, etc. <p>This is an intermediate operation...
[ "Returns", "a", "{", "@code", "IntStream", "}", "produced", "by", "iterative", "application", "of", "a", "accumulation", "function", "to", "reduction", "value", "and", "next", "element", "of", "the", "current", "stream", ".", "Produces", "a", "{", "@code", "...
train
https://github.com/aNNiMON/Lightweight-Stream-API/blob/f29fd57208c20252a4549b084d55ed082c3e58f0/stream/src/main/java/com/annimon/stream/IntStream.java#L705-L709
hawkular/hawkular-apm
client/collector/src/main/java/org/hawkular/apm/client/collector/internal/FragmentBuilder.java
FragmentBuilder.nodeMatches
protected boolean nodeMatches(Node node, Class<? extends Node> cls, String uri) { """ This method determines whether the supplied node matches the specified class and optional URI. @param node The node @param cls The class @param uri The optional URI @return Whether the node is of the correct type and match...
java
protected boolean nodeMatches(Node node, Class<? extends Node> cls, String uri) { if (node.getClass() == cls) { return uri == null || NodeUtil.isOriginalURI(node, uri); } return false; }
[ "protected", "boolean", "nodeMatches", "(", "Node", "node", ",", "Class", "<", "?", "extends", "Node", ">", "cls", ",", "String", "uri", ")", "{", "if", "(", "node", ".", "getClass", "(", ")", "==", "cls", ")", "{", "return", "uri", "==", "null", "...
This method determines whether the supplied node matches the specified class and optional URI. @param node The node @param cls The class @param uri The optional URI @return Whether the node is of the correct type and matches the optional URI
[ "This", "method", "determines", "whether", "the", "supplied", "node", "matches", "the", "specified", "class", "and", "optional", "URI", "." ]
train
https://github.com/hawkular/hawkular-apm/blob/57a4df0611b359597626563ea5f9ac64d4bb2533/client/collector/src/main/java/org/hawkular/apm/client/collector/internal/FragmentBuilder.java#L348-L354
ops4j/org.ops4j.pax.web
pax-web-jetty/src/main/java/org/ops4j/pax/web/service/jetty/internal/util/TypeUtil.java
TypeUtil.valueOf
public static Object valueOf(String type, String value) { """ Convert String value to instance. @param type classname or type (eg int) @param value The value as a string. @return The value as an Object. """ return valueOf(fromName(type), value); }
java
public static Object valueOf(String type, String value) { return valueOf(fromName(type), value); }
[ "public", "static", "Object", "valueOf", "(", "String", "type", ",", "String", "value", ")", "{", "return", "valueOf", "(", "fromName", "(", "type", ")", ",", "value", ")", ";", "}" ]
Convert String value to instance. @param type classname or type (eg int) @param value The value as a string. @return The value as an Object.
[ "Convert", "String", "value", "to", "instance", "." ]
train
https://github.com/ops4j/org.ops4j.pax.web/blob/9ecf3676c1d316be0d43ea7fcfdc8f0defffc2a2/pax-web-jetty/src/main/java/org/ops4j/pax/web/service/jetty/internal/util/TypeUtil.java#L265-L267
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/ThreadUtils.java
ThreadUtils.findThreadById
public static Thread findThreadById(final long threadId, final ThreadGroup threadGroup) { """ Return the active thread with the specified id if it belongs to the specified thread group. @param threadId The thread id @param threadGroup The thread group @return The thread which belongs to a specified thread gro...
java
public static Thread findThreadById(final long threadId, final ThreadGroup threadGroup) { Validate.isTrue(threadGroup != null, "The thread group must not be null"); final Thread thread = findThreadById(threadId); if(thread != null && threadGroup.equals(thread.getThreadGroup())) { ...
[ "public", "static", "Thread", "findThreadById", "(", "final", "long", "threadId", ",", "final", "ThreadGroup", "threadGroup", ")", "{", "Validate", ".", "isTrue", "(", "threadGroup", "!=", "null", ",", "\"The thread group must not be null\"", ")", ";", "final", "T...
Return the active thread with the specified id if it belongs to the specified thread group. @param threadId The thread id @param threadGroup The thread group @return The thread which belongs to a specified thread group and the thread's id match the specified id. {@code null} is returned if no such thread exists @throw...
[ "Return", "the", "active", "thread", "with", "the", "specified", "id", "if", "it", "belongs", "to", "the", "specified", "thread", "group", "." ]
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/ThreadUtils.java#L55-L62
jronrun/benayn
benayn-ustyle/src/main/java/com/benayn/ustyle/Sources.java
Sources.asCharSource
public static CharSource asCharSource(final Class<?> contextClass, final String resourceName) { """ Returns the given source as a {@link CharSource} @param contextClass @param resourceName @return """ return asCharSource(contextClass, resourceName, Charsets.UTF_8); }
java
public static CharSource asCharSource(final Class<?> contextClass, final String resourceName) { return asCharSource(contextClass, resourceName, Charsets.UTF_8); }
[ "public", "static", "CharSource", "asCharSource", "(", "final", "Class", "<", "?", ">", "contextClass", ",", "final", "String", "resourceName", ")", "{", "return", "asCharSource", "(", "contextClass", ",", "resourceName", ",", "Charsets", ".", "UTF_8", ")", ";...
Returns the given source as a {@link CharSource} @param contextClass @param resourceName @return
[ "Returns", "the", "given", "source", "as", "a", "{", "@link", "CharSource", "}" ]
train
https://github.com/jronrun/benayn/blob/7585152e10e4cac07b4274c65f1c72ad7061ae69/benayn-ustyle/src/main/java/com/benayn/ustyle/Sources.java#L192-L194
zeroturnaround/zt-zip
src/main/java/org/zeroturnaround/zip/FileSource.java
FileSource.pair
public static FileSource[] pair(File[] files, String[] names) { """ Creates a sequence of FileSource objects via mapping a sequence of files to the sequence of corresponding names for the entries @param files file array to form the data of the objects in the resulting array @param names file array to form the...
java
public static FileSource[] pair(File[] files, String[] names) { if (files.length > names.length) { throw new IllegalArgumentException("names array must contain " + "at least the same amount of items as files array or more"); } FileSource[] result = new FileSource[files.length]; f...
[ "public", "static", "FileSource", "[", "]", "pair", "(", "File", "[", "]", "files", ",", "String", "[", "]", "names", ")", "{", "if", "(", "files", ".", "length", ">", "names", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ...
Creates a sequence of FileSource objects via mapping a sequence of files to the sequence of corresponding names for the entries @param files file array to form the data of the objects in the resulting array @param names file array to form the names of the objects in the resulting array @return array of FileSource objec...
[ "Creates", "a", "sequence", "of", "FileSource", "objects", "via", "mapping", "a", "sequence", "of", "files", "to", "the", "sequence", "of", "corresponding", "names", "for", "the", "entries" ]
train
https://github.com/zeroturnaround/zt-zip/blob/abb4dc43583e4d19339c0c021035019798970a13/src/main/java/org/zeroturnaround/zip/FileSource.java#L75-L86
sculptor/sculptor
sculptor-generator/sculptor-generator-core/src/main/java/org/sculptor/generator/util/PropertiesBase.java
PropertiesBase.mapValidationAnnotation
public String mapValidationAnnotation(String annotation, String defaultAnnotation) { """ Gets a single validation annotation from properties. @param annotation shortcut for annotation @param defaultAnnotation default annotation in case annotation could not be found @return fully qualified Annotation Class (...
java
public String mapValidationAnnotation(String annotation, String defaultAnnotation) { String key = "validation.annotation." + toFirstUpper(annotation); if (hasProperty(key)) { return getProperty(key); } else { return defaultAnnotation; } }
[ "public", "String", "mapValidationAnnotation", "(", "String", "annotation", ",", "String", "defaultAnnotation", ")", "{", "String", "key", "=", "\"validation.annotation.\"", "+", "toFirstUpper", "(", "annotation", ")", ";", "if", "(", "hasProperty", "(", "key", ")...
Gets a single validation annotation from properties. @param annotation shortcut for annotation @param defaultAnnotation default annotation in case annotation could not be found @return fully qualified Annotation Class (without leading @)
[ "Gets", "a", "single", "validation", "annotation", "from", "properties", "." ]
train
https://github.com/sculptor/sculptor/blob/38df06ceb7e40f5f52dbd53b1cd1d07ee11aade5/sculptor-generator/sculptor-generator-core/src/main/java/org/sculptor/generator/util/PropertiesBase.java#L546-L553
apache/groovy
src/main/groovy/groovy/util/FactoryBuilderSupport.java
FactoryBuilderSupport.restoreFromContinuationData
protected void restoreFromContinuationData(Map<String, Object> data) { """ Restores the state of the current builder to the same state as an older build. Caution, this will destroy rather than merge the current build context if there is any, @param data the data retrieved from a compatible getContinuationData ...
java
protected void restoreFromContinuationData(Map<String, Object> data) { //noinspection unchecked localProxyBuilder.set((FactoryBuilderSupport) data.get("proxyBuilder")); //noinspection unchecked contexts.set((LinkedList<Map<String, Object>>) data.get("contexts")); }
[ "protected", "void", "restoreFromContinuationData", "(", "Map", "<", "String", ",", "Object", ">", "data", ")", "{", "//noinspection unchecked", "localProxyBuilder", ".", "set", "(", "(", "FactoryBuilderSupport", ")", "data", ".", "get", "(", "\"proxyBuilder\"", "...
Restores the state of the current builder to the same state as an older build. Caution, this will destroy rather than merge the current build context if there is any, @param data the data retrieved from a compatible getContinuationData call
[ "Restores", "the", "state", "of", "the", "current", "builder", "to", "the", "same", "state", "as", "an", "older", "build", "." ]
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/groovy/groovy/util/FactoryBuilderSupport.java#L1151-L1156
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/openal/SoundStore.java
SoundStore.getWAV
public Audio getWAV(String ref) throws IOException { """ Get the Sound based on a specified WAV file @param ref The reference to the WAV file in the classpath @return The Sound read from the WAV file @throws IOException Indicates a failure to load the WAV """ return getWAV(ref, ResourceLoader.getResour...
java
public Audio getWAV(String ref) throws IOException { return getWAV(ref, ResourceLoader.getResourceAsStream(ref)); }
[ "public", "Audio", "getWAV", "(", "String", "ref", ")", "throws", "IOException", "{", "return", "getWAV", "(", "ref", ",", "ResourceLoader", ".", "getResourceAsStream", "(", "ref", ")", ")", ";", "}" ]
Get the Sound based on a specified WAV file @param ref The reference to the WAV file in the classpath @return The Sound read from the WAV file @throws IOException Indicates a failure to load the WAV
[ "Get", "the", "Sound", "based", "on", "a", "specified", "WAV", "file" ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/openal/SoundStore.java#L671-L673
jbundle/jbundle
base/screen/view/xml/src/main/java/org/jbundle/base/screen/view/xml/XBaseGridScreen.java
XBaseGridScreen.printStartGridScreenData
public int printStartGridScreenData(PrintWriter out, int iPrintOptions) { """ Display the start grid in input format. @return true if default params were found for this form. @param out The http output stream. @exception DBException File exception. """ out.println(Utility.startTag(XMLTags.DATA)); ...
java
public int printStartGridScreenData(PrintWriter out, int iPrintOptions) { out.println(Utility.startTag(XMLTags.DATA)); return iPrintOptions; }
[ "public", "int", "printStartGridScreenData", "(", "PrintWriter", "out", ",", "int", "iPrintOptions", ")", "{", "out", ".", "println", "(", "Utility", ".", "startTag", "(", "XMLTags", ".", "DATA", ")", ")", ";", "return", "iPrintOptions", ";", "}" ]
Display the start grid in input format. @return true if default params were found for this form. @param out The http output stream. @exception DBException File exception.
[ "Display", "the", "start", "grid", "in", "input", "format", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/view/xml/src/main/java/org/jbundle/base/screen/view/xml/XBaseGridScreen.java#L146-L150
structr/structr
structr-ui/src/main/java/org/structr/web/common/FileHelper.java
FileHelper.createFile
public static <T extends File> T createFile(final SecurityContext securityContext, final byte[] fileData, final String contentType, final Class<T> t, final String name, final boolean updateMetadata) throws FrameworkException, IOException { """ Create a new file node from the given byte array @param <T> @para...
java
public static <T extends File> T createFile(final SecurityContext securityContext, final byte[] fileData, final String contentType, final Class<T> t, final String name, final boolean updateMetadata) throws FrameworkException, IOException { final PropertyMap props = new PropertyMap(); props.put(AbstractNode.name...
[ "public", "static", "<", "T", "extends", "File", ">", "T", "createFile", "(", "final", "SecurityContext", "securityContext", ",", "final", "byte", "[", "]", "fileData", ",", "final", "String", "contentType", ",", "final", "Class", "<", "T", ">", "t", ",", ...
Create a new file node from the given byte array @param <T> @param securityContext @param fileData @param contentType if null, try to auto-detect content type @param t @param name @param updateMetadata @return file @throws FrameworkException @throws IOException
[ "Create", "a", "new", "file", "node", "from", "the", "given", "byte", "array" ]
train
https://github.com/structr/structr/blob/c111a1d0c0201c7fea5574ed69aa5a5053185a97/structr-ui/src/main/java/org/structr/web/common/FileHelper.java#L209-L225
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/text/AttributedString.java
AttributedString.getIterator
public AttributedCharacterIterator getIterator(Attribute[] attributes, int beginIndex, int endIndex) { """ Creates an AttributedCharacterIterator instance that provides access to selected contents of this string. Information about attributes not listed in attributes that the implementor may have need not be mad...
java
public AttributedCharacterIterator getIterator(Attribute[] attributes, int beginIndex, int endIndex) { return new AttributedStringIterator(attributes, beginIndex, endIndex); }
[ "public", "AttributedCharacterIterator", "getIterator", "(", "Attribute", "[", "]", "attributes", ",", "int", "beginIndex", ",", "int", "endIndex", ")", "{", "return", "new", "AttributedStringIterator", "(", "attributes", ",", "beginIndex", ",", "endIndex", ")", "...
Creates an AttributedCharacterIterator instance that provides access to selected contents of this string. Information about attributes not listed in attributes that the implementor may have need not be made accessible through the iterator. If the list is null, all available attribute information should be made accessib...
[ "Creates", "an", "AttributedCharacterIterator", "instance", "that", "provides", "access", "to", "selected", "contents", "of", "this", "string", ".", "Information", "about", "attributes", "not", "listed", "in", "attributes", "that", "the", "implementor", "may", "have...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/text/AttributedString.java#L582-L584
apache/incubator-gobblin
gobblin-core/src/main/java/org/apache/gobblin/converter/csv/CsvToJsonConverter.java
CsvToJsonConverter.convertSchema
@Override public JsonArray convertSchema(String inputSchema, WorkUnitState workUnit) throws SchemaConversionException { """ Take in an input schema of type string, the schema must be in JSON format @return a JsonArray representation of the schema """ JsonParser jsonParser = new JsonParser(); JsonEle...
java
@Override public JsonArray convertSchema(String inputSchema, WorkUnitState workUnit) throws SchemaConversionException { JsonParser jsonParser = new JsonParser(); JsonElement jsonSchema = jsonParser.parse(inputSchema); return jsonSchema.getAsJsonArray(); }
[ "@", "Override", "public", "JsonArray", "convertSchema", "(", "String", "inputSchema", ",", "WorkUnitState", "workUnit", ")", "throws", "SchemaConversionException", "{", "JsonParser", "jsonParser", "=", "new", "JsonParser", "(", ")", ";", "JsonElement", "jsonSchema", ...
Take in an input schema of type string, the schema must be in JSON format @return a JsonArray representation of the schema
[ "Take", "in", "an", "input", "schema", "of", "type", "string", "the", "schema", "must", "be", "in", "JSON", "format" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-core/src/main/java/org/apache/gobblin/converter/csv/CsvToJsonConverter.java#L47-L52
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/X509CertImpl.java
X509CertImpl.getIssuerX500Principal
public static X500Principal getIssuerX500Principal(X509Certificate cert) { """ Extract the issuer X500Principal from an X509Certificate. Called from java.security.cert.X509Certificate.getIssuerX500Principal(). """ try { return getX500Principal(cert, true); } catch (Exception e) { ...
java
public static X500Principal getIssuerX500Principal(X509Certificate cert) { try { return getX500Principal(cert, true); } catch (Exception e) { throw new RuntimeException("Could not parse issuer", e); } }
[ "public", "static", "X500Principal", "getIssuerX500Principal", "(", "X509Certificate", "cert", ")", "{", "try", "{", "return", "getX500Principal", "(", "cert", ",", "true", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "RuntimeExcept...
Extract the issuer X500Principal from an X509Certificate. Called from java.security.cert.X509Certificate.getIssuerX500Principal().
[ "Extract", "the", "issuer", "X500Principal", "from", "an", "X509Certificate", ".", "Called", "from", "java", ".", "security", ".", "cert", ".", "X509Certificate", ".", "getIssuerX500Principal", "()", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/X509CertImpl.java#L1901-L1907
hibernate/hibernate-ogm
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java
MongoDBDialect.getCollectionName
private static String getCollectionName(BackendQuery<?> customQuery, MongoDBQueryDescriptor queryDescriptor, EntityKeyMetadata entityKeyMetadata) { """ Returns the name of the MongoDB collection to execute the given query against. Will either be retrieved <ul> <li>from the given query descriptor (in case the que...
java
private static String getCollectionName(BackendQuery<?> customQuery, MongoDBQueryDescriptor queryDescriptor, EntityKeyMetadata entityKeyMetadata) { if ( queryDescriptor.getCollectionName() != null ) { return queryDescriptor.getCollectionName(); } else if ( entityKeyMetadata != null ) { return entityKeyMetad...
[ "private", "static", "String", "getCollectionName", "(", "BackendQuery", "<", "?", ">", "customQuery", ",", "MongoDBQueryDescriptor", "queryDescriptor", ",", "EntityKeyMetadata", "entityKeyMetadata", ")", "{", "if", "(", "queryDescriptor", ".", "getCollectionName", "(",...
Returns the name of the MongoDB collection to execute the given query against. Will either be retrieved <ul> <li>from the given query descriptor (in case the query has been translated from JP-QL or it is a native query using the extended syntax {@code db.<COLLECTION>.<OPERATION>(...)}</li> <li>or from the single mapped...
[ "Returns", "the", "name", "of", "the", "MongoDB", "collection", "to", "execute", "the", "given", "query", "against", ".", "Will", "either", "be", "retrieved", "<ul", ">", "<li", ">", "from", "the", "given", "query", "descriptor", "(", "in", "case", "the", ...
train
https://github.com/hibernate/hibernate-ogm/blob/9ea971df7c27277029006a6f748d8272fb1d69d2/mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java#L1514-L1524
libgdx/box2dlights
src/box2dLight/PositionalLight.java
PositionalLight.attachToBody
public void attachToBody(Body body, float offsetX, float offSetY, float degrees) { """ Attaches light to specified body with relative offset and direction @param body that will be automatically followed, note that the body rotation angle is taken into account for the light offset and direction calculations ...
java
public void attachToBody(Body body, float offsetX, float offSetY, float degrees) { this.body = body; bodyOffsetX = offsetX; bodyOffsetY = offSetY; bodyAngleOffset = degrees; if (staticLight) dirty = true; }
[ "public", "void", "attachToBody", "(", "Body", "body", ",", "float", "offsetX", ",", "float", "offSetY", ",", "float", "degrees", ")", "{", "this", ".", "body", "=", "body", ";", "bodyOffsetX", "=", "offsetX", ";", "bodyOffsetY", "=", "offSetY", ";", "bo...
Attaches light to specified body with relative offset and direction @param body that will be automatically followed, note that the body rotation angle is taken into account for the light offset and direction calculations @param offsetX horizontal relative offset in world coordinates @param offsetY vertical relative of...
[ "Attaches", "light", "to", "specified", "body", "with", "relative", "offset", "and", "direction" ]
train
https://github.com/libgdx/box2dlights/blob/08cf93a41464f71d32475aaa2fe280dc6af78ff3/src/box2dLight/PositionalLight.java#L135-L141
HanSolo/SteelSeries-Swing
src/main/java/eu/hansolo/steelseries/gauges/AbstractRadialBargraph.java
AbstractRadialBargraph.create_BARGRAPH_TRACK_Image
protected BufferedImage create_BARGRAPH_TRACK_Image(final int WIDTH, final double START_ANGLE, final double ANGLE_EXTEND, final double APEX_ANGLE, ...
java
protected BufferedImage create_BARGRAPH_TRACK_Image(final int WIDTH, final double START_ANGLE, final double ANGLE_EXTEND, final double APEX_ANGLE, ...
[ "protected", "BufferedImage", "create_BARGRAPH_TRACK_Image", "(", "final", "int", "WIDTH", ",", "final", "double", "START_ANGLE", ",", "final", "double", "ANGLE_EXTEND", ",", "final", "double", "APEX_ANGLE", ",", "final", "double", "BARGRAPH_OFFSET", ")", "{", "retu...
Returns the bargraph track image with the given with and height. @param WIDTH @param START_ANGLE @param ANGLE_EXTEND @param APEX_ANGLE @param BARGRAPH_OFFSET @return buffered image containing the bargraph track image
[ "Returns", "the", "bargraph", "track", "image", "with", "the", "given", "with", "and", "height", "." ]
train
https://github.com/HanSolo/SteelSeries-Swing/blob/c2f7b45a477757ef21bbb6a1174ddedb2250ae57/src/main/java/eu/hansolo/steelseries/gauges/AbstractRadialBargraph.java#L141-L146
threerings/gwt-utils
src/main/java/com/threerings/gwt/ui/Popups.java
Popups.bindPopped
public static void bindPopped (final Value<Boolean> popped, final Thunk thunk) { """ Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e. if the popup is popped down, the value will be updated to false). The popup is not created until the first time the value is true. """ ...
java
public static void bindPopped (final Value<Boolean> popped, final Thunk thunk) { Preconditions.checkNotNull(thunk, "thunk"); popped.addListenerAndTrigger(new Value.Listener<Boolean>() { public void valueChanged (Boolean visible) { if (visible) { popped...
[ "public", "static", "void", "bindPopped", "(", "final", "Value", "<", "Boolean", ">", "popped", ",", "final", "Thunk", "thunk", ")", "{", "Preconditions", ".", "checkNotNull", "(", "thunk", ",", "\"thunk\"", ")", ";", "popped", ".", "addListenerAndTrigger", ...
Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e. if the popup is popped down, the value will be updated to false). The popup is not created until the first time the value is true.
[ "Binds", "the", "popped", "up", "state", "of", "a", "popup", "to", "the", "supplied", "boolean", "value", "and", "vice", "versa", "(", "i", ".", "e", ".", "if", "the", "popup", "is", "popped", "down", "the", "value", "will", "be", "updated", "to", "f...
train
https://github.com/threerings/gwt-utils/blob/31b31a23b667f2a9c683160d77646db259f2aae5/src/main/java/com/threerings/gwt/ui/Popups.java#L307-L318
pressgang-ccms/PressGangCCMSCommonUtilities
src/main/java/org/jboss/pressgang/ccms/utils/common/VersionUtilities.java
VersionUtilities.getAPIVersion
public static String getAPIVersion(final String resourceFileName, final String versionProperty) { """ Get the Version Number from a properties file in the Application Classpath. @param resourceFileName The name of the properties file. @param versionProperty The name of the version property in the properties f...
java
public static String getAPIVersion(final String resourceFileName, final String versionProperty) { final Properties props = new Properties(); final URL url = ClassLoader.getSystemResource(resourceFileName); if (url != null) { InputStream is = null; try { is...
[ "public", "static", "String", "getAPIVersion", "(", "final", "String", "resourceFileName", ",", "final", "String", "versionProperty", ")", "{", "final", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "final", "URL", "url", "=", "ClassLoader", ...
Get the Version Number from a properties file in the Application Classpath. @param resourceFileName The name of the properties file. @param versionProperty The name of the version property in the properties file. @return The Version number or "unknown" if the version couldn't be found.
[ "Get", "the", "Version", "Number", "from", "a", "properties", "file", "in", "the", "Application", "Classpath", "." ]
train
https://github.com/pressgang-ccms/PressGangCCMSCommonUtilities/blob/5ebf5ed30a94c34c33f4708caa04a8da99cbb15c/src/main/java/org/jboss/pressgang/ccms/utils/common/VersionUtilities.java#L56-L80
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/mmax/MMAXPointer.java
MMAXPointer.setTargetList
public void setTargetList(int i, MMAXAnnotation v) { """ indexed setter for targetList - sets an indexed value - The MMAX annotations the pointer points at. @generated @param i index in the array to set @param v value to set into the array """ if (MMAXPointer_Type.featOkTst && ((MMAXPointer_Type)jcasTy...
java
public void setTargetList(int i, MMAXAnnotation v) { if (MMAXPointer_Type.featOkTst && ((MMAXPointer_Type)jcasType).casFeat_targetList == null) jcasType.jcas.throwFeatMissing("targetList", "de.julielab.jules.types.mmax.MMAXPointer"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((M...
[ "public", "void", "setTargetList", "(", "int", "i", ",", "MMAXAnnotation", "v", ")", "{", "if", "(", "MMAXPointer_Type", ".", "featOkTst", "&&", "(", "(", "MMAXPointer_Type", ")", "jcasType", ")", ".", "casFeat_targetList", "==", "null", ")", "jcasType", "."...
indexed setter for targetList - sets an indexed value - The MMAX annotations the pointer points at. @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "targetList", "-", "sets", "an", "indexed", "value", "-", "The", "MMAX", "annotations", "the", "pointer", "points", "at", "." ]
train
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/mmax/MMAXPointer.java#L139-L143
couchbase/couchbase-java-client
src/main/java/com/couchbase/client/java/document/json/JsonObject.java
JsonObject.fromJson
public static JsonObject fromJson(String s) { """ Static method to create a {@link JsonObject} from a JSON {@link String}. The string is expected to be a valid JSON object representation (eg. starting with a '{'). @param s the JSON String to convert to a {@link JsonObject}. @return the corresponding {@link ...
java
public static JsonObject fromJson(String s) { try { return CouchbaseAsyncBucket.JSON_OBJECT_TRANSCODER.stringToJsonObject(s); } catch (Exception e) { throw new IllegalArgumentException("Cannot convert string to JsonObject", e); } }
[ "public", "static", "JsonObject", "fromJson", "(", "String", "s", ")", "{", "try", "{", "return", "CouchbaseAsyncBucket", ".", "JSON_OBJECT_TRANSCODER", ".", "stringToJsonObject", "(", "s", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "n...
Static method to create a {@link JsonObject} from a JSON {@link String}. The string is expected to be a valid JSON object representation (eg. starting with a '{'). @param s the JSON String to convert to a {@link JsonObject}. @return the corresponding {@link JsonObject}. @throws IllegalArgumentException if the convers...
[ "Static", "method", "to", "create", "a", "{", "@link", "JsonObject", "}", "from", "a", "JSON", "{", "@link", "String", "}", "." ]
train
https://github.com/couchbase/couchbase-java-client/blob/f36a0ee0c66923bdde47838ca543e50cbaa99e14/src/main/java/com/couchbase/client/java/document/json/JsonObject.java#L186-L192
iipc/openwayback
wayback-core/src/main/java/org/archive/wayback/query/resultspartitioner/ResultsPartitionsFactory.java
ResultsPartitionsFactory.get
public static ArrayList<ResultsPartition> get(CaptureSearchResults results, WaybackRequest wbRequest) { """ Determine the correct ResultsPartitioner to use given the SearchResults search range, and use that to break the SearchResults into partitions. @param results @param wbRequest @return ArrayList of Resu...
java
public static ArrayList<ResultsPartition> get(CaptureSearchResults results, WaybackRequest wbRequest) { return get(results, wbRequest, null); }
[ "public", "static", "ArrayList", "<", "ResultsPartition", ">", "get", "(", "CaptureSearchResults", "results", ",", "WaybackRequest", "wbRequest", ")", "{", "return", "get", "(", "results", ",", "wbRequest", ",", "null", ")", ";", "}" ]
Determine the correct ResultsPartitioner to use given the SearchResults search range, and use that to break the SearchResults into partitions. @param results @param wbRequest @return ArrayList of ResultsPartition objects
[ "Determine", "the", "correct", "ResultsPartitioner", "to", "use", "given", "the", "SearchResults", "search", "range", "and", "use", "that", "to", "break", "the", "SearchResults", "into", "partitions", "." ]
train
https://github.com/iipc/openwayback/blob/da74c3a59a5b5a5c365bd4702dcb45d263535794/wayback-core/src/main/java/org/archive/wayback/query/resultspartitioner/ResultsPartitionsFactory.java#L54-L57
netscaler/sdx_nitro
src/main/java/com/citrix/sdx/nitro/resource/base/base_resource.java
base_resource.perform_operation
public base_resource[] perform_operation(nitro_service service) throws Exception { """ Use this method to perform a any post operation ...etc operation on MPS resource. @param service nitro_service object. @return status of the operation performed. @throws Exception API exception is thrown. """ if (!se...
java
public base_resource[] perform_operation(nitro_service service) throws Exception { if (!service.isLogin() && !get_object_type().equals("login")) service.login(); return post_request(service, null); }
[ "public", "base_resource", "[", "]", "perform_operation", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "if", "(", "!", "service", ".", "isLogin", "(", ")", "&&", "!", "get_object_type", "(", ")", ".", "equals", "(", "\"login\"", ")", "...
Use this method to perform a any post operation ...etc operation on MPS resource. @param service nitro_service object. @return status of the operation performed. @throws Exception API exception is thrown.
[ "Use", "this", "method", "to", "perform", "a", "any", "post", "operation", "...", "etc", "operation", "on", "MPS", "resource", "." ]
train
https://github.com/netscaler/sdx_nitro/blob/c840919f1a8f7c0a5634c0f23d34fa14d1765ff1/src/main/java/com/citrix/sdx/nitro/resource/base/base_resource.java#L164-L169
Azure/azure-sdk-for-java
resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java
DeploymentsInner.beginCreateOrUpdateAsync
public Observable<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentProperties properties) { """ Deploys resources to a resource group. You can provide the template and parameters directly in the request or link to JSON files. @param resourceGroupName ...
java
public Observable<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentProperties properties) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, properties).map(new Func1<ServiceResponse<DeploymentExtendedInner>, Deploy...
[ "public", "Observable", "<", "DeploymentExtendedInner", ">", "beginCreateOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "deploymentName", ",", "DeploymentProperties", "properties", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", "(", "re...
Deploys resources to a resource group. You can provide the template and parameters directly in the request or link to JSON files. @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. @param deploymentName The name of th...
[ "Deploys", "resources", "to", "a", "resource", "group", ".", "You", "can", "provide", "the", "template", "and", "parameters", "directly", "in", "the", "request", "or", "link", "to", "JSON", "files", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java#L488-L495
cdk/cdk
base/valencycheck/src/main/java/org/openscience/cdk/tools/AtomTypeAwareSaturationChecker.java
AtomTypeAwareSaturationChecker.setMaxBondOrder
private void setMaxBondOrder(IBond bond, IAtomContainer atomContainer) throws CDKException { """ This method decides the highest bond order that the bond can have and set it to that. @param bond The bond to be investigated @param atomContainer The {@link IAtomContainer} that contains the bond @throws CDKEXce...
java
private void setMaxBondOrder(IBond bond, IAtomContainer atomContainer) throws CDKException { if (bondOrderCanBeIncreased(bond, atomContainer)) { if (bond.getOrder() != IBond.Order.QUADRUPLE) bond.setOrder(BondManipulator.increaseBondOrder(bond.getOrder())); else ...
[ "private", "void", "setMaxBondOrder", "(", "IBond", "bond", ",", "IAtomContainer", "atomContainer", ")", "throws", "CDKException", "{", "if", "(", "bondOrderCanBeIncreased", "(", "bond", ",", "atomContainer", ")", ")", "{", "if", "(", "bond", ".", "getOrder", ...
This method decides the highest bond order that the bond can have and set it to that. @param bond The bond to be investigated @param atomContainer The {@link IAtomContainer} that contains the bond @throws CDKEXception when the bond cannot be further increased
[ "This", "method", "decides", "the", "highest", "bond", "order", "that", "the", "bond", "can", "have", "and", "set", "it", "to", "that", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/base/valencycheck/src/main/java/org/openscience/cdk/tools/AtomTypeAwareSaturationChecker.java#L187-L194
qatools/properties
src/main/java/ru/qatools/properties/converters/ConverterManager.java
ConverterManager.convertNullValue
protected Object convertNullValue(Class type) throws ConversionException { """ Convert null to given type. @throws ConversionException if any occurs. """ try { return type.isPrimitive() ? Array.get(Array.newInstance(type, 1), 0) : null; } catch (Exception e) { throw n...
java
protected Object convertNullValue(Class type) throws ConversionException { try { return type.isPrimitive() ? Array.get(Array.newInstance(type, 1), 0) : null; } catch (Exception e) { throw new ConversionException(String.format("Could not convert null to primitive type <%s>", type)...
[ "protected", "Object", "convertNullValue", "(", "Class", "type", ")", "throws", "ConversionException", "{", "try", "{", "return", "type", ".", "isPrimitive", "(", ")", "?", "Array", ".", "get", "(", "Array", ".", "newInstance", "(", "type", ",", "1", ")", ...
Convert null to given type. @throws ConversionException if any occurs.
[ "Convert", "null", "to", "given", "type", "." ]
train
https://github.com/qatools/properties/blob/ae50b460a6bb4fcb21afe888b2e86a7613cd2115/src/main/java/ru/qatools/properties/converters/ConverterManager.java#L139-L145
grails/grails-core
grails-core/src/main/groovy/grails/util/GrailsClassUtils.java
GrailsClassUtils.isClassBelowPackage
public static boolean isClassBelowPackage(Class<?> theClass, List<?> packageList) { """ Returns whether the specified class is either within one of the specified packages or within a subpackage of one of the packages @param theClass The class @param packageList The list of packages @return true if it is with...
java
public static boolean isClassBelowPackage(Class<?> theClass, List<?> packageList) { String classPackage = theClass.getPackage().getName(); for (Object packageName : packageList) { if (packageName != null) { if (classPackage.startsWith(packageName.toString())) { ...
[ "public", "static", "boolean", "isClassBelowPackage", "(", "Class", "<", "?", ">", "theClass", ",", "List", "<", "?", ">", "packageList", ")", "{", "String", "classPackage", "=", "theClass", ".", "getPackage", "(", ")", ".", "getName", "(", ")", ";", "fo...
Returns whether the specified class is either within one of the specified packages or within a subpackage of one of the packages @param theClass The class @param packageList The list of packages @return true if it is within the list of specified packages
[ "Returns", "whether", "the", "specified", "class", "is", "either", "within", "one", "of", "the", "specified", "packages", "or", "within", "a", "subpackage", "of", "one", "of", "the", "packages" ]
train
https://github.com/grails/grails-core/blob/c0b08aa995b0297143b75d05642abba8cb7b4122/grails-core/src/main/groovy/grails/util/GrailsClassUtils.java#L952-L962
Stratio/stratio-cassandra
src/java/org/apache/cassandra/db/context/CounterContext.java
CounterContext.getClockAndCountOf
@VisibleForTesting public ClockAndCount getClockAndCountOf(ByteBuffer context, CounterId id) { """ Returns the clock and the count associated with the given counter id, or (0, 0) if no such shard is present. """ int position = findPositionOf(context, id); if (position == -1) ret...
java
@VisibleForTesting public ClockAndCount getClockAndCountOf(ByteBuffer context, CounterId id) { int position = findPositionOf(context, id); if (position == -1) return ClockAndCount.BLANK; long clock = context.getLong(position + CounterId.LENGTH); long count = context....
[ "@", "VisibleForTesting", "public", "ClockAndCount", "getClockAndCountOf", "(", "ByteBuffer", "context", ",", "CounterId", "id", ")", "{", "int", "position", "=", "findPositionOf", "(", "context", ",", "id", ")", ";", "if", "(", "position", "==", "-", "1", "...
Returns the clock and the count associated with the given counter id, or (0, 0) if no such shard is present.
[ "Returns", "the", "clock", "and", "the", "count", "associated", "with", "the", "given", "counter", "id", "or", "(", "0", "0", ")", "if", "no", "such", "shard", "is", "present", "." ]
train
https://github.com/Stratio/stratio-cassandra/blob/f6416b43ad5309083349ad56266450fa8c6a2106/src/java/org/apache/cassandra/db/context/CounterContext.java#L674-L684
optimatika/ojAlgo-finance
src/main/java/org/ojalgo/finance/FinanceUtils.java
FinanceUtils.toAnnualReturnFromGrowthRate
public static double toAnnualReturnFromGrowthRate(double growthRate, CalendarDateUnit growthRateUnit) { """ AnnualReturn = exp(GrowthRate * GrowthRateUnitsPerYear) - 1.0 @param growthRate A growth rate per unit (day, week, month, year...) @param growthRateUnit A growth rate unit @return Annualised return (per...
java
public static double toAnnualReturnFromGrowthRate(double growthRate, CalendarDateUnit growthRateUnit) { double tmpGrowthRateUnitsPerYear = growthRateUnit.convert(CalendarDateUnit.YEAR); return PrimitiveMath.EXPM1.invoke(growthRate * tmpGrowthRateUnitsPerYear); }
[ "public", "static", "double", "toAnnualReturnFromGrowthRate", "(", "double", "growthRate", ",", "CalendarDateUnit", "growthRateUnit", ")", "{", "double", "tmpGrowthRateUnitsPerYear", "=", "growthRateUnit", ".", "convert", "(", "CalendarDateUnit", ".", "YEAR", ")", ";", ...
AnnualReturn = exp(GrowthRate * GrowthRateUnitsPerYear) - 1.0 @param growthRate A growth rate per unit (day, week, month, year...) @param growthRateUnit A growth rate unit @return Annualised return (percentage per year)
[ "AnnualReturn", "=", "exp", "(", "GrowthRate", "*", "GrowthRateUnitsPerYear", ")", "-", "1", ".", "0" ]
train
https://github.com/optimatika/ojAlgo-finance/blob/c8d3f7e1894d4263b7334bca3f4c060e466f8b15/src/main/java/org/ojalgo/finance/FinanceUtils.java#L341-L344
mnlipp/jgrapes
org.jgrapes.io/src/org/jgrapes/io/FileStorage.java
FileStorage.onClose
@Handler public void onClose(Close event, Channel channel) throws InterruptedException { """ Handle close by closing the file associated with the channel. @param event the event @param channel the channel @throws InterruptedException the interrupted exception """ Writer writer = in...
java
@Handler public void onClose(Close event, Channel channel) throws InterruptedException { Writer writer = inputWriters.get(channel); if (writer != null) { writer.close(event); } writer = outputWriters.get(channel); if (writer != null) { writ...
[ "@", "Handler", "public", "void", "onClose", "(", "Close", "event", ",", "Channel", "channel", ")", "throws", "InterruptedException", "{", "Writer", "writer", "=", "inputWriters", ".", "get", "(", "channel", ")", ";", "if", "(", "writer", "!=", "null", ")"...
Handle close by closing the file associated with the channel. @param event the event @param channel the channel @throws InterruptedException the interrupted exception
[ "Handle", "close", "by", "closing", "the", "file", "associated", "with", "the", "channel", "." ]
train
https://github.com/mnlipp/jgrapes/blob/8b5d874935d84c34a52d3e3d3745e869b5203fa0/org.jgrapes.io/src/org/jgrapes/io/FileStorage.java#L383-L394
looly/hutool
hutool-crypto/src/main/java/cn/hutool/crypto/KeyUtil.java
KeyUtil.readCertificate
public static Certificate readCertificate(String type, InputStream in) { """ 读取Certification文件<br> Certification为证书文件<br> see: http://snowolf.iteye.com/blog/391931 @param type 类型,例如X.509 @param in {@link InputStream} 如果想从文件读取.cer文件,使用 {@link FileUtil#getInputStream(java.io.File)} 读取 @return {@link Certifica...
java
public static Certificate readCertificate(String type, InputStream in) { try { return getCertificateFactory(type).generateCertificate(in); } catch (CertificateException e) { throw new CryptoException(e); } }
[ "public", "static", "Certificate", "readCertificate", "(", "String", "type", ",", "InputStream", "in", ")", "{", "try", "{", "return", "getCertificateFactory", "(", "type", ")", ".", "generateCertificate", "(", "in", ")", ";", "}", "catch", "(", "CertificateEx...
读取Certification文件<br> Certification为证书文件<br> see: http://snowolf.iteye.com/blog/391931 @param type 类型,例如X.509 @param in {@link InputStream} 如果想从文件读取.cer文件,使用 {@link FileUtil#getInputStream(java.io.File)} 读取 @return {@link Certificate}
[ "读取Certification文件<br", ">", "Certification为证书文件<br", ">", "see", ":", "http", ":", "//", "snowolf", ".", "iteye", ".", "com", "/", "blog", "/", "391931" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-crypto/src/main/java/cn/hutool/crypto/KeyUtil.java#L693-L699
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.updateSecretAsync
public Observable<SecretBundle> updateSecretAsync(String vaultBaseUrl, String secretName, String secretVersion, String contentType, SecretAttributes secretAttributes, Map<String, String> tags) { """ Updates the attributes associated with a specified secret in a given key vault. The UPDATE operation changes specif...
java
public Observable<SecretBundle> updateSecretAsync(String vaultBaseUrl, String secretName, String secretVersion, String contentType, SecretAttributes secretAttributes, Map<String, String> tags) { return updateSecretWithServiceResponseAsync(vaultBaseUrl, secretName, secretVersion, contentType, secretAttributes, t...
[ "public", "Observable", "<", "SecretBundle", ">", "updateSecretAsync", "(", "String", "vaultBaseUrl", ",", "String", "secretName", ",", "String", "secretVersion", ",", "String", "contentType", ",", "SecretAttributes", "secretAttributes", ",", "Map", "<", "String", "...
Updates the attributes associated with a specified secret in a given key vault. The UPDATE operation changes specified attributes of an existing stored secret. Attributes that are not specified in the request are left unchanged. The value of a secret itself cannot be changed. This operation requires the secrets/set per...
[ "Updates", "the", "attributes", "associated", "with", "a", "specified", "secret", "in", "a", "given", "key", "vault", ".", "The", "UPDATE", "operation", "changes", "specified", "attributes", "of", "an", "existing", "stored", "secret", ".", "Attributes", "that", ...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java#L3753-L3760
seam/faces
impl/src/main/java/org/jboss/seam/faces/security/SecurityPhaseListener.java
SecurityPhaseListener.redirectToAccessDeniedView
private void redirectToAccessDeniedView(FacesContext context, UIViewRoot viewRoot) { """ Perform the navigation to the @AccessDeniedView. If not @AccessDeniedView is defined, return a 401 response @param context @param viewRoot """ // If a user has already done a redirect and rendered the response...
java
private void redirectToAccessDeniedView(FacesContext context, UIViewRoot viewRoot) { // If a user has already done a redirect and rendered the response (possibly in an observer) we cannot do this output final PhaseId currentPhase = context.getCurrentPhaseId(); if (!context.getResponseComplete() ...
[ "private", "void", "redirectToAccessDeniedView", "(", "FacesContext", "context", ",", "UIViewRoot", "viewRoot", ")", "{", "// If a user has already done a redirect and rendered the response (possibly in an observer) we cannot do this output", "final", "PhaseId", "currentPhase", "=", ...
Perform the navigation to the @AccessDeniedView. If not @AccessDeniedView is defined, return a 401 response @param context @param viewRoot
[ "Perform", "the", "navigation", "to", "the", "@AccessDeniedView", ".", "If", "not", "@AccessDeniedView", "is", "defined", "return", "a", "401", "response" ]
train
https://github.com/seam/faces/blob/2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3/impl/src/main/java/org/jboss/seam/faces/security/SecurityPhaseListener.java#L330-L347
Netflix/conductor
grpc-client/src/main/java/com/netflix/conductor/client/grpc/TaskClient.java
TaskClient.getPendingTaskForWorkflow
public Task getPendingTaskForWorkflow(String workflowId, String taskReferenceName) { """ Retrieve pending task identified by reference name for a workflow @param workflowId Workflow instance id @param taskReferenceName reference name of the task @return Returns the pending workflow task identified by t...
java
public Task getPendingTaskForWorkflow(String workflowId, String taskReferenceName) { Preconditions.checkArgument(StringUtils.isNotBlank(workflowId), "Workflow id cannot be blank"); Preconditions.checkArgument(StringUtils.isNotBlank(taskReferenceName), "Task reference name cannot be blank"); Tas...
[ "public", "Task", "getPendingTaskForWorkflow", "(", "String", "workflowId", ",", "String", "taskReferenceName", ")", "{", "Preconditions", ".", "checkArgument", "(", "StringUtils", ".", "isNotBlank", "(", "workflowId", ")", ",", "\"Workflow id cannot be blank\"", ")", ...
Retrieve pending task identified by reference name for a workflow @param workflowId Workflow instance id @param taskReferenceName reference name of the task @return Returns the pending workflow task identified by the reference name
[ "Retrieve", "pending", "task", "identified", "by", "reference", "name", "for", "a", "workflow" ]
train
https://github.com/Netflix/conductor/blob/78fae0ed9ddea22891f9eebb96a2ec0b2783dca0/grpc-client/src/main/java/com/netflix/conductor/client/grpc/TaskClient.java#L124-L135
netty/netty
codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java
HpackEncoder.getEntry
private HeaderEntry getEntry(CharSequence name, CharSequence value) { """ Returns the header entry with the lowest index value for the header field. Returns null if header field is not in the dynamic table. """ if (length() == 0 || name == null || value == null) { return null; } ...
java
private HeaderEntry getEntry(CharSequence name, CharSequence value) { if (length() == 0 || name == null || value == null) { return null; } int h = AsciiString.hashCode(name); int i = index(h); for (HeaderEntry e = headerFields[i]; e != null; e = e.next) { ...
[ "private", "HeaderEntry", "getEntry", "(", "CharSequence", "name", ",", "CharSequence", "value", ")", "{", "if", "(", "length", "(", ")", "==", "0", "||", "name", "==", "null", "||", "value", "==", "null", ")", "{", "return", "null", ";", "}", "int", ...
Returns the header entry with the lowest index value for the header field. Returns null if header field is not in the dynamic table.
[ "Returns", "the", "header", "entry", "with", "the", "lowest", "index", "value", "for", "the", "header", "field", ".", "Returns", "null", "if", "header", "field", "is", "not", "in", "the", "dynamic", "table", "." ]
train
https://github.com/netty/netty/blob/ba06eafa1c1824bd154f1a380019e7ea2edf3c4c/codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java#L350-L363
groupon/odo
proxylib/src/main/java/com/groupon/odo/proxylib/PathOverrideService.java
PathOverrideService.updateGroupName
public void updateGroupName(String newGroupName, int id) { """ updates the groupname in the table given the id @param newGroupName new group name @param id ID of group """ PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statemen...
java
public void updateGroupName(String newGroupName, int id) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_GROUPS + " SET " + Cons...
[ "public", "void", "updateGroupName", "(", "String", "newGroupName", ",", "int", "id", ")", "{", "PreparedStatement", "statement", "=", "null", ";", "try", "(", "Connection", "sqlConnection", "=", "sqlService", ".", "getConnection", "(", ")", ")", "{", "stateme...
updates the groupname in the table given the id @param newGroupName new group name @param id ID of group
[ "updates", "the", "groupname", "in", "the", "table", "given", "the", "id" ]
train
https://github.com/groupon/odo/blob/3bae43d5eca8ace036775e5b2d3ed9af1a9ff9b1/proxylib/src/main/java/com/groupon/odo/proxylib/PathOverrideService.java#L444-L466
VoltDB/voltdb
src/frontend/org/voltdb/expressions/ExpressionUtil.java
ExpressionUtil.reduce
public static boolean reduce(AbstractExpression expr, Predicate<AbstractExpression> pred) { """ Check if any node of given expression tree satisfies given predicate @param expr source expression tree @param pred predicate to check against any expression node to find if any node satisfies. Note that it should be...
java
public static boolean reduce(AbstractExpression expr, Predicate<AbstractExpression> pred) { final boolean current = pred.test(expr); if (current) { return true; } else if (expr == null) { return pred.test(null); } else { return pred.test(expr.getLeft()...
[ "public", "static", "boolean", "reduce", "(", "AbstractExpression", "expr", ",", "Predicate", "<", "AbstractExpression", ">", "pred", ")", "{", "final", "boolean", "current", "=", "pred", ".", "test", "(", "expr", ")", ";", "if", "(", "current", ")", "{", ...
Check if any node of given expression tree satisfies given predicate @param expr source expression tree @param pred predicate to check against any expression node to find if any node satisfies. Note that it should be able to handle null. @return true if there exists a node that satisfies the predicate
[ "Check", "if", "any", "node", "of", "given", "expression", "tree", "satisfies", "given", "predicate" ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/expressions/ExpressionUtil.java#L311-L322
samskivert/pythagoras
src/main/java/pythagoras/f/Quaternion.java
Quaternion.fromAngleAxis
public Quaternion fromAngleAxis (float angle, IVector3 axis) { """ Sets this quaternion to the rotation described by the given angle and normalized axis. @return a reference to this quaternion, for chaining. """ return fromAngleAxis(angle, axis.x(), axis.y(), axis.z()); }
java
public Quaternion fromAngleAxis (float angle, IVector3 axis) { return fromAngleAxis(angle, axis.x(), axis.y(), axis.z()); }
[ "public", "Quaternion", "fromAngleAxis", "(", "float", "angle", ",", "IVector3", "axis", ")", "{", "return", "fromAngleAxis", "(", "angle", ",", "axis", ".", "x", "(", ")", ",", "axis", ".", "y", "(", ")", ",", "axis", ".", "z", "(", ")", ")", ";",...
Sets this quaternion to the rotation described by the given angle and normalized axis. @return a reference to this quaternion, for chaining.
[ "Sets", "this", "quaternion", "to", "the", "rotation", "described", "by", "the", "given", "angle", "and", "normalized", "axis", "." ]
train
https://github.com/samskivert/pythagoras/blob/b8fea743ee8a7d742ad9c06ee4f11f50571fbd32/src/main/java/pythagoras/f/Quaternion.java#L155-L157
jmrozanec/cron-utils
src/main/java/com/cronutils/descriptor/CronDescriptor.java
CronDescriptor.describeDayOfWeek
public String describeDayOfWeek(final Map<CronFieldName, CronField> fields, final Map<CronFieldName, FieldDefinition> definitions) { """ Provide description for day of week. @param fields - fields to describe; @return description - String """ final String description = DescriptionStrategyFactory.d...
java
public String describeDayOfWeek(final Map<CronFieldName, CronField> fields, final Map<CronFieldName, FieldDefinition> definitions) { final String description = DescriptionStrategyFactory.daysOfWeekInstance( resourceBundle, fields.containsKey(CronFieldName.DAY_OF_WEEK) ? fields.g...
[ "public", "String", "describeDayOfWeek", "(", "final", "Map", "<", "CronFieldName", ",", "CronField", ">", "fields", ",", "final", "Map", "<", "CronFieldName", ",", "FieldDefinition", ">", "definitions", ")", "{", "final", "String", "description", "=", "Descript...
Provide description for day of week. @param fields - fields to describe; @return description - String
[ "Provide", "description", "for", "day", "of", "week", "." ]
train
https://github.com/jmrozanec/cron-utils/blob/adac5ec8fd9160b082f9762a6eedea0715731170/src/main/java/com/cronutils/descriptor/CronDescriptor.java#L129-L137
XiaoMi/galaxy-fds-sdk-java
src/main/java/com/xiaomi/infra/galaxy/fds/client/GalaxyFDSClient.java
GalaxyFDSClient.getObject
@Override public FDSObject getObject(String bucketName, String objectName, long pos) throws GalaxyFDSClientException { """ range mode for getobject while not be autoReConnection @param bucketName The name of the bucket where the object stores @param objectName The name of the object to get @param pos ...
java
@Override public FDSObject getObject(String bucketName, String objectName, long pos) throws GalaxyFDSClientException { return this.getObject(bucketName, objectName, null, pos); }
[ "@", "Override", "public", "FDSObject", "getObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "long", "pos", ")", "throws", "GalaxyFDSClientException", "{", "return", "this", ".", "getObject", "(", "bucketName", ",", "objectName", ",", "nul...
range mode for getobject while not be autoReConnection @param bucketName The name of the bucket where the object stores @param objectName The name of the object to get @param pos The position to start read @return @throws GalaxyFDSClientException
[ "range", "mode", "for", "getobject", "while", "not", "be", "autoReConnection" ]
train
https://github.com/XiaoMi/galaxy-fds-sdk-java/blob/5e93bc2b574dfa51e47451a0efa80c018ff2c48f/src/main/java/com/xiaomi/infra/galaxy/fds/client/GalaxyFDSClient.java#L1177-L1181
oehf/ipf-oht-atna
auditor/src/main/java/org/openhealthtools/ihe/atna/auditor/events/ihe/PatientRecordEvent.java
PatientRecordEvent.addPatientParticipantObject
public void addPatientParticipantObject(String patientId, byte[] messageId, IHETransactionEventTypeCodes transaction) { """ Adds a Participant Object Identification block that representing a patient involved in the event @param patientId Identifier of the patient involved @param messageId The message control ...
java
public void addPatientParticipantObject(String patientId, byte[] messageId, IHETransactionEventTypeCodes transaction) { List<TypeValuePairType> tvp = new LinkedList<>(); if (messageId != null) { if (transaction.getCode().equalsIgnoreCase("ITI-44")) { // v3 message tvp.add(getTypeValuePair("II", messageI...
[ "public", "void", "addPatientParticipantObject", "(", "String", "patientId", ",", "byte", "[", "]", "messageId", ",", "IHETransactionEventTypeCodes", "transaction", ")", "{", "List", "<", "TypeValuePairType", ">", "tvp", "=", "new", "LinkedList", "<>", "(", ")", ...
Adds a Participant Object Identification block that representing a patient involved in the event @param patientId Identifier of the patient involved @param messageId The message control id for this event @param transaction The transaction event
[ "Adds", "a", "Participant", "Object", "Identification", "block", "that", "representing", "a", "patient", "involved", "in", "the", "event" ]
train
https://github.com/oehf/ipf-oht-atna/blob/25ed1e926825169c94923a2c89a4618f60478ae8/auditor/src/main/java/org/openhealthtools/ihe/atna/auditor/events/ihe/PatientRecordEvent.java#L67-L90
jamesdbloom/mockserver
mockserver-core/src/main/java/org/mockserver/model/HttpResponse.java
HttpResponse.withCookie
public HttpResponse withCookie(String name, String value) { """ Add cookie to return as Set-Cookie header @param name the cookies name @param value the cookies value """ this.cookies.withEntry(name, value); return this; }
java
public HttpResponse withCookie(String name, String value) { this.cookies.withEntry(name, value); return this; }
[ "public", "HttpResponse", "withCookie", "(", "String", "name", ",", "String", "value", ")", "{", "this", ".", "cookies", ".", "withEntry", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
Add cookie to return as Set-Cookie header @param name the cookies name @param value the cookies value
[ "Add", "cookie", "to", "return", "as", "Set", "-", "Cookie", "header" ]
train
https://github.com/jamesdbloom/mockserver/blob/8b84fdd877e57b4eb780c9f8c8b1d65bcb448025/mockserver-core/src/main/java/org/mockserver/model/HttpResponse.java#L351-L354
alkacon/opencms-core
src/org/opencms/file/CmsObject.java
CmsObject.adjustLinks
public void adjustLinks(String sourceFolder, String targetFolder) throws CmsException { """ Adjusts all links in the target folder that point to the source folder so that they are kept "relative" in the target folder where possible. If a link is found from the target folder to the source folder, then the targ...
java
public void adjustLinks(String sourceFolder, String targetFolder) throws CmsException { String rootSourceFolder = addSiteRoot(sourceFolder); String rootTargetFolder = addSiteRoot(targetFolder); String siteRoot = getRequestContext().getSiteRoot(); getRequestContext().setSiteRoot(""); ...
[ "public", "void", "adjustLinks", "(", "String", "sourceFolder", ",", "String", "targetFolder", ")", "throws", "CmsException", "{", "String", "rootSourceFolder", "=", "addSiteRoot", "(", "sourceFolder", ")", ";", "String", "rootTargetFolder", "=", "addSiteRoot", "(",...
Adjusts all links in the target folder that point to the source folder so that they are kept "relative" in the target folder where possible. If a link is found from the target folder to the source folder, then the target folder is checked if a target of the same name is found also "relative" inside the target Folder, ...
[ "Adjusts", "all", "links", "in", "the", "target", "folder", "that", "point", "to", "the", "source", "folder", "so", "that", "they", "are", "kept", "relative", "in", "the", "target", "folder", "where", "possible", "." ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/file/CmsObject.java#L253-L265
Azure/azure-sdk-for-java
cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java
ModelsImpl.getCustomEntityRole
public EntityRole getCustomEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId) { """ Get one entity role for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity ID. @param roleId entity role ID. @throws IllegalArgumentException thrown if ...
java
public EntityRole getCustomEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId) { return getCustomEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId).toBlocking().single().body(); }
[ "public", "EntityRole", "getCustomEntityRole", "(", "UUID", "appId", ",", "String", "versionId", ",", "UUID", "entityId", ",", "UUID", "roleId", ")", "{", "return", "getCustomEntityRoleWithServiceResponseAsync", "(", "appId", ",", "versionId", ",", "entityId", ",", ...
Get one entity role for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity ID. @param roleId entity role ID. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws...
[ "Get", "one", "entity", "role", "for", "a", "given", "entity", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java#L13563-L13565
lessthanoptimal/BoofCV
main/boofcv-feature/src/main/java/boofcv/alg/feature/detect/line/HoughTransformLineFootOfNorm.java
HoughTransformLineFootOfNorm.parameterize
public void parameterize( int x , int y , float derivX , float derivY ) { """ Takes the detected point along the line and its gradient and converts it into transform space. @param x point in image. @param y point in image. @param derivX gradient of point. @param derivY gradient of point. """ // put the p...
java
public void parameterize( int x , int y , float derivX , float derivY ) { // put the point in a new coordinate system centered at the image's origin // this minimizes error, which is a function of distance from origin x -= originX; y -= originY; float v = (x*derivX + y*derivY)/(derivX*derivX + derivY*derivY...
[ "public", "void", "parameterize", "(", "int", "x", ",", "int", "y", ",", "float", "derivX", ",", "float", "derivY", ")", "{", "// put the point in a new coordinate system centered at the image's origin", "// this minimizes error, which is a function of distance from origin", "x...
Takes the detected point along the line and its gradient and converts it into transform space. @param x point in image. @param y point in image. @param derivX gradient of point. @param derivY gradient of point.
[ "Takes", "the", "detected", "point", "along", "the", "line", "and", "its", "gradient", "and", "converts", "it", "into", "transform", "space", "." ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-feature/src/main/java/boofcv/alg/feature/detect/line/HoughTransformLineFootOfNorm.java#L150-L170
Azure/azure-sdk-for-java
iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java
IotHubResourcesInner.beginDeleteAsync
public Observable<Object> beginDeleteAsync(String resourceGroupName, String resourceName) { """ Delete an IoT hub. Delete an IoT hub. @param resourceGroupName The name of the resource group that contains the IoT hub. @param resourceName The name of the IoT hub. @throws IllegalArgumentException thrown if para...
java
public Observable<Object> beginDeleteAsync(String resourceGroupName, String resourceName) { return beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<Object>, Object>() { @Override public Object call(ServiceResponse<Object> response) { ...
[ "public", "Observable", "<", "Object", ">", "beginDeleteAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".", "map", "(", "new", ...
Delete an IoT hub. Delete an IoT hub. @param resourceGroupName The name of the resource group that contains the IoT hub. @param resourceName The name of the IoT hub. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the Object object
[ "Delete", "an", "IoT", "hub", ".", "Delete", "an", "IoT", "hub", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java#L1116-L1123
Baidu-AIP/java-sdk
src/main/java/com/baidu/aip/imageclassify/AipImageClassify.java
AipImageClassify.animalDetect
public JSONObject animalDetect(byte[] image, HashMap<String, String> options) { """ 动物识别接口 该请求用于识别一张图片。即对于输入的一张图片(可正常解码,且长宽比适宜),输出动物识别结果 @param image - 二进制图像数据 @param options - 可选参数对象,key: value都为string类型 options - options列表: top_num 返回预测得分top结果数,默认为6 baike_num 返回百科信息的结果数,默认不返回 @return JSONObject """ ...
java
public JSONObject animalDetect(byte[] image, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); String base64Content = Base64Util.encode(image); request.addBody("image", base64Content); if (options != null) { requ...
[ "public", "JSONObject", "animalDetect", "(", "byte", "[", "]", "image", ",", "HashMap", "<", "String", ",", "String", ">", "options", ")", "{", "AipRequest", "request", "=", "new", "AipRequest", "(", ")", ";", "preOperation", "(", "request", ")", ";", "S...
动物识别接口 该请求用于识别一张图片。即对于输入的一张图片(可正常解码,且长宽比适宜),输出动物识别结果 @param image - 二进制图像数据 @param options - 可选参数对象,key: value都为string类型 options - options列表: top_num 返回预测得分top结果数,默认为6 baike_num 返回百科信息的结果数,默认不返回 @return JSONObject
[ "动物识别接口", "该请求用于识别一张图片。即对于输入的一张图片(可正常解码,且长宽比适宜),输出动物识别结果" ]
train
https://github.com/Baidu-AIP/java-sdk/blob/16bb8b7bb8f9bbcb7c8af62d0a67a1e79eecad90/src/main/java/com/baidu/aip/imageclassify/AipImageClassify.java#L335-L347
JOML-CI/JOML
src/org/joml/Matrix4d.java
Matrix4d.translationRotate
public Matrix4d translationRotate(double tx, double ty, double tz, double qx, double qy, double qz, double qw) { """ Set <code>this</code> matrix to <code>T * R</code>, where <code>T</code> is a translation by the given <code>(tx, ty, tz)</code> and <code>R</code> is a rotation - and possibly scaling - transforma...
java
public Matrix4d translationRotate(double tx, double ty, double tz, double qx, double qy, double qz, double qw) { double w2 = qw * qw; double x2 = qx * qx; double y2 = qy * qy; double z2 = qz * qz; double zw = qz * qw; double xy = qx * qy; double xz = qx * qz; ...
[ "public", "Matrix4d", "translationRotate", "(", "double", "tx", ",", "double", "ty", ",", "double", "tz", ",", "double", "qx", ",", "double", "qy", ",", "double", "qz", ",", "double", "qw", ")", "{", "double", "w2", "=", "qw", "*", "qw", ";", "double...
Set <code>this</code> matrix to <code>T * R</code>, where <code>T</code> is a translation by the given <code>(tx, ty, tz)</code> and <code>R</code> is a rotation - and possibly scaling - transformation specified by the quaternion <code>(qx, qy, qz, qw)</code>. <p> When transforming a vector by the resulting matrix the ...
[ "Set", "<code", ">", "this<", "/", "code", ">", "matrix", "to", "<code", ">", "T", "*", "R<", "/", "code", ">", "where", "<code", ">", "T<", "/", "code", ">", "is", "a", "translation", "by", "the", "given", "<code", ">", "(", "tx", "ty", "tz", ...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix4d.java#L7494-L7520
jpelzer/pelzer-util
src/main/java/com/pelzer/util/PropertyManager.java
PropertyManager.loadProperties
private void loadProperties(final String filename, final int depth) { """ Loads the given property file, plus any files that are referenced by #include statements """ logger.warning("Loading file '" + filename + "'"); final Properties properties = new Properties(); try { // Load our prop...
java
private void loadProperties(final String filename, final int depth) { logger.warning("Loading file '" + filename + "'"); final Properties properties = new Properties(); try { // Load our properties file. for (final InputStream io : getInputStreamsForFile(filename)) { properties.loa...
[ "private", "void", "loadProperties", "(", "final", "String", "filename", ",", "final", "int", "depth", ")", "{", "logger", ".", "warning", "(", "\"Loading file '\"", "+", "filename", "+", "\"'\"", ")", ";", "final", "Properties", "properties", "=", "new", "P...
Loads the given property file, plus any files that are referenced by #include statements
[ "Loads", "the", "given", "property", "file", "plus", "any", "files", "that", "are", "referenced", "by", "#include", "statements" ]
train
https://github.com/jpelzer/pelzer-util/blob/ec14f2573fd977d1442dba5d1507a264f5ea9aa6/src/main/java/com/pelzer/util/PropertyManager.java#L329-L352
blinkfox/zealot
src/main/java/com/blinkfox/zealot/core/ZealotKhala.java
ZealotKhala.likePattern
public ZealotKhala likePattern(String field, String pattern) { """ 根据指定的模式字符串生成like模糊查询的SQL片段. <p>示例:传入 {"b.title", "Java%"} 两个参数,生成的SQL片段为:" b.title LIKE 'Java%' "</p> @param field 数据库字段 @param pattern 模式字符串 @return ZealotKhala实例 """ return this.doLikePattern(ZealotConst.ONE_SPACE, field, patter...
java
public ZealotKhala likePattern(String field, String pattern) { return this.doLikePattern(ZealotConst.ONE_SPACE, field, pattern, true, true); }
[ "public", "ZealotKhala", "likePattern", "(", "String", "field", ",", "String", "pattern", ")", "{", "return", "this", ".", "doLikePattern", "(", "ZealotConst", ".", "ONE_SPACE", ",", "field", ",", "pattern", ",", "true", ",", "true", ")", ";", "}" ]
根据指定的模式字符串生成like模糊查询的SQL片段. <p>示例:传入 {"b.title", "Java%"} 两个参数,生成的SQL片段为:" b.title LIKE 'Java%' "</p> @param field 数据库字段 @param pattern 模式字符串 @return ZealotKhala实例
[ "根据指定的模式字符串生成like模糊查询的SQL片段", ".", "<p", ">", "示例:传入", "{", "b", ".", "title", "Java%", "}", "两个参数,生成的SQL片段为:", "b", ".", "title", "LIKE", "Java%", "<", "/", "p", ">" ]
train
https://github.com/blinkfox/zealot/blob/21b00fa3e4ed42188eef3116d494e112e7a4194c/src/main/java/com/blinkfox/zealot/core/ZealotKhala.java#L1040-L1042
alkacon/opencms-core
src/org/opencms/jsp/Messages.java
Messages.getLocalizedMessage
public static String getLocalizedMessage(CmsMessageContainer container, CmsObject cms) { """ Returns the String for the given CmsMessageContainer localized to the current user's locale if available or to the default locale else. <p> This method is needed for localization of non- {@link org.opencms.main.CmsExc...
java
public static String getLocalizedMessage(CmsMessageContainer container, CmsObject cms) { Locale locale; if (cms != null) { CmsRequestContext context = cms.getRequestContext(); locale = (context != null) ? context.getLocale() : Locale.getDefault(); } else { lo...
[ "public", "static", "String", "getLocalizedMessage", "(", "CmsMessageContainer", "container", ",", "CmsObject", "cms", ")", "{", "Locale", "locale", ";", "if", "(", "cms", "!=", "null", ")", "{", "CmsRequestContext", "context", "=", "cms", ".", "getRequestContex...
Returns the String for the given CmsMessageContainer localized to the current user's locale if available or to the default locale else. <p> This method is needed for localization of non- {@link org.opencms.main.CmsException} instances that have to be thrown here due to API constraints (javax.servlet.jsp). <p> @param ...
[ "Returns", "the", "String", "for", "the", "given", "CmsMessageContainer", "localized", "to", "the", "current", "user", "s", "locale", "if", "available", "or", "to", "the", "default", "locale", "else", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/Messages.java#L286-L296
jeremiehuchet/nominatim-java-api
src/main/java/fr/dudie/nominatim/client/request/QueryParameterAnnotationHandler.java
QueryParameterAnnotationHandler.getValue
private static Object getValue(final Object o, final Field f) { """ Gets a field value regardless of reflection errors. @param o the object instance @param f the field @return the field value or null if a reflection error occurred """ try { f.setAccessible(true); return f...
java
private static Object getValue(final Object o, final Field f) { try { f.setAccessible(true); return f.get(o); } catch (final IllegalArgumentException e) { LOGGER.error("failure accessing field value {}", new Object[] { f.getName(), e }); } catch (final Illegal...
[ "private", "static", "Object", "getValue", "(", "final", "Object", "o", ",", "final", "Field", "f", ")", "{", "try", "{", "f", ".", "setAccessible", "(", "true", ")", ";", "return", "f", ".", "get", "(", "o", ")", ";", "}", "catch", "(", "final", ...
Gets a field value regardless of reflection errors. @param o the object instance @param f the field @return the field value or null if a reflection error occurred
[ "Gets", "a", "field", "value", "regardless", "of", "reflection", "errors", "." ]
train
https://github.com/jeremiehuchet/nominatim-java-api/blob/faf3ff1003a9989eb5cc48f449b3a22c567843bf/src/main/java/fr/dudie/nominatim/client/request/QueryParameterAnnotationHandler.java#L149-L159
voldemort/voldemort
src/java/voldemort/rest/coordinator/DynamicTimeoutStoreClient.java
DynamicTimeoutStoreClient.putWithCustomTimeout
public Version putWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) { """ Performs a put operation with the specified composite request object @param requestWrapper A composite request object containing the key and value @return Version of the value for the successful put """ valid...
java
public Version putWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) { validateTimeout(requestWrapper.getRoutingTimeoutInMs()); List<Versioned<V>> versionedValues; long startTime = System.currentTimeMillis(); String keyHexString = ""; if(logger.isDebugEnabled()) { ...
[ "public", "Version", "putWithCustomTimeout", "(", "CompositeVoldemortRequest", "<", "K", ",", "V", ">", "requestWrapper", ")", "{", "validateTimeout", "(", "requestWrapper", ".", "getRoutingTimeoutInMs", "(", ")", ")", ";", "List", "<", "Versioned", "<", "V", ">...
Performs a put operation with the specified composite request object @param requestWrapper A composite request object containing the key and value @return Version of the value for the successful put
[ "Performs", "a", "put", "operation", "with", "the", "specified", "composite", "request", "object" ]
train
https://github.com/voldemort/voldemort/blob/a7dbdea58032021361680faacf2782cf981c5332/src/java/voldemort/rest/coordinator/DynamicTimeoutStoreClient.java#L144-L187
dita-ot/dita-ot
src/main/java/org/dita/dost/module/filter/AbstractBranchFilterModule.java
AbstractBranchFilterModule.combineFilterUtils
List<FilterUtils> combineFilterUtils(final Element topicref, final List<FilterUtils> filters, final SubjectScheme subjectSchemeMap) { """ Combine referenced DITAVAL to existing list and refine with subject scheme. """ return getChildElement(topicref, DITAVAREF_D...
java
List<FilterUtils> combineFilterUtils(final Element topicref, final List<FilterUtils> filters, final SubjectScheme subjectSchemeMap) { return getChildElement(topicref, DITAVAREF_D_DITAVALREF) .map(ditavalRef -> getFilterUtils(ditavalRef).refine(subjectSche...
[ "List", "<", "FilterUtils", ">", "combineFilterUtils", "(", "final", "Element", "topicref", ",", "final", "List", "<", "FilterUtils", ">", "filters", ",", "final", "SubjectScheme", "subjectSchemeMap", ")", "{", "return", "getChildElement", "(", "topicref", ",", ...
Combine referenced DITAVAL to existing list and refine with subject scheme.
[ "Combine", "referenced", "DITAVAL", "to", "existing", "list", "and", "refine", "with", "subject", "scheme", "." ]
train
https://github.com/dita-ot/dita-ot/blob/ea776b3c60c03d9f033b6f7ea072349e49dbcdd2/src/main/java/org/dita/dost/module/filter/AbstractBranchFilterModule.java#L95-L106
google/closure-compiler
src/com/google/javascript/jscomp/CollapseProperties.java
CollapseProperties.checkForHosedThisReferences
private void checkForHosedThisReferences(Node function, JSDocInfo docInfo, final Name name) { """ Warns about any references to "this" in the given FUNCTION. The function is getting collapsed, so the references will change. """ // A function is getting collapsed. Make sure that if it refers to "this...
java
private void checkForHosedThisReferences(Node function, JSDocInfo docInfo, final Name name) { // A function is getting collapsed. Make sure that if it refers to "this", // it must be a constructor, interface, record, arrow function, or documented with @this. boolean isAllowedToReferenceThis = ...
[ "private", "void", "checkForHosedThisReferences", "(", "Node", "function", ",", "JSDocInfo", "docInfo", ",", "final", "Name", "name", ")", "{", "// A function is getting collapsed. Make sure that if it refers to \"this\",", "// it must be a constructor, interface, record, arrow funct...
Warns about any references to "this" in the given FUNCTION. The function is getting collapsed, so the references will change.
[ "Warns", "about", "any", "references", "to", "this", "in", "the", "given", "FUNCTION", ".", "The", "function", "is", "getting", "collapsed", "so", "the", "references", "will", "change", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/jscomp/CollapseProperties.java#L643-L662
LearnLib/learnlib
datastructures/observation-table/src/main/java/de/learnlib/datastructure/observationtable/AbstractObservationTable.java
AbstractObservationTable.fetchResults
protected static <I, D> void fetchResults(Iterator<DefaultQuery<I, D>> queryIt, List<D> output, int numSuffixes) { """ Fetches the given number of query responses and adds them to the specified output list. Also, the query iterator is advanced accordingly. @param queryIt the query iterator @param output the...
java
protected static <I, D> void fetchResults(Iterator<DefaultQuery<I, D>> queryIt, List<D> output, int numSuffixes) { for (int j = 0; j < numSuffixes; j++) { DefaultQuery<I, D> qry = queryIt.next(); output.add(qry.getOutput()); } }
[ "protected", "static", "<", "I", ",", "D", ">", "void", "fetchResults", "(", "Iterator", "<", "DefaultQuery", "<", "I", ",", "D", ">", ">", "queryIt", ",", "List", "<", "D", ">", "output", ",", "int", "numSuffixes", ")", "{", "for", "(", "int", "j"...
Fetches the given number of query responses and adds them to the specified output list. Also, the query iterator is advanced accordingly. @param queryIt the query iterator @param output the output list to write to @param numSuffixes the number of suffixes (queries)
[ "Fetches", "the", "given", "number", "of", "query", "responses", "and", "adds", "them", "to", "the", "specified", "output", "list", ".", "Also", "the", "query", "iterator", "is", "advanced", "accordingly", "." ]
train
https://github.com/LearnLib/learnlib/blob/fa38a14adcc0664099f180d671ffa42480318d7b/datastructures/observation-table/src/main/java/de/learnlib/datastructure/observationtable/AbstractObservationTable.java#L171-L176
knowm/XChange
xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/service/OkCoinTradeServiceRaw.java
OkCoinTradeServiceRaw.trade
public OkCoinTradeResult trade(String symbol, String type, String price, String amount) throws IOException { """ 下单交易 @param symbol @param type @param price @param amount (只能是整数) @return @throws IOException """ OkCoinTradeResult tradeResult = okCoin.trade(apikey, symbol, type, price, ...
java
public OkCoinTradeResult trade(String symbol, String type, String price, String amount) throws IOException { OkCoinTradeResult tradeResult = okCoin.trade(apikey, symbol, type, price, amount, signatureCreator()); return returnOrThrow(tradeResult); }
[ "public", "OkCoinTradeResult", "trade", "(", "String", "symbol", ",", "String", "type", ",", "String", "price", ",", "String", "amount", ")", "throws", "IOException", "{", "OkCoinTradeResult", "tradeResult", "=", "okCoin", ".", "trade", "(", "apikey", ",", "sy...
下单交易 @param symbol @param type @param price @param amount (只能是整数) @return @throws IOException
[ "下单交易" ]
train
https://github.com/knowm/XChange/blob/e45f437ac8e0b89cd66cdcb3258bdb1bf3d88186/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/service/OkCoinTradeServiceRaw.java#L44-L49
google/jimfs
jimfs/src/main/java/com/google/common/jimfs/SystemJimfsFileSystemProvider.java
SystemJimfsFileSystemProvider.toPath
private static Path toPath(FileSystem fileSystem, URI uri) { """ Invokes the {@code toPath(URI)} method on the given {@code FileSystem}. """ // We have to invoke this method by reflection because while the file system should be // an instance of JimfsFileSystem, it may be loaded by a different class lo...
java
private static Path toPath(FileSystem fileSystem, URI uri) { // We have to invoke this method by reflection because while the file system should be // an instance of JimfsFileSystem, it may be loaded by a different class loader and as // such appear to be a totally different class. try { Method to...
[ "private", "static", "Path", "toPath", "(", "FileSystem", "fileSystem", ",", "URI", "uri", ")", "{", "// We have to invoke this method by reflection because while the file system should be", "// an instance of JimfsFileSystem, it may be loaded by a different class loader and as", "// suc...
Invokes the {@code toPath(URI)} method on the given {@code FileSystem}.
[ "Invokes", "the", "{" ]
train
https://github.com/google/jimfs/blob/3eadff747a3afa7b498030f420d2d04ce700534a/jimfs/src/main/java/com/google/common/jimfs/SystemJimfsFileSystemProvider.java#L168-L180
beangle/beangle3
ioc/spring/src/main/java/org/beangle/inject/spring/config/SpringConfigProcessor.java
SpringConfigProcessor.registerBean
protected BeanDefinition registerBean(Definition def, BindRegistry registry) { """ <p> registerBean. </p> @param def bean definition. @param registry a {@link org.beangle.commons.inject.bind.BindRegistry} object. @return a {@link org.springframework.beans.factory.config.BeanDefinition} object. """ B...
java
protected BeanDefinition registerBean(Definition def, BindRegistry registry) { BeanDefinition bd = convert(def); if ((def.isAbstract() && def.clazz == null) || FactoryBean.class.isAssignableFrom(def.clazz)) { try { Class<?> target = def.targetClass; if (null == target && def.clazz != null...
[ "protected", "BeanDefinition", "registerBean", "(", "Definition", "def", ",", "BindRegistry", "registry", ")", "{", "BeanDefinition", "bd", "=", "convert", "(", "def", ")", ";", "if", "(", "(", "def", ".", "isAbstract", "(", ")", "&&", "def", ".", "clazz",...
<p> registerBean. </p> @param def bean definition. @param registry a {@link org.beangle.commons.inject.bind.BindRegistry} object. @return a {@link org.springframework.beans.factory.config.BeanDefinition} object.
[ "<p", ">", "registerBean", ".", "<", "/", "p", ">" ]
train
https://github.com/beangle/beangle3/blob/33df2873a5f38e28ac174a1d3b8144eb2f808e64/ioc/spring/src/main/java/org/beangle/inject/spring/config/SpringConfigProcessor.java#L333-L355
Azure/azure-sdk-for-java
cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java
ModelsImpl.deleteExplicitListItem
public OperationStatus deleteExplicitListItem(UUID appId, String versionId, UUID entityId, long itemId) { """ Delete the explicit list item from the Pattern.any explicit list. @param appId The application ID. @param versionId The version ID. @param entityId The pattern.any entity id. @param itemId The explic...
java
public OperationStatus deleteExplicitListItem(UUID appId, String versionId, UUID entityId, long itemId) { return deleteExplicitListItemWithServiceResponseAsync(appId, versionId, entityId, itemId).toBlocking().single().body(); }
[ "public", "OperationStatus", "deleteExplicitListItem", "(", "UUID", "appId", ",", "String", "versionId", ",", "UUID", "entityId", ",", "long", "itemId", ")", "{", "return", "deleteExplicitListItemWithServiceResponseAsync", "(", "appId", ",", "versionId", ",", "entityI...
Delete the explicit list item from the Pattern.any explicit list. @param appId The application ID. @param versionId The version ID. @param entityId The pattern.any entity id. @param itemId The explicit list item which will be deleted. @throws IllegalArgumentException thrown if parameters fail the validation @throws Er...
[ "Delete", "the", "explicit", "list", "item", "from", "the", "Pattern", ".", "any", "explicit", "list", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java#L14262-L14264
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java
WordVectorSerializer.writeSequenceVectors
public static <T extends SequenceElement> void writeSequenceVectors(@NonNull SequenceVectors<T> vectors, @NonNull SequenceElementFactory<T> factory, @NonNull OutputStream stream) throws IOException { """ This method saves specified SequenceVec...
java
public static <T extends SequenceElement> void writeSequenceVectors(@NonNull SequenceVectors<T> vectors, @NonNull SequenceElementFactory<T> factory, @NonNull OutputStream stream) throws IOException { WeightLookupTable<T> lookupTable = vecto...
[ "public", "static", "<", "T", "extends", "SequenceElement", ">", "void", "writeSequenceVectors", "(", "@", "NonNull", "SequenceVectors", "<", "T", ">", "vectors", ",", "@", "NonNull", "SequenceElementFactory", "<", "T", ">", "factory", ",", "@", "NonNull", "Ou...
This method saves specified SequenceVectors model to target OutputStream @param vectors SequenceVectors model @param factory SequenceElementFactory implementation for your objects @param stream Target output stream @param <T>
[ "This", "method", "saves", "specified", "SequenceVectors", "model", "to", "target", "OutputStream" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java#L1970-L1991
gturri/aXMLRPC
src/main/java/de/timroes/axmlrpc/XMLRPCClient.java
XMLRPCClient.setCustomHttpHeader
public void setCustomHttpHeader(String headerName, String headerValue) { """ Set a HTTP header field to a custom value. You cannot modify the Host or Content-Type field that way. If the field already exists, the old value is overwritten. @param headerName The name of the header field. @param headerValue The ...
java
public void setCustomHttpHeader(String headerName, String headerValue) { if(CONTENT_TYPE.equals(headerName) || HOST.equals(headerName) || CONTENT_LENGTH.equals(headerName)) { throw new XMLRPCRuntimeException("You cannot modify the Host, Content-Type or Content-Length header."); } httpParameters.put(headerN...
[ "public", "void", "setCustomHttpHeader", "(", "String", "headerName", ",", "String", "headerValue", ")", "{", "if", "(", "CONTENT_TYPE", ".", "equals", "(", "headerName", ")", "||", "HOST", ".", "equals", "(", "headerName", ")", "||", "CONTENT_LENGTH", ".", ...
Set a HTTP header field to a custom value. You cannot modify the Host or Content-Type field that way. If the field already exists, the old value is overwritten. @param headerName The name of the header field. @param headerValue The new value of the header field.
[ "Set", "a", "HTTP", "header", "field", "to", "a", "custom", "value", ".", "You", "cannot", "modify", "the", "Host", "or", "Content", "-", "Type", "field", "that", "way", ".", "If", "the", "field", "already", "exists", "the", "old", "value", "is", "over...
train
https://github.com/gturri/aXMLRPC/blob/8ca6f95f7eb3a28efaef3569d53adddeb32b6bda/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java#L344-L350
albfernandez/itext2
src/main/java/com/lowagie/text/pdf/PdfSignatureAppearance.java
PdfSignatureAppearance.setVisibleSignature
public void setVisibleSignature(Rectangle pageRect, int page, String fieldName) { """ Sets the signature to be visible. It creates a new visible signature field. @param pageRect the position and dimension of the field in the page @param page the page to place the field. The fist page is 1 @param fieldName the f...
java
public void setVisibleSignature(Rectangle pageRect, int page, String fieldName) { if (fieldName != null) { if (fieldName.indexOf('.') >= 0) throw new IllegalArgumentException("Field names cannot contain a dot."); AcroFields af = writer.getAcroFields(); AcroFie...
[ "public", "void", "setVisibleSignature", "(", "Rectangle", "pageRect", ",", "int", "page", ",", "String", "fieldName", ")", "{", "if", "(", "fieldName", "!=", "null", ")", "{", "if", "(", "fieldName", ".", "indexOf", "(", "'", "'", ")", ">=", "0", ")",...
Sets the signature to be visible. It creates a new visible signature field. @param pageRect the position and dimension of the field in the page @param page the page to place the field. The fist page is 1 @param fieldName the field name or <CODE>null</CODE> to generate automatically a new field name
[ "Sets", "the", "signature", "to", "be", "visible", ".", "It", "creates", "a", "new", "visible", "signature", "field", "." ]
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/pdf/PdfSignatureAppearance.java#L267-L284
restfb/restfb
src/main/lombok/com/restfb/BinaryAttachment.java
BinaryAttachment.with
@Deprecated public static BinaryAttachment with(String filename, InputStream data) { """ Creates a binary attachment. @param filename The attachment's filename. @param data The attachment's data. @return A binary attachment. @throws IllegalArgumentException If {@code data} is {@code null} or {@code file...
java
@Deprecated public static BinaryAttachment with(String filename, InputStream data) { return new BinaryAttachment(filename, data); }
[ "@", "Deprecated", "public", "static", "BinaryAttachment", "with", "(", "String", "filename", ",", "InputStream", "data", ")", "{", "return", "new", "BinaryAttachment", "(", "filename", ",", "data", ")", ";", "}" ]
Creates a binary attachment. @param filename The attachment's filename. @param data The attachment's data. @return A binary attachment. @throws IllegalArgumentException If {@code data} is {@code null} or {@code filename} is {@code null} or blank. @deprecated use the stream-less API passing a {@code byte[]} for data
[ "Creates", "a", "binary", "attachment", "." ]
train
https://github.com/restfb/restfb/blob/fb77ba5486d1339e7deb81b9830670fa209b1047/src/main/lombok/com/restfb/BinaryAttachment.java#L244-L247
sarl/sarl
contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyExpressionGenerator.java
PyExpressionGenerator._generate
protected XExpression _generate(XVariableDeclaration varDeclaration, IAppendable it, IExtraLanguageGeneratorContext context) { """ Generate the given object. @param varDeclaration the variable declaration. @param it the target for the generated content. @param context the context. @return the statement. ...
java
protected XExpression _generate(XVariableDeclaration varDeclaration, IAppendable it, IExtraLanguageGeneratorContext context) { final String name = it.declareUniqueNameVariable(varDeclaration, varDeclaration.getName()); it.append(name); it.append(" = "); //$NON-NLS-1$ if (varDeclaration.getRight() != null) { ...
[ "protected", "XExpression", "_generate", "(", "XVariableDeclaration", "varDeclaration", ",", "IAppendable", "it", ",", "IExtraLanguageGeneratorContext", "context", ")", "{", "final", "String", "name", "=", "it", ".", "declareUniqueNameVariable", "(", "varDeclaration", "...
Generate the given object. @param varDeclaration the variable declaration. @param it the target for the generated content. @param context the context. @return the statement.
[ "Generate", "the", "given", "object", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyExpressionGenerator.java#L974-L990
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getByEquality
static public Object getByEquality(Object[] array, Object key) { """ Gets the object stored with the given key, using only object equality. """ if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { Object targ...
java
static public Object getByEquality(Object[] array, Object key) { if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { Object targetKey = array[i]; if (targetKey == null) { ...
[ "static", "public", "Object", "getByEquality", "(", "Object", "[", "]", "array", ",", "Object", "key", ")", "{", "if", "(", "array", "!=", "null", ")", "{", "int", "length", "=", "array", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", ...
Gets the object stored with the given key, using only object equality.
[ "Gets", "the", "object", "stored", "with", "the", "given", "key", "using", "only", "object", "equality", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L171-L192
GeoLatte/geolatte-common
src/main/java/org/geolatte/common/expressions/StringLikeComparisonExpression.java
StringLikeComparisonExpression.wildCardMatch
public static boolean wildCardMatch(String text, String pattern, char multiCharacterWildCardChar, boolean caseInsensitive) { """ Matches the given text with the given pattern. Based on http://www.adarshr.com/papers/wildcard, added checks for wildcard at the start and at the end @param text The text to match @pa...
java
public static boolean wildCardMatch(String text, String pattern, char multiCharacterWildCardChar, boolean caseInsensitive) { if (caseInsensitive) { text = text.toLowerCase(); pattern = pattern.toLowerCase(); } String wildCardString = "" + multiCharacterWildCa...
[ "public", "static", "boolean", "wildCardMatch", "(", "String", "text", ",", "String", "pattern", ",", "char", "multiCharacterWildCardChar", ",", "boolean", "caseInsensitive", ")", "{", "if", "(", "caseInsensitive", ")", "{", "text", "=", "text", ".", "toLowerCas...
Matches the given text with the given pattern. Based on http://www.adarshr.com/papers/wildcard, added checks for wildcard at the start and at the end @param text The text to match @param pattern The pattern @param multiCharacterWildCardChar The character to use as wildcard. @param caseInsensitive Match is case insensit...
[ "Matches", "the", "given", "text", "with", "the", "given", "pattern", ".", "Based", "on", "http", ":", "//", "www", ".", "adarshr", ".", "com", "/", "papers", "/", "wildcard", "added", "checks", "for", "wildcard", "at", "the", "start", "and", "at", "th...
train
https://github.com/GeoLatte/geolatte-common/blob/dc7f92b04d8c6cb706e78cb95e746d8f12089d95/src/main/java/org/geolatte/common/expressions/StringLikeComparisonExpression.java#L99-L138
VoltDB/voltdb
third_party/java/src/org/HdrHistogram_voltpatches/DoubleRecorder.java
DoubleRecorder.recordValueWithExpectedInterval
public void recordValueWithExpectedInterval(final double value, final double expectedIntervalBetweenValueSamples) throws ArrayIndexOutOfBoundsException { """ Record a value <p> To compensate for the loss of sampled values when a recorded value is larger than the expected interval between value sampl...
java
public void recordValueWithExpectedInterval(final double value, final double expectedIntervalBetweenValueSamples) throws ArrayIndexOutOfBoundsException { long criticalValueAtEnter = recordingPhaser.writerCriticalSectionEnter(); try { activeHistogram.recordValueWithExpectedInterva...
[ "public", "void", "recordValueWithExpectedInterval", "(", "final", "double", "value", ",", "final", "double", "expectedIntervalBetweenValueSamples", ")", "throws", "ArrayIndexOutOfBoundsException", "{", "long", "criticalValueAtEnter", "=", "recordingPhaser", ".", "writerCriti...
Record a value <p> To compensate for the loss of sampled values when a recorded value is larger than the expected interval between value samples, Histogram will auto-generate an additional series of decreasingly-smaller (down to the expectedIntervalBetweenValueSamples) value records. <p> See related notes {@link org.Hd...
[ "Record", "a", "value", "<p", ">", "To", "compensate", "for", "the", "loss", "of", "sampled", "values", "when", "a", "recorded", "value", "is", "larger", "than", "the", "expected", "interval", "between", "value", "samples", "Histogram", "will", "auto", "-", ...
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/HdrHistogram_voltpatches/DoubleRecorder.java#L115-L123
JOML-CI/JOML
src/org/joml/Matrix3f.java
Matrix3f.setRow
public Matrix3f setRow(int row, float x, float y, float z) throws IndexOutOfBoundsException { """ Set the row at the given <code>row</code> index, starting with <code>0</code>. @param row the row index in <code>[0..2]</code> @param x the first element in the row @param y the second element in the row @par...
java
public Matrix3f setRow(int row, float x, float y, float z) throws IndexOutOfBoundsException { switch (row) { case 0: this.m00 = x; this.m10 = y; this.m20 = z; break; case 1: this.m01 = x; this.m11 = y; this.m21 =...
[ "public", "Matrix3f", "setRow", "(", "int", "row", ",", "float", "x", ",", "float", "y", ",", "float", "z", ")", "throws", "IndexOutOfBoundsException", "{", "switch", "(", "row", ")", "{", "case", "0", ":", "this", ".", "m00", "=", "x", ";", "this", ...
Set the row at the given <code>row</code> index, starting with <code>0</code>. @param row the row index in <code>[0..2]</code> @param x the first element in the row @param y the second element in the row @param z the third element in the row @return this @throws IndexOutOfBoundsException if <code>row</code> is not in ...
[ "Set", "the", "row", "at", "the", "given", "<code", ">", "row<", "/", "code", ">", "index", "starting", "with", "<code", ">", "0<", "/", "code", ">", "." ]
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix3f.java#L3266-L3287
threerings/nenya
core/src/main/java/com/threerings/media/tile/TileManager.java
TileManager.loadTileSet
public UniformTileSet loadTileSet (String rset, String imgPath, int width, int height) { """ Loads up a tileset from the specified image (located in the specified resource set) with the specified metadata parameters. """ return loadTileSet(getImageProvider(rset), rset, imgPath, width, height); }
java
public UniformTileSet loadTileSet (String rset, String imgPath, int width, int height) { return loadTileSet(getImageProvider(rset), rset, imgPath, width, height); }
[ "public", "UniformTileSet", "loadTileSet", "(", "String", "rset", ",", "String", "imgPath", ",", "int", "width", ",", "int", "height", ")", "{", "return", "loadTileSet", "(", "getImageProvider", "(", "rset", ")", ",", "rset", ",", "imgPath", ",", "width", ...
Loads up a tileset from the specified image (located in the specified resource set) with the specified metadata parameters.
[ "Loads", "up", "a", "tileset", "from", "the", "specified", "image", "(", "located", "in", "the", "specified", "resource", "set", ")", "with", "the", "specified", "metadata", "parameters", "." ]
train
https://github.com/threerings/nenya/blob/3165a012fd859009db3367f87bd2a5b820cc760a/core/src/main/java/com/threerings/media/tile/TileManager.java#L73-L76
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java
ViewPropertyAnimatorPreHC.startAnimation
private void startAnimation() { """ Starts the underlying Animator for a set of properties. We use a single animator that simply runs from 0 to 1, and then use that fractional value to set each property value accordingly. """ ValueAnimator animator = ValueAnimator.ofFloat(1.0f); ArrayList<Nam...
java
private void startAnimation() { ValueAnimator animator = ValueAnimator.ofFloat(1.0f); ArrayList<NameValuesHolder> nameValueList = (ArrayList<NameValuesHolder>) mPendingAnimations.clone(); mPendingAnimations.clear(); int propertyMask = 0; int propertyCount = nameVa...
[ "private", "void", "startAnimation", "(", ")", "{", "ValueAnimator", "animator", "=", "ValueAnimator", ".", "ofFloat", "(", "1.0f", ")", ";", "ArrayList", "<", "NameValuesHolder", ">", "nameValueList", "=", "(", "ArrayList", "<", "NameValuesHolder", ">", ")", ...
Starts the underlying Animator for a set of properties. We use a single animator that simply runs from 0 to 1, and then use that fractional value to set each property value accordingly.
[ "Starts", "the", "underlying", "Animator", "for", "a", "set", "of", "properties", ".", "We", "use", "a", "single", "animator", "that", "simply", "runs", "from", "0", "to", "1", "and", "then", "use", "that", "fractional", "value", "to", "set", "each", "pr...
train
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java#L435-L459
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/MarkerManager.java
MarkerManager.getMarker
@Deprecated public static Marker getMarker(final String name, final Marker parent) { """ Retrieves or creates a Marker with the specified parent. @param name The name of the Marker. @param parent The parent Marker. @return The Marker with the specified name. @throws IllegalArgumentException if any argume...
java
@Deprecated public static Marker getMarker(final String name, final Marker parent) { return getMarker(name).addParents(parent); }
[ "@", "Deprecated", "public", "static", "Marker", "getMarker", "(", "final", "String", "name", ",", "final", "Marker", "parent", ")", "{", "return", "getMarker", "(", "name", ")", ".", "addParents", "(", "parent", ")", ";", "}" ]
Retrieves or creates a Marker with the specified parent. @param name The name of the Marker. @param parent The parent Marker. @return The Marker with the specified name. @throws IllegalArgumentException if any argument is {@code null} @deprecated Use the Marker add or set methods to add parent Markers. Will be removed...
[ "Retrieves", "or", "creates", "a", "Marker", "with", "the", "specified", "parent", "." ]
train
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/MarkerManager.java#L98-L101
HanSolo/SteelSeries-Swing
src/main/java/eu/hansolo/steelseries/gauges/AbstractLinear.java
AbstractLinear.create_FRAME_Image
protected BufferedImage create_FRAME_Image(final int WIDTH, final int HEIGHT, final BufferedImage IMAGE) { """ Returns the frame image with the currently active framedesign with the given with and height. @param WIDTH @param HEIGHT @param IMAGE @return buffered image containing the frame in the active frame d...
java
protected BufferedImage create_FRAME_Image(final int WIDTH, final int HEIGHT, final BufferedImage IMAGE) { return FRAME_FACTORY.createLinearFrame(WIDTH, HEIGHT, getFrameDesign(), getCustomFrameDesign(), getFrameBaseColor(), isFrameBaseColorEnabled(), getFrameEffect(), IMAGE); }
[ "protected", "BufferedImage", "create_FRAME_Image", "(", "final", "int", "WIDTH", ",", "final", "int", "HEIGHT", ",", "final", "BufferedImage", "IMAGE", ")", "{", "return", "FRAME_FACTORY", ".", "createLinearFrame", "(", "WIDTH", ",", "HEIGHT", ",", "getFrameDesig...
Returns the frame image with the currently active framedesign with the given with and height. @param WIDTH @param HEIGHT @param IMAGE @return buffered image containing the frame in the active frame design
[ "Returns", "the", "frame", "image", "with", "the", "currently", "active", "framedesign", "with", "the", "given", "with", "and", "height", "." ]
train
https://github.com/HanSolo/SteelSeries-Swing/blob/c2f7b45a477757ef21bbb6a1174ddedb2250ae57/src/main/java/eu/hansolo/steelseries/gauges/AbstractLinear.java#L894-L896
gallandarakhneorg/afc
advanced/gis/gisroad/src/main/java/org/arakhne/afc/gis/road/path/RoadPath.java
RoadPath.addPathToPath
public static boolean addPathToPath(RoadPath inside, RoadPath elements) { """ Add the elements stored inside a road path into a road path. This function takes care about the two ends to the path to insert into. @param inside is the path to change. @param elements are the elements to insert. @return <code>tru...
java
public static boolean addPathToPath(RoadPath inside, RoadPath elements) { RoadConnection first = elements.getFirstPoint(); RoadConnection last = elements.getLastPoint(); assert first != null; assert last != null; first = first.getWrappedRoadConnection(); last = last.getWrappedRoadConnection(); assert firs...
[ "public", "static", "boolean", "addPathToPath", "(", "RoadPath", "inside", ",", "RoadPath", "elements", ")", "{", "RoadConnection", "first", "=", "elements", ".", "getFirstPoint", "(", ")", ";", "RoadConnection", "last", "=", "elements", ".", "getLastPoint", "("...
Add the elements stored inside a road path into a road path. This function takes care about the two ends to the path to insert into. @param inside is the path to change. @param elements are the elements to insert. @return <code>true</code> if all the elements were added; otherwise <code>false</code>. @since 4.0
[ "Add", "the", "elements", "stored", "inside", "a", "road", "path", "into", "a", "road", "path", ".", "This", "function", "takes", "care", "about", "the", "two", "ends", "to", "the", "path", "to", "insert", "into", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/gis/gisroad/src/main/java/org/arakhne/afc/gis/road/path/RoadPath.java#L92-L116
feedzai/pdb
src/main/java/com/feedzai/commons/sql/abstraction/engine/AbstractDatabaseEngine.java
AbstractDatabaseEngine.clearParameters
@Override public synchronized void clearParameters(final String name) throws DatabaseEngineException, ConnectionResetException { """ Clears the prepared statement parameters. @param name The prepared statement name. @throws DatabaseEngineException If something occurs while clearing the parameters. """ ...
java
@Override public synchronized void clearParameters(final String name) throws DatabaseEngineException, ConnectionResetException { final PreparedStatementCapsule ps = stmts.get(name); if (ps == null) { throw new DatabaseEngineRuntimeException(String.format("PreparedStatement named '%s' doe...
[ "@", "Override", "public", "synchronized", "void", "clearParameters", "(", "final", "String", "name", ")", "throws", "DatabaseEngineException", ",", "ConnectionResetException", "{", "final", "PreparedStatementCapsule", "ps", "=", "stmts", ".", "get", "(", "name", ")...
Clears the prepared statement parameters. @param name The prepared statement name. @throws DatabaseEngineException If something occurs while clearing the parameters.
[ "Clears", "the", "prepared", "statement", "parameters", "." ]
train
https://github.com/feedzai/pdb/blob/fe07ca08417e0ddcd620a36aa1fdbca7f338be98/src/main/java/com/feedzai/commons/sql/abstraction/engine/AbstractDatabaseEngine.java#L1757-L1780
basho/riak-java-client
src/main/java/com/basho/riak/client/api/RiakClient.java
RiakClient.newClient
public static RiakClient newClient(List<String> remoteAddresses) throws UnknownHostException { """ Static factory method to create a new client instance. This method produces a client connected to the supplied addresses on the default (protocol buffers) port (8087). @param remoteAddresses a list of IP addresses...
java
public static RiakClient newClient(List<String> remoteAddresses) throws UnknownHostException { return newClient(RiakNode.Builder.DEFAULT_REMOTE_PORT, remoteAddresses); }
[ "public", "static", "RiakClient", "newClient", "(", "List", "<", "String", ">", "remoteAddresses", ")", "throws", "UnknownHostException", "{", "return", "newClient", "(", "RiakNode", ".", "Builder", ".", "DEFAULT_REMOTE_PORT", ",", "remoteAddresses", ")", ";", "}"...
Static factory method to create a new client instance. This method produces a client connected to the supplied addresses on the default (protocol buffers) port (8087). @param remoteAddresses a list of IP addresses or hostnames @return a new client instance @throws UnknownHostException if a supplied hostname cannot be r...
[ "Static", "factory", "method", "to", "create", "a", "new", "client", "instance", ".", "This", "method", "produces", "a", "client", "connected", "to", "the", "supplied", "addresses", "on", "the", "default", "(", "protocol", "buffers", ")", "port", "(", "8087"...
train
https://github.com/basho/riak-java-client/blob/bed6cd60f360bacf1b873ab92dd74f2526651e71/src/main/java/com/basho/riak/client/api/RiakClient.java#L218-L221