repository_name
stringlengths
7
58
func_path_in_repository
stringlengths
11
218
func_name
stringlengths
4
140
whole_func_string
stringlengths
153
5.32k
language
stringclasses
1 value
func_code_string
stringlengths
72
4k
func_code_tokens
listlengths
20
832
func_documentation_string
stringlengths
61
2k
func_documentation_tokens
listlengths
1
647
split_name
stringclasses
1 value
func_code_url
stringlengths
102
339
apache/incubator-gobblin
gobblin-api/src/main/java/org/apache/gobblin/configuration/State.java
State.getPropAsBoolean
public boolean getPropAsBoolean(String key, boolean def) { """ Get the value of a property as a boolean, using the given default value if the property is not set. @param key property key @param def default value @return boolean value associated with the key or the default value if the property is not set ...
java
public boolean getPropAsBoolean(String key, boolean def) { return Boolean.parseBoolean(getProp(key, String.valueOf(def))); }
[ "public", "boolean", "getPropAsBoolean", "(", "String", "key", ",", "boolean", "def", ")", "{", "return", "Boolean", ".", "parseBoolean", "(", "getProp", "(", "key", ",", "String", ".", "valueOf", "(", "def", ")", ")", ")", ";", "}" ]
Get the value of a property as a boolean, using the given default value if the property is not set. @param key property key @param def default value @return boolean value associated with the key or the default value if the property is not set
[ "Get", "the", "value", "of", "a", "property", "as", "a", "boolean", "using", "the", "given", "default", "value", "if", "the", "property", "is", "not", "set", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-api/src/main/java/org/apache/gobblin/configuration/State.java#L470-L472
milaboratory/milib
src/main/java/com/milaboratory/util/HashFunctions.java
HashFunctions.MurmurHash2
@SuppressWarnings("fallthrough") public static int MurmurHash2(byte[] data, int seed) { """ MurmurHash hash function for bytes array. <p/> <h3>Links</h3> <a href="http://sites.google.com/site/murmurhash/">http://sites.google.com/site/murmurhash/</a><br/> <a href="http://dmy999.com/article/50/murmurhash-2-java...
java
@SuppressWarnings("fallthrough") public static int MurmurHash2(byte[] data, int seed) { // 'm' and 'r' are mixing constants generated offline. // They're not really 'magic', they just happen to work well. int m = 0x5bd1e995; int r = 24; // Initialize the hash to a 'random' v...
[ "@", "SuppressWarnings", "(", "\"fallthrough\"", ")", "public", "static", "int", "MurmurHash2", "(", "byte", "[", "]", "data", ",", "int", "seed", ")", "{", "// 'm' and 'r' are mixing constants generated offline.", "// They're not really 'magic', they just happen to work well...
MurmurHash hash function for bytes array. <p/> <h3>Links</h3> <a href="http://sites.google.com/site/murmurhash/">http://sites.google.com/site/murmurhash/</a><br/> <a href="http://dmy999.com/article/50/murmurhash-2-java-port">http://dmy999.com/article/50/murmurhash-2-java-port</a><br/> <a href="http://en.wikipedia.org/w...
[ "MurmurHash", "hash", "function", "for", "bytes", "array", ".", "<p", "/", ">", "<h3", ">", "Links<", "/", "h3", ">", "<a", "href", "=", "http", ":", "//", "sites", ".", "google", ".", "com", "/", "site", "/", "murmurhash", "/", ">", "http", ":", ...
train
https://github.com/milaboratory/milib/blob/2349b3dccdd3c7948643760e570238d6e30d5a34/src/main/java/com/milaboratory/util/HashFunctions.java#L342-L386
fuzzylite/jfuzzylite
jfuzzylite/src/main/java/com/fuzzylite/rule/Rule.java
Rule.activateWith
public double activateWith(TNorm conjunction, SNorm disjunction) { """ Activates the rule by computing its activation degree using the given conjunction and disjunction operators @param conjunction is the conjunction operator @param disjunction is the disjunction operator @return the activation degree of the...
java
public double activateWith(TNorm conjunction, SNorm disjunction) { if (!isLoaded()) { throw new RuntimeException(String.format("[rule error] the following rule is not loaded: %s", text)); } activationDegree = weight * antecedent.activationDegree(conjunction, disjunction); ret...
[ "public", "double", "activateWith", "(", "TNorm", "conjunction", ",", "SNorm", "disjunction", ")", "{", "if", "(", "!", "isLoaded", "(", ")", ")", "{", "throw", "new", "RuntimeException", "(", "String", ".", "format", "(", "\"[rule error] the following rule is n...
Activates the rule by computing its activation degree using the given conjunction and disjunction operators @param conjunction is the conjunction operator @param disjunction is the disjunction operator @return the activation degree of the rule
[ "Activates", "the", "rule", "by", "computing", "its", "activation", "degree", "using", "the", "given", "conjunction", "and", "disjunction", "operators" ]
train
https://github.com/fuzzylite/jfuzzylite/blob/583ac1928f39512af75de80d560e67448039595a/jfuzzylite/src/main/java/com/fuzzylite/rule/Rule.java#L238-L244
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/spi/impl/eventservice/impl/EventServiceImpl.java
EventServiceImpl.sendEvent
private void sendEvent(Address subscriber, EventEnvelope eventEnvelope, int orderKey) { """ Sends a remote event to the {@code subscriber}. Each event segment keeps track of the published event count. On every {@link #eventSyncFrequency} the event will be sent synchronously. A synchronous event means that we se...
java
private void sendEvent(Address subscriber, EventEnvelope eventEnvelope, int orderKey) { String serviceName = eventEnvelope.getServiceName(); EventServiceSegment segment = getSegment(serviceName, true); boolean sync = segment.incrementPublish() % eventSyncFrequency == 0; if (sync) { ...
[ "private", "void", "sendEvent", "(", "Address", "subscriber", ",", "EventEnvelope", "eventEnvelope", ",", "int", "orderKey", ")", "{", "String", "serviceName", "=", "eventEnvelope", ".", "getServiceName", "(", ")", ";", "EventServiceSegment", "segment", "=", "getS...
Sends a remote event to the {@code subscriber}. Each event segment keeps track of the published event count. On every {@link #eventSyncFrequency} the event will be sent synchronously. A synchronous event means that we send the event as an {@link SendEventOperation} and in case of failure we increase the failure count a...
[ "Sends", "a", "remote", "event", "to", "the", "{" ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/spi/impl/eventservice/impl/EventServiceImpl.java#L500-L529
RoaringBitmap/RoaringBitmap
roaringbitmap/src/main/java/org/roaringbitmap/buffer/BufferUtil.java
BufferUtil.cardinalityInBitmapWordRange
@Deprecated private static int cardinalityInBitmapWordRange(LongBuffer bitmap, int start, int end) { """ Hamming weight of the 64-bit words involved in the range start, start+1,..., end-1 that is, it will compute the cardinality of the bitset from index (floor(start/64) to floor((end-1)/64)) inclusively. @p...
java
@Deprecated private static int cardinalityInBitmapWordRange(LongBuffer bitmap, int start, int end) { if (isBackedBySimpleArray(bitmap)) { return Util.cardinalityInBitmapWordRange(bitmap.array(), start, end); } if (start >= end) { return 0; } int firstword = start / 64; int endword ...
[ "@", "Deprecated", "private", "static", "int", "cardinalityInBitmapWordRange", "(", "LongBuffer", "bitmap", ",", "int", "start", ",", "int", "end", ")", "{", "if", "(", "isBackedBySimpleArray", "(", "bitmap", ")", ")", "{", "return", "Util", ".", "cardinalityI...
Hamming weight of the 64-bit words involved in the range start, start+1,..., end-1 that is, it will compute the cardinality of the bitset from index (floor(start/64) to floor((end-1)/64)) inclusively. @param bitmap array of words representing a bitset @param start first index (inclusive) @param end last index (exclusi...
[ "Hamming", "weight", "of", "the", "64", "-", "bit", "words", "involved", "in", "the", "range", "start", "start", "+", "1", "...", "end", "-", "1", "that", "is", "it", "will", "compute", "the", "cardinality", "of", "the", "bitset", "from", "index", "(",...
train
https://github.com/RoaringBitmap/RoaringBitmap/blob/b26fd0a1330fd4d2877f4d74feb69ceb812e9efa/roaringbitmap/src/main/java/org/roaringbitmap/buffer/BufferUtil.java#L376-L391
goldmansachs/gs-collections
collections/src/main/java/com/gs/collections/impl/utility/ArrayIterate.java
ArrayIterate.forEach
public static <T> void forEach(T[] objectArray, int from, int to, Procedure<? super T> procedure) { """ Iterates over the section of the list covered by the specified inclusive indexes. The indexes are both inclusive. """ if (objectArray == null) { throw new IllegalArgumentExcepti...
java
public static <T> void forEach(T[] objectArray, int from, int to, Procedure<? super T> procedure) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a forEach on null"); } ListIterate.rangeCheck(from, to, objectArray.length); Internal...
[ "public", "static", "<", "T", ">", "void", "forEach", "(", "T", "[", "]", "objectArray", ",", "int", "from", ",", "int", "to", ",", "Procedure", "<", "?", "super", "T", ">", "procedure", ")", "{", "if", "(", "objectArray", "==", "null", ")", "{", ...
Iterates over the section of the list covered by the specified inclusive indexes. The indexes are both inclusive.
[ "Iterates", "over", "the", "section", "of", "the", "list", "covered", "by", "the", "specified", "inclusive", "indexes", ".", "The", "indexes", "are", "both", "inclusive", "." ]
train
https://github.com/goldmansachs/gs-collections/blob/fa8bf3e103689efa18bca2ab70203e71cde34b52/collections/src/main/java/com/gs/collections/impl/utility/ArrayIterate.java#L774-L783
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
Gen.genCond
public CondItem genCond(JCTree tree, int crtFlags) { """ Derived visitor method: check whether CharacterRangeTable should be emitted, if so, put a new entry into CRTable and call method to generate bytecode. If not, just call method to generate bytecode. @see #genCond(JCTree,boolean) @param tree The...
java
public CondItem genCond(JCTree tree, int crtFlags) { if (!genCrt) return genCond(tree, false); int startpc = code.curCP(); CondItem item = genCond(tree, (crtFlags & CRT_FLOW_CONTROLLER) != 0); code.crt.put(tree, crtFlags, startpc, code.curCP()); return item; }
[ "public", "CondItem", "genCond", "(", "JCTree", "tree", ",", "int", "crtFlags", ")", "{", "if", "(", "!", "genCrt", ")", "return", "genCond", "(", "tree", ",", "false", ")", ";", "int", "startpc", "=", "code", ".", "curCP", "(", ")", ";", "CondItem",...
Derived visitor method: check whether CharacterRangeTable should be emitted, if so, put a new entry into CRTable and call method to generate bytecode. If not, just call method to generate bytecode. @see #genCond(JCTree,boolean) @param tree The tree to be visited. @param crtFlags The CharacterRangeTable flags ...
[ "Derived", "visitor", "method", ":", "check", "whether", "CharacterRangeTable", "should", "be", "emitted", "if", "so", "put", "a", "new", "entry", "into", "CRTable", "and", "call", "method", "to", "generate", "bytecode", ".", "If", "not", "just", "call", "me...
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java#L678-L684
unbescape/unbescape
src/main/java/org/unbescape/xml/XmlEscape.java
XmlEscape.escapeXml10Minimal
public static void escapeXml10Minimal(final Reader reader, final Writer writer) throws IOException { """ <p> Perform an XML 1.0 level 1 (only markup-significant chars) <strong>escape</strong> operation on a <tt>Reader</tt> input, writing results to a <tt>Writer</tt>. </p> <p> <em>Level 1</em> mean...
java
public static void escapeXml10Minimal(final Reader reader, final Writer writer) throws IOException { escapeXml(reader, writer, XmlEscapeSymbols.XML10_SYMBOLS, XmlEscapeType.CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA, XmlEscapeLevel.LEVEL_1_ONLY_MARKUP_SIGNIFICANT); ...
[ "public", "static", "void", "escapeXml10Minimal", "(", "final", "Reader", "reader", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "escapeXml", "(", "reader", ",", "writer", ",", "XmlEscapeSymbols", ".", "XML10_SYMBOLS", ",", "XmlEscapeType",...
<p> Perform an XML 1.0 level 1 (only markup-significant chars) <strong>escape</strong> operation on a <tt>Reader</tt> input, writing results to a <tt>Writer</tt>. </p> <p> <em>Level 1</em> means this method will only escape the five markup-significant characters which are <em>predefined</em> as Character Entity Referen...
[ "<p", ">", "Perform", "an", "XML", "1", ".", "0", "level", "1", "(", "only", "markup", "-", "significant", "chars", ")", "<strong", ">", "escape<", "/", "strong", ">", "operation", "on", "a", "<tt", ">", "Reader<", "/", "tt", ">", "input", "writing",...
train
https://github.com/unbescape/unbescape/blob/ec5435fb3508c2eed25d8165dc27ded2602cae13/src/main/java/org/unbescape/xml/XmlEscape.java#L1229-L1234
apache/incubator-gobblin
gobblin-core/src/main/java/org/apache/gobblin/source/extractor/filebased/FileBasedSource.java
FileBasedSource.addLineageSourceInfo
protected void addLineageSourceInfo(List<WorkUnit> workUnits, State state) { """ Add lineage source info to a list of work units, it can have instances of {@link org.apache.gobblin.source.workunit.MultiWorkUnit} """ workUnits.forEach(workUnit -> { if (workUnit instanceof MultiWorkUnit) { ((M...
java
protected void addLineageSourceInfo(List<WorkUnit> workUnits, State state) { workUnits.forEach(workUnit -> { if (workUnit instanceof MultiWorkUnit) { ((MultiWorkUnit) workUnit).getWorkUnits().forEach((wu -> addLineageSourceInfo(wu, state))); } else { addLineageSourceInfo(workUnit, state)...
[ "protected", "void", "addLineageSourceInfo", "(", "List", "<", "WorkUnit", ">", "workUnits", ",", "State", "state", ")", "{", "workUnits", ".", "forEach", "(", "workUnit", "->", "{", "if", "(", "workUnit", "instanceof", "MultiWorkUnit", ")", "{", "(", "(", ...
Add lineage source info to a list of work units, it can have instances of {@link org.apache.gobblin.source.workunit.MultiWorkUnit}
[ "Add", "lineage", "source", "info", "to", "a", "list", "of", "work", "units", "it", "can", "have", "instances", "of", "{" ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-core/src/main/java/org/apache/gobblin/source/extractor/filebased/FileBasedSource.java#L220-L228
vkostyukov/la4j
src/main/java/org/la4j/Matrices.java
Matrices.asSumAccumulator
public static MatrixAccumulator asSumAccumulator(final double neutral) { """ Creates a sum matrix accumulator that calculates the sum of all elements in the matrix. @param neutral the neutral value @return a sum accumulator """ return new MatrixAccumulator() { private BigDecimal resul...
java
public static MatrixAccumulator asSumAccumulator(final double neutral) { return new MatrixAccumulator() { private BigDecimal result = BigDecimal.valueOf(neutral); @Override public void update(int i, int j, double value) { result = result.add(BigDecimal.valueO...
[ "public", "static", "MatrixAccumulator", "asSumAccumulator", "(", "final", "double", "neutral", ")", "{", "return", "new", "MatrixAccumulator", "(", ")", "{", "private", "BigDecimal", "result", "=", "BigDecimal", ".", "valueOf", "(", "neutral", ")", ";", "@", ...
Creates a sum matrix accumulator that calculates the sum of all elements in the matrix. @param neutral the neutral value @return a sum accumulator
[ "Creates", "a", "sum", "matrix", "accumulator", "that", "calculates", "the", "sum", "of", "all", "elements", "in", "the", "matrix", "." ]
train
https://github.com/vkostyukov/la4j/blob/dd1b917caf9606399a49afa6b0d738934cd3a7b3/src/main/java/org/la4j/Matrices.java#L640-L656
seancfoley/IPAddress
IPAddress/src/inet.ipaddr/inet/ipaddr/ipv6/IPv6AddressSection.java
IPv6AddressSection.mergeToPrefixBlocks
public IPv6AddressSection[] mergeToPrefixBlocks(IPv6AddressSection ...sections) throws SizeMismatchException, AddressPositionException { """ Merges this with the list of sections to produce the smallest array of prefix blocks, going from smallest to largest @param sections the sections to merge with this @retu...
java
public IPv6AddressSection[] mergeToPrefixBlocks(IPv6AddressSection ...sections) throws SizeMismatchException, AddressPositionException { for(int i = 0; i < sections.length; i++) { IPv6AddressSection section = sections[i]; if(section.addressSegmentIndex != addressSegmentIndex) { throw new AddressPositionExce...
[ "public", "IPv6AddressSection", "[", "]", "mergeToPrefixBlocks", "(", "IPv6AddressSection", "...", "sections", ")", "throws", "SizeMismatchException", ",", "AddressPositionException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sections", ".", "length",...
Merges this with the list of sections to produce the smallest array of prefix blocks, going from smallest to largest @param sections the sections to merge with this @return
[ "Merges", "this", "with", "the", "list", "of", "sections", "to", "produce", "the", "smallest", "array", "of", "prefix", "blocks", "going", "from", "smallest", "to", "largest" ]
train
https://github.com/seancfoley/IPAddress/blob/90493d0673511d673100c36d020dd93dd870111a/IPAddress/src/inet.ipaddr/inet/ipaddr/ipv6/IPv6AddressSection.java#L2050-L2059
phax/ph-oton
ph-oton-uictrls/src/main/java/com/helger/photon/uictrls/fineupload5/FineUploader5DeleteFile.java
FineUploader5DeleteFile.setParams
@Nonnull public FineUploader5DeleteFile setParams (@Nullable final Map <String, String> aParams) { """ Any additional parameters to attach to delete file requests. @param aParams New parameters to be set. @return this """ m_aDeleteFileParams.setAll (aParams); return this; }
java
@Nonnull public FineUploader5DeleteFile setParams (@Nullable final Map <String, String> aParams) { m_aDeleteFileParams.setAll (aParams); return this; }
[ "@", "Nonnull", "public", "FineUploader5DeleteFile", "setParams", "(", "@", "Nullable", "final", "Map", "<", "String", ",", "String", ">", "aParams", ")", "{", "m_aDeleteFileParams", ".", "setAll", "(", "aParams", ")", ";", "return", "this", ";", "}" ]
Any additional parameters to attach to delete file requests. @param aParams New parameters to be set. @return this
[ "Any", "additional", "parameters", "to", "attach", "to", "delete", "file", "requests", "." ]
train
https://github.com/phax/ph-oton/blob/f3aaacbbc02a9f3e4f32fe8db8e4adf7b9c1d3ef/ph-oton-uictrls/src/main/java/com/helger/photon/uictrls/fineupload5/FineUploader5DeleteFile.java#L183-L188
googleapis/google-cloud-java
google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore/Query.java
Query.newGqlQueryBuilder
public static <V> GqlQuery.Builder<V> newGqlQueryBuilder(ResultType<V> resultType, String gql) { """ Returns a new {@link GqlQuery} builder. <p>Example of creating and running a typed GQL query. <pre>{@code String kind = "my_kind"; String gqlQuery = "select * from " + kind; Query<Entity> query = Query.new...
java
public static <V> GqlQuery.Builder<V> newGqlQueryBuilder(ResultType<V> resultType, String gql) { return new GqlQuery.Builder<>(resultType, gql); }
[ "public", "static", "<", "V", ">", "GqlQuery", ".", "Builder", "<", "V", ">", "newGqlQueryBuilder", "(", "ResultType", "<", "V", ">", "resultType", ",", "String", "gql", ")", "{", "return", "new", "GqlQuery", ".", "Builder", "<>", "(", "resultType", ",",...
Returns a new {@link GqlQuery} builder. <p>Example of creating and running a typed GQL query. <pre>{@code String kind = "my_kind"; String gqlQuery = "select * from " + kind; Query<Entity> query = Query.newGqlQueryBuilder(Query.ResultType.ENTITY, gqlQuery).build(); QueryResults<Entity> results = datastore.run(query); ...
[ "Returns", "a", "new", "{", "@link", "GqlQuery", "}", "builder", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore/Query.java#L214-L216
buschmais/jqa-maven3-plugin
src/main/java/com/buschmais/jqassistant/plugin/maven3/impl/scanner/MavenModelScannerPlugin.java
MavenModelScannerPlugin.addExecutionGoals
private void addExecutionGoals(MavenPluginExecutionDescriptor executionDescriptor, PluginExecution pluginExecution, Store store) { """ Adds information about execution goals. @param executionDescriptor The descriptor for the execution. @param pluginExecution The PluginExecution. @param store The database. ...
java
private void addExecutionGoals(MavenPluginExecutionDescriptor executionDescriptor, PluginExecution pluginExecution, Store store) { List<String> goals = pluginExecution.getGoals(); for (String goal : goals) { MavenExecutionGoalDescriptor goalDescriptor = store.create(MavenExecutionGoalDescrip...
[ "private", "void", "addExecutionGoals", "(", "MavenPluginExecutionDescriptor", "executionDescriptor", ",", "PluginExecution", "pluginExecution", ",", "Store", "store", ")", "{", "List", "<", "String", ">", "goals", "=", "pluginExecution", ".", "getGoals", "(", ")", ...
Adds information about execution goals. @param executionDescriptor The descriptor for the execution. @param pluginExecution The PluginExecution. @param store The database.
[ "Adds", "information", "about", "execution", "goals", "." ]
train
https://github.com/buschmais/jqa-maven3-plugin/blob/6c6e2dca56de6d5b8ceeb2f28982fb6d7c98778f/src/main/java/com/buschmais/jqassistant/plugin/maven3/impl/scanner/MavenModelScannerPlugin.java#L318-L326
Omertron/api-themoviedb
src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java
TheMovieDbApi.getMovieInfoImdb
public MovieInfo getMovieInfoImdb(String imdbId, String language, String... appendToResponse) throws MovieDbException { """ This method is used to retrieve all of the basic movie information. It will return the single highest rated poster and backdrop. ApiExceptionType.MOVIE_ID_NOT_FOUND will be thrown if th...
java
public MovieInfo getMovieInfoImdb(String imdbId, String language, String... appendToResponse) throws MovieDbException { return tmdbMovies.getMovieInfoImdb(imdbId, language, appendToResponse); }
[ "public", "MovieInfo", "getMovieInfoImdb", "(", "String", "imdbId", ",", "String", "language", ",", "String", "...", "appendToResponse", ")", "throws", "MovieDbException", "{", "return", "tmdbMovies", ".", "getMovieInfoImdb", "(", "imdbId", ",", "language", ",", "...
This method is used to retrieve all of the basic movie information. It will return the single highest rated poster and backdrop. ApiExceptionType.MOVIE_ID_NOT_FOUND will be thrown if there are no movies found. @param imdbId imdbId @param language language @param appendToResponse appendToResponse @return @throws Movi...
[ "This", "method", "is", "used", "to", "retrieve", "all", "of", "the", "basic", "movie", "information", "." ]
train
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java#L868-L870
Wadpam/guja
guja-gae/src/main/java/com/wadpam/guja/servlet/GAEBlobServlet.java
GAEBlobServlet.doPost
@Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { """ Url paths supported /api/blob/upload (POST) Default callback after a successful upload """ if (req.getRequestURI().endsWith("upload")) { uploadCallback(req, resp); } else {...
java
@Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getRequestURI().endsWith("upload")) { uploadCallback(req, resp); } else { resp.setStatus(HttpServletResponse.SC_NOT_FOUND); } }
[ "@", "Override", "public", "void", "doPost", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "resp", ")", "throws", "ServletException", ",", "IOException", "{", "if", "(", "req", ".", "getRequestURI", "(", ")", ".", "endsWith", "(", "\"upload\"", ...
Url paths supported /api/blob/upload (POST) Default callback after a successful upload
[ "Url", "paths", "supported", "/", "api", "/", "blob", "/", "upload", "(", "POST", ")", "Default", "callback", "after", "a", "successful", "upload" ]
train
https://github.com/Wadpam/guja/blob/eb8ba8e6794a96ea0dd9744cada4f9ad9618f114/guja-gae/src/main/java/com/wadpam/guja/servlet/GAEBlobServlet.java#L75-L82
lessthanoptimal/BoofCV
main/boofcv-sfm/src/main/java/boofcv/alg/sfm/d3/VisOdomDualTrackPnP.java
VisOdomDualTrackPnP.process
public boolean process( T left , T right ) { """ Updates motion estimate using the stereo pair. @param left Image from left camera @param right Image from right camera @return true if motion estimate was updated and false if not """ // System.out.println("----------- Process --------------"); this.inp...
java
public boolean process( T left , T right ) { // System.out.println("----------- Process --------------"); this.inputLeft = left; this.inputRight = right; tick++; trackerLeft.process(left); trackerRight.process(right); if( first ) { addNewTracks(); first = false; } else { mutualTrackDrop(); ...
[ "public", "boolean", "process", "(", "T", "left", ",", "T", "right", ")", "{", "//\t\tSystem.out.println(\"----------- Process --------------\");", "this", ".", "inputLeft", "=", "left", ";", "this", ".", "inputRight", "=", "right", ";", "tick", "++", ";", "trac...
Updates motion estimate using the stereo pair. @param left Image from left camera @param right Image from right camera @return true if motion estimate was updated and false if not
[ "Updates", "motion", "estimate", "using", "the", "stereo", "pair", "." ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-sfm/src/main/java/boofcv/alg/sfm/d3/VisOdomDualTrackPnP.java#L181-L214
Azure/azure-sdk-for-java
network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/RouteTablesInner.java
RouteTablesInner.beginCreateOrUpdateAsync
public Observable<RouteTableInner> beginCreateOrUpdateAsync(String resourceGroupName, String routeTableName, RouteTableInner parameters) { """ Create or updates a route table in a specified resource group. @param resourceGroupName The name of the resource group. @param routeTableName The name of the route tabl...
java
public Observable<RouteTableInner> beginCreateOrUpdateAsync(String resourceGroupName, String routeTableName, RouteTableInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, routeTableName, parameters).map(new Func1<ServiceResponse<RouteTableInner>, RouteTableInner>() { ...
[ "public", "Observable", "<", "RouteTableInner", ">", "beginCreateOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "routeTableName", ",", "RouteTableInner", "parameters", ")", "{", "return", "beginCreateOrUpdateWithServiceResponseAsync", "(", "resourceGroupNa...
Create or updates a route table in a specified resource group. @param resourceGroupName The name of the resource group. @param routeTableName The name of the route table. @param parameters Parameters supplied to the create or update route table operation. @throws IllegalArgumentException thrown if parameters fail the ...
[ "Create", "or", "updates", "a", "route", "table", "in", "a", "specified", "resource", "group", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/RouteTablesInner.java#L546-L553
joestelmach/natty
src/main/java/com/joestelmach/natty/WalkerState.java
WalkerState.seekToSeasonYear
public void seekToSeasonYear(String seasonString, String yearString) { """ Seeks to the given season within the given year @param seasonString @param yearString """ Season season = Season.valueOf(seasonString); assert(season != null); seekToIcsEventYear(SEASON_ICS_FILE, yearString, season....
java
public void seekToSeasonYear(String seasonString, String yearString) { Season season = Season.valueOf(seasonString); assert(season != null); seekToIcsEventYear(SEASON_ICS_FILE, yearString, season.getSummary()); }
[ "public", "void", "seekToSeasonYear", "(", "String", "seasonString", ",", "String", "yearString", ")", "{", "Season", "season", "=", "Season", ".", "valueOf", "(", "seasonString", ")", ";", "assert", "(", "season", "!=", "null", ")", ";", "seekToIcsEventYear",...
Seeks to the given season within the given year @param seasonString @param yearString
[ "Seeks", "to", "the", "given", "season", "within", "the", "given", "year" ]
train
https://github.com/joestelmach/natty/blob/74389feb4c9372e51cd51eb0800a0177fec3e5a0/src/main/java/com/joestelmach/natty/WalkerState.java#L429-L434
Talend/tesb-rt-se
locator/src/main/java/org/talend/esb/servicelocator/client/SLPropertiesMatcher.java
SLPropertiesMatcher.addAssertion
public void addAssertion(String name, String value) { """ Add an assertion to this matcher where a {@link SLProperties} must have a property with the given name which at least contains the given value. Name and value are trimmed before matching is done. @param name the name of the property which must be presen...
java
public void addAssertion(String name, String value) { matchers.add(new AbstractMap.SimpleEntry<String, String>(name.trim(), value.trim())); }
[ "public", "void", "addAssertion", "(", "String", "name", ",", "String", "value", ")", "{", "matchers", ".", "add", "(", "new", "AbstractMap", ".", "SimpleEntry", "<", "String", ",", "String", ">", "(", "name", ".", "trim", "(", ")", ",", "value", ".", ...
Add an assertion to this matcher where a {@link SLProperties} must have a property with the given name which at least contains the given value. Name and value are trimmed before matching is done. @param name the name of the property which must be present, must not be <code>null</code> @param value the value the proper...
[ "Add", "an", "assertion", "to", "this", "matcher", "where", "a", "{", "@link", "SLProperties", "}", "must", "have", "a", "property", "with", "the", "given", "name", "which", "at", "least", "contains", "the", "given", "value", ".", "Name", "and", "value", ...
train
https://github.com/Talend/tesb-rt-se/blob/0a151a6d91ffff65ac4b5ee0c5b2c882ac28d886/locator/src/main/java/org/talend/esb/servicelocator/client/SLPropertiesMatcher.java#L44-L46
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/security/cert/PKIXRevocationChecker.java
PKIXRevocationChecker.setOcspResponses
public void setOcspResponses(Map<X509Certificate, byte[]> responses) { """ Sets the OCSP responses. These responses are used to determine the revocation status of the specified certificates when OCSP is used. @param responses a map of OCSP responses. Each key is an {@code X509Certificate} that maps to the cor...
java
public void setOcspResponses(Map<X509Certificate, byte[]> responses) { if (responses == null) { this.ocspResponses = Collections.<X509Certificate, byte[]>emptyMap(); } else { Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size()); for (Map.Entry<X509C...
[ "public", "void", "setOcspResponses", "(", "Map", "<", "X509Certificate", ",", "byte", "[", "]", ">", "responses", ")", "{", "if", "(", "responses", "==", "null", ")", "{", "this", ".", "ocspResponses", "=", "Collections", ".", "<", "X509Certificate", ",",...
Sets the OCSP responses. These responses are used to determine the revocation status of the specified certificates when OCSP is used. @param responses a map of OCSP responses. Each key is an {@code X509Certificate} that maps to the corresponding DER-encoded OCSP response for that certificate. A deep copy of the map is...
[ "Sets", "the", "OCSP", "responses", ".", "These", "responses", "are", "used", "to", "determine", "the", "revocation", "status", "of", "the", "specified", "certificates", "when", "OCSP", "is", "used", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/security/cert/PKIXRevocationChecker.java#L194-L205
Axway/Grapes
server/src/main/java/org/axway/grapes/server/core/GraphsHandler.java
GraphsHandler.addDependencyToGraph
private void addDependencyToGraph(final DbDependency dependency, final AbstractGraph graph, final int depth, final String parentId) { """ Add a dependency to the graph @param dependency @param graph @param depth @param parentId """ // In that case of Axway artifact we will add a module to the gra...
java
private void addDependencyToGraph(final DbDependency dependency, final AbstractGraph graph, final int depth, final String parentId) { // In that case of Axway artifact we will add a module to the graph if (filters.getCorporateFilter().filter(dependency)) { final DbModule dbTarget = repoHandl...
[ "private", "void", "addDependencyToGraph", "(", "final", "DbDependency", "dependency", ",", "final", "AbstractGraph", "graph", ",", "final", "int", "depth", ",", "final", "String", "parentId", ")", "{", "// In that case of Axway artifact we will add a module to the graph", ...
Add a dependency to the graph @param dependency @param graph @param depth @param parentId
[ "Add", "a", "dependency", "to", "the", "graph" ]
train
https://github.com/Axway/Grapes/blob/ce9cc73d85f83eaa5fbc991abb593915a8c8374e/server/src/main/java/org/axway/grapes/server/core/GraphsHandler.java#L89-L127
DiUS/pact-jvm
pact-jvm-consumer-java8/src/main/java/io/pactfoundation/consumer/dsl/LambdaDslObject.java
LambdaDslObject.maxArrayLike
public LambdaDslObject maxArrayLike(String name, Integer size, Consumer<LambdaDslObject> nestedObject) { """ Attribute that is an array with a maximum size where each item must match the following example @param name field name @param size maximum size of the array """ final PactDslJsonBody maxArra...
java
public LambdaDslObject maxArrayLike(String name, Integer size, Consumer<LambdaDslObject> nestedObject) { final PactDslJsonBody maxArrayLike = object.maxArrayLike(name, size); final LambdaDslObject dslObject = new LambdaDslObject(maxArrayLike); nestedObject.accept(dslObject); maxArrayLike...
[ "public", "LambdaDslObject", "maxArrayLike", "(", "String", "name", ",", "Integer", "size", ",", "Consumer", "<", "LambdaDslObject", ">", "nestedObject", ")", "{", "final", "PactDslJsonBody", "maxArrayLike", "=", "object", ".", "maxArrayLike", "(", "name", ",", ...
Attribute that is an array with a maximum size where each item must match the following example @param name field name @param size maximum size of the array
[ "Attribute", "that", "is", "an", "array", "with", "a", "maximum", "size", "where", "each", "item", "must", "match", "the", "following", "example" ]
train
https://github.com/DiUS/pact-jvm/blob/2f447e9dd4ac152a6a36b7fcf8962d07de9ef3ef/pact-jvm-consumer-java8/src/main/java/io/pactfoundation/consumer/dsl/LambdaDslObject.java#L481-L487
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/javax/crypto/Cipher.java
Cipher.getInstance
public static final Cipher getInstance(String transformation, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException { """ Returns a <code>Cipher</code> object that implements the specified transformation. <p> A new Cipher object encaps...
java
public static final Cipher getInstance(String transformation, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException { if (provider == null) { throw new IllegalArgumentException("Missing provider"); } retu...
[ "public", "static", "final", "Cipher", "getInstance", "(", "String", "transformation", ",", "Provider", "provider", ")", "throws", "NoSuchAlgorithmException", ",", "NoSuchPaddingException", "{", "if", "(", "provider", "==", "null", ")", "{", "throw", "new", "Illeg...
Returns a <code>Cipher</code> object that implements the specified transformation. <p> A new Cipher object encapsulating the CipherSpi implementation from the specified Provider object is returned. Note that the specified Provider object does not have to be registered in the provider list. @param transformation the ...
[ "Returns", "a", "<code", ">", "Cipher<", "/", "code", ">", "object", "that", "implements", "the", "specified", "transformation", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/javax/crypto/Cipher.java#L901-L909
deeplearning4j/deeplearning4j
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SDVariable.java
SDVariable.lte
public SDVariable lte(String name, SDVariable other) { """ Less than or equal to operation: elementwise {@code this <= y}<br> If x and y arrays have equal shape, the output shape is the same as the inputs.<br> Supports broadcasting: if x and y have different shapes and are broadcastable, the output shape is broa...
java
public SDVariable lte(String name, SDVariable other){ return sameDiff.lte(name, this, other); }
[ "public", "SDVariable", "lte", "(", "String", "name", ",", "SDVariable", "other", ")", "{", "return", "sameDiff", ".", "lte", "(", "name", ",", "this", ",", "other", ")", ";", "}" ]
Less than or equal to operation: elementwise {@code this <= y}<br> If x and y arrays have equal shape, the output shape is the same as the inputs.<br> Supports broadcasting: if x and y have different shapes and are broadcastable, the output shape is broadcast.<br> Returns an array with values 1 where condition is satis...
[ "Less", "than", "or", "equal", "to", "operation", ":", "elementwise", "{", "@code", "this", "<", "=", "y", "}", "<br", ">", "If", "x", "and", "y", "arrays", "have", "equal", "shape", "the", "output", "shape", "is", "the", "same", "as", "the", "inputs...
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SDVariable.java#L525-L527
osiam/connector4java
src/main/java/org/osiam/client/OsiamConnector.java
OsiamConnector.updateClient
public Client updateClient(String clientId, Client client, AccessToken accessToken) { """ Get OSIAM OAuth client by the given ID. @param clientId the id of the client which should be updated @param client the client @param accessToken the access token used to access the service @return The updated cl...
java
public Client updateClient(String clientId, Client client, AccessToken accessToken) { return getAuthService().updateClient(clientId, client, accessToken); }
[ "public", "Client", "updateClient", "(", "String", "clientId", ",", "Client", "client", ",", "AccessToken", "accessToken", ")", "{", "return", "getAuthService", "(", ")", ".", "updateClient", "(", "clientId", ",", "client", ",", "accessToken", ")", ";", "}" ]
Get OSIAM OAuth client by the given ID. @param clientId the id of the client which should be updated @param client the client @param accessToken the access token used to access the service @return The updated client @throws UnauthorizedException if the accessToken is not valid @throws ConnectionIni...
[ "Get", "OSIAM", "OAuth", "client", "by", "the", "given", "ID", "." ]
train
https://github.com/osiam/connector4java/blob/a5e6ae1e706f4889d662a069fe2f3bf8e3848d12/src/main/java/org/osiam/client/OsiamConnector.java#L695-L697
woxblom/DragListView
library/src/main/java/com/woxthebox/draglistview/BoardView.java
BoardView.insertColumn
public DragItemRecyclerView insertColumn(final DragItemAdapter adapter, int index, final @Nullable View header, @Nullable View columnDragView, boolean hasFixedItemSize) { """ Inserts a column to the board at a specific index. @param adapter Adapter with the items for the column. @param index ...
java
public DragItemRecyclerView insertColumn(final DragItemAdapter adapter, int index, final @Nullable View header, @Nullable View columnDragView, boolean hasFixedItemSize) { final DragItemRecyclerView recyclerView = insertColumn(adapter, index, header, hasFixedItemSize); setupColumnDragListener(columnDragV...
[ "public", "DragItemRecyclerView", "insertColumn", "(", "final", "DragItemAdapter", "adapter", ",", "int", "index", ",", "final", "@", "Nullable", "View", "header", ",", "@", "Nullable", "View", "columnDragView", ",", "boolean", "hasFixedItemSize", ")", "{", "final...
Inserts a column to the board at a specific index. @param adapter Adapter with the items for the column. @param index Index where on the board to add the column. @param header Header view that will be positioned above the column. Can be null. @param columnDragView View that will act as ...
[ "Inserts", "a", "column", "to", "the", "board", "at", "a", "specific", "index", "." ]
train
https://github.com/woxblom/DragListView/blob/9823406f21d96035e88d8fd173f64419d0bb89f3/library/src/main/java/com/woxthebox/draglistview/BoardView.java#L799-L803
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/Expression.java
Expression.getCheckSelect
static QuerySpecification getCheckSelect(Session session, Table t, Expression e) { """ Returns a Select object that can be used for checking the contents of an existing table against the given CHECK search condition. """ CompileContext compileContext = new CompileContext(session); ...
java
static QuerySpecification getCheckSelect(Session session, Table t, Expression e) { CompileContext compileContext = new CompileContext(session); QuerySpecification s = new QuerySpecification(compileContext); s.exprColumns = new Expression[1]; s.exprColumns[0] = EXPR_T...
[ "static", "QuerySpecification", "getCheckSelect", "(", "Session", "session", ",", "Table", "t", ",", "Expression", "e", ")", "{", "CompileContext", "compileContext", "=", "new", "CompileContext", "(", "session", ")", ";", "QuerySpecification", "s", "=", "new", "...
Returns a Select object that can be used for checking the contents of an existing table against the given CHECK search condition.
[ "Returns", "a", "Select", "object", "that", "can", "be", "used", "for", "checking", "the", "contents", "of", "an", "existing", "table", "against", "the", "given", "CHECK", "search", "condition", "." ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Expression.java#L1328-L1360
Microsoft/malmo
Minecraft/src/main/java/com/microsoft/Malmo/Utils/TCPSocketChannel.java
TCPSocketChannel.sendTCPBytes
public boolean sendTCPBytes(byte[] bytes, int retries) { """ Send byte buffer over TCP, including a length header. @param bytes the bytes to send @param retries number of times to retry in event of failure @return true if the message was sent successfully """ try { ByteBuffer header = ...
java
public boolean sendTCPBytes(byte[] bytes, int retries) { try { ByteBuffer header = createHeader(bytes.length); safeWrite(header); ByteBuffer buffer = ByteBuffer.wrap(bytes); safeWrite(buffer); } catch (Exception e) { SysLog(Level.SEVERE, "F...
[ "public", "boolean", "sendTCPBytes", "(", "byte", "[", "]", "bytes", ",", "int", "retries", ")", "{", "try", "{", "ByteBuffer", "header", "=", "createHeader", "(", "bytes", ".", "length", ")", ";", "safeWrite", "(", "header", ")", ";", "ByteBuffer", "buf...
Send byte buffer over TCP, including a length header. @param bytes the bytes to send @param retries number of times to retry in event of failure @return true if the message was sent successfully
[ "Send", "byte", "buffer", "over", "TCP", "including", "a", "length", "header", "." ]
train
https://github.com/Microsoft/malmo/blob/4139cd6f3e52f6e893a931a1d4b70d35f8e70e5a/Minecraft/src/main/java/com/microsoft/Malmo/Utils/TCPSocketChannel.java#L133-L164
looly/hutool
hutool-json/src/main/java/cn/hutool/json/JSONArray.java
JSONArray.doWrite
private Writer doWrite(Writer writer, int indentFactor, int indent) throws IOException { """ 将JSON内容写入Writer @param writer writer @param indentFactor 缩进因子,定义每一级别增加的缩进量 @param indent 本级别缩进量 @return Writer @throws IOException IO相关异常 """ writer.write(CharUtil.BRACKET_START); final int newindent = ind...
java
private Writer doWrite(Writer writer, int indentFactor, int indent) throws IOException { writer.write(CharUtil.BRACKET_START); final int newindent = indent + indentFactor; final boolean isIgnoreNullValue = this.config.isIgnoreNullValue(); boolean isFirst = true; for (Object obj : this.rawList) { if(O...
[ "private", "Writer", "doWrite", "(", "Writer", "writer", ",", "int", "indentFactor", ",", "int", "indent", ")", "throws", "IOException", "{", "writer", ".", "write", "(", "CharUtil", ".", "BRACKET_START", ")", ";", "final", "int", "newindent", "=", "indent",...
将JSON内容写入Writer @param writer writer @param indentFactor 缩进因子,定义每一级别增加的缩进量 @param indent 本级别缩进量 @return Writer @throws IOException IO相关异常
[ "将JSON内容写入Writer" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-json/src/main/java/cn/hutool/json/JSONArray.java#L524-L552
jenkinsci/jenkins
core/src/main/java/hudson/security/SidACL.java
SidACL.newInheritingACL
public final SidACL newInheritingACL(final SidACL parent) { """ Creates a new {@link SidACL} that first consults 'this' {@link SidACL} and then delegate to the given parent {@link SidACL}. By doing this at the {@link SidACL} level and not at the {@link ACL} level, this allows the child ACLs to have an explicit d...
java
public final SidACL newInheritingACL(final SidACL parent) { final SidACL child = this; return new SidACL() { protected Boolean hasPermission(Sid p, Permission permission) { Boolean b = child.hasPermission(p, permission); if(b!=null) return b; r...
[ "public", "final", "SidACL", "newInheritingACL", "(", "final", "SidACL", "parent", ")", "{", "final", "SidACL", "child", "=", "this", ";", "return", "new", "SidACL", "(", ")", "{", "protected", "Boolean", "hasPermission", "(", "Sid", "p", ",", "Permission", ...
Creates a new {@link SidACL} that first consults 'this' {@link SidACL} and then delegate to the given parent {@link SidACL}. By doing this at the {@link SidACL} level and not at the {@link ACL} level, this allows the child ACLs to have an explicit deny entry. Note that the combined ACL calls hasPermission(Sid,Permissio...
[ "Creates", "a", "new", "{" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/security/SidACL.java#L138-L147
JOML-CI/JOML
src/org/joml/Matrix3f.java
Matrix3f.rotateLocal
public Matrix3f rotateLocal(float ang, float x, float y, float z) { """ Pre-multiply a rotation to this matrix by rotating the given amount of radians about the specified <code>(x, y, z)</code> axis. <p> The axis described by the three components needs to be a unit vector. <p> When used with a right-handed co...
java
public Matrix3f rotateLocal(float ang, float x, float y, float z) { return rotateLocal(ang, x, y, z, this); }
[ "public", "Matrix3f", "rotateLocal", "(", "float", "ang", ",", "float", "x", ",", "float", "y", ",", "float", "z", ")", "{", "return", "rotateLocal", "(", "ang", ",", "x", ",", "y", ",", "z", ",", "this", ")", ";", "}" ]
Pre-multiply a rotation to this matrix by rotating the given amount of radians about the specified <code>(x, y, z)</code> axis. <p> The axis described by the three components needs to be a unit vector. <p> When used with a right-handed coordinate system, the produced rotation will rotate a vector counter-clockwise arou...
[ "Pre", "-", "multiply", "a", "rotation", "to", "this", "matrix", "by", "rotating", "the", "given", "amount", "of", "radians", "about", "the", "specified", "<code", ">", "(", "x", "y", "z", ")", "<", "/", "code", ">", "axis", ".", "<p", ">", "The", ...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix3f.java#L2443-L2445
looly/hutool
hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java
HashCodeBuilder.reflectionHashCode
public static int reflectionHashCode(final Object object, final boolean testTransients) { """ <p> Uses reflection to build a valid hash code from the fields of {@code object}. </p> <p> This constructor uses two hard coded choices for the constants needed to build a hash code. </p> <p> It uses <code>Acce...
java
public static int reflectionHashCode(final Object object, final boolean testTransients) { return reflectionHashCode(DEFAULT_INITIAL_VALUE, DEFAULT_MULTIPLIER_VALUE, object, testTransients, null); }
[ "public", "static", "int", "reflectionHashCode", "(", "final", "Object", "object", ",", "final", "boolean", "testTransients", ")", "{", "return", "reflectionHashCode", "(", "DEFAULT_INITIAL_VALUE", ",", "DEFAULT_MULTIPLIER_VALUE", ",", "object", ",", "testTransients", ...
<p> Uses reflection to build a valid hash code from the fields of {@code object}. </p> <p> This constructor uses two hard coded choices for the constants needed to build a hash code. </p> <p> It uses <code>AccessibleObject.setAccessible</code> to gain access to private fields. This means that it will throw a security...
[ "<p", ">", "Uses", "reflection", "to", "build", "a", "valid", "hash", "code", "from", "the", "fields", "of", "{", "@code", "object", "}", ".", "<", "/", "p", ">" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java#L380-L383
ralscha/extdirectspring
src/main/java/ch/ralscha/extdirectspring/util/JsonHandler.java
JsonHandler.convertValue
public <T> T convertValue(Object object, Class<T> clazz) { """ Converts one object into another. @param object the source @param clazz the type of the target @return the converted object """ return this.mapper.convertValue(object, clazz); }
java
public <T> T convertValue(Object object, Class<T> clazz) { return this.mapper.convertValue(object, clazz); }
[ "public", "<", "T", ">", "T", "convertValue", "(", "Object", "object", ",", "Class", "<", "T", ">", "clazz", ")", "{", "return", "this", ".", "mapper", ".", "convertValue", "(", "object", ",", "clazz", ")", ";", "}" ]
Converts one object into another. @param object the source @param clazz the type of the target @return the converted object
[ "Converts", "one", "object", "into", "another", "." ]
train
https://github.com/ralscha/extdirectspring/blob/4b018497c4e7503033f91d0491b4e74bf8291d2c/src/main/java/ch/ralscha/extdirectspring/util/JsonHandler.java#L159-L161
structurizr/java
structurizr-client/src/com/structurizr/util/WorkspaceUtils.java
WorkspaceUtils.toJson
public static String toJson(Workspace workspace, boolean indentOutput) throws Exception { """ Serializes the specified workspace to a JSON string. @param workspace a Workspace instance @param indentOutput whether to indent the output (prettify) @return a JSON string @throws Exception if something goes ...
java
public static String toJson(Workspace workspace, boolean indentOutput) throws Exception { if (workspace == null) { throw new IllegalArgumentException("A workspace must be provided."); } JsonWriter jsonWriter = new JsonWriter(indentOutput); StringWriter stringWriter = new Str...
[ "public", "static", "String", "toJson", "(", "Workspace", "workspace", ",", "boolean", "indentOutput", ")", "throws", "Exception", "{", "if", "(", "workspace", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"A workspace must be provided.\...
Serializes the specified workspace to a JSON string. @param workspace a Workspace instance @param indentOutput whether to indent the output (prettify) @return a JSON string @throws Exception if something goes wrong
[ "Serializes", "the", "specified", "workspace", "to", "a", "JSON", "string", "." ]
train
https://github.com/structurizr/java/blob/4b204f077877a24bcac363f5ecf0e129a0f9f4c5/structurizr-client/src/com/structurizr/util/WorkspaceUtils.java#L77-L89
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/lang/UCharacter.java
UCharacter.toTitleCase
public static String toTitleCase(Locale locale, String str, BreakIterator breakiter) { """ <p>Returns the titlecase version of the argument string. <p>Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing....
java
public static String toTitleCase(Locale locale, String str, BreakIterator breakiter) { return toTitleCase(locale, str, breakiter, 0); }
[ "public", "static", "String", "toTitleCase", "(", "Locale", "locale", ",", "String", "str", ",", "BreakIterator", "breakiter", ")", "{", "return", "toTitleCase", "(", "locale", ",", "str", ",", "breakiter", ",", "0", ")", ";", "}" ]
<p>Returns the titlecase version of the argument string. <p>Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the ...
[ "<p", ">", "Returns", "the", "titlecase", "version", "of", "the", "argument", "string", ".", "<p", ">", "Position", "for", "titlecasing", "is", "determined", "by", "the", "argument", "break", "iterator", "hence", "the", "user", "can", "customize", "his", "br...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/lang/UCharacter.java#L4466-L4470
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowUtils.java
PageFlowUtils.getURLTemplateKey
public static String getURLTemplateKey( URLType urlType, boolean needsToBeSecure ) { """ Returns a key for the URL template type given the URL type and a flag indicating a secure URL or not. @param urlType the type of URL (ACTION, RESOURCE). @param needsToBeSecure indicates that the template should be for a s...
java
public static String getURLTemplateKey( URLType urlType, boolean needsToBeSecure ) { String key = URLTemplatesFactory.ACTION_TEMPLATE; if ( urlType.equals( URLType.ACTION ) ) { if ( needsToBeSecure ) { key = URLTemplatesFactory.SECURE_ACTION_TEMPLATE; ...
[ "public", "static", "String", "getURLTemplateKey", "(", "URLType", "urlType", ",", "boolean", "needsToBeSecure", ")", "{", "String", "key", "=", "URLTemplatesFactory", ".", "ACTION_TEMPLATE", ";", "if", "(", "urlType", ".", "equals", "(", "URLType", ".", "ACTION...
Returns a key for the URL template type given the URL type and a flag indicating a secure URL or not. @param urlType the type of URL (ACTION, RESOURCE). @param needsToBeSecure indicates that the template should be for a secure URL. @return the key/type of template to use.
[ "Returns", "a", "key", "for", "the", "URL", "template", "type", "given", "the", "URL", "type", "and", "a", "flag", "indicating", "a", "secure", "URL", "or", "not", "." ]
train
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowUtils.java#L1685-L1712
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/SimpleTimeZone.java
SimpleTimeZone.setEndRule
public void setEndRule(int month, int dayOfMonth, int time) { """ Sets the DST end rule to a fixed date within a month. @param month The month in which this rule occurs (0-based). @param dayOfMonth The date in that month (1-based). @param time The time of that day (number of millis after m...
java
public void setEndRule(int month, int dayOfMonth, int time) { if (isFrozen()) { throw new UnsupportedOperationException("Attempt to modify a frozen SimpleTimeZone instance."); } getSTZInfo().setEnd(month, -1, -1, time, dayOfMonth, false); setEndRule(month, dayOfMonth, WALL_T...
[ "public", "void", "setEndRule", "(", "int", "month", ",", "int", "dayOfMonth", ",", "int", "time", ")", "{", "if", "(", "isFrozen", "(", ")", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "\"Attempt to modify a frozen SimpleTimeZone instance.\"", ...
Sets the DST end rule to a fixed date within a month. @param month The month in which this rule occurs (0-based). @param dayOfMonth The date in that month (1-based). @param time The time of that day (number of millis after midnight) when DST ends in local wall time, which is daylight time in this c...
[ "Sets", "the", "DST", "end", "rule", "to", "a", "fixed", "date", "within", "a", "month", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/SimpleTimeZone.java#L452-L459
westnordost/osmapi
src/main/java/de/westnordost/osmapi/traces/GpsTracesDao.java
GpsTracesDao.getData
public void getData(long id, Handler<GpsTrackpoint> handler) { """ Get all trackpoints contained in the given trace id. Note that the trace is a GPX file, so there is potentially much more information in there than simply the trackpoints. However, this method only parses the trackpoints and ignores everything el...
java
public void getData(long id, Handler<GpsTrackpoint> handler) { osm.makeAuthenticatedRequest(GPX + "/" + id + "/data", "GET", new GpxTrackParser(handler)); }
[ "public", "void", "getData", "(", "long", "id", ",", "Handler", "<", "GpsTrackpoint", ">", "handler", ")", "{", "osm", ".", "makeAuthenticatedRequest", "(", "GPX", "+", "\"/\"", "+", "id", "+", "\"/data\"", ",", "\"GET\"", ",", "new", "GpxTrackParser", "("...
Get all trackpoints contained in the given trace id. Note that the trace is a GPX file, so there is potentially much more information in there than simply the trackpoints. However, this method only parses the trackpoints and ignores everything else. @throws OsmNotFoundException if the trace with the given id does not ...
[ "Get", "all", "trackpoints", "contained", "in", "the", "given", "trace", "id", ".", "Note", "that", "the", "trace", "is", "a", "GPX", "file", "so", "there", "is", "potentially", "much", "more", "information", "in", "there", "than", "simply", "the", "trackp...
train
https://github.com/westnordost/osmapi/blob/dda6978fd12e117d0cf17812bc22037f61e22c4b/src/main/java/de/westnordost/osmapi/traces/GpsTracesDao.java#L189-L192
albfernandez/itext2
src/main/java/com/lowagie/text/Section.java
Section.addSection
public Section addSection(float indentation, Paragraph title, int numberDepth) { """ Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it. @param indentation the indentation of the new section @param title the title of the new section @param numberDepth the numberDepth of the s...
java
public Section addSection(float indentation, Paragraph title, int numberDepth) { if (isAddedCompletely()) { throw new IllegalStateException("This LargeElement has already been added to the Document."); } Section section = new Section(title, numberDepth); section.setIndentation(indentatio...
[ "public", "Section", "addSection", "(", "float", "indentation", ",", "Paragraph", "title", ",", "int", "numberDepth", ")", "{", "if", "(", "isAddedCompletely", "(", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"This LargeElement has already been ad...
Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it. @param indentation the indentation of the new section @param title the title of the new section @param numberDepth the numberDepth of the section @return a new Section object
[ "Creates", "a", "<CODE", ">", "Section<", "/", "CODE", ">", "adds", "it", "to", "this", "<CODE", ">", "Section<", "/", "CODE", ">", "and", "returns", "it", "." ]
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/Section.java#L346-L354
BellaDati/belladati-sdk-api
src/main/java/com/belladati/sdk/filter/FilterOperation.java
FilterOperation.createFilter
public F createFilter(BellaDatiService service, String dataSetId, String attributeCode) { """ Creates a filter using just an attribute code. Can be used if the code is already known to avoid having to make an extra API call loading report attributes. @param service service instance to connect to the server (t...
java
public F createFilter(BellaDatiService service, String dataSetId, String attributeCode) { return createFilter(new FilterAttribute(service, dataSetId, attributeCode)); }
[ "public", "F", "createFilter", "(", "BellaDatiService", "service", ",", "String", "dataSetId", ",", "String", "attributeCode", ")", "{", "return", "createFilter", "(", "new", "FilterAttribute", "(", "service", ",", "dataSetId", ",", "attributeCode", ")", ")", ";...
Creates a filter using just an attribute code. Can be used if the code is already known to avoid having to make an extra API call loading report attributes. @param service service instance to connect to the server (to allow retrieving the attribute's values) @param dataSetId ID of the data set the attribute is defined...
[ "Creates", "a", "filter", "using", "just", "an", "attribute", "code", ".", "Can", "be", "used", "if", "the", "code", "is", "already", "known", "to", "avoid", "having", "to", "make", "an", "extra", "API", "call", "loading", "report", "attributes", "." ]
train
https://github.com/BellaDati/belladati-sdk-api/blob/ec45a42048d8255838ad0200aa6784a8e8a121c1/src/main/java/com/belladati/sdk/filter/FilterOperation.java#L71-L73
GenesysPureEngage/provisioning-client-java
src/main/java/com/genesys/internal/provisioning/api/NotificationsApi.java
NotificationsApi.connectCall
public com.squareup.okhttp.Call connectCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { """ Build call for connect @param progressListener Progress listener @param progressRequestListener Progress r...
java
public com.squareup.okhttp.Call connectCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/not...
[ "public", "com", ".", "squareup", ".", "okhttp", ".", "Call", "connectCall", "(", "final", "ProgressResponseBody", ".", "ProgressListener", "progressListener", ",", "final", "ProgressRequestBody", ".", "ProgressRequestListener", "progressRequestListener", ")", "throws", ...
Build call for connect @param progressListener Progress listener @param progressRequestListener Progress request listener @return Call to execute @throws ApiException If fail to serialize the request body object
[ "Build", "call", "for", "connect" ]
train
https://github.com/GenesysPureEngage/provisioning-client-java/blob/1ad594c3767cec83052168e350994f922a26f75e/src/main/java/com/genesys/internal/provisioning/api/NotificationsApi.java#L63-L102
phax/ph-commons
ph-tree/src/main/java/com/helger/tree/xml/TreeXMLConverter.java
TreeXMLConverter.getTreeWithStringIDAsXML
@Nonnull public static <DATATYPE, ITEMTYPE extends ITreeItemWithID <String, DATATYPE, ITEMTYPE>> IMicroElement getTreeWithStringIDAsXML (@Nonnull final IBasicTree <DATATYPE, ITEMTYPE> aTree, ...
java
@Nonnull public static <DATATYPE, ITEMTYPE extends ITreeItemWithID <String, DATATYPE, ITEMTYPE>> IMicroElement getTreeWithStringIDAsXML (@Nonnull final IBasicTree <DATATYPE, ITEMTYPE> aTree, ...
[ "@", "Nonnull", "public", "static", "<", "DATATYPE", ",", "ITEMTYPE", "extends", "ITreeItemWithID", "<", "String", ",", "DATATYPE", ",", "ITEMTYPE", ">", ">", "IMicroElement", "getTreeWithStringIDAsXML", "(", "@", "Nonnull", "final", "IBasicTree", "<", "DATATYPE",...
Specialized conversion method for converting a tree with ID to a standardized XML tree. @param <DATATYPE> tree item value type @param <ITEMTYPE> tree item type @param aTree The tree to be converted @param aConverter The main data converter that converts the tree item values into XML @return The created document.
[ "Specialized", "conversion", "method", "for", "converting", "a", "tree", "with", "ID", "to", "a", "standardized", "XML", "tree", "." ]
train
https://github.com/phax/ph-commons/blob/d28c03565f44a0b804d96028d0969f9bb38c4313/ph-tree/src/main/java/com/helger/tree/xml/TreeXMLConverter.java#L77-L82
googleapis/google-cloud-java
google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java
GrafeasV1Beta1Client.listOccurrences
public final ListOccurrencesPagedResponse listOccurrences(ProjectName parent, String filter) { """ Lists occurrences for the specified project. <p>Sample code: <pre><code> try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); St...
java
public final ListOccurrencesPagedResponse listOccurrences(ProjectName parent, String filter) { ListOccurrencesRequest request = ListOccurrencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setFilter(filter) .build(); return listOccurrence...
[ "public", "final", "ListOccurrencesPagedResponse", "listOccurrences", "(", "ProjectName", "parent", ",", "String", "filter", ")", "{", "ListOccurrencesRequest", "request", "=", "ListOccurrencesRequest", ".", "newBuilder", "(", ")", ".", "setParent", "(", "parent", "==...
Lists occurrences for the specified project. <p>Sample code: <pre><code> try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = ""; for (Occurrence element : grafeasV1Beta1Client.listOccurrences(parent, filter).iterateAll()) ...
[ "Lists", "occurrences", "for", "the", "specified", "project", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java#L309-L316
lucee/Lucee
core/src/main/java/lucee/runtime/schedule/StorageUtil.java
StorageUtil.loadFile
public void loadFile(Resource res, String resourcePath) throws IOException { """ create xml file from a resource definition @param res @param resourcePath @throws IOException """ res.createFile(true); InputStream is = InfoImpl.class.getResourceAsStream(resourcePath); IOUtil.copy(is, res, true); }
java
public void loadFile(Resource res, String resourcePath) throws IOException { res.createFile(true); InputStream is = InfoImpl.class.getResourceAsStream(resourcePath); IOUtil.copy(is, res, true); }
[ "public", "void", "loadFile", "(", "Resource", "res", ",", "String", "resourcePath", ")", "throws", "IOException", "{", "res", ".", "createFile", "(", "true", ")", ";", "InputStream", "is", "=", "InfoImpl", ".", "class", ".", "getResourceAsStream", "(", "res...
create xml file from a resource definition @param res @param resourcePath @throws IOException
[ "create", "xml", "file", "from", "a", "resource", "definition" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/schedule/StorageUtil.java#L74-L78
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/KerasModelImport.java
KerasModelImport.importKerasModelAndWeights
public static ComputationGraph importKerasModelAndWeights( InputStream modelHdf5Stream, boolean enforceTrainingConfig) throws IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException { """ Load Keras (Functional API) Model saved using model.save_model(...). @param mode...
java
public static ComputationGraph importKerasModelAndWeights( InputStream modelHdf5Stream, boolean enforceTrainingConfig) throws IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException{ File f = null; try{ f = toTempFile(modelHdf5Stream); ...
[ "public", "static", "ComputationGraph", "importKerasModelAndWeights", "(", "InputStream", "modelHdf5Stream", ",", "boolean", "enforceTrainingConfig", ")", "throws", "IOException", ",", "UnsupportedKerasConfigurationException", ",", "InvalidKerasConfigurationException", "{", "File...
Load Keras (Functional API) Model saved using model.save_model(...). @param modelHdf5Stream InputStream containing HDF5 archive storing Keras Model @param enforceTrainingConfig whether to enforce training configuration options @return ComputationGraph @see ComputationGraph
[ "Load", "Keras", "(", "Functional", "API", ")", "Model", "saved", "using", "model", ".", "save_model", "(", "...", ")", "." ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/KerasModelImport.java#L50-L60
hageldave/ImagingKit
ImagingKit_Fourier/src/main/java/hageldave/imagingkit/fourier/ComplexImg.java
ComplexImg.computePhase
public double computePhase(int idx) { """ Calculates the phase of the pixel at the specified index. The phase is the argument of the complex number, i.e. the angle of the complex vector in the complex plane. @param idx index @return the phase in [0,2pi] of the complex number at index """ double r = real[...
java
public double computePhase(int idx){ double r = real[idx]; double i = imag[idx]; return atan2(r, i); }
[ "public", "double", "computePhase", "(", "int", "idx", ")", "{", "double", "r", "=", "real", "[", "idx", "]", ";", "double", "i", "=", "imag", "[", "idx", "]", ";", "return", "atan2", "(", "r", ",", "i", ")", ";", "}" ]
Calculates the phase of the pixel at the specified index. The phase is the argument of the complex number, i.e. the angle of the complex vector in the complex plane. @param idx index @return the phase in [0,2pi] of the complex number at index
[ "Calculates", "the", "phase", "of", "the", "pixel", "at", "the", "specified", "index", ".", "The", "phase", "is", "the", "argument", "of", "the", "complex", "number", "i", ".", "e", ".", "the", "angle", "of", "the", "complex", "vector", "in", "the", "c...
train
https://github.com/hageldave/ImagingKit/blob/3837c7d550a12cf4dc5718b644ced94b97f52668/ImagingKit_Fourier/src/main/java/hageldave/imagingkit/fourier/ComplexImg.java#L510-L514
DataSketches/sketches-core
src/main/java/com/yahoo/sketches/theta/HeapAlphaSketch.java
HeapAlphaSketch.newHeapInstance
static HeapAlphaSketch newHeapInstance(final int lgNomLongs, final long seed, final float p, final ResizeFactor rf) { """ Get a new sketch instance on the java heap. @param lgNomLongs <a href="{@docRoot}/resources/dictionary.html#lgNomLongs">See lgNomLongs</a> @param seed <a href="{@docRoot}/resources/di...
java
static HeapAlphaSketch newHeapInstance(final int lgNomLongs, final long seed, final float p, final ResizeFactor rf) { if (lgNomLongs < ALPHA_MIN_LG_NOM_LONGS) { throw new SketchesArgumentException( "This sketch requires a minimum nominal entries of " + (1 << ALPHA_MIN_LG_NOM_LONGS)); } ...
[ "static", "HeapAlphaSketch", "newHeapInstance", "(", "final", "int", "lgNomLongs", ",", "final", "long", "seed", ",", "final", "float", "p", ",", "final", "ResizeFactor", "rf", ")", "{", "if", "(", "lgNomLongs", "<", "ALPHA_MIN_LG_NOM_LONGS", ")", "{", "throw"...
Get a new sketch instance on the java heap. @param lgNomLongs <a href="{@docRoot}/resources/dictionary.html#lgNomLongs">See lgNomLongs</a> @param seed <a href="{@docRoot}/resources/dictionary.html#seed">See Update Hash Seed</a> @param p <a href="{@docRoot}/resources/dictionary.html#p">See Sampling Probability, <i>p</i...
[ "Get", "a", "new", "sketch", "instance", "on", "the", "java", "heap", "." ]
train
https://github.com/DataSketches/sketches-core/blob/900c8c9668a1e2f1d54d453e956caad54702e540/src/main/java/com/yahoo/sketches/theta/HeapAlphaSketch.java#L77-L99
xhsun/gw2wrapper
src/main/java/me/xhsun/guildwars2wrapper/AsynchronousRequest.java
AsynchronousRequest.getGuildUpgradeInfo
public void getGuildUpgradeInfo(int[] ids, Callback<List<GuildUpgrade>> callback) throws GuildWars2Exception, NullPointerException { """ For more info on guild upgrades API go <a href="https://wiki.guildwars2.com/wiki/API:2/guild/upgrades">here</a><br/> Give user the access to {@link Callback#onResponse(Call, Res...
java
public void getGuildUpgradeInfo(int[] ids, Callback<List<GuildUpgrade>> callback) throws GuildWars2Exception, NullPointerException { isParamValid(new ParamChecker(ids)); gw2API.getGuildUpgradeInfo(processIds(ids), GuildWars2.lang.getValue()).enqueue(callback); }
[ "public", "void", "getGuildUpgradeInfo", "(", "int", "[", "]", "ids", ",", "Callback", "<", "List", "<", "GuildUpgrade", ">", ">", "callback", ")", "throws", "GuildWars2Exception", ",", "NullPointerException", "{", "isParamValid", "(", "new", "ParamChecker", "("...
For more info on guild upgrades API go <a href="https://wiki.guildwars2.com/wiki/API:2/guild/upgrades">here</a><br/> Give user the access to {@link Callback#onResponse(Call, Response)} and {@link Callback#onFailure(Call, Throwable)} methods for custom interactions @param ids list of guild upgrade id @param callba...
[ "For", "more", "info", "on", "guild", "upgrades", "API", "go", "<a", "href", "=", "https", ":", "//", "wiki", ".", "guildwars2", ".", "com", "/", "wiki", "/", "API", ":", "2", "/", "guild", "/", "upgrades", ">", "here<", "/", "a", ">", "<br", "/"...
train
https://github.com/xhsun/gw2wrapper/blob/c8a43b51f363b032074fb152ee6efe657e33e525/src/main/java/me/xhsun/guildwars2wrapper/AsynchronousRequest.java#L1660-L1663
haraldk/TwelveMonkeys
imageio/imageio-pict/src/main/java/com/twelvemonkeys/imageio/plugins/pict/QuickDrawContext.java
QuickDrawContext.invertArc
public void invertArc(final Rectangle2D pRectangle, int pStartAngle, int pArcAngle) { """ InvertArc(r,int,int) // reverses the color of all pixels in the arc @param pRectangle the rectangle to invert @param pStartAngle start angle in degrees (starting from 12'o clock, this differs from Java) @param pArcAngle...
java
public void invertArc(final Rectangle2D pRectangle, int pStartAngle, int pArcAngle) { invertShape(toArc(pRectangle, pStartAngle, pArcAngle, true)); }
[ "public", "void", "invertArc", "(", "final", "Rectangle2D", "pRectangle", ",", "int", "pStartAngle", ",", "int", "pArcAngle", ")", "{", "invertShape", "(", "toArc", "(", "pRectangle", ",", "pStartAngle", ",", "pArcAngle", ",", "true", ")", ")", ";", "}" ]
InvertArc(r,int,int) // reverses the color of all pixels in the arc @param pRectangle the rectangle to invert @param pStartAngle start angle in degrees (starting from 12'o clock, this differs from Java) @param pArcAngle rotation angle in degrees (starting from {@code pStartAngle}, this differs from Java arcs)
[ "InvertArc", "(", "r", "int", "int", ")", "//", "reverses", "the", "color", "of", "all", "pixels", "in", "the", "arc" ]
train
https://github.com/haraldk/TwelveMonkeys/blob/7fad4d5cd8cb3a6728c7fd3f28a7b84d8ce0101d/imageio/imageio-pict/src/main/java/com/twelvemonkeys/imageio/plugins/pict/QuickDrawContext.java#L776-L778
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java
Annotate.annotateLater
public void annotateLater(List<JCAnnotation> annotations, Env<AttrContext> localEnv, Symbol s, DiagnosticPosition deferPos) { """ Queue annotations for later attribution and entering. This is probably the method you are looking for. @param annotations the list of JCAnnotations to attribute and enter...
java
public void annotateLater(List<JCAnnotation> annotations, Env<AttrContext> localEnv, Symbol s, DiagnosticPosition deferPos) { if (annotations.isEmpty()) { return; } s.resetAnnotations(); // mark Annotations as incomplete for now normal(() -> { //...
[ "public", "void", "annotateLater", "(", "List", "<", "JCAnnotation", ">", "annotations", ",", "Env", "<", "AttrContext", ">", "localEnv", ",", "Symbol", "s", ",", "DiagnosticPosition", "deferPos", ")", "{", "if", "(", "annotations", ".", "isEmpty", "(", ")",...
Queue annotations for later attribution and entering. This is probably the method you are looking for. @param annotations the list of JCAnnotations to attribute and enter @param localEnv the enclosing env @param s ths Symbol on which to enter the annotations @param deferPos report errors here
[ "Queue", "annotations", "for", "later", "attribution", "and", "entering", ".", "This", "is", "probably", "the", "method", "you", "are", "looking", "for", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java#L228-L277
JOML-CI/JOML
src/org/joml/Matrix4d.java
Matrix4d.setLookAlong
public Matrix4d setLookAlong(Vector3dc dir, Vector3dc up) { """ Set this matrix to a rotation transformation to make <code>-z</code> point along <code>dir</code>. <p> This is equivalent to calling {@link #setLookAt(Vector3dc, Vector3dc, Vector3dc) setLookAt()} with <code>eye = (0, 0, 0)</code> and <code>cente...
java
public Matrix4d setLookAlong(Vector3dc dir, Vector3dc up) { return setLookAlong(dir.x(), dir.y(), dir.z(), up.x(), up.y(), up.z()); }
[ "public", "Matrix4d", "setLookAlong", "(", "Vector3dc", "dir", ",", "Vector3dc", "up", ")", "{", "return", "setLookAlong", "(", "dir", ".", "x", "(", ")", ",", "dir", ".", "y", "(", ")", ",", "dir", ".", "z", "(", ")", ",", "up", ".", "x", "(", ...
Set this matrix to a rotation transformation to make <code>-z</code> point along <code>dir</code>. <p> This is equivalent to calling {@link #setLookAt(Vector3dc, Vector3dc, Vector3dc) setLookAt()} with <code>eye = (0, 0, 0)</code> and <code>center = dir</code>. <p> In order to apply the lookalong transformation to any ...
[ "Set", "this", "matrix", "to", "a", "rotation", "transformation", "to", "make", "<code", ">", "-", "z<", "/", "code", ">", "point", "along", "<code", ">", "dir<", "/", "code", ">", ".", "<p", ">", "This", "is", "equivalent", "to", "calling", "{", "@l...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix4d.java#L11017-L11019
foundation-runtime/service-directory
2.0/sd-api/src/main/java/com/cisco/oss/foundation/directory/connect/DirectoryConnection.java
DirectoryConnection.submitRequest
public Response submitRequest(ProtocolHeader h, Protocol request, WatcherRegistration wr) { """ Submit a Request. @param h the ProtocolHeader. @param request the Protocol. @param wr the WatcherRegistration @return the Response of the Request. """ Packet packet = queuePacket(h, req...
java
public Response submitRequest(ProtocolHeader h, Protocol request, WatcherRegistration wr){ Packet packet = queuePacket(h, request, null, null, null, wr); synchronized (packet) { while (!packet.finished) { try { packet.wait(); } ...
[ "public", "Response", "submitRequest", "(", "ProtocolHeader", "h", ",", "Protocol", "request", ",", "WatcherRegistration", "wr", ")", "{", "Packet", "packet", "=", "queuePacket", "(", "h", ",", "request", ",", "null", ",", "null", ",", "null", ",", "wr", "...
Submit a Request. @param h the ProtocolHeader. @param request the Protocol. @param wr the WatcherRegistration @return the Response of the Request.
[ "Submit", "a", "Request", "." ]
train
https://github.com/foundation-runtime/service-directory/blob/a7bdefe173dc99e75eff4a24e07e6407e62f2ed4/2.0/sd-api/src/main/java/com/cisco/oss/foundation/directory/connect/DirectoryConnection.java#L349-L367
davidmoten/geo
geo/src/main/java/com/github/davidmoten/geo/GeoHash.java
GeoHash.gridAsString
public static String gridAsString(String hash, int size, Set<String> highlightThese) { """ <p> Returns a String of lines of hashes to represent the relative positions of hashes on a map. The grid is of height and width 2*size centred around the given hash. Highlighted hashes are displayed in upper case. For ex...
java
public static String gridAsString(String hash, int size, Set<String> highlightThese) { return gridAsString(hash, -size, -size, size, size, highlightThese); }
[ "public", "static", "String", "gridAsString", "(", "String", "hash", ",", "int", "size", ",", "Set", "<", "String", ">", "highlightThese", ")", "{", "return", "gridAsString", "(", "hash", ",", "-", "size", ",", "-", "size", ",", "size", ",", "size", ",...
<p> Returns a String of lines of hashes to represent the relative positions of hashes on a map. The grid is of height and width 2*size centred around the given hash. Highlighted hashes are displayed in upper case. For example, gridToString("dr",1,Collections.&lt;String&gt;emptySet()) returns: </p> <pre> f0 f2 f8 dp dr...
[ "<p", ">", "Returns", "a", "String", "of", "lines", "of", "hashes", "to", "represent", "the", "relative", "positions", "of", "hashes", "on", "a", "map", ".", "The", "grid", "is", "of", "height", "and", "width", "2", "*", "size", "centred", "around", "t...
train
https://github.com/davidmoten/geo/blob/e90d2f406133cd9b60d54a3e6bdb7423d7fcce37/geo/src/main/java/com/github/davidmoten/geo/GeoHash.java#L784-L786
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/HybridRunbookWorkerGroupsInner.java
HybridRunbookWorkerGroupsInner.updateAsync
public Observable<HybridRunbookWorkerGroupInner> updateAsync(String resourceGroupName, String automationAccountName, String hybridRunbookWorkerGroupName, RunAsCredentialAssociationProperty credential) { """ Update a hybrid runbook worker group. @param resourceGroupName Name of an Azure Resource group. @param a...
java
public Observable<HybridRunbookWorkerGroupInner> updateAsync(String resourceGroupName, String automationAccountName, String hybridRunbookWorkerGroupName, RunAsCredentialAssociationProperty credential) { return updateWithServiceResponseAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName,...
[ "public", "Observable", "<", "HybridRunbookWorkerGroupInner", ">", "updateAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "String", "hybridRunbookWorkerGroupName", ",", "RunAsCredentialAssociationProperty", "credential", ")", "{", "ret...
Update a hybrid runbook worker group. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param hybridRunbookWorkerGroupName The hybrid runbook worker group name @param credential Sets the credential of a worker group. @throws IllegalArgumentExcep...
[ "Update", "a", "hybrid", "runbook", "worker", "group", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/HybridRunbookWorkerGroupsInner.java#L397-L404
alkacon/opencms-core
src/org/opencms/report/A_CmsReportThread.java
A_CmsReportThread.initOldHtmlReport
@Deprecated protected void initOldHtmlReport(Locale locale) { """ Initialize a HTML report for this Thread.<p> This method is reserved for older report threads that still use XML templates to generate their output.<p> <em>This report type will not work correctly with the new workplace, so don't use it a...
java
@Deprecated protected void initOldHtmlReport(Locale locale) { m_report = new CmsHtmlReport(locale, m_cms.getRequestContext().getSiteRoot(), true, false); }
[ "@", "Deprecated", "protected", "void", "initOldHtmlReport", "(", "Locale", "locale", ")", "{", "m_report", "=", "new", "CmsHtmlReport", "(", "locale", ",", "m_cms", ".", "getRequestContext", "(", ")", ".", "getSiteRoot", "(", ")", ",", "true", ",", "false",...
Initialize a HTML report for this Thread.<p> This method is reserved for older report threads that still use XML templates to generate their output.<p> <em>This report type will not work correctly with the new workplace, so don't use it anymore.</em> @param locale the locale for the report output messages
[ "Initialize", "a", "HTML", "report", "for", "this", "Thread", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/report/A_CmsReportThread.java#L270-L274
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/CmsPushButton.java
CmsPushButton.getFaceHtml
protected String getFaceHtml(String text, String imageClass) { """ Convenience method to assemble the HTML to use for a button face.<p> @param text text the up face text to set, set to <code>null</code> to not show any @param imageClass the up face image class to use, set to <code>null</code> to not show any ...
java
protected String getFaceHtml(String text, String imageClass) { return CmsDomUtil.createFaceHtml(text, imageClass, m_align); }
[ "protected", "String", "getFaceHtml", "(", "String", "text", ",", "String", "imageClass", ")", "{", "return", "CmsDomUtil", ".", "createFaceHtml", "(", "text", ",", "imageClass", ",", "m_align", ")", ";", "}" ]
Convenience method to assemble the HTML to use for a button face.<p> @param text text the up face text to set, set to <code>null</code> to not show any @param imageClass the up face image class to use, set to <code>null</code> to not show any @return the HTML
[ "Convenience", "method", "to", "assemble", "the", "HTML", "to", "use", "for", "a", "button", "face", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/CmsPushButton.java#L443-L446
mapbox/mapbox-java
services-geojson/src/main/java/com/mapbox/geojson/BoundingBox.java
BoundingBox.fromPoints
public static BoundingBox fromPoints(@NonNull Point southwest, @NonNull Point northeast) { """ Define a new instance of this class by passing in two {@link Point}s, representing both the southwest and northwest corners of the bounding box. @param southwest represents the bottom left corner of the bounding box ...
java
public static BoundingBox fromPoints(@NonNull Point southwest, @NonNull Point northeast) { return new BoundingBox(southwest, northeast); }
[ "public", "static", "BoundingBox", "fromPoints", "(", "@", "NonNull", "Point", "southwest", ",", "@", "NonNull", "Point", "northeast", ")", "{", "return", "new", "BoundingBox", "(", "southwest", ",", "northeast", ")", ";", "}" ]
Define a new instance of this class by passing in two {@link Point}s, representing both the southwest and northwest corners of the bounding box. @param southwest represents the bottom left corner of the bounding box when the camera is pointing due north @param northeast represents the top right corner of the bounding ...
[ "Define", "a", "new", "instance", "of", "this", "class", "by", "passing", "in", "two", "{", "@link", "Point", "}", "s", "representing", "both", "the", "southwest", "and", "northwest", "corners", "of", "the", "bounding", "box", "." ]
train
https://github.com/mapbox/mapbox-java/blob/c0be138f462f91441388584c668f3760ba0e18e2/services-geojson/src/main/java/com/mapbox/geojson/BoundingBox.java#L65-L67
HanSolo/SteelSeries-Swing
src/main/java/eu/hansolo/steelseries/gauges/AbstractRadial.java
AbstractRadial.create_GLOW_Image
protected BufferedImage create_GLOW_Image(final int WIDTH, final Color GLOW_COLOR, final boolean ON, final GaugeType GAUGE_TYPE, final boolean KNOBS, final Orientation ORIENTATION) { """ Returns an image that simulates a glowing ring which could be used to visualize a state of the gauge by a color. The LED might ...
java
protected BufferedImage create_GLOW_Image(final int WIDTH, final Color GLOW_COLOR, final boolean ON, final GaugeType GAUGE_TYPE, final boolean KNOBS, final Orientation ORIENTATION) { switch (getFrameType()) { case ROUND: return GLOW_FACTORY.createRadialGlow(WIDTH, GLOW_COLOR, ON, GAU...
[ "protected", "BufferedImage", "create_GLOW_Image", "(", "final", "int", "WIDTH", ",", "final", "Color", "GLOW_COLOR", ",", "final", "boolean", "ON", ",", "final", "GaugeType", "GAUGE_TYPE", ",", "final", "boolean", "KNOBS", ",", "final", "Orientation", "ORIENTATIO...
Returns an image that simulates a glowing ring which could be used to visualize a state of the gauge by a color. The LED might be too small if you are not in front of the screen and so one could see the current state more easy. @param WIDTH @param GLOW_COLOR @param ON @param GAUGE_TYPE @param KNOBS @param ORIENTATION @...
[ "Returns", "an", "image", "that", "simulates", "a", "glowing", "ring", "which", "could", "be", "used", "to", "visualize", "a", "state", "of", "the", "gauge", "by", "a", "color", ".", "The", "LED", "might", "be", "too", "small", "if", "you", "are", "not...
train
https://github.com/HanSolo/SteelSeries-Swing/blob/c2f7b45a477757ef21bbb6a1174ddedb2250ae57/src/main/java/eu/hansolo/steelseries/gauges/AbstractRadial.java#L1393-L1402
Alluxio/alluxio
core/server/worker/src/main/java/alluxio/worker/block/meta/StorageDir.java
StorageDir.cleanupSessionTempBlocks
public void cleanupSessionTempBlocks(long sessionId, List<Long> tempBlockIds) { """ Cleans up the temp block metadata for each block id passed in. @param sessionId the id of the client associated with the temporary blocks @param tempBlockIds the list of temporary blocks to clean up, non temporary blocks or no...
java
public void cleanupSessionTempBlocks(long sessionId, List<Long> tempBlockIds) { Set<Long> sessionTempBlocks = mSessionIdToTempBlockIdsMap.get(sessionId); // The session's temporary blocks have already been removed. if (sessionTempBlocks == null) { return; } for (Long tempBlockId : tempBlockIds...
[ "public", "void", "cleanupSessionTempBlocks", "(", "long", "sessionId", ",", "List", "<", "Long", ">", "tempBlockIds", ")", "{", "Set", "<", "Long", ">", "sessionTempBlocks", "=", "mSessionIdToTempBlockIdsMap", ".", "get", "(", "sessionId", ")", ";", "// The ses...
Cleans up the temp block metadata for each block id passed in. @param sessionId the id of the client associated with the temporary blocks @param tempBlockIds the list of temporary blocks to clean up, non temporary blocks or nonexistent blocks will be ignored
[ "Cleans", "up", "the", "temp", "block", "metadata", "for", "each", "block", "id", "passed", "in", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/server/worker/src/main/java/alluxio/worker/block/meta/StorageDir.java#L390-L417
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/internal/serialization/impl/PortablePositionNavigator.java
PortablePositionNavigator.navigateToPathTokenWithoutQuantifier
private static PortablePosition navigateToPathTokenWithoutQuantifier( PortableNavigatorContext ctx, PortablePathCursor path) throws IOException { """ Token without quantifier. It means it's just a simple field, not an array. """ if (path.isLastToken()) { // if it's a token that'...
java
private static PortablePosition navigateToPathTokenWithoutQuantifier( PortableNavigatorContext ctx, PortablePathCursor path) throws IOException { if (path.isLastToken()) { // if it's a token that's on the last position we calculate its direct access position and return it for ...
[ "private", "static", "PortablePosition", "navigateToPathTokenWithoutQuantifier", "(", "PortableNavigatorContext", "ctx", ",", "PortablePathCursor", "path", ")", "throws", "IOException", "{", "if", "(", "path", ".", "isLastToken", "(", ")", ")", "{", "// if it's a token ...
Token without quantifier. It means it's just a simple field, not an array.
[ "Token", "without", "quantifier", ".", "It", "means", "it", "s", "just", "a", "simple", "field", "not", "an", "array", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/internal/serialization/impl/PortablePositionNavigator.java#L170-L187
cucumber/cucumber-jvm
core/src/main/java/cucumber/runtime/formatter/Plugins.java
Plugins.pluginProxy
private <T> T pluginProxy(final Class<T> type) { """ Creates a dynamic proxy that multiplexes method invocations to all plugins of the same type. @param type proxy type @param <T> generic proxy type @return a proxy """ Object proxy = Proxy.newProxyInstance(classLoader, new Class<?>[]{type}, new I...
java
private <T> T pluginProxy(final Class<T> type) { Object proxy = Proxy.newProxyInstance(classLoader, new Class<?>[]{type}, new InvocationHandler() { @Override public Object invoke(Object target, Method method, Object[] args) throws Throwable { for (Object plugin : getPlugi...
[ "private", "<", "T", ">", "T", "pluginProxy", "(", "final", "Class", "<", "T", ">", "type", ")", "{", "Object", "proxy", "=", "Proxy", ".", "newProxyInstance", "(", "classLoader", ",", "new", "Class", "<", "?", ">", "[", "]", "{", "type", "}", ",",...
Creates a dynamic proxy that multiplexes method invocations to all plugins of the same type. @param type proxy type @param <T> generic proxy type @return a proxy
[ "Creates", "a", "dynamic", "proxy", "that", "multiplexes", "method", "invocations", "to", "all", "plugins", "of", "the", "same", "type", "." ]
train
https://github.com/cucumber/cucumber-jvm/blob/437bb3a1f1d91b56f44059c835765b395eefc777/core/src/main/java/cucumber/runtime/formatter/Plugins.java#L124-L144
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/StorageAccountCredentialsInner.java
StorageAccountCredentialsInner.createOrUpdate
public StorageAccountCredentialInner createOrUpdate(String deviceName, String name, String resourceGroupName, StorageAccountCredentialInner storageAccountCredential) { """ Creates or updates the storage account credential. @param deviceName The device name. @param name The storage account credential name. @pa...
java
public StorageAccountCredentialInner createOrUpdate(String deviceName, String name, String resourceGroupName, StorageAccountCredentialInner storageAccountCredential) { return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, storageAccountCredential).toBlocking().last().body(); }
[ "public", "StorageAccountCredentialInner", "createOrUpdate", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ",", "StorageAccountCredentialInner", "storageAccountCredential", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "...
Creates or updates the storage account credential. @param deviceName The device name. @param name The storage account credential name. @param resourceGroupName The resource group name. @param storageAccountCredential The storage account credential. @throws IllegalArgumentException thrown if parameters fail the validat...
[ "Creates", "or", "updates", "the", "storage", "account", "credential", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/StorageAccountCredentialsInner.java#L322-L324
nats-io/java-nats
src/main/java/io/nats/client/Nats.java
Nats.connectAsynchronously
public static void connectAsynchronously(Options options, boolean reconnectOnConnect) throws InterruptedException { """ Try to connect in another thread, a connection listener is required to get the connection. <p>Normally connect will loop through the available servers one time. If reconnectOnCon...
java
public static void connectAsynchronously(Options options, boolean reconnectOnConnect) throws InterruptedException { if (options.getConnectionListener() == null) { throw new IllegalArgumentException("Connection Listener required in connectAsynchronously"); } Thread t = n...
[ "public", "static", "void", "connectAsynchronously", "(", "Options", "options", ",", "boolean", "reconnectOnConnect", ")", "throws", "InterruptedException", "{", "if", "(", "options", ".", "getConnectionListener", "(", ")", "==", "null", ")", "{", "throw", "new", ...
Try to connect in another thread, a connection listener is required to get the connection. <p>Normally connect will loop through the available servers one time. If reconnectOnConnect is true, the connection attempt will repeat based on the settings in options, including indefinitely. <p>If there is an exception befor...
[ "Try", "to", "connect", "in", "another", "thread", "a", "connection", "listener", "is", "required", "to", "get", "the", "connection", "." ]
train
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/Nats.java#L171-L189
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XFactory.java
XFactory.createXMethod
public static XMethod createXMethod(JavaClass javaClass, Method method) { """ Create an XMethod object from a BCEL Method. @param javaClass the class to which the Method belongs @param method the Method @return an XMethod representing the Method """ if (method == null) { throw new Nu...
java
public static XMethod createXMethod(JavaClass javaClass, Method method) { if (method == null) { throw new NullPointerException("method must not be null"); } XMethod xmethod = createXMethod(javaClass.getClassName(), method); assert xmethod.isResolved(); return xmethod;...
[ "public", "static", "XMethod", "createXMethod", "(", "JavaClass", "javaClass", ",", "Method", "method", ")", "{", "if", "(", "method", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"method must not be null\"", ")", ";", "}", "XMethod", ...
Create an XMethod object from a BCEL Method. @param javaClass the class to which the Method belongs @param method the Method @return an XMethod representing the Method
[ "Create", "an", "XMethod", "object", "from", "a", "BCEL", "Method", "." ]
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XFactory.java#L280-L287
Whiley/WhileyCompiler
src/main/java/wyc/io/WhileyFileParser.java
WhileyFileParser.parseBitwiseXorExpression
private Expr parseBitwiseXorExpression(EnclosingScope scope, boolean terminated) { """ Parse an bitwise "exclusive or" expression @param scope The enclosing scope for this statement, which determines the set of visible (i.e. declared) variables and also the current indentation level. @param terminated This...
java
private Expr parseBitwiseXorExpression(EnclosingScope scope, boolean terminated) { int start = index; Expr lhs = parseBitwiseAndExpression(scope, terminated); if (tryAndMatch(terminated, Caret) != null) { Expr rhs = parseExpression(scope, terminated); return annotateSourceLocation(new Expr.BitwiseXor(Type....
[ "private", "Expr", "parseBitwiseXorExpression", "(", "EnclosingScope", "scope", ",", "boolean", "terminated", ")", "{", "int", "start", "=", "index", ";", "Expr", "lhs", "=", "parseBitwiseAndExpression", "(", "scope", ",", "terminated", ")", ";", "if", "(", "t...
Parse an bitwise "exclusive or" expression @param scope The enclosing scope for this statement, which determines the set of visible (i.e. declared) variables and also the current indentation level. @param terminated This indicates that the expression is known to be terminated (or not). An expression that's known to be...
[ "Parse", "an", "bitwise", "exclusive", "or", "expression" ]
train
https://github.com/Whiley/WhileyCompiler/blob/680f8a657d3fc286f8cc422755988b6d74ab3f4c/src/main/java/wyc/io/WhileyFileParser.java#L1790-L1800
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java
RDBMUserLayoutStore.getLayoutId
private int getLayoutId(final IPerson person, final IUserProfile profile) { """ /* The code currently only supports one instantiated/saved layout for a user's set of profiles. If the layout hasn't been instantiated/saved for a user the layout id will be zero for all the profiles and if it has been saved it wil...
java
private int getLayoutId(final IPerson person, final IUserProfile profile) { final Hashtable<Integer, UserProfile> profiles = getUserProfileList(person); int layoutId = profile.getLayoutId(); Set<Integer> layoutIds = getAllNonZeroLayoutIdsFromProfiles(profiles.values()); if (!layoutIds.is...
[ "private", "int", "getLayoutId", "(", "final", "IPerson", "person", ",", "final", "IUserProfile", "profile", ")", "{", "final", "Hashtable", "<", "Integer", ",", "UserProfile", ">", "profiles", "=", "getUserProfileList", "(", "person", ")", ";", "int", "layout...
/* The code currently only supports one instantiated/saved layout for a user's set of profiles. If the layout hasn't been instantiated/saved for a user the layout id will be zero for all the profiles and if it has been saved it will be one. When more than one layout becomes supported, this logic will need to be rework...
[ "/", "*", "The", "code", "currently", "only", "supports", "one", "instantiated", "/", "saved", "layout", "for", "a", "user", "s", "set", "of", "profiles", ".", "If", "the", "layout", "hasn", "t", "been", "instantiated", "/", "saved", "for", "a", "user", ...
train
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java#L283-L295
google/closure-compiler
src/com/google/javascript/rhino/jstype/JSType.java
JSType.findPropertyType
@Nullable public final JSType findPropertyType(String propertyName) { """ Coerces this type to an Object type, then gets the type of the property whose name is given. <p>Unlike {@link ObjectType#getPropertyType}, returns null if the property is not found. @return The property's type. {@code null} if the cu...
java
@Nullable public final JSType findPropertyType(String propertyName) { @Nullable JSType propertyType = findPropertyTypeWithoutConsideringTemplateTypes(propertyName); if (propertyType == null) { return null; } // Do templatized type replacing logic here, and make this method final, to prevent a s...
[ "@", "Nullable", "public", "final", "JSType", "findPropertyType", "(", "String", "propertyName", ")", "{", "@", "Nullable", "JSType", "propertyType", "=", "findPropertyTypeWithoutConsideringTemplateTypes", "(", "propertyName", ")", ";", "if", "(", "propertyType", "=="...
Coerces this type to an Object type, then gets the type of the property whose name is given. <p>Unlike {@link ObjectType#getPropertyType}, returns null if the property is not found. @return The property's type. {@code null} if the current type cannot have properties, or if the type is not found.
[ "Coerces", "this", "type", "to", "an", "Object", "type", "then", "gets", "the", "type", "of", "the", "property", "whose", "name", "is", "given", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/rhino/jstype/JSType.java#L883-L899
apache/incubator-druid
extensions-core/druid-bloom-filter/src/main/java/org/apache/druid/query/filter/BloomKFilter.java
BloomKFilter.addString
public static void addString(ByteBuffer buffer, String val) { """ ByteBuffer based copy of {@link BloomKFilter#addString(String)} that adds a value to the ByteBuffer in place. """ addBytes(buffer, StringUtils.toUtf8(val)); }
java
public static void addString(ByteBuffer buffer, String val) { addBytes(buffer, StringUtils.toUtf8(val)); }
[ "public", "static", "void", "addString", "(", "ByteBuffer", "buffer", ",", "String", "val", ")", "{", "addBytes", "(", "buffer", ",", "StringUtils", ".", "toUtf8", "(", "val", ")", ")", ";", "}" ]
ByteBuffer based copy of {@link BloomKFilter#addString(String)} that adds a value to the ByteBuffer in place.
[ "ByteBuffer", "based", "copy", "of", "{" ]
train
https://github.com/apache/incubator-druid/blob/f776b9408962b9006cfcfe4d6c1794751972cc8e/extensions-core/druid-bloom-filter/src/main/java/org/apache/druid/query/filter/BloomKFilter.java#L430-L433
fcrepo3/fcrepo
fcrepo-server/src/main/java/org/fcrepo/server/journal/readerwriter/multifile/JournalOutputFile.java
JournalOutputFile.createFilename
private File createFilename(String filenamePrefix, File journalDirectory) throws JournalException { """ Create a <code>File</code> object with the name of this Journal file. Check to be sure that no such file already exists. """ String filename = JournalHelper.createTimesta...
java
private File createFilename(String filenamePrefix, File journalDirectory) throws JournalException { String filename = JournalHelper.createTimestampedFilename(filenamePrefix, new Date()); File theFile = new File(journalDi...
[ "private", "File", "createFilename", "(", "String", "filenamePrefix", ",", "File", "journalDirectory", ")", "throws", "JournalException", "{", "String", "filename", "=", "JournalHelper", ".", "createTimestampedFilename", "(", "filenamePrefix", ",", "new", "Date", "(",...
Create a <code>File</code> object with the name of this Journal file. Check to be sure that no such file already exists.
[ "Create", "a", "<code", ">", "File<", "/", "code", ">", "object", "with", "the", "name", "of", "this", "Journal", "file", ".", "Check", "to", "be", "sure", "that", "no", "such", "file", "already", "exists", "." ]
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-server/src/main/java/org/fcrepo/server/journal/readerwriter/multifile/JournalOutputFile.java#L113-L126
beanshell/beanshell
src/main/java/bsh/BshClassManager.java
BshClassManager.cacheClassInfo
public void cacheClassInfo( String name, Class<?> value ) { """ Cache info about whether name is a class or not. @param value if value is non-null, cache the class if value is null, set the flag that it is *not* a class to speed later resolution """ if ( value != null ) { absoluteClassC...
java
public void cacheClassInfo( String name, Class<?> value ) { if ( value != null ) { absoluteClassCache.put(name, value); // eagerly start the member cache memberCache.init(value); } else absoluteNonClasses.add( name ); }
[ "public", "void", "cacheClassInfo", "(", "String", "name", ",", "Class", "<", "?", ">", "value", ")", "{", "if", "(", "value", "!=", "null", ")", "{", "absoluteClassCache", ".", "put", "(", "name", ",", "value", ")", ";", "// eagerly start the member cache...
Cache info about whether name is a class or not. @param value if value is non-null, cache the class if value is null, set the flag that it is *not* a class to speed later resolution
[ "Cache", "info", "about", "whether", "name", "is", "a", "class", "or", "not", "." ]
train
https://github.com/beanshell/beanshell/blob/fdddee3de948c9e6babb2d1337028f6fd0a2ba5c/src/main/java/bsh/BshClassManager.java#L498-L506
VoltDB/voltdb
src/frontend/org/voltdb/exportclient/ExportEncoder.java
ExportEncoder.encodeGeography
static public void encodeGeography(final FastSerializer fs, GeographyValue value) throws IOException { """ Encode a GEOGRAPHY according to the Export encoding specification. @param fs The serializer to serialize to @throws IOException """ ByteBuffer bb = ByteBuffer.allocate(value.getLengthInBy...
java
static public void encodeGeography(final FastSerializer fs, GeographyValue value) throws IOException { ByteBuffer bb = ByteBuffer.allocate(value.getLengthInBytes()); bb.order(ByteOrder.nativeOrder()); value.flattenToBuffer(bb); byte[] array = bb.array(); fs.writeInt(array.le...
[ "static", "public", "void", "encodeGeography", "(", "final", "FastSerializer", "fs", ",", "GeographyValue", "value", ")", "throws", "IOException", "{", "ByteBuffer", "bb", "=", "ByteBuffer", ".", "allocate", "(", "value", ".", "getLengthInBytes", "(", ")", ")", ...
Encode a GEOGRAPHY according to the Export encoding specification. @param fs The serializer to serialize to @throws IOException
[ "Encode", "a", "GEOGRAPHY", "according", "to", "the", "Export", "encoding", "specification", "." ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/exportclient/ExportEncoder.java#L334-L343
wmdietl/jsr308-langtools
src/share/classes/com/sun/tools/javac/comp/Resolve.java
Resolve.resolveDiamond
Symbol resolveDiamond(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes) { """ Resolve constructor using diamond inference. @param pos T...
java
Symbol resolveDiamond(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes) { return lookupMethod(env, pos, site.tsym, resolveMethodCheck, ...
[ "Symbol", "resolveDiamond", "(", "DiagnosticPosition", "pos", ",", "Env", "<", "AttrContext", ">", "env", ",", "Type", "site", ",", "List", "<", "Type", ">", "argtypes", ",", "List", "<", "Type", ">", "typeargtypes", ")", "{", "return", "lookupMethod", "("...
Resolve constructor using diamond inference. @param pos The position to use for error reporting. @param env The environment current at the constructor invocation. @param site The type of class for which a constructor is searched. The scope of this class has been touched in attribution. @param argtypes ...
[ "Resolve", "constructor", "using", "diamond", "inference", "." ]
train
https://github.com/wmdietl/jsr308-langtools/blob/8812d28c20f4de070a0dd6de1b45602431379834/src/share/classes/com/sun/tools/javac/comp/Resolve.java#L2586-L2625
hpsa/hpe-application-automation-tools-plugin
src/main/java/com/hp/application/automation/tools/model/RunFromFileSystemModel.java
RunFromFileSystemModel.getJobDetails
public JSONObject getJobDetails(String mcUrl, String proxyAddress, String proxyUserName, String proxyPassword) { """ Get proxy details json object. @param mcUrl the mc url @param proxyAddress the proxy address @param proxyUserName the proxy user name @param proxyPassword the proxy password @return ...
java
public JSONObject getJobDetails(String mcUrl, String proxyAddress, String proxyUserName, String proxyPassword){ if(StringUtils.isBlank(fsUserName) || StringUtils.isBlank(fsPassword.getPlainText())){ return null; } return JobConfigurationProxy.getInstance().getJobById(mcUrl, fsUserNam...
[ "public", "JSONObject", "getJobDetails", "(", "String", "mcUrl", ",", "String", "proxyAddress", ",", "String", "proxyUserName", ",", "String", "proxyPassword", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "fsUserName", ")", "||", "StringUtils", ".", ...
Get proxy details json object. @param mcUrl the mc url @param proxyAddress the proxy address @param proxyUserName the proxy user name @param proxyPassword the proxy password @return the json object
[ "Get", "proxy", "details", "json", "object", "." ]
train
https://github.com/hpsa/hpe-application-automation-tools-plugin/blob/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/java/com/hp/application/automation/tools/model/RunFromFileSystemModel.java#L646-L651
Nexmo/nexmo-java
src/main/java/com/nexmo/client/auth/MD5Util.java
MD5Util.calculateMd5
public static String calculateMd5(String input, String encoding) throws NoSuchAlgorithmException, UnsupportedEncodingException { """ Calculates MD5 hash for string. @param input string which is going to be encoded into MD5 format @param encoding character encoding of the string which is going to be encoded into ...
java
public static String calculateMd5(String input, String encoding) throws NoSuchAlgorithmException, UnsupportedEncodingException { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(input.getBytes(encoding)); byte digest[] = md.digest(); final StringBuilder hexString = new Str...
[ "public", "static", "String", "calculateMd5", "(", "String", "input", ",", "String", "encoding", ")", "throws", "NoSuchAlgorithmException", ",", "UnsupportedEncodingException", "{", "MessageDigest", "md", "=", "MessageDigest", ".", "getInstance", "(", "\"MD5\"", ")", ...
Calculates MD5 hash for string. @param input string which is going to be encoded into MD5 format @param encoding character encoding of the string which is going to be encoded into MD5 format @return MD5 representation of the input string @throws NoSuchAlgorithmException if the MD5 algorithm is not available. @throws U...
[ "Calculates", "MD5", "hash", "for", "string", "." ]
train
https://github.com/Nexmo/nexmo-java/blob/7427eff6d6baa5a5bd9197fa096bcf2564191cf5/src/main/java/com/nexmo/client/auth/MD5Util.java#L58-L72
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/endpoint/util/ByteBufJsonHelper.java
ByteBufJsonHelper.findSectionClosingPosition
public static int findSectionClosingPosition(ByteBuf buf, char openingChar, char closingChar) { """ Finds the position of the correct closing character, taking into account the fact that before the correct one, other sub section with same opening and closing characters can be encountered. This implementation s...
java
public static int findSectionClosingPosition(ByteBuf buf, char openingChar, char closingChar) { return buf.forEachByte(new ClosingPositionBufProcessor(openingChar, closingChar, true)); }
[ "public", "static", "int", "findSectionClosingPosition", "(", "ByteBuf", "buf", ",", "char", "openingChar", ",", "char", "closingChar", ")", "{", "return", "buf", ".", "forEachByte", "(", "new", "ClosingPositionBufProcessor", "(", "openingChar", ",", "closingChar", ...
Finds the position of the correct closing character, taking into account the fact that before the correct one, other sub section with same opening and closing characters can be encountered. This implementation starts for the current {@link ByteBuf#readerIndex() readerIndex}. @param buf the {@link ByteBuf} where to se...
[ "Finds", "the", "position", "of", "the", "correct", "closing", "character", "taking", "into", "account", "the", "fact", "that", "before", "the", "correct", "one", "other", "sub", "section", "with", "same", "opening", "and", "closing", "characters", "can", "be"...
train
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/endpoint/util/ByteBufJsonHelper.java#L90-L92
hibernate/hibernate-ogm
core/src/main/java/org/hibernate/ogm/util/impl/ReflectionHelper.java
ReflectionHelper.propertyExists
public static boolean propertyExists(Class<?> clazz, String property, ElementType elementType) { """ Whether the specified JavaBeans property exists on the given type or not. @param clazz the type of interest @param property the JavaBeans property name @param elementType the element type to check, must be eit...
java
public static boolean propertyExists(Class<?> clazz, String property, ElementType elementType) { if ( ElementType.FIELD.equals( elementType ) ) { return getDeclaredField( clazz, property ) != null; } else { String capitalizedPropertyName = capitalize( property ); Method method = getMethod( clazz, PROPER...
[ "public", "static", "boolean", "propertyExists", "(", "Class", "<", "?", ">", "clazz", ",", "String", "property", ",", "ElementType", "elementType", ")", "{", "if", "(", "ElementType", ".", "FIELD", ".", "equals", "(", "elementType", ")", ")", "{", "return...
Whether the specified JavaBeans property exists on the given type or not. @param clazz the type of interest @param property the JavaBeans property name @param elementType the element type to check, must be either {@link ElementType#FIELD} or {@link ElementType#METHOD}. @return {@code true} if the specified property ex...
[ "Whether", "the", "specified", "JavaBeans", "property", "exists", "on", "the", "given", "type", "or", "not", "." ]
train
https://github.com/hibernate/hibernate-ogm/blob/9ea971df7c27277029006a6f748d8272fb1d69d2/core/src/main/java/org/hibernate/ogm/util/impl/ReflectionHelper.java#L65-L84
wmdietl/jsr308-langtools
src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java
AbstractDoclet.generateClassFiles
protected void generateClassFiles(RootDoc root, ClassTree classtree) { """ Iterate through all classes and construct documentation for them. @param root the RootDoc of source to document. @param classtree the data structure representing the class tree. """ generateClassFiles(classtree); ...
java
protected void generateClassFiles(RootDoc root, ClassTree classtree) { generateClassFiles(classtree); PackageDoc[] packages = root.specifiedPackages(); for (int i = 0; i < packages.length; i++) { generateClassFiles(packages[i].allClasses(), classtree); } }
[ "protected", "void", "generateClassFiles", "(", "RootDoc", "root", ",", "ClassTree", "classtree", ")", "{", "generateClassFiles", "(", "classtree", ")", ";", "PackageDoc", "[", "]", "packages", "=", "root", ".", "specifiedPackages", "(", ")", ";", "for", "(", ...
Iterate through all classes and construct documentation for them. @param root the RootDoc of source to document. @param classtree the data structure representing the class tree.
[ "Iterate", "through", "all", "classes", "and", "construct", "documentation", "for", "them", "." ]
train
https://github.com/wmdietl/jsr308-langtools/blob/8812d28c20f4de070a0dd6de1b45602431379834/src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java#L190-L196
zeromq/jeromq
src/main/java/zmq/util/Timers.java
Timers.setInterval
@Deprecated public boolean setInterval(Timer timer, long interval) { """ Changes the interval of the timer. This method is slow, canceling existing and adding a new timer yield better performance. @param timer the timer to change the interval to. @return true if set, otherwise false. @deprecated use {@link...
java
@Deprecated public boolean setInterval(Timer timer, long interval) { assert (timer.parent == this); return timer.setInterval(interval); }
[ "@", "Deprecated", "public", "boolean", "setInterval", "(", "Timer", "timer", ",", "long", "interval", ")", "{", "assert", "(", "timer", ".", "parent", "==", "this", ")", ";", "return", "timer", ".", "setInterval", "(", "interval", ")", ";", "}" ]
Changes the interval of the timer. This method is slow, canceling existing and adding a new timer yield better performance. @param timer the timer to change the interval to. @return true if set, otherwise false. @deprecated use {@link Timer#setInterval(long)} instead
[ "Changes", "the", "interval", "of", "the", "timer", ".", "This", "method", "is", "slow", "canceling", "existing", "and", "adding", "a", "new", "timer", "yield", "better", "performance", "." ]
train
https://github.com/zeromq/jeromq/blob/8b4a2960b468d08b7aebb0d40bfb947e08fed040/src/main/java/zmq/util/Timers.java#L139-L144
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/type/TypeAnalysis.java
TypeAnalysis.getCachedExceptionSet
private CachedExceptionSet getCachedExceptionSet(BasicBlock basicBlock) { """ Get the cached set of exceptions that can be thrown from given basic block. If this information hasn't been computed yet, then an empty exception set is returned. @param basicBlock the block to get the cached exception set for @re...
java
private CachedExceptionSet getCachedExceptionSet(BasicBlock basicBlock) { CachedExceptionSet cachedExceptionSet = thrownExceptionSetMap.get(basicBlock); if (cachedExceptionSet == null) { // When creating the cached exception type set for the first time: // - the block result is s...
[ "private", "CachedExceptionSet", "getCachedExceptionSet", "(", "BasicBlock", "basicBlock", ")", "{", "CachedExceptionSet", "cachedExceptionSet", "=", "thrownExceptionSetMap", ".", "get", "(", "basicBlock", ")", ";", "if", "(", "cachedExceptionSet", "==", "null", ")", ...
Get the cached set of exceptions that can be thrown from given basic block. If this information hasn't been computed yet, then an empty exception set is returned. @param basicBlock the block to get the cached exception set for @return the CachedExceptionSet for the block
[ "Get", "the", "cached", "set", "of", "exceptions", "that", "can", "be", "thrown", "from", "given", "basic", "block", ".", "If", "this", "information", "hasn", "t", "been", "computed", "yet", "then", "an", "empty", "exception", "set", "is", "returned", "." ...
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/type/TypeAnalysis.java#L697-L715
apache/incubator-shardingsphere
sharding-core/sharding-core-parse/sharding-core-parse-common/src/main/java/org/apache/shardingsphere/core/parse/old/parser/dialect/ExpressionParserFactory.java
ExpressionParserFactory.createAliasExpressionParser
public static AliasExpressionParser createAliasExpressionParser(final LexerEngine lexerEngine) { """ Create alias parser instance. @param lexerEngine lexical analysis engine. @return alias parser instance """ switch (lexerEngine.getDatabaseType()) { case H2: return new M...
java
public static AliasExpressionParser createAliasExpressionParser(final LexerEngine lexerEngine) { switch (lexerEngine.getDatabaseType()) { case H2: return new MySQLAliasExpressionParser(lexerEngine); case MySQL: return new MySQLAliasExpressionParser(lexerEn...
[ "public", "static", "AliasExpressionParser", "createAliasExpressionParser", "(", "final", "LexerEngine", "lexerEngine", ")", "{", "switch", "(", "lexerEngine", ".", "getDatabaseType", "(", ")", ")", "{", "case", "H2", ":", "return", "new", "MySQLAliasExpressionParser"...
Create alias parser instance. @param lexerEngine lexical analysis engine. @return alias parser instance
[ "Create", "alias", "parser", "instance", "." ]
train
https://github.com/apache/incubator-shardingsphere/blob/f88fd29fc345dfb31fdce12e9e96cbfa0fd2402d/sharding-core/sharding-core-parse/sharding-core-parse-common/src/main/java/org/apache/shardingsphere/core/parse/old/parser/dialect/ExpressionParserFactory.java#L44-L59
kohsuke/args4j
args4j/src/org/kohsuke/args4j/CmdLineParser.java
CmdLineParser.registerHandler
public static void registerHandler( Class valueType, Class<? extends OptionHandler> handlerClass ) { """ Registers a user-defined {@link OptionHandler} class with args4j. <p> This method allows users to extend the behavior of args4j by writing their own {@link OptionHandler} implementation. @param valueTyp...
java
public static void registerHandler( Class valueType, Class<? extends OptionHandler> handlerClass ) { checkNonNull(valueType, "valueType"); checkNonNull(handlerClass, "handlerClass"); OptionHandlerRegistry.getRegistry().registerHandler(valueType, handlerClass); }
[ "public", "static", "void", "registerHandler", "(", "Class", "valueType", ",", "Class", "<", "?", "extends", "OptionHandler", ">", "handlerClass", ")", "{", "checkNonNull", "(", "valueType", ",", "\"valueType\"", ")", ";", "checkNonNull", "(", "handlerClass", ",...
Registers a user-defined {@link OptionHandler} class with args4j. <p> This method allows users to extend the behavior of args4j by writing their own {@link OptionHandler} implementation. @param valueType The specified handler is used when the field/method annotated by {@link Option} is of this type. @param handlerCla...
[ "Registers", "a", "user", "-", "defined", "{", "@link", "OptionHandler", "}", "class", "with", "args4j", "." ]
train
https://github.com/kohsuke/args4j/blob/dc2e7e265caf15a1a146e3389c1f16a8781f06cf/args4j/src/org/kohsuke/args4j/CmdLineParser.java#L698-L703
spotify/helios
helios-services/src/main/java/com/spotify/helios/master/ZooKeeperMasterModel.java
ZooKeeperMasterModel.forceRollingUpdateUndeploy
private RollingUpdateOp forceRollingUpdateUndeploy(final ZooKeeperClient client, final RollingUpdateOpFactory opFactory, final DeploymentGroup deploymentGroup, f...
java
private RollingUpdateOp forceRollingUpdateUndeploy(final ZooKeeperClient client, final RollingUpdateOpFactory opFactory, final DeploymentGroup deploymentGroup, f...
[ "private", "RollingUpdateOp", "forceRollingUpdateUndeploy", "(", "final", "ZooKeeperClient", "client", ",", "final", "RollingUpdateOpFactory", "opFactory", ",", "final", "DeploymentGroup", "deploymentGroup", ",", "final", "String", "host", ")", "{", "return", "rollingUpda...
forceRollingUpdateUndeploy is used to undeploy jobs from hosts that have been removed from the deployment group. It disables the 'skipRedundantUndeploys' flag, which disables the redundantDeployment() check.
[ "forceRollingUpdateUndeploy", "is", "used", "to", "undeploy", "jobs", "from", "hosts", "that", "have", "been", "removed", "from", "the", "deployment", "group", ".", "It", "disables", "the", "skipRedundantUndeploys", "flag", "which", "disables", "the", "redundantDepl...
train
https://github.com/spotify/helios/blob/c9000bc1d6908651570be8b057d4981bba4df5b4/helios-services/src/main/java/com/spotify/helios/master/ZooKeeperMasterModel.java#L1125-L1130
bazaarvoice/emodb
mapreduce/sor-hadoop/src/main/java/com/bazaarvoice/emodb/hadoop/io/HadoopDataStoreManager.java
HadoopDataStoreManager.getDataStore
public CloseableDataStore getDataStore(URI location, String apiKey, MetricRegistry metricRegistry) throws IOException { """ Returns a DataStore for a given location. If a cached instance already exists its reference count is incremented and returned, otherwise a new instance is created and cached. ...
java
public CloseableDataStore getDataStore(URI location, String apiKey, MetricRegistry metricRegistry) throws IOException { String id = LocationUtil.getDataStoreIdentifier(location, apiKey); CloseableDataStore dataStore = null; while (dataStore == null) { // Get the cached Da...
[ "public", "CloseableDataStore", "getDataStore", "(", "URI", "location", ",", "String", "apiKey", ",", "MetricRegistry", "metricRegistry", ")", "throws", "IOException", "{", "String", "id", "=", "LocationUtil", ".", "getDataStoreIdentifier", "(", "location", ",", "ap...
Returns a DataStore for a given location. If a cached instance already exists its reference count is incremented and returned, otherwise a new instance is created and cached.
[ "Returns", "a", "DataStore", "for", "a", "given", "location", ".", "If", "a", "cached", "instance", "already", "exists", "its", "reference", "count", "is", "incremented", "and", "returned", "otherwise", "a", "new", "instance", "is", "created", "and", "cached",...
train
https://github.com/bazaarvoice/emodb/blob/97ec7671bc78b47fc2a1c11298c0c872bd5ec7fb/mapreduce/sor-hadoop/src/main/java/com/bazaarvoice/emodb/hadoop/io/HadoopDataStoreManager.java#L61-L96
greenmail-mail-test/greenmail
greenmail-core/src/main/java/com/icegreen/greenmail/util/GreenMailUtil.java
GreenMailUtil.getSession
public static Session getSession(final ServerSetup setup, Properties mailProps) { """ Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail. @param setup the setup type, such as <code>ServerSetup.IMAP</code> @param mailProps additional mail properties. @return the Ja...
java
public static Session getSession(final ServerSetup setup, Properties mailProps) { Properties props = setup.configureJavaMailSessionProperties(mailProps, false); log.debug("Mail session properties are {}", props); return Session.getInstance(props, null); }
[ "public", "static", "Session", "getSession", "(", "final", "ServerSetup", "setup", ",", "Properties", "mailProps", ")", "{", "Properties", "props", "=", "setup", ".", "configureJavaMailSessionProperties", "(", "mailProps", ",", "false", ")", ";", "log", ".", "de...
Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail. @param setup the setup type, such as <code>ServerSetup.IMAP</code> @param mailProps additional mail properties. @return the JavaMail session.
[ "Gets", "a", "JavaMail", "Session", "for", "given", "server", "type", "such", "as", "IMAP", "and", "additional", "props", "for", "JavaMail", "." ]
train
https://github.com/greenmail-mail-test/greenmail/blob/6d19a62233d1ef6fedbbd1f6fdde2d28e713834a/greenmail-core/src/main/java/com/icegreen/greenmail/util/GreenMailUtil.java#L377-L383
snowflakedb/snowflake-jdbc
src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java
SnowflakeFileTransferAgent.throwJCEMissingError
public static void throwJCEMissingError(String operation, Exception ex) throws SnowflakeSQLException { """ /* Handles an InvalidKeyException which indicates that the JCE component is not installed properly @param operation a string indicating the the operation type, e.g. upload/download @param ex The excepti...
java
public static void throwJCEMissingError(String operation, Exception ex) throws SnowflakeSQLException { // Most likely cause: Unlimited strength policy files not installed String msg = "Strong encryption with Java JRE requires JCE " + "Unlimited Strength Jurisdiction Policy files. " + ...
[ "public", "static", "void", "throwJCEMissingError", "(", "String", "operation", ",", "Exception", "ex", ")", "throws", "SnowflakeSQLException", "{", "// Most likely cause: Unlimited strength policy files not installed", "String", "msg", "=", "\"Strong encryption with Java JRE req...
/* Handles an InvalidKeyException which indicates that the JCE component is not installed properly @param operation a string indicating the the operation type, e.g. upload/download @param ex The exception to be handled @throws throws the error as a SnowflakeSQLException
[ "/", "*", "Handles", "an", "InvalidKeyException", "which", "indicates", "that", "the", "JCE", "component", "is", "not", "installed", "properly" ]
train
https://github.com/snowflakedb/snowflake-jdbc/blob/98567b5a57753f29d51446809640b969a099658f/src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java#L2958-L2979
eurekaclinical/eurekaclinical-common
src/main/java/org/eurekaclinical/common/comm/clients/EurekaClinicalClient.java
EurekaClinicalClient.doPost
protected <T> T doPost(String path, MultivaluedMap<String, String> formParams, Class<T> cls, MultivaluedMap<String, String> headers) throws ClientException { """ Submits a form and gets back a JSON object. @param <T> the type of the object that is expected in the response. @param path the API to call. @param ...
java
protected <T> T doPost(String path, MultivaluedMap<String, String> formParams, Class<T> cls, MultivaluedMap<String, String> headers) throws ClientException { this.readLock.lock(); try { WebResource.Builder requestBuilder = getResourceWrapper().rewritten(path, HttpMethod.POST).getRequestBuild...
[ "protected", "<", "T", ">", "T", "doPost", "(", "String", "path", ",", "MultivaluedMap", "<", "String", ",", "String", ">", "formParams", ",", "Class", "<", "T", ">", "cls", ",", "MultivaluedMap", "<", "String", ",", "String", ">", "headers", ")", "thr...
Submits a form and gets back a JSON object. @param <T> the type of the object that is expected in the response. @param path the API to call. @param formParams the form parameters to send. @param cls the type of object that is expected in the response. @param headers any headers. If there is no Accepts header, an Accep...
[ "Submits", "a", "form", "and", "gets", "back", "a", "JSON", "object", "." ]
train
https://github.com/eurekaclinical/eurekaclinical-common/blob/1867102ff43fe94e519f76a074d5f5923e9be61c/src/main/java/org/eurekaclinical/common/comm/clients/EurekaClinicalClient.java#L460-L473
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java
DeployCmd.resumePreviousByProcessDefinitionKey
protected Set<String> resumePreviousByProcessDefinitionKey(CommandContext commandContext, DeploymentEntity deployment, Set<String> processKeysToRegisterFor) { """ Searches in previous deployments for the same processes and retrieves the deployment ids. @param commandContext @param deployment the current deplo...
java
protected Set<String> resumePreviousByProcessDefinitionKey(CommandContext commandContext, DeploymentEntity deployment, Set<String> processKeysToRegisterFor) { Set<String> processDefinitionKeys = new HashSet<String>(processKeysToRegisterFor); List<? extends ProcessDefinition> deployedProcesses = getDeployedProc...
[ "protected", "Set", "<", "String", ">", "resumePreviousByProcessDefinitionKey", "(", "CommandContext", "commandContext", ",", "DeploymentEntity", "deployment", ",", "Set", "<", "String", ">", "processKeysToRegisterFor", ")", "{", "Set", "<", "String", ">", "processDef...
Searches in previous deployments for the same processes and retrieves the deployment ids. @param commandContext @param deployment the current deployment @param processKeysToRegisterFor the process keys this process application wants to register @param deployment the set where to add further deployments this process ap...
[ "Searches", "in", "previous", "deployments", "for", "the", "same", "processes", "and", "retrieves", "the", "deployment", "ids", "." ]
train
https://github.com/camunda/camunda-bpm-platform/blob/1a464fc887ef3760e53d6f91b9e5b871a0d77cc0/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java#L552-L563
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java
SarlBatchCompiler.getBootClassPath
@Pure public List<File> getBootClassPath() { """ Replies the boot classpath. This option is only supported on JDK 8 and older and will be ignored when source level is 9 or newer. @return the boot classpath. @see "https://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html" """ if (this...
java
@Pure public List<File> getBootClassPath() { if (this.bootClasspath == null) { return Collections.emptyList(); } return Collections.unmodifiableList(this.bootClasspath); }
[ "@", "Pure", "public", "List", "<", "File", ">", "getBootClassPath", "(", ")", "{", "if", "(", "this", ".", "bootClasspath", "==", "null", ")", "{", "return", "Collections", ".", "emptyList", "(", ")", ";", "}", "return", "Collections", ".", "unmodifiabl...
Replies the boot classpath. This option is only supported on JDK 8 and older and will be ignored when source level is 9 or newer. @return the boot classpath. @see "https://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html"
[ "Replies", "the", "boot", "classpath", ".", "This", "option", "is", "only", "supported", "on", "JDK", "8", "and", "older", "and", "will", "be", "ignored", "when", "source", "level", "is", "9", "or", "newer", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L733-L739
liferay/com-liferay-commerce
commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java
CommerceAvailabilityEstimatePersistenceImpl.findByGroupId
@Override public List<CommerceAvailabilityEstimate> findByGroupId(long groupId) { """ Returns all the commerce availability estimates where groupId = &#63;. @param groupId the group ID @return the matching commerce availability estimates """ return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL...
java
@Override public List<CommerceAvailabilityEstimate> findByGroupId(long groupId) { return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
[ "@", "Override", "public", "List", "<", "CommerceAvailabilityEstimate", ">", "findByGroupId", "(", "long", "groupId", ")", "{", "return", "findByGroupId", "(", "groupId", ",", "QueryUtil", ".", "ALL_POS", ",", "QueryUtil", ".", "ALL_POS", ",", "null", ")", ";"...
Returns all the commerce availability estimates where groupId = &#63;. @param groupId the group ID @return the matching commerce availability estimates
[ "Returns", "all", "the", "commerce", "availability", "estimates", "where", "groupId", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java#L1539-L1542
pippo-java/pippo
pippo-core/src/main/java/ro/pippo/core/PippoSettings.java
PippoSettings.overrideSetting
public void overrideSetting(String name, float value) { """ Override the setting at runtime with the specified value. This change does not persist. @param name @param value """ overrides.put(name, Float.toString(value)); }
java
public void overrideSetting(String name, float value) { overrides.put(name, Float.toString(value)); }
[ "public", "void", "overrideSetting", "(", "String", "name", ",", "float", "value", ")", "{", "overrides", ".", "put", "(", "name", ",", "Float", ".", "toString", "(", "value", ")", ")", ";", "}" ]
Override the setting at runtime with the specified value. This change does not persist. @param name @param value
[ "Override", "the", "setting", "at", "runtime", "with", "the", "specified", "value", ".", "This", "change", "does", "not", "persist", "." ]
train
https://github.com/pippo-java/pippo/blob/cb5ccb453bffcc3cf386adc660674812d10b9726/pippo-core/src/main/java/ro/pippo/core/PippoSettings.java#L1067-L1069
VoltDB/voltdb
src/frontend/org/voltdb/utils/SystemStatsCollector.java
SystemStatsCollector.getRSSFromProcFS
private static long getRSSFromProcFS() { """ Get the RSS using the procfs. If procfs is not around, this will return -1; """ try { File statFile = new File(String.format("/proc/%d/stat", pid)); FileInputStream fis = new FileInputStream(statFile); try { ...
java
private static long getRSSFromProcFS() { try { File statFile = new File(String.format("/proc/%d/stat", pid)); FileInputStream fis = new FileInputStream(statFile); try { BufferedReader r = new BufferedReader(new InputStreamReader(fis)); String s...
[ "private", "static", "long", "getRSSFromProcFS", "(", ")", "{", "try", "{", "File", "statFile", "=", "new", "File", "(", "String", ".", "format", "(", "\"/proc/%d/stat\"", ",", "pid", ")", ")", ";", "FileInputStream", "fis", "=", "new", "FileInputStream", ...
Get the RSS using the procfs. If procfs is not around, this will return -1;
[ "Get", "the", "RSS", "using", "the", "procfs", ".", "If", "procfs", "is", "not", "around", "this", "will", "return", "-", "1", ";" ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/utils/SystemStatsCollector.java#L341-L357
OpenHFT/Chronicle-Map
src/main/java/net/openhft/chronicle/hash/impl/stage/iter/IterationAlloc.java
IterationAlloc.alloc
@Override public long alloc(int chunks, long prevPos, int prevChunks) { """ Move only to next tiers, to avoid double visiting of relocated entries during iteration """ long ret = s.allocReturnCode(chunks); if (prevPos >= 0) s.free(prevPos, prevChunks); if (ret >= 0) ...
java
@Override public long alloc(int chunks, long prevPos, int prevChunks) { long ret = s.allocReturnCode(chunks); if (prevPos >= 0) s.free(prevPos, prevChunks); if (ret >= 0) return ret; while (true) { s.nextTier(); ret = s.allocReturnCode(...
[ "@", "Override", "public", "long", "alloc", "(", "int", "chunks", ",", "long", "prevPos", ",", "int", "prevChunks", ")", "{", "long", "ret", "=", "s", ".", "allocReturnCode", "(", "chunks", ")", ";", "if", "(", "prevPos", ">=", "0", ")", "s", ".", ...
Move only to next tiers, to avoid double visiting of relocated entries during iteration
[ "Move", "only", "to", "next", "tiers", "to", "avoid", "double", "visiting", "of", "relocated", "entries", "during", "iteration" ]
train
https://github.com/OpenHFT/Chronicle-Map/blob/0b09733cc96302f96be4394a261699eeb021fe37/src/main/java/net/openhft/chronicle/hash/impl/stage/iter/IterationAlloc.java#L33-L46
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/query/Criteria.java
Criteria.addColumnIn
public void addColumnIn(String column, Collection values) { """ Adds IN criteria, customer_id in(1,10,33,44) large values are split into multiple InCriteria IN (1,10) OR IN(33, 44) </br> The attribute will NOT be translated into column name @param column The column name to be used without translation @p...
java
public void addColumnIn(String column, Collection values) { List list = splitInCriteria(column, values, false, IN_LIMIT); int index = 0; InCriteria inCrit; Criteria allInCritaria; inCrit = (InCriteria) list.get(index); inCrit.setTranslateAttribute(false); ...
[ "public", "void", "addColumnIn", "(", "String", "column", ",", "Collection", "values", ")", "{", "List", "list", "=", "splitInCriteria", "(", "column", ",", "values", ",", "false", ",", "IN_LIMIT", ")", ";", "int", "index", "=", "0", ";", "InCriteria", "...
Adds IN criteria, customer_id in(1,10,33,44) large values are split into multiple InCriteria IN (1,10) OR IN(33, 44) </br> The attribute will NOT be translated into column name @param column The column name to be used without translation @param values The value Collection
[ "Adds", "IN", "criteria", "customer_id", "in", "(", "1", "10", "33", "44", ")", "large", "values", "are", "split", "into", "multiple", "InCriteria", "IN", "(", "1", "10", ")", "OR", "IN", "(", "33", "44", ")", "<", "/", "br", ">", "The", "attribute...
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L795-L814
looly/hutool
hutool-core/src/main/java/cn/hutool/core/io/watch/WatchMonitor.java
WatchMonitor.create
public static WatchMonitor create(File file, int maxDepth, WatchEvent.Kind<?>... events) { """ 创建并初始化监听 @param file 文件 @param events 监听的事件列表 @param maxDepth 当监听目录时,监听目录的最大深度,当设置值为1(或小于1)时,表示不递归监听子目录 @return 监听对象 """ return create(file.toPath(), maxDepth, events); }
java
public static WatchMonitor create(File file, int maxDepth, WatchEvent.Kind<?>... events){ return create(file.toPath(), maxDepth, events); }
[ "public", "static", "WatchMonitor", "create", "(", "File", "file", ",", "int", "maxDepth", ",", "WatchEvent", ".", "Kind", "<", "?", ">", "...", "events", ")", "{", "return", "create", "(", "file", ".", "toPath", "(", ")", ",", "maxDepth", ",", "events...
创建并初始化监听 @param file 文件 @param events 监听的事件列表 @param maxDepth 当监听目录时,监听目录的最大深度,当设置值为1(或小于1)时,表示不递归监听子目录 @return 监听对象
[ "创建并初始化监听" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/io/watch/WatchMonitor.java#L141-L143
carewebframework/carewebframework-core
org.carewebframework.ui-parent/org.carewebframework.ui.core/src/main/java/org/carewebframework/ui/xml/CWF2XML.java
CWF2XML.toXML
public static String toXML(BaseComponent root, String... excludedProperties) { """ Returns an XML-formatted string that mirrors the CWF component tree starting at the specified root. @param root BaseComponent whose subtree is to be traversed. @param excludedProperties An optional list of properties that shoul...
java
public static String toXML(BaseComponent root, String... excludedProperties) { return XMLUtil.toString(toDocument(root, excludedProperties)); }
[ "public", "static", "String", "toXML", "(", "BaseComponent", "root", ",", "String", "...", "excludedProperties", ")", "{", "return", "XMLUtil", ".", "toString", "(", "toDocument", "(", "root", ",", "excludedProperties", ")", ")", ";", "}" ]
Returns an XML-formatted string that mirrors the CWF component tree starting at the specified root. @param root BaseComponent whose subtree is to be traversed. @param excludedProperties An optional list of properties that should be excluded from the output. These may either be the property name (e.g., "uuid") or a pro...
[ "Returns", "an", "XML", "-", "formatted", "string", "that", "mirrors", "the", "CWF", "component", "tree", "starting", "at", "the", "specified", "root", "." ]
train
https://github.com/carewebframework/carewebframework-core/blob/fa3252d4f7541dbe151b92c3d4f6f91433cd1673/org.carewebframework.ui-parent/org.carewebframework.ui.core/src/main/java/org/carewebframework/ui/xml/CWF2XML.java#L90-L92
vznet/mongo-jackson-mapper
src/main/java/net/vz/mongodb/jackson/DBUpdate.java
DBUpdate.push
public static Builder push(String field, Object value) { """ Add the given value to the array value at the specified field atomically @param field The field to add the value to @param value The value to add @return this object """ return new Builder().push(field, value); }
java
public static Builder push(String field, Object value) { return new Builder().push(field, value); }
[ "public", "static", "Builder", "push", "(", "String", "field", ",", "Object", "value", ")", "{", "return", "new", "Builder", "(", ")", ".", "push", "(", "field", ",", "value", ")", ";", "}" ]
Add the given value to the array value at the specified field atomically @param field The field to add the value to @param value The value to add @return this object
[ "Add", "the", "given", "value", "to", "the", "array", "value", "at", "the", "specified", "field", "atomically" ]
train
https://github.com/vznet/mongo-jackson-mapper/blob/ecd189aefa89636cddf70fb383f5d676be347976/src/main/java/net/vz/mongodb/jackson/DBUpdate.java#L90-L92
apache/groovy
subprojects/groovy-datetime/src/main/java/org/apache/groovy/datetime/extensions/DateTimeExtensions.java
DateTimeExtensions.upto
public static void upto(Temporal from, Temporal to, Closure closure) { """ Iterates from this to the {@code to} {@link java.time.temporal.Temporal}, inclusive, incrementing by one unit each iteration, calling the closure once per iteration. The closure may accept a single {@link java.time.temporal.Temporal} argu...
java
public static void upto(Temporal from, Temporal to, Closure closure) { upto(from, to, defaultUnitFor(from), closure); }
[ "public", "static", "void", "upto", "(", "Temporal", "from", ",", "Temporal", "to", ",", "Closure", "closure", ")", "{", "upto", "(", "from", ",", "to", ",", "defaultUnitFor", "(", "from", ")", ",", "closure", ")", ";", "}" ]
Iterates from this to the {@code to} {@link java.time.temporal.Temporal}, inclusive, incrementing by one unit each iteration, calling the closure once per iteration. The closure may accept a single {@link java.time.temporal.Temporal} argument. <p> The particular unit incremented by depends on the specific sub-type of {...
[ "Iterates", "from", "this", "to", "the", "{", "@code", "to", "}", "{", "@link", "java", ".", "time", ".", "temporal", ".", "Temporal", "}", "inclusive", "incrementing", "by", "one", "unit", "each", "iteration", "calling", "the", "closure", "once", "per", ...
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/subprojects/groovy-datetime/src/main/java/org/apache/groovy/datetime/extensions/DateTimeExtensions.java#L133-L135
UrielCh/ovh-java-sdk
ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java
ApiOvhTelephony.billingAccount_ovhPabx_serviceName_hunting_queue_queueId_liveStatistics_GET
public OvhOvhPabxHuntingQueueLiveStatistics billingAccount_ovhPabx_serviceName_hunting_queue_queueId_liveStatistics_GET(String billingAccount, String serviceName, Long queueId) throws IOException { """ Get this object properties REST: GET /telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/queue/{queueId}...
java
public OvhOvhPabxHuntingQueueLiveStatistics billingAccount_ovhPabx_serviceName_hunting_queue_queueId_liveStatistics_GET(String billingAccount, String serviceName, Long queueId) throws IOException { String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/queue/{queueId}/liveStatistics"; StringBuild...
[ "public", "OvhOvhPabxHuntingQueueLiveStatistics", "billingAccount_ovhPabx_serviceName_hunting_queue_queueId_liveStatistics_GET", "(", "String", "billingAccount", ",", "String", "serviceName", ",", "Long", "queueId", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"...
Get this object properties REST: GET /telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/queue/{queueId}/liveStatistics @param billingAccount [required] The name of your billingAccount @param serviceName [required] @param queueId [required]
[ "Get", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L6590-L6595
Azure/azure-sdk-for-java
devspaces/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/devspaces/v2018_06_01_preview/implementation/ControllersInner.java
ControllersInner.updateAsync
public Observable<ControllerInner> updateAsync(String resourceGroupName, String name, Map<String, String> tags) { """ Updates an Azure Dev Spaces Controller. Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters. @param resourceGroupName Resource group to which ...
java
public Observable<ControllerInner> updateAsync(String resourceGroupName, String name, Map<String, String> tags) { return updateWithServiceResponseAsync(resourceGroupName, name, tags).map(new Func1<ServiceResponse<ControllerInner>, ControllerInner>() { @Override public ControllerInner cal...
[ "public", "Observable", "<", "ControllerInner", ">", "updateAsync", "(", "String", "resourceGroupName", ",", "String", "name", ",", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "return", "updateWithServiceResponseAsync", "(", "resourceGroupName", ",...
Updates an Azure Dev Spaces Controller. Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters. @param resourceGroupName Resource group to which the resource belongs. @param name Name of the resource. @param tags Tags for the Azure Dev Spaces Controller. @throws IllegalA...
[ "Updates", "an", "Azure", "Dev", "Spaces", "Controller", ".", "Updates", "the", "properties", "of", "an", "existing", "Azure", "Dev", "Spaces", "Controller", "with", "the", "specified", "update", "parameters", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/devspaces/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/devspaces/v2018_06_01_preview/implementation/ControllersInner.java#L677-L684