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
gmessner/gitlab4j-api
src/main/java/org/gitlab4j/api/MergeRequestApi.java
MergeRequestApi.updateMergeRequest
@Deprecated public MergeRequest updateMergeRequest(Object projectIdOrPath, Integer mergeRequestIid, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId) throws GitLabApiException { """ Updates an existing merge request. You can change branches, title, or e...
java
@Deprecated public MergeRequest updateMergeRequest(Object projectIdOrPath, Integer mergeRequestIid, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId) throws GitLabApiException { Form formData = new Form(); addFormParam(formData, "source_bran...
[ "@", "Deprecated", "public", "MergeRequest", "updateMergeRequest", "(", "Object", "projectIdOrPath", ",", "Integer", "mergeRequestIid", ",", "String", "sourceBranch", ",", "String", "targetBranch", ",", "String", "title", ",", "String", "description", ",", "Integer", ...
Updates an existing merge request. You can change branches, title, or even close the MR. <p>NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.</p> <pre><code>GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid</code></pre> @param projectIdOrPath the project in the ...
[ "Updates", "an", "existing", "merge", "request", ".", "You", "can", "change", "branches", "title", "or", "even", "close", "the", "MR", "." ]
train
https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/MergeRequestApi.java#L521-L533
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/PhotosInterface.java
PhotosInterface.getGeoInterface
public synchronized GeoInterface getGeoInterface() { """ Get the geo interface. @return Access class to the flickr.photos.geo methods. """ if (geoInterface == null) { geoInterface = new GeoInterface(apiKey, sharedSecret, transport); } return geoInterface; }
java
public synchronized GeoInterface getGeoInterface() { if (geoInterface == null) { geoInterface = new GeoInterface(apiKey, sharedSecret, transport); } return geoInterface; }
[ "public", "synchronized", "GeoInterface", "getGeoInterface", "(", ")", "{", "if", "(", "geoInterface", "==", "null", ")", "{", "geoInterface", "=", "new", "GeoInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", ")", ";", "}", "return", "geoInterf...
Get the geo interface. @return Access class to the flickr.photos.geo methods.
[ "Get", "the", "geo", "interface", "." ]
train
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/PhotosInterface.java#L124-L129
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/TransactionWriteRequest.java
TransactionWriteRequest.addPut
public TransactionWriteRequest addPut(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression) { """ Adds put operation (to be executed on object) to the list of transaction write operations. transactionWriteExpression is used to conditionally put object. """ return addPut(object,...
java
public TransactionWriteRequest addPut(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression) { return addPut(object, transactionWriteExpression, null /* returnValuesOnConditionCheckFailure */); }
[ "public", "TransactionWriteRequest", "addPut", "(", "Object", "object", ",", "DynamoDBTransactionWriteExpression", "transactionWriteExpression", ")", "{", "return", "addPut", "(", "object", ",", "transactionWriteExpression", ",", "null", "/* returnValuesOnConditionCheckFailure ...
Adds put operation (to be executed on object) to the list of transaction write operations. transactionWriteExpression is used to conditionally put object.
[ "Adds", "put", "operation", "(", "to", "be", "executed", "on", "object", ")", "to", "the", "list", "of", "transaction", "write", "operations", ".", "transactionWriteExpression", "is", "used", "to", "conditionally", "put", "object", "." ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/TransactionWriteRequest.java#L58-L60
ansell/restlet-utils
src/main/java/com/github/ansell/restletutils/RestletUtilSesameRealm.java
RestletUtilSesameRealm.getUsers
public List<RestletUtilUser> getUsers() { """ Returns an unmodifiable list of users. @return An unmodifiable list of users. """ List<RestletUtilUser> result = new ArrayList<RestletUtilUser>(); RepositoryConnection conn = null; try { conn = this.repository...
java
public List<RestletUtilUser> getUsers() { List<RestletUtilUser> result = new ArrayList<RestletUtilUser>(); RepositoryConnection conn = null; try { conn = this.repository.getConnection(); final String query = this.buildSparqlQueryToFindUse...
[ "public", "List", "<", "RestletUtilUser", ">", "getUsers", "(", ")", "{", "List", "<", "RestletUtilUser", ">", "result", "=", "new", "ArrayList", "<", "RestletUtilUser", ">", "(", ")", ";", "RepositoryConnection", "conn", "=", "null", ";", "try", "{", "con...
Returns an unmodifiable list of users. @return An unmodifiable list of users.
[ "Returns", "an", "unmodifiable", "list", "of", "users", "." ]
train
https://github.com/ansell/restlet-utils/blob/6c39a3e91aa8295936af1dbfccd6ba27230c40a9/src/main/java/com/github/ansell/restletutils/RestletUtilSesameRealm.java#L1338-L1396
alkacon/opencms-core
src/org/opencms/widgets/CmsVfsImageWidget.java
CmsVfsImageWidget.getSelectedValue
protected String getSelectedValue(CmsObject cms, List<CmsSelectWidgetOption> selectOptions, String currentValue) { """ Returns the currently selected value of the select widget.<p> If a value is found in the given parameter, this is used. Otherwise the default value of the select options are used. If there is ...
java
protected String getSelectedValue(CmsObject cms, List<CmsSelectWidgetOption> selectOptions, String currentValue) { String paramValue = currentValue; if (CmsStringUtil.isEmpty(paramValue)) { CmsSelectWidgetOption option = CmsSelectWidgetOption.getDefaultOption(selectOptions); if ...
[ "protected", "String", "getSelectedValue", "(", "CmsObject", "cms", ",", "List", "<", "CmsSelectWidgetOption", ">", "selectOptions", ",", "String", "currentValue", ")", "{", "String", "paramValue", "=", "currentValue", ";", "if", "(", "CmsStringUtil", ".", "isEmpt...
Returns the currently selected value of the select widget.<p> If a value is found in the given parameter, this is used. Otherwise the default value of the select options are used. If there is neither a parameter value nor a default value, <code>null</code> is returned.<p> @param cms the current users OpenCms context ...
[ "Returns", "the", "currently", "selected", "value", "of", "the", "select", "widget", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/CmsVfsImageWidget.java#L472-L482
tvesalainen/util
util/src/main/java/org/vesalainen/nio/IntArray.java
IntArray.getInstance
public static IntArray getInstance(byte[] buffer, int offset, int length, int bitCount, ByteOrder order) { """ Creates IntArray backed by byte array with given bit-count and byte-order. @param buffer @param offset @param length @param bitCount @param order @return """ ByteBuffer bb = ByteBuffer....
java
public static IntArray getInstance(byte[] buffer, int offset, int length, int bitCount, ByteOrder order) { ByteBuffer bb = ByteBuffer.wrap(buffer, offset, length).order(order); switch (bitCount) { case 8: return getInstance(bb); case 16: ...
[ "public", "static", "IntArray", "getInstance", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ",", "int", "length", ",", "int", "bitCount", ",", "ByteOrder", "order", ")", "{", "ByteBuffer", "bb", "=", "ByteBuffer", ".", "wrap", "(", "buffer", ",...
Creates IntArray backed by byte array with given bit-count and byte-order. @param buffer @param offset @param length @param bitCount @param order @return
[ "Creates", "IntArray", "backed", "by", "byte", "array", "with", "given", "bit", "-", "count", "and", "byte", "-", "order", "." ]
train
https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/nio/IntArray.java#L86-L100
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/map/impl/MapKeyLoader.java
MapKeyLoader.triggerLoadingWithDelay
public void triggerLoadingWithDelay() { """ Triggers key loading on SENDER if it hadn't started. Delays triggering if invoked multiple times. """ if (delayedTrigger == null) { Runnable runnable = () -> { Operation op = new TriggerLoadIfNeededOperation(mapName); ...
java
public void triggerLoadingWithDelay() { if (delayedTrigger == null) { Runnable runnable = () -> { Operation op = new TriggerLoadIfNeededOperation(mapName); opService.invokeOnPartition(SERVICE_NAME, op, mapNamePartition); }; delayedTrigger = new...
[ "public", "void", "triggerLoadingWithDelay", "(", ")", "{", "if", "(", "delayedTrigger", "==", "null", ")", "{", "Runnable", "runnable", "=", "(", ")", "->", "{", "Operation", "op", "=", "new", "TriggerLoadIfNeededOperation", "(", "mapName", ")", ";", "opSer...
Triggers key loading on SENDER if it hadn't started. Delays triggering if invoked multiple times.
[ "Triggers", "key", "loading", "on", "SENDER", "if", "it", "hadn", "t", "started", ".", "Delays", "triggering", "if", "invoked", "multiple", "times", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/map/impl/MapKeyLoader.java#L362-L372
JadiraOrg/jadira
bindings/src/main/java/org/jadira/bindings/core/binder/BasicBinder.java
BasicBinder.findConverter
public <S, T> Converter<S, T> findConverter(Class<S> input, Class<T> output) { """ Resolve a Converter with the given input and output classes. Instances of the input class can be converted into instances of the output class @param input The input class @param output The output class """ return findConve...
java
public <S, T> Converter<S, T> findConverter(Class<S> input, Class<T> output) { return findConverter(new ConverterKey<S,T>(input, output, DefaultBinding.class)); }
[ "public", "<", "S", ",", "T", ">", "Converter", "<", "S", ",", "T", ">", "findConverter", "(", "Class", "<", "S", ">", "input", ",", "Class", "<", "T", ">", "output", ")", "{", "return", "findConverter", "(", "new", "ConverterKey", "<", "S", ",", ...
Resolve a Converter with the given input and output classes. Instances of the input class can be converted into instances of the output class @param input The input class @param output The output class
[ "Resolve", "a", "Converter", "with", "the", "given", "input", "and", "output", "classes", ".", "Instances", "of", "the", "input", "class", "can", "be", "converted", "into", "instances", "of", "the", "output", "class" ]
train
https://github.com/JadiraOrg/jadira/blob/d55d0238395f0cb900531f1f08b4b2d87fa9a4f6/bindings/src/main/java/org/jadira/bindings/core/binder/BasicBinder.java#L867-L869
deeplearning4j/deeplearning4j
datavec/datavec-data/datavec-data-audio/src/main/java/org/datavec/audio/processor/ArrayRankDouble.java
ArrayRankDouble.getNthOrderedValue
public double getNthOrderedValue(double[] array, int n, boolean ascending) { """ Get the n-th value in the array after sorted @param array an array @param n position in array @param ascending is ascending order or not @return value at nth position of array """ if (n > array.length) { n...
java
public double getNthOrderedValue(double[] array, int n, boolean ascending) { if (n > array.length) { n = array.length; } int targetindex; if (ascending) { targetindex = n; } else { targetindex = array.length - n; } // this va...
[ "public", "double", "getNthOrderedValue", "(", "double", "[", "]", "array", ",", "int", "n", ",", "boolean", "ascending", ")", "{", "if", "(", "n", ">", "array", ".", "length", ")", "{", "n", "=", "array", ".", "length", ";", "}", "int", "targetindex...
Get the n-th value in the array after sorted @param array an array @param n position in array @param ascending is ascending order or not @return value at nth position of array
[ "Get", "the", "n", "-", "th", "value", "in", "the", "array", "after", "sorted" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/datavec/datavec-data/datavec-data-audio/src/main/java/org/datavec/audio/processor/ArrayRankDouble.java#L68-L84
attribyte/wpdb
src/main/java/org/attribyte/wp/db/DB.java
DB.selectTaxonomyTerm
public TaxonomyTerm selectTaxonomyTerm(final String taxonomy, final String name) throws SQLException { """ Selects a taxonomy term. @param taxonomy The taxonomy name. @param name The term name. @return The taxonomy term or {@code null} if none. @throws SQLException on database error. """ Connection ...
java
public TaxonomyTerm selectTaxonomyTerm(final String taxonomy, final String name) throws SQLException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; long taxonomyTermId = 0L; long termId = 0L; String description = ""; Timer.Context ctx = metrics.s...
[ "public", "TaxonomyTerm", "selectTaxonomyTerm", "(", "final", "String", "taxonomy", ",", "final", "String", "name", ")", "throws", "SQLException", "{", "Connection", "conn", "=", "null", ";", "PreparedStatement", "stmt", "=", "null", ";", "ResultSet", "rs", "=",...
Selects a taxonomy term. @param taxonomy The taxonomy name. @param name The term name. @return The taxonomy term or {@code null} if none. @throws SQLException on database error.
[ "Selects", "a", "taxonomy", "term", "." ]
train
https://github.com/attribyte/wpdb/blob/b9adf6131dfb67899ebff770c9bfeb001cc42f30/src/main/java/org/attribyte/wp/db/DB.java#L2244-L2271
jakenjarvis/Android-OrmLiteContentProvider
ormlite-content-provider-library/src/com/tojc/ormlite/android/framework/MatcherController.java
MatcherController.setDefaultContentMimeTypeVnd
public MatcherController setDefaultContentMimeTypeVnd(String name, String type) { """ Set the DefaultContentMimeTypeVnd. If you did not use the DefaultContentMimeTypeVnd annotation, you must call this method. @see com.tojc.ormlite.android.annotation.AdditionalAnnotation.DefaultContentMimeTypeVnd @param name @p...
java
public MatcherController setDefaultContentMimeTypeVnd(String name, String type) { if (this.lastAddTableInfo == null) { throw new IllegalStateException("There is a problem with the order of function call."); } this.lastAddTableInfo.setDefaultContentMimeTypeVndInfo(new ContentMimeTypeV...
[ "public", "MatcherController", "setDefaultContentMimeTypeVnd", "(", "String", "name", ",", "String", "type", ")", "{", "if", "(", "this", ".", "lastAddTableInfo", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"There is a problem with the orde...
Set the DefaultContentMimeTypeVnd. If you did not use the DefaultContentMimeTypeVnd annotation, you must call this method. @see com.tojc.ormlite.android.annotation.AdditionalAnnotation.DefaultContentMimeTypeVnd @param name @param type @return Instance of the MatcherController class.
[ "Set", "the", "DefaultContentMimeTypeVnd", ".", "If", "you", "did", "not", "use", "the", "DefaultContentMimeTypeVnd", "annotation", "you", "must", "call", "this", "method", "." ]
train
https://github.com/jakenjarvis/Android-OrmLiteContentProvider/blob/8f102f0743b308c9f58d43639e98f832fd951985/ormlite-content-provider-library/src/com/tojc/ormlite/android/framework/MatcherController.java#L160-L166
UrielCh/ovh-java-sdk
ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java
ApiOvhHostingweb.serviceName_cron_POST
public String serviceName_cron_POST(String serviceName, String command, String description, String email, String frequency, OvhLanguageEnum language, net.minidev.ovh.api.hosting.web.cron.OvhStatusEnum status) throws IOException { """ Create new cron REST: POST /hosting/web/{serviceName}/cron @param status [req...
java
public String serviceName_cron_POST(String serviceName, String command, String description, String email, String frequency, OvhLanguageEnum language, net.minidev.ovh.api.hosting.web.cron.OvhStatusEnum status) throws IOException { String qPath = "/hosting/web/{serviceName}/cron"; StringBuilder sb = path(qPath, servi...
[ "public", "String", "serviceName_cron_POST", "(", "String", "serviceName", ",", "String", "command", ",", "String", "description", ",", "String", "email", ",", "String", "frequency", ",", "OvhLanguageEnum", "language", ",", "net", ".", "minidev", ".", "ovh", "."...
Create new cron REST: POST /hosting/web/{serviceName}/cron @param status [required] Cron status @param language [required] Cron language @param command [required] Command to execute @param description [required] Description field for you @param email [required] Email used to receive error log ( stderr ) @param frequen...
[ "Create", "new", "cron" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2148-L2160
gallandarakhneorg/afc
advanced/gis/gisbus/src/main/java/org/arakhne/afc/gis/bus/network/BusItinerary.java
BusItinerary.getBusHalt
@Pure public BusItineraryHalt getBusHalt(String name, Comparator<String> nameComparator) { """ Replies the bus halt with the specified name. @param name is the desired name @param nameComparator is used to compare the names. @return a bus halt or <code>null</code> """ if (name == null) { return null...
java
@Pure public BusItineraryHalt getBusHalt(String name, Comparator<String> nameComparator) { if (name == null) { return null; } final Comparator<String> cmp = nameComparator == null ? BusNetworkUtilities.NAME_COMPARATOR : nameComparator; for (final BusItineraryHalt bushalt : this.validHalts) { if (cmp.comp...
[ "@", "Pure", "public", "BusItineraryHalt", "getBusHalt", "(", "String", "name", ",", "Comparator", "<", "String", ">", "nameComparator", ")", "{", "if", "(", "name", "==", "null", ")", "{", "return", "null", ";", "}", "final", "Comparator", "<", "String", ...
Replies the bus halt with the specified name. @param name is the desired name @param nameComparator is used to compare the names. @return a bus halt or <code>null</code>
[ "Replies", "the", "bus", "halt", "with", "the", "specified", "name", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/gis/gisbus/src/main/java/org/arakhne/afc/gis/bus/network/BusItinerary.java#L1583-L1600
netty/netty
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java
Http2ConnectionHandler.checkCloseConnection
private void checkCloseConnection(ChannelFuture future) { """ Closes the connection if the graceful shutdown process has completed. @param future Represents the status that will be passed to the {@link #closeListener}. """ // If this connection is closing and the graceful shutdown has completed, close...
java
private void checkCloseConnection(ChannelFuture future) { // If this connection is closing and the graceful shutdown has completed, close the connection // once this operation completes. if (closeListener != null && isGracefulShutdownComplete()) { ChannelFutureListener closeListener ...
[ "private", "void", "checkCloseConnection", "(", "ChannelFuture", "future", ")", "{", "// If this connection is closing and the graceful shutdown has completed, close the connection", "// once this operation completes.", "if", "(", "closeListener", "!=", "null", "&&", "isGracefulShutd...
Closes the connection if the graceful shutdown process has completed. @param future Represents the status that will be passed to the {@link #closeListener}.
[ "Closes", "the", "connection", "if", "the", "graceful", "shutdown", "process", "has", "completed", "." ]
train
https://github.com/netty/netty/blob/ba06eafa1c1824bd154f1a380019e7ea2edf3c4c/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java#L853-L867
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildsInner.java
BuildsInner.listAsync
public Observable<Page<BuildInner>> listAsync(final String resourceGroupName, final String registryName) { """ Gets all the builds for a registry. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @throws Il...
java
public Observable<Page<BuildInner>> listAsync(final String resourceGroupName, final String registryName) { return listWithServiceResponseAsync(resourceGroupName, registryName) .map(new Func1<ServiceResponse<Page<BuildInner>>, Page<BuildInner>>() { @Override public Pag...
[ "public", "Observable", "<", "Page", "<", "BuildInner", ">", ">", "listAsync", "(", "final", "String", "resourceGroupName", ",", "final", "String", "registryName", ")", "{", "return", "listWithServiceResponseAsync", "(", "resourceGroupName", ",", "registryName", ")"...
Gets all the builds for a registry. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;BuildInner&gt...
[ "Gets", "all", "the", "builds", "for", "a", "registry", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildsInner.java#L147-L155
Metatavu/edelphi
edelphi/src/main/java/fi/metatavu/edelphi/utils/MaterialUtils.java
MaterialUtils.createIndexPageDocument
public static LocalDocument createIndexPageDocument(Delfoi delfoi, Locale locale, User user) { """ Creates index page document @param delfoi delfoi @param locale locale @param user logged user @return created document """ LocalDocumentDAO localDocumentDAO = new LocalDocumentDAO(); String urlName ...
java
public static LocalDocument createIndexPageDocument(Delfoi delfoi, Locale locale, User user) { LocalDocumentDAO localDocumentDAO = new LocalDocumentDAO(); String urlName = String.format("%s-%s", INDEX_PAGE_URLNAME, locale.getLanguage()); return localDocumentDAO.create(urlName, urlName, delfoi.getRootFolder(...
[ "public", "static", "LocalDocument", "createIndexPageDocument", "(", "Delfoi", "delfoi", ",", "Locale", "locale", ",", "User", "user", ")", "{", "LocalDocumentDAO", "localDocumentDAO", "=", "new", "LocalDocumentDAO", "(", ")", ";", "String", "urlName", "=", "Strin...
Creates index page document @param delfoi delfoi @param locale locale @param user logged user @return created document
[ "Creates", "index", "page", "document" ]
train
https://github.com/Metatavu/edelphi/blob/d91a0b54f954b33b4ee674a1bdf03612d76c3305/edelphi/src/main/java/fi/metatavu/edelphi/utils/MaterialUtils.java#L96-L100
groupby/api-java
src/main/java/com/groupbyinc/api/Query.java
Query.addRefinement
private Query addRefinement(String navigationName, Refinement refinement) { """ <code> Add a refinement. Please note that refinements are case-sensitive JSON Reference: Value and range refinements are both appended to an array on the refinements field. Note the 'type' field, which marks the refinement as ...
java
private Query addRefinement(String navigationName, Refinement refinement) { Navigation navigation = navigations.get(navigationName); if (navigation == null) { navigation = new Navigation().setName(navigationName); navigation.setRange(refinement instanceof RefinementRange); navigations.put(navi...
[ "private", "Query", "addRefinement", "(", "String", "navigationName", ",", "Refinement", "refinement", ")", "{", "Navigation", "navigation", "=", "navigations", ".", "get", "(", "navigationName", ")", ";", "if", "(", "navigation", "==", "null", ")", "{", "navi...
<code> Add a refinement. Please note that refinements are case-sensitive JSON Reference: Value and range refinements are both appended to an array on the refinements field. Note the 'type' field, which marks the refinement as either a value or range refinement. { "refinements": [ {"type": "Range", "navigationName":...
[ "<code", ">", "Add", "a", "refinement", ".", "Please", "note", "that", "refinements", "are", "case", "-", "sensitive" ]
train
https://github.com/groupby/api-java/blob/257c4ed0777221e5e4ade3b29b9921300fac4e2e/src/main/java/com/groupbyinc/api/Query.java#L584-L593
probedock/probedock-java
src/main/java/io/probedock/client/core/filters/FilterUtils.java
FilterUtils.isRunnable
public static boolean isRunnable(String fingerprint, String name, String technicalName, String key, String tags, String tickets, List<FilterDefinition> filters) { """ Define if a test is runnable based on its description data @param fingerprint The fingerprint @param name TestResult name @param technicalName ...
java
public static boolean isRunnable(String fingerprint, String name, String technicalName, String key, String tags, String tickets, List<FilterDefinition> filters) { return isRunnable(new FilterTargetData(fingerprint, tags, tickets, technicalName, name, key), filters); }
[ "public", "static", "boolean", "isRunnable", "(", "String", "fingerprint", ",", "String", "name", ",", "String", "technicalName", ",", "String", "key", ",", "String", "tags", ",", "String", "tickets", ",", "List", "<", "FilterDefinition", ">", "filters", ")", ...
Define if a test is runnable based on its description data @param fingerprint The fingerprint @param name TestResult name @param technicalName Technical name @param key ROX key @param tags The tags @param tickets The tickets @param filters The filters @return True if the test can be run
[ "Define", "if", "a", "test", "is", "runnable", "based", "on", "its", "description", "data" ]
train
https://github.com/probedock/probedock-java/blob/92ee6634ba4fe3fdffeb4e202f5372ef947a67c3/src/main/java/io/probedock/client/core/filters/FilterUtils.java#L71-L73
prolificinteractive/material-calendarview
library/src/main/java/com/prolificinteractive/materialcalendarview/CalendarDay.java
CalendarDay.from
@NonNull public static CalendarDay from(int year, int month, int day) { """ Get a new instance set to the specified day @param year new instance's year @param month new instance's month as defined by {@linkplain java.util.Calendar} @param day new instance's day of month @return CalendarDay set to the specifi...
java
@NonNull public static CalendarDay from(int year, int month, int day) { return new CalendarDay(year, month, day); }
[ "@", "NonNull", "public", "static", "CalendarDay", "from", "(", "int", "year", ",", "int", "month", ",", "int", "day", ")", "{", "return", "new", "CalendarDay", "(", "year", ",", "month", ",", "day", ")", ";", "}" ]
Get a new instance set to the specified day @param year new instance's year @param month new instance's month as defined by {@linkplain java.util.Calendar} @param day new instance's day of month @return CalendarDay set to the specified date
[ "Get", "a", "new", "instance", "set", "to", "the", "specified", "day" ]
train
https://github.com/prolificinteractive/material-calendarview/blob/04fae8175fd034d0a7131f8cb253cae883a88aa2/library/src/main/java/com/prolificinteractive/materialcalendarview/CalendarDay.java#L52-L54
Talend/tesb-rt-se
sam/sam-agent/src/main/java/org/talend/esb/sam/agent/lifecycle/AbstractListenerImpl.java
AbstractListenerImpl.processStop
protected void processStop(Endpoint endpoint, EventTypeEnum eventType) { """ Process stop. @param endpoint the endpoint @param eventType the event type """ if (!sendLifecycleEvent) { return; } Event event = createEvent(endpoint, eventType); monitoringServiceClie...
java
protected void processStop(Endpoint endpoint, EventTypeEnum eventType) { if (!sendLifecycleEvent) { return; } Event event = createEvent(endpoint, eventType); monitoringServiceClient.putEvents(Collections.singletonList(event)); if (LOG.isLoggable(Level.INFO)) { ...
[ "protected", "void", "processStop", "(", "Endpoint", "endpoint", ",", "EventTypeEnum", "eventType", ")", "{", "if", "(", "!", "sendLifecycleEvent", ")", "{", "return", ";", "}", "Event", "event", "=", "createEvent", "(", "endpoint", ",", "eventType", ")", ";...
Process stop. @param endpoint the endpoint @param eventType the event type
[ "Process", "stop", "." ]
train
https://github.com/Talend/tesb-rt-se/blob/0a151a6d91ffff65ac4b5ee0c5b2c882ac28d886/sam/sam-agent/src/main/java/org/talend/esb/sam/agent/lifecycle/AbstractListenerImpl.java#L107-L117
wmdietl/jsr308-langtools
src/share/classes/com/sun/source/util/TreePath.java
TreePath.getPath
public static TreePath getPath(TreePath path, Tree target) { """ Gets a tree path for a tree node within a subtree identified by a TreePath object. @return null if the node is not found """ path.getClass(); target.getClass(); class Result extends Error { static final long ...
java
public static TreePath getPath(TreePath path, Tree target) { path.getClass(); target.getClass(); class Result extends Error { static final long serialVersionUID = -5942088234594905625L; TreePath path; Result(TreePath path) { this.path = path; ...
[ "public", "static", "TreePath", "getPath", "(", "TreePath", "path", ",", "Tree", "target", ")", "{", "path", ".", "getClass", "(", ")", ";", "target", ".", "getClass", "(", ")", ";", "class", "Result", "extends", "Error", "{", "static", "final", "long", ...
Gets a tree path for a tree node within a subtree identified by a TreePath object. @return null if the node is not found
[ "Gets", "a", "tree", "path", "for", "a", "tree", "node", "within", "a", "subtree", "identified", "by", "a", "TreePath", "object", "." ]
train
https://github.com/wmdietl/jsr308-langtools/blob/8812d28c20f4de070a0dd6de1b45602431379834/src/share/classes/com/sun/source/util/TreePath.java#L53-L84
googlearchive/firebase-simple-login-java
src/main/java/com/firebase/simplelogin/SimpleLogin.java
SimpleLogin.loginWithGoogle
public void loginWithGoogle(final String accessToken, final SimpleLoginAuthenticatedHandler completionHandler) { """ Login to Firebase using a Google access token. The returned FirebaseSimpleLoginUser object will contain pertinent Google data accessible with getThirdPartyUserData(). @param accessToken Access t...
java
public void loginWithGoogle(final String accessToken, final SimpleLoginAuthenticatedHandler completionHandler) { if(accessToken == null) { handleInvalidInvalidToken(completionHandler); } else { HashMap<String, String> data = new HashMap<String, String>(); data...
[ "public", "void", "loginWithGoogle", "(", "final", "String", "accessToken", ",", "final", "SimpleLoginAuthenticatedHandler", "completionHandler", ")", "{", "if", "(", "accessToken", "==", "null", ")", "{", "handleInvalidInvalidToken", "(", "completionHandler", ")", ";...
Login to Firebase using a Google access token. The returned FirebaseSimpleLoginUser object will contain pertinent Google data accessible with getThirdPartyUserData(). @param accessToken Access token returned by Facebook SDK. @param completionHandler Handler for asynchronous events.
[ "Login", "to", "Firebase", "using", "a", "Google", "access", "token", ".", "The", "returned", "FirebaseSimpleLoginUser", "object", "will", "contain", "pertinent", "Google", "data", "accessible", "with", "getThirdPartyUserData", "()", "." ]
train
https://github.com/googlearchive/firebase-simple-login-java/blob/40498ad173b5fa69c869ba0d29cec187271fda13/src/main/java/com/firebase/simplelogin/SimpleLogin.java#L678-L688
lightblueseas/file-worker
src/main/java/de/alpharogroup/file/write/WriteFileExtensions.java
WriteFileExtensions.writeProperties2File
public static void writeProperties2File(final String filename, final Properties properties) throws IOException { """ The Method writeProperties2File(String, Properties) writes the Properties to the file. @param filename The filename from the file to write the properties. @param properties The properties. ...
java
public static void writeProperties2File(final String filename, final Properties properties) throws IOException { // Write properties to the file. try (FileOutputStream fos = new FileOutputStream(filename)) { properties.store(fos, null); } }
[ "public", "static", "void", "writeProperties2File", "(", "final", "String", "filename", ",", "final", "Properties", "properties", ")", "throws", "IOException", "{", "// Write properties to the file.", "try", "(", "FileOutputStream", "fos", "=", "new", "FileOutputStream"...
The Method writeProperties2File(String, Properties) writes the Properties to the file. @param filename The filename from the file to write the properties. @param properties The properties. @throws IOException Signals that an I/O exception has occurred.
[ "The", "Method", "writeProperties2File", "(", "String", "Properties", ")", "writes", "the", "Properties", "to", "the", "file", "." ]
train
https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/write/WriteFileExtensions.java#L73-L81
phax/ph-oton
ph-oton-html/src/main/java/com/helger/html/hc/html/embedded/AbstractHCImg.java
AbstractHCImg.scaleBestMatching
@Nonnull public final IMPLTYPE scaleBestMatching (@Nonnegative final int nMaxWidth, @Nonnegative final int nMaxHeight) { """ Scales the image so that neither with nor height are exceeded, keeping the aspect ratio. @param nMaxWidth Maximum with @param nMaxHeight Maximum height @return the correctly resize...
java
@Nonnull public final IMPLTYPE scaleBestMatching (@Nonnegative final int nMaxWidth, @Nonnegative final int nMaxHeight) { if (m_aExtent != null) m_aExtent = m_aExtent.getBestMatchingSize (nMaxWidth, nMaxHeight); return thisAsT (); }
[ "@", "Nonnull", "public", "final", "IMPLTYPE", "scaleBestMatching", "(", "@", "Nonnegative", "final", "int", "nMaxWidth", ",", "@", "Nonnegative", "final", "int", "nMaxHeight", ")", "{", "if", "(", "m_aExtent", "!=", "null", ")", "m_aExtent", "=", "m_aExtent",...
Scales the image so that neither with nor height are exceeded, keeping the aspect ratio. @param nMaxWidth Maximum with @param nMaxHeight Maximum height @return the correctly resized image tag
[ "Scales", "the", "image", "so", "that", "neither", "with", "nor", "height", "are", "exceeded", "keeping", "the", "aspect", "ratio", "." ]
train
https://github.com/phax/ph-oton/blob/f3aaacbbc02a9f3e4f32fe8db8e4adf7b9c1d3ef/ph-oton-html/src/main/java/com/helger/html/hc/html/embedded/AbstractHCImg.java#L159-L165
opencb/biodata
biodata-tools/src/main/java/org/opencb/biodata/tools/commons/ChunkFrequencyManager.java
ChunkFrequencyManager.readFileId
private int readFileId(Path filePath, Connection conn) { """ Read file ID from the database. @param filePath Path to the file @param conn Database connection @return File ID in the database """ int fileId = -1; try { Statement stmt = conn.createStatement(); ...
java
private int readFileId(Path filePath, Connection conn) { int fileId = -1; try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT id FROM file where path = '" + filePath.getParent() + "';"); while (rs.next()) { fileId = ...
[ "private", "int", "readFileId", "(", "Path", "filePath", ",", "Connection", "conn", ")", "{", "int", "fileId", "=", "-", "1", ";", "try", "{", "Statement", "stmt", "=", "conn", ".", "createStatement", "(", ")", ";", "ResultSet", "rs", "=", "stmt", ".",...
Read file ID from the database. @param filePath Path to the file @param conn Database connection @return File ID in the database
[ "Read", "file", "ID", "from", "the", "database", "." ]
train
https://github.com/opencb/biodata/blob/21b3d51d71f578efab908422aca4bab7a73097b1/biodata-tools/src/main/java/org/opencb/biodata/tools/commons/ChunkFrequencyManager.java#L586-L599
elki-project/elki
elki-core-math/src/main/java/de/lmu/ifi/dbs/elki/math/statistics/dependence/HSMDependenceMeasure.java
HSMDependenceMeasure.drawLine
private static void drawLine(int x0, int y0, int x1, int y1, boolean[][] pic) { """ Draw a line onto the array, using the classic Bresenham algorithm. @param x0 Start X @param y0 Start Y @param x1 End X @param y1 End Y @param pic Picture array """ final int xres = pic.length, yres = pic[0].length; ...
java
private static void drawLine(int x0, int y0, int x1, int y1, boolean[][] pic) { final int xres = pic.length, yres = pic[0].length; // Ensure bounds y0 = (y0 < 0) ? 0 : (y0 >= yres) ? (yres - 1) : y0; y1 = (y1 < 0) ? 0 : (y1 >= yres) ? (yres - 1) : y1; x0 = (x0 < 0) ? 0 : (x0 >= xres) ? (xres - 1) : ...
[ "private", "static", "void", "drawLine", "(", "int", "x0", ",", "int", "y0", ",", "int", "x1", ",", "int", "y1", ",", "boolean", "[", "]", "[", "]", "pic", ")", "{", "final", "int", "xres", "=", "pic", ".", "length", ",", "yres", "=", "pic", "[...
Draw a line onto the array, using the classic Bresenham algorithm. @param x0 Start X @param y0 Start Y @param x1 End X @param y1 End Y @param pic Picture array
[ "Draw", "a", "line", "onto", "the", "array", "using", "the", "classic", "Bresenham", "algorithm", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-core-math/src/main/java/de/lmu/ifi/dbs/elki/math/statistics/dependence/HSMDependenceMeasure.java#L197-L226
line/armeria
core/src/main/java/com/linecorp/armeria/common/util/EventLoopGroups.java
EventLoopGroups.newEventLoopGroup
public static EventLoopGroup newEventLoopGroup(int numThreads, String threadNamePrefix, boolean useDaemonThreads) { """ Returns a newly-created {@link EventLoopGroup}. @param numThreads the number of event loop threads @param threadNamePrefix the prefix of thr...
java
public static EventLoopGroup newEventLoopGroup(int numThreads, String threadNamePrefix, boolean useDaemonThreads) { checkArgument(numThreads > 0, "numThreads: %s (expected: > 0)", numThreads); requireNonNull(threadNamePrefix, "threadNamePrefix"); ...
[ "public", "static", "EventLoopGroup", "newEventLoopGroup", "(", "int", "numThreads", ",", "String", "threadNamePrefix", ",", "boolean", "useDaemonThreads", ")", "{", "checkArgument", "(", "numThreads", ">", "0", ",", "\"numThreads: %s (expected: > 0)\"", ",", "numThread...
Returns a newly-created {@link EventLoopGroup}. @param numThreads the number of event loop threads @param threadNamePrefix the prefix of thread names @param useDaemonThreads whether to create daemon threads or not
[ "Returns", "a", "newly", "-", "created", "{", "@link", "EventLoopGroup", "}", "." ]
train
https://github.com/line/armeria/blob/67d29e019fd35a35f89c45cc8f9119ff9b12b44d/core/src/main/java/com/linecorp/armeria/common/util/EventLoopGroups.java#L84-L93
languagetool-org/languagetool
languagetool-commandline/src/main/java/org/languagetool/commandline/CommandLineTools.java
CommandLineTools.tagText
public static void tagText(String contents, JLanguageTool lt) throws IOException { """ Tags text using the LanguageTool tagger, printing results to System.out. @param contents Text to tag. @param lt LanguageTool instance """ AnalyzedSentence analyzedText; List<String> sentences = lt.sentenceTokeniz...
java
public static void tagText(String contents, JLanguageTool lt) throws IOException { AnalyzedSentence analyzedText; List<String> sentences = lt.sentenceTokenize(contents); for (String sentence : sentences) { analyzedText = lt.getAnalyzedSentence(sentence); System.out.println(analyzedText); } ...
[ "public", "static", "void", "tagText", "(", "String", "contents", ",", "JLanguageTool", "lt", ")", "throws", "IOException", "{", "AnalyzedSentence", "analyzedText", ";", "List", "<", "String", ">", "sentences", "=", "lt", ".", "sentenceTokenize", "(", "contents"...
Tags text using the LanguageTool tagger, printing results to System.out. @param contents Text to tag. @param lt LanguageTool instance
[ "Tags", "text", "using", "the", "LanguageTool", "tagger", "printing", "results", "to", "System", ".", "out", "." ]
train
https://github.com/languagetool-org/languagetool/blob/b7a3d63883d242fb2525877c6382681c57a0a142/languagetool-commandline/src/main/java/org/languagetool/commandline/CommandLineTools.java#L62-L69
entrusc/Pi-RC-Switch
src/main/java/de/pi3g/pi/rcswitch/RCSwitch.java
RCSwitch.switchOff
public void switchOff(BitSet switchGroupAddress, int switchCode) { """ Switch a remote switch off @param switchGroupAddress Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111") @param switchCode Number of the switch itself (1..4 for A..D...
java
public void switchOff(BitSet switchGroupAddress, int switchCode) { if (switchGroupAddress.length() > 5) { throw new IllegalArgumentException("switch group address has more than 5 bits!"); } this.sendTriState(this.getCodeWordA(switchGroupAddress, switchCode, false)); }
[ "public", "void", "switchOff", "(", "BitSet", "switchGroupAddress", ",", "int", "switchCode", ")", "{", "if", "(", "switchGroupAddress", ".", "length", "(", ")", ">", "5", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"switch group address has more ...
Switch a remote switch off @param switchGroupAddress Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111") @param switchCode Number of the switch itself (1..4 for A..D)
[ "Switch", "a", "remote", "switch", "off" ]
train
https://github.com/entrusc/Pi-RC-Switch/blob/3a7433074a3382154cfc31c086eee75e928aced7/src/main/java/de/pi3g/pi/rcswitch/RCSwitch.java#L104-L109
apache/groovy
src/main/java/org/codehaus/groovy/ast/tools/WideningCategories.java
WideningCategories.parameterizeLowestUpperBound
private static ClassNode parameterizeLowestUpperBound(final ClassNode lub, final ClassNode a, final ClassNode b, final ClassNode fallback) { """ Given a lowest upper bound computed without generic type information but which requires to be parameterized and the two implementing classnodes which are parameterized w...
java
private static ClassNode parameterizeLowestUpperBound(final ClassNode lub, final ClassNode a, final ClassNode b, final ClassNode fallback) { if (!lub.isUsingGenerics()) return lub; // a common super type exists, all we have to do is to parameterize // it according to the types provided by the tw...
[ "private", "static", "ClassNode", "parameterizeLowestUpperBound", "(", "final", "ClassNode", "lub", ",", "final", "ClassNode", "a", ",", "final", "ClassNode", "b", ",", "final", "ClassNode", "fallback", ")", "{", "if", "(", "!", "lub", ".", "isUsingGenerics", ...
Given a lowest upper bound computed without generic type information but which requires to be parameterized and the two implementing classnodes which are parameterized with potentially two different types, returns a parameterized lowest upper bound. For example, if LUB is Set&lt;T&gt; and a is Set&lt;String&gt; and b ...
[ "Given", "a", "lowest", "upper", "bound", "computed", "without", "generic", "type", "information", "but", "which", "requires", "to", "be", "parameterized", "and", "the", "two", "implementing", "classnodes", "which", "are", "parameterized", "with", "potentially", "...
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/java/org/codehaus/groovy/ast/tools/WideningCategories.java#L255-L287
apache/flink
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
StreamExecutionEnvironment.createRemoteEnvironment
public static StreamExecutionEnvironment createRemoteEnvironment( String host, int port, int parallelism, String... jarFiles) { """ Creates a {@link RemoteStreamEnvironment}. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be ac...
java
public static StreamExecutionEnvironment createRemoteEnvironment( String host, int port, int parallelism, String... jarFiles) { RemoteStreamEnvironment env = new RemoteStreamEnvironment(host, port, jarFiles); env.setParallelism(parallelism); return env; }
[ "public", "static", "StreamExecutionEnvironment", "createRemoteEnvironment", "(", "String", "host", ",", "int", "port", ",", "int", "parallelism", ",", "String", "...", "jarFiles", ")", "{", "RemoteStreamEnvironment", "env", "=", "new", "RemoteStreamEnvironment", "(",...
Creates a {@link RemoteStreamEnvironment}. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be accessible from the cluster. The execution will use the specified parallelism. @param host The host name or address of the master (JobManager),...
[ "Creates", "a", "{", "@link", "RemoteStreamEnvironment", "}", ".", "The", "remote", "environment", "sends", "(", "parts", "of", ")", "the", "program", "to", "a", "cluster", "for", "execution", ".", "Note", "that", "all", "file", "paths", "used", "in", "the...
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java#L1708-L1713
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/Criteria.java
Criteria.near
public Criteria near(Point location, @Nullable Distance distance) { """ Creates new {@link Predicate} for {@code !bbox} for a specified distance. The difference between this and {@code within} is this is approximate while {@code within} is exact. @param location @param distance @return @throws IllegalArgume...
java
public Criteria near(Point location, @Nullable Distance distance) { Assert.notNull(location, "Location must not be 'null' for near criteria."); assertPositiveDistanceValue(distance); predicates.add( new Predicate(OperationKey.NEAR, new Object[] { location, distance != null ? distance : new Distance(0) })); ...
[ "public", "Criteria", "near", "(", "Point", "location", ",", "@", "Nullable", "Distance", "distance", ")", "{", "Assert", ".", "notNull", "(", "location", ",", "\"Location must not be 'null' for near criteria.\"", ")", ";", "assertPositiveDistanceValue", "(", "distanc...
Creates new {@link Predicate} for {@code !bbox} for a specified distance. The difference between this and {@code within} is this is approximate while {@code within} is exact. @param location @param distance @return @throws IllegalArgumentException if location is null @throws InvalidDataAccessApiUsageException if dista...
[ "Creates", "new", "{", "@link", "Predicate", "}", "for", "{", "@code", "!bbox", "}", "for", "a", "specified", "distance", ".", "The", "difference", "between", "this", "and", "{", "@code", "within", "}", "is", "this", "is", "approximate", "while", "{", "@...
train
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/Criteria.java#L542-L549
alkacon/opencms-core
src/org/opencms/workplace/editors/CmsSimpleEditor.java
CmsSimpleEditor.decodeContentParameter
protected String decodeContentParameter(String encodedContent, String encoding, CmsFile originalFile) { """ Decodes the content from the content request parameter.<p> @param encodedContent the encoded content @param encoding the encoding to use @param originalFile the current file state @return the decoded...
java
protected String decodeContentParameter(String encodedContent, String encoding, CmsFile originalFile) { return decodeContent(encodedContent); }
[ "protected", "String", "decodeContentParameter", "(", "String", "encodedContent", ",", "String", "encoding", ",", "CmsFile", "originalFile", ")", "{", "return", "decodeContent", "(", "encodedContent", ")", ";", "}" ]
Decodes the content from the content request parameter.<p> @param encodedContent the encoded content @param encoding the encoding to use @param originalFile the current file state @return the decoded content
[ "Decodes", "the", "content", "from", "the", "content", "request", "parameter", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/workplace/editors/CmsSimpleEditor.java#L178-L181
cojen/Cojen
src/main/java/org/cojen/classfile/ClassFile.java
ClassFile.addMethod
public MethodInfo addMethod(Modifiers modifiers, String methodName, TypeDesc ret, TypeDesc[] params) { """ Add a method to this class. @param ret Is null if method returns void. @param params May be null if method a...
java
public MethodInfo addMethod(Modifiers modifiers, String methodName, TypeDesc ret, TypeDesc[] params) { MethodDesc md = MethodDesc.forArguments(ret, params); return addMethod(modifiers, methodName, md); }
[ "public", "MethodInfo", "addMethod", "(", "Modifiers", "modifiers", ",", "String", "methodName", ",", "TypeDesc", "ret", ",", "TypeDesc", "[", "]", "params", ")", "{", "MethodDesc", "md", "=", "MethodDesc", ".", "forArguments", "(", "ret", ",", "params", ")"...
Add a method to this class. @param ret Is null if method returns void. @param params May be null if method accepts no parameters.
[ "Add", "a", "method", "to", "this", "class", "." ]
train
https://github.com/cojen/Cojen/blob/ddee9a0fde83870b97e0ed04c58270aa665f3a62/src/main/java/org/cojen/classfile/ClassFile.java#L746-L752
iipc/webarchive-commons
src/main/java/org/archive/io/ObjectPlusFilesOutputStream.java
ObjectPlusFilesOutputStream.hardlinkOrCopy
private void hardlinkOrCopy(File file, File destination) throws IOException { """ Create a backup of this given file, first by trying a "hard link", then by using a copy if hard linking is unavailable (either because it is unsupported or the origin and checkpoint directories are on different volumes). @param...
java
private void hardlinkOrCopy(File file, File destination) throws IOException { // For Linux/UNIX, try a hard link first. Process link = Runtime.getRuntime().exec("ln "+file.getAbsolutePath()+" "+destination.getAbsolutePath()); // TODO NTFS also supports hard links; add appropriate try try { ...
[ "private", "void", "hardlinkOrCopy", "(", "File", "file", ",", "File", "destination", ")", "throws", "IOException", "{", "// For Linux/UNIX, try a hard link first.", "Process", "link", "=", "Runtime", ".", "getRuntime", "(", ")", ".", "exec", "(", "\"ln \"", "+", ...
Create a backup of this given file, first by trying a "hard link", then by using a copy if hard linking is unavailable (either because it is unsupported or the origin and checkpoint directories are on different volumes). @param file @param destination @throws IOException
[ "Create", "a", "backup", "of", "this", "given", "file", "first", "by", "trying", "a", "hard", "link", "then", "by", "using", "a", "copy", "if", "hard", "linking", "is", "unavailable", "(", "either", "because", "it", "is", "unsupported", "or", "the", "ori...
train
https://github.com/iipc/webarchive-commons/blob/988bec707c27a01333becfc3bd502af4441ea1e1/src/main/java/org/archive/io/ObjectPlusFilesOutputStream.java#L118-L132
eclipse/xtext-lib
org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/MapExtensions.java
MapExtensions.operator_add
@Inline(value = "$1.putAll($2)", statementExpression = true) public static <K, V> void operator_add(Map<K, V> outputMap, Map<? extends K, ? extends V> inputMap) { """ Add the given entries of the input map into the output map. <p> If a key in the inputMap already exists in the outputMap, its value is replace...
java
@Inline(value = "$1.putAll($2)", statementExpression = true) public static <K, V> void operator_add(Map<K, V> outputMap, Map<? extends K, ? extends V> inputMap) { outputMap.putAll(inputMap); }
[ "@", "Inline", "(", "value", "=", "\"$1.putAll($2)\"", ",", "statementExpression", "=", "true", ")", "public", "static", "<", "K", ",", "V", ">", "void", "operator_add", "(", "Map", "<", "K", ",", "V", ">", "outputMap", ",", "Map", "<", "?", "extends",...
Add the given entries of the input map into the output map. <p> If a key in the inputMap already exists in the outputMap, its value is replaced in the outputMap by the value from the inputMap. </p> @param <K> type of the map keys. @param <V> type of the map values. @param outputMap the map to update. @param inputMap ...
[ "Add", "the", "given", "entries", "of", "the", "input", "map", "into", "the", "output", "map", "." ]
train
https://github.com/eclipse/xtext-lib/blob/7063572e1f1bd713a3aa53bdf3a8dc60e25c169a/org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/MapExtensions.java#L137-L140
lessthanoptimal/BoofCV
main/boofcv-sfm/src/main/java/boofcv/alg/sfm/overhead/CameraPlaneProjection.java
CameraPlaneProjection.setPlaneToCamera
public void setPlaneToCamera(Se3_F64 planeToCamera, boolean computeInverse ) { """ Specifies camera's extrinsic parameters. @param planeToCamera Transform from plane to camera reference frame @param computeInverse Set to true if pixelToPlane is going to be called. performs extra calculation """ this.pla...
java
public void setPlaneToCamera(Se3_F64 planeToCamera, boolean computeInverse ) { this.planeToCamera = planeToCamera; if( computeInverse ) planeToCamera.invert(cameraToPlane); }
[ "public", "void", "setPlaneToCamera", "(", "Se3_F64", "planeToCamera", ",", "boolean", "computeInverse", ")", "{", "this", ".", "planeToCamera", "=", "planeToCamera", ";", "if", "(", "computeInverse", ")", "planeToCamera", ".", "invert", "(", "cameraToPlane", ")",...
Specifies camera's extrinsic parameters. @param planeToCamera Transform from plane to camera reference frame @param computeInverse Set to true if pixelToPlane is going to be called. performs extra calculation
[ "Specifies", "camera", "s", "extrinsic", "parameters", "." ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-sfm/src/main/java/boofcv/alg/sfm/overhead/CameraPlaneProjection.java#L90-L95
Netflix/Nicobar
nicobar-core/src/main/java/com/netflix/nicobar/core/module/GraphUtils.java
GraphUtils.removeVertices
public static <V> void removeVertices(DirectedGraph<V, DefaultEdge> graph, Set<V> vertices) { """ Removes vertices from graph @param graph raph to mutate @param vertices vertices to remove """ for (V vertex : vertices) { if (graph.containsVertex(vertex)) { graph.removeVert...
java
public static <V> void removeVertices(DirectedGraph<V, DefaultEdge> graph, Set<V> vertices) { for (V vertex : vertices) { if (graph.containsVertex(vertex)) { graph.removeVertex(vertex); } } }
[ "public", "static", "<", "V", ">", "void", "removeVertices", "(", "DirectedGraph", "<", "V", ",", "DefaultEdge", ">", "graph", ",", "Set", "<", "V", ">", "vertices", ")", "{", "for", "(", "V", "vertex", ":", "vertices", ")", "{", "if", "(", "graph", ...
Removes vertices from graph @param graph raph to mutate @param vertices vertices to remove
[ "Removes", "vertices", "from", "graph" ]
train
https://github.com/Netflix/Nicobar/blob/507173dcae4a86a955afc3df222a855862fab8d7/nicobar-core/src/main/java/com/netflix/nicobar/core/module/GraphUtils.java#L181-L187
orbisgis/h2gis
h2gis-functions/src/main/java/org/h2gis/functions/spatial/topography/ST_Drape.java
ST_Drape.drapePoints
public static Geometry drapePoints(Geometry pts, Geometry triangles, STRtree sTRtree) { """ Drape a point or a multipoint geometry to a set of triangles @param pts @param triangles @param sTRtree @return """ Geometry geomDrapped = pts.copy(); CoordinateSequenceFilter drapeFilter = new Drape...
java
public static Geometry drapePoints(Geometry pts, Geometry triangles, STRtree sTRtree) { Geometry geomDrapped = pts.copy(); CoordinateSequenceFilter drapeFilter = new DrapeFilter(sTRtree); geomDrapped.apply(drapeFilter); return geomDrapped; }
[ "public", "static", "Geometry", "drapePoints", "(", "Geometry", "pts", ",", "Geometry", "triangles", ",", "STRtree", "sTRtree", ")", "{", "Geometry", "geomDrapped", "=", "pts", ".", "copy", "(", ")", ";", "CoordinateSequenceFilter", "drapeFilter", "=", "new", ...
Drape a point or a multipoint geometry to a set of triangles @param pts @param triangles @param sTRtree @return
[ "Drape", "a", "point", "or", "a", "multipoint", "geometry", "to", "a", "set", "of", "triangles" ]
train
https://github.com/orbisgis/h2gis/blob/9cd70b447e6469cecbc2fc64b16774b59491df3b/h2gis-functions/src/main/java/org/h2gis/functions/spatial/topography/ST_Drape.java#L91-L96
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteNote
public void deleteNote(Serializable projectId, Integer issueId, GitlabNote noteToDelete) throws IOException { """ Delete an Issue Note @param projectId The project id @param issueId The issue id @param noteToDelete The note to delete @throws IOException on gitlab api call error """ String...
java
public void deleteNote(Serializable projectId, Integer issueId, GitlabNote noteToDelete) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabIssue.URL + "/" + issueId + GitlabNote.URL + "/" + noteToDelete.getId(); retrieve(...
[ "public", "void", "deleteNote", "(", "Serializable", "projectId", ",", "Integer", "issueId", ",", "GitlabNote", "noteToDelete", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", ...
Delete an Issue Note @param projectId The project id @param issueId The issue id @param noteToDelete The note to delete @throws IOException on gitlab api call error
[ "Delete", "an", "Issue", "Note" ]
train
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2577-L2582
nabedge/mixer2
src/main/java/org/mixer2/xhtml/AbstractJaxb.java
AbstractJaxb.getByName
public <T extends AbstractJaxb> T getByName(String name, Class<T> tagType) { """ <p>find tag by "name" property. (the first one in this tag)</p> @param name @param tagType @param <T> @return null if not found. """ return GetByNameUtil.getByName((T) this, name, tagType); }
java
public <T extends AbstractJaxb> T getByName(String name, Class<T> tagType) { return GetByNameUtil.getByName((T) this, name, tagType); }
[ "public", "<", "T", "extends", "AbstractJaxb", ">", "T", "getByName", "(", "String", "name", ",", "Class", "<", "T", ">", "tagType", ")", "{", "return", "GetByNameUtil", ".", "getByName", "(", "(", "T", ")", "this", ",", "name", ",", "tagType", ")", ...
<p>find tag by "name" property. (the first one in this tag)</p> @param name @param tagType @param <T> @return null if not found.
[ "<p", ">", "find", "tag", "by", "name", "property", ".", "(", "the", "first", "one", "in", "this", "tag", ")", "<", "/", "p", ">" ]
train
https://github.com/nabedge/mixer2/blob/8c2db27cfcd65bf0b1e0242ef9362ebd8033777c/src/main/java/org/mixer2/xhtml/AbstractJaxb.java#L895-L897
bluelinelabs/Conductor
conductor/src/main/java/com/bluelinelabs/conductor/changehandler/SharedElementTransitionChangeHandler.java
SharedElementTransitionChangeHandler.addSharedElement
protected final void addSharedElement(@NonNull View sharedElement, @NonNull String toName) { """ Used to register an element that will take part in the shared element transition. Maps the name used in the "from" view to the name used in the "to" view if they are not the same. @param sharedElement The view from...
java
protected final void addSharedElement(@NonNull View sharedElement, @NonNull String toName) { String transitionName = sharedElement.getTransitionName(); if (transitionName == null) { throw new IllegalArgumentException("Unique transitionNames are required for all sharedElements"); } ...
[ "protected", "final", "void", "addSharedElement", "(", "@", "NonNull", "View", "sharedElement", ",", "@", "NonNull", "String", "toName", ")", "{", "String", "transitionName", "=", "sharedElement", ".", "getTransitionName", "(", ")", ";", "if", "(", "transitionNa...
Used to register an element that will take part in the shared element transition. Maps the name used in the "from" view to the name used in the "to" view if they are not the same. @param sharedElement The view from the "from" view that will take part in the shared element transition @param toName The transition name u...
[ "Used", "to", "register", "an", "element", "that", "will", "take", "part", "in", "the", "shared", "element", "transition", ".", "Maps", "the", "name", "used", "in", "the", "from", "view", "to", "the", "name", "used", "in", "the", "to", "view", "if", "t...
train
https://github.com/bluelinelabs/Conductor/blob/94c9121bb16f93b481954513a8e3905846829fb2/conductor/src/main/java/com/bluelinelabs/conductor/changehandler/SharedElementTransitionChangeHandler.java#L574-L580
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DateTimePatternGenerator.java
DateTimePatternGenerator.skeletonsAreSimilar
@Deprecated public boolean skeletonsAreSimilar(String id, String skeleton) { """ Used by CLDR tooling; not in ICU4C. Note, this will not work correctly with normal skeletons, since fields that should be related in the two skeletons being compared - like EEE and ccc, or y and U - will not be sorted in the sa...
java
@Deprecated public boolean skeletonsAreSimilar(String id, String skeleton) { if (id.equals(skeleton)) { return true; // fast path } // must clone array, make sure items are in same order. TreeSet<String> parser1 = getSet(id); TreeSet<String> parser2 = getSet(skele...
[ "@", "Deprecated", "public", "boolean", "skeletonsAreSimilar", "(", "String", "id", ",", "String", "skeleton", ")", "{", "if", "(", "id", ".", "equals", "(", "skeleton", ")", ")", "{", "return", "true", ";", "// fast path", "}", "// must clone array, make sure...
Used by CLDR tooling; not in ICU4C. Note, this will not work correctly with normal skeletons, since fields that should be related in the two skeletons being compared - like EEE and ccc, or y and U - will not be sorted in the same relative place as each other when iterating over both TreeSets being compare, using TreeSe...
[ "Used", "by", "CLDR", "tooling", ";", "not", "in", "ICU4C", ".", "Note", "this", "will", "not", "work", "correctly", "with", "normal", "skeletons", "since", "fields", "that", "should", "be", "related", "in", "the", "two", "skeletons", "being", "compared", ...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DateTimePatternGenerator.java#L1668-L1689
3pillarlabs/spring-data-simpledb
spring-data-simpledb-impl/src/main/java/org/springframework/data/simpledb/core/DomainItemBuilder.java
DomainItemBuilder.populateDomainItem
public T populateDomainItem(SimpleDbEntityInformation<T, ?> entityInformation, Item item) { """ Used during deserialization process, each item being populated based on attributes retrieved from DB @param entityInformation @param item @return T the Item Instance """ return buildDomainItem(entityInformation...
java
public T populateDomainItem(SimpleDbEntityInformation<T, ?> entityInformation, Item item) { return buildDomainItem(entityInformation, item); }
[ "public", "T", "populateDomainItem", "(", "SimpleDbEntityInformation", "<", "T", ",", "?", ">", "entityInformation", ",", "Item", "item", ")", "{", "return", "buildDomainItem", "(", "entityInformation", ",", "item", ")", ";", "}" ]
Used during deserialization process, each item being populated based on attributes retrieved from DB @param entityInformation @param item @return T the Item Instance
[ "Used", "during", "deserialization", "process", "each", "item", "being", "populated", "based", "on", "attributes", "retrieved", "from", "DB" ]
train
https://github.com/3pillarlabs/spring-data-simpledb/blob/f1e0eb4e48ec4674d3966e8f5bc04c95031f93ae/spring-data-simpledb-impl/src/main/java/org/springframework/data/simpledb/core/DomainItemBuilder.java#L35-L37
Azure/azure-sdk-for-java
network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/ApplicationGatewaysInner.java
ApplicationGatewaysInner.beginBackendHealth
public ApplicationGatewayBackendHealthInner beginBackendHealth(String resourceGroupName, String applicationGatewayName) { """ Gets the backend health of the specified application gateway in a resource group. @param resourceGroupName The name of the resource group. @param applicationGatewayName The name of the ...
java
public ApplicationGatewayBackendHealthInner beginBackendHealth(String resourceGroupName, String applicationGatewayName) { return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
[ "public", "ApplicationGatewayBackendHealthInner", "beginBackendHealth", "(", "String", "resourceGroupName", ",", "String", "applicationGatewayName", ")", "{", "return", "beginBackendHealthWithServiceResponseAsync", "(", "resourceGroupName", ",", "applicationGatewayName", ")", "."...
Gets the backend health of the specified application gateway in a resource group. @param resourceGroupName The name of the resource group. @param applicationGatewayName The name of the application gateway. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the re...
[ "Gets", "the", "backend", "health", "of", "the", "specified", "application", "gateway", "in", "a", "resource", "group", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/ApplicationGatewaysInner.java#L1543-L1545
apache/fluo
modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java
Bytes.subSequence
public Bytes subSequence(int start, int end) { """ Returns a portion of the Bytes object @param start index of subsequence start (inclusive) @param end index of subsequence end (exclusive) """ if (start > end || start < 0 || end > length) { throw new IndexOutOfBoundsException("Bad start and/end s...
java
public Bytes subSequence(int start, int end) { if (start > end || start < 0 || end > length) { throw new IndexOutOfBoundsException("Bad start and/end start = " + start + " end=" + end + " offset=" + offset + " length=" + length); } return new Bytes(data, offset + start, end - start); }
[ "public", "Bytes", "subSequence", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "start", ">", "end", "||", "start", "<", "0", "||", "end", ">", "length", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"Bad start and/end start ...
Returns a portion of the Bytes object @param start index of subsequence start (inclusive) @param end index of subsequence end (exclusive)
[ "Returns", "a", "portion", "of", "the", "Bytes", "object" ]
train
https://github.com/apache/fluo/blob/8e06204d4167651e2d3b5219b8c1397644e6ba6e/modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java#L129-L135
baasbox/Android-SDK
library/src/main/java/com/baasbox/android/RequestToken.java
RequestToken.loadAndResume
public static RequestToken loadAndResume(Bundle bundle, String name, BaasHandler<?> handler) { """ Loads a request token from the bundle and immediately tries to resume the request with handler @param bundle a non null bundle @param name the key of the saved token @param handler a handler to resume the r...
java
public static RequestToken loadAndResume(Bundle bundle, String name, BaasHandler<?> handler) { if (bundle == null) throw new IllegalArgumentException("bunlde cannot be null"); if (name == null) throw new IllegalArgumentException("name cannot be null"); RequestToken token ...
[ "public", "static", "RequestToken", "loadAndResume", "(", "Bundle", "bundle", ",", "String", "name", ",", "BaasHandler", "<", "?", ">", "handler", ")", "{", "if", "(", "bundle", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"bunlde cann...
Loads a request token from the bundle and immediately tries to resume the request with handler @param bundle a non null bundle @param name the key of the saved token @param handler a handler to resume the request with. @return the token if resumed, null otherwise
[ "Loads", "a", "request", "token", "from", "the", "bundle", "and", "immediately", "tries", "to", "resume", "the", "request", "with", "handler" ]
train
https://github.com/baasbox/Android-SDK/blob/6bb2203246b885b2ad63a7bfaf37c83caf15e0d8/library/src/main/java/com/baasbox/android/RequestToken.java#L64-L74
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
SqlQueryStatement.appendWhereClause
protected void appendWhereClause(StringBuffer where, Criteria crit, StringBuffer stmt) { """ appends a WHERE-clause to the Statement @param where @param crit @param stmt """ if (where.length() == 0) { where = null; } if (where != null || (crit != null && !c...
java
protected void appendWhereClause(StringBuffer where, Criteria crit, StringBuffer stmt) { if (where.length() == 0) { where = null; } if (where != null || (crit != null && !crit.isEmpty())) { stmt.append(" WHERE "); appendClause(wh...
[ "protected", "void", "appendWhereClause", "(", "StringBuffer", "where", ",", "Criteria", "crit", ",", "StringBuffer", "stmt", ")", "{", "if", "(", "where", ".", "length", "(", ")", "==", "0", ")", "{", "where", "=", "null", ";", "}", "if", "(", "where"...
appends a WHERE-clause to the Statement @param where @param crit @param stmt
[ "appends", "a", "WHERE", "-", "clause", "to", "the", "Statement" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java#L541-L553
alkacon/opencms-core
src/org/opencms/db/CmsDbPoolV11.java
CmsDbPoolV11.getPropertyRelativeSuffix
public static String getPropertyRelativeSuffix(String prefix, String str) { """ If str starts with prefix + '.', return the remaining part, otherwise return null.<p> @param prefix the prefix @param str the string to remove the prefix from @return str with the prefix removed, or null if it didn't start with pr...
java
public static String getPropertyRelativeSuffix(String prefix, String str) { String realPrefix = prefix + "."; if (str.startsWith(realPrefix)) { return str.substring(realPrefix.length()); } return null; }
[ "public", "static", "String", "getPropertyRelativeSuffix", "(", "String", "prefix", ",", "String", "str", ")", "{", "String", "realPrefix", "=", "prefix", "+", "\".\"", ";", "if", "(", "str", ".", "startsWith", "(", "realPrefix", ")", ")", "{", "return", "...
If str starts with prefix + '.', return the remaining part, otherwise return null.<p> @param prefix the prefix @param str the string to remove the prefix from @return str with the prefix removed, or null if it didn't start with prefix + '.'
[ "If", "str", "starts", "with", "prefix", "+", ".", "return", "the", "remaining", "part", "otherwise", "return", "null", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsDbPoolV11.java#L264-L271
FXMisc/WellBehavedFX
src/main/java/org/fxmisc/wellbehaved/event/template/InputMapTemplate.java
InputMapTemplate.ifIgnored
public InputMapTemplate<S, E> ifIgnored(BiConsumer<? super S, ? super E> postIgnore) { """ Executes some additional handler if the event was ignored (e.g. {@link InputHandlerTemplate#process(Object, Event)} returns {@link Result#IGNORE}). """ return postResult(Result.IGNORE, postIgnore); }
java
public InputMapTemplate<S, E> ifIgnored(BiConsumer<? super S, ? super E> postIgnore) { return postResult(Result.IGNORE, postIgnore); }
[ "public", "InputMapTemplate", "<", "S", ",", "E", ">", "ifIgnored", "(", "BiConsumer", "<", "?", "super", "S", ",", "?", "super", "E", ">", "postIgnore", ")", "{", "return", "postResult", "(", "Result", ".", "IGNORE", ",", "postIgnore", ")", ";", "}" ]
Executes some additional handler if the event was ignored (e.g. {@link InputHandlerTemplate#process(Object, Event)} returns {@link Result#IGNORE}).
[ "Executes", "some", "additional", "handler", "if", "the", "event", "was", "ignored", "(", "e", ".", "g", ".", "{" ]
train
https://github.com/FXMisc/WellBehavedFX/blob/ca889734481f5439655ca8deb6f742964b5654b0/src/main/java/org/fxmisc/wellbehaved/event/template/InputMapTemplate.java#L184-L186
beangle/beangle3
ioc/spring/src/main/java/org/beangle/inject/spring/config/BeanDefinitionParser.java
BeanDefinitionParser.checkNameUniqueness
protected void checkNameUniqueness(String beanName, List<String> aliases, Element beanElement) { """ Validate that the specified bean name and aliases have not been used already. @param beanName a {@link java.lang.String} object. @param aliases a {@link java.util.List} object. @param beanElement a {@link org...
java
protected void checkNameUniqueness(String beanName, List<String> aliases, Element beanElement) { String foundName = null; if (StringUtils.hasText(beanName) && this.usedNames.contains(beanName)) foundName = beanName; if (foundName == null) foundName = (String) CollectionUtils.findFirstMatch(this.usedNames,...
[ "protected", "void", "checkNameUniqueness", "(", "String", "beanName", ",", "List", "<", "String", ">", "aliases", ",", "Element", "beanElement", ")", "{", "String", "foundName", "=", "null", ";", "if", "(", "StringUtils", ".", "hasText", "(", "beanName", ")...
Validate that the specified bean name and aliases have not been used already. @param beanName a {@link java.lang.String} object. @param aliases a {@link java.util.List} object. @param beanElement a {@link org.w3c.dom.Element} object.
[ "Validate", "that", "the", "specified", "bean", "name", "and", "aliases", "have", "not", "been", "used", "already", "." ]
train
https://github.com/beangle/beangle3/blob/33df2873a5f38e28ac174a1d3b8144eb2f808e64/ioc/spring/src/main/java/org/beangle/inject/spring/config/BeanDefinitionParser.java#L179-L190
messagebird/java-rest-api
api/src/main/java/com/messagebird/MessageBirdClient.java
MessageBirdClient.sendVoiceMessage
public VoiceMessageResponse sendVoiceMessage(final String body, final List<BigInteger> recipients) throws UnauthorizedException, GeneralException { """ Convenient function to send a simple message to a list of recipients @param body Body of the message @param recipients List of recipients @return VoiceM...
java
public VoiceMessageResponse sendVoiceMessage(final String body, final List<BigInteger> recipients) throws UnauthorizedException, GeneralException { final VoiceMessage message = new VoiceMessage(body, recipients); return messageBirdService.sendPayLoad(VOICEMESSAGESPATH, message, VoiceMessageResponse.clas...
[ "public", "VoiceMessageResponse", "sendVoiceMessage", "(", "final", "String", "body", ",", "final", "List", "<", "BigInteger", ">", "recipients", ")", "throws", "UnauthorizedException", ",", "GeneralException", "{", "final", "VoiceMessage", "message", "=", "new", "V...
Convenient function to send a simple message to a list of recipients @param body Body of the message @param recipients List of recipients @return VoiceMessageResponse @throws UnauthorizedException if client is unauthorized @throws GeneralException general exception
[ "Convenient", "function", "to", "send", "a", "simple", "message", "to", "a", "list", "of", "recipients" ]
train
https://github.com/messagebird/java-rest-api/blob/f92cd93afff413e6dc12aa6e41e69f26cbae8941/api/src/main/java/com/messagebird/MessageBirdClient.java#L273-L276
WASdev/tool.accelerate.core
liberty-starter-application/src/main/java/com/ibm/liberty/starter/build/maven/DomUtil.java
DomUtil.getGrandchildNode
public static Node getGrandchildNode(Node parentNode, String childNodeName, String grandChildNodeName, String grandChildNodeValue) { """ Get the matching grand child node @param parentNode - the parent node @param childNodeName - name of child node to match @param grandChildNodeName - name of grand child node t...
java
public static Node getGrandchildNode(Node parentNode, String childNodeName, String grandChildNodeName, String grandChildNodeValue){ List<Node> matchingChildren = getChildren(parentNode, childNodeName, null); for(Node child : matchingChildren){ Node matchingGrandCh...
[ "public", "static", "Node", "getGrandchildNode", "(", "Node", "parentNode", ",", "String", "childNodeName", ",", "String", "grandChildNodeName", ",", "String", "grandChildNodeValue", ")", "{", "List", "<", "Node", ">", "matchingChildren", "=", "getChildren", "(", ...
Get the matching grand child node @param parentNode - the parent node @param childNodeName - name of child node to match @param grandChildNodeName - name of grand child node to match @param grandChildNodeValue - value of grand child node to match @return the grand child node if a match was found, null otherwise
[ "Get", "the", "matching", "grand", "child", "node" ]
train
https://github.com/WASdev/tool.accelerate.core/blob/6511da654a69a25a76573eb76eefff349d9c4d80/liberty-starter-application/src/main/java/com/ibm/liberty/starter/build/maven/DomUtil.java#L63-L72
looly/hutool
hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java
BeanUtil.mapToBeanIgnoreCase
public static <T> T mapToBeanIgnoreCase(Map<?, ?> map, Class<T> beanClass, boolean isIgnoreError) { """ Map转换为Bean对象<br> 忽略大小写 @param <T> Bean类型 @param map Map @param beanClass Bean Class @param isIgnoreError 是否忽略注入错误 @return Bean """ return fillBeanWithMapIgnoreCase(map, ReflectUtil.newInstance(bea...
java
public static <T> T mapToBeanIgnoreCase(Map<?, ?> map, Class<T> beanClass, boolean isIgnoreError) { return fillBeanWithMapIgnoreCase(map, ReflectUtil.newInstance(beanClass), isIgnoreError); }
[ "public", "static", "<", "T", ">", "T", "mapToBeanIgnoreCase", "(", "Map", "<", "?", ",", "?", ">", "map", ",", "Class", "<", "T", ">", "beanClass", ",", "boolean", "isIgnoreError", ")", "{", "return", "fillBeanWithMapIgnoreCase", "(", "map", ",", "Refle...
Map转换为Bean对象<br> 忽略大小写 @param <T> Bean类型 @param map Map @param beanClass Bean Class @param isIgnoreError 是否忽略注入错误 @return Bean
[ "Map转换为Bean对象<br", ">", "忽略大小写" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java#L341-L343
Wikidata/Wikidata-Toolkit
wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/helpers/Datamodel.java
Datamodel.makeSenseIdValue
public static SenseIdValue makeSenseIdValue(String id, String siteIri) { """ Creates an {@link SenseIdValue}. @param id a string of the form Ln...-Sm... where n... and m... are the string representation of a positive integer number @param siteIri IRI to identify the site, usually the first part of the entit...
java
public static SenseIdValue makeSenseIdValue(String id, String siteIri) { return factory.getSenseIdValue(id, siteIri); }
[ "public", "static", "SenseIdValue", "makeSenseIdValue", "(", "String", "id", ",", "String", "siteIri", ")", "{", "return", "factory", ".", "getSenseIdValue", "(", "id", ",", "siteIri", ")", ";", "}" ]
Creates an {@link SenseIdValue}. @param id a string of the form Ln...-Sm... where n... and m... are the string representation of a positive integer number @param siteIri IRI to identify the site, usually the first part of the entity IRI of the site this belongs to, e.g., "http://www.wikidata.org/entity/" @return an {@...
[ "Creates", "an", "{", "@link", "SenseIdValue", "}", "." ]
train
https://github.com/Wikidata/Wikidata-Toolkit/blob/7732851dda47e1febff406fba27bfec023f4786e/wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/helpers/Datamodel.java#L170-L172
jenkinsci/jenkins
core/src/main/java/hudson/util/DescriptorList.java
DescriptorList.newInstanceFromRadioList
@CheckForNull public T newInstanceFromRadioList(JSONObject parent, String name) throws FormException { """ Creates a new instance of a {@link Describable} from the structured form submission data posted by a radio button group. @param parent JSON, which contains the configuration entry for the radio list @...
java
@CheckForNull public T newInstanceFromRadioList(JSONObject parent, String name) throws FormException { return newInstanceFromRadioList(parent.getJSONObject(name)); }
[ "@", "CheckForNull", "public", "T", "newInstanceFromRadioList", "(", "JSONObject", "parent", ",", "String", "name", ")", "throws", "FormException", "{", "return", "newInstanceFromRadioList", "(", "parent", ".", "getJSONObject", "(", "name", ")", ")", ";", "}" ]
Creates a new instance of a {@link Describable} from the structured form submission data posted by a radio button group. @param parent JSON, which contains the configuration entry for the radio list @param name Name of the configuration entry for the radio list @return new instance or {@code null} if none was selected ...
[ "Creates", "a", "new", "instance", "of", "a", "{" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/util/DescriptorList.java#L177-L180
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.copySheet
public Sheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet<SheetCopyInclusion> includes) throws SmartsheetException { """ Creates a copy of the specified sheet. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy Exceptions: IllegalArgumentExcep...
java
public Sheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet<SheetCopyInclusion> includes) throws SmartsheetException { return copySheet(sheetId, containerDestination, includes, null); }
[ "public", "Sheet", "copySheet", "(", "long", "sheetId", ",", "ContainerDestination", "containerDestination", ",", "EnumSet", "<", "SheetCopyInclusion", ">", "includes", ")", "throws", "SmartsheetException", "{", "return", "copySheet", "(", "sheetId", ",", "containerDe...
Creates a copy of the specified sheet. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy Exceptions: IllegalArgumentException : if folder is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the RE...
[ "Creates", "a", "copy", "of", "the", "specified", "sheet", "." ]
train
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L1036-L1038
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
AutoscalerClient.insertAutoscaler
@BetaApi public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autoscalerResource) { """ Creates an autoscaler in the specified project using the data included in the request. <p>Sample code: <pre><code> try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) { ProjectZoneN...
java
@BetaApi public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autoscalerResource) { InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder() .setZone(zone == null ? null : zone.toString()) .setAutoscalerResource(autoscalerResource) ...
[ "@", "BetaApi", "public", "final", "Operation", "insertAutoscaler", "(", "ProjectZoneName", "zone", ",", "Autoscaler", "autoscalerResource", ")", "{", "InsertAutoscalerHttpRequest", "request", "=", "InsertAutoscalerHttpRequest", ".", "newBuilder", "(", ")", ".", "setZon...
Creates an autoscaler in the specified project using the data included in the request. <p>Sample code: <pre><code> try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); Op...
[ "Creates", "an", "autoscaler", "in", "the", "specified", "project", "using", "the", "data", "included", "in", "the", "request", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java#L514-L523
Scout24/appmon4j
core/src/main/java/de/is24/util/monitoring/CorePlugin.java
CorePlugin.getHistorizableList
HistorizableList getHistorizableList(final String name) { """ internally used method to retrieve or create and register a named HistorizableList. @param name of the required {@link de.is24.util.monitoring.HistorizableList} @return {@link de.is24.util.monitoring.HistorizableList} instance registered for the given...
java
HistorizableList getHistorizableList(final String name) { return historizableLists.get(name, new Monitors.Factory<HistorizableList>() { @Override public HistorizableList createMonitor() { return new HistorizableList(name, maxHistoryEntriesToKeep); } }); }
[ "HistorizableList", "getHistorizableList", "(", "final", "String", "name", ")", "{", "return", "historizableLists", ".", "get", "(", "name", ",", "new", "Monitors", ".", "Factory", "<", "HistorizableList", ">", "(", ")", "{", "@", "Override", "public", "Histor...
internally used method to retrieve or create and register a named HistorizableList. @param name of the required {@link de.is24.util.monitoring.HistorizableList} @return {@link de.is24.util.monitoring.HistorizableList} instance registered for the given name
[ "internally", "used", "method", "to", "retrieve", "or", "create", "and", "register", "a", "named", "HistorizableList", "." ]
train
https://github.com/Scout24/appmon4j/blob/a662e5123805ea455cfd01e1b9ae5d808f83529c/core/src/main/java/de/is24/util/monitoring/CorePlugin.java#L429-L436
jenkinsci/jenkins
core/src/main/java/hudson/PluginManager.java
PluginManager.doSiteConfigure
@RequirePOST public HttpResponse doSiteConfigure(@QueryParameter String site) throws IOException { """ Bare-minimum configuration mechanism to change the update center. """ Jenkins hudson = Jenkins.getInstance(); hudson.checkPermission(CONFIGURE_UPDATECENTER); UpdateCenter uc = huds...
java
@RequirePOST public HttpResponse doSiteConfigure(@QueryParameter String site) throws IOException { Jenkins hudson = Jenkins.getInstance(); hudson.checkPermission(CONFIGURE_UPDATECENTER); UpdateCenter uc = hudson.getUpdateCenter(); PersistedList<UpdateSite> sites = uc.getSites(); ...
[ "@", "RequirePOST", "public", "HttpResponse", "doSiteConfigure", "(", "@", "QueryParameter", "String", "site", ")", "throws", "IOException", "{", "Jenkins", "hudson", "=", "Jenkins", ".", "getInstance", "(", ")", ";", "hudson", ".", "checkPermission", "(", "CONF...
Bare-minimum configuration mechanism to change the update center.
[ "Bare", "-", "minimum", "configuration", "mechanism", "to", "change", "the", "update", "center", "." ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/PluginManager.java#L1585-L1598
anothem/android-range-seek-bar
rangeseekbar/src/main/java/org/florescu/android/rangeseekbar/RangeSeekBar.java
RangeSeekBar.drawThumbShadow
private void drawThumbShadow(float screenCoord, Canvas canvas) { """ Draws a drop shadow beneath the slider thumb. @param screenCoord the x-coordinate of the slider thumb @param canvas the canvas on which to draw the shadow """ thumbShadowMatrix.setTranslate(screenCoord + thumbShadowXOffset, t...
java
private void drawThumbShadow(float screenCoord, Canvas canvas) { thumbShadowMatrix.setTranslate(screenCoord + thumbShadowXOffset, textOffset + thumbHalfHeight + thumbShadowYOffset); translatedThumbShadowPath.set(thumbShadowPath); translatedThumbShadowPath.transform(thumbShadowMatrix); ca...
[ "private", "void", "drawThumbShadow", "(", "float", "screenCoord", ",", "Canvas", "canvas", ")", "{", "thumbShadowMatrix", ".", "setTranslate", "(", "screenCoord", "+", "thumbShadowXOffset", ",", "textOffset", "+", "thumbHalfHeight", "+", "thumbShadowYOffset", ")", ...
Draws a drop shadow beneath the slider thumb. @param screenCoord the x-coordinate of the slider thumb @param canvas the canvas on which to draw the shadow
[ "Draws", "a", "drop", "shadow", "beneath", "the", "slider", "thumb", "." ]
train
https://github.com/anothem/android-range-seek-bar/blob/a88663da2d9e835907d3551b8a8569100c5b7b0f/rangeseekbar/src/main/java/org/florescu/android/rangeseekbar/RangeSeekBar.java#L754-L759
GenesysPureEngage/workspace-client-java
src/main/java/com/genesys/internal/workspace/api/UsersApi.java
UsersApi.getUsersAsync
public com.squareup.okhttp.Call getUsersAsync(String searchTerm, BigDecimal groupId, String sort, String sortBy, BigDecimal limit, BigDecimal offset, String channels, final ApiCallback<ApiSuccessResponse> callback) throws ApiException { """ Search for users. (asynchronously) Search for users with the specified fi...
java
public com.squareup.okhttp.Call getUsersAsync(String searchTerm, BigDecimal groupId, String sort, String sortBy, BigDecimal limit, BigDecimal offset, String channels, final ApiCallback<ApiSuccessResponse> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; Pro...
[ "public", "com", ".", "squareup", ".", "okhttp", ".", "Call", "getUsersAsync", "(", "String", "searchTerm", ",", "BigDecimal", "groupId", ",", "String", "sort", ",", "String", "sortBy", ",", "BigDecimal", "limit", ",", "BigDecimal", "offset", ",", "String", ...
Search for users. (asynchronously) Search for users with the specified filters. @param searchTerm The text to search. (optional) @param groupId The ID of the group where the user belongs. (optional) @param sort The sort order, either &#x60;asc&#x60; (ascending) or &#x60;desc&#x60; (descending). The default is &#x60;asc...
[ "Search", "for", "users", ".", "(", "asynchronously", ")", "Search", "for", "users", "with", "the", "specified", "filters", "." ]
train
https://github.com/GenesysPureEngage/workspace-client-java/blob/509fdd9e89b9359d012f9a72be95037a3cef53e6/src/main/java/com/genesys/internal/workspace/api/UsersApi.java#L190-L215
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/Compare.java
Compare.movies
public static boolean movies(final MovieInfo moviedb, final String title, final String year, int maxDistance, boolean caseSensitive) { """ Compare the MovieDB object with a title and year @param moviedb The moviedb object to compare too @param title The title of the movie to compare @param year The year of th...
java
public static boolean movies(final MovieInfo moviedb, final String title, final String year, int maxDistance, boolean caseSensitive) { if ((moviedb == null) || (StringUtils.isBlank(title))) { return false; } String primaryTitle, firstCompareTitle, secondCompareTitle; if (cas...
[ "public", "static", "boolean", "movies", "(", "final", "MovieInfo", "moviedb", ",", "final", "String", "title", ",", "final", "String", "year", ",", "int", "maxDistance", ",", "boolean", "caseSensitive", ")", "{", "if", "(", "(", "moviedb", "==", "null", "...
Compare the MovieDB object with a title and year @param moviedb The moviedb object to compare too @param title The title of the movie to compare @param year The year of the movie to compare @param maxDistance The Levenshtein Distance between the two titles. 0 = exact match @param caseSensitive true if the comparison i...
[ "Compare", "the", "MovieDB", "object", "with", "a", "title", "and", "year" ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/Compare.java#L64-L88
apache/flink
flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClientConfiguration.java
RestClientConfiguration.fromConfiguration
public static RestClientConfiguration fromConfiguration(Configuration config) throws ConfigurationException { """ Creates and returns a new {@link RestClientConfiguration} from the given {@link Configuration}. @param config configuration from which the REST client endpoint configuration should be created from ...
java
public static RestClientConfiguration fromConfiguration(Configuration config) throws ConfigurationException { Preconditions.checkNotNull(config); final SSLHandlerFactory sslHandlerFactory; if (SSLUtils.isRestSSLEnabled(config)) { try { sslHandlerFactory = SSLUtils.createRestClientSSLEngineFactory(config);...
[ "public", "static", "RestClientConfiguration", "fromConfiguration", "(", "Configuration", "config", ")", "throws", "ConfigurationException", "{", "Preconditions", ".", "checkNotNull", "(", "config", ")", ";", "final", "SSLHandlerFactory", "sslHandlerFactory", ";", "if", ...
Creates and returns a new {@link RestClientConfiguration} from the given {@link Configuration}. @param config configuration from which the REST client endpoint configuration should be created from @return REST client endpoint configuration @throws ConfigurationException if SSL was configured incorrectly
[ "Creates", "and", "returns", "a", "new", "{", "@link", "RestClientConfiguration", "}", "from", "the", "given", "{", "@link", "Configuration", "}", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClientConfiguration.java#L100-L121
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ULocale.java
ULocale.getDisplayName
public static String getDisplayName(String localeID, String displayLocaleID) { """ <strong>[icu]</strong> Returns the locale ID localized for display in the provided locale. This is a cover for the ICU4C API. @param localeID the locale whose name is to be displayed. @param displayLocaleID the id of the locale i...
java
public static String getDisplayName(String localeID, String displayLocaleID) { return getDisplayNameInternal(new ULocale(localeID), new ULocale(displayLocaleID)); }
[ "public", "static", "String", "getDisplayName", "(", "String", "localeID", ",", "String", "displayLocaleID", ")", "{", "return", "getDisplayNameInternal", "(", "new", "ULocale", "(", "localeID", ")", ",", "new", "ULocale", "(", "displayLocaleID", ")", ")", ";", ...
<strong>[icu]</strong> Returns the locale ID localized for display in the provided locale. This is a cover for the ICU4C API. @param localeID the locale whose name is to be displayed. @param displayLocaleID the id of the locale in which to display the locale name. @return the localized locale name.
[ "<strong", ">", "[", "icu", "]", "<", "/", "strong", ">", "Returns", "the", "locale", "ID", "localized", "for", "display", "in", "the", "provided", "locale", ".", "This", "is", "a", "cover", "for", "the", "ICU4C", "API", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ULocale.java#L1778-L1780
ehcache/ehcache3
core/src/main/java/org/ehcache/core/spi/service/ServiceUtils.java
ServiceUtils.findOptionalAmongst
public static <T> Optional<T> findOptionalAmongst(Class<T> clazz, Object ... instances) { """ Find the only expected instance of {@code clazz} among the {@code instances}. @param clazz searched class @param instances instances looked at @param <T> type of the searched instance @return the optionally found co...
java
public static <T> Optional<T> findOptionalAmongst(Class<T> clazz, Object ... instances) { return findOptionalAmongst(clazz, Arrays.asList(instances)); }
[ "public", "static", "<", "T", ">", "Optional", "<", "T", ">", "findOptionalAmongst", "(", "Class", "<", "T", ">", "clazz", ",", "Object", "...", "instances", ")", "{", "return", "findOptionalAmongst", "(", "clazz", ",", "Arrays", ".", "asList", "(", "ins...
Find the only expected instance of {@code clazz} among the {@code instances}. @param clazz searched class @param instances instances looked at @param <T> type of the searched instance @return the optionally found compatible instance @throws IllegalArgumentException if more than one matching instance
[ "Find", "the", "only", "expected", "instance", "of", "{", "@code", "clazz", "}", "among", "the", "{", "@code", "instances", "}", "." ]
train
https://github.com/ehcache/ehcache3/blob/3cceda57185e522f8d241ddb75146d67ee2af898/core/src/main/java/org/ehcache/core/spi/service/ServiceUtils.java#L118-L120
leadware/jpersistence-tools
jpersistence-tools-api/src/main/java/net/leadware/persistence/tools/api/utils/RestrictionsContainer.java
RestrictionsContainer.addLt
public <Y extends Comparable<? super Y>> RestrictionsContainer addLt(String property, Y value) { """ Methode d'ajout de la restriction Lt @param property Nom de la Propriete @param value Valeur de la propriete @param <Y> Type de valeur @return Conteneur """ // Ajout de la restriction restrictions...
java
public <Y extends Comparable<? super Y>> RestrictionsContainer addLt(String property, Y value) { // Ajout de la restriction restrictions.add(new Lt<Y>(property, value)); // On retourne le conteneur return this; }
[ "public", "<", "Y", "extends", "Comparable", "<", "?", "super", "Y", ">", ">", "RestrictionsContainer", "addLt", "(", "String", "property", ",", "Y", "value", ")", "{", "// Ajout de la restriction\r", "restrictions", ".", "add", "(", "new", "Lt", "<", "Y", ...
Methode d'ajout de la restriction Lt @param property Nom de la Propriete @param value Valeur de la propriete @param <Y> Type de valeur @return Conteneur
[ "Methode", "d", "ajout", "de", "la", "restriction", "Lt" ]
train
https://github.com/leadware/jpersistence-tools/blob/4c15372993584579d7dbb9b23dd4c0c0fdc9e789/jpersistence-tools-api/src/main/java/net/leadware/persistence/tools/api/utils/RestrictionsContainer.java#L153-L160
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java
KeyVaultClientBaseImpl.recoverDeletedSecret
public SecretBundle recoverDeletedSecret(String vaultBaseUrl, String secretName) { """ Recovers the deleted secret to the latest version. Recovers the deleted secret in the specified vault. This operation can only be performed on a soft-delete enabled vault. This operation requires the secrets/recover permission....
java
public SecretBundle recoverDeletedSecret(String vaultBaseUrl, String secretName) { return recoverDeletedSecretWithServiceResponseAsync(vaultBaseUrl, secretName).toBlocking().single().body(); }
[ "public", "SecretBundle", "recoverDeletedSecret", "(", "String", "vaultBaseUrl", ",", "String", "secretName", ")", "{", "return", "recoverDeletedSecretWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "secretName", ")", ".", "toBlocking", "(", ")", ".", "single", "...
Recovers the deleted secret to the latest version. Recovers the deleted secret in the specified vault. This operation can only be performed on a soft-delete enabled vault. This operation requires the secrets/recover permission. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param sec...
[ "Recovers", "the", "deleted", "secret", "to", "the", "latest", "version", ".", "Recovers", "the", "deleted", "secret", "in", "the", "specified", "vault", ".", "This", "operation", "can", "only", "be", "performed", "on", "a", "soft", "-", "delete", "enabled",...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/implementation/KeyVaultClientBaseImpl.java#L4818-L4820
Azure/azure-sdk-for-java
cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java
ComputerVisionImpl.describeImageInStreamAsync
public Observable<ImageDescription> describeImageInStreamAsync(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter) { """ This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of conte...
java
public Observable<ImageDescription> describeImageInStreamAsync(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter) { return describeImageInStreamWithServiceResponseAsync(image, describeImageInStreamOptionalParameter).map(new Func1<ServiceResponse<ImageDescription>, Image...
[ "public", "Observable", "<", "ImageDescription", ">", "describeImageInStreamAsync", "(", "byte", "[", "]", "image", ",", "DescribeImageInStreamOptionalParameter", "describeImageInStreamOptionalParameter", ")", "{", "return", "describeImageInStreamWithServiceResponseAsync", "(", ...
This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of content tags, which are also returned by the operation. More than one description can be generated for each image. Descriptions are ordered by their confidence score. All ...
[ "This", "operation", "generates", "a", "description", "of", "an", "image", "in", "human", "readable", "language", "with", "complete", "sentences", ".", "The", "description", "is", "based", "on", "a", "collection", "of", "content", "tags", "which", "are", "also...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java#L603-L610
pedrovgs/Nox
nox/src/main/java/com/github/pedrovgs/nox/NoxView.java
NoxView.onVisibilityChanged
@Override protected void onVisibilityChanged(View changedView, int visibility) { """ Controls visibility changes to pause or resume this custom view and avoid performance problems. """ super.onVisibilityChanged(changedView, visibility); if (changedView != this) { return; } if (visibilit...
java
@Override protected void onVisibilityChanged(View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); if (changedView != this) { return; } if (visibility == View.VISIBLE) { resume(); } else { pause(); } }
[ "@", "Override", "protected", "void", "onVisibilityChanged", "(", "View", "changedView", ",", "int", "visibility", ")", "{", "super", ".", "onVisibilityChanged", "(", "changedView", ",", "visibility", ")", ";", "if", "(", "changedView", "!=", "this", ")", "{",...
Controls visibility changes to pause or resume this custom view and avoid performance problems.
[ "Controls", "visibility", "changes", "to", "pause", "or", "resume", "this", "custom", "view", "and", "avoid", "performance", "problems", "." ]
train
https://github.com/pedrovgs/Nox/blob/b4dfe37895e1b7bf2084d60139931dd4fb12f3f4/nox/src/main/java/com/github/pedrovgs/nox/NoxView.java#L232-L243
svenkubiak/mangooio
mangooio-core/src/main/java/io/mangoo/routing/bindings/Validator.java
Validator.expectRange
public void expectRange(String name, int minLength, int maxLength, String message) { """ Validates a field to be in a certain range @param name The field to check @param minLength The minimum length @param maxLength The maximum length @param message A custom error message instead of the default one """ ...
java
public void expectRange(String name, int minLength, int maxLength, String message) { String value = Optional.ofNullable(get(name)).orElse(""); if (StringUtils.isNumeric(value)) { double doubleValue = Double.parseDouble(value); if (doubleValue < minLength || doubleValue > maxLeng...
[ "public", "void", "expectRange", "(", "String", "name", ",", "int", "minLength", ",", "int", "maxLength", ",", "String", "message", ")", "{", "String", "value", "=", "Optional", ".", "ofNullable", "(", "get", "(", "name", ")", ")", ".", "orElse", "(", ...
Validates a field to be in a certain range @param name The field to check @param minLength The minimum length @param maxLength The maximum length @param message A custom error message instead of the default one
[ "Validates", "a", "field", "to", "be", "in", "a", "certain", "range" ]
train
https://github.com/svenkubiak/mangooio/blob/b3beb6d09510dbbab0ed947d5069c463e1fda6e7/mangooio-core/src/main/java/io/mangoo/routing/bindings/Validator.java#L353-L366
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/MethodBuilder.java
MethodBuilder.buildMethodDoc
public void buildMethodDoc(XMLNode node, Content memberDetailsTree) throws DocletException { """ Build the method documentation. @param node the XML element that specifies which components to document @param memberDetailsTree the content tree to which the documentation will be added @throws DocletException if...
java
public void buildMethodDoc(XMLNode node, Content memberDetailsTree) throws DocletException { if (writer == null) { return; } if (hasMembersToDocument()) { Content methodDetailsTree = writer.getMethodDetailsTreeHeader(typeElement, memberDetailsTree); ...
[ "public", "void", "buildMethodDoc", "(", "XMLNode", "node", ",", "Content", "memberDetailsTree", ")", "throws", "DocletException", "{", "if", "(", "writer", "==", "null", ")", "{", "return", ";", "}", "if", "(", "hasMembersToDocument", "(", ")", ")", "{", ...
Build the method documentation. @param node the XML element that specifies which components to document @param memberDetailsTree the content tree to which the documentation will be added @throws DocletException if there is a problem while building the documentation
[ "Build", "the", "method", "documentation", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/MethodBuilder.java#L139-L157
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/collection/impl/queue/QueueContainer.java
QueueContainer.addAllBackup
public void addAllBackup(Map<Long, Data> dataMap) { """ Offers the items to the backup map in bulk. If the memory limit has been achieved the item data will not be kept in-memory. Executed on the backup replica @param dataMap the map from item ID to queue item @see #offerBackup(Data, long) """ fo...
java
public void addAllBackup(Map<Long, Data> dataMap) { for (Map.Entry<Long, Data> entry : dataMap.entrySet()) { QueueItem item = new QueueItem(this, entry.getKey(), null); if (!store.isEnabled() || store.getMemoryLimit() > getItemQueue().size()) { item.setData(entry.getValue...
[ "public", "void", "addAllBackup", "(", "Map", "<", "Long", ",", "Data", ">", "dataMap", ")", "{", "for", "(", "Map", ".", "Entry", "<", "Long", ",", "Data", ">", "entry", ":", "dataMap", ".", "entrySet", "(", ")", ")", "{", "QueueItem", "item", "="...
Offers the items to the backup map in bulk. If the memory limit has been achieved the item data will not be kept in-memory. Executed on the backup replica @param dataMap the map from item ID to queue item @see #offerBackup(Data, long)
[ "Offers", "the", "items", "to", "the", "backup", "map", "in", "bulk", ".", "If", "the", "memory", "limit", "has", "been", "achieved", "the", "item", "data", "will", "not", "be", "kept", "in", "-", "memory", ".", "Executed", "on", "the", "backup", "repl...
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/collection/impl/queue/QueueContainer.java#L512-L520
rzwitserloot/lombok
src/core/lombok/core/handlers/HandlerUtil.java
HandlerUtil.toGetterName
public static String toGetterName(AST<?, ?, ?> ast, AnnotationValues<Accessors> accessors, CharSequence fieldName, boolean isBoolean) { """ Generates a getter name from a given field name. Strategy: <ul> <li>Reduce the field's name to its base name by stripping off any prefix (from {@code Accessors}). If the ...
java
public static String toGetterName(AST<?, ?, ?> ast, AnnotationValues<Accessors> accessors, CharSequence fieldName, boolean isBoolean) { return toAccessorName(ast, accessors, fieldName, isBoolean, "is", "get", true); }
[ "public", "static", "String", "toGetterName", "(", "AST", "<", "?", ",", "?", ",", "?", ">", "ast", ",", "AnnotationValues", "<", "Accessors", ">", "accessors", ",", "CharSequence", "fieldName", ",", "boolean", "isBoolean", ")", "{", "return", "toAccessorNam...
Generates a getter name from a given field name. Strategy: <ul> <li>Reduce the field's name to its base name by stripping off any prefix (from {@code Accessors}). If the field name does not fit the prefix list, this method immediately returns {@code null}.</li> <li>If {@code Accessors} has {@code fluent=true}, then re...
[ "Generates", "a", "getter", "name", "from", "a", "given", "field", "name", "." ]
train
https://github.com/rzwitserloot/lombok/blob/75601240760bd81ff95fcde7a1b8185769ce64e8/src/core/lombok/core/handlers/HandlerUtil.java#L472-L474
kiswanij/jk-util
src/main/java/com/jk/util/JKFormatUtil.java
JKFormatUtil.formatTimeStamp
public synchronized static String formatTimeStamp(final Timestamp date, String pattern) { """ Format time stamp. @param date the date @param pattern the pattern @return the string """ if (pattern == null || pattern.equals("")) { pattern = JKFormatUtil.DEFAULT_TIMESTAMP_PATTERN; } return JKForm...
java
public synchronized static String formatTimeStamp(final Timestamp date, String pattern) { if (pattern == null || pattern.equals("")) { pattern = JKFormatUtil.DEFAULT_TIMESTAMP_PATTERN; } return JKFormatUtil.getDateFormatter(pattern).format(date); }
[ "public", "synchronized", "static", "String", "formatTimeStamp", "(", "final", "Timestamp", "date", ",", "String", "pattern", ")", "{", "if", "(", "pattern", "==", "null", "||", "pattern", ".", "equals", "(", "\"\"", ")", ")", "{", "pattern", "=", "JKForma...
Format time stamp. @param date the date @param pattern the pattern @return the string
[ "Format", "time", "stamp", "." ]
train
https://github.com/kiswanij/jk-util/blob/8e0c85818423406f769444c76194a748e0a0fc0a/src/main/java/com/jk/util/JKFormatUtil.java#L138-L143
actorapp/actor-platform
actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/collections/SparseBooleanArray.java
SparseBooleanArray.put
public void put(int key, boolean value) { """ Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one. """ int i = ContainerHelpers.binarySearch(mKeys, mSize, key); if (i >= 0) { mValues[i] = value; ...
java
public void put(int key, boolean value) { int i = ContainerHelpers.binarySearch(mKeys, mSize, key); if (i >= 0) { mValues[i] = value; } else { i = ~i; mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); mValues = GrowingArrayUtils.insert(mValue...
[ "public", "void", "put", "(", "int", "key", ",", "boolean", "value", ")", "{", "int", "i", "=", "ContainerHelpers", ".", "binarySearch", "(", "mKeys", ",", "mSize", ",", "key", ")", ";", "if", "(", "i", ">=", "0", ")", "{", "mValues", "[", "i", "...
Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.
[ "Adds", "a", "mapping", "from", "the", "specified", "key", "to", "the", "specified", "value", "replacing", "the", "previous", "mapping", "from", "the", "specified", "key", "if", "there", "was", "one", "." ]
train
https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/collections/SparseBooleanArray.java#L121-L131
bullhorn/sdk-rest
src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java
AbstractEntity.handleJsonArrayToJavaString
@JsonAnySetter public void handleJsonArrayToJavaString(String name, Object value) { """ Unknown properties are handled here. One main purpose of this method is to handle String values that are sent as json arrays if configured as multi-values in bh. @param name @param value """ try { PropertyUtils...
java
@JsonAnySetter public void handleJsonArrayToJavaString(String name, Object value) { try { PropertyUtils.setProperty(this, name, this.convertListToString(value)); } catch (IllegalAccessException e) { log.debug("Error setting field " + name + " with value " + value + " on entity " + this.getClass()....
[ "@", "JsonAnySetter", "public", "void", "handleJsonArrayToJavaString", "(", "String", "name", ",", "Object", "value", ")", "{", "try", "{", "PropertyUtils", ".", "setProperty", "(", "this", ",", "name", ",", "this", ".", "convertListToString", "(", "value", ")...
Unknown properties are handled here. One main purpose of this method is to handle String values that are sent as json arrays if configured as multi-values in bh. @param name @param value
[ "Unknown", "properties", "are", "handled", "here", ".", "One", "main", "purpose", "of", "this", "method", "is", "to", "handle", "String", "values", "that", "are", "sent", "as", "json", "arrays", "if", "configured", "as", "multi", "-", "values", "in", "bh",...
train
https://github.com/bullhorn/sdk-rest/blob/0c75a141c768bb31510afc3a412c11bd101eca06/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java#L47-L67
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java
WebConfigParamUtils.getBooleanInitParameter
public static boolean getBooleanInitParameter(ExternalContext context, String name, boolean defaultValue) { """ Gets the boolean init parameter value from the specified context. If the parameter was not specified, the default value is used instead. @param context the application's external context @param nam...
java
public static boolean getBooleanInitParameter(ExternalContext context, String name, boolean defaultValue) { if (name == null) { throw new NullPointerException(); } String param = getStringInitParameter(context, name); if (param == null) { retu...
[ "public", "static", "boolean", "getBooleanInitParameter", "(", "ExternalContext", "context", ",", "String", "name", ",", "boolean", "defaultValue", ")", "{", "if", "(", "name", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}",...
Gets the boolean init parameter value from the specified context. If the parameter was not specified, the default value is used instead. @param context the application's external context @param name the init parameter's name @param deprecatedName the init parameter's deprecated name. @param defaultValue the default va...
[ "Gets", "the", "boolean", "init", "parameter", "value", "from", "the", "specified", "context", ".", "If", "the", "parameter", "was", "not", "specified", "the", "default", "value", "is", "used", "instead", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java#L208-L224
knowm/XChange
xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAdapters.java
BitbayAdapters.adaptTicker
public static Ticker adaptTicker(BitbayTicker bitbayTicker, CurrencyPair currencyPair) { """ Adapts a BitbayTicker to a Ticker Object @param bitbayTicker The exchange specific ticker @param currencyPair (e.g. BTC/USD) @return The ticker """ BigDecimal ask = bitbayTicker.getAsk(); BigDecimal bid =...
java
public static Ticker adaptTicker(BitbayTicker bitbayTicker, CurrencyPair currencyPair) { BigDecimal ask = bitbayTicker.getAsk(); BigDecimal bid = bitbayTicker.getBid(); BigDecimal high = bitbayTicker.getMax(); BigDecimal low = bitbayTicker.getMin(); BigDecimal volume = bitbayTicker.getVolume(); ...
[ "public", "static", "Ticker", "adaptTicker", "(", "BitbayTicker", "bitbayTicker", ",", "CurrencyPair", "currencyPair", ")", "{", "BigDecimal", "ask", "=", "bitbayTicker", ".", "getAsk", "(", ")", ";", "BigDecimal", "bid", "=", "bitbayTicker", ".", "getBid", "(",...
Adapts a BitbayTicker to a Ticker Object @param bitbayTicker The exchange specific ticker @param currencyPair (e.g. BTC/USD) @return The ticker
[ "Adapts", "a", "BitbayTicker", "to", "a", "Ticker", "Object" ]
train
https://github.com/knowm/XChange/blob/e45f437ac8e0b89cd66cdcb3258bdb1bf3d88186/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAdapters.java#L45-L63
sundrio/sundrio
codegen/src/main/java/io/sundr/codegen/processor/JavaGeneratingProcessor.java
JavaGeneratingProcessor.generateFromStringTemplate
public <T> void generateFromStringTemplate(T model, String parameters[], String outputPath, String content) throws IOException { """ Generates a source file from the specified {@link io.sundr.codegen.model.TypeDef}. @param model The model of the class to generate. @param outputPath Where to save the...
java
public <T> void generateFromStringTemplate(T model, String parameters[], String outputPath, String content) throws IOException { if (model instanceof TypeDef) { generateFromStringTemplate((TypeDef) model, parameters, content); } else if (outputPath == null || outputPath.isEmpty()) { ...
[ "public", "<", "T", ">", "void", "generateFromStringTemplate", "(", "T", "model", ",", "String", "parameters", "[", "]", ",", "String", "outputPath", ",", "String", "content", ")", "throws", "IOException", "{", "if", "(", "model", "instanceof", "TypeDef", ")...
Generates a source file from the specified {@link io.sundr.codegen.model.TypeDef}. @param model The model of the class to generate. @param outputPath Where to save the generated class. @param content The template to use. @throws IOException If it fails to create the source file.
[ "Generates", "a", "source", "file", "from", "the", "specified", "{", "@link", "io", ".", "sundr", ".", "codegen", ".", "model", ".", "TypeDef", "}", "." ]
train
https://github.com/sundrio/sundrio/blob/4e38368f4db0d950f7c41a8c75e15b0baff1f69a/codegen/src/main/java/io/sundr/codegen/processor/JavaGeneratingProcessor.java#L151-L162
apiman/apiman
manager/api/es/src/main/java/io/apiman/manager/api/es/EsMarshalling.java
EsMarshalling.unmarshallPlanSummary
public static PlanSummaryBean unmarshallPlanSummary(Map<String, Object> source) { """ Unmarshals the given map source into a bean. @param source the source @return the plan summary """ if (source == null) { return null; } PlanSummaryBean bean = new PlanSummaryBean(); ...
java
public static PlanSummaryBean unmarshallPlanSummary(Map<String, Object> source) { if (source == null) { return null; } PlanSummaryBean bean = new PlanSummaryBean(); bean.setOrganizationId(asString(source.get("organizationId"))); bean.setOrganizationName(asString(sourc...
[ "public", "static", "PlanSummaryBean", "unmarshallPlanSummary", "(", "Map", "<", "String", ",", "Object", ">", "source", ")", "{", "if", "(", "source", "==", "null", ")", "{", "return", "null", ";", "}", "PlanSummaryBean", "bean", "=", "new", "PlanSummaryBea...
Unmarshals the given map source into a bean. @param source the source @return the plan summary
[ "Unmarshals", "the", "given", "map", "source", "into", "a", "bean", "." ]
train
https://github.com/apiman/apiman/blob/8c049c2a2f2e4a69bbb6125686a15edd26f29c21/manager/api/es/src/main/java/io/apiman/manager/api/es/EsMarshalling.java#L845-L857
mokies/ratelimitj
ratelimitj-core/src/main/java/es/moki/ratelimitj/core/limiter/request/RequestLimitRule.java
RequestLimitRule.matchingKeys
public RequestLimitRule matchingKeys(Set<String> keys) { """ Applies a key to the rate limit that defines to which keys, the rule applies, null for any unmatched key. @param keys Defines a set of keys to which the rule applies. @return a limit rule """ return new RequestLimitRule(this.durationSecon...
java
public RequestLimitRule matchingKeys(Set<String> keys) { return new RequestLimitRule(this.durationSeconds, this.limit, this.precision, this.name, keys); }
[ "public", "RequestLimitRule", "matchingKeys", "(", "Set", "<", "String", ">", "keys", ")", "{", "return", "new", "RequestLimitRule", "(", "this", ".", "durationSeconds", ",", "this", ".", "limit", ",", "this", ".", "precision", ",", "this", ".", "name", ",...
Applies a key to the rate limit that defines to which keys, the rule applies, null for any unmatched key. @param keys Defines a set of keys to which the rule applies. @return a limit rule
[ "Applies", "a", "key", "to", "the", "rate", "limit", "that", "defines", "to", "which", "keys", "the", "rule", "applies", "null", "for", "any", "unmatched", "key", "." ]
train
https://github.com/mokies/ratelimitj/blob/eb15ec42055c46b2b3f6f84131d86f570e489c32/ratelimitj-core/src/main/java/es/moki/ratelimitj/core/limiter/request/RequestLimitRule.java#L102-L104
apache/flink
flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java
ExecutionConfig.addDefaultKryoSerializer
public <T extends Serializer<?> & Serializable>void addDefaultKryoSerializer(Class<?> type, T serializer) { """ Adds a new Kryo default serializer to the Runtime. Note that the serializer instance must be serializable (as defined by java.io.Serializable), because it may be distributed to the worker nodes by ja...
java
public <T extends Serializer<?> & Serializable>void addDefaultKryoSerializer(Class<?> type, T serializer) { if (type == null || serializer == null) { throw new NullPointerException("Cannot register null class or serializer."); } defaultKryoSerializers.put(type, new SerializableSerializer<>(serializer)); }
[ "public", "<", "T", "extends", "Serializer", "<", "?", ">", "&", "Serializable", ">", "void", "addDefaultKryoSerializer", "(", "Class", "<", "?", ">", "type", ",", "T", "serializer", ")", "{", "if", "(", "type", "==", "null", "||", "serializer", "==", ...
Adds a new Kryo default serializer to the Runtime. Note that the serializer instance must be serializable (as defined by java.io.Serializable), because it may be distributed to the worker nodes by java serialization. @param type The class of the types serialized with the given serializer. @param serializer The serial...
[ "Adds", "a", "new", "Kryo", "default", "serializer", "to", "the", "Runtime", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java#L768-L774
UrielCh/ovh-java-sdk
ovh-java-sdk-price/src/main/java/net/minidev/ovh/api/ApiOvhPrice.java
ApiOvhPrice.dedicated_server_backupStorage_capacity_GET
public OvhPrice dedicated_server_backupStorage_capacity_GET(net.minidev.ovh.api.price.dedicated.server.OvhBackupStorageEnum capacity) throws IOException { """ Get price of backup storage offer REST: GET /price/dedicated/server/backupStorage/{capacity} @param capacity [required] Capacity in gigabytes of backup ...
java
public OvhPrice dedicated_server_backupStorage_capacity_GET(net.minidev.ovh.api.price.dedicated.server.OvhBackupStorageEnum capacity) throws IOException { String qPath = "/price/dedicated/server/backupStorage/{capacity}"; StringBuilder sb = path(qPath, capacity); String resp = exec(qPath, "GET", sb.toString(), nu...
[ "public", "OvhPrice", "dedicated_server_backupStorage_capacity_GET", "(", "net", ".", "minidev", ".", "ovh", ".", "api", ".", "price", ".", "dedicated", ".", "server", ".", "OvhBackupStorageEnum", "capacity", ")", "throws", "IOException", "{", "String", "qPath", "...
Get price of backup storage offer REST: GET /price/dedicated/server/backupStorage/{capacity} @param capacity [required] Capacity in gigabytes of backup storage offer
[ "Get", "price", "of", "backup", "storage", "offer" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-price/src/main/java/net/minidev/ovh/api/ApiOvhPrice.java#L141-L146
apache/groovy
src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java
ResourceGroovyMethods.eachLine
public static <T> T eachLine(URL url, int firstLine, @ClosureParams(value = FromString.class, options = { """ Iterates through the lines read from the URL's associated input stream passing each line to the given 1 or 2 arg closure. The stream is closed before this method returns. @param url a URL to open...
java
public static <T> T eachLine(URL url, int firstLine, @ClosureParams(value = FromString.class, options = {"String", "String,Integer"}) Closure<T> closure) throws IOException { return IOGroovyMethods.eachLine(url.openConnection().getInputStream(), firstLine, closure); }
[ "public", "static", "<", "T", ">", "T", "eachLine", "(", "URL", "url", ",", "int", "firstLine", ",", "@", "ClosureParams", "(", "value", "=", "FromString", ".", "class", ",", "options", "=", "{", "\"String\"", ",", "\"String,Integer\"", "}", ")", "Closur...
Iterates through the lines read from the URL's associated input stream passing each line to the given 1 or 2 arg closure. The stream is closed before this method returns. @param url a URL to open and read @param firstLine the line number value used for the first line (default is 1, set to 0 to start counting fro...
[ "Iterates", "through", "the", "lines", "read", "from", "the", "URL", "s", "associated", "input", "stream", "passing", "each", "line", "to", "the", "given", "1", "or", "2", "arg", "closure", ".", "The", "stream", "is", "closed", "before", "this", "method", ...
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java#L318-L320
sdl/odata
odata_renderer/src/main/java/com/sdl/odata/renderer/AbstractRenderer.java
AbstractRenderer.scoreByFormat
protected int scoreByFormat(Option<FormatOption> formatOption, MediaType requiredMediaType) { """ Computes a score by checking the value of the '$format' parameter (if present) against a required media type. @param formatOption The option containing the '$format' parameter. @param requiredMediaType The re...
java
protected int scoreByFormat(Option<FormatOption> formatOption, MediaType requiredMediaType) { if (!formatOption.isDefined()) { return DEFAULT_SCORE; } if (formatOption.get().mediaType().matches(requiredMediaType)) { return MAXIMUM_FORMAT_SCORE; } return DE...
[ "protected", "int", "scoreByFormat", "(", "Option", "<", "FormatOption", ">", "formatOption", ",", "MediaType", "requiredMediaType", ")", "{", "if", "(", "!", "formatOption", ".", "isDefined", "(", ")", ")", "{", "return", "DEFAULT_SCORE", ";", "}", "if", "(...
Computes a score by checking the value of the '$format' parameter (if present) against a required media type. @param formatOption The option containing the '$format' parameter. @param requiredMediaType The required media type. @return A score that indicates if the media type present in the '$format' parameter mat...
[ "Computes", "a", "score", "by", "checking", "the", "value", "of", "the", "$format", "parameter", "(", "if", "present", ")", "against", "a", "required", "media", "type", "." ]
train
https://github.com/sdl/odata/blob/eb747d73e9af0f4e59a25b82ed656e526a7e2189/odata_renderer/src/main/java/com/sdl/odata/renderer/AbstractRenderer.java#L140-L148
alkacon/opencms-core
src/org/opencms/db/generic/CmsUserQueryBuilder.java
CmsUserQueryBuilder.addWebuserCondition
protected void addWebuserCondition(CmsSelectQuery select, CmsOrganizationalUnit orgUnit, TableAlias users) { """ Adds a check for the web user condition to an SQL query.<p> @param select the query @param orgUnit the organizational unit @param users the user table alias """ String webuserCondition...
java
protected void addWebuserCondition(CmsSelectQuery select, CmsOrganizationalUnit orgUnit, TableAlias users) { String webuserConditionTemplate; if (orgUnit.hasFlagWebuser()) { webuserConditionTemplate = "( %1$s >= 32768 AND %1$s < 65536 )"; } else { webuserConditionTemplat...
[ "protected", "void", "addWebuserCondition", "(", "CmsSelectQuery", "select", ",", "CmsOrganizationalUnit", "orgUnit", ",", "TableAlias", "users", ")", "{", "String", "webuserConditionTemplate", ";", "if", "(", "orgUnit", ".", "hasFlagWebuser", "(", ")", ")", "{", ...
Adds a check for the web user condition to an SQL query.<p> @param select the query @param orgUnit the organizational unit @param users the user table alias
[ "Adds", "a", "check", "for", "the", "web", "user", "condition", "to", "an", "SQL", "query", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/generic/CmsUserQueryBuilder.java#L365-L375
abola/CrawlerPack
src/main/java/com/github/abola/crawler/CrawlerPack.java
CrawlerPack.jsonToXml
public String jsonToXml(String json) { """ 將 json 轉為 XML @param json a json format string. @return XML format string """ String xml = ""; // 處理直接以陣列開頭的JSON,並指定給予 row 的 tag if ( "[".equals( json.substring(0,1) ) ){ xml = XML.toString(new JSONArray(json), "row"); }...
java
public String jsonToXml(String json){ String xml = ""; // 處理直接以陣列開頭的JSON,並指定給予 row 的 tag if ( "[".equals( json.substring(0,1) ) ){ xml = XML.toString(new JSONArray(json), "row"); }else{ xml = XML.toString(new JSONObject(json)); } return xml; }
[ "public", "String", "jsonToXml", "(", "String", "json", ")", "{", "String", "xml", "=", "\"\"", ";", "// 處理直接以陣列開頭的JSON,並指定給予 row 的 tag", "if", "(", "\"[\"", ".", "equals", "(", "json", ".", "substring", "(", "0", ",", "1", ")", ")", ")", "{", "xml", "...
將 json 轉為 XML @param json a json format string. @return XML format string
[ "將", "json", "轉為", "XML" ]
train
https://github.com/abola/CrawlerPack/blob/a7b7703b7fad519994dc04a9c51d90adc11d618f/src/main/java/com/github/abola/crawler/CrawlerPack.java#L235-L245
fcrepo3/fcrepo
fcrepo-server/src/main/java/org/fcrepo/server/journal/readerwriter/multicast/rmi/RmiJournalReceiver.java
RmiJournalReceiver.writeText
public void writeText(String indexedHash, String text) throws JournalException { """ Request to write text to the current journal file. Check that: <ul> <li>a file is open,</li> <li>the supplied indexedHash matches the one we calculate,</li> <li>the write is successful.</li> </ul> Increment the i...
java
public void writeText(String indexedHash, String text) throws JournalException { if (journalFile == null) { throw logAndGetException("Attempting to write when no file " + "is open."); } String calculatedHash = RmiJournalReceiverHelper ...
[ "public", "void", "writeText", "(", "String", "indexedHash", ",", "String", "text", ")", "throws", "JournalException", "{", "if", "(", "journalFile", "==", "null", ")", "{", "throw", "logAndGetException", "(", "\"Attempting to write when no file \"", "+", "\"is open...
Request to write text to the current journal file. Check that: <ul> <li>a file is open,</li> <li>the supplied indexedHash matches the one we calculate,</li> <li>the write is successful.</li> </ul> Increment the itemIndex after a successful write.
[ "Request", "to", "write", "text", "to", "the", "current", "journal", "file", ".", "Check", "that", ":", "<ul", ">", "<li", ">", "a", "file", "is", "open", "<", "/", "li", ">", "<li", ">", "the", "supplied", "indexedHash", "matches", "the", "one", "we...
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-server/src/main/java/org/fcrepo/server/journal/readerwriter/multicast/rmi/RmiJournalReceiver.java#L127-L154
Azure/azure-sdk-for-java
dns/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/dns/v2017_10_01/implementation/ZonesInner.java
ZonesInner.createOrUpdate
public ZoneInner createOrUpdate(String resourceGroupName, String zoneName, ZoneInner parameters, String ifMatch, String ifNoneMatch) { """ Creates or updates a DNS zone. Does not modify DNS records within the zone. @param resourceGroupName The name of the resource group. @param zoneName The name of the DNS zon...
java
public ZoneInner createOrUpdate(String resourceGroupName, String zoneName, ZoneInner parameters, String ifMatch, String ifNoneMatch) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, zoneName, parameters, ifMatch, ifNoneMatch).toBlocking().single().body(); }
[ "public", "ZoneInner", "createOrUpdate", "(", "String", "resourceGroupName", ",", "String", "zoneName", ",", "ZoneInner", "parameters", ",", "String", "ifMatch", ",", "String", "ifNoneMatch", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "resourceGr...
Creates or updates a DNS zone. Does not modify DNS records within the zone. @param resourceGroupName The name of the resource group. @param zoneName The name of the DNS zone (without a terminating dot). @param parameters Parameters supplied to the CreateOrUpdate operation. @param ifMatch The etag of the DNS zone. Omit...
[ "Creates", "or", "updates", "a", "DNS", "zone", ".", "Does", "not", "modify", "DNS", "records", "within", "the", "zone", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/dns/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/dns/v2017_10_01/implementation/ZonesInner.java#L210-L212
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Point.java
Point.setAttribute
public void setAttribute(int semantics, int ordinate, double value) { """ Sets the value of the attribute. @param semantics The attribute semantics. @param ordinate The ordinate of the attribute. @param value Is the array to write values to. The attribute type and the number of elements must match the per...
java
public void setAttribute(int semantics, int ordinate, double value) { _touch(); int ncomps = VertexDescription.getComponentCount(semantics); if (ncomps < ordinate) throw new IndexOutOfBoundsException(); int attributeIndex = m_description.getAttributeIndex(semantics); if (attributeIndex < 0) { addAttrib...
[ "public", "void", "setAttribute", "(", "int", "semantics", ",", "int", "ordinate", ",", "double", "value", ")", "{", "_touch", "(", ")", ";", "int", "ncomps", "=", "VertexDescription", ".", "getComponentCount", "(", "semantics", ")", ";", "if", "(", "ncomp...
Sets the value of the attribute. @param semantics The attribute semantics. @param ordinate The ordinate of the attribute. @param value Is the array to write values to. The attribute type and the number of elements must match the persistence type, as well as the number of components of the attribute.
[ "Sets", "the", "value", "of", "the", "attribute", "." ]
train
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Point.java#L341-L358
jbundle/jcalendarbutton
src/main/java/org/jbundle/util/jcalendarbutton/JCalendarPopup.java
JCalendarPopup.createCalendarPopup
public static JCalendarPopup createCalendarPopup(Date dateTarget, Component button) { """ Create this calendar in a popup menu and synchronize the text field on change. @param dateTarget The initial date for this button. @param button The calling button. """ return JCalendarPopup.createCalendarPopup(...
java
public static JCalendarPopup createCalendarPopup(Date dateTarget, Component button) { return JCalendarPopup.createCalendarPopup(null, dateTarget, button, null); }
[ "public", "static", "JCalendarPopup", "createCalendarPopup", "(", "Date", "dateTarget", ",", "Component", "button", ")", "{", "return", "JCalendarPopup", ".", "createCalendarPopup", "(", "null", ",", "dateTarget", ",", "button", ",", "null", ")", ";", "}" ]
Create this calendar in a popup menu and synchronize the text field on change. @param dateTarget The initial date for this button. @param button The calling button.
[ "Create", "this", "calendar", "in", "a", "popup", "menu", "and", "synchronize", "the", "text", "field", "on", "change", "." ]
train
https://github.com/jbundle/jcalendarbutton/blob/2944e6a0b634b83768d5c0b7b4a2898176421403/src/main/java/org/jbundle/util/jcalendarbutton/JCalendarPopup.java#L572-L575
Impetus/Kundera
src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/datahandler/CassandraDataHandlerBase.java
CassandraDataHandlerBase.getColumnValue
private Object getColumnValue(EntityMetadata m, Object e, Attribute attribute) { """ Gets the column value. @param m the m @param e the e @param attribute the attribute @return the column value """ Field field = (Field) ((Attribute) attribute).getJavaMember(); Object value; if ...
java
private Object getColumnValue(EntityMetadata m, Object e, Attribute attribute) { Field field = (Field) ((Attribute) attribute).getJavaMember(); Object value; if (!m.isCounterColumnType()) { value = getThriftColumnValue(e, attribute); } else { ...
[ "private", "Object", "getColumnValue", "(", "EntityMetadata", "m", ",", "Object", "e", ",", "Attribute", "attribute", ")", "{", "Field", "field", "=", "(", "Field", ")", "(", "(", "Attribute", ")", "attribute", ")", ".", "getJavaMember", "(", ")", ";", "...
Gets the column value. @param m the m @param e the e @param attribute the attribute @return the column value
[ "Gets", "the", "column", "value", "." ]
train
https://github.com/Impetus/Kundera/blob/268958ab1ec09d14ec4d9184f0c8ded7a9158908/src/kundera-cassandra/cassandra-core/src/main/java/com/impetus/client/cassandra/datahandler/CassandraDataHandlerBase.java#L2001-L2014
finmath/finmath-lib
src/main/java/net/finmath/montecarlo/process/LinearInterpolatedTimeDiscreteProcess.java
LinearInterpolatedTimeDiscreteProcess.getProcessValue
public RandomVariable getProcessValue(double time, int component) { """ Returns the (possibly interpolated) value of this stochastic process at a given time \( t \). @param time The time \( t \). @param component The component to be returned (if this is a vector valued process), otherwise 0. @return The rando...
java
public RandomVariable getProcessValue(double time, int component) { double timeLower = timeDiscretization.getTimeIndexNearestLessOrEqual(time); double timeUpper = timeDiscretization.getTimeIndexNearestGreaterOrEqual(time); if(timeLower == timeUpper) { return realizations.get(timeLower); } RandomVariable v...
[ "public", "RandomVariable", "getProcessValue", "(", "double", "time", ",", "int", "component", ")", "{", "double", "timeLower", "=", "timeDiscretization", ".", "getTimeIndexNearestLessOrEqual", "(", "time", ")", ";", "double", "timeUpper", "=", "timeDiscretization", ...
Returns the (possibly interpolated) value of this stochastic process at a given time \( t \). @param time The time \( t \). @param component The component to be returned (if this is a vector valued process), otherwise 0. @return The random variable \( X(t) \).
[ "Returns", "the", "(", "possibly", "interpolated", ")", "value", "of", "this", "stochastic", "process", "at", "a", "given", "time", "\\", "(", "t", "\\", ")", "." ]
train
https://github.com/finmath/finmath-lib/blob/a3c067d52dd33feb97d851df6cab130e4116759f/src/main/java/net/finmath/montecarlo/process/LinearInterpolatedTimeDiscreteProcess.java#L110-L121
sahan/DroidBallet
droidballet/src/main/java/com/lonepulse/droidballet/detector/HorizontalMotionDetector.java
HorizontalMotionDetector.getMotionEvent
@Override public <U extends SensorEvent> HorizontalMotionEvent getMotionEvent(final U sensorEvent) throws MotionDetectorException { """ {@inheritDoc} <p>The current implementation handles only {@link Sensor}s of type {@link Sensor#TYPE_ACCELEROMETER}.</p> <p>Future implementations may support {@link Sens...
java
@Override public <U extends SensorEvent> HorizontalMotionEvent getMotionEvent(final U sensorEvent) throws MotionDetectorException { try { Sensor sensor = sensorEvent.sensor; if (sensor.getType() != Sensor.TYPE_ACCELEROMETER) { return null; } final float[] input = sensorEvent.values; ...
[ "@", "Override", "public", "<", "U", "extends", "SensorEvent", ">", "HorizontalMotionEvent", "getMotionEvent", "(", "final", "U", "sensorEvent", ")", "throws", "MotionDetectorException", "{", "try", "{", "Sensor", "sensor", "=", "sensorEvent", ".", "sensor", ";", ...
{@inheritDoc} <p>The current implementation handles only {@link Sensor}s of type {@link Sensor#TYPE_ACCELEROMETER}.</p> <p>Future implementations may support {@link Sensor#TYPE_GYROSCOPE}.</p>
[ "{", "@inheritDoc", "}" ]
train
https://github.com/sahan/DroidBallet/blob/c6001c9e933cb2c8dbcabe1ae561678b31b10b62/droidballet/src/main/java/com/lonepulse/droidballet/detector/HorizontalMotionDetector.java#L83-L123
finmath/finmath-lib
src/main/java6/net/finmath/montecarlo/interestrate/LIBORMarketModelStandard.java
LIBORMarketModelStandard.getDrift
private RandomVariableInterface getDrift(int timeIndex, int componentIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor) { """ Alternative implementation for the drift. For experimental purposes. @param timeIndex @param componentIndex @param realizationAtTi...
java
private RandomVariableInterface getDrift(int timeIndex, int componentIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor) { // Check if this LIBOR is already fixed if(getTime(timeIndex) >= this.getLiborPeriod(componentIndex)) { return null; } /* * We i...
[ "private", "RandomVariableInterface", "getDrift", "(", "int", "timeIndex", ",", "int", "componentIndex", ",", "RandomVariableInterface", "[", "]", "realizationAtTimeIndex", ",", "RandomVariableInterface", "[", "]", "realizationPredictor", ")", "{", "// Check if this LIBOR i...
Alternative implementation for the drift. For experimental purposes. @param timeIndex @param componentIndex @param realizationAtTimeIndex @param realizationPredictor @return
[ "Alternative", "implementation", "for", "the", "drift", ".", "For", "experimental", "purposes", "." ]
train
https://github.com/finmath/finmath-lib/blob/a3c067d52dd33feb97d851df6cab130e4116759f/src/main/java6/net/finmath/montecarlo/interestrate/LIBORMarketModelStandard.java#L638-L661
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java
FindBugs2.createAnalysisCache
protected IAnalysisCache createAnalysisCache() throws IOException { """ Create the analysis cache object and register it for current execution thread. <p> This method is protected to allow clients override it and possibly reuse some previous analysis data (for Eclipse interactive re-build) @throws IOExceptio...
java
protected IAnalysisCache createAnalysisCache() throws IOException { IAnalysisCache analysisCache = ClassFactory.instance().createAnalysisCache(classPath, bugReporter); // Register the "built-in" analysis engines registerBuiltInAnalysisEngines(analysisCache); // Register analysis engine...
[ "protected", "IAnalysisCache", "createAnalysisCache", "(", ")", "throws", "IOException", "{", "IAnalysisCache", "analysisCache", "=", "ClassFactory", ".", "instance", "(", ")", ".", "createAnalysisCache", "(", "classPath", ",", "bugReporter", ")", ";", "// Register th...
Create the analysis cache object and register it for current execution thread. <p> This method is protected to allow clients override it and possibly reuse some previous analysis data (for Eclipse interactive re-build) @throws IOException if error occurs registering analysis engines in a plugin
[ "Create", "the", "analysis", "cache", "object", "and", "register", "it", "for", "current", "execution", "thread", ".", "<p", ">", "This", "method", "is", "protected", "to", "allow", "clients", "override", "it", "and", "possibly", "reuse", "some", "previous", ...
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java#L585-L599
intendia-oss/rxjava-gwt
src/main/modified/io/reactivex/super/io/reactivex/Maybe.java
Maybe.takeUntil
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> Maybe<T> takeUntil(Publisher<U> other) { """ Returns a Maybe that emits the item emitted by the source Maybe until a second Publisher emits an item. <p> <img width="640" he...
java
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> Maybe<T> takeUntil(Publisher<U> other) { ObjectHelper.requireNonNull(other, "other is null"); return RxJavaPlugins.onAssembly(new MaybeTakeUntilPublisher<T, U>(this...
[ "@", "BackpressureSupport", "(", "BackpressureKind", ".", "UNBOUNDED_IN", ")", "@", "CheckReturnValue", "@", "SchedulerSupport", "(", "SchedulerSupport", ".", "NONE", ")", "public", "final", "<", "U", ">", "Maybe", "<", "T", ">", "takeUntil", "(", "Publisher", ...
Returns a Maybe that emits the item emitted by the source Maybe until a second Publisher emits an item. <p> <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/takeUntil.png" alt=""> <dl> <dt><b>Backpressure:</b></dt> <dd>The {@code Publisher} is consumed in an unbounded ...
[ "Returns", "a", "Maybe", "that", "emits", "the", "item", "emitted", "by", "the", "source", "Maybe", "until", "a", "second", "Publisher", "emits", "an", "item", ".", "<p", ">", "<img", "width", "=", "640", "height", "=", "380", "src", "=", "https", ":",...
train
https://github.com/intendia-oss/rxjava-gwt/blob/8d5635b12ce40da99e76b59dc6bfe6fc2fffc1fa/src/main/modified/io/reactivex/super/io/reactivex/Maybe.java#L4319-L4325
andrehertwig/admintool
admin-tools-log4j2/src/main/java/de/chandre/admintool/log4j2/AdminToolLog4j2Util.java
AdminToolLog4j2Util.createOutputStreamAppender
public String createOutputStreamAppender(String name, String pattern, String encoding, Collection<String> loggerNames, String levelStr, boolean recursive, boolean overrideLogLevel) { """ creates the custom output steam appender and returns the name @param name @param pattern @param encoding @param logge...
java
public String createOutputStreamAppender(String name, String pattern, String encoding, Collection<String> loggerNames, String levelStr, boolean recursive, boolean overrideLogLevel) { Level level = getLevel(levelStr); String encodingToUse = StringUtils.isEmpty(encoding) ? "UTF-8" : encoding; PatternLayout ...
[ "public", "String", "createOutputStreamAppender", "(", "String", "name", ",", "String", "pattern", ",", "String", "encoding", ",", "Collection", "<", "String", ">", "loggerNames", ",", "String", "levelStr", ",", "boolean", "recursive", ",", "boolean", "overrideLog...
creates the custom output steam appender and returns the name @param name @param pattern @param encoding @param loggerNames @param levelStr @return @since 1.1.1
[ "creates", "the", "custom", "output", "steam", "appender", "and", "returns", "the", "name" ]
train
https://github.com/andrehertwig/admintool/blob/6d391e2d26969b70e3ccabfc34202abe8d915080/admin-tools-log4j2/src/main/java/de/chandre/admintool/log4j2/AdminToolLog4j2Util.java#L426-L466
actorapp/actor-platform
actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java
Messenger.changeNotificationsSound
@ObjectiveCName("changeNotificationsSoundPeer:withValue:") public void changeNotificationsSound(Peer peer, String val) { """ Change notifications sound for peer @param peer destination peer @param val notification sound custom uri or null for default sound """ modules.getSettingsModule().chang...
java
@ObjectiveCName("changeNotificationsSoundPeer:withValue:") public void changeNotificationsSound(Peer peer, String val) { modules.getSettingsModule().changeNotificationPeerSound(peer, val); }
[ "@", "ObjectiveCName", "(", "\"changeNotificationsSoundPeer:withValue:\"", ")", "public", "void", "changeNotificationsSound", "(", "Peer", "peer", ",", "String", "val", ")", "{", "modules", ".", "getSettingsModule", "(", ")", ".", "changeNotificationPeerSound", "(", "...
Change notifications sound for peer @param peer destination peer @param val notification sound custom uri or null for default sound
[ "Change", "notifications", "sound", "for", "peer" ]
train
https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2286-L2289