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
alipay/sofa-hessian
src/main/java/com/caucho/hessian/io/HessianInput.java
HessianInput.readDouble
public double readDouble() throws IOException { """ Reads a double <pre> D b64 b56 b48 b40 b32 b24 b16 b8 </pre> """ int tag = read(); switch (tag) { case 'T': return 1; case 'F': return 0; case 'I': ...
java
public double readDouble() throws IOException { int tag = read(); switch (tag) { case 'T': return 1; case 'F': return 0; case 'I': return parseInt(); case 'L': return (double) par...
[ "public", "double", "readDouble", "(", ")", "throws", "IOException", "{", "int", "tag", "=", "read", "(", ")", ";", "switch", "(", "tag", ")", "{", "case", "'", "'", ":", "return", "1", ";", "case", "'", "'", ":", "return", "0", ";", "case", "'",...
Reads a double <pre> D b64 b56 b48 b40 b32 b24 b16 b8 </pre>
[ "Reads", "a", "double" ]
train
https://github.com/alipay/sofa-hessian/blob/89e4f5af28602101dab7b498995018871616357b/src/main/java/com/caucho/hessian/io/HessianInput.java#L604-L624
Samsung/GearVRf
GVRf/Framework/framework/src/main/java/org/gearvrf/GVRTransform.java
GVRTransform.setPosition
public GVRTransform setPosition(float x, float y, float z) { """ Set absolute position. Use {@link #translate(float, float, float)} to <em>move</em> the object. @param x 'X' component of the absolute position. @param y 'Y' component of the absolute position. @param z 'Z' component of the absolute positi...
java
public GVRTransform setPosition(float x, float y, float z) { NativeTransform.setPosition(getNative(), x, y, z); return this; }
[ "public", "GVRTransform", "setPosition", "(", "float", "x", ",", "float", "y", ",", "float", "z", ")", "{", "NativeTransform", ".", "setPosition", "(", "getNative", "(", ")", ",", "x", ",", "y", ",", "z", ")", ";", "return", "this", ";", "}" ]
Set absolute position. Use {@link #translate(float, float, float)} to <em>move</em> the object. @param x 'X' component of the absolute position. @param y 'Y' component of the absolute position. @param z 'Z' component of the absolute position.
[ "Set", "absolute", "position", "." ]
train
https://github.com/Samsung/GearVRf/blob/05034d465a7b0a494fabb9e9f2971ac19392f32d/GVRf/Framework/framework/src/main/java/org/gearvrf/GVRTransform.java#L91-L94
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.getStatsAsync
public Observable<RegistryStatisticsInner> getStatsAsync(String resourceGroupName, String resourceName) { """ Get the statistics from an IoT hub. Get the statistics from an IoT hub. @param resourceGroupName The name of the resource group that contains the IoT hub. @param resourceName The name of the IoT hub. ...
java
public Observable<RegistryStatisticsInner> getStatsAsync(String resourceGroupName, String resourceName) { return getStatsWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<RegistryStatisticsInner>, RegistryStatisticsInner>() { @Override public Registr...
[ "public", "Observable", "<", "RegistryStatisticsInner", ">", "getStatsAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getStatsWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".", "map", "(", ...
Get the statistics from an IoT hub. Get the statistics from 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 RegistryStatist...
[ "Get", "the", "statistics", "from", "an", "IoT", "hub", ".", "Get", "the", "statistics", "from", "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#L1441-L1448
jeremybrooks/jinx
src/main/java/net/jeremybrooks/jinx/api/MachinetagsApi.java
MachinetagsApi.getNamespaces
public Namespaces getNamespaces(String predicate, int perPage, int page, boolean sign) throws JinxException { """ Return a list of unique namespaces, optionally limited by a given predicate, in alphabetical order. <br> This method does not require authentication. @param predicate (Optional) Limit the list of ...
java
public Namespaces getNamespaces(String predicate, int perPage, int page, boolean sign) throws JinxException { Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.machinetags.getNamespaces"); if (!JinxUtils.isNullOrEmpty(predicate)) { params.put("predicate", predicate); } ...
[ "public", "Namespaces", "getNamespaces", "(", "String", "predicate", ",", "int", "perPage", ",", "int", "page", ",", "boolean", "sign", ")", "throws", "JinxException", "{", "Map", "<", "String", ",", "String", ">", "params", "=", "new", "TreeMap", "<>", "(...
Return a list of unique namespaces, optionally limited by a given predicate, in alphabetical order. <br> This method does not require authentication. @param predicate (Optional) Limit the list of namespaces returned to those that have this predicate. @param perPage Number of photos to return per page. If this argume...
[ "Return", "a", "list", "of", "unique", "namespaces", "optionally", "limited", "by", "a", "given", "predicate", "in", "alphabetical", "order", ".", "<br", ">", "This", "method", "does", "not", "require", "authentication", "." ]
train
https://github.com/jeremybrooks/jinx/blob/ab7a4b7462d08bcbfd9b98bd3f5029771c20f6c6/src/main/java/net/jeremybrooks/jinx/api/MachinetagsApi.java#L57-L70
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java
NamedEventManager.addNamedEvent
public void addNamedEvent (String shortName, Class<? extends ComponentSystemEvent> cls) { """ Registers a named event. @param shortName a String containing the short name for the event, from the @NamedEvent.shortName() attribute. @param cls the event class to register. """ String key = shortName; ...
java
public void addNamedEvent (String shortName, Class<? extends ComponentSystemEvent> cls) { String key = shortName; Collection<Class<? extends ComponentSystemEvent>> eventList; // Per the spec, if the short name is missing, generate one. if (shortName == null) ...
[ "public", "void", "addNamedEvent", "(", "String", "shortName", ",", "Class", "<", "?", "extends", "ComponentSystemEvent", ">", "cls", ")", "{", "String", "key", "=", "shortName", ";", "Collection", "<", "Class", "<", "?", "extends", "ComponentSystemEvent", ">"...
Registers a named event. @param shortName a String containing the short name for the event, from the @NamedEvent.shortName() attribute. @param cls the event class to register.
[ "Registers", "a", "named", "event", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java#L69-L93
aws/aws-sdk-java
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/SubscribeRequest.java
SubscribeRequest.withAttributes
public SubscribeRequest withAttributes(java.util.Map<String, String> attributes) { """ <p> A map of attributes with their corresponding values. </p> <p> The following lists the names, descriptions, and values of the special request parameters that the <code>SetTopicAttributes</code> action uses: </p> <ul> ...
java
public SubscribeRequest withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
[ "public", "SubscribeRequest", "withAttributes", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "setAttributes", "(", "attributes", ")", ";", "return", "this", ";", "}" ]
<p> A map of attributes with their corresponding values. </p> <p> The following lists the names, descriptions, and values of the special request parameters that the <code>SetTopicAttributes</code> action uses: </p> <ul> <li> <p> <code>DeliveryPolicy</code> – The policy that defines how Amazon SNS retries failed deliver...
[ "<p", ">", "A", "map", "of", "attributes", "with", "their", "corresponding", "values", ".", "<", "/", "p", ">", "<p", ">", "The", "following", "lists", "the", "names", "descriptions", "and", "values", "of", "the", "special", "request", "parameters", "that"...
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/SubscribeRequest.java#L1095-L1098
httl/httl
httl/src/main/java/httl/Engine.java
Engine.getProperty
public String getProperty(String key, String defaultValue) { """ Get config value. @param key - config key @param defaultValue - default value @return config value @see #getEngine() """ String value = getProperty(key, String.class); return StringUtils.isEmpty(value) ? defaultValu...
java
public String getProperty(String key, String defaultValue) { String value = getProperty(key, String.class); return StringUtils.isEmpty(value) ? defaultValue : value; }
[ "public", "String", "getProperty", "(", "String", "key", ",", "String", "defaultValue", ")", "{", "String", "value", "=", "getProperty", "(", "key", ",", "String", ".", "class", ")", ";", "return", "StringUtils", ".", "isEmpty", "(", "value", ")", "?", "...
Get config value. @param key - config key @param defaultValue - default value @return config value @see #getEngine()
[ "Get", "config", "value", "." ]
train
https://github.com/httl/httl/blob/e13e00f4ab41252a8f53d6dafd4a6610be9dcaad/httl/src/main/java/httl/Engine.java#L194-L197
intendia-oss/rxjava-gwt
src/main/modified/io/reactivex/super/io/reactivex/Single.java
Single.concatEager
@BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Flowable<T> concatEager(Iterable<? extends SingleSource<? extends T>> sources) { """ Concatenates a sequence of SingleSources eagerly into a single stream of values. <p> <img width...
java
@BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Flowable<T> concatEager(Iterable<? extends SingleSource<? extends T>> sources) { return Flowable.fromIterable(sources).concatMapEager(SingleInternalHelper.<T>toFlowable()); }
[ "@", "BackpressureSupport", "(", "BackpressureKind", ".", "FULL", ")", "@", "CheckReturnValue", "@", "SchedulerSupport", "(", "SchedulerSupport", ".", "NONE", ")", "public", "static", "<", "T", ">", "Flowable", "<", "T", ">", "concatEager", "(", "Iterable", "<...
Concatenates a sequence of SingleSources eagerly into a single stream of values. <p> <img width="640" height="319" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.concatEager.i.png" alt=""> <p> Eager concatenation means that once a subscriber subscribes, this operator subscribes to all of t...
[ "Concatenates", "a", "sequence", "of", "SingleSources", "eagerly", "into", "a", "single", "stream", "of", "values", ".", "<p", ">", "<img", "width", "=", "640", "height", "=", "319", "src", "=", "https", ":", "//", "raw", ".", "github", ".", "com", "/"...
train
https://github.com/intendia-oss/rxjava-gwt/blob/8d5635b12ce40da99e76b59dc6bfe6fc2fffc1fa/src/main/modified/io/reactivex/super/io/reactivex/Single.java#L459-L464
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getCredential
public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { """ Gets credential. @param <T> the type parameter @param context the context @param clazz the clazz @return the credential """ val credential = getCredential(context); ...
java
public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { val credential = getCredential(context); if (credential == null) { return null; } if (!clazz.isAssignableFrom(credential.getClass())) { throw new Cl...
[ "public", "static", "<", "T", "extends", "Credential", ">", "T", "getCredential", "(", "final", "RequestContext", "context", ",", "final", "@", "NonNull", "Class", "<", "T", ">", "clazz", ")", "{", "val", "credential", "=", "getCredential", "(", "context", ...
Gets credential. @param <T> the type parameter @param context the context @param clazz the clazz @return the credential
[ "Gets", "credential", "." ]
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L352-L363
baidubce/bce-sdk-java
src/main/java/com/baidubce/AbstractBceClient.java
AbstractBceClient.computeEndpoint
private URI computeEndpoint() { """ Returns the default target service endpoint. <p> The endpoint will be in the form of "http(s)://<Service ID>[.<Region>].baidubce.com". @return the computed service endpoint @throws IllegalArgumentException if the endpoint specified in the client configuration is not a vali...
java
private URI computeEndpoint() { String endpoint = this.config.getEndpoint(); try { if (endpoint == null) { if (this.isRegionSupported()) { endpoint = String.format("%s://%s.%s.%s", this.config.getProtocol(), this.serviceId, this...
[ "private", "URI", "computeEndpoint", "(", ")", "{", "String", "endpoint", "=", "this", ".", "config", ".", "getEndpoint", "(", ")", ";", "try", "{", "if", "(", "endpoint", "==", "null", ")", "{", "if", "(", "this", ".", "isRegionSupported", "(", ")", ...
Returns the default target service endpoint. <p> The endpoint will be in the form of "http(s)://<Service ID>[.<Region>].baidubce.com". @return the computed service endpoint @throws IllegalArgumentException if the endpoint specified in the client configuration is not a valid URI.
[ "Returns", "the", "default", "target", "service", "endpoint", ".", "<p", ">", "The", "endpoint", "will", "be", "in", "the", "form", "of", "http", "(", "s", ")", ":", "//", "<Service", "ID", ">", "[", ".", "<Region", ">", "]", ".", "baidubce", ".", ...
train
https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/AbstractBceClient.java#L236-L253
QSFT/Doradus
doradus-server/src/main/java/com/dell/doradus/service/db/DBTransaction.java
DBTransaction.addColumn
public void addColumn(String storeName, String rowKey, String columnName, byte[] columnValue) { """ Add or set a column with the given binary value. @param storeName Name of store that owns row. @param rowKey Key of row that owns column. @param columnName Name of column. @param columnValue Column value...
java
public void addColumn(String storeName, String rowKey, String columnName, byte[] columnValue) { m_columnUpdates.add(new ColumnUpdate(storeName, rowKey, columnName, columnValue)); }
[ "public", "void", "addColumn", "(", "String", "storeName", ",", "String", "rowKey", ",", "String", "columnName", ",", "byte", "[", "]", "columnValue", ")", "{", "m_columnUpdates", ".", "add", "(", "new", "ColumnUpdate", "(", "storeName", ",", "rowKey", ",", ...
Add or set a column with the given binary value. @param storeName Name of store that owns row. @param rowKey Key of row that owns column. @param columnName Name of column. @param columnValue Column value in binary.
[ "Add", "or", "set", "a", "column", "with", "the", "given", "binary", "value", "." ]
train
https://github.com/QSFT/Doradus/blob/ad64d3c37922eefda68ec8869ef089c1ca604b70/doradus-server/src/main/java/com/dell/doradus/service/db/DBTransaction.java#L182-L184
SonarSource/sonarqube
server/sonar-server/src/main/java/org/sonar/server/plugins/ws/PluginWSCommons.java
PluginWSCommons.writeUpdateProperties
public static void writeUpdateProperties(JsonWriter jsonWriter, PluginUpdate pluginUpdate) { """ Write the update properties to the specified jsonwriter. <pre> "status": "COMPATIBLE", "requires": [ { "key": "java", "name": "Java", "description": "SonarQube rule engine." } ] </pre> """ jsonWriter....
java
public static void writeUpdateProperties(JsonWriter jsonWriter, PluginUpdate pluginUpdate) { jsonWriter.prop(PROPERTY_STATUS, toJSon(pluginUpdate.getStatus())); jsonWriter.name(ARRAY_REQUIRES).beginArray(); Release release = pluginUpdate.getRelease(); for (Plugin child : filter(transform(release.getOut...
[ "public", "static", "void", "writeUpdateProperties", "(", "JsonWriter", "jsonWriter", ",", "PluginUpdate", "pluginUpdate", ")", "{", "jsonWriter", ".", "prop", "(", "PROPERTY_STATUS", ",", "toJSon", "(", "pluginUpdate", ".", "getStatus", "(", ")", ")", ")", ";",...
Write the update properties to the specified jsonwriter. <pre> "status": "COMPATIBLE", "requires": [ { "key": "java", "name": "Java", "description": "SonarQube rule engine." } ] </pre>
[ "Write", "the", "update", "properties", "to", "the", "specified", "jsonwriter", ".", "<pre", ">", "status", ":", "COMPATIBLE", "requires", ":", "[", "{", "key", ":", "java", "name", ":", "Java", "description", ":", "SonarQube", "rule", "engine", ".", "}", ...
train
https://github.com/SonarSource/sonarqube/blob/2fffa4c2f79ae3714844d7742796e82822b6a98a/server/sonar-server/src/main/java/org/sonar/server/plugins/ws/PluginWSCommons.java#L195-L208
astrapi69/jaulp-wicket
jaulp-wicket-base/src/main/java/de/alpharogroup/wicket/base/util/parameter/PageParametersExtensions.java
PageParametersExtensions.getParameter
public static String getParameter(final Request request, final String parameterName) { """ Gets the parameter value from given parameter name. Looks in the query and post parameters. @param request the request @param parameterName the parameter name @return the parameter value """ String parameterValu...
java
public static String getParameter(final Request request, final String parameterName) { String parameterValue = request.getRequestParameters().getParameterValue(parameterName) .toString(); if ((parameterValue == null) || parameterValue.isEmpty()) { parameterValue = request.getPostParameters().getParameterVa...
[ "public", "static", "String", "getParameter", "(", "final", "Request", "request", ",", "final", "String", "parameterName", ")", "{", "String", "parameterValue", "=", "request", ".", "getRequestParameters", "(", ")", ".", "getParameterValue", "(", "parameterName", ...
Gets the parameter value from given parameter name. Looks in the query and post parameters. @param request the request @param parameterName the parameter name @return the parameter value
[ "Gets", "the", "parameter", "value", "from", "given", "parameter", "name", ".", "Looks", "in", "the", "query", "and", "post", "parameters", "." ]
train
https://github.com/astrapi69/jaulp-wicket/blob/85d74368d00abd9bb97659b5794e38c0f8a013d4/jaulp-wicket-base/src/main/java/de/alpharogroup/wicket/base/util/parameter/PageParametersExtensions.java#L191-L211
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/internal/workspace/api/EmailApi.java
EmailApi.forwardEmail
public ApiSuccessResponse forwardEmail(String id, ForwardData1 forwardData) throws ApiException { """ forward email forward inbound email interaction specified in the id path parameter @param id id of interaction to forward (required) @param forwardData Request parameters. (optional) @return ApiSuccessResponse...
java
public ApiSuccessResponse forwardEmail(String id, ForwardData1 forwardData) throws ApiException { ApiResponse<ApiSuccessResponse> resp = forwardEmailWithHttpInfo(id, forwardData); return resp.getData(); }
[ "public", "ApiSuccessResponse", "forwardEmail", "(", "String", "id", ",", "ForwardData1", "forwardData", ")", "throws", "ApiException", "{", "ApiResponse", "<", "ApiSuccessResponse", ">", "resp", "=", "forwardEmailWithHttpInfo", "(", "id", ",", "forwardData", ")", "...
forward email forward inbound email interaction specified in the id path parameter @param id id of interaction to forward (required) @param forwardData Request parameters. (optional) @return ApiSuccessResponse @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
[ "forward", "email", "forward", "inbound", "email", "interaction", "specified", "in", "the", "id", "path", "parameter" ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/internal/workspace/api/EmailApi.java#L509-L512
samskivert/pythagoras
src/main/java/pythagoras/f/Arc.java
Arc.setAngles
public void setAngles (float x1, float y1, float x2, float y2) { """ Sets the starting angle and angular extent of this arc using two sets of coordinates. The first set of coordinates is used to determine the angle of the starting point relative to the arc's center. The second set of coordinates is used to deter...
java
public void setAngles (float x1, float y1, float x2, float y2) { float cx = centerX(); float cy = centerY(); float a1 = normAngle(-FloatMath.toDegrees(FloatMath.atan2(y1 - cy, x1 - cx))); float a2 = normAngle(-FloatMath.toDegrees(FloatMath.atan2(y2 - cy, x2 - cx))); a2 -= a1; ...
[ "public", "void", "setAngles", "(", "float", "x1", ",", "float", "y1", ",", "float", "x2", ",", "float", "y2", ")", "{", "float", "cx", "=", "centerX", "(", ")", ";", "float", "cy", "=", "centerY", "(", ")", ";", "float", "a1", "=", "normAngle", ...
Sets the starting angle and angular extent of this arc using two sets of coordinates. The first set of coordinates is used to determine the angle of the starting point relative to the arc's center. The second set of coordinates is used to determine the angle of the end point relative to the arc's center. The arc will a...
[ "Sets", "the", "starting", "angle", "and", "angular", "extent", "of", "this", "arc", "using", "two", "sets", "of", "coordinates", ".", "The", "first", "set", "of", "coordinates", "is", "used", "to", "determine", "the", "angle", "of", "the", "starting", "po...
train
https://github.com/samskivert/pythagoras/blob/b8fea743ee8a7d742ad9c06ee4f11f50571fbd32/src/main/java/pythagoras/f/Arc.java#L212-L223
puniverse/capsule
capsule-util/src/main/java/co/paralleluniverse/capsule/Jar.java
Jar.addEntry
public Jar addEntry(Path path, InputStream is) throws IOException { """ Adds an entry to this JAR. @param path the entry's path within the JAR @param is the entry's content @return {@code this} """ return addEntry(path != null ? path.toString() : "", is); }
java
public Jar addEntry(Path path, InputStream is) throws IOException { return addEntry(path != null ? path.toString() : "", is); }
[ "public", "Jar", "addEntry", "(", "Path", "path", ",", "InputStream", "is", ")", "throws", "IOException", "{", "return", "addEntry", "(", "path", "!=", "null", "?", "path", ".", "toString", "(", ")", ":", "\"\"", ",", "is", ")", ";", "}" ]
Adds an entry to this JAR. @param path the entry's path within the JAR @param is the entry's content @return {@code this}
[ "Adds", "an", "entry", "to", "this", "JAR", "." ]
train
https://github.com/puniverse/capsule/blob/291a54e501a32aaf0284707b8c1fbff6a566822b/capsule-util/src/main/java/co/paralleluniverse/capsule/Jar.java#L321-L323
paypal/SeLion
dataproviders/src/main/java/com/paypal/selion/platform/dataprovider/impl/ReflectionUtils.java
ReflectionUtils.instantiatePrimitiveObject
public static Object instantiatePrimitiveObject(Class<?> type, Object objectToInvokeUpon, String valueToAssign) { """ This helper method facilitates creation of primitive data type object and initialize it with the provided value. @param type The type to instantiate. It has to be only a primitive data type [ s...
java
public static Object instantiatePrimitiveObject(Class<?> type, Object objectToInvokeUpon, String valueToAssign) { logger.entering(new Object[] { type, objectToInvokeUpon, valueToAssign }); validateParams(type, objectToInvokeUpon, valueToAssign); checkArgument(type.isPrimitive(), type + " is NOT...
[ "public", "static", "Object", "instantiatePrimitiveObject", "(", "Class", "<", "?", ">", "type", ",", "Object", "objectToInvokeUpon", ",", "String", "valueToAssign", ")", "{", "logger", ".", "entering", "(", "new", "Object", "[", "]", "{", "type", ",", "obje...
This helper method facilitates creation of primitive data type object and initialize it with the provided value. @param type The type to instantiate. It has to be only a primitive data type [ such as int, float, boolean etc.,] @param objectToInvokeUpon The object upon which the invocation is to be carried out. @param ...
[ "This", "helper", "method", "facilitates", "creation", "of", "primitive", "data", "type", "object", "and", "initialize", "it", "with", "the", "provided", "value", "." ]
train
https://github.com/paypal/SeLion/blob/694d12d0df76db48d0360b16192770c6a4fbdfd2/dataproviders/src/main/java/com/paypal/selion/platform/dataprovider/impl/ReflectionUtils.java#L194-L207
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/utils/files/FileUtilities.java
FileUtilities.writeFile
public static void writeFile( List<String> lines, String filePath ) throws IOException { """ Write a list of lines to a file. @param lines the list of lines to write. @param filePath the path to the file to write to. @throws IOException """ writeFile(lines, new File(filePath)); }
java
public static void writeFile( List<String> lines, String filePath ) throws IOException { writeFile(lines, new File(filePath)); }
[ "public", "static", "void", "writeFile", "(", "List", "<", "String", ">", "lines", ",", "String", "filePath", ")", "throws", "IOException", "{", "writeFile", "(", "lines", ",", "new", "File", "(", "filePath", ")", ")", ";", "}" ]
Write a list of lines to a file. @param lines the list of lines to write. @param filePath the path to the file to write to. @throws IOException
[ "Write", "a", "list", "of", "lines", "to", "a", "file", "." ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/utils/files/FileUtilities.java#L233-L235
khuxtable/seaglass
src/main/java/com/seaglasslookandfeel/ui/SeaGlassTabbedPaneUI.java
SeaGlassTabbedPaneUI.getContext
private SeaGlassContext getContext(JComponent c, Region subregion, int state) { """ Create a SynthContext for the component, subregion, and state. @param c the component. @param subregion the subregion. @param state the state. @return the newly created SynthContext. """ SynthStyl...
java
private SeaGlassContext getContext(JComponent c, Region subregion, int state) { SynthStyle style = null; Class klass = SeaGlassContext.class; if (subregion == Region.TABBED_PANE_TAB) { style = tabStyle; } else if (subregion == Region.TABBED_PANE_TAB_AREA) { ...
[ "private", "SeaGlassContext", "getContext", "(", "JComponent", "c", ",", "Region", "subregion", ",", "int", "state", ")", "{", "SynthStyle", "style", "=", "null", ";", "Class", "klass", "=", "SeaGlassContext", ".", "class", ";", "if", "(", "subregion", "==",...
Create a SynthContext for the component, subregion, and state. @param c the component. @param subregion the subregion. @param state the state. @return the newly created SynthContext.
[ "Create", "a", "SynthContext", "for", "the", "component", "subregion", "and", "state", "." ]
train
https://github.com/khuxtable/seaglass/blob/f25ecba622923d7b29b64cb7d6068dd8005989b3/src/main/java/com/seaglasslookandfeel/ui/SeaGlassTabbedPaneUI.java#L441-L456
nulab/backlog4j
src/main/java/com/nulabinc/backlog4j/api/option/CreateIssueParams.java
CreateIssueParams.customFieldOtherValueMap
public CreateIssueParams customFieldOtherValueMap(Map<Long, String> customFieldOtherValueMap) { """ Sets the other value for radio or checkbox type custom field with Map @param customFieldOtherValueMap set of the custom field identifiers and the other value @return CreateIssueParams instance """ Se...
java
public CreateIssueParams customFieldOtherValueMap(Map<Long, String> customFieldOtherValueMap) { Set<Long> keySet = customFieldOtherValueMap.keySet(); for (Long key : keySet) { parameters.add(new NameValuePair("customField_" + key.toString() + "_otherValue", customFieldOtherValueMap.get(key))...
[ "public", "CreateIssueParams", "customFieldOtherValueMap", "(", "Map", "<", "Long", ",", "String", ">", "customFieldOtherValueMap", ")", "{", "Set", "<", "Long", ">", "keySet", "=", "customFieldOtherValueMap", ".", "keySet", "(", ")", ";", "for", "(", "Long", ...
Sets the other value for radio or checkbox type custom field with Map @param customFieldOtherValueMap set of the custom field identifiers and the other value @return CreateIssueParams instance
[ "Sets", "the", "other", "value", "for", "radio", "or", "checkbox", "type", "custom", "field", "with", "Map" ]
train
https://github.com/nulab/backlog4j/blob/862ae0586ad808b2ec413f665b8dfc0c9a107b4e/src/main/java/com/nulabinc/backlog4j/api/option/CreateIssueParams.java#L671-L677
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/collection/impl/queue/QueueContainer.java
QueueContainer.txnPollBackupReserve
public void txnPollBackupReserve(long itemId, String transactionId) { """ Makes a reservation for a poll operation. Should be executed as a part of the prepare phase for a transactional queue poll on the partition backup replica. The ID of the item being polled is determined by the partition owner. @param i...
java
public void txnPollBackupReserve(long itemId, String transactionId) { QueueItem item = getBackupMap().remove(itemId); if (item != null) { txMap.put(itemId, new TxQueueItem(item).setPollOperation(true).setTransactionId(transactionId)); return; } if (txMap.remove(it...
[ "public", "void", "txnPollBackupReserve", "(", "long", "itemId", ",", "String", "transactionId", ")", "{", "QueueItem", "item", "=", "getBackupMap", "(", ")", ".", "remove", "(", "itemId", ")", ";", "if", "(", "item", "!=", "null", ")", "{", "txMap", "."...
Makes a reservation for a poll operation. Should be executed as a part of the prepare phase for a transactional queue poll on the partition backup replica. The ID of the item being polled is determined by the partition owner. @param itemId the ID of the reserved item to be polled @param transactionId the transa...
[ "Makes", "a", "reservation", "for", "a", "poll", "operation", ".", "Should", "be", "executed", "as", "a", "part", "of", "the", "prepare", "phase", "for", "a", "transactional", "queue", "poll", "on", "the", "partition", "backup", "replica", ".", "The", "ID"...
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/collection/impl/queue/QueueContainer.java#L216-L225
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/namespace/NamespaceContextBuilder.java
NamespaceContextBuilder.buildContext
public NamespaceContext buildContext(Message receivedMessage, Map<String, String> namespaces) { """ Construct a basic namespace context from the received message and explicit namespace mappings. @param receivedMessage the actual message received. @param namespaces explicit namespace mappings for this constructio...
java
public NamespaceContext buildContext(Message receivedMessage, Map<String, String> namespaces) { SimpleNamespaceContext simpleNamespaceContext = new SimpleNamespaceContext(); //first add default namespace definitions if (namespaceMappings.size() > 0) { simpleNamespaceContext....
[ "public", "NamespaceContext", "buildContext", "(", "Message", "receivedMessage", ",", "Map", "<", "String", ",", "String", ">", "namespaces", ")", "{", "SimpleNamespaceContext", "simpleNamespaceContext", "=", "new", "SimpleNamespaceContext", "(", ")", ";", "//first ad...
Construct a basic namespace context from the received message and explicit namespace mappings. @param receivedMessage the actual message received. @param namespaces explicit namespace mappings for this construction. @return the constructed namespace context.
[ "Construct", "a", "basic", "namespace", "context", "from", "the", "received", "message", "and", "explicit", "namespace", "mappings", "." ]
train
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/namespace/NamespaceContextBuilder.java#L52-L76
threerings/nenya
core/src/main/java/com/threerings/miso/client/MisoScenePanel.java
MisoScenePanel.getFullCoords
public Point getFullCoords (int x, int y) { """ Converts the supplied screen coordinates to full coordinates. """ return MisoUtil.screenToFull(_metrics, x, y, new Point()); }
java
public Point getFullCoords (int x, int y) { return MisoUtil.screenToFull(_metrics, x, y, new Point()); }
[ "public", "Point", "getFullCoords", "(", "int", "x", ",", "int", "y", ")", "{", "return", "MisoUtil", ".", "screenToFull", "(", "_metrics", ",", "x", ",", "y", ",", "new", "Point", "(", ")", ")", ";", "}" ]
Converts the supplied screen coordinates to full coordinates.
[ "Converts", "the", "supplied", "screen", "coordinates", "to", "full", "coordinates", "." ]
train
https://github.com/threerings/nenya/blob/3165a012fd859009db3367f87bd2a5b820cc760a/core/src/main/java/com/threerings/miso/client/MisoScenePanel.java#L327-L330
youngmonkeys/ezyfox-sfs2x
src/main/java/com/tvd12/ezyfox/sfs2x/data/impl/SimpleTransformer.java
SimpleTransformer.transformArrayObject
protected SFSDataWrapper transformArrayObject(Object value) { """ Transform a java pojo object array to sfsarray @param value the pojo object array @return a SFSDataWrapper object """ int length = ArrayUtils.getLength(value); if(length == 0) return new SFSDataWrapper(SFSDataTyp...
java
protected SFSDataWrapper transformArrayObject(Object value) { int length = ArrayUtils.getLength(value); if(length == 0) return new SFSDataWrapper(SFSDataType.NULL, null); ISFSArray sfsarray = new SFSArray(); for(Object obj : (Object[])value) sfsarray.add(transfor...
[ "protected", "SFSDataWrapper", "transformArrayObject", "(", "Object", "value", ")", "{", "int", "length", "=", "ArrayUtils", ".", "getLength", "(", "value", ")", ";", "if", "(", "length", "==", "0", ")", "return", "new", "SFSDataWrapper", "(", "SFSDataType", ...
Transform a java pojo object array to sfsarray @param value the pojo object array @return a SFSDataWrapper object
[ "Transform", "a", "java", "pojo", "object", "array", "to", "sfsarray" ]
train
https://github.com/youngmonkeys/ezyfox-sfs2x/blob/7e004033a3b551c3ae970a0c8f45db7b1ec144de/src/main/java/com/tvd12/ezyfox/sfs2x/data/impl/SimpleTransformer.java#L112-L120
Alluxio/alluxio
core/server/master/src/main/java/alluxio/master/file/meta/InodeLockList.java
InodeLockList.lockEdge
public void lockEdge(String childName, LockMode mode) { """ Locks an edge leading out of the last inode in the list. For example, if the lock list is [a, a->b, b], lockEdge(c) will add b->c to the list, resulting in [a, a->b, b, b->c]. @param childName the child to lock @param mode the mode to lock in ...
java
public void lockEdge(String childName, LockMode mode) { Preconditions.checkState(endsInInode()); Preconditions.checkState(mLockMode == LockMode.READ); lockEdgeInternal(childName, mode); mLockMode = mode; }
[ "public", "void", "lockEdge", "(", "String", "childName", ",", "LockMode", "mode", ")", "{", "Preconditions", ".", "checkState", "(", "endsInInode", "(", ")", ")", ";", "Preconditions", ".", "checkState", "(", "mLockMode", "==", "LockMode", ".", "READ", ")",...
Locks an edge leading out of the last inode in the list. For example, if the lock list is [a, a->b, b], lockEdge(c) will add b->c to the list, resulting in [a, a->b, b, b->c]. @param childName the child to lock @param mode the mode to lock in
[ "Locks", "an", "edge", "leading", "out", "of", "the", "last", "inode", "in", "the", "list", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/server/master/src/main/java/alluxio/master/file/meta/InodeLockList.java#L110-L116
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/Graphics.java
Graphics.setWorldClip
public void setWorldClip(float x, float y, float width, float height) { """ Set clipping that controls which areas of the world will be drawn to. Note that world clip is different from standard screen clip in that it's defined in the space of the current world coordinate - i.e. it's affected by translate, rotat...
java
public void setWorldClip(float x, float y, float width, float height) { predraw(); worldClipRecord = new Rectangle(x, y, width, height); GL.glEnable(SGL.GL_CLIP_PLANE0); worldClip.put(1).put(0).put(0).put(-x).flip(); GL.glClipPlane(SGL.GL_CLIP_PLANE0, worldClip); GL.glEnable(SGL.GL_CLIP_PLANE1); ...
[ "public", "void", "setWorldClip", "(", "float", "x", ",", "float", "y", ",", "float", "width", ",", "float", "height", ")", "{", "predraw", "(", ")", ";", "worldClipRecord", "=", "new", "Rectangle", "(", "x", ",", "y", ",", "width", ",", "height", ")...
Set clipping that controls which areas of the world will be drawn to. Note that world clip is different from standard screen clip in that it's defined in the space of the current world coordinate - i.e. it's affected by translate, rotate, scale etc. @param x The x coordinate of the top left corner of the allowed area ...
[ "Set", "clipping", "that", "controls", "which", "areas", "of", "the", "world", "will", "be", "drawn", "to", ".", "Note", "that", "world", "clip", "is", "different", "from", "standard", "screen", "clip", "in", "that", "it", "s", "defined", "in", "the", "s...
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/Graphics.java#L720-L738
xcesco/kripton
kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyBeanHelper.java
ModifyBeanHelper.extractSQLForJavaDoc
private String extractSQLForJavaDoc(final SQLiteModelMethod method) { """ Extract SQL for java doc. @param method the method @return the string """ final One<Boolean> usedInWhere = new One<>(false); String sqlForJavaDoc = JQLChecker.getInstance().replace(method, method.jql, new JQLReplacerListenerImpl...
java
private String extractSQLForJavaDoc(final SQLiteModelMethod method) { final One<Boolean> usedInWhere = new One<>(false); String sqlForJavaDoc = JQLChecker.getInstance().replace(method, method.jql, new JQLReplacerListenerImpl(method) { @Override public String onColumnNameToUpdate(String columnName) { retu...
[ "private", "String", "extractSQLForJavaDoc", "(", "final", "SQLiteModelMethod", "method", ")", "{", "final", "One", "<", "Boolean", ">", "usedInWhere", "=", "new", "One", "<>", "(", "false", ")", ";", "String", "sqlForJavaDoc", "=", "JQLChecker", ".", "getInst...
Extract SQL for java doc. @param method the method @return the string
[ "Extract", "SQL", "for", "java", "doc", "." ]
train
https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyBeanHelper.java#L416-L459
RuedigerMoeller/kontraktor
modules/kontraktor-http/src/main/java/org/nustaq/utils/AsyncHttpActor.java
AsyncHttpActor.setLimits
public void setLimits(int maxConPerRoute, int maxConTotal) { """ overwrite static limits, WARNING: careful when accessing the singleton @param maxConPerRoute @param maxConTotal """ this.maxConnPerRoute = maxConPerRoute; this.maxConnTotal = maxConTotal; if ( asyncHttpClient != null )...
java
public void setLimits(int maxConPerRoute, int maxConTotal) { this.maxConnPerRoute = maxConPerRoute; this.maxConnTotal = maxConTotal; if ( asyncHttpClient != null ) { try { asyncHttpClient.close(); } catch (IOException e) { e.printStackTrace...
[ "public", "void", "setLimits", "(", "int", "maxConPerRoute", ",", "int", "maxConTotal", ")", "{", "this", ".", "maxConnPerRoute", "=", "maxConPerRoute", ";", "this", ".", "maxConnTotal", "=", "maxConTotal", ";", "if", "(", "asyncHttpClient", "!=", "null", ")",...
overwrite static limits, WARNING: careful when accessing the singleton @param maxConPerRoute @param maxConTotal
[ "overwrite", "static", "limits", "WARNING", ":", "careful", "when", "accessing", "the", "singleton" ]
train
https://github.com/RuedigerMoeller/kontraktor/blob/d5f3817f9476f3786187b8ef00400b7a4f25a404/modules/kontraktor-http/src/main/java/org/nustaq/utils/AsyncHttpActor.java#L266-L277
jboss/jboss-jstl-api_spec
src/main/java/org/apache/taglibs/standard/tag/common/xml/XalanUtil.java
XalanUtil.getContext
public static XPathContext getContext(Tag child, PageContext pageContext) { """ Return the XPathContext to be used for evaluating expressions. If the child is nested withing a forEach tag its iteration context is used. Otherwise, a new context is created based on an empty Document. @param child the tag whos...
java
public static XPathContext getContext(Tag child, PageContext pageContext) { // if within a forEach tag, use its context ForEachTag forEachTag = (ForEachTag) TagSupport.findAncestorWithClass(child, ForEachTag.class); if (forEachTag != null) { return forEachTag.getContext(); } ...
[ "public", "static", "XPathContext", "getContext", "(", "Tag", "child", ",", "PageContext", "pageContext", ")", "{", "// if within a forEach tag, use its context", "ForEachTag", "forEachTag", "=", "(", "ForEachTag", ")", "TagSupport", ".", "findAncestorWithClass", "(", "...
Return the XPathContext to be used for evaluating expressions. If the child is nested withing a forEach tag its iteration context is used. Otherwise, a new context is created based on an empty Document. @param child the tag whose context should be returned @param pageContext the current page context @return the XPath...
[ "Return", "the", "XPathContext", "to", "be", "used", "for", "evaluating", "expressions", "." ]
train
https://github.com/jboss/jboss-jstl-api_spec/blob/4ad412ae5be1ae606b8d33c188cb3d98bfcbe84c/src/main/java/org/apache/taglibs/standard/tag/common/xml/XalanUtil.java#L47-L61
structr/structr
structr-core/src/main/java/org/structr/core/graph/NodeServiceCommand.java
NodeServiceCommand.bulkTransaction
public void bulkTransaction(final SecurityContext securityContext, final long commitCount, final StructrTransaction transaction, final Predicate<Long> stopCondition) throws FrameworkException { """ Executes the given transaction until the stop condition evaluates to <b>true</b>. @param securityContext @param ...
java
public void bulkTransaction(final SecurityContext securityContext, final long commitCount, final StructrTransaction transaction, final Predicate<Long> stopCondition) throws FrameworkException { final App app = StructrApp.getInstance(securityContext); final AtomicLong objectCount = new AtomicLong(0L)...
[ "public", "void", "bulkTransaction", "(", "final", "SecurityContext", "securityContext", ",", "final", "long", "commitCount", ",", "final", "StructrTransaction", "transaction", ",", "final", "Predicate", "<", "Long", ">", "stopCondition", ")", "throws", "FrameworkExce...
Executes the given transaction until the stop condition evaluates to <b>true</b>. @param securityContext @param commitCount the number of executions after which the transaction is committed @param transaction the operation to execute @param stopCondition @throws FrameworkException
[ "Executes", "the", "given", "transaction", "until", "the", "stop", "condition", "evaluates", "to", "<b", ">", "true<", "/", "b", ">", "." ]
train
https://github.com/structr/structr/blob/c111a1d0c0201c7fea5574ed69aa5a5053185a97/structr-core/src/main/java/org/structr/core/graph/NodeServiceCommand.java#L152-L176
btrplace/scheduler
json/src/main/java/org/btrplace/json/plan/ActionConverter.java
ActionConverter.attachEvents
private void attachEvents(Action a, JSONObject in) throws JSONConverterException { """ Decorate the action with optional events. @param a the action to decorate @param in the JSON message containing the event at the "hook" key @throws JSONConverterException in case of error """ if (in.containsKey...
java
private void attachEvents(Action a, JSONObject in) throws JSONConverterException { if (in.containsKey(HOOK_LABEL)) { JSONObject hooks = (JSONObject) in.get(HOOK_LABEL); for (Map.Entry<String, Object> e : hooks.entrySet()) { String k = e.getKey(); try { ...
[ "private", "void", "attachEvents", "(", "Action", "a", ",", "JSONObject", "in", ")", "throws", "JSONConverterException", "{", "if", "(", "in", ".", "containsKey", "(", "HOOK_LABEL", ")", ")", "{", "JSONObject", "hooks", "=", "(", "JSONObject", ")", "in", "...
Decorate the action with optional events. @param a the action to decorate @param in the JSON message containing the event at the "hook" key @throws JSONConverterException in case of error
[ "Decorate", "the", "action", "with", "optional", "events", "." ]
train
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/json/src/main/java/org/btrplace/json/plan/ActionConverter.java#L163-L178
threerings/narya
core/src/main/java/com/threerings/presents/dobj/DObject.java
DObject.requestOidAdd
protected void requestOidAdd (String name, OidList list, int oid) { """ Calls by derived instances when an oid adder method was called. """ // if we're on the authoritative server, we update the set immediately boolean applyImmediately = isAuthoritative(); if (applyImmediately) { ...
java
protected void requestOidAdd (String name, OidList list, int oid) { // if we're on the authoritative server, we update the set immediately boolean applyImmediately = isAuthoritative(); if (applyImmediately) { list.add(oid); } postEvent(new ObjectAddedEvent(_oid, n...
[ "protected", "void", "requestOidAdd", "(", "String", "name", ",", "OidList", "list", ",", "int", "oid", ")", "{", "// if we're on the authoritative server, we update the set immediately", "boolean", "applyImmediately", "=", "isAuthoritative", "(", ")", ";", "if", "(", ...
Calls by derived instances when an oid adder method was called.
[ "Calls", "by", "derived", "instances", "when", "an", "oid", "adder", "method", "was", "called", "." ]
train
https://github.com/threerings/narya/blob/5b01edc8850ed0c32d004b4049e1ac4a02027ede/core/src/main/java/com/threerings/presents/dobj/DObject.java#L851-L859
CenturyLinkCloud/mdw
mdw-common/src/com/centurylink/mdw/image/Implementors.java
Implementors.getImpl
private ActivityImplementor getImpl(File file) throws IOException { """ For annotation-based implementors. Custom impl classes cannot be compiled, so this crude parsing mechanism is used to determine image icon. Kotlin limitation: file name must be the same as impl class name. """ String contents = ...
java
private ActivityImplementor getImpl(File file) throws IOException { String contents = new String(Files.readAllBytes(file.toPath())); Matcher matcher = ACTIVITY_ANNOTATION.matcher(contents); if (matcher.find()) { // only implClass and image are needed (other values are hardcoded) ...
[ "private", "ActivityImplementor", "getImpl", "(", "File", "file", ")", "throws", "IOException", "{", "String", "contents", "=", "new", "String", "(", "Files", ".", "readAllBytes", "(", "file", ".", "toPath", "(", ")", ")", ")", ";", "Matcher", "matcher", "...
For annotation-based implementors. Custom impl classes cannot be compiled, so this crude parsing mechanism is used to determine image icon. Kotlin limitation: file name must be the same as impl class name.
[ "For", "annotation", "-", "based", "implementors", ".", "Custom", "impl", "classes", "cannot", "be", "compiled", "so", "this", "crude", "parsing", "mechanism", "is", "used", "to", "determine", "image", "icon", ".", "Kotlin", "limitation", ":", "file", "name", ...
train
https://github.com/CenturyLinkCloud/mdw/blob/91167fe65a25a5d7022cdcf8b0fae8506f5b87ce/mdw-common/src/com/centurylink/mdw/image/Implementors.java#L72-L92
UrielCh/ovh-java-sdk
ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java
ApiOvhCloud.project_serviceName_usage_history_usageId_GET
public OvhUsageHistoryDetail project_serviceName_usage_history_usageId_GET(String serviceName, String usageId) throws IOException { """ Usage information details REST: GET /cloud/project/{serviceName}/usage/history/{usageId} @param serviceName [required] Service name @param usageId [required] Usage id """...
java
public OvhUsageHistoryDetail project_serviceName_usage_history_usageId_GET(String serviceName, String usageId) throws IOException { String qPath = "/cloud/project/{serviceName}/usage/history/{usageId}"; StringBuilder sb = path(qPath, serviceName, usageId); String resp = exec(qPath, "GET", sb.toString(), null); ...
[ "public", "OvhUsageHistoryDetail", "project_serviceName_usage_history_usageId_GET", "(", "String", "serviceName", ",", "String", "usageId", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/cloud/project/{serviceName}/usage/history/{usageId}\"", ";", "StringBuilder",...
Usage information details REST: GET /cloud/project/{serviceName}/usage/history/{usageId} @param serviceName [required] Service name @param usageId [required] Usage id
[ "Usage", "information", "details" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java#L1726-L1731
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/workspace/VoiceApi.java
VoiceApi.redirectCall
public void redirectCall( String connId, String destination, KeyValueCollection reasons, KeyValueCollection extensions ) throws WorkspaceApiException { """ Redirect a call to the specified destination @param connId The connection ID of the call to redirect....
java
public void redirectCall( String connId, String destination, KeyValueCollection reasons, KeyValueCollection extensions ) throws WorkspaceApiException { try { VoicecallsidredirectData redirectData = new VoicecallsidredirectData(); ...
[ "public", "void", "redirectCall", "(", "String", "connId", ",", "String", "destination", ",", "KeyValueCollection", "reasons", ",", "KeyValueCollection", "extensions", ")", "throws", "WorkspaceApiException", "{", "try", "{", "VoicecallsidredirectData", "redirectData", "...
Redirect a call to the specified destination @param connId The connection ID of the call to redirect. @param destination The number where Workspace should redirect the call. @param reasons Information on causes for, and results of, actions taken by the user of the current DN. For details about reasons, refer to the [*G...
[ "Redirect", "a", "call", "to", "the", "specified", "destination" ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/workspace/VoiceApi.java#L1215-L1234
WiQuery/wiquery
wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/tabs/Tabs.java
Tabs.parseInteger
private int parseInteger(String value, int defaultValue) { """ Parses an integer. @param value The value to parse. @return The parsed integer. """ try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; } }
java
private int parseInteger(String value, int defaultValue) { try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; } }
[ "private", "int", "parseInteger", "(", "String", "value", ",", "int", "defaultValue", ")", "{", "try", "{", "return", "Integer", ".", "parseInt", "(", "value", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "return", "defaultValue", "...
Parses an integer. @param value The value to parse. @return The parsed integer.
[ "Parses", "an", "integer", "." ]
train
https://github.com/WiQuery/wiquery/blob/1b8d60c7a3c37b90fd68c9cd0ff97178fcbcbb08/wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/tabs/Tabs.java#L278-L288
umeding/fuzzer
src/main/java/com/uwemeding/fuzzer/Program.java
Program.addInput
public <T extends Number> Variable addInput(String name, T from, T to, T step) { """ Add an input variable to this program. <p> @param <T> the type @param name the variable name @param from start of interval @param to end of interval @param step the step @return the variable """ return addInput(new...
java
public <T extends Number> Variable addInput(String name, T from, T to, T step) { return addInput(new Variable(name, from, to, step)); }
[ "public", "<", "T", "extends", "Number", ">", "Variable", "addInput", "(", "String", "name", ",", "T", "from", ",", "T", "to", ",", "T", "step", ")", "{", "return", "addInput", "(", "new", "Variable", "(", "name", ",", "from", ",", "to", ",", "step...
Add an input variable to this program. <p> @param <T> the type @param name the variable name @param from start of interval @param to end of interval @param step the step @return the variable
[ "Add", "an", "input", "variable", "to", "this", "program", ".", "<p", ">" ]
train
https://github.com/umeding/fuzzer/blob/e8aa46313bb1d1328865f26f99455124aede828c/src/main/java/com/uwemeding/fuzzer/Program.java#L297-L299
buschmais/jqa-core-framework
report/src/main/java/com/buschmais/jqassistant/core/report/impl/XmlReportPlugin.java
XmlReportPlugin.run
private void run(XmlOperation operation) throws ReportException { """ Defines an operation to write XML elements. @param operation The operation. @throws ReportException If writing fails. """ try { operation.run(); } catch (XMLStreamException | IOException e) { thr...
java
private void run(XmlOperation operation) throws ReportException { try { operation.run(); } catch (XMLStreamException | IOException e) { throw new ReportException("Cannot write to XML report.", e); } }
[ "private", "void", "run", "(", "XmlOperation", "operation", ")", "throws", "ReportException", "{", "try", "{", "operation", ".", "run", "(", ")", ";", "}", "catch", "(", "XMLStreamException", "|", "IOException", "e", ")", "{", "throw", "new", "ReportExceptio...
Defines an operation to write XML elements. @param operation The operation. @throws ReportException If writing fails.
[ "Defines", "an", "operation", "to", "write", "XML", "elements", "." ]
train
https://github.com/buschmais/jqa-core-framework/blob/0e63ff509cfe52f9063539a23d5f9f183b2ea4a5/report/src/main/java/com/buschmais/jqassistant/core/report/impl/XmlReportPlugin.java#L314-L320
eserating/siren4j
src/main/java/com/google/code/siren4j/util/ReflectionUtils.java
ReflectionUtils.getFieldInfoByEffectiveName
public static ReflectedInfo getFieldInfoByEffectiveName(List<ReflectedInfo> infoList, String name) { """ Helper method to find the field info by its effective name from the passed in list of info. @param infoList cannot be <code>null</code>. @param name cannot be <code>null</code> or empty. @return the info o...
java
public static ReflectedInfo getFieldInfoByEffectiveName(List<ReflectedInfo> infoList, String name) { if (infoList == null) { throw new IllegalArgumentException("infoList cannot be null."); } if (StringUtils.isBlank(name)) { throw new IllegalArgumentException("name ca...
[ "public", "static", "ReflectedInfo", "getFieldInfoByEffectiveName", "(", "List", "<", "ReflectedInfo", ">", "infoList", ",", "String", "name", ")", "{", "if", "(", "infoList", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"infoList can...
Helper method to find the field info by its effective name from the passed in list of info. @param infoList cannot be <code>null</code>. @param name cannot be <code>null</code> or empty. @return the info or <code>null</code> if not found.
[ "Helper", "method", "to", "find", "the", "field", "info", "by", "its", "effective", "name", "from", "the", "passed", "in", "list", "of", "info", "." ]
train
https://github.com/eserating/siren4j/blob/f12e3185076ad920352ec4f6eb2a071a3683505f/src/main/java/com/google/code/siren4j/util/ReflectionUtils.java#L476-L491
UrielCh/ovh-java-sdk
ovh-java-sdk-packxdsl/src/main/java/net/minidev/ovh/api/ApiOvhPackxdsl.java
ApiOvhPackxdsl.packName_serviceInfos_GET
public OvhService packName_serviceInfos_GET(String packName) throws IOException { """ Get this object properties REST: GET /pack/xdsl/{packName}/serviceInfos @param packName [required] The internal name of your pack """ String qPath = "/pack/xdsl/{packName}/serviceInfos"; StringBuilder sb = path(qPath,...
java
public OvhService packName_serviceInfos_GET(String packName) throws IOException { String qPath = "/pack/xdsl/{packName}/serviceInfos"; StringBuilder sb = path(qPath, packName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhService.class); }
[ "public", "OvhService", "packName_serviceInfos_GET", "(", "String", "packName", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/pack/xdsl/{packName}/serviceInfos\"", ";", "StringBuilder", "sb", "=", "path", "(", "qPath", ",", "packName", ")", ";", "St...
Get this object properties REST: GET /pack/xdsl/{packName}/serviceInfos @param packName [required] The internal name of your pack
[ "Get", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-packxdsl/src/main/java/net/minidev/ovh/api/ApiOvhPackxdsl.java#L446-L451
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.getCertificatePolicyAsync
public Observable<CertificatePolicy> getCertificatePolicyAsync(String vaultBaseUrl, String certificateName) { """ Lists the policy for a certificate. The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permi...
java
public Observable<CertificatePolicy> getCertificatePolicyAsync(String vaultBaseUrl, String certificateName) { return getCertificatePolicyWithServiceResponseAsync(vaultBaseUrl, certificateName).map(new Func1<ServiceResponse<CertificatePolicy>, CertificatePolicy>() { @Override public Certi...
[ "public", "Observable", "<", "CertificatePolicy", ">", "getCertificatePolicyAsync", "(", "String", "vaultBaseUrl", ",", "String", "certificateName", ")", "{", "return", "getCertificatePolicyWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "certificateName", ")", ".", ...
Lists the policy for a certificate. The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param certificateName The name...
[ "Lists", "the", "policy", "for", "a", "certificate", ".", "The", "GetCertificatePolicy", "operation", "returns", "the", "specified", "certificate", "policy", "resources", "in", "the", "specified", "key", "vault", ".", "This", "operation", "requires", "the", "certi...
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#L7179-L7186
alkacon/opencms-core
src/org/opencms/db/CmsSecurityManager.java
CmsSecurityManager.removeAccessControlEntry
public void removeAccessControlEntry(CmsRequestContext context, CmsResource resource, CmsUUID principal) throws CmsException, CmsSecurityException { """ Removes an access control entry for a given resource and principal.<p> @param context the current request context @param resource the resource @param pri...
java
public void removeAccessControlEntry(CmsRequestContext context, CmsResource resource, CmsUUID principal) throws CmsException, CmsSecurityException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkOfflineProject(dbc); checkPermissions(dbc, resource, C...
[ "public", "void", "removeAccessControlEntry", "(", "CmsRequestContext", "context", ",", "CmsResource", "resource", ",", "CmsUUID", "principal", ")", "throws", "CmsException", ",", "CmsSecurityException", "{", "CmsDbContext", "dbc", "=", "m_dbContextFactory", ".", "getDb...
Removes an access control entry for a given resource and principal.<p> @param context the current request context @param resource the resource @param principal the id of the principal to remove the the access control entry for @throws CmsException if something goes wrong @throws CmsSecurityException if the user has i...
[ "Removes", "an", "access", "control", "entry", "for", "a", "given", "resource", "and", "principal", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsSecurityManager.java#L5548-L5567
JodaOrg/joda-time
src/main/java/org/joda/time/Interval.java
Interval.withPeriodBeforeEnd
public Interval withPeriodBeforeEnd(ReadablePeriod period) { """ Creates a new interval with the specified period before the end instant. @param period the period to subtract from the end to get the new start instant, null means zero @return an interval with the end from this interval and a calculated start @...
java
public Interval withPeriodBeforeEnd(ReadablePeriod period) { if (period == null) { return withDurationBeforeEnd(null); } Chronology chrono = getChronology(); long endMillis = getEndMillis(); long startMillis = chrono.add(period, endMillis, -1); return new Inte...
[ "public", "Interval", "withPeriodBeforeEnd", "(", "ReadablePeriod", "period", ")", "{", "if", "(", "period", "==", "null", ")", "{", "return", "withDurationBeforeEnd", "(", "null", ")", ";", "}", "Chronology", "chrono", "=", "getChronology", "(", ")", ";", "...
Creates a new interval with the specified period before the end instant. @param period the period to subtract from the end to get the new start instant, null means zero @return an interval with the end from this interval and a calculated start @throws IllegalArgumentException if the period is negative
[ "Creates", "a", "new", "interval", "with", "the", "specified", "period", "before", "the", "end", "instant", "." ]
train
https://github.com/JodaOrg/joda-time/blob/bd79f1c4245e79b3c2c56d7b04fde2a6e191fa42/src/main/java/org/joda/time/Interval.java#L552-L560
threerings/narya
core/src/main/java/com/threerings/crowd/chat/server/SpeakUtil.java
SpeakUtil.sendSpeak
public static void sendSpeak (DObject speakObj, Name speaker, String bundle, String message, byte mode) { """ Sends a speak notification to the specified place object originating with the specified speaker (the speaker optionally being a server entity that wishes to fake a "speak...
java
public static void sendSpeak (DObject speakObj, Name speaker, String bundle, String message, byte mode) { sendMessage(speakObj, new UserMessage(speaker, bundle, message, mode)); }
[ "public", "static", "void", "sendSpeak", "(", "DObject", "speakObj", ",", "Name", "speaker", ",", "String", "bundle", ",", "String", "message", ",", "byte", "mode", ")", "{", "sendMessage", "(", "speakObj", ",", "new", "UserMessage", "(", "speaker", ",", "...
Sends a speak notification to the specified place object originating with the specified speaker (the speaker optionally being a server entity that wishes to fake a "speak" message) and with the supplied message content. @param speakObj the object on which to generate the speak message. @param speaker the username of t...
[ "Sends", "a", "speak", "notification", "to", "the", "specified", "place", "object", "originating", "with", "the", "specified", "speaker", "(", "the", "speaker", "optionally", "being", "a", "server", "entity", "that", "wishes", "to", "fake", "a", "speak", "mess...
train
https://github.com/threerings/narya/blob/5b01edc8850ed0c32d004b4049e1ac4a02027ede/core/src/main/java/com/threerings/crowd/chat/server/SpeakUtil.java#L106-L110
BlueBrain/bluima
modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java
BlueAnnotationViewGenerator.processDocument
public void processDocument(File aInlineXmlDoc) throws TransformerException { """ Processes an annotated document using the docFrame.xsl stylsheet generated by a previous call to {@link processStyleMap(File)}. Generates a file named docView.html, which represents the HTML view of the annotated document. @par...
java
public void processDocument(File aInlineXmlDoc) throws TransformerException { // Generate document view HTML from Inline XML Transformer docHtmlTransformer = mTFactory .newTransformer(new StreamSource(new File(mOutputDir, "docFrame.xsl"))); docHtmlTransformer.transform( new StreamSource(aInlineXmlDoc), new ...
[ "public", "void", "processDocument", "(", "File", "aInlineXmlDoc", ")", "throws", "TransformerException", "{", "// Generate document view HTML from Inline XML", "Transformer", "docHtmlTransformer", "=", "mTFactory", ".", "newTransformer", "(", "new", "StreamSource", "(", "n...
Processes an annotated document using the docFrame.xsl stylsheet generated by a previous call to {@link processStyleMap(File)}. Generates a file named docView.html, which represents the HTML view of the annotated document. @param aInlineXmlDoc path to annotated document to be processed
[ "Processes", "an", "annotated", "document", "using", "the", "docFrame", ".", "xsl", "stylsheet", "generated", "by", "a", "previous", "call", "to", "{", "@link", "processStyleMap", "(", "File", ")", "}", ".", "Generates", "a", "file", "named", "docView", ".",...
train
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java#L219-L230
ManfredTremmel/gwt-commons-lang3
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
FieldUtils.readDeclaredField
public static Object readDeclaredField(final Object target, final String fieldName) throws IllegalAccessException { """ Reads the named {@code public} {@link Field}. Only the class of the specified object will be considered. @param target the object to reflect, must not be {@code null} @param fieldName the f...
java
public static Object readDeclaredField(final Object target, final String fieldName) throws IllegalAccessException { return readDeclaredField(target, fieldName, false); }
[ "public", "static", "Object", "readDeclaredField", "(", "final", "Object", "target", ",", "final", "String", "fieldName", ")", "throws", "IllegalAccessException", "{", "return", "readDeclaredField", "(", "target", ",", "fieldName", ",", "false", ")", ";", "}" ]
Reads the named {@code public} {@link Field}. Only the class of the specified object will be considered. @param target the object to reflect, must not be {@code null} @param fieldName the field name to obtain @return the value of the field @throws IllegalArgumentException if {@code target} is {@code null}, or the fiel...
[ "Reads", "the", "named", "{", "@code", "public", "}", "{", "@link", "Field", "}", ".", "Only", "the", "class", "of", "the", "specified", "object", "will", "be", "considered", "." ]
train
https://github.com/ManfredTremmel/gwt-commons-lang3/blob/9e2dfbbda3668cfa5d935fe76479d1426c294504/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java#L488-L490
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/X500Name.java
X500Name.generateRFC1779DN
private String generateRFC1779DN(Map<String, String> oidMap) { """ /* Dump the printable form of a distinguished name. Each relative name is separated from the next by a ",", and assertions in the relative names have "label=value" syntax. Uses RFC 1779 syntax (i.e. little-endian, comma separators) Valid ke...
java
private String generateRFC1779DN(Map<String, String> oidMap) { if (names.length == 1) { return names[0].toRFC1779String(oidMap); } StringBuilder sb = new StringBuilder(48); if (names != null) { for (int i = names.length - 1; i >= 0; i--) { if (i !...
[ "private", "String", "generateRFC1779DN", "(", "Map", "<", "String", ",", "String", ">", "oidMap", ")", "{", "if", "(", "names", ".", "length", "==", "1", ")", "{", "return", "names", "[", "0", "]", ".", "toRFC1779String", "(", "oidMap", ")", ";", "}...
/* Dump the printable form of a distinguished name. Each relative name is separated from the next by a ",", and assertions in the relative names have "label=value" syntax. Uses RFC 1779 syntax (i.e. little-endian, comma separators) Valid keywords from RFC 1779 are used. Additional keywords can be specified in the OID...
[ "/", "*", "Dump", "the", "printable", "form", "of", "a", "distinguished", "name", ".", "Each", "relative", "name", "is", "separated", "from", "the", "next", "by", "a", "and", "assertions", "in", "the", "relative", "names", "have", "label", "=", "value", ...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/X500Name.java#L1113-L1128
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/sql/SqlGeneratorDefaultImpl.java
SqlGeneratorDefaultImpl.toSQLClause
private String toSQLClause(SelectionCriteria c, ClassDescriptor cld) { """ Answer the SQL-Clause for a SelectionCriteria @param c SelectionCriteria @param cld ClassDescriptor """ String colName = toSqlClause(c.getAttribute(), cld); return colName + c.getClause() + " ? "; }
java
private String toSQLClause(SelectionCriteria c, ClassDescriptor cld) { String colName = toSqlClause(c.getAttribute(), cld); return colName + c.getClause() + " ? "; }
[ "private", "String", "toSQLClause", "(", "SelectionCriteria", "c", ",", "ClassDescriptor", "cld", ")", "{", "String", "colName", "=", "toSqlClause", "(", "c", ".", "getAttribute", "(", ")", ",", "cld", ")", ";", "return", "colName", "+", "c", ".", "getClau...
Answer the SQL-Clause for a SelectionCriteria @param c SelectionCriteria @param cld ClassDescriptor
[ "Answer", "the", "SQL", "-", "Clause", "for", "a", "SelectionCriteria" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/sql/SqlGeneratorDefaultImpl.java#L503-L507
Impetus/Kundera
src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/thrift/ThriftClientFactory.java
ThriftClientFactory.releaseConnection
void releaseConnection(ConnectionPool pool, Cassandra.Client conn) { """ Release connection. @param pool the pool @param conn the conn """ if (pool != null && conn != null) { pool.release(conn); } }
java
void releaseConnection(ConnectionPool pool, Cassandra.Client conn) { if (pool != null && conn != null) { pool.release(conn); } }
[ "void", "releaseConnection", "(", "ConnectionPool", "pool", ",", "Cassandra", ".", "Client", "conn", ")", "{", "if", "(", "pool", "!=", "null", "&&", "conn", "!=", "null", ")", "{", "pool", ".", "release", "(", "conn", ")", ";", "}", "}" ]
Release connection. @param pool the pool @param conn the conn
[ "Release", "connection", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/thrift/ThriftClientFactory.java#L315-L321
igniterealtime/Smack
smack-debug/src/main/java/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
EnhancedDebuggerWindow.connectionClosedOnError
static synchronized void connectionClosedOnError(EnhancedDebugger debugger, Exception e) { """ Notification that the connection was closed due to an exception. @param debugger the debugger whose connection was closed due to an exception. @param e the exception. """ int index = getInstance()....
java
static synchronized void connectionClosedOnError(EnhancedDebugger debugger, Exception e) { int index = getInstance().tabbedPane.indexOfComponent(debugger.tabbedPane); getInstance().tabbedPane.setToolTipTextAt( index, "XMPPConnection closed due to the exception: " + e.getM...
[ "static", "synchronized", "void", "connectionClosedOnError", "(", "EnhancedDebugger", "debugger", ",", "Exception", "e", ")", "{", "int", "index", "=", "getInstance", "(", ")", ".", "tabbedPane", ".", "indexOfComponent", "(", "debugger", ".", "tabbedPane", ")", ...
Notification that the connection was closed due to an exception. @param debugger the debugger whose connection was closed due to an exception. @param e the exception.
[ "Notification", "that", "the", "connection", "was", "closed", "due", "to", "an", "exception", "." ]
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-debug/src/main/java/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java#L186-L194
blinkfox/zealot
src/main/java/com/blinkfox/zealot/core/ZealotKhala.java
ZealotKhala.andMoreEqual
public ZealotKhala andMoreEqual(String field, Object value) { """ 生成带" AND "前缀大于等于查询的SQL片段. @param field 数据库字段 @param value 值 @return ZealotKhala实例 """ return this.doNormal(ZealotConst.AND_PREFIX, field, value, ZealotConst.GTE_SUFFIX, true); }
java
public ZealotKhala andMoreEqual(String field, Object value) { return this.doNormal(ZealotConst.AND_PREFIX, field, value, ZealotConst.GTE_SUFFIX, true); }
[ "public", "ZealotKhala", "andMoreEqual", "(", "String", "field", ",", "Object", "value", ")", "{", "return", "this", ".", "doNormal", "(", "ZealotConst", ".", "AND_PREFIX", ",", "field", ",", "value", ",", "ZealotConst", ".", "GTE_SUFFIX", ",", "true", ")", ...
生成带" AND "前缀大于等于查询的SQL片段. @param field 数据库字段 @param value 值 @return ZealotKhala实例
[ "生成带", "AND", "前缀大于等于查询的SQL片段", "." ]
train
https://github.com/blinkfox/zealot/blob/21b00fa3e4ed42188eef3116d494e112e7a4194c/src/main/java/com/blinkfox/zealot/core/ZealotKhala.java#L795-L797
evernote/android-job
library/src/main/java/com/evernote/android/job/WakeLockUtil.java
WakeLockUtil.startWakefulService
public static ComponentName startWakefulService(Context context, Intent intent) { """ Do a {@link android.content.Context#startService(android.content.Intent) Context.startService}, but holding a wake lock while the service starts. This will modify the Intent to hold an extra identifying the wake lock; when the...
java
public static ComponentName startWakefulService(Context context, Intent intent) { synchronized (ACTIVE_WAKE_LOCKS) { int id = nextId; nextId++; if (nextId <= 0) { nextId = 1; } intent.putExtra(EXTRA_WAKE_LOCK_ID, id); Compo...
[ "public", "static", "ComponentName", "startWakefulService", "(", "Context", "context", ",", "Intent", "intent", ")", "{", "synchronized", "(", "ACTIVE_WAKE_LOCKS", ")", "{", "int", "id", "=", "nextId", ";", "nextId", "++", ";", "if", "(", "nextId", "<=", "0"...
Do a {@link android.content.Context#startService(android.content.Intent) Context.startService}, but holding a wake lock while the service starts. This will modify the Intent to hold an extra identifying the wake lock; when the service receives it in {@link android.app.Service#onStartCommand Service.onStartCommand}, it ...
[ "Do", "a", "{", "@link", "android", ".", "content", ".", "Context#startService", "(", "android", ".", "content", ".", "Intent", ")", "Context", ".", "startService", "}", "but", "holding", "a", "wake", "lock", "while", "the", "service", "starts", ".", "This...
train
https://github.com/evernote/android-job/blob/5ae3d776ad9d80b5b7f60ae3e382d44d0d193faf/library/src/main/java/com/evernote/android/job/WakeLockUtil.java#L102-L124
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/classify/LinearClassifier.java
LinearClassifier.getFeatureCount
public int getFeatureCount(double threshold, boolean useMagnitude) { """ Returns number of features with weight above a certain threshold (across all labels) @param threshold Threshold above which we will count the feature @param useMagnitude Whether the notion of "large" should ignore the sign of the feature...
java
public int getFeatureCount(double threshold, boolean useMagnitude) { int n = 0; for (int feat = 0; feat < weights.length; feat++) { for (int lab = 0; lab < weights[feat].length; lab++) { double thisWeight = (useMagnitude)? Math.abs(weights[feat][lab]):weights[feat][lab]; if (thisWe...
[ "public", "int", "getFeatureCount", "(", "double", "threshold", ",", "boolean", "useMagnitude", ")", "{", "int", "n", "=", "0", ";", "for", "(", "int", "feat", "=", "0", ";", "feat", "<", "weights", ".", "length", ";", "feat", "++", ")", "{", "for", ...
Returns number of features with weight above a certain threshold (across all labels) @param threshold Threshold above which we will count the feature @param useMagnitude Whether the notion of "large" should ignore the sign of the feature weight. @return number of features satisfying the specified conditions
[ "Returns", "number", "of", "features", "with", "weight", "above", "a", "certain", "threshold", "(", "across", "all", "labels", ")" ]
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/LinearClassifier.java#L370-L382
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/ie/pascal/PascalTemplate.java
PascalTemplate.unpackToCliqueTemplates
public void unpackToCliqueTemplates(CliqueTemplates ct, double score) { """ Divides this template into partial templates, and updates the counts of these partial templates in the {@link CliqueTemplates} object. @param ct the partial templates counter object @param score increment counts by this much """ ...
java
public void unpackToCliqueTemplates(CliqueTemplates ct, double score) { ct.dateCliqueCounter.incrementCount(new DateTemplate(values[0], values[1], values[2], values[3]), score); if (values[4] != null) { ct.locationCliqueCounter.incrementCount(values[4], score); } ct.workshopInfoCliqueCoun...
[ "public", "void", "unpackToCliqueTemplates", "(", "CliqueTemplates", "ct", ",", "double", "score", ")", "{", "ct", ".", "dateCliqueCounter", ".", "incrementCount", "(", "new", "DateTemplate", "(", "values", "[", "0", "]", ",", "values", "[", "1", "]", ",", ...
Divides this template into partial templates, and updates the counts of these partial templates in the {@link CliqueTemplates} object. @param ct the partial templates counter object @param score increment counts by this much
[ "Divides", "this", "template", "into", "partial", "templates", "and", "updates", "the", "counts", "of", "these", "partial", "templates", "in", "the", "{", "@link", "CliqueTemplates", "}", "object", "." ]
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/pascal/PascalTemplate.java#L252-L260
zaproxy/zaproxy
src/org/parosproxy/paros/db/DbUtils.java
DbUtils.getColumnType
public static int getColumnType(final Connection connection, final String tableName, final String columnName) throws SQLException { """ Gets the type of the given column {@code columnName} of the table {@code tableName}. @param connection the connection to the database @param tableName the name of the table...
java
public static int getColumnType(final Connection connection, final String tableName, final String columnName) throws SQLException { int columnType = -1; ResultSet rs = null; try { rs = connection.getMetaData().getColumns(null, null, tableName, columnName); ...
[ "public", "static", "int", "getColumnType", "(", "final", "Connection", "connection", ",", "final", "String", "tableName", ",", "final", "String", "columnName", ")", "throws", "SQLException", "{", "int", "columnType", "=", "-", "1", ";", "ResultSet", "rs", "="...
Gets the type of the given column {@code columnName} of the table {@code tableName}. @param connection the connection to the database @param tableName the name of the table that has the column @param columnName the name of the column that will be used to get the type @return the type of the column, or -1 if the column...
[ "Gets", "the", "type", "of", "the", "given", "column", "{", "@code", "columnName", "}", "of", "the", "table", "{", "@code", "tableName", "}", "." ]
train
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/db/DbUtils.java#L169-L191
pgjdbc/pgjdbc
pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
PgResultSet.readLongValue
private long readLongValue(byte[] bytes, int oid, long minVal, long maxVal, String targetType) throws PSQLException { """ <p>Converts any numeric binary field to long value.</p> <p>This method is used by getByte,getShort,getInt and getLong. It must support a subset of the following java types that use Bi...
java
private long readLongValue(byte[] bytes, int oid, long minVal, long maxVal, String targetType) throws PSQLException { long val; // currently implemented binary encoded fields switch (oid) { case Oid.INT2: val = ByteConverter.int2(bytes, 0); break; case Oid.INT4: val...
[ "private", "long", "readLongValue", "(", "byte", "[", "]", "bytes", ",", "int", "oid", ",", "long", "minVal", ",", "long", "maxVal", ",", "String", "targetType", ")", "throws", "PSQLException", "{", "long", "val", ";", "// currently implemented binary encoded fi...
<p>Converts any numeric binary field to long value.</p> <p>This method is used by getByte,getShort,getInt and getLong. It must support a subset of the following java types that use Binary encoding. (fields that use text encoding use a different code path). <code>byte,short,int,long,float,double,BigDecimal,boolean,str...
[ "<p", ">", "Converts", "any", "numeric", "binary", "field", "to", "long", "value", ".", "<", "/", "p", ">" ]
train
https://github.com/pgjdbc/pgjdbc/blob/95ba7b261e39754674c5817695ae5ebf9a341fae/pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java#L2990-L3021
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.supportsMessageProtection
private Boolean supportsMessageProtection(String url, Map<String, String> challengeMap) { """ Checks if resource supports message protection. @param url resource url. @param challengeMap the challenge map. @return true if message protection is supported. """ if (!"true".equals(challengeMap.get(...
java
private Boolean supportsMessageProtection(String url, Map<String, String> challengeMap) { if (!"true".equals(challengeMap.get("supportspop"))) { return false; } // Message protection is enabled only for subset of keys operations. if (!url.toLowerCase().contains("/keys/")) {...
[ "private", "Boolean", "supportsMessageProtection", "(", "String", "url", ",", "Map", "<", "String", ",", "String", ">", "challengeMap", ")", "{", "if", "(", "!", "\"true\"", ".", "equals", "(", "challengeMap", ".", "get", "(", "\"supportspop\"", ")", ")", ...
Checks if resource supports message protection. @param url resource url. @param challengeMap the challenge map. @return true if message protection is supported.
[ "Checks", "if", "resource", "supports", "message", "protection", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L186-L199
onelogin/onelogin-java-sdk
src/main/java/com/onelogin/sdk/conn/Client.java
Client.getUsersAssignedToPrivilegesBatch
public OneLoginResponse<Long> getUsersAssignedToPrivilegesBatch(String id, int batchSize, String afterCursor) throws OAuthSystemException, OAuthProblemException, URISyntaxException { """ Get a batch of users assigned to privilege. @param id Id of the privilege @param batchSize Size of the Batch @param afte...
java
public OneLoginResponse<Long> getUsersAssignedToPrivilegesBatch(String id, int batchSize, String afterCursor) throws OAuthSystemException, OAuthProblemException, URISyntaxException { ExtractionContext context = extractResourceBatch((Object)id, batchSize, afterCursor, Constants.GET_USERS_ASSIGNED_TO_PRIVILEGE_URL);...
[ "public", "OneLoginResponse", "<", "Long", ">", "getUsersAssignedToPrivilegesBatch", "(", "String", "id", ",", "int", "batchSize", ",", "String", "afterCursor", ")", "throws", "OAuthSystemException", ",", "OAuthProblemException", ",", "URISyntaxException", "{", "Extract...
Get a batch of users assigned to privilege. @param id Id of the privilege @param batchSize Size of the Batch @param afterCursor Reference to continue collecting items of next page @return OneLoginResponse of User (Batch) @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnec...
[ "Get", "a", "batch", "of", "users", "assigned", "to", "privilege", "." ]
train
https://github.com/onelogin/onelogin-java-sdk/blob/1570b78033dcc1c7387099e77fe41b6b0638df8c/src/main/java/com/onelogin/sdk/conn/Client.java#L3741-L3747
liferay/com-liferay-commerce
commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java
CommerceCurrencyPersistenceImpl.findByG_P
@Override public List<CommerceCurrency> findByG_P(long groupId, boolean primary, int start, int end, OrderByComparator<CommerceCurrency> orderByComparator) { """ Returns an ordered range of all the commerce currencies where groupId = &#63; and primary = &#63;. <p> Useful when paginating results. Returns a...
java
@Override public List<CommerceCurrency> findByG_P(long groupId, boolean primary, int start, int end, OrderByComparator<CommerceCurrency> orderByComparator) { return findByG_P(groupId, primary, start, end, orderByComparator, true); }
[ "@", "Override", "public", "List", "<", "CommerceCurrency", ">", "findByG_P", "(", "long", "groupId", ",", "boolean", "primary", ",", "int", "start", ",", "int", "end", ",", "OrderByComparator", "<", "CommerceCurrency", ">", "orderByComparator", ")", "{", "ret...
Returns an ordered range of all the commerce currencies where groupId = &#63; and primary = &#63;. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers t...
[ "Returns", "an", "ordered", "range", "of", "all", "the", "commerce", "currencies", "where", "groupId", "=", "&#63", ";", "and", "primary", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L2308-L2313
dkmfbk/knowledgestore
ks-server-hbase/src/main/java/eu/fbk/knowledgestore/datastore/hbase/utils/AbstractHBaseUtils.java
AbstractHBaseUtils.checkAndCreateTable
public void checkAndCreateTable(String tabName, String colFamName) throws IOException { """ Checks and/or create table with specific column family @param tabName @param colFamName @throws IOException """ HBaseAdmin hba; try { hba = new HBaseAdmin(this.getHbcfg()); if ...
java
public void checkAndCreateTable(String tabName, String colFamName) throws IOException { HBaseAdmin hba; try { hba = new HBaseAdmin(this.getHbcfg()); if (hba.tableExists(tabName) == false) { logger.debug("creating table " + tabName); final HTableDes...
[ "public", "void", "checkAndCreateTable", "(", "String", "tabName", ",", "String", "colFamName", ")", "throws", "IOException", "{", "HBaseAdmin", "hba", ";", "try", "{", "hba", "=", "new", "HBaseAdmin", "(", "this", ".", "getHbcfg", "(", ")", ")", ";", "if"...
Checks and/or create table with specific column family @param tabName @param colFamName @throws IOException
[ "Checks", "and", "/", "or", "create", "table", "with", "specific", "column", "family" ]
train
https://github.com/dkmfbk/knowledgestore/blob/a548101b1dd67fcf72a1ec6f838ea7539bdbbe7a/ks-server-hbase/src/main/java/eu/fbk/knowledgestore/datastore/hbase/utils/AbstractHBaseUtils.java#L313-L335
palatable/lambda
src/main/java/com/jnape/palatable/lambda/adt/Either.java
Either.filter
public final Either<L, R> filter(Function<? super R, ? extends Boolean> pred, Supplier<L> leftSupplier) { """ If this is a right value, apply <code>pred</code> to it. If the result is <code>true</code>, return the same value; otherwise, return the result of <code>leftSupplier</code> wrapped as a left value. <p> ...
java
public final Either<L, R> filter(Function<? super R, ? extends Boolean> pred, Supplier<L> leftSupplier) { return filter(pred, __ -> leftSupplier.get()); }
[ "public", "final", "Either", "<", "L", ",", "R", ">", "filter", "(", "Function", "<", "?", "super", "R", ",", "?", "extends", "Boolean", ">", "pred", ",", "Supplier", "<", "L", ">", "leftSupplier", ")", "{", "return", "filter", "(", "pred", ",", "_...
If this is a right value, apply <code>pred</code> to it. If the result is <code>true</code>, return the same value; otherwise, return the result of <code>leftSupplier</code> wrapped as a left value. <p> If this is a left value, return it. @param pred the predicate to apply to a right value @param leftSupplier ...
[ "If", "this", "is", "a", "right", "value", "apply", "<code", ">", "pred<", "/", "code", ">", "to", "it", ".", "If", "the", "result", "is", "<code", ">", "true<", "/", "code", ">", "return", "the", "same", "value", ";", "otherwise", "return", "the", ...
train
https://github.com/palatable/lambda/blob/b643ba836c5916d1d8193822e5efb4e7b40c489a/src/main/java/com/jnape/palatable/lambda/adt/Either.java#L102-L104
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/field/event/ChangedByHandler.java
ChangedByHandler.syncClonedListener
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { """ Set this cloned listener to the same state at this listener. @param field The field this new listener will be added to. @param The new listener to sync to this. @param Has the init method been called? @return ...
java
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { bInitCalled = super.syncClonedListener(field, listener, bInitCalled); ((ChangedByHandler)listener).setMainFilesFieldSeq(m_iMainFilesFieldSeq); return bInitCalled; }
[ "public", "boolean", "syncClonedListener", "(", "BaseField", "field", ",", "FieldListener", "listener", ",", "boolean", "bInitCalled", ")", "{", "bInitCalled", "=", "super", ".", "syncClonedListener", "(", "field", ",", "listener", ",", "bInitCalled", ")", ";", ...
Set this cloned listener to the same state at this listener. @param field The field this new listener will be added to. @param The new listener to sync to this. @param Has the init method been called? @return True if I called init.
[ "Set", "this", "cloned", "listener", "to", "the", "same", "state", "at", "this", "listener", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/event/ChangedByHandler.java#L76-L81
unbescape/unbescape
src/main/java/org/unbescape/uri/UriEscape.java
UriEscape.unescapeUriQueryParam
public static void unescapeUriQueryParam(final Reader reader, final Writer writer) throws IOException { """ <p> Perform am URI query parameter (name or value) <strong>unescape</strong> operation on a <tt>Reader</tt> input using <tt>UTF-8</tt> as encoding, writing results to a <tt>Writer</tt>. </p> ...
java
public static void unescapeUriQueryParam(final Reader reader, final Writer writer) throws IOException { unescapeUriQueryParam(reader, writer, DEFAULT_ENCODING); }
[ "public", "static", "void", "unescapeUriQueryParam", "(", "final", "Reader", "reader", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "unescapeUriQueryParam", "(", "reader", ",", "writer", ",", "DEFAULT_ENCODING", ")", ";", "}" ]
<p> Perform am URI query parameter (name or value) <strong>unescape</strong> operation on a <tt>Reader</tt> input using <tt>UTF-8</tt> as encoding, writing results to a <tt>Writer</tt>. </p> <p> This method will unescape every percent-encoded (<tt>%HH</tt>) sequences present in input, even for those characters that do ...
[ "<p", ">", "Perform", "am", "URI", "query", "parameter", "(", "name", "or", "value", ")", "<strong", ">", "unescape<", "/", "strong", ">", "operation", "on", "a", "<tt", ">", "Reader<", "/", "tt", ">", "input", "using", "<tt", ">", "UTF", "-", "8<", ...
train
https://github.com/unbescape/unbescape/blob/ec5435fb3508c2eed25d8165dc27ded2602cae13/src/main/java/org/unbescape/uri/UriEscape.java#L2262-L2265
betfair/cougar
cougar-framework/jetty-transport/src/main/java/com/betfair/cougar/transport/impl/protocol/http/jsonrpc/JsonRpcTransportCommandProcessor.java
JsonRpcTransportCommandProcessor.writeErrorResponse
@Override public void writeErrorResponse(HttpCommand command, DehydratedExecutionContext context, CougarException error, boolean traceStarted) { """ Please note this should only be used when the JSON rpc call itself fails - the answer will not contain any mention of the requests that caused the failure, nor the...
java
@Override public void writeErrorResponse(HttpCommand command, DehydratedExecutionContext context, CougarException error, boolean traceStarted) { try { incrementErrorsWritten(); final HttpServletResponse response = command.getResponse(); try { long bytesWritte...
[ "@", "Override", "public", "void", "writeErrorResponse", "(", "HttpCommand", "command", ",", "DehydratedExecutionContext", "context", ",", "CougarException", "error", ",", "boolean", "traceStarted", ")", "{", "try", "{", "incrementErrorsWritten", "(", ")", ";", "fin...
Please note this should only be used when the JSON rpc call itself fails - the answer will not contain any mention of the requests that caused the failure, nor their ID @param command the command that caused the error @param context @param error @param traceStarted
[ "Please", "note", "this", "should", "only", "be", "used", "when", "the", "JSON", "rpc", "call", "itself", "fails", "-", "the", "answer", "will", "not", "contain", "any", "mention", "of", "the", "requests", "that", "caused", "the", "failure", "nor", "their"...
train
https://github.com/betfair/cougar/blob/08d1fe338fbd0e8572a9c2305bb5796402d5b1f5/cougar-framework/jetty-transport/src/main/java/com/betfair/cougar/transport/impl/protocol/http/jsonrpc/JsonRpcTransportCommandProcessor.java#L406-L446
axibase/atsd-api-java
src/main/java/com/axibase/tsd/client/AtsdPropertyExtractor.java
AtsdPropertyExtractor.getAsString
public String getAsString(final String name, final String defaultValue) { """ Get property by name as {@link String} value @param name name of property without the prefix. @param defaultValue default value for case when the property is not set. @return property's value. """ return AtsdUtil...
java
public String getAsString(final String name, final String defaultValue) { return AtsdUtil.getPropertyStringValue(fullName(name), clientProperties, defaultValue); }
[ "public", "String", "getAsString", "(", "final", "String", "name", ",", "final", "String", "defaultValue", ")", "{", "return", "AtsdUtil", ".", "getPropertyStringValue", "(", "fullName", "(", "name", ")", ",", "clientProperties", ",", "defaultValue", ")", ";", ...
Get property by name as {@link String} value @param name name of property without the prefix. @param defaultValue default value for case when the property is not set. @return property's value.
[ "Get", "property", "by", "name", "as", "{", "@link", "String", "}", "value" ]
train
https://github.com/axibase/atsd-api-java/blob/63a0767d08b202dad2ebef4372ff947d6fba0246/src/main/java/com/axibase/tsd/client/AtsdPropertyExtractor.java#L60-L62
javalite/activejdbc
activejdbc/src/main/java/org/javalite/activejdbc/Base.java
Base.withDb
public static <T> T withDb(String driver, String url, String user, String password, Supplier<T> supplier) { """ Same as {@link DB#withDb(String, String, String, String, Supplier)}, but with db name {@link DB#DEFAULT_NAME}. """ return new DB(DB.DEFAULT_NAME).withDb(driver, url, user, password, supplier)...
java
public static <T> T withDb(String driver, String url, String user, String password, Supplier<T> supplier) { return new DB(DB.DEFAULT_NAME).withDb(driver, url, user, password, supplier); }
[ "public", "static", "<", "T", ">", "T", "withDb", "(", "String", "driver", ",", "String", "url", ",", "String", "user", ",", "String", "password", ",", "Supplier", "<", "T", ">", "supplier", ")", "{", "return", "new", "DB", "(", "DB", ".", "DEFAULT_N...
Same as {@link DB#withDb(String, String, String, String, Supplier)}, but with db name {@link DB#DEFAULT_NAME}.
[ "Same", "as", "{" ]
train
https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Base.java#L422-L424
jbundle/jbundle
base/screen/control/servlet/src/main/java/org/jbundle/base/screen/control/servlet/BaseHttpTask.java
BaseHttpTask.doProcess
public void doProcess(BasicServlet servlet, HttpServletRequest req, HttpServletResponse res, PrintWriter out) throws ServletException, IOException { """ Process an HTML get or post. @exception ServletException From inherited class. @exception IOException From inherited class. """ // Override...
java
public void doProcess(BasicServlet servlet, HttpServletRequest req, HttpServletResponse res, PrintWriter out) throws ServletException, IOException { // Override this }
[ "public", "void", "doProcess", "(", "BasicServlet", "servlet", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "PrintWriter", "out", ")", "throws", "ServletException", ",", "IOException", "{", "// Override this", "}" ]
Process an HTML get or post. @exception ServletException From inherited class. @exception IOException From inherited class.
[ "Process", "an", "HTML", "get", "or", "post", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/control/servlet/src/main/java/org/jbundle/base/screen/control/servlet/BaseHttpTask.java#L227-L231
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.getIndex
public static <T> int getIndex(List<T> l, T o, int fromIndex) { """ Returns the index of the first occurrence after the startIndex (exclusive) in the list of the specified object, using object equals function. If this list does not contain the element, return -1. @param l The {@link List} to find the object ...
java
public static <T> int getIndex(List<T> l, T o, int fromIndex) { int i = -1; for (T o1 : l) { i++; if (i < fromIndex) { continue; } if (o.equals(o1)) { return i; } } return -1; }
[ "public", "static", "<", "T", ">", "int", "getIndex", "(", "List", "<", "T", ">", "l", ",", "T", "o", ",", "int", "fromIndex", ")", "{", "int", "i", "=", "-", "1", ";", "for", "(", "T", "o1", ":", "l", ")", "{", "i", "++", ";", "if", "(",...
Returns the index of the first occurrence after the startIndex (exclusive) in the list of the specified object, using object equals function. If this list does not contain the element, return -1. @param l The {@link List} to find the object in. @param o The sought-after object. @param fromIndex The start index @return...
[ "Returns", "the", "index", "of", "the", "first", "occurrence", "after", "the", "startIndex", "(", "exclusive", ")", "in", "the", "list", "of", "the", "specified", "object", "using", "object", "equals", "function", ".", "If", "this", "list", "does", "not", ...
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L308-L320
tanhaichao/leopard-lang
leopard-servlet/src/main/java/io/leopard/web/servlet/CookieUtil.java
CookieUtil.setCookie
public static void setCookie(String name, String value, int maxAge, HttpServletRequest request, HttpServletResponse response) { """ 设置cookie</br> @param name cookie名称 @param value cookie值 @param maxAge 最大生存时间 @param request http请求 @param response http响应 """ boolean httpOnly = false; CookieUtil.setCo...
java
public static void setCookie(String name, String value, int maxAge, HttpServletRequest request, HttpServletResponse response) { boolean httpOnly = false; CookieUtil.setCookie(name, value, maxAge, httpOnly, request, response); }
[ "public", "static", "void", "setCookie", "(", "String", "name", ",", "String", "value", ",", "int", "maxAge", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "{", "boolean", "httpOnly", "=", "false", ";", "CookieUtil", ".", "...
设置cookie</br> @param name cookie名称 @param value cookie值 @param maxAge 最大生存时间 @param request http请求 @param response http响应
[ "设置cookie<", "/", "br", ">" ]
train
https://github.com/tanhaichao/leopard-lang/blob/8ab110f6ca4ea84484817a3d752253ac69ea268b/leopard-servlet/src/main/java/io/leopard/web/servlet/CookieUtil.java#L49-L52
apache/groovy
src/main/java/org/codehaus/groovy/transform/trait/TraitASTTransformation.java
TraitASTTransformation.copyClassAnnotations
private static void copyClassAnnotations(final ClassNode cNode, final ClassNode helper) { """ Copies annotation from the trait to the helper, excluding the trait annotation itself @param cNode the trait class node @param helper the helper class node """ List<AnnotationNode> annotations = cNode.getAnn...
java
private static void copyClassAnnotations(final ClassNode cNode, final ClassNode helper) { List<AnnotationNode> annotations = cNode.getAnnotations(); for (AnnotationNode annotation : annotations) { if (!annotation.getClassNode().equals(Traits.TRAIT_CLASSNODE)) { helper.addAnno...
[ "private", "static", "void", "copyClassAnnotations", "(", "final", "ClassNode", "cNode", ",", "final", "ClassNode", "helper", ")", "{", "List", "<", "AnnotationNode", ">", "annotations", "=", "cNode", ".", "getAnnotations", "(", ")", ";", "for", "(", "Annotati...
Copies annotation from the trait to the helper, excluding the trait annotation itself @param cNode the trait class node @param helper the helper class node
[ "Copies", "annotation", "from", "the", "trait", "to", "the", "helper", "excluding", "the", "trait", "annotation", "itself" ]
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/java/org/codehaus/groovy/transform/trait/TraitASTTransformation.java#L364-L371
Graylog2/graylog2-server
graylog2-server/src/main/java/org/graylog2/indexer/indices/Indices.java
Indices.catIndices
private JsonNode catIndices(Collection<String> indices, String... fields) { """ Retrieve the response for the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html">cat indices</a> request from Elasticsearch. @param fields The fields to show, see <a href="https://www.elastic....
java
private JsonNode catIndices(Collection<String> indices, String... fields) { final String fieldNames = String.join(",", fields); final Cat request = new Cat.IndicesBuilder() .addIndex(indices) .setParameter("h", fieldNames) .build(); final CatResult...
[ "private", "JsonNode", "catIndices", "(", "Collection", "<", "String", ">", "indices", ",", "String", "...", "fields", ")", "{", "final", "String", "fieldNames", "=", "String", ".", "join", "(", "\",\"", ",", "fields", ")", ";", "final", "Cat", "request", ...
Retrieve the response for the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html">cat indices</a> request from Elasticsearch. @param fields The fields to show, see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html">cat indices API</a>. @ret...
[ "Retrieve", "the", "response", "for", "the", "<a", "href", "=", "https", ":", "//", "www", ".", "elastic", ".", "co", "/", "guide", "/", "en", "/", "elasticsearch", "/", "reference", "/", "current", "/", "cat", "-", "indices", ".", "html", ">", "cat"...
train
https://github.com/Graylog2/graylog2-server/blob/50b565dcead6e0a372236d5c2f8530dc5726fa9b/graylog2-server/src/main/java/org/graylog2/indexer/indices/Indices.java#L575-L583
biojava/biojava
biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/geometry/RectangularPrism.java
RectangularPrism.getVertices
@Override public Point3d[] getVertices() { """ Returns the vertices of an n-fold polygon of given radius and center @param n @param radius @param center @return """ double x = 0.5 * width; double y = 0.5 * height; double z = 0.5 * length; Point3d[] vertices = new Point3d[8]; vertices[0] = new Po...
java
@Override public Point3d[] getVertices() { double x = 0.5 * width; double y = 0.5 * height; double z = 0.5 * length; Point3d[] vertices = new Point3d[8]; vertices[0] = new Point3d(-x, -y, z); vertices[1] = new Point3d(-x, y, z); vertices[2] = new Point3d( x, y, z); vertices[3] = new Point3d( x, -y...
[ "@", "Override", "public", "Point3d", "[", "]", "getVertices", "(", ")", "{", "double", "x", "=", "0.5", "*", "width", ";", "double", "y", "=", "0.5", "*", "height", ";", "double", "z", "=", "0.5", "*", "length", ";", "Point3d", "[", "]", "vertices...
Returns the vertices of an n-fold polygon of given radius and center @param n @param radius @param center @return
[ "Returns", "the", "vertices", "of", "an", "n", "-", "fold", "polygon", "of", "given", "radius", "and", "center" ]
train
https://github.com/biojava/biojava/blob/a1c71a8e3d40cc32104b1d387a3d3b560b43356e/biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/geometry/RectangularPrism.java#L90-L106
FedericoPecora/meta-csp-framework
src/main/java/org/metacsp/multi/allenInterval/AllenIntervalNetworkSolver.java
AllenIntervalNetworkSolver.getAdmissibleDistanceBounds
public final Bounds getAdmissibleDistanceBounds(TimePoint tpFrom, TimePoint tpTo) { """ Gets the minimum and maximum allowed distance between a pair of {@link TimePoint}s. @param tpFrom the {@link TimePoint} that is considered as the "origin"/source. @param tpTo the {@link TimePoint} that is considered as the "t...
java
public final Bounds getAdmissibleDistanceBounds(TimePoint tpFrom, TimePoint tpTo) { final APSPSolver stpSolver = (APSPSolver) constraintSolvers[0]; return stpSolver.getDistanceBounds(tpFrom, tpTo); }
[ "public", "final", "Bounds", "getAdmissibleDistanceBounds", "(", "TimePoint", "tpFrom", ",", "TimePoint", "tpTo", ")", "{", "final", "APSPSolver", "stpSolver", "=", "(", "APSPSolver", ")", "constraintSolvers", "[", "0", "]", ";", "return", "stpSolver", ".", "get...
Gets the minimum and maximum allowed distance between a pair of {@link TimePoint}s. @param tpFrom the {@link TimePoint} that is considered as the "origin"/source. @param tpTo the {@link TimePoint} that is considered as the "target". @return Returns the bounds of the distance between the two {@link TimePoint}s or <code>...
[ "Gets", "the", "minimum", "and", "maximum", "allowed", "distance", "between", "a", "pair", "of", "{" ]
train
https://github.com/FedericoPecora/meta-csp-framework/blob/42aaef2e2b76d0f738427f0dd9653c4f62b40517/src/main/java/org/metacsp/multi/allenInterval/AllenIntervalNetworkSolver.java#L87-L90
rometools/rome
rome/src/main/java/com/rometools/rome/io/impl/RSS091UserlandParser.java
RSS091UserlandParser.parseItem
@Override protected Item parseItem(final Element rssRoot, final Element eItem, final Locale locale) { """ Parses an item element of an RSS document looking for item information. <p/> It first invokes super.parseItem and then parses and injects the description property if present. <p/> @param rssRoot the...
java
@Override protected Item parseItem(final Element rssRoot, final Element eItem, final Locale locale) { final Item item = super.parseItem(rssRoot, eItem, locale); final Element description = eItem.getChild("description", getRSSNamespace()); if (description != null) { item.setDesc...
[ "@", "Override", "protected", "Item", "parseItem", "(", "final", "Element", "rssRoot", ",", "final", "Element", "eItem", ",", "final", "Locale", "locale", ")", "{", "final", "Item", "item", "=", "super", ".", "parseItem", "(", "rssRoot", ",", "eItem", ",",...
Parses an item element of an RSS document looking for item information. <p/> It first invokes super.parseItem and then parses and injects the description property if present. <p/> @param rssRoot the root element of the RSS document in case it's needed for context. @param eItem the item element to parse. @return the pa...
[ "Parses", "an", "item", "element", "of", "an", "RSS", "document", "looking", "for", "item", "information", ".", "<p", "/", ">", "It", "first", "invokes", "super", ".", "parseItem", "and", "then", "parses", "and", "injects", "the", "description", "property", ...
train
https://github.com/rometools/rome/blob/5fcf0b1a9a6cdedbe253a45ad9468c54a0f97010/rome/src/main/java/com/rometools/rome/io/impl/RSS091UserlandParser.java#L266-L286
sriharshachilakapati/WebGL4J
webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java
WebGL10.glBindAttribLocation
public static void glBindAttribLocation(int programID, int index, String name) { """ <p>{@code glBindAttribLocation} is used to associate a user-defined attribute variable in the program object specified by {@code programID} with a generic vertex attribute index. The name of the user-defined attribute variable i...
java
public static void glBindAttribLocation(int programID, int index, String name) { checkContextCompatibility(); nglBindAttribLocation(WebGLObjectMap.get().toProgram(programID), index, name); }
[ "public", "static", "void", "glBindAttribLocation", "(", "int", "programID", ",", "int", "index", ",", "String", "name", ")", "{", "checkContextCompatibility", "(", ")", ";", "nglBindAttribLocation", "(", "WebGLObjectMap", ".", "get", "(", ")", ".", "toProgram",...
<p>{@code glBindAttribLocation} is used to associate a user-defined attribute variable in the program object specified by {@code programID} with a generic vertex attribute index. The name of the user-defined attribute variable is string in {@code name}. The generic vertex attribute index to be bound to this variable is...
[ "<p", ">", "{", "@code", "glBindAttribLocation", "}", "is", "used", "to", "associate", "a", "user", "-", "defined", "attribute", "variable", "in", "the", "program", "object", "specified", "by", "{", "@code", "programID", "}", "with", "a", "generic", "vertex"...
train
https://github.com/sriharshachilakapati/WebGL4J/blob/7daa425300b08b338b50cef2935289849c92d415/webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java#L555-L559
spotify/helios
helios-services/src/main/java/com/spotify/helios/master/ZooKeeperMasterModel.java
ZooKeeperMasterModel.addDeploymentGroup
@Override public void addDeploymentGroup(final DeploymentGroup deploymentGroup) throws DeploymentGroupExistsException { """ Create a deployment group. <p>If successful, the following ZK nodes will be created: <ul> <li>/config/deployment-groups/[group-name]</li> <li>/status/deployment-groups/[group-na...
java
@Override public void addDeploymentGroup(final DeploymentGroup deploymentGroup) throws DeploymentGroupExistsException { log.info("adding deployment-group: {}", deploymentGroup); final ZooKeeperClient client = provider.get("addDeploymentGroup"); try { try { client.ensurePath(Paths.conf...
[ "@", "Override", "public", "void", "addDeploymentGroup", "(", "final", "DeploymentGroup", "deploymentGroup", ")", "throws", "DeploymentGroupExistsException", "{", "log", ".", "info", "(", "\"adding deployment-group: {}\"", ",", "deploymentGroup", ")", ";", "final", "Zoo...
Create a deployment group. <p>If successful, the following ZK nodes will be created: <ul> <li>/config/deployment-groups/[group-name]</li> <li>/status/deployment-groups/[group-name]</li> <li>/status/deployment-groups/[group-name]/hosts</li> </ul> These nodes are guaranteed to exist until the DG is removed. <p>If the o...
[ "Create", "a", "deployment", "group", "." ]
train
https://github.com/spotify/helios/blob/c9000bc1d6908651570be8b057d4981bba4df5b4/helios-services/src/main/java/com/spotify/helios/master/ZooKeeperMasterModel.java#L356-L380
RestComm/jain-slee.xcap
resources/xcap-client/api/src/main/java/org/restcomm/xcap/client/uri/encoding/UriComponentEncoder.java
UriComponentEncoder.encodePath
public static String encodePath(String path) throws NullPointerException { """ Encodes an HTTP URI Path. @param path @return @throws NullPointerException """ return new String(encode(path, UriComponentEncoderBitSets.allowed_abs_path)); }
java
public static String encodePath(String path) throws NullPointerException { return new String(encode(path, UriComponentEncoderBitSets.allowed_abs_path)); }
[ "public", "static", "String", "encodePath", "(", "String", "path", ")", "throws", "NullPointerException", "{", "return", "new", "String", "(", "encode", "(", "path", ",", "UriComponentEncoderBitSets", ".", "allowed_abs_path", ")", ")", ";", "}" ]
Encodes an HTTP URI Path. @param path @return @throws NullPointerException
[ "Encodes", "an", "HTTP", "URI", "Path", "." ]
train
https://github.com/RestComm/jain-slee.xcap/blob/0caa9ab481a545e52c31401f19e99bdfbbfb7bf0/resources/xcap-client/api/src/main/java/org/restcomm/xcap/client/uri/encoding/UriComponentEncoder.java#L58-L60
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.backupCertificate
public BackupCertificateResult backupCertificate(String vaultBaseUrl, String certificateName) { """ Backs up the specified certificate. Requests that a backup of the specified certificate be downloaded to the client. All versions of the certificate will be downloaded. This operation requires the certificates/back...
java
public BackupCertificateResult backupCertificate(String vaultBaseUrl, String certificateName) { return backupCertificateWithServiceResponseAsync(vaultBaseUrl, certificateName).toBlocking().single().body(); }
[ "public", "BackupCertificateResult", "backupCertificate", "(", "String", "vaultBaseUrl", ",", "String", "certificateName", ")", "{", "return", "backupCertificateWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "certificateName", ")", ".", "toBlocking", "(", ")", ".", ...
Backs up the specified certificate. Requests that a backup of the specified certificate be downloaded to the client. All versions of the certificate will be downloaded. This operation requires the certificates/backup permission. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param ce...
[ "Backs", "up", "the", "specified", "certificate", ".", "Requests", "that", "a", "backup", "of", "the", "specified", "certificate", "be", "downloaded", "to", "the", "client", ".", "All", "versions", "of", "the", "certificate", "will", "be", "downloaded", ".", ...
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#L8115-L8117
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerFaultResponseActionBuilder.java
SoapServerFaultResponseActionBuilder.faultDetailResource
public SoapServerFaultResponseActionBuilder faultDetailResource(Resource resource, Charset charset) { """ Adds a fault detail from file resource. @param resource @param charset @return """ try { getAction().getFaultDetails().add(FileUtils.readToString(resource, charset)); } catch...
java
public SoapServerFaultResponseActionBuilder faultDetailResource(Resource resource, Charset charset) { try { getAction().getFaultDetails().add(FileUtils.readToString(resource, charset)); } catch (IOException e) { throw new CitrusRuntimeException("Failed to read fault detail resour...
[ "public", "SoapServerFaultResponseActionBuilder", "faultDetailResource", "(", "Resource", "resource", ",", "Charset", "charset", ")", "{", "try", "{", "getAction", "(", ")", ".", "getFaultDetails", "(", ")", ".", "add", "(", "FileUtils", ".", "readToString", "(", ...
Adds a fault detail from file resource. @param resource @param charset @return
[ "Adds", "a", "fault", "detail", "from", "file", "resource", "." ]
train
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerFaultResponseActionBuilder.java#L218-L225
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/FTPClient.java
FTPClient.asynchPut
public TransferState asynchPut(String remoteFileName, DataSource source, MarkerListener mListener, boolean append) throws IOException, ServerException, ClientException { """ Stores file at the remote se...
java
public TransferState asynchPut(String remoteFileName, DataSource source, MarkerListener mListener, boolean append) throws IOException, ServerException, ClientException { checkTransferParamsPut(); ...
[ "public", "TransferState", "asynchPut", "(", "String", "remoteFileName", ",", "DataSource", "source", ",", "MarkerListener", "mListener", ",", "boolean", "append", ")", "throws", "IOException", ",", "ServerException", ",", "ClientException", "{", "checkTransferParamsPut...
Stores file at the remote server. @param remoteFileName remote file name @param source data will be read from here @param mListener restart marker listener (currently not used) @param append append to the end of file or overwrite
[ "Stores", "file", "at", "the", "remote", "server", "." ]
train
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/FTPClient.java#L1333-L1350
line/armeria
core/src/main/java/com/linecorp/armeria/server/docs/TypeSignature.java
TypeSignature.ofBase
public static TypeSignature ofBase(String baseTypeName) { """ Creates a new type signature for a base type. @throws IllegalArgumentException if the specified type name is not valid """ checkBaseTypeName(baseTypeName, "baseTypeName"); return new TypeSignature(baseTypeName, ImmutableList.of())...
java
public static TypeSignature ofBase(String baseTypeName) { checkBaseTypeName(baseTypeName, "baseTypeName"); return new TypeSignature(baseTypeName, ImmutableList.of()); }
[ "public", "static", "TypeSignature", "ofBase", "(", "String", "baseTypeName", ")", "{", "checkBaseTypeName", "(", "baseTypeName", ",", "\"baseTypeName\"", ")", ";", "return", "new", "TypeSignature", "(", "baseTypeName", ",", "ImmutableList", ".", "of", "(", ")", ...
Creates a new type signature for a base type. @throws IllegalArgumentException if the specified type name is not valid
[ "Creates", "a", "new", "type", "signature", "for", "a", "base", "type", "." ]
train
https://github.com/line/armeria/blob/67d29e019fd35a35f89c45cc8f9119ff9b12b44d/core/src/main/java/com/linecorp/armeria/server/docs/TypeSignature.java#L67-L70
recommenders/rival
rival-examples/src/main/java/net/recommenders/rival/examples/movielens100k/CrossValidatedMahoutKNNRecommenderEvaluator.java
CrossValidatedMahoutKNNRecommenderEvaluator.prepareSplits
public static void prepareSplits(final String url, final int nFolds, final String inFile, final String folder, final String outPath) { """ Downloads a dataset and stores the splits generated from it. @param url url where dataset can be downloaded from @param nFolds number of folds @param inFile file to be use...
java
public static void prepareSplits(final String url, final int nFolds, final String inFile, final String folder, final String outPath) { DataDownloader dd = new DataDownloader(url, folder); dd.downloadAndUnzip(); boolean perUser = true; long seed = SEED; Parser<Long, Long> parser ...
[ "public", "static", "void", "prepareSplits", "(", "final", "String", "url", ",", "final", "int", "nFolds", ",", "final", "String", "inFile", ",", "final", "String", "folder", ",", "final", "String", "outPath", ")", "{", "DataDownloader", "dd", "=", "new", ...
Downloads a dataset and stores the splits generated from it. @param url url where dataset can be downloaded from @param nFolds number of folds @param inFile file to be used once the dataset has been downloaded @param folder folder where dataset will be stored @param outPath path where the splits will be stored
[ "Downloads", "a", "dataset", "and", "stores", "the", "splits", "generated", "from", "it", "." ]
train
https://github.com/recommenders/rival/blob/6ee8223e91810ae1c6052899595af3906e0c34c6/rival-examples/src/main/java/net/recommenders/rival/examples/movielens100k/CrossValidatedMahoutKNNRecommenderEvaluator.java#L109-L147
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/AbstractDirector.java
AbstractDirector.fireProgressEvent
void fireProgressEvent(int state, int progress, String message, boolean allowCancel) throws InstallException { """ Creates a Progress event message that can handle cancel exceptions. @param state the state integer @param progress the progress integer @param message the message to be displayed @param allowCan...
java
void fireProgressEvent(int state, int progress, String message, boolean allowCancel) throws InstallException { log(Level.FINEST, message); if (enableEvent) { try { eventManager.fireProgressEvent(state, progress, message); } catch (CancelException ce) { ...
[ "void", "fireProgressEvent", "(", "int", "state", ",", "int", "progress", ",", "String", "message", ",", "boolean", "allowCancel", ")", "throws", "InstallException", "{", "log", "(", "Level", ".", "FINEST", ",", "message", ")", ";", "if", "(", "enableEvent",...
Creates a Progress event message that can handle cancel exceptions. @param state the state integer @param progress the progress integer @param message the message to be displayed @param allowCancel if cancel exceptions should be handled @throws InstallException
[ "Creates", "a", "Progress", "event", "message", "that", "can", "handle", "cancel", "exceptions", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/AbstractDirector.java#L74-L88
liferay/com-liferay-commerce
commerce-tax-api/src/main/java/com/liferay/commerce/tax/service/persistence/CommerceTaxMethodUtil.java
CommerceTaxMethodUtil.findByG_E
public static CommerceTaxMethod findByG_E(long groupId, String engineKey) throws com.liferay.commerce.tax.exception.NoSuchTaxMethodException { """ Returns the commerce tax method where groupId = &#63; and engineKey = &#63; or throws a {@link NoSuchTaxMethodException} if it could not be found. @param groupId t...
java
public static CommerceTaxMethod findByG_E(long groupId, String engineKey) throws com.liferay.commerce.tax.exception.NoSuchTaxMethodException { return getPersistence().findByG_E(groupId, engineKey); }
[ "public", "static", "CommerceTaxMethod", "findByG_E", "(", "long", "groupId", ",", "String", "engineKey", ")", "throws", "com", ".", "liferay", ".", "commerce", ".", "tax", ".", "exception", ".", "NoSuchTaxMethodException", "{", "return", "getPersistence", "(", ...
Returns the commerce tax method where groupId = &#63; and engineKey = &#63; or throws a {@link NoSuchTaxMethodException} if it could not be found. @param groupId the group ID @param engineKey the engine key @return the matching commerce tax method @throws NoSuchTaxMethodException if a matching commerce tax method coul...
[ "Returns", "the", "commerce", "tax", "method", "where", "groupId", "=", "&#63", ";", "and", "engineKey", "=", "&#63", ";", "or", "throws", "a", "{", "@link", "NoSuchTaxMethodException", "}", "if", "it", "could", "not", "be", "found", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-api/src/main/java/com/liferay/commerce/tax/service/persistence/CommerceTaxMethodUtil.java#L282-L285
alkacon/opencms-core
src/org/opencms/xml/containerpage/CmsFormatterConfiguration.java
CmsFormatterConfiguration.getDetailFormatter
public I_CmsFormatterBean getDetailFormatter(String types, int containerWidth) { """ Gets the detail formatter to use for the given type and container width.<p> @param types the container types (comma separated) @param containerWidth the container width @return the detail formatter to use """ /...
java
public I_CmsFormatterBean getDetailFormatter(String types, int containerWidth) { // detail formatters must still match the type or width Predicate<I_CmsFormatterBean> checkValidDetailFormatter = Predicates.and( new MatchesTypeOrWidth(types, containerWidth), new IsDetail()); ...
[ "public", "I_CmsFormatterBean", "getDetailFormatter", "(", "String", "types", ",", "int", "containerWidth", ")", "{", "// detail formatters must still match the type or width", "Predicate", "<", "I_CmsFormatterBean", ">", "checkValidDetailFormatter", "=", "Predicates", ".", "...
Gets the detail formatter to use for the given type and container width.<p> @param types the container types (comma separated) @param containerWidth the container width @return the detail formatter to use
[ "Gets", "the", "detail", "formatter", "to", "use", "for", "the", "given", "type", "and", "container", "width", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/xml/containerpage/CmsFormatterConfiguration.java#L330-L338
beanshell/beanshell
src/main/java/bsh/NameSpace.java
NameSpace.getMethod
public BshMethod getMethod(final String name, final Class<?>[] sig) throws UtilEvalError { """ Gets the method. @param name the name @param sig the sig @return the method @throws UtilEvalError the util eval error @see #getMethod(String, Class [], boolean) @see #getMethod(String, Class []) """...
java
public BshMethod getMethod(final String name, final Class<?>[] sig) throws UtilEvalError { return this.getMethod(name, sig, false/* declaredOnly */); }
[ "public", "BshMethod", "getMethod", "(", "final", "String", "name", ",", "final", "Class", "<", "?", ">", "[", "]", "sig", ")", "throws", "UtilEvalError", "{", "return", "this", ".", "getMethod", "(", "name", ",", "sig", ",", "false", "/* declaredOnly */",...
Gets the method. @param name the name @param sig the sig @return the method @throws UtilEvalError the util eval error @see #getMethod(String, Class [], boolean) @see #getMethod(String, Class [])
[ "Gets", "the", "method", "." ]
train
https://github.com/beanshell/beanshell/blob/fdddee3de948c9e6babb2d1337028f6fd0a2ba5c/src/main/java/bsh/NameSpace.java#L748-L751
albfernandez/itext2
src/main/java/com/lowagie/text/Chunk.java
Chunk.setUnderline
public Chunk setUnderline(float thickness, float yPosition) { """ Sets an horizontal line that can be an underline or a strikethrough. Actually, the line can be anywhere vertically and has always the <CODE> Chunk</CODE> width. Multiple call to this method will produce multiple lines. @param thickness the ab...
java
public Chunk setUnderline(float thickness, float yPosition) { return setUnderline(null, thickness, 0f, yPosition, 0f, PdfContentByte.LINE_CAP_BUTT); }
[ "public", "Chunk", "setUnderline", "(", "float", "thickness", ",", "float", "yPosition", ")", "{", "return", "setUnderline", "(", "null", ",", "thickness", ",", "0f", ",", "yPosition", ",", "0f", ",", "PdfContentByte", ".", "LINE_CAP_BUTT", ")", ";", "}" ]
Sets an horizontal line that can be an underline or a strikethrough. Actually, the line can be anywhere vertically and has always the <CODE> Chunk</CODE> width. Multiple call to this method will produce multiple lines. @param thickness the absolute thickness of the line @param yPosition the absolute y position relativ...
[ "Sets", "an", "horizontal", "line", "that", "can", "be", "an", "underline", "or", "a", "strikethrough", ".", "Actually", "the", "line", "can", "be", "anywhere", "vertically", "and", "has", "always", "the", "<CODE", ">", "Chunk<", "/", "CODE", ">", "width",...
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/Chunk.java#L497-L500
pippo-java/pippo
pippo-core/src/main/java/ro/pippo/core/Messages.java
Messages.loadRegisteredMessageResources
private Map<String, Properties> loadRegisteredMessageResources() { """ Loads Pippo internal messages & application messages and returns the merger. @return all messages """ Map<String, Properties> internalMessages = loadRegisteredMessageResources("pippo/pippo-messages%s.properties"); Map<Str...
java
private Map<String, Properties> loadRegisteredMessageResources() { Map<String, Properties> internalMessages = loadRegisteredMessageResources("pippo/pippo-messages%s.properties"); Map<String, Properties> applicationMessages = loadRegisteredMessageResources("conf/messages%s.properties"); Map<Strin...
[ "private", "Map", "<", "String", ",", "Properties", ">", "loadRegisteredMessageResources", "(", ")", "{", "Map", "<", "String", ",", "Properties", ">", "internalMessages", "=", "loadRegisteredMessageResources", "(", "\"pippo/pippo-messages%s.properties\"", ")", ";", "...
Loads Pippo internal messages & application messages and returns the merger. @return all messages
[ "Loads", "Pippo", "internal", "messages", "&", "application", "messages", "and", "returns", "the", "merger", "." ]
train
https://github.com/pippo-java/pippo/blob/cb5ccb453bffcc3cf386adc660674812d10b9726/pippo-core/src/main/java/ro/pippo/core/Messages.java#L236-L264
MariaDB/mariadb-connector-j
src/main/java/org/mariadb/jdbc/MariaDbClob.java
MariaDbClob.setString
public int setString(long pos, String str) throws SQLException { """ Set String. @param pos position @param str string @return string length @throws SQLException if UTF-8 conversion failed """ int bytePosition = utf8Position((int) pos - 1); super.setBytes(bytePosition + 1 - offset, str.getBytes(S...
java
public int setString(long pos, String str) throws SQLException { int bytePosition = utf8Position((int) pos - 1); super.setBytes(bytePosition + 1 - offset, str.getBytes(StandardCharsets.UTF_8)); return str.length(); }
[ "public", "int", "setString", "(", "long", "pos", ",", "String", "str", ")", "throws", "SQLException", "{", "int", "bytePosition", "=", "utf8Position", "(", "(", "int", ")", "pos", "-", "1", ")", ";", "super", ".", "setBytes", "(", "bytePosition", "+", ...
Set String. @param pos position @param str string @return string length @throws SQLException if UTF-8 conversion failed
[ "Set", "String", "." ]
train
https://github.com/MariaDB/mariadb-connector-j/blob/d148c7cd347c4680617be65d9e511b289d38a30b/src/main/java/org/mariadb/jdbc/MariaDbClob.java#L222-L226
ixa-ehu/kaflib
src/main/java/ixa/kaflib/KAFDocument.java
KAFDocument.newPredicate
public Predicate newPredicate(String id, Span<Term> span) { """ Creates a new srl predicate. It receives its ID as an argument. The predicate is added to the document. @param id the ID of the predicate @param span span containing the targets of the predicate @return a new predicate """ idManager.update...
java
public Predicate newPredicate(String id, Span<Term> span) { idManager.updateCounter(AnnotationType.PREDICATE, id); Predicate newPredicate = new Predicate(id, span); annotationContainer.add(newPredicate, Layer.SRL, AnnotationType.PREDICATE); return newPredicate; }
[ "public", "Predicate", "newPredicate", "(", "String", "id", ",", "Span", "<", "Term", ">", "span", ")", "{", "idManager", ".", "updateCounter", "(", "AnnotationType", ".", "PREDICATE", ",", "id", ")", ";", "Predicate", "newPredicate", "=", "new", "Predicate"...
Creates a new srl predicate. It receives its ID as an argument. The predicate is added to the document. @param id the ID of the predicate @param span span containing the targets of the predicate @return a new predicate
[ "Creates", "a", "new", "srl", "predicate", ".", "It", "receives", "its", "ID", "as", "an", "argument", ".", "The", "predicate", "is", "added", "to", "the", "document", "." ]
train
https://github.com/ixa-ehu/kaflib/blob/3921f55d9ae4621736a329418f6334fb721834b8/src/main/java/ixa/kaflib/KAFDocument.java#L996-L1001
nutzam/nutzboot
nutzboot-starter/nutzboot-starter-fastdfs/src/main/java/org/nutz/boot/starter/fastdfs/FastdfsService.java
FastdfsService.uploadImage
public String uploadImage(byte[] image, byte[] watermark, String ext, Map<String, String> metaInfo) { """ 上传图片并生成缩略图、水印图 @param image 原图 @param watermark 水印图 @param ext 后缀名 @param metaInfo 元信息 @return """ return uploadImage(image, watermark, ext, metaInfo, DEFAULT_OPACITY, DEFAULT_LOC...
java
public String uploadImage(byte[] image, byte[] watermark, String ext, Map<String, String> metaInfo) { return uploadImage(image, watermark, ext, metaInfo, DEFAULT_OPACITY, DEFAULT_LOCATION, DEFAULT_MARGIN); }
[ "public", "String", "uploadImage", "(", "byte", "[", "]", "image", ",", "byte", "[", "]", "watermark", ",", "String", "ext", ",", "Map", "<", "String", ",", "String", ">", "metaInfo", ")", "{", "return", "uploadImage", "(", "image", ",", "watermark", "...
上传图片并生成缩略图、水印图 @param image 原图 @param watermark 水印图 @param ext 后缀名 @param metaInfo 元信息 @return
[ "上传图片并生成缩略图、水印图" ]
train
https://github.com/nutzam/nutzboot/blob/fd33fd4fdce058eab594f28e4d3202f997e3c66a/nutzboot-starter/nutzboot-starter-fastdfs/src/main/java/org/nutz/boot/starter/fastdfs/FastdfsService.java#L420-L422
dbracewell/mango
src/main/java/com/davidbracewell/json/JsonReader.java
JsonReader.beginObject
public String beginObject() throws IOException { """ Begins the document @return The object's name @throws IOException Something went wrong reading """ String name = null; if (currentValue.getKey() == NAME) { name = currentValue.getValue().asString(); consume(); } ...
java
public String beginObject() throws IOException { String name = null; if (currentValue.getKey() == NAME) { name = currentValue.getValue().asString(); consume(); } if (currentValue.getKey() == BEGIN_OBJECT) { consume(); } else if (readStack.peek() != BEGIN_OBJECT) ...
[ "public", "String", "beginObject", "(", ")", "throws", "IOException", "{", "String", "name", "=", "null", ";", "if", "(", "currentValue", ".", "getKey", "(", ")", "==", "NAME", ")", "{", "name", "=", "currentValue", ".", "getValue", "(", ")", ".", "asS...
Begins the document @return The object's name @throws IOException Something went wrong reading
[ "Begins", "the", "document" ]
train
https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/json/JsonReader.java#L140-L152
apache/incubator-gobblin
gobblin-utility/src/main/java/org/apache/gobblin/util/filesystem/InstrumentedFileSystemUtils.java
InstrumentedFileSystemUtils.replaceScheme
public static URI replaceScheme(URI uri, String replace, String replacement) { """ Replace the scheme of the input {@link URI} if it matches the string to replace. """ if (replace != null && replace.equals(replacement)) { return uri; } try { if (replace != null && replace.equals(uri.get...
java
public static URI replaceScheme(URI uri, String replace, String replacement) { if (replace != null && replace.equals(replacement)) { return uri; } try { if (replace != null && replace.equals(uri.getScheme())) { return new URI(replacement, uri.getUserInfo(), uri.getHost(), uri.getPort(), ...
[ "public", "static", "URI", "replaceScheme", "(", "URI", "uri", ",", "String", "replace", ",", "String", "replacement", ")", "{", "if", "(", "replace", "!=", "null", "&&", "replace", ".", "equals", "(", "replacement", ")", ")", "{", "return", "uri", ";", ...
Replace the scheme of the input {@link URI} if it matches the string to replace.
[ "Replace", "the", "scheme", "of", "the", "input", "{" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-utility/src/main/java/org/apache/gobblin/util/filesystem/InstrumentedFileSystemUtils.java#L36-L49
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.java
Algorithm.ECDSA512
@Deprecated public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException { """ Creates a new Algorithm instance using SHA512withECDSA. Tokens specify this as "ES512". @param key the key to use in the verify or signing instance. @return a valid ECDSA512 Algorithm. @throws IllegalArgumentExce...
java
@Deprecated public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException { ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null; ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null; return ECDSA512(publicKey, privateKey); ...
[ "@", "Deprecated", "public", "static", "Algorithm", "ECDSA512", "(", "ECKey", "key", ")", "throws", "IllegalArgumentException", "{", "ECPublicKey", "publicKey", "=", "key", "instanceof", "ECPublicKey", "?", "(", "ECPublicKey", ")", "key", ":", "null", ";", "ECPr...
Creates a new Algorithm instance using SHA512withECDSA. Tokens specify this as "ES512". @param key the key to use in the verify or signing instance. @return a valid ECDSA512 Algorithm. @throws IllegalArgumentException if the provided Key is null. @deprecated use {@link #ECDSA512(ECPublicKey, ECPrivateKey)} or {@link #...
[ "Creates", "a", "new", "Algorithm", "instance", "using", "SHA512withECDSA", ".", "Tokens", "specify", "this", "as", "ES512", "." ]
train
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.java#L308-L313
geomajas/geomajas-project-client-gwt2
common-gwt/command/src/main/java/org/geomajas/gwt/client/util/StyleUtil.java
StyleUtil.createStroke
public static StrokeInfo createStroke(String color, int width, float opacity, String dashArray) { """ Creates a stroke with the specified CSS parameters. @param color the color @param width the width @param opacity the opacity @param dashArray the dash array @return the stroke """ StrokeInfo strokeInf...
java
public static StrokeInfo createStroke(String color, int width, float opacity, String dashArray) { StrokeInfo strokeInfo = new StrokeInfo(); if (color != null) { strokeInfo.getCssParameterList().add(createCssParameter("stroke", color)); } strokeInfo.getCssParameterList().add(createCssParameter("stroke-width",...
[ "public", "static", "StrokeInfo", "createStroke", "(", "String", "color", ",", "int", "width", ",", "float", "opacity", ",", "String", "dashArray", ")", "{", "StrokeInfo", "strokeInfo", "=", "new", "StrokeInfo", "(", ")", ";", "if", "(", "color", "!=", "nu...
Creates a stroke with the specified CSS parameters. @param color the color @param width the width @param opacity the opacity @param dashArray the dash array @return the stroke
[ "Creates", "a", "stroke", "with", "the", "specified", "CSS", "parameters", "." ]
train
https://github.com/geomajas/geomajas-project-client-gwt2/blob/bd8d7904e861fa80522eed7b83c4ea99844180c7/common-gwt/command/src/main/java/org/geomajas/gwt/client/util/StyleUtil.java#L198-L209
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java
TheMovieDbApi.getTVInfo
public TVInfo getTVInfo(int tvID, String language, String... appendToResponse) throws MovieDbException { """ Get the primary information about a TV series by id. @param tvID tvID @param language language @param appendToResponse appendToResponse @return @throws com.omertron.themoviedbapi.MovieDbException ...
java
public TVInfo getTVInfo(int tvID, String language, String... appendToResponse) throws MovieDbException { return tmdbTv.getTVInfo(tvID, language, appendToResponse); }
[ "public", "TVInfo", "getTVInfo", "(", "int", "tvID", ",", "String", "language", ",", "String", "...", "appendToResponse", ")", "throws", "MovieDbException", "{", "return", "tmdbTv", ".", "getTVInfo", "(", "tvID", ",", "language", ",", "appendToResponse", ")", ...
Get the primary information about a TV series by id. @param tvID tvID @param language language @param appendToResponse appendToResponse @return @throws com.omertron.themoviedbapi.MovieDbException
[ "Get", "the", "primary", "information", "about", "a", "TV", "series", "by", "id", "." ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java#L1435-L1437
gmessner/gitlab4j-api
src/main/java/org/gitlab4j/api/UserApi.java
UserApi.createUser
public User createUser(User user, CharSequence password, Integer projectsLimit) throws GitLabApiException { """ <p>Creates a new user. Note only administrators can create new users. Either password or reset_password should be specified (reset_password takes priority).</p> <p>If both the User object's projectsL...
java
public User createUser(User user, CharSequence password, Integer projectsLimit) throws GitLabApiException { Form formData = userToForm(user, projectsLimit, password, null, true); Response response = post(Response.Status.CREATED, formData, "users"); return (response.readEntity(User.class)); }
[ "public", "User", "createUser", "(", "User", "user", ",", "CharSequence", "password", ",", "Integer", "projectsLimit", ")", "throws", "GitLabApiException", "{", "Form", "formData", "=", "userToForm", "(", "user", ",", "projectsLimit", ",", "password", ",", "null...
<p>Creates a new user. Note only administrators can create new users. Either password or reset_password should be specified (reset_password takes priority).</p> <p>If both the User object's projectsLimit and the parameter projectsLimit is specified the parameter will take precedence.</p> <pre><code>GitLab Endpoint: P...
[ "<p", ">", "Creates", "a", "new", "user", ".", "Note", "only", "administrators", "can", "create", "new", "users", ".", "Either", "password", "or", "reset_password", "should", "be", "specified", "(", "reset_password", "takes", "priority", ")", ".", "<", "/", ...
train
https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L418-L422
apereo/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataClassSourceLocator.java
ConfigurationMetadataClassSourceLocator.buildTypeSourcePath
public static String buildTypeSourcePath(final String sourcePath, final String type) { """ Build type source path string. @param sourcePath the source path @param type the type @return the string """ val newName = type.replace(".", File.separator); return sourcePath + "/src/main/java...
java
public static String buildTypeSourcePath(final String sourcePath, final String type) { val newName = type.replace(".", File.separator); return sourcePath + "/src/main/java/" + newName + ".java"; }
[ "public", "static", "String", "buildTypeSourcePath", "(", "final", "String", "sourcePath", ",", "final", "String", "type", ")", "{", "val", "newName", "=", "type", ".", "replace", "(", "\".\"", ",", "File", ".", "separator", ")", ";", "return", "sourcePath",...
Build type source path string. @param sourcePath the source path @param type the type @return the string
[ "Build", "type", "source", "path", "string", "." ]
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataClassSourceLocator.java#L49-L52
DataSketches/sketches-core
src/main/java/com/yahoo/sketches/theta/JaccardSimilarity.java
JaccardSimilarity.exactlyEqual
public static boolean exactlyEqual(final Sketch sketchA, final Sketch sketchB) { """ Returns true if the two given sketches have exactly the same hash values and the same theta values. Thus, they are equivalent. @param sketchA the given sketch A @param sketchB the given sketch B @return true if the two given s...
java
public static boolean exactlyEqual(final Sketch sketchA, final Sketch sketchB) { //Corner case checks if ((sketchA == null) || (sketchB == null)) { return false; } if (sketchA == sketchB) { return true; } if (sketchA.isEmpty() && sketchB.isEmpty()) { return true; } if (sketchA.isEmpty() || sketchB.i...
[ "public", "static", "boolean", "exactlyEqual", "(", "final", "Sketch", "sketchA", ",", "final", "Sketch", "sketchB", ")", "{", "//Corner case checks", "if", "(", "(", "sketchA", "==", "null", ")", "||", "(", "sketchB", "==", "null", ")", ")", "{", "return"...
Returns true if the two given sketches have exactly the same hash values and the same theta values. Thus, they are equivalent. @param sketchA the given sketch A @param sketchB the given sketch B @return true if the two given sketches have exactly the same hash values and the same theta values.
[ "Returns", "true", "if", "the", "two", "given", "sketches", "have", "exactly", "the", "same", "hash", "values", "and", "the", "same", "theta", "values", ".", "Thus", "they", "are", "equivalent", "." ]
train
https://github.com/DataSketches/sketches-core/blob/900c8c9668a1e2f1d54d453e956caad54702e540/src/main/java/com/yahoo/sketches/theta/JaccardSimilarity.java#L92-L119
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.getEntityRoles
public List<EntityRole> getEntityRoles(UUID appId, String versionId, UUID entityId) { """ Get All Entity Roles for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity Id @throws IllegalArgumentException thrown if parameters fail the validation @throws Err...
java
public List<EntityRole> getEntityRoles(UUID appId, String versionId, UUID entityId) { return getEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); }
[ "public", "List", "<", "EntityRole", ">", "getEntityRoles", "(", "UUID", "appId", ",", "String", "versionId", ",", "UUID", "entityId", ")", "{", "return", "getEntityRolesWithServiceResponseAsync", "(", "appId", ",", "versionId", ",", "entityId", ")", ".", "toBlo...
Get All Entity Roles for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity Id @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wr...
[ "Get", "All", "Entity", "Roles", "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#L7659-L7661