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
infinispan/infinispan
commons/src/main/java/org/infinispan/commons/marshall/MarshallUtil.java
MarshallUtil.unmarshallCollection
public static <E, T extends Collection<E>> T unmarshallCollection(ObjectInput in, CollectionBuilder<E, T> builder, ElementReader<E> reader) throws IOException, ClassNotFoundException { """ Unmarshal a {@link Collection}. @param in {@link ObjectInput} to read. @param builder {@link CollectionBuilder} build...
java
public static <E, T extends Collection<E>> T unmarshallCollection(ObjectInput in, CollectionBuilder<E, T> builder, ElementReader<E> reader) throws IOException, ClassNotFoundException { final int size = unmarshallSize(in); if (size == NULL_VALUE) { return null; } T collection = Objects.r...
[ "public", "static", "<", "E", ",", "T", "extends", "Collection", "<", "E", ">", ">", "T", "unmarshallCollection", "(", "ObjectInput", "in", ",", "CollectionBuilder", "<", "E", ",", "T", ">", "builder", ",", "ElementReader", "<", "E", ">", "reader", ")", ...
Unmarshal a {@link Collection}. @param in {@link ObjectInput} to read. @param builder {@link CollectionBuilder} builds the concrete {@link Collection} based on size. @param reader {@link ElementReader} reads one element from the input. @param <E> Collection's element type. @param <T> {@link Collection} im...
[ "Unmarshal", "a", "{", "@link", "Collection", "}", "." ]
train
https://github.com/infinispan/infinispan/blob/7c62b94886c3febb4774ae8376acf2baa0265ab5/commons/src/main/java/org/infinispan/commons/marshall/MarshallUtil.java#L268-L279
google/error-prone
core/src/main/java/com/google/errorprone/refaster/Unifier.java
Unifier.unifyList
public static <T, U extends Unifiable<? super T>> Choice<Unifier> unifyList( Unifier unifier, @Nullable List<U> toUnify, @Nullable final List<? extends T> targets) { """ Returns all successful unification paths from the specified {@code Unifier} unifying the specified lists, disallowing varargs. """ ...
java
public static <T, U extends Unifiable<? super T>> Choice<Unifier> unifyList( Unifier unifier, @Nullable List<U> toUnify, @Nullable final List<? extends T> targets) { return unifyList(unifier, toUnify, targets, /* allowVarargs= */ false); }
[ "public", "static", "<", "T", ",", "U", "extends", "Unifiable", "<", "?", "super", "T", ">", ">", "Choice", "<", "Unifier", ">", "unifyList", "(", "Unifier", "unifier", ",", "@", "Nullable", "List", "<", "U", ">", "toUnify", ",", "@", "Nullable", "fi...
Returns all successful unification paths from the specified {@code Unifier} unifying the specified lists, disallowing varargs.
[ "Returns", "all", "successful", "unification", "paths", "from", "the", "specified", "{" ]
train
https://github.com/google/error-prone/blob/fe2e3cc2cf1958cb7c487bfe89852bb4c225ba9d/core/src/main/java/com/google/errorprone/refaster/Unifier.java#L139-L142
elki-project/elki
elki-core/src/main/java/de/lmu/ifi/dbs/elki/result/EvaluationResult.java
EvaluationResult.findOrCreate
public static EvaluationResult findOrCreate(ResultHierarchy hierarchy, Result parent, String name, String shortname) { """ Find or create an evaluation result. @param hierarchy Result hierarchy. @param parent Parent result @param name Long name @param shortname Short name @return Evaluation result """ ...
java
public static EvaluationResult findOrCreate(ResultHierarchy hierarchy, Result parent, String name, String shortname) { ArrayList<EvaluationResult> ers = ResultUtil.filterResults(hierarchy, parent, EvaluationResult.class); EvaluationResult ev = null; for(EvaluationResult e : ers) { if(shortname.equals(...
[ "public", "static", "EvaluationResult", "findOrCreate", "(", "ResultHierarchy", "hierarchy", ",", "Result", "parent", ",", "String", "name", ",", "String", "shortname", ")", "{", "ArrayList", "<", "EvaluationResult", ">", "ers", "=", "ResultUtil", ".", "filterResu...
Find or create an evaluation result. @param hierarchy Result hierarchy. @param parent Parent result @param name Long name @param shortname Short name @return Evaluation result
[ "Find", "or", "create", "an", "evaluation", "result", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-core/src/main/java/de/lmu/ifi/dbs/elki/result/EvaluationResult.java#L143-L157
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ConcurrentSparqlGraphStoreManager.java
ConcurrentSparqlGraphStoreManager.putGraph
@Override public void putGraph(URI graphUri, Model data) { """ Put (create/replace) a named graph of a Dataset @param graphUri @param data """ if (graphUri == null || data == null) return; // Use HTTP protocol if possible if (this.sparqlServiceEndpoint != null) { ...
java
@Override public void putGraph(URI graphUri, Model data) { if (graphUri == null || data == null) return; // Use HTTP protocol if possible if (this.sparqlServiceEndpoint != null) { datasetAccessor.putModel(graphUri.toASCIIString(), data); } else { ...
[ "@", "Override", "public", "void", "putGraph", "(", "URI", "graphUri", ",", "Model", "data", ")", "{", "if", "(", "graphUri", "==", "null", "||", "data", "==", "null", ")", "return", ";", "// Use HTTP protocol if possible", "if", "(", "this", ".", "sparqlS...
Put (create/replace) a named graph of a Dataset @param graphUri @param data
[ "Put", "(", "create", "/", "replace", ")", "a", "named", "graph", "of", "a", "Dataset" ]
train
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ConcurrentSparqlGraphStoreManager.java#L546-L559
alipay/sofa-rpc
core/api/src/main/java/com/alipay/sofa/rpc/filter/FilterInvoker.java
FilterInvoker.getIntMethodParam
protected int getIntMethodParam(String methodName, String paramKey, int defaultValue) { """ 取得方法的特殊参数配置 @param methodName 方法名 @param paramKey 参数关键字 @param defaultValue 默认值 @return 都找不到为defaultValue int method param """ if (CommonUtils.isEmpty(configContext)) { return defaultValu...
java
protected int getIntMethodParam(String methodName, String paramKey, int defaultValue) { if (CommonUtils.isEmpty(configContext)) { return defaultValue; } Integer o = (Integer) configContext.get(buildMethodKey(methodName, paramKey)); if (o == null) { o = (Integer) c...
[ "protected", "int", "getIntMethodParam", "(", "String", "methodName", ",", "String", "paramKey", ",", "int", "defaultValue", ")", "{", "if", "(", "CommonUtils", ".", "isEmpty", "(", "configContext", ")", ")", "{", "return", "defaultValue", ";", "}", "Integer",...
取得方法的特殊参数配置 @param methodName 方法名 @param paramKey 参数关键字 @param defaultValue 默认值 @return 都找不到为defaultValue int method param
[ "取得方法的特殊参数配置" ]
train
https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/filter/FilterInvoker.java#L182-L193
zeromq/jeromq
src/main/java/org/zeromq/ZMsg.java
ZMsg.recvMsg
public static ZMsg recvMsg(Socket socket, int flag) { """ Receives message from socket, returns ZMsg object or null if the recv was interrupted. Setting the flag to ZMQ.DONTWAIT does a non-blocking recv. @param socket @param flag see ZMQ constants @return ZMsg object, null if interrupted """ i...
java
public static ZMsg recvMsg(Socket socket, int flag) { if (socket == null) { throw new IllegalArgumentException("socket is null"); } ZMsg msg = new ZMsg(); while (true) { ZFrame f = ZFrame.recvFrame(socket, flag); if (f == null) { ...
[ "public", "static", "ZMsg", "recvMsg", "(", "Socket", "socket", ",", "int", "flag", ")", "{", "if", "(", "socket", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"socket is null\"", ")", ";", "}", "ZMsg", "msg", "=", "new", "Z...
Receives message from socket, returns ZMsg object or null if the recv was interrupted. Setting the flag to ZMQ.DONTWAIT does a non-blocking recv. @param socket @param flag see ZMQ constants @return ZMsg object, null if interrupted
[ "Receives", "message", "from", "socket", "returns", "ZMsg", "object", "or", "null", "if", "the", "recv", "was", "interrupted", ".", "Setting", "the", "flag", "to", "ZMQ", ".", "DONTWAIT", "does", "a", "non", "-", "blocking", "recv", "." ]
train
https://github.com/zeromq/jeromq/blob/8b4a2960b468d08b7aebb0d40bfb947e08fed040/src/main/java/org/zeromq/ZMsg.java#L232-L254
Azure/azure-sdk-for-java
network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/SecurityRulesInner.java
SecurityRulesInner.beginCreateOrUpdateAsync
public Observable<SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) { """ Creates or updates a security rule in the specified network security group. @param resourceGroupName The name of the r...
java
public Observable<SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, security...
[ "public", "Observable", "<", "SecurityRuleInner", ">", "beginCreateOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "networkSecurityGroupName", ",", "String", "securityRuleName", ",", "SecurityRuleInner", "securityRuleParameters", ")", "{", "return", "begi...
Creates or updates a security rule in the specified network security group. @param resourceGroupName The name of the resource group. @param networkSecurityGroupName The name of the network security group. @param securityRuleName The name of the security rule. @param securityRuleParameters Parameters supplied to the cr...
[ "Creates", "or", "updates", "a", "security", "rule", "in", "the", "specified", "network", "security", "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/SecurityRulesInner.java#L473-L480
webmetrics/browsermob-proxy
src/main/java/org/browsermob/proxy/jetty/util/UrlEncoded.java
UrlEncoded.decodeTo
public static void decodeTo(String content,MultiMap map) { """ /* Decoded parameters to Map. @param content the string containing the encoded parameters @param url The dictionary to add the parameters to """ decodeTo(content,map,StringUtil.__ISO_8859_1); }
java
public static void decodeTo(String content,MultiMap map) { decodeTo(content,map,StringUtil.__ISO_8859_1); }
[ "public", "static", "void", "decodeTo", "(", "String", "content", ",", "MultiMap", "map", ")", "{", "decodeTo", "(", "content", ",", "map", ",", "StringUtil", ".", "__ISO_8859_1", ")", ";", "}" ]
/* Decoded parameters to Map. @param content the string containing the encoded parameters @param url The dictionary to add the parameters to
[ "/", "*", "Decoded", "parameters", "to", "Map", "." ]
train
https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/UrlEncoded.java#L163-L166
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/fixed/CommonOps_DDF6.java
CommonOps_DDF6.fill
public static void fill( DMatrix6x6 a , double v ) { """ <p> Sets every element in the matrix to the specified value.<br> <br> a<sub>ij</sub> = value <p> @param a A matrix whose elements are about to be set. Modified. @param v The value each element will have. """ a.a11 = v; a.a12 = v; a.a13 =...
java
public static void fill( DMatrix6x6 a , double v ) { a.a11 = v; a.a12 = v; a.a13 = v; a.a14 = v; a.a15 = v; a.a16 = v; a.a21 = v; a.a22 = v; a.a23 = v; a.a24 = v; a.a25 = v; a.a26 = v; a.a31 = v; a.a32 = v; a.a33 = v; a.a34 = v; a.a35 = v; a.a36 = v; a.a41 = v; a.a42 = v; a.a43 = v; a.a...
[ "public", "static", "void", "fill", "(", "DMatrix6x6", "a", ",", "double", "v", ")", "{", "a", ".", "a11", "=", "v", ";", "a", ".", "a12", "=", "v", ";", "a", ".", "a13", "=", "v", ";", "a", ".", "a14", "=", "v", ";", "a", ".", "a15", "="...
<p> Sets every element in the matrix to the specified value.<br> <br> a<sub>ij</sub> = value <p> @param a A matrix whose elements are about to be set. Modified. @param v The value each element will have.
[ "<p", ">", "Sets", "every", "element", "in", "the", "matrix", "to", "the", "specified", "value", ".", "<br", ">", "<br", ">", "a<sub", ">", "ij<", "/", "sub", ">", "=", "value", "<p", ">" ]
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/fixed/CommonOps_DDF6.java#L2114-L2121
mnlipp/jgrapes
org.jgrapes.http.freemarker/src/org/jgrapes/http/freemarker/FreeMarkerRequestHandler.java
FreeMarkerRequestHandler.sendProcessedTemplate
protected boolean sendProcessedTemplate( Request.In event, IOSubchannel channel, Template tpl) { """ Render a response using the given template. Send the {@link Response} and at least one {@link Output} event. If the method does not return `true`, the invoker should close the connection because it...
java
protected boolean sendProcessedTemplate( Request.In event, IOSubchannel channel, Template tpl) { // Prepare response HttpResponse response = event.httpRequest().response().get(); MediaType mediaType = contentType( ResponseCreationSupport.uriFromPath(tpl.getSourceName()));...
[ "protected", "boolean", "sendProcessedTemplate", "(", "Request", ".", "In", "event", ",", "IOSubchannel", "channel", ",", "Template", "tpl", ")", "{", "// Prepare response", "HttpResponse", "response", "=", "event", ".", "httpRequest", "(", ")", ".", "response", ...
Render a response using the given template. Send the {@link Response} and at least one {@link Output} event. If the method does not return `true`, the invoker should close the connection because it is most likely in an undefined state. @param event the request event @param channel the channel @param tpl the template ...
[ "Render", "a", "response", "using", "the", "given", "template", ".", "Send", "the", "{", "@link", "Response", "}", "and", "at", "least", "one", "{", "@link", "Output", "}", "event", "." ]
train
https://github.com/mnlipp/jgrapes/blob/8b5d874935d84c34a52d3e3d3745e869b5203fa0/org.jgrapes.http.freemarker/src/org/jgrapes/http/freemarker/FreeMarkerRequestHandler.java#L238-L272
aws/aws-sdk-java
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/StartBackupJobRequest.java
StartBackupJobRequest.withRecoveryPointTags
public StartBackupJobRequest withRecoveryPointTags(java.util.Map<String, String> recoveryPointTags) { """ <p> To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. </p> @param recoveryPointTags To help organize your resources, you c...
java
public StartBackupJobRequest withRecoveryPointTags(java.util.Map<String, String> recoveryPointTags) { setRecoveryPointTags(recoveryPointTags); return this; }
[ "public", "StartBackupJobRequest", "withRecoveryPointTags", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "recoveryPointTags", ")", "{", "setRecoveryPointTags", "(", "recoveryPointTags", ")", ";", "return", "this", ";", "}" ]
<p> To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. </p> @param recoveryPointTags To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. @return Returns a referen...
[ "<p", ">", "To", "help", "organize", "your", "resources", "you", "can", "assign", "your", "own", "metadata", "to", "the", "resources", "that", "you", "create", ".", "Each", "tag", "is", "a", "key", "-", "value", "pair", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/StartBackupJobRequest.java#L497-L500
joniles/mpxj
src/main/java/net/sf/mpxj/ResourceAssignment.java
ResourceAssignment.setEnterpriseNumber
public void setEnterpriseNumber(int index, Number value) { """ Set an enterprise number value. @param index number index (1-40) @param value number value """ set(selectField(AssignmentFieldLists.ENTERPRISE_NUMBER, index), value); }
java
public void setEnterpriseNumber(int index, Number value) { set(selectField(AssignmentFieldLists.ENTERPRISE_NUMBER, index), value); }
[ "public", "void", "setEnterpriseNumber", "(", "int", "index", ",", "Number", "value", ")", "{", "set", "(", "selectField", "(", "AssignmentFieldLists", ".", "ENTERPRISE_NUMBER", ",", "index", ")", ",", "value", ")", ";", "}" ]
Set an enterprise number value. @param index number index (1-40) @param value number value
[ "Set", "an", "enterprise", "number", "value", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/ResourceAssignment.java#L1782-L1785
hugegraph/hugegraph-common
src/main/java/com/baidu/hugegraph/util/VersionUtil.java
VersionUtil.gte
public static boolean gte(String version, String other) { """ Compare if a version is greater than the other one (inclusive) @param version The version to be compared @param other The lower bound of the range @return true if it's greater than the other, otherwise false """ E.checkArgu...
java
public static boolean gte(String version, String other) { E.checkArgumentNotNull(version, "The version to match is null"); return new Version(version).compareTo(new Version(other)) >= 0; }
[ "public", "static", "boolean", "gte", "(", "String", "version", ",", "String", "other", ")", "{", "E", ".", "checkArgumentNotNull", "(", "version", ",", "\"The version to match is null\"", ")", ";", "return", "new", "Version", "(", "version", ")", ".", "compar...
Compare if a version is greater than the other one (inclusive) @param version The version to be compared @param other The lower bound of the range @return true if it's greater than the other, otherwise false
[ "Compare", "if", "a", "version", "is", "greater", "than", "the", "other", "one", "(", "inclusive", ")" ]
train
https://github.com/hugegraph/hugegraph-common/blob/1eb2414134b639a13f68ca352c1b3eb2d956e7b2/src/main/java/com/baidu/hugegraph/util/VersionUtil.java#L50-L53
onelogin/onelogin-java-sdk
src/main/java/com/onelogin/sdk/conn/Client.java
Client.getEvent
public Event getEvent(long id) throws OAuthSystemException, OAuthProblemException, URISyntaxException { """ Gets Event by ID. @param id Id of the event @return Event @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection @throws OAuthProblemException - if th...
java
public Event getEvent(long id) throws OAuthSystemException, OAuthProblemException, URISyntaxException { cleanError(); prepareToken(); URIBuilder url = new URIBuilder(settings.getURL(Constants.GET_EVENT_URL, Long.toString(id))); OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient(); OAut...
[ "public", "Event", "getEvent", "(", "long", "id", ")", "throws", "OAuthSystemException", ",", "OAuthProblemException", ",", "URISyntaxException", "{", "cleanError", "(", ")", ";", "prepareToken", "(", ")", ";", "URIBuilder", "url", "=", "new", "URIBuilder", "(",...
Gets Event by ID. @param id Id of the event @return Event @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled @throws URISynt...
[ "Gets", "Event", "by", "ID", "." ]
train
https://github.com/onelogin/onelogin-java-sdk/blob/1570b78033dcc1c7387099e77fe41b6b0638df8c/src/main/java/com/onelogin/sdk/conn/Client.java#L2122-L2146
JodaOrg/joda-time
src/main/java/org/joda/time/DateMidnight.java
DateMidnight.withMillis
public DateMidnight withMillis(long newMillis) { """ Returns a copy of this date with a different millisecond instant. The returned object will have a local time of midnight. <p> Only the millis will change, the chronology and time zone are kept. The returned object will be either be a new instance or <code>th...
java
public DateMidnight withMillis(long newMillis) { Chronology chrono = getChronology(); newMillis = checkInstant(newMillis, chrono); return (newMillis == getMillis() ? this : new DateMidnight(newMillis, chrono)); }
[ "public", "DateMidnight", "withMillis", "(", "long", "newMillis", ")", "{", "Chronology", "chrono", "=", "getChronology", "(", ")", ";", "newMillis", "=", "checkInstant", "(", "newMillis", ",", "chrono", ")", ";", "return", "(", "newMillis", "==", "getMillis",...
Returns a copy of this date with a different millisecond instant. The returned object will have a local time of midnight. <p> Only the millis will change, the chronology and time zone are kept. The returned object will be either be a new instance or <code>this</code>. @param newMillis the new millis, from 1970-01-01T...
[ "Returns", "a", "copy", "of", "this", "date", "with", "a", "different", "millisecond", "instant", ".", "The", "returned", "object", "will", "have", "a", "local", "time", "of", "midnight", ".", "<p", ">", "Only", "the", "millis", "will", "change", "the", ...
train
https://github.com/JodaOrg/joda-time/blob/bd79f1c4245e79b3c2c56d7b04fde2a6e191fa42/src/main/java/org/joda/time/DateMidnight.java#L375-L379
ZuInnoTe/hadoopoffice
fileformat/src/main/java/org/zuinnote/hadoop/office/format/common/parser/msexcel/MSExcelParser.java
MSExcelParser.addLinkedWorkbook
@Override public boolean addLinkedWorkbook(String name, InputStream inputStream, String password) throws FormatNotUnderstoodException { """ Adds a linked workbook that is referred from this workbook. If the filename is already in the list then it is not processed twice. Note that the inputStream is closed after p...
java
@Override public boolean addLinkedWorkbook(String name, InputStream inputStream, String password) throws FormatNotUnderstoodException { // check if already added if (this.addedFormulaEvaluators.containsKey(name)) { return false; } LOG.debug("Start adding \""+name+"\" to current workbook"); // create new ...
[ "@", "Override", "public", "boolean", "addLinkedWorkbook", "(", "String", "name", ",", "InputStream", "inputStream", ",", "String", "password", ")", "throws", "FormatNotUnderstoodException", "{", "// check if already added", "if", "(", "this", ".", "addedFormulaEvaluato...
Adds a linked workbook that is referred from this workbook. If the filename is already in the list then it is not processed twice. Note that the inputStream is closed after parsing @param name fileName (without path) of the workbook @param inputStream content of the linked workbook @param password if document is encry...
[ "Adds", "a", "linked", "workbook", "that", "is", "referred", "from", "this", "workbook", ".", "If", "the", "filename", "is", "already", "in", "the", "list", "then", "it", "is", "not", "processed", "twice", ".", "Note", "that", "the", "inputStream", "is", ...
train
https://github.com/ZuInnoTe/hadoopoffice/blob/58fc9223ee290bcb14847aaaff3fadf39c465e46/fileformat/src/main/java/org/zuinnote/hadoop/office/format/common/parser/msexcel/MSExcelParser.java#L270-L296
jenkinsci/jenkins
core/src/main/java/hudson/scm/SCM.java
SCM.processWorkspaceBeforeDeletion
public boolean processWorkspaceBeforeDeletion(@Nonnull Job<?,?> project, @Nonnull FilePath workspace, @Nonnull Node node) throws IOException, InterruptedException { """ Called before a workspace is deleted on the given node, to provide SCM an opportunity to perform clean up. <p> Hudson periodically scans throu...
java
public boolean processWorkspaceBeforeDeletion(@Nonnull Job<?,?> project, @Nonnull FilePath workspace, @Nonnull Node node) throws IOException, InterruptedException { if (project instanceof AbstractProject) { return processWorkspaceBeforeDeletion((AbstractProject) project, workspace, node); } ...
[ "public", "boolean", "processWorkspaceBeforeDeletion", "(", "@", "Nonnull", "Job", "<", "?", ",", "?", ">", "project", ",", "@", "Nonnull", "FilePath", "workspace", ",", "@", "Nonnull", "Node", "node", ")", "throws", "IOException", ",", "InterruptedException", ...
Called before a workspace is deleted on the given node, to provide SCM an opportunity to perform clean up. <p> Hudson periodically scans through all the agents and removes old workspaces that are deemed unnecessary. This behavior is implemented in {@link WorkspaceCleanupThread}, and it is necessary to control the disk...
[ "Called", "before", "a", "workspace", "is", "deleted", "on", "the", "given", "node", "to", "provide", "SCM", "an", "opportunity", "to", "perform", "clean", "up", "." ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/scm/SCM.java#L234-L240
imsweb/naaccr-xml
src/main/java/com/imsweb/naaccrxml/NaaccrXmlDictionaryUtils.java
NaaccrXmlDictionaryUtils.validateUserDictionary
public static List<String> validateUserDictionary(NaaccrDictionary dictionary, String naaccrVersion) { """ Validates the provided user dictionary. @param dictionary dictionary to validate, can't be null @param naaccrVersion naaccrVersion to assume if it's not provided on the dictionary (can be null) @return lis...
java
public static List<String> validateUserDictionary(NaaccrDictionary dictionary, String naaccrVersion) { return validateDictionary(dictionary, false, naaccrVersion); }
[ "public", "static", "List", "<", "String", ">", "validateUserDictionary", "(", "NaaccrDictionary", "dictionary", ",", "String", "naaccrVersion", ")", "{", "return", "validateDictionary", "(", "dictionary", ",", "false", ",", "naaccrVersion", ")", ";", "}" ]
Validates the provided user dictionary. @param dictionary dictionary to validate, can't be null @param naaccrVersion naaccrVersion to assume if it's not provided on the dictionary (can be null) @return list of errors, empty if valid
[ "Validates", "the", "provided", "user", "dictionary", "." ]
train
https://github.com/imsweb/naaccr-xml/blob/a3a501faa2a0c3411dd5248b2c1379f279131696/src/main/java/com/imsweb/naaccrxml/NaaccrXmlDictionaryUtils.java#L348-L350
apache/flink
flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
DataSet.printToErr
@Deprecated @PublicEvolving public DataSink<T> printToErr(String sinkIdentifier) { """ Writes a DataSet to the standard error stream (stderr). <p>For each element of the DataSet the result of {@link Object#toString()} is written. @param sinkIdentifier The string to prefix the output with. @return The Data...
java
@Deprecated @PublicEvolving public DataSink<T> printToErr(String sinkIdentifier) { return output(new PrintingOutputFormat<T>(sinkIdentifier, true)); }
[ "@", "Deprecated", "@", "PublicEvolving", "public", "DataSink", "<", "T", ">", "printToErr", "(", "String", "sinkIdentifier", ")", "{", "return", "output", "(", "new", "PrintingOutputFormat", "<", "T", ">", "(", "sinkIdentifier", ",", "true", ")", ")", ";", ...
Writes a DataSet to the standard error stream (stderr). <p>For each element of the DataSet the result of {@link Object#toString()} is written. @param sinkIdentifier The string to prefix the output with. @return The DataSink that writes the DataSet. @deprecated Use {@link #printOnTaskManager(String)} instead, or the ...
[ "Writes", "a", "DataSet", "to", "the", "standard", "error", "stream", "(", "stderr", ")", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java#L1724-L1728
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/namefind/NameFinderME.java
NameFinderME.validOutcome
protected boolean validOutcome(String outcome, Sequence sequence) { """ This method determines wheter the outcome is valid for the preceeding sequence. This can be used to implement constraints on what sequences are valid. @param outcome The outcome. @param sequence The precceding sequence of outcomes assignmen...
java
protected boolean validOutcome(String outcome, Sequence sequence) { if (outcome.equals(CONTINUE)) { List tags = sequence.getOutcomes(); int li = tags.size() - 1; if (li == -1) { return false; } else if (((String) tags.get(li)).equals(OTHER)) { return false; } ...
[ "protected", "boolean", "validOutcome", "(", "String", "outcome", ",", "Sequence", "sequence", ")", "{", "if", "(", "outcome", ".", "equals", "(", "CONTINUE", ")", ")", "{", "List", "tags", "=", "sequence", ".", "getOutcomes", "(", ")", ";", "int", "li",...
This method determines wheter the outcome is valid for the preceeding sequence. This can be used to implement constraints on what sequences are valid. @param outcome The outcome. @param sequence The precceding sequence of outcomes assignments. @return true is the outcome is valid for the sequence, false otherwise.
[ "This", "method", "determines", "wheter", "the", "outcome", "is", "valid", "for", "the", "preceeding", "sequence", ".", "This", "can", "be", "used", "to", "implement", "constraints", "on", "what", "sequences", "are", "valid", "." ]
train
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/namefind/NameFinderME.java#L101-L113
h2oai/h2o-3
h2o-algos/src/main/java/hex/deeplearning/DeepLearningTask.java
DeepLearningTask.processRow
@Override public final void processRow(long seed, DataInfo.Row r, int mb) { """ Process one training row at a time (online learning) @param seed Seed is only used if reproducible mode is enabled @param r Row (must be dense for now) @param mb mini-batch internal index """ if (_localmodel.get_params()._re...
java
@Override public final void processRow(long seed, DataInfo.Row r, int mb) { if (_localmodel.get_params()._reproducible) { seed += _localmodel.get_processed_global(); //avoid periodicity } else { seed = _dropout_rng.nextLong(); // non-reproducible case - make a fast & good random number } _lo...
[ "@", "Override", "public", "final", "void", "processRow", "(", "long", "seed", ",", "DataInfo", ".", "Row", "r", ",", "int", "mb", ")", "{", "if", "(", "_localmodel", ".", "get_params", "(", ")", ".", "_reproducible", ")", "{", "seed", "+=", "_localmod...
Process one training row at a time (online learning) @param seed Seed is only used if reproducible mode is enabled @param r Row (must be dense for now) @param mb mini-batch internal index
[ "Process", "one", "training", "row", "at", "a", "time", "(", "online", "learning", ")" ]
train
https://github.com/h2oai/h2o-3/blob/845eb49dfeaadf638b6e2f779d82fac996391fad/h2o-algos/src/main/java/hex/deeplearning/DeepLearningTask.java#L101-L109
google/error-prone-javac
src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java
ElementFilter.fieldsIn
public static List<VariableElement> fieldsIn(Iterable<? extends Element> elements) { """ Returns a list of fields in {@code elements}. @return a list of fields in {@code elements} @param elements the elements to filter """ return listFilter(elements, FIELD_KINDS, VariableElement.class); ...
java
public static List<VariableElement> fieldsIn(Iterable<? extends Element> elements) { return listFilter(elements, FIELD_KINDS, VariableElement.class); }
[ "public", "static", "List", "<", "VariableElement", ">", "fieldsIn", "(", "Iterable", "<", "?", "extends", "Element", ">", "elements", ")", "{", "return", "listFilter", "(", "elements", ",", "FIELD_KINDS", ",", "VariableElement", ".", "class", ")", ";", "}" ...
Returns a list of fields in {@code elements}. @return a list of fields in {@code elements} @param elements the elements to filter
[ "Returns", "a", "list", "of", "fields", "in", "{" ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java#L92-L95
pravega/pravega
segmentstore/storage/impl/src/main/java/io/pravega/segmentstore/storage/impl/bookkeeper/LogMetadata.java
LogMetadata.addLedger
LogMetadata addLedger(long ledgerId) { """ Creates a new instance of the LogMetadata class which contains an additional ledger. @param ledgerId The Id of the Ledger to add. @return A new instance of the LogMetadata class. """ Preconditions.checkState(this.enabled, "Log is not enabled. Cannot ...
java
LogMetadata addLedger(long ledgerId) { Preconditions.checkState(this.enabled, "Log is not enabled. Cannot perform any modifications on it."); // Copy existing ledgers. List<LedgerMetadata> newLedgers = new ArrayList<>(this.ledgers.size() + 1); newLedgers.addAll(this.ledgers); /...
[ "LogMetadata", "addLedger", "(", "long", "ledgerId", ")", "{", "Preconditions", ".", "checkState", "(", "this", ".", "enabled", ",", "\"Log is not enabled. Cannot perform any modifications on it.\"", ")", ";", "// Copy existing ledgers.", "List", "<", "LedgerMetadata", ">...
Creates a new instance of the LogMetadata class which contains an additional ledger. @param ledgerId The Id of the Ledger to add. @return A new instance of the LogMetadata class.
[ "Creates", "a", "new", "instance", "of", "the", "LogMetadata", "class", "which", "contains", "an", "additional", "ledger", "." ]
train
https://github.com/pravega/pravega/blob/6e24df7470669b3956a07018f52b2c6b3c2a3503/segmentstore/storage/impl/src/main/java/io/pravega/segmentstore/storage/impl/bookkeeper/LogMetadata.java#L130-L141
elki-project/elki
elki-itemsets/src/main/java/de/lmu/ifi/dbs/elki/algorithm/itemsetmining/associationrules/AssociationRule.java
AssociationRule.appendTo
public StringBuilder appendTo(StringBuilder buf, VectorFieldTypeInformation<BitVector> meta) { """ Append to a string buffer. @param buf Buffer @param meta Relation metadata (for labels) @return String buffer for chaining. """ this.antecedent.appendTo(buf, meta); buf.append(" --> "); this.cons...
java
public StringBuilder appendTo(StringBuilder buf, VectorFieldTypeInformation<BitVector> meta) { this.antecedent.appendTo(buf, meta); buf.append(" --> "); this.consequent.appendItemsTo(buf, meta); buf.append(": "); buf.append(union.getSupport()); buf.append(" : "); buf.append(this.measure); ...
[ "public", "StringBuilder", "appendTo", "(", "StringBuilder", "buf", ",", "VectorFieldTypeInformation", "<", "BitVector", ">", "meta", ")", "{", "this", ".", "antecedent", ".", "appendTo", "(", "buf", ",", "meta", ")", ";", "buf", ".", "append", "(", "\" --> ...
Append to a string buffer. @param buf Buffer @param meta Relation metadata (for labels) @return String buffer for chaining.
[ "Append", "to", "a", "string", "buffer", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-itemsets/src/main/java/de/lmu/ifi/dbs/elki/algorithm/itemsetmining/associationrules/AssociationRule.java#L123-L132
facebookarchive/hadoop-20
src/core/org/apache/hadoop/fs/InMemoryFileSystem.java
InMemoryFileSystem.reserveSpaceWithCheckSum
public boolean reserveSpaceWithCheckSum(Path f, long size) { """ Register a file with its size. This will also register a checksum for the file that the user is trying to create. This is required since none of the FileSystem APIs accept the size of the file as argument. But since it is required for us to aprior...
java
public boolean reserveSpaceWithCheckSum(Path f, long size) { RawInMemoryFileSystem mfs = (RawInMemoryFileSystem)getRawFileSystem(); synchronized(mfs) { boolean b = mfs.reserveSpace(f, size); if (b) { long checksumSize = getChecksumFileLength(f, size); b = mfs.reserveSpace(getChecksum...
[ "public", "boolean", "reserveSpaceWithCheckSum", "(", "Path", "f", ",", "long", "size", ")", "{", "RawInMemoryFileSystem", "mfs", "=", "(", "RawInMemoryFileSystem", ")", "getRawFileSystem", "(", ")", ";", "synchronized", "(", "mfs", ")", "{", "boolean", "b", "...
Register a file with its size. This will also register a checksum for the file that the user is trying to create. This is required since none of the FileSystem APIs accept the size of the file as argument. But since it is required for us to apriori know the size of the file we are going to create, the user must call th...
[ "Register", "a", "file", "with", "its", "size", ".", "This", "will", "also", "register", "a", "checksum", "for", "the", "file", "that", "the", "user", "is", "trying", "to", "create", ".", "This", "is", "required", "since", "none", "of", "the", "FileSyste...
train
https://github.com/facebookarchive/hadoop-20/blob/2a29bc6ecf30edb1ad8dbde32aa49a317b4d44f4/src/core/org/apache/hadoop/fs/InMemoryFileSystem.java#L416-L429
diffplug/durian
src/com/diffplug/common/base/Either.java
Either.fold
public final <T> T fold(Function<? super L, ? extends T> left, Function<? super R, ? extends T> right) { """ Applies either the left or the right function as appropriate. """ if (isLeft()) { return left.apply(getLeft()); } else { return right.apply(getRight()); } }
java
public final <T> T fold(Function<? super L, ? extends T> left, Function<? super R, ? extends T> right) { if (isLeft()) { return left.apply(getLeft()); } else { return right.apply(getRight()); } }
[ "public", "final", "<", "T", ">", "T", "fold", "(", "Function", "<", "?", "super", "L", ",", "?", "extends", "T", ">", "left", ",", "Function", "<", "?", "super", "R", ",", "?", "extends", "T", ">", "right", ")", "{", "if", "(", "isLeft", "(", ...
Applies either the left or the right function as appropriate.
[ "Applies", "either", "the", "left", "or", "the", "right", "function", "as", "appropriate", "." ]
train
https://github.com/diffplug/durian/blob/10631a3480e5491eb6eb6ee06e752d8596914232/src/com/diffplug/common/base/Either.java#L68-L74
threerings/nenya
core/src/main/java/com/threerings/resource/ResourceManager.java
ResourceManager.resolveResourceSet
protected void resolveResourceSet ( String setName, String definition, String setType, List<ResourceBundle> dlist) { """ Loads up a resource set based on the supplied definition information. """ List<ResourceBundle> set = Lists.newArrayList(); StringTokenizer tok = new StringTokenizer(d...
java
protected void resolveResourceSet ( String setName, String definition, String setType, List<ResourceBundle> dlist) { List<ResourceBundle> set = Lists.newArrayList(); StringTokenizer tok = new StringTokenizer(definition, ":"); while (tok.hasMoreTokens()) { set.add(createRe...
[ "protected", "void", "resolveResourceSet", "(", "String", "setName", ",", "String", "definition", ",", "String", "setType", ",", "List", "<", "ResourceBundle", ">", "dlist", ")", "{", "List", "<", "ResourceBundle", ">", "set", "=", "Lists", ".", "newArrayList"...
Loads up a resource set based on the supplied definition information.
[ "Loads", "up", "a", "resource", "set", "based", "on", "the", "supplied", "definition", "information", "." ]
train
https://github.com/threerings/nenya/blob/3165a012fd859009db3367f87bd2a5b820cc760a/core/src/main/java/com/threerings/resource/ResourceManager.java#L799-L816
qiniu/java-sdk
src/main/java/com/qiniu/storage/BucketManager.java
BucketManager.fetch
public FetchRet fetch(String url, String bucket) throws QiniuException { """ 抓取指定地址的文件,以指定名称保存在指定空间 要求指定url可访问,大文件不建议使用此接口抓取。可先下载再上传 如果不指定保存的文件名,那么以文件内容的 etag 作为文件名 @param url 待抓取的文件链接 @param bucket 文件抓取后保存的空间 @throws QiniuException """ return fetch(url, bucket, null); }
java
public FetchRet fetch(String url, String bucket) throws QiniuException { return fetch(url, bucket, null); }
[ "public", "FetchRet", "fetch", "(", "String", "url", ",", "String", "bucket", ")", "throws", "QiniuException", "{", "return", "fetch", "(", "url", ",", "bucket", ",", "null", ")", ";", "}" ]
抓取指定地址的文件,以指定名称保存在指定空间 要求指定url可访问,大文件不建议使用此接口抓取。可先下载再上传 如果不指定保存的文件名,那么以文件内容的 etag 作为文件名 @param url 待抓取的文件链接 @param bucket 文件抓取后保存的空间 @throws QiniuException
[ "抓取指定地址的文件,以指定名称保存在指定空间", "要求指定url可访问,大文件不建议使用此接口抓取。可先下载再上传", "如果不指定保存的文件名,那么以文件内容的", "etag", "作为文件名" ]
train
https://github.com/qiniu/java-sdk/blob/6c05f3fb718403a496c725b048e9241f80171499/src/main/java/com/qiniu/storage/BucketManager.java#L436-L438
alkacon/opencms-core
src/org/opencms/ui/apps/modules/edit/CmsEditModuleForm.java
CmsEditModuleForm.getModuleSiteContainer
public static IndexedContainer getModuleSiteContainer(CmsObject cms, String captionPropertyName, String prevValue) { """ Builds the container used for the module site selector.<p> @param cms the CMS context @param captionPropertyName the name of the property used to store captions @param prevValue the value p...
java
public static IndexedContainer getModuleSiteContainer(CmsObject cms, String captionPropertyName, String prevValue) { CmsSiteSelectorOptionBuilder optBuilder = new CmsSiteSelectorOptionBuilder(cms); optBuilder.addNormalSites(true, (new CmsUserSettings(cms)).getStartFolder()); IndexedContainer av...
[ "public", "static", "IndexedContainer", "getModuleSiteContainer", "(", "CmsObject", "cms", ",", "String", "captionPropertyName", ",", "String", "prevValue", ")", "{", "CmsSiteSelectorOptionBuilder", "optBuilder", "=", "new", "CmsSiteSelectorOptionBuilder", "(", "cms", ")"...
Builds the container used for the module site selector.<p> @param cms the CMS context @param captionPropertyName the name of the property used to store captions @param prevValue the value previously set in the module @return the container with the available sites
[ "Builds", "the", "container", "used", "for", "the", "module", "site", "selector", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/modules/edit/CmsEditModuleForm.java#L504-L529
groupon/odo
proxylib/src/main/java/com/groupon/odo/proxylib/BackupService.java
BackupService.getServerForName
private MBeanServer getServerForName(String name) { """ Returns an MBeanServer with the specified name @param name @return """ try { MBeanServer mbeanServer = null; final ObjectName objectNameQuery = new ObjectName(name + ":type=Service,*"); for (final MBeanServ...
java
private MBeanServer getServerForName(String name) { try { MBeanServer mbeanServer = null; final ObjectName objectNameQuery = new ObjectName(name + ":type=Service,*"); for (final MBeanServer server : MBeanServerFactory.findMBeanServer(null)) { if (server.query...
[ "private", "MBeanServer", "getServerForName", "(", "String", "name", ")", "{", "try", "{", "MBeanServer", "mbeanServer", "=", "null", ";", "final", "ObjectName", "objectNameQuery", "=", "new", "ObjectName", "(", "name", "+", "\":type=Service,*\"", ")", ";", "for...
Returns an MBeanServer with the specified name @param name @return
[ "Returns", "an", "MBeanServer", "with", "the", "specified", "name" ]
train
https://github.com/groupon/odo/blob/3bae43d5eca8ace036775e5b2d3ed9af1a9ff9b1/proxylib/src/main/java/com/groupon/odo/proxylib/BackupService.java#L396-L414
lessthanoptimal/BoofCV
main/boofcv-types/src/main/java/boofcv/struct/image/InterleavedU8.java
InterleavedU8.get24
public int get24( int x , int y ) { """ Returns an integer formed from 3 bands. a[i] << 16 | a[i+1]<<8 | a[i+2] @param x column @param y row @return 32 bit integer """ int i = startIndex + y*stride+x*3; return ((data[i]&0xFF) << 16) | ((data[i+1]&0xFF) << 8) | (data[i+2]&0xFF); }
java
public int get24( int x , int y ) { int i = startIndex + y*stride+x*3; return ((data[i]&0xFF) << 16) | ((data[i+1]&0xFF) << 8) | (data[i+2]&0xFF); }
[ "public", "int", "get24", "(", "int", "x", ",", "int", "y", ")", "{", "int", "i", "=", "startIndex", "+", "y", "*", "stride", "+", "x", "*", "3", ";", "return", "(", "(", "data", "[", "i", "]", "&", "0xFF", ")", "<<", "16", ")", "|", "(", ...
Returns an integer formed from 3 bands. a[i] << 16 | a[i+1]<<8 | a[i+2] @param x column @param y row @return 32 bit integer
[ "Returns", "an", "integer", "formed", "from", "3", "bands", ".", "a", "[", "i", "]", "<<", "16", "|", "a", "[", "i", "+", "1", "]", "<<8", "|", "a", "[", "i", "+", "2", "]" ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-types/src/main/java/boofcv/struct/image/InterleavedU8.java#L68-L71
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ServiceEndpointPoliciesInner.java
ServiceEndpointPoliciesInner.beginDelete
public void beginDelete(String resourceGroupName, String serviceEndpointPolicyName) { """ Deletes the specified service endpoint policy. @param resourceGroupName The name of the resource group. @param serviceEndpointPolicyName The name of the service endpoint policy. @throws IllegalArgumentException thrown if...
java
public void beginDelete(String resourceGroupName, String serviceEndpointPolicyName) { beginDeleteWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "serviceEndpointPolicyName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "serviceEndpointPolicyName", ")", ".", "toBlocking", "(", ")", ".", "single", ...
Deletes the specified service endpoint policy. @param resourceGroupName The name of the resource group. @param serviceEndpointPolicyName The name of the service endpoint policy. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server ...
[ "Deletes", "the", "specified", "service", "endpoint", "policy", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ServiceEndpointPoliciesInner.java#L191-L193
FrodeRanders/java-vopn
src/main/java/org/gautelis/vopn/lang/DynamicLoader.java
DynamicLoader.createObject
public C createObject(String className, Class clazz) throws ClassNotFoundException { """ Creates an instance from a Class. @param className name of class -- used for logging purposes and nothing else. @param clazz the class template from which an object is wrought. @throws ClassNotFoundException if class could ...
java
public C createObject(String className, Class clazz) throws ClassNotFoundException { return createObject(className, clazz, /* no dynamic init */ null); }
[ "public", "C", "createObject", "(", "String", "className", ",", "Class", "clazz", ")", "throws", "ClassNotFoundException", "{", "return", "createObject", "(", "className", ",", "clazz", ",", "/* no dynamic init */", "null", ")", ";", "}" ]
Creates an instance from a Class. @param className name of class -- used for logging purposes and nothing else. @param clazz the class template from which an object is wrought. @throws ClassNotFoundException if class could not be found.
[ "Creates", "an", "instance", "from", "a", "Class", "." ]
train
https://github.com/FrodeRanders/java-vopn/blob/4c7b2f90201327af4eaa3cd46b3fee68f864e5cc/src/main/java/org/gautelis/vopn/lang/DynamicLoader.java#L329-L331
52inc/android-52Kit
library/src/main/java/com/ftinc/kit/util/IntentUtils.java
IntentUtils.pickContact
public static Intent pickContact(String scope) { """ Pick contact from phone book @param scope You can restrict selection by passing required content type. """ Intent intent; if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ECLAIR) { intent = new Intent(Intent.ACTION_PICK, Contact...
java
public static Intent pickContact(String scope) { Intent intent; if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ECLAIR) { intent = new Intent(Intent.ACTION_PICK, Contacts.People.CONTENT_URI); } else { intent = new Intent(Intent.ACTION_PICK, Uri.parse("content://com.androi...
[ "public", "static", "Intent", "pickContact", "(", "String", "scope", ")", "{", "Intent", "intent", ";", "if", "(", "Build", ".", "VERSION", ".", "SDK_INT", "<", "Build", ".", "VERSION_CODES", ".", "ECLAIR", ")", "{", "intent", "=", "new", "Intent", "(", ...
Pick contact from phone book @param scope You can restrict selection by passing required content type.
[ "Pick", "contact", "from", "phone", "book" ]
train
https://github.com/52inc/android-52Kit/blob/8644fab0f633477b1bb1dddd8147a9ef8bc03516/library/src/main/java/com/ftinc/kit/util/IntentUtils.java#L391-L403
nohana/Amalgam
amalgam/src/main/java/com/amalgam/os/BundleUtils.java
BundleUtils.optFloat
public static float optFloat(@Nullable Bundle bundle, @Nullable String key) { """ Returns a optional float value. In other words, returns the value mapped by key if it exists and is a float. The bundle argument is allowed to be {@code null}. If the bundle is null, this method returns 0.0. @param bundle a bundle....
java
public static float optFloat(@Nullable Bundle bundle, @Nullable String key) { return optFloat(bundle, key, 0.f); }
[ "public", "static", "float", "optFloat", "(", "@", "Nullable", "Bundle", "bundle", ",", "@", "Nullable", "String", "key", ")", "{", "return", "optFloat", "(", "bundle", ",", "key", ",", "0.f", ")", ";", "}" ]
Returns a optional float value. In other words, returns the value mapped by key if it exists and is a float. The bundle argument is allowed to be {@code null}. If the bundle is null, this method returns 0.0. @param bundle a bundle. If the bundle is null, this method will return 0.0. @param key a key for the value. @ret...
[ "Returns", "a", "optional", "float", "value", ".", "In", "other", "words", "returns", "the", "value", "mapped", "by", "key", "if", "it", "exists", "and", "is", "a", "float", ".", "The", "bundle", "argument", "is", "allowed", "to", "be", "{" ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/os/BundleUtils.java#L483-L485
ontop/ontop
mapping/sql/owlapi/src/main/java/it/unibz/inf/ontop/spec/mapping/bootstrap/impl/DirectMappingAxiomProducer.java
DirectMappingAxiomProducer.generateSubject
private ImmutableTerm generateSubject(DatabaseRelationDefinition td, boolean ref) { """ - If the table has a primary key, the row node is a relative IRI obtained by concatenating: - the percent-encoded form of the table name, - the SOLIDUS character '/', - for each column in the primary key, in order: - the pe...
java
private ImmutableTerm generateSubject(DatabaseRelationDefinition td, boolean ref) { String varNamePrefix = ""; if (ref) varNamePrefix = td.getID().getTableName() + "_"; UniqueConstraint pk = td.getPrimaryKey(); if (pk != null) { List<ImmutableTerm> terms = new ArrayList<>(pk.getAttributes().size() + 1...
[ "private", "ImmutableTerm", "generateSubject", "(", "DatabaseRelationDefinition", "td", ",", "boolean", "ref", ")", "{", "String", "varNamePrefix", "=", "\"\"", ";", "if", "(", "ref", ")", "varNamePrefix", "=", "td", ".", "getID", "(", ")", ".", "getTableName"...
- If the table has a primary key, the row node is a relative IRI obtained by concatenating: - the percent-encoded form of the table name, - the SOLIDUS character '/', - for each column in the primary key, in order: - the percent-encoded form of the column name, - a EQUALS SIGN character '=', - the percent-encoded lexic...
[ "-", "If", "the", "table", "has", "a", "primary", "key", "the", "row", "node", "is", "a", "relative", "IRI", "obtained", "by", "concatenating", ":", "-", "the", "percent", "-", "encoded", "form", "of", "the", "table", "name", "-", "the", "SOLIDUS", "ch...
train
https://github.com/ontop/ontop/blob/ddf78b26981b6129ee9a1a59310016830f5352e4/mapping/sql/owlapi/src/main/java/it/unibz/inf/ontop/spec/mapping/bootstrap/impl/DirectMappingAxiomProducer.java#L224-L253
JadiraOrg/jadira
bindings/src/main/java/org/jadira/bindings/core/binder/BasicBinder.java
BasicBinder.findUnmarshaller
public <S, T> FromUnmarshaller<S, T> findUnmarshaller(Class<S> source, Class<T> target) { """ Resolve an UnMarshaller with the given source and target class. The unmarshaller is used as follows: Instances of the source can be marshalled into the target class. @param source The source (input) class @param target...
java
public <S, T> FromUnmarshaller<S, T> findUnmarshaller(Class<S> source, Class<T> target) { return findUnmarshaller(new ConverterKey<S,T>(source, target, DefaultBinding.class)); }
[ "public", "<", "S", ",", "T", ">", "FromUnmarshaller", "<", "S", ",", "T", ">", "findUnmarshaller", "(", "Class", "<", "S", ">", "source", ",", "Class", "<", "T", ">", "target", ")", "{", "return", "findUnmarshaller", "(", "new", "ConverterKey", "<", ...
Resolve an UnMarshaller with the given source and target class. The unmarshaller is used as follows: Instances of the source can be marshalled into the target class. @param source The source (input) class @param target The target (output) class
[ "Resolve", "an", "UnMarshaller", "with", "the", "given", "source", "and", "target", "class", ".", "The", "unmarshaller", "is", "used", "as", "follows", ":", "Instances", "of", "the", "source", "can", "be", "marshalled", "into", "the", "target", "class", "." ...
train
https://github.com/JadiraOrg/jadira/blob/d55d0238395f0cb900531f1f08b4b2d87fa9a4f6/bindings/src/main/java/org/jadira/bindings/core/binder/BasicBinder.java#L877-L879
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/Graphics.java
Graphics.drawImage
public void drawImage(Image image, float x, float y) { """ Draw an image to the screen @param image The image to draw to the screen @param x The x location at which to draw the image @param y The y location at which to draw the image """ drawImage(image, x, y, Color.white); }
java
public void drawImage(Image image, float x, float y) { drawImage(image, x, y, Color.white); }
[ "public", "void", "drawImage", "(", "Image", "image", ",", "float", "x", ",", "float", "y", ")", "{", "drawImage", "(", "image", ",", "x", ",", "y", ",", "Color", ".", "white", ")", ";", "}" ]
Draw an image to the screen @param image The image to draw to the screen @param x The x location at which to draw the image @param y The y location at which to draw the image
[ "Draw", "an", "image", "to", "the", "screen" ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/Graphics.java#L1432-L1434
albfernandez/itext2
src/main/java/com/lowagie/text/Section.java
Section.addSection
public Section addSection(float indentation, String title, int numberDepth) { """ Adds a <CODE>Section</CODE> 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...
java
public Section addSection(float indentation, String title, int numberDepth) { return addSection(indentation, new Paragraph(title), numberDepth); }
[ "public", "Section", "addSection", "(", "float", "indentation", ",", "String", "title", ",", "int", "numberDepth", ")", "{", "return", "addSection", "(", "indentation", ",", "new", "Paragraph", "(", "title", ")", ",", "numberDepth", ")", ";", "}" ]
Adds a <CODE>Section</CODE> 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
[ "Adds", "a", "<CODE", ">", "Section<", "/", "CODE", ">", "to", "this", "<CODE", ">", "Section<", "/", "CODE", ">", "and", "returns", "it", "." ]
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/Section.java#L405-L407
phax/ph-commons
ph-commons/src/main/java/com/helger/commons/ValueEnforcer.java
ValueEnforcer.noNullValue
@Nullable @CodingStyleguideUnaware public static <T extends Map <?, ?>> T noNullValue (final T aValue, @Nonnull final Supplier <? extends String> aName) { """ Check that the passed map is neither <code>null</code> nor empty and that no <code>null</code> key or value is contained. @param <T> Type to be che...
java
@Nullable @CodingStyleguideUnaware public static <T extends Map <?, ?>> T noNullValue (final T aValue, @Nonnull final Supplier <? extends String> aName) { if (isEnabled ()) if (aValue != null) { for (final Map.Entry <?, ?> aEntry : aValue.entrySet ()) { if (aEntry.getKey ...
[ "@", "Nullable", "@", "CodingStyleguideUnaware", "public", "static", "<", "T", "extends", "Map", "<", "?", ",", "?", ">", ">", "T", "noNullValue", "(", "final", "T", "aValue", ",", "@", "Nonnull", "final", "Supplier", "<", "?", "extends", "String", ">", ...
Check that the passed map is neither <code>null</code> nor empty and that no <code>null</code> key or value is contained. @param <T> Type to be checked and returned @param aValue The map to check. May be <code>null</code>. @param aName The name of the value (e.g. the parameter name) @return The passed value. Maybe <co...
[ "Check", "that", "the", "passed", "map", "is", "neither", "<code", ">", "null<", "/", "code", ">", "nor", "empty", "and", "that", "no", "<code", ">", "null<", "/", "code", ">", "key", "or", "value", "is", "contained", "." ]
train
https://github.com/phax/ph-commons/blob/d28c03565f44a0b804d96028d0969f9bb38c4313/ph-commons/src/main/java/com/helger/commons/ValueEnforcer.java#L1011-L1027
DataSketches/sketches-core
src/main/java/com/yahoo/sketches/theta/IntersectionImpl.java
IntersectionImpl.initNewDirectInstance
static IntersectionImpl initNewDirectInstance(final long seed, final WritableMemory dstMem) { """ Construct a new Intersection target direct to the given destination Memory. Called by SetOperation.Builder. @param seed <a href="{@docRoot}/resources/dictionary.html#seed">See Seed</a> @param dstMem destination M...
java
static IntersectionImpl initNewDirectInstance(final long seed, final WritableMemory dstMem) { final IntersectionImpl impl = new IntersectionImpl(dstMem, seed, true); //Load Preamble insertPreLongs(dstMem, CONST_PREAMBLE_LONGS); //RF not used = 0 insertSerVer(dstMem, SER_VER); insertFamilyID(dstMem,...
[ "static", "IntersectionImpl", "initNewDirectInstance", "(", "final", "long", "seed", ",", "final", "WritableMemory", "dstMem", ")", "{", "final", "IntersectionImpl", "impl", "=", "new", "IntersectionImpl", "(", "dstMem", ",", "seed", ",", "true", ")", ";", "//Lo...
Construct a new Intersection target direct to the given destination Memory. Called by SetOperation.Builder. @param seed <a href="{@docRoot}/resources/dictionary.html#seed">See Seed</a> @param dstMem destination Memory. <a href="{@docRoot}/resources/dictionary.html#mem">See Memory</a> @return a new IntersectionImpl tha...
[ "Construct", "a", "new", "Intersection", "target", "direct", "to", "the", "given", "destination", "Memory", ".", "Called", "by", "SetOperation", ".", "Builder", "." ]
train
https://github.com/DataSketches/sketches-core/blob/900c8c9668a1e2f1d54d453e956caad54702e540/src/main/java/com/yahoo/sketches/theta/IntersectionImpl.java#L74-L98
phax/ph-commons
ph-commons/src/main/java/com/helger/commons/hashcode/HashCodeCalculator.java
HashCodeCalculator.append
public static int append (final int nPrevHashCode, final long x) { """ Atomic type hash code generation. @param nPrevHashCode The previous hash code used as the basis for calculation @param x Array to add @return The updated hash code """ final int nTemp = append (nPrevHashCode, (int) (x >>> CGlobal...
java
public static int append (final int nPrevHashCode, final long x) { final int nTemp = append (nPrevHashCode, (int) (x >>> CGlobal.BITS_PER_INT)); return append (nTemp, (int) (x & 0xffffffffL)); }
[ "public", "static", "int", "append", "(", "final", "int", "nPrevHashCode", ",", "final", "long", "x", ")", "{", "final", "int", "nTemp", "=", "append", "(", "nPrevHashCode", ",", "(", "int", ")", "(", "x", ">>>", "CGlobal", ".", "BITS_PER_INT", ")", ")...
Atomic type hash code generation. @param nPrevHashCode The previous hash code used as the basis for calculation @param x Array to add @return The updated hash code
[ "Atomic", "type", "hash", "code", "generation", "." ]
train
https://github.com/phax/ph-commons/blob/d28c03565f44a0b804d96028d0969f9bb38c4313/ph-commons/src/main/java/com/helger/commons/hashcode/HashCodeCalculator.java#L144-L148
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/postprocess/impl/CSSURLPathRewriterPostProcessor.java
CSSURLPathRewriterPostProcessor.getBundlePrefix
protected String getBundlePrefix(BundleProcessingStatus status, JawrConfig jawrConfig, String bundleName) { """ Returns the bundle prefix @param status the bundle processing status @param jawrConfig the jawr config @param bundleName the bundle name @return the bundle prefix """ // Generation the bu...
java
protected String getBundlePrefix(BundleProcessingStatus status, JawrConfig jawrConfig, String bundleName) { // Generation the bundle prefix String bundlePrefix = status.getCurrentBundle().getBundlePrefix(); if (bundlePrefix == null) { bundlePrefix = ""; } else { bundlePrefix = PathNormalizer.asPath(bundl...
[ "protected", "String", "getBundlePrefix", "(", "BundleProcessingStatus", "status", ",", "JawrConfig", "jawrConfig", ",", "String", "bundleName", ")", "{", "// Generation the bundle prefix", "String", "bundlePrefix", "=", "status", ".", "getCurrentBundle", "(", ")", ".",...
Returns the bundle prefix @param status the bundle processing status @param jawrConfig the jawr config @param bundleName the bundle name @return the bundle prefix
[ "Returns", "the", "bundle", "prefix" ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/postprocess/impl/CSSURLPathRewriterPostProcessor.java#L124-L142
GenesysPureEngage/provisioning-client-java
src/main/java/com/genesys/provisioning/ImportApi.java
ImportApi.getImportStatus
public ImportStatus getImportStatus(String adminName, String tenantName) throws ProvisioningApiException { """ Get import status. Get all active imports for the specified tenant. @param adminName The login name of an administrator for the tenant. (required) @param tenantName The name of the tenant. (required) ...
java
public ImportStatus getImportStatus(String adminName, String tenantName) throws ProvisioningApiException { try { GetImportStatusResponse resp = importApi.getImportStatus(adminName, tenantName); if (resp.getStatus().getCode().intValue() != 0) { throw new ProvisioningApiException("Error getting impor...
[ "public", "ImportStatus", "getImportStatus", "(", "String", "adminName", ",", "String", "tenantName", ")", "throws", "ProvisioningApiException", "{", "try", "{", "GetImportStatusResponse", "resp", "=", "importApi", ".", "getImportStatus", "(", "adminName", ",", "tenan...
Get import status. Get all active imports for the specified tenant. @param adminName The login name of an administrator for the tenant. (required) @param tenantName The name of the tenant. (required) @return ImportStatus object. @throws ProvisioningApiException if the call is unsuccessful.
[ "Get", "import", "status", ".", "Get", "all", "active", "imports", "for", "the", "specified", "tenant", "." ]
train
https://github.com/GenesysPureEngage/provisioning-client-java/blob/1ad594c3767cec83052168e350994f922a26f75e/src/main/java/com/genesys/provisioning/ImportApi.java#L116-L128
google/closure-templates
java/src/com/google/template/soy/jssrc/internal/JsSrcNameGenerators.java
JsSrcNameGenerators.forLocalVariables
public static UniqueNameGenerator forLocalVariables() { """ Returns a name generator suitable for generating local variable names. """ UniqueNameGenerator generator = new UniqueNameGenerator(DANGEROUS_CHARACTERS, "$$"); generator.reserve(JsSrcUtils.JS_LITERALS); generator.reserve(JsSrcUtils.JS_RESE...
java
public static UniqueNameGenerator forLocalVariables() { UniqueNameGenerator generator = new UniqueNameGenerator(DANGEROUS_CHARACTERS, "$$"); generator.reserve(JsSrcUtils.JS_LITERALS); generator.reserve(JsSrcUtils.JS_RESERVED_WORDS); return generator; }
[ "public", "static", "UniqueNameGenerator", "forLocalVariables", "(", ")", "{", "UniqueNameGenerator", "generator", "=", "new", "UniqueNameGenerator", "(", "DANGEROUS_CHARACTERS", ",", "\"$$\"", ")", ";", "generator", ".", "reserve", "(", "JsSrcUtils", ".", "JS_LITERAL...
Returns a name generator suitable for generating local variable names.
[ "Returns", "a", "name", "generator", "suitable", "for", "generating", "local", "variable", "names", "." ]
train
https://github.com/google/closure-templates/blob/cc61e1dff70ae97f24f417a57410081bc498bd56/java/src/com/google/template/soy/jssrc/internal/JsSrcNameGenerators.java#L34-L39
apache/groovy
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
DefaultGroovyMethods.mixin
public static void mixin(Class self, Class categoryClass) { """ Extend class globally with category methods. @param self any Class @param categoryClass a category class to use @since 1.6.0 """ mixin(getMetaClass(self), Collections.singletonList(categoryClass)); }
java
public static void mixin(Class self, Class categoryClass) { mixin(getMetaClass(self), Collections.singletonList(categoryClass)); }
[ "public", "static", "void", "mixin", "(", "Class", "self", ",", "Class", "categoryClass", ")", "{", "mixin", "(", "getMetaClass", "(", "self", ")", ",", "Collections", ".", "singletonList", "(", "categoryClass", ")", ")", ";", "}" ]
Extend class globally with category methods. @param self any Class @param categoryClass a category class to use @since 1.6.0
[ "Extend", "class", "globally", "with", "category", "methods", "." ]
train
https://github.com/apache/groovy/blob/71cf20addb611bb8d097a59e395fd20bc7f31772/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java#L589-L591
UrielCh/ovh-java-sdk
ovh-java-sdk-price/src/main/java/net/minidev/ovh/api/ApiOvhPrice.java
ApiOvhPrice.hosting_privateDatabase_privateDatabaseName_GET
public OvhPrice hosting_privateDatabase_privateDatabaseName_GET(net.minidev.ovh.api.price.hosting.OvhPrivateDatabaseEnum privateDatabaseName) throws IOException { """ Get the price for a private database REST: GET /price/hosting/privateDatabase/{privateDatabaseName} @param privateDatabaseName [required] Privat...
java
public OvhPrice hosting_privateDatabase_privateDatabaseName_GET(net.minidev.ovh.api.price.hosting.OvhPrivateDatabaseEnum privateDatabaseName) throws IOException { String qPath = "/price/hosting/privateDatabase/{privateDatabaseName}"; StringBuilder sb = path(qPath, privateDatabaseName); String resp = exec(qPath, "...
[ "public", "OvhPrice", "hosting_privateDatabase_privateDatabaseName_GET", "(", "net", ".", "minidev", ".", "ovh", ".", "api", ".", "price", ".", "hosting", ".", "OvhPrivateDatabaseEnum", "privateDatabaseName", ")", "throws", "IOException", "{", "String", "qPath", "=", ...
Get the price for a private database REST: GET /price/hosting/privateDatabase/{privateDatabaseName} @param privateDatabaseName [required] PrivateDatabase
[ "Get", "the", "price", "for", "a", "private", "database" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-price/src/main/java/net/minidev/ovh/api/ApiOvhPrice.java#L271-L276
khmarbaise/sapm
src/main/java/com/soebes/subversion/sapm/AccessRule.java
AccessRule.addNegative
public void addNegative(Group group, AccessLevel accessLevel) { """ Add the given group to the access list with it's appropriate {@link AccessLevel}. Negate the rule. <pre> ~group = rw </pre> This means that everybody who is NOT member of the group will get the permission (rw). @param group The group which ...
java
public void addNegative(Group group, AccessLevel accessLevel) { getAccessList().add(new Access(group, accessLevel, true)); }
[ "public", "void", "addNegative", "(", "Group", "group", ",", "AccessLevel", "accessLevel", ")", "{", "getAccessList", "(", ")", ".", "add", "(", "new", "Access", "(", "group", ",", "accessLevel", ",", "true", ")", ")", ";", "}" ]
Add the given group to the access list with it's appropriate {@link AccessLevel}. Negate the rule. <pre> ~group = rw </pre> This means that everybody who is NOT member of the group will get the permission (rw). @param group The group which will be added to the access list. @param accessLevel The accessLevel which will ...
[ "Add", "the", "given", "group", "to", "the", "access", "list", "with", "it", "s", "appropriate", "{" ]
train
https://github.com/khmarbaise/sapm/blob/b5da5b0d8929324f03cb3a4233a3534813f93eea/src/main/java/com/soebes/subversion/sapm/AccessRule.java#L170-L172
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildTasksInner.java
BuildTasksInner.getAsync
public Observable<BuildTaskInner> getAsync(String resourceGroupName, String registryName, String buildTaskName) { """ Get the properties of a specified build task. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container regi...
java
public Observable<BuildTaskInner> getAsync(String resourceGroupName, String registryName, String buildTaskName) { return getWithServiceResponseAsync(resourceGroupName, registryName, buildTaskName).map(new Func1<ServiceResponse<BuildTaskInner>, BuildTaskInner>() { @Override public BuildTa...
[ "public", "Observable", "<", "BuildTaskInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "registryName", ",", "String", "buildTaskName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "registryName", ",", "b...
Get the properties of a specified build task. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @param buildTaskName The name of the container registry build task. @throws IllegalArgumentException thrown if parameter...
[ "Get", "the", "properties", "of", "a", "specified", "build", "task", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildTasksInner.java#L394-L401
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/variant/VariantUtils.java
VariantUtils.getVariantKey
public static String getVariantKey(Map<String, String> curVariants, Set<String> variantTypes) { """ Resolves a registered path from a locale key, using the same algorithm used to locate ResourceBundles. @param curVariants the current variant map @param variantTypes the list of variant types @return the var...
java
public static String getVariantKey(Map<String, String> curVariants, Set<String> variantTypes) { String variantKey = ""; if (curVariants != null && variantTypes != null) { Map<String, String> tempVariants = new TreeMap<>(curVariants); StringBuilder variantKeyBuf = new StringBuilder(); for (Entry<String, S...
[ "public", "static", "String", "getVariantKey", "(", "Map", "<", "String", ",", "String", ">", "curVariants", ",", "Set", "<", "String", ">", "variantTypes", ")", "{", "String", "variantKey", "=", "\"\"", ";", "if", "(", "curVariants", "!=", "null", "&&", ...
Resolves a registered path from a locale key, using the same algorithm used to locate ResourceBundles. @param curVariants the current variant map @param variantTypes the list of variant types @return the variant key to use
[ "Resolves", "a", "registered", "path", "from", "a", "locale", "key", "using", "the", "same", "algorithm", "used", "to", "locate", "ResourceBundles", "." ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/variant/VariantUtils.java#L211-L236
javalite/activejdbc
activejdbc/src/main/java/org/javalite/activejdbc/cache/CacheManager.java
CacheManager.getKey
public String getKey(String tableName, String query, Object[] params) { """ Generates a cache key. Subclasses may override this implementation. @param tableName name of a table @param query query @param params query parameters. @return generated key for tied to these parameters. """ return tableN...
java
public String getKey(String tableName, String query, Object[] params) { return tableName + query + (params == null ? null : Arrays.asList(params).toString()); }
[ "public", "String", "getKey", "(", "String", "tableName", ",", "String", "query", ",", "Object", "[", "]", "params", ")", "{", "return", "tableName", "+", "query", "+", "(", "params", "==", "null", "?", "null", ":", "Arrays", ".", "asList", "(", "param...
Generates a cache key. Subclasses may override this implementation. @param tableName name of a table @param query query @param params query parameters. @return generated key for tied to these parameters.
[ "Generates", "a", "cache", "key", ".", "Subclasses", "may", "override", "this", "implementation", "." ]
train
https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/cache/CacheManager.java#L138-L140
alkacon/opencms-core
src/org/opencms/db/CmsAliasManager.java
CmsAliasManager.getRewriteAliasMatcher
public CmsRewriteAliasMatcher getRewriteAliasMatcher(CmsObject cms, String siteRoot) throws CmsException { """ Gets the rewrite alias matcher for the given site.<p> @param cms the CMS context to use @param siteRoot the site root @return the alias matcher for the site with the given site root @throws CmsE...
java
public CmsRewriteAliasMatcher getRewriteAliasMatcher(CmsObject cms, String siteRoot) throws CmsException { List<CmsRewriteAlias> aliases = getRewriteAliases(cms, siteRoot); return new CmsRewriteAliasMatcher(aliases); }
[ "public", "CmsRewriteAliasMatcher", "getRewriteAliasMatcher", "(", "CmsObject", "cms", ",", "String", "siteRoot", ")", "throws", "CmsException", "{", "List", "<", "CmsRewriteAlias", ">", "aliases", "=", "getRewriteAliases", "(", "cms", ",", "siteRoot", ")", ";", "...
Gets the rewrite alias matcher for the given site.<p> @param cms the CMS context to use @param siteRoot the site root @return the alias matcher for the site with the given site root @throws CmsException if something goes wrong
[ "Gets", "the", "rewrite", "alias", "matcher", "for", "the", "given", "site", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsAliasManager.java#L172-L176
xvik/guice-validator
src/main/java/ru/vyarus/guice/validator/group/ValidationContext.java
ValidationContext.doWithGroups
public <T> T doWithGroups(final GroupAction<T> action, final Class<?>... groups) { """ Defines context validation groups. Context is defined for all logic inside action callback (in current thread). Note: does not override current context groups. @param action action callback to be executed with validation gr...
java
public <T> T doWithGroups(final GroupAction<T> action, final Class<?>... groups) { pushContext(groups); try { return action.call(); } catch (Throwable ex) { throw Throwables.propagate(ex); } finally { popContext(); } }
[ "public", "<", "T", ">", "T", "doWithGroups", "(", "final", "GroupAction", "<", "T", ">", "action", ",", "final", "Class", "<", "?", ">", "...", "groups", ")", "{", "pushContext", "(", "groups", ")", ";", "try", "{", "return", "action", ".", "call", ...
Defines context validation groups. Context is defined for all logic inside action callback (in current thread). Note: does not override current context groups. @param action action callback to be executed with validation groups @param groups validation groups to use @param <T> action return type @return object prod...
[ "Defines", "context", "validation", "groups", ".", "Context", "is", "defined", "for", "all", "logic", "inside", "action", "callback", "(", "in", "current", "thread", ")", ".", "Note", ":", "does", "not", "override", "current", "context", "groups", "." ]
train
https://github.com/xvik/guice-validator/blob/e69d6722bbe653036bf1469393dddfa47a6491a6/src/main/java/ru/vyarus/guice/validator/group/ValidationContext.java#L55-L64
lessthanoptimal/BoofCV
main/boofcv-geo/src/main/java/boofcv/alg/geo/MultiViewOps.java
MultiViewOps.homographyStereoLinePt
public static DMatrixRMaj homographyStereoLinePt( DMatrixRMaj F , PairLineNorm line, AssociatedPair point) { """ Computes the homography induced from a planar surface when viewed from two views using correspondences of a line and a point. Observations must be on the planar surface. @see HomographyInducedStereo...
java
public static DMatrixRMaj homographyStereoLinePt( DMatrixRMaj F , PairLineNorm line, AssociatedPair point) { HomographyInducedStereoLinePt alg = new HomographyInducedStereoLinePt(); alg.setFundamental(F,null); alg.process(line,point); return alg.getHomography(); }
[ "public", "static", "DMatrixRMaj", "homographyStereoLinePt", "(", "DMatrixRMaj", "F", ",", "PairLineNorm", "line", ",", "AssociatedPair", "point", ")", "{", "HomographyInducedStereoLinePt", "alg", "=", "new", "HomographyInducedStereoLinePt", "(", ")", ";", "alg", ".",...
Computes the homography induced from a planar surface when viewed from two views using correspondences of a line and a point. Observations must be on the planar surface. @see HomographyInducedStereoLinePt @param F Fundamental matrix @param line Line on the plane @param point Point on the plane @return The homography ...
[ "Computes", "the", "homography", "induced", "from", "a", "planar", "surface", "when", "viewed", "from", "two", "views", "using", "correspondences", "of", "a", "line", "and", "a", "point", ".", "Observations", "must", "be", "on", "the", "planar", "surface", "...
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-geo/src/main/java/boofcv/alg/geo/MultiViewOps.java#L554-L560
segmentio/analytics-android
analytics/src/main/java/com/segment/analytics/Options.java
Options.putContext
public Options putContext(String key, Object value) { """ Attach some additional context information. Unlike with {@link com.segment.analytics.Analytics#getAnalyticsContext()}, this only has effect for this call. @param key The key of the extra context data @param value The value of the extra context data @r...
java
public Options putContext(String key, Object value) { context.put(key, value); return this; }
[ "public", "Options", "putContext", "(", "String", "key", ",", "Object", "value", ")", "{", "context", ".", "put", "(", "key", ",", "value", ")", ";", "return", "this", ";", "}" ]
Attach some additional context information. Unlike with {@link com.segment.analytics.Analytics#getAnalyticsContext()}, this only has effect for this call. @param key The key of the extra context data @param value The value of the extra context data @return This options object for chaining
[ "Attach", "some", "additional", "context", "information", ".", "Unlike", "with", "{", "@link", "com", ".", "segment", ".", "analytics", ".", "Analytics#getAnalyticsContext", "()", "}", "this", "only", "has", "effect", "for", "this", "call", "." ]
train
https://github.com/segmentio/analytics-android/blob/93c7d5bb09b593440a2347a6089db3e9f74012da/analytics/src/main/java/com/segment/analytics/Options.java#L127-L130
aws/aws-sdk-java
aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/CreateRouteResponseRequest.java
CreateRouteResponseRequest.withResponseParameters
public CreateRouteResponseRequest withResponseParameters(java.util.Map<String, ParameterConstraints> responseParameters) { """ <p> The route response parameters. </p> @param responseParameters The route response parameters. @return Returns a reference to this object so that method calls can be chained toget...
java
public CreateRouteResponseRequest withResponseParameters(java.util.Map<String, ParameterConstraints> responseParameters) { setResponseParameters(responseParameters); return this; }
[ "public", "CreateRouteResponseRequest", "withResponseParameters", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "ParameterConstraints", ">", "responseParameters", ")", "{", "setResponseParameters", "(", "responseParameters", ")", ";", "return", "this", ";"...
<p> The route response parameters. </p> @param responseParameters The route response parameters. @return Returns a reference to this object so that method calls can be chained together.
[ "<p", ">", "The", "route", "response", "parameters", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/CreateRouteResponseRequest.java#L236-L239
wuman/JReadability
src/main/java/com/wuman/jreadability/Readability.java
Readability.incrementContentScore
private static Element incrementContentScore(Element node, int increment) { """ Increase or decrease the content score for an Element by an increment/decrement. @param node @param increment @return """ int contentScore = getContentScore(node); contentScore += increment; node.attr(...
java
private static Element incrementContentScore(Element node, int increment) { int contentScore = getContentScore(node); contentScore += increment; node.attr(CONTENT_SCORE, Integer.toString(contentScore)); return node; }
[ "private", "static", "Element", "incrementContentScore", "(", "Element", "node", ",", "int", "increment", ")", "{", "int", "contentScore", "=", "getContentScore", "(", "node", ")", ";", "contentScore", "+=", "increment", ";", "node", ".", "attr", "(", "CONTENT...
Increase or decrease the content score for an Element by an increment/decrement. @param node @param increment @return
[ "Increase", "or", "decrease", "the", "content", "score", "for", "an", "Element", "by", "an", "increment", "/", "decrement", "." ]
train
https://github.com/wuman/JReadability/blob/16c18c42402bd13c6e024c2fd3a86dd28ba53e74/src/main/java/com/wuman/jreadability/Readability.java#L850-L855
khuxtable/seaglass
src/main/java/com/seaglasslookandfeel/SeaGlassSynthPainterImpl.java
SeaGlassSynthPainterImpl.paintSplitPaneDividerForeground
public void paintSplitPaneDividerForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation) { """ Paints the foreground of the divider of a split pane. @param context SynthContext identifying the <code>JComponent</code> and <code>Region</code> to paint to @param g ...
java
public void paintSplitPaneDividerForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation) { paintForeground(context, g, x, y, w, h, null); }
[ "public", "void", "paintSplitPaneDividerForeground", "(", "SynthContext", "context", ",", "Graphics", "g", ",", "int", "x", ",", "int", "y", ",", "int", "w", ",", "int", "h", ",", "int", "orientation", ")", "{", "paintForeground", "(", "context", ",", "g",...
Paints the foreground of the divider of a split pane. @param context SynthContext identifying the <code>JComponent</code> and <code>Region</code> to paint to @param g <code>Graphics</code> to paint to @param x X coordinate of the area to paint to @param y Y coordinate of the area to p...
[ "Paints", "the", "foreground", "of", "the", "divider", "of", "a", "split", "pane", "." ]
train
https://github.com/khuxtable/seaglass/blob/f25ecba622923d7b29b64cb7d6068dd8005989b3/src/main/java/com/seaglasslookandfeel/SeaGlassSynthPainterImpl.java#L1863-L1865
grails/grails-core
grails-plugin-controllers/src/main/groovy/org/grails/compiler/web/ControllerActionTransformer.java
ControllerActionTransformer.doesModulePathIncludeSubstring
private boolean doesModulePathIncludeSubstring(ModuleNode moduleNode, final String substring) { """ Checks to see if a Module is defined at a path which includes the specified substring @param moduleNode a ModuleNode @param substring The substring to search for @return true if moduleNode is defined at a path ...
java
private boolean doesModulePathIncludeSubstring(ModuleNode moduleNode, final String substring) { if (moduleNode == null) { return false; } boolean substringFoundInDescription = false; String commandObjectModuleDescription = moduleNode.getDescription(); if (commandObj...
[ "private", "boolean", "doesModulePathIncludeSubstring", "(", "ModuleNode", "moduleNode", ",", "final", "String", "substring", ")", "{", "if", "(", "moduleNode", "==", "null", ")", "{", "return", "false", ";", "}", "boolean", "substringFoundInDescription", "=", "fa...
Checks to see if a Module is defined at a path which includes the specified substring @param moduleNode a ModuleNode @param substring The substring to search for @return true if moduleNode is defined at a path which includes the specified substring
[ "Checks", "to", "see", "if", "a", "Module", "is", "defined", "at", "a", "path", "which", "includes", "the", "specified", "substring" ]
train
https://github.com/grails/grails-core/blob/c0b08aa995b0297143b75d05642abba8cb7b4122/grails-plugin-controllers/src/main/groovy/org/grails/compiler/web/ControllerActionTransformer.java#L855-L867
TheCoder4eu/BootsFaces-OSP
src/main/java/net/bootsfaces/render/CoreRenderer.java
CoreRenderer.getConverter
public static Converter getConverter(FacesContext fc, ValueHolder vh) { """ Finds the appropriate converter for a given value holder @param fc FacesContext instance @param vh ValueHolder instance to look converter for @return Converter """ // explicit converter Converter converter = vh.getConverte...
java
public static Converter getConverter(FacesContext fc, ValueHolder vh) { // explicit converter Converter converter = vh.getConverter(); // try to find implicit converter if (converter == null) { ValueExpression expr = ((UIComponent) vh).getValueExpression("value"); if (expr != null) { Class<?>...
[ "public", "static", "Converter", "getConverter", "(", "FacesContext", "fc", ",", "ValueHolder", "vh", ")", "{", "// explicit converter\r", "Converter", "converter", "=", "vh", ".", "getConverter", "(", ")", ";", "// try to find implicit converter\r", "if", "(", "con...
Finds the appropriate converter for a given value holder @param fc FacesContext instance @param vh ValueHolder instance to look converter for @return Converter
[ "Finds", "the", "appropriate", "converter", "for", "a", "given", "value", "holder" ]
train
https://github.com/TheCoder4eu/BootsFaces-OSP/blob/d1a70952bc240979b5272fa4fe1c7f100873add0/src/main/java/net/bootsfaces/render/CoreRenderer.java#L504-L520
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/classify/LinearClassifier.java
LinearClassifier.topFeaturesToString
public String topFeaturesToString(List<Triple<F,L,Double>> topFeatures) { """ Returns string representation of a list of top features @param topFeatures List of triples indicating feature, label, weight @return String representation of the list of features """ // find longest key length (for pretty prin...
java
public String topFeaturesToString(List<Triple<F,L,Double>> topFeatures) { // find longest key length (for pretty printing) with a limit int maxLeng = 0; for (Triple<F,L,Double> t : topFeatures) { String key = "(" + t.first + "," + t.second + ")"; int leng = key.length(); if (leng ...
[ "public", "String", "topFeaturesToString", "(", "List", "<", "Triple", "<", "F", ",", "L", ",", "Double", ">", ">", "topFeatures", ")", "{", "// find longest key length (for pretty printing) with a limit\r", "int", "maxLeng", "=", "0", ";", "for", "(", "Triple", ...
Returns string representation of a list of top features @param topFeatures List of triples indicating feature, label, weight @return String representation of the list of features
[ "Returns", "string", "representation", "of", "a", "list", "of", "top", "features" ]
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/LinearClassifier.java#L532-L568
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java
NameSpaceBinderImpl.bindJavaModule
@Override public void bindJavaModule(String name, EJBBinding bindingObject) { """ Adds the module binding to the java:module name space. @param name The lookup name. @param bindingObject The EJB binding information. """ ejbJavaColonHelper.addModuleBinding(moduleMetaData, name, bindingObject); ...
java
@Override public void bindJavaModule(String name, EJBBinding bindingObject) { ejbJavaColonHelper.addModuleBinding(moduleMetaData, name, bindingObject); }
[ "@", "Override", "public", "void", "bindJavaModule", "(", "String", "name", ",", "EJBBinding", "bindingObject", ")", "{", "ejbJavaColonHelper", ".", "addModuleBinding", "(", "moduleMetaData", ",", "name", ",", "bindingObject", ")", ";", "}" ]
Adds the module binding to the java:module name space. @param name The lookup name. @param bindingObject The EJB binding information.
[ "Adds", "the", "module", "binding", "to", "the", "java", ":", "module", "name", "space", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java#L108-L111
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/RedundentExprEliminator.java
RedundentExprEliminator.visitPredicate
public boolean visitPredicate(ExpressionOwner owner, Expression pred) { """ Visit a predicate within a location path. Note that there isn't a proper unique component for predicates, and that the expression will be called also for whatever type Expression is. @param owner The owner of the expression, to which...
java
public boolean visitPredicate(ExpressionOwner owner, Expression pred) { boolean savedIsSame = m_isSameContext; m_isSameContext = false; // Any further down, just collect the absolute paths. pred.callVisitors(owner, this); m_isSameContext = savedIsSame; // We've already gone down the subtree...
[ "public", "boolean", "visitPredicate", "(", "ExpressionOwner", "owner", ",", "Expression", "pred", ")", "{", "boolean", "savedIsSame", "=", "m_isSameContext", ";", "m_isSameContext", "=", "false", ";", "// Any further down, just collect the absolute paths.", "pred", ".", ...
Visit a predicate within a location path. Note that there isn't a proper unique component for predicates, and that the expression will be called also for whatever type Expression is. @param owner The owner of the expression, to which the expression can be reset if rewriting takes place. @param pred The predicate obje...
[ "Visit", "a", "predicate", "within", "a", "location", "path", ".", "Note", "that", "there", "isn", "t", "a", "proper", "unique", "component", "for", "predicates", "and", "that", "the", "expression", "will", "be", "called", "also", "for", "whatever", "type", ...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/RedundentExprEliminator.java#L1122-L1135
VoltDB/voltdb
src/frontend/org/voltcore/zk/MapCache.java
MapCache.processParentEvent
private void processParentEvent(WatchedEvent event) throws Exception { """ Rebuild the point-in-time snapshot of the children objects and set watches on new children. @Param event may be null on the first initialization. """ // get current children snapshot and reset this watch. Set<String>...
java
private void processParentEvent(WatchedEvent event) throws Exception { // get current children snapshot and reset this watch. Set<String> children = new TreeSet<String>(m_zk.getChildren(m_rootNode, m_parentWatch)); // intersect to get newChildren and update m_lastChildren to the current set. ...
[ "private", "void", "processParentEvent", "(", "WatchedEvent", "event", ")", "throws", "Exception", "{", "// get current children snapshot and reset this watch.", "Set", "<", "String", ">", "children", "=", "new", "TreeSet", "<", "String", ">", "(", "m_zk", ".", "get...
Rebuild the point-in-time snapshot of the children objects and set watches on new children. @Param event may be null on the first initialization.
[ "Rebuild", "the", "point", "-", "in", "-", "time", "snapshot", "of", "the", "children", "objects", "and", "set", "watches", "on", "new", "children", "." ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltcore/zk/MapCache.java#L235-L271
VoltDB/voltdb
src/frontend/org/voltdb/export/ExportGeneration.java
ExportGeneration.onSourceDrained
@Override public void onSourceDrained(int partitionId, String tableName) { """ The Export Data Source reports it is drained on an unused partition. """ ExportDataSource source; synchronized(m_dataSourcesByPartition) { Map<String, ExportDataSource> sources = m_dataSourcesByPartit...
java
@Override public void onSourceDrained(int partitionId, String tableName) { ExportDataSource source; synchronized(m_dataSourcesByPartition) { Map<String, ExportDataSource> sources = m_dataSourcesByPartition.get(partitionId); if (sources == null) { if (!m_remov...
[ "@", "Override", "public", "void", "onSourceDrained", "(", "int", "partitionId", ",", "String", "tableName", ")", "{", "ExportDataSource", "source", ";", "synchronized", "(", "m_dataSourcesByPartition", ")", "{", "Map", "<", "String", ",", "ExportDataSource", ">",...
The Export Data Source reports it is drained on an unused partition.
[ "The", "Export", "Data", "Source", "reports", "it", "is", "drained", "on", "an", "unused", "partition", "." ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/export/ExportGeneration.java#L845-L878
gallandarakhneorg/afc
core/inputoutput/src/main/java/org/arakhne/afc/inputoutput/xml/XMLUtil.java
XMLUtil.readResourceURL
@Pure public static URL readResourceURL(Element node, XMLResources resources, String... path) { """ Replies the resource URL that is contained inside the XML attribute defined in the given node and with the given XML path. @param node is the XML node to read. @param resources is the collection of resources t...
java
@Pure public static URL readResourceURL(Element node, XMLResources resources, String... path) { final String stringValue = getAttributeValue(node, path); if (XMLResources.isStringIdentifier(stringValue)) { try { final long id = XMLResources.getNumericalIdentifier(stringValue); return resources.getResour...
[ "@", "Pure", "public", "static", "URL", "readResourceURL", "(", "Element", "node", ",", "XMLResources", "resources", ",", "String", "...", "path", ")", "{", "final", "String", "stringValue", "=", "getAttributeValue", "(", "node", ",", "path", ")", ";", "if",...
Replies the resource URL that is contained inside the XML attribute defined in the given node and with the given XML path. @param node is the XML node to read. @param resources is the collection of resources to read. @param path is the XML path, relative to the node, of the attribute. The last element of the array is ...
[ "Replies", "the", "resource", "URL", "that", "is", "contained", "inside", "the", "XML", "attribute", "defined", "in", "the", "given", "node", "and", "with", "the", "given", "XML", "path", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/core/inputoutput/src/main/java/org/arakhne/afc/inputoutput/xml/XMLUtil.java#L2604-L2616
jbundle/jbundle
main/db/src/main/java/org/jbundle/main/user/db/UserFilter.java
UserFilter.setupDefaultView
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { """ Set up the default screen control for this field. @param itsLocation Location of this component on screen (ie., GridBagConstraint). @param t...
java
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { UserInfo user = (UserInfo)this.makeReferenceRecord(); user.addListener(new StringSubFileFilter(Integer.toString(UserGroup.RES_USER)...
[ "public", "ScreenComponent", "setupDefaultView", "(", "ScreenLoc", "itsLocation", ",", "ComponentParent", "targetScreen", ",", "Convert", "converter", ",", "int", "iDisplayFieldDesc", ",", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "UserInfo",...
Set up the default screen control for this field. @param itsLocation Location of this component on screen (ie., GridBagConstraint). @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). @param converter The converter to set the screenfield to. @param iDisplayFieldDesc Display the labe...
[ "Set", "up", "the", "default", "screen", "control", "for", "this", "field", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/db/src/main/java/org/jbundle/main/user/db/UserFilter.java#L74-L89
ReactiveX/RxJavaAsyncUtil
src/main/java/rx/util/async/Async.java
Async.toAsyncThrowing
public static <R> FuncN<Observable<R>> toAsyncThrowing(ThrowingFuncN<? extends R> func) { """ Convert a synchronous function call into an asynchronous function call through an Observable. <p> <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toAsync.png" alt=""> @param <R>...
java
public static <R> FuncN<Observable<R>> toAsyncThrowing(ThrowingFuncN<? extends R> func) { return toAsyncThrowing(func, Schedulers.computation()); }
[ "public", "static", "<", "R", ">", "FuncN", "<", "Observable", "<", "R", ">", ">", "toAsyncThrowing", "(", "ThrowingFuncN", "<", "?", "extends", "R", ">", "func", ")", "{", "return", "toAsyncThrowing", "(", "func", ",", "Schedulers", ".", "computation", ...
Convert a synchronous function call into an asynchronous function call through an Observable. <p> <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toAsync.png" alt=""> @param <R> the result type @param func the function to convert @return a function that returns an Observable that...
[ "Convert", "a", "synchronous", "function", "call", "into", "an", "asynchronous", "function", "call", "through", "an", "Observable", ".", "<p", ">", "<img", "width", "=", "640", "src", "=", "https", ":", "//", "raw", ".", "github", ".", "com", "/", "wiki"...
train
https://github.com/ReactiveX/RxJavaAsyncUtil/blob/6294e1da30e639df79f76399906229314c14e74d/src/main/java/rx/util/async/Async.java#L748-L750
pgjdbc/pgjdbc
pgjdbc/src/main/java/org/postgresql/core/Parser.java
Parser.parseAsKeyword
public static boolean parseAsKeyword(final char[] query, int offset) { """ Parse string to check presence of AS keyword regardless of case. @param query char[] of the query statement @param offset position of query to start checking @return boolean indicates presence of word """ if (query.length < (of...
java
public static boolean parseAsKeyword(final char[] query, int offset) { if (query.length < (offset + 2)) { return false; } return (query[offset] | 32) == 'a' && (query[offset + 1] | 32) == 's'; }
[ "public", "static", "boolean", "parseAsKeyword", "(", "final", "char", "[", "]", "query", ",", "int", "offset", ")", "{", "if", "(", "query", ".", "length", "<", "(", "offset", "+", "2", ")", ")", "{", "return", "false", ";", "}", "return", "(", "q...
Parse string to check presence of AS keyword regardless of case. @param query char[] of the query statement @param offset position of query to start checking @return boolean indicates presence of word
[ "Parse", "string", "to", "check", "presence", "of", "AS", "keyword", "regardless", "of", "case", "." ]
train
https://github.com/pgjdbc/pgjdbc/blob/95ba7b261e39754674c5817695ae5ebf9a341fae/pgjdbc/src/main/java/org/postgresql/core/Parser.java#L741-L748
Azure/azure-sdk-for-java
cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java
DatabaseAccountsInner.getReadOnlyKeys
public DatabaseAccountListReadOnlyKeysResultInner getReadOnlyKeys(String resourceGroupName, String accountName) { """ Lists the read-only access keys for the specified Azure Cosmos DB database account. @param resourceGroupName Name of an Azure resource group. @param accountName Cosmos DB database account name....
java
public DatabaseAccountListReadOnlyKeysResultInner getReadOnlyKeys(String resourceGroupName, String accountName) { return getReadOnlyKeysWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); }
[ "public", "DatabaseAccountListReadOnlyKeysResultInner", "getReadOnlyKeys", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "getReadOnlyKeysWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")", ".", "toBlocking", "(...
Lists the read-only access keys for the specified Azure Cosmos DB database account. @param resourceGroupName Name of an Azure resource group. @param accountName Cosmos DB database account name. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rej...
[ "Lists", "the", "read", "-", "only", "access", "keys", "for", "the", "specified", "Azure", "Cosmos", "DB", "database", "account", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java#L1628-L1630
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/PartialUpdate.java
PartialUpdate.addValueToField
public void addValueToField(String fieldName, Object value) { """ Add field with given name and value using {@link UpdateAction#ADD} to the fields to be updated. @param fieldName @param value """ add(new SimpleUpdateField(fieldName, value, UpdateAction.ADD)); }
java
public void addValueToField(String fieldName, Object value) { add(new SimpleUpdateField(fieldName, value, UpdateAction.ADD)); }
[ "public", "void", "addValueToField", "(", "String", "fieldName", ",", "Object", "value", ")", "{", "add", "(", "new", "SimpleUpdateField", "(", "fieldName", ",", "value", ",", "UpdateAction", ".", "ADD", ")", ")", ";", "}" ]
Add field with given name and value using {@link UpdateAction#ADD} to the fields to be updated. @param fieldName @param value
[ "Add", "field", "with", "given", "name", "and", "value", "using", "{", "@link", "UpdateAction#ADD", "}", "to", "the", "fields", "to", "be", "updated", "." ]
train
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/PartialUpdate.java#L79-L81
stephanenicolas/toothpick
toothpick-runtime/src/main/java/toothpick/ScopeImpl.java
ScopeImpl.installScopedProvider
private <T> InternalProviderImpl<? extends T> installScopedProvider(Class<T> clazz, String bindingName, ScopedProviderImpl<? extends T> scopedProvider, boolean isTestProvider) { """ Install the provider of the class {@code clazz} and name {@code bindingName} in the current scope. @param clazz the class f...
java
private <T> InternalProviderImpl<? extends T> installScopedProvider(Class<T> clazz, String bindingName, ScopedProviderImpl<? extends T> scopedProvider, boolean isTestProvider) { return installBoundProvider(clazz, bindingName, scopedProvider, isTestProvider); }
[ "private", "<", "T", ">", "InternalProviderImpl", "<", "?", "extends", "T", ">", "installScopedProvider", "(", "Class", "<", "T", ">", "clazz", ",", "String", "bindingName", ",", "ScopedProviderImpl", "<", "?", "extends", "T", ">", "scopedProvider", ",", "bo...
Install the provider of the class {@code clazz} and name {@code bindingName} in the current scope. @param clazz the class for which to install the scoped provider of this scope. @param bindingName the name, possibly {@code null}, for which to install the scoped provider. @param scopedProvider the internal provider to ...
[ "Install", "the", "provider", "of", "the", "class", "{", "@code", "clazz", "}", "and", "name", "{", "@code", "bindingName", "}", "in", "the", "current", "scope", "." ]
train
https://github.com/stephanenicolas/toothpick/blob/54476ca9a5fa48809c15a46e43e38db9ed7e1a75/toothpick-runtime/src/main/java/toothpick/ScopeImpl.java#L429-L432
voldemort/voldemort
src/java/voldemort/tools/admin/command/AdminCommandAsyncJob.java
AdminCommandAsyncJob.executeHelp
public static void executeHelp(String[] args, PrintStream stream) throws IOException { """ Parses command-line input and prints help menu. @throws IOException """ String subCmd = (args.length > 0) ? args[0] : ""; if(subCmd.equals("list")) { SubCommandAsyncJobList.printHelp(stream...
java
public static void executeHelp(String[] args, PrintStream stream) throws IOException { String subCmd = (args.length > 0) ? args[0] : ""; if(subCmd.equals("list")) { SubCommandAsyncJobList.printHelp(stream); } else if(subCmd.equals("stop")) { SubCommandAsyncJobStop.printHe...
[ "public", "static", "void", "executeHelp", "(", "String", "[", "]", "args", ",", "PrintStream", "stream", ")", "throws", "IOException", "{", "String", "subCmd", "=", "(", "args", ".", "length", ">", "0", ")", "?", "args", "[", "0", "]", ":", "\"\"", ...
Parses command-line input and prints help menu. @throws IOException
[ "Parses", "command", "-", "line", "input", "and", "prints", "help", "menu", "." ]
train
https://github.com/voldemort/voldemort/blob/a7dbdea58032021361680faacf2782cf981c5332/src/java/voldemort/tools/admin/command/AdminCommandAsyncJob.java#L76-L85
apache/flink
flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/drivers/parameter/Util.java
Util.checkParameter
public static void checkParameter(boolean condition, @Nullable Object errorMessage) { """ Checks the given boolean condition, and throws an {@code ProgramParametrizationException} if the condition is not met (evaluates to {@code false}). The exception will have the given error message. @param condition The co...
java
public static void checkParameter(boolean condition, @Nullable Object errorMessage) { if (!condition) { throw new ProgramParametrizationException(String.valueOf(errorMessage)); } }
[ "public", "static", "void", "checkParameter", "(", "boolean", "condition", ",", "@", "Nullable", "Object", "errorMessage", ")", "{", "if", "(", "!", "condition", ")", "{", "throw", "new", "ProgramParametrizationException", "(", "String", ".", "valueOf", "(", "...
Checks the given boolean condition, and throws an {@code ProgramParametrizationException} if the condition is not met (evaluates to {@code false}). The exception will have the given error message. @param condition The condition to check @param errorMessage The message for the {@code ProgramParametrizationException} th...
[ "Checks", "the", "given", "boolean", "condition", "and", "throws", "an", "{", "@code", "ProgramParametrizationException", "}", "if", "the", "condition", "is", "not", "met", "(", "evaluates", "to", "{", "@code", "false", "}", ")", ".", "The", "exception", "wi...
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/drivers/parameter/Util.java#L49-L53
algolia/instantsearch-android
ui/src/main/java/com/algolia/instantsearch/ui/databinding/RenderingHelper.java
RenderingHelper.shouldHighlight
public boolean shouldHighlight(@NonNull View view, @NonNull String attribute) { """ Checks if an attribute should be highlighted in a view. @param view the view using this attribute. @param attribute the attribute's name. @return {@code true} if the attribute was marked for highlighting. """ ...
java
public boolean shouldHighlight(@NonNull View view, @NonNull String attribute) { return highlightedAttributes.contains(new Pair<>(view.getId(), attribute)); }
[ "public", "boolean", "shouldHighlight", "(", "@", "NonNull", "View", "view", ",", "@", "NonNull", "String", "attribute", ")", "{", "return", "highlightedAttributes", ".", "contains", "(", "new", "Pair", "<>", "(", "view", ".", "getId", "(", ")", ",", "attr...
Checks if an attribute should be highlighted in a view. @param view the view using this attribute. @param attribute the attribute's name. @return {@code true} if the attribute was marked for highlighting.
[ "Checks", "if", "an", "attribute", "should", "be", "highlighted", "in", "a", "view", "." ]
train
https://github.com/algolia/instantsearch-android/blob/12092ec30140df9ffc2bf916339b433372034616/ui/src/main/java/com/algolia/instantsearch/ui/databinding/RenderingHelper.java#L86-L88
ddf-project/DDF
core/src/main/java/io/ddf/misc/Config.java
Config.getValueWithGlobalDefault
public static String getValueWithGlobalDefault(String section, ConfigConstant key) { """ If the named section does not have the value, then try the same key from the "global" section @param section @param key @return """ String value = getValue(section, key); return (Strings.isNullOrEmpty(value) ?...
java
public static String getValueWithGlobalDefault(String section, ConfigConstant key) { String value = getValue(section, key); return (Strings.isNullOrEmpty(value) ? getGlobalValue(key) : value); }
[ "public", "static", "String", "getValueWithGlobalDefault", "(", "String", "section", ",", "ConfigConstant", "key", ")", "{", "String", "value", "=", "getValue", "(", "section", ",", "key", ")", ";", "return", "(", "Strings", ".", "isNullOrEmpty", "(", "value",...
If the named section does not have the value, then try the same key from the "global" section @param section @param key @return
[ "If", "the", "named", "section", "does", "not", "have", "the", "value", "then", "try", "the", "same", "key", "from", "the", "global", "section" ]
train
https://github.com/ddf-project/DDF/blob/e4e68315dcec1ed8b287bf1ee73baa88e7e41eba/core/src/main/java/io/ddf/misc/Config.java#L68-L71
aws/aws-sdk-java
aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/Route.java
Route.withRequestModels
public Route withRequestModels(java.util.Map<String, String> requestModels) { """ <p> The request models for the route. </p> @param requestModels The request models for the route. @return Returns a reference to this object so that method calls can be chained together. """ setRequestModels(reques...
java
public Route withRequestModels(java.util.Map<String, String> requestModels) { setRequestModels(requestModels); return this; }
[ "public", "Route", "withRequestModels", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "requestModels", ")", "{", "setRequestModels", "(", "requestModels", ")", ";", "return", "this", ";", "}" ]
<p> The request models for the route. </p> @param requestModels The request models for the route. @return Returns a reference to this object so that method calls can be chained together.
[ "<p", ">", "The", "request", "models", "for", "the", "route", ".", "<", "/", "p", ">" ]
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/Route.java#L493-L496
jcuda/jcuda
JCudaJava/src/main/java/jcuda/driver/JCudaDriver.java
JCudaDriver.cuGLMapBufferObjectAsync
@Deprecated public static int cuGLMapBufferObjectAsync( CUdeviceptr dptr, long size[], int buffer, CUstream hStream) { """ Maps an OpenGL buffer object. <pre> CUresult cuGLMapBufferObjectAsync ( CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream ) </pre> <div> <p>Maps an OpenGL buffe...
java
@Deprecated public static int cuGLMapBufferObjectAsync( CUdeviceptr dptr, long size[], int buffer, CUstream hStream) { return checkResult((cuGLMapBufferObjectAsyncNative(dptr, size, buffer, hStream))); }
[ "@", "Deprecated", "public", "static", "int", "cuGLMapBufferObjectAsync", "(", "CUdeviceptr", "dptr", ",", "long", "size", "[", "]", ",", "int", "buffer", ",", "CUstream", "hStream", ")", "{", "return", "checkResult", "(", "(", "cuGLMapBufferObjectAsyncNative", ...
Maps an OpenGL buffer object. <pre> CUresult cuGLMapBufferObjectAsync ( CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream ) </pre> <div> <p>Maps an OpenGL buffer object. Deprecated<span>This function is deprecated as of Cuda 3.0.</span>Maps the buffer object specified by <tt>buffer</tt> into the address...
[ "Maps", "an", "OpenGL", "buffer", "object", "." ]
train
https://github.com/jcuda/jcuda/blob/468528b5b9b37dfceb6ed83fcfd889e9b359f984/JCudaJava/src/main/java/jcuda/driver/JCudaDriver.java#L15714-L15718
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/SecurityActions.java
SecurityActions.getSystemProperty
static String getSystemProperty(final String name, final String defaultValue) { """ Return the current value of the specified system property @param name @param defaultValue @return """ PrivilegedAction<String> action = new PrivilegedAction<String>() { public String run() { ...
java
static String getSystemProperty(final String name, final String defaultValue) { PrivilegedAction<String> action = new PrivilegedAction<String>() { public String run() { return System.getProperty(name, defaultValue); } }; return AccessController.doPrivile...
[ "static", "String", "getSystemProperty", "(", "final", "String", "name", ",", "final", "String", "defaultValue", ")", "{", "PrivilegedAction", "<", "String", ">", "action", "=", "new", "PrivilegedAction", "<", "String", ">", "(", ")", "{", "public", "String", ...
Return the current value of the specified system property @param name @param defaultValue @return
[ "Return", "the", "current", "value", "of", "the", "specified", "system", "property" ]
train
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/SecurityActions.java#L90-L100
netty/netty
transport/src/main/java/io/netty/channel/pool/SimpleChannelPool.java
SimpleChannelPool.releaseAndOfferIfHealthy
private void releaseAndOfferIfHealthy(Channel channel, Promise<Void> promise, Future<Boolean> future) throws Exception { """ Adds the channel back to the pool only if the channel is healthy. @param channel the channel to put back to the pool @param promise offer operation promise. @param future the ...
java
private void releaseAndOfferIfHealthy(Channel channel, Promise<Void> promise, Future<Boolean> future) throws Exception { if (future.getNow()) { //channel turns out to be healthy, offering and releasing it. releaseAndOffer(channel, promise); } else { //channel not healthy, just re...
[ "private", "void", "releaseAndOfferIfHealthy", "(", "Channel", "channel", ",", "Promise", "<", "Void", ">", "promise", ",", "Future", "<", "Boolean", ">", "future", ")", "throws", "Exception", "{", "if", "(", "future", ".", "getNow", "(", ")", ")", "{", ...
Adds the channel back to the pool only if the channel is healthy. @param channel the channel to put back to the pool @param promise offer operation promise. @param future the future that contains information fif channel is healthy or not. @throws Exception in case when failed to notify handler about release operation.
[ "Adds", "the", "channel", "back", "to", "the", "pool", "only", "if", "the", "channel", "is", "healthy", "." ]
train
https://github.com/netty/netty/blob/ba06eafa1c1824bd154f1a380019e7ea2edf3c4c/transport/src/main/java/io/netty/channel/pool/SimpleChannelPool.java#L340-L348
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/TypeMaker.java
TypeMaker.typeParametersString
static String typeParametersString(DocEnv env, Symbol sym, boolean full) { """ Return the formal type parameters of a class or method as an angle-bracketed string. Each parameter is a type variable with optional bounds. Class names are qualified if "full" is true. Return "" if there are no type parameters or ...
java
static String typeParametersString(DocEnv env, Symbol sym, boolean full) { if (env.legacyDoclet || sym.type.getTypeArguments().isEmpty()) { return ""; } StringBuilder s = new StringBuilder(); for (Type t : sym.type.getTypeArguments()) { s.append(s.length() == 0 ? ...
[ "static", "String", "typeParametersString", "(", "DocEnv", "env", ",", "Symbol", "sym", ",", "boolean", "full", ")", "{", "if", "(", "env", ".", "legacyDoclet", "||", "sym", ".", "type", ".", "getTypeArguments", "(", ")", ".", "isEmpty", "(", ")", ")", ...
Return the formal type parameters of a class or method as an angle-bracketed string. Each parameter is a type variable with optional bounds. Class names are qualified if "full" is true. Return "" if there are no type parameters or we're hiding generics.
[ "Return", "the", "formal", "type", "parameters", "of", "a", "class", "or", "method", "as", "an", "angle", "-", "bracketed", "string", ".", "Each", "parameter", "is", "a", "type", "variable", "with", "optional", "bounds", ".", "Class", "names", "are", "qual...
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/TypeMaker.java#L184-L195
openzipkin-contrib/brave-opentracing
src/main/java/brave/opentracing/BraveScopeManager.java
BraveScopeManager.currentSpan
BraveSpan currentSpan() { """ Attempts to get a span from the current api, falling back to brave's native one """ BraveScope scope = currentScopes.get().peekFirst(); if (scope != null) { return scope.span(); } else { brave.Span braveSpan = tracer.currentSpan(); if (braveSpan != nu...
java
BraveSpan currentSpan() { BraveScope scope = currentScopes.get().peekFirst(); if (scope != null) { return scope.span(); } else { brave.Span braveSpan = tracer.currentSpan(); if (braveSpan != null) { return new BraveSpan(tracer, braveSpan); } } return null; }
[ "BraveSpan", "currentSpan", "(", ")", "{", "BraveScope", "scope", "=", "currentScopes", ".", "get", "(", ")", ".", "peekFirst", "(", ")", ";", "if", "(", "scope", "!=", "null", ")", "{", "return", "scope", ".", "span", "(", ")", ";", "}", "else", "...
Attempts to get a span from the current api, falling back to brave's native one
[ "Attempts", "to", "get", "a", "span", "from", "the", "current", "api", "falling", "back", "to", "brave", "s", "native", "one" ]
train
https://github.com/openzipkin-contrib/brave-opentracing/blob/07653ac3a67beb7df71008961051ff03db2b60b7/src/main/java/brave/opentracing/BraveScopeManager.java#L63-L74
jferard/fastods
fastods/src/main/java/com/github/jferard/fastods/Table.java
Table.setRowsSpanned
public void setRowsSpanned(final int rowIndex, final int colIndex, final int n) throws IOException { """ Set a span over rows @param rowIndex the row index @param colIndex the col index @param n the number of rows @throws IOException if an error occurs """ this.builder.setRow...
java
public void setRowsSpanned(final int rowIndex, final int colIndex, final int n) throws IOException { this.builder.setRowsSpanned(this, this.appender, rowIndex, colIndex, n); }
[ "public", "void", "setRowsSpanned", "(", "final", "int", "rowIndex", ",", "final", "int", "colIndex", ",", "final", "int", "n", ")", "throws", "IOException", "{", "this", ".", "builder", ".", "setRowsSpanned", "(", "this", ",", "this", ".", "appender", ","...
Set a span over rows @param rowIndex the row index @param colIndex the col index @param n the number of rows @throws IOException if an error occurs
[ "Set", "a", "span", "over", "rows" ]
train
https://github.com/jferard/fastods/blob/a034d173083ffa602dc525699b97f753082eaef9/fastods/src/main/java/com/github/jferard/fastods/Table.java#L325-L328
pippo-java/pippo
pippo-core/src/main/java/ro/pippo/core/util/StringUtils.java
StringUtils.removeStart
public static String removeStart(String str, String remove) { """ <p>Removes a substring only if it is at the start of a source string, otherwise returns the source string.</p> <p/> <p>A {@code null} source string will return {@code null}. An empty ("") source string will return the empty string. A {@code nul...
java
public static String removeStart(String str, String remove) { if (isNullOrEmpty(str) || isNullOrEmpty(remove)) { return str; } if (str.startsWith(remove)) { return str.substring(remove.length()); } return str; }
[ "public", "static", "String", "removeStart", "(", "String", "str", ",", "String", "remove", ")", "{", "if", "(", "isNullOrEmpty", "(", "str", ")", "||", "isNullOrEmpty", "(", "remove", ")", ")", "{", "return", "str", ";", "}", "if", "(", "str", ".", ...
<p>Removes a substring only if it is at the start of a source string, otherwise returns the source string.</p> <p/> <p>A {@code null} source string will return {@code null}. An empty ("") source string will return the empty string. A {@code null} search string will return the source string.</p> <p/> <pre> StringUtils.r...
[ "<p", ">", "Removes", "a", "substring", "only", "if", "it", "is", "at", "the", "start", "of", "a", "source", "string", "otherwise", "returns", "the", "source", "string", ".", "<", "/", "p", ">", "<p", "/", ">", "<p", ">", "A", "{", "@code", "null",...
train
https://github.com/pippo-java/pippo/blob/cb5ccb453bffcc3cf386adc660674812d10b9726/pippo-core/src/main/java/ro/pippo/core/util/StringUtils.java#L76-L86
alibaba/canal
driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationPacket.java
ClientAuthenticationPacket.toBytes
public byte[] toBytes() throws IOException { """ <pre> VERSION 4.1 Bytes Name ----- ---- 4 client_flags 4 max_packet_size 1 charset_number 23 (filler) alwa...
java
public byte[] toBytes() throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); // 1. write client_flags ByteHelper.writeUnsignedIntLittleEndian(clientCapability, out); // remove // client_interactive // feature // 2. write max_packet_size B...
[ "public", "byte", "[", "]", "toBytes", "(", ")", "throws", "IOException", "{", "ByteArrayOutputStream", "out", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "// 1. write client_flags", "ByteHelper", ".", "writeUnsignedIntLittleEndian", "(", "clientCapability", "...
<pre> VERSION 4.1 Bytes Name ----- ---- 4 client_flags 4 max_packet_size 1 charset_number 23 (filler) always 0x00... n (Null-Terminated String) user n (Length Coded ...
[ "<pre", ">", "VERSION", "4", ".", "1", "Bytes", "Name", "-----", "----", "4", "client_flags", "4", "max_packet_size", "1", "charset_number", "23", "(", "filler", ")", "always", "0x00", "...", "n", "(", "Null", "-", "Terminated", "String", ")", "user", "n...
train
https://github.com/alibaba/canal/blob/8f088cddc0755f4350c5aaae95c6e4002d90a40f/driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationPacket.java#L50-L86
vznet/mongo-jackson-mapper
src/main/java/net/vz/mongodb/jackson/JacksonDBCollection.java
JacksonDBCollection.findAndModify
public T findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) { """ Finds the first document in the query and updates it. @param query query to match @param fields fields to be returned @param sort sort to apply before pi...
java
public T findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) { return convertFromDbObject(dbCollection.findAndModify(serializeFields(query), fields, sort, remove, update, returnNew, upsert)); }
[ "public", "T", "findAndModify", "(", "DBObject", "query", ",", "DBObject", "fields", ",", "DBObject", "sort", ",", "boolean", "remove", ",", "DBObject", "update", ",", "boolean", "returnNew", ",", "boolean", "upsert", ")", "{", "return", "convertFromDbObject", ...
Finds the first document in the query and updates it. @param query query to match @param fields fields to be returned @param sort sort to apply before picking first document @param remove if true, document found will be removed @param update update to apply @param returnNew if true, the updated docum...
[ "Finds", "the", "first", "document", "in", "the", "query", "and", "updates", "it", "." ]
train
https://github.com/vznet/mongo-jackson-mapper/blob/ecd189aefa89636cddf70fb383f5d676be347976/src/main/java/net/vz/mongodb/jackson/JacksonDBCollection.java#L581-L583
docusign/docusign-java-client
src/main/java/com/docusign/esign/api/UsersApi.java
UsersApi.getInformation
public UserInformation getInformation(String accountId, String userId, UsersApi.GetInformationOptions options) throws ApiException { """ Gets the user information for a specified user. Retrieves the user information for the specified user. To return additional user information that details the last login date, ...
java
public UserInformation getInformation(String accountId, String userId, UsersApi.GetInformationOptions options) throws ApiException { Object localVarPostBody = "{}"; // verify the required parameter 'accountId' is set if (accountId == null) { throw new ApiException(400, "Missing the required p...
[ "public", "UserInformation", "getInformation", "(", "String", "accountId", ",", "String", "userId", ",", "UsersApi", ".", "GetInformationOptions", "options", ")", "throws", "ApiException", "{", "Object", "localVarPostBody", "=", "\"{}\"", ";", "// verify the required pa...
Gets the user information for a specified user. Retrieves the user information for the specified user. To return additional user information that details the last login date, login status, and the user&#39;s password expiration date, set the optional &#x60;additional_info&#x60; query string parameter to **true**. @pa...
[ "Gets", "the", "user", "information", "for", "a", "specified", "user", ".", "Retrieves", "the", "user", "information", "for", "the", "specified", "user", ".", "To", "return", "additional", "user", "information", "that", "details", "the", "last", "login", "date...
train
https://github.com/docusign/docusign-java-client/blob/17ae82ace0f023e98edf813be832950568212e34/src/main/java/com/docusign/esign/api/UsersApi.java#L632-L675
redkale/redkale
src/org/redkale/convert/json/JsonByteBufferReader.java
JsonByteBufferReader.readArrayB
@Override public final int readArrayB(DeMember member, byte[] typevals, Decodeable decoder) { """ 判断下一个非空白字符是否为[ @param member DeMember @param typevals byte[] @param decoder Decodeable @return SIGN_NOLENGTH 或 SIGN_NULL """ char ch = nextGoodChar(); if (ch == '[' || ch == '{') ...
java
@Override public final int readArrayB(DeMember member, byte[] typevals, Decodeable decoder) { char ch = nextGoodChar(); if (ch == '[' || ch == '{') return SIGN_NOLENGTH; if (ch == 'n' && nextChar() == 'u' && nextChar() == 'l' && nextChar() == 'l') return SIGN_NULL; if (ch == 'N'...
[ "@", "Override", "public", "final", "int", "readArrayB", "(", "DeMember", "member", ",", "byte", "[", "]", "typevals", ",", "Decodeable", "decoder", ")", "{", "char", "ch", "=", "nextGoodChar", "(", ")", ";", "if", "(", "ch", "==", "'", "'", "||", "c...
判断下一个非空白字符是否为[ @param member DeMember @param typevals byte[] @param decoder Decodeable @return SIGN_NOLENGTH 或 SIGN_NULL
[ "判断下一个非空白字符是否为", "[" ]
train
https://github.com/redkale/redkale/blob/ea5169b5c5ea7412fd762331c0c497165832e901/src/org/redkale/convert/json/JsonByteBufferReader.java#L148-L162
kyoken74/gwt-angular
gwt-angular-resources/src/main/java/com/asayama/gwt/angular/resources/client/directive/GwtImageResource.java
GwtImageResource.link
@Override public void link(NGScope scope, JQElement element, JSON attrs) { """ Replaces the element body with the ImageResource passed via gwt-image-resource attribute. """ ImageResource resource = scope.get(getName()); if (resource == null) { LOG.log(Level.WARNING, "Mandatory ...
java
@Override public void link(NGScope scope, JQElement element, JSON attrs) { ImageResource resource = scope.get(getName()); if (resource == null) { LOG.log(Level.WARNING, "Mandatory attribute " + getName() + " value is mssing"); return; } Image image = new Image...
[ "@", "Override", "public", "void", "link", "(", "NGScope", "scope", ",", "JQElement", "element", ",", "JSON", "attrs", ")", "{", "ImageResource", "resource", "=", "scope", ".", "get", "(", "getName", "(", ")", ")", ";", "if", "(", "resource", "==", "nu...
Replaces the element body with the ImageResource passed via gwt-image-resource attribute.
[ "Replaces", "the", "element", "body", "with", "the", "ImageResource", "passed", "via", "gwt", "-", "image", "-", "resource", "attribute", "." ]
train
https://github.com/kyoken74/gwt-angular/blob/99a6efa277dd4771d9cba976b25fdf0ac4fdeca2/gwt-angular-resources/src/main/java/com/asayama/gwt/angular/resources/client/directive/GwtImageResource.java#L49-L63
mlhartme/sushi
src/main/java/net/oneandone/sushi/fs/filter/Filter.java
Filter.matches
public boolean matches(String path) { """ Tests includes an excludes. CAUTION: does not support checks that need a node (like predicates). Ignores "followSymlinks" """ List<String> segments; segments = Filesystem.SEPARATOR.split(path); if (segments.size() < minDepth || segments.size() ...
java
public boolean matches(String path) { List<String> segments; segments = Filesystem.SEPARATOR.split(path); if (segments.size() < minDepth || segments.size() > maxDepth) { return false; } if (predicates.size() > 0) { throw new UnsupportedOperationException(...
[ "public", "boolean", "matches", "(", "String", "path", ")", "{", "List", "<", "String", ">", "segments", ";", "segments", "=", "Filesystem", ".", "SEPARATOR", ".", "split", "(", "path", ")", ";", "if", "(", "segments", ".", "size", "(", ")", "<", "mi...
Tests includes an excludes. CAUTION: does not support checks that need a node (like predicates). Ignores "followSymlinks"
[ "Tests", "includes", "an", "excludes", ".", "CAUTION", ":", "does", "not", "support", "checks", "that", "need", "a", "node", "(", "like", "predicates", ")", ".", "Ignores", "followSymlinks" ]
train
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/fs/filter/Filter.java#L231-L242
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java
AuthenticationServiceImpl.updateCacheState
private void updateCacheState(Map<String, Object> props) { """ Based on the configuration properties, the auth cache should either be active or not. @param props """ getAuthenticationConfig(props); if (cacheEnabled) { authCacheServiceRef.activate(cc); } else { ...
java
private void updateCacheState(Map<String, Object> props) { getAuthenticationConfig(props); if (cacheEnabled) { authCacheServiceRef.activate(cc); } else { authCacheServiceRef.deactivate(cc); } }
[ "private", "void", "updateCacheState", "(", "Map", "<", "String", ",", "Object", ">", "props", ")", "{", "getAuthenticationConfig", "(", "props", ")", ";", "if", "(", "cacheEnabled", ")", "{", "authCacheServiceRef", ".", "activate", "(", "cc", ")", ";", "}...
Based on the configuration properties, the auth cache should either be active or not. @param props
[ "Based", "on", "the", "configuration", "properties", "the", "auth", "cache", "should", "either", "be", "active", "or", "not", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java#L141-L149
tvesalainen/util
util/src/main/java/org/vesalainen/math/CircleFitter.java
CircleFitter.meanCenter
public static double meanCenter(DenseMatrix64F points, DenseMatrix64F center) { """ Calculates mean tempCenter of points @param points in @param center out @return """ assert points.numCols == 2; assert center.numCols == 1; assert center.numRows == 2; center.zero(); ...
java
public static double meanCenter(DenseMatrix64F points, DenseMatrix64F center) { assert points.numCols == 2; assert center.numCols == 1; assert center.numRows == 2; center.zero(); int count = points.numRows; double[] d = points.data; for (int i=0;i<coun...
[ "public", "static", "double", "meanCenter", "(", "DenseMatrix64F", "points", ",", "DenseMatrix64F", "center", ")", "{", "assert", "points", ".", "numCols", "==", "2", ";", "assert", "center", ".", "numCols", "==", "1", ";", "assert", "center", ".", "numRows"...
Calculates mean tempCenter of points @param points in @param center out @return
[ "Calculates", "mean", "tempCenter", "of", "points" ]
train
https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/math/CircleFitter.java#L193-L217
quattor/pan
panc/src/main/java/org/quattor/pan/ttemplate/BuildContext.java
BuildContext.setGlobalVariable
public void setGlobalVariable(String name, GlobalVariable variable) { """ Set the variable to the given GlobalVariable. If variable is null, then the global variable definition is removed. @param name global variable name @param variable GlobalVariable to associate with name """ assert (name != null)...
java
public void setGlobalVariable(String name, GlobalVariable variable) { assert (name != null); if (variable != null) { globalVariables.put(name, variable); } else { globalVariables.remove(name); } }
[ "public", "void", "setGlobalVariable", "(", "String", "name", ",", "GlobalVariable", "variable", ")", "{", "assert", "(", "name", "!=", "null", ")", ";", "if", "(", "variable", "!=", "null", ")", "{", "globalVariables", ".", "put", "(", "name", ",", "var...
Set the variable to the given GlobalVariable. If variable is null, then the global variable definition is removed. @param name global variable name @param variable GlobalVariable to associate with name
[ "Set", "the", "variable", "to", "the", "given", "GlobalVariable", ".", "If", "variable", "is", "null", "then", "the", "global", "variable", "definition", "is", "removed", "." ]
train
https://github.com/quattor/pan/blob/009934a603dd0c08d3fa4bb7d9389c380a916f54/panc/src/main/java/org/quattor/pan/ttemplate/BuildContext.java#L615-L624
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/DocEnv.java
DocEnv.getAnnotationTypeElementDoc
public AnnotationTypeElementDocImpl getAnnotationTypeElementDoc( MethodSymbol meth) { """ Return the AnnotationTypeElementDoc for a MethodSymbol. Should be called only on symbols representing annotation type elements. """ AnnotationTypeElementDocImpl result = (AnnotationTypeEl...
java
public AnnotationTypeElementDocImpl getAnnotationTypeElementDoc( MethodSymbol meth) { AnnotationTypeElementDocImpl result = (AnnotationTypeElementDocImpl)methodMap.get(meth); if (result != null) return result; result = new AnnotationTypeElementDocImpl(this, meth); ...
[ "public", "AnnotationTypeElementDocImpl", "getAnnotationTypeElementDoc", "(", "MethodSymbol", "meth", ")", "{", "AnnotationTypeElementDocImpl", "result", "=", "(", "AnnotationTypeElementDocImpl", ")", "methodMap", ".", "get", "(", "meth", ")", ";", "if", "(", "result", ...
Return the AnnotationTypeElementDoc for a MethodSymbol. Should be called only on symbols representing annotation type elements.
[ "Return", "the", "AnnotationTypeElementDoc", "for", "a", "MethodSymbol", ".", "Should", "be", "called", "only", "on", "symbols", "representing", "annotation", "type", "elements", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/DocEnv.java#L731-L740
lotaris/jee-validation
src/main/java/com/lotaris/jee/validation/preprocessing/ApiPreprocessingContext.java
ApiPreprocessingContext.withState
public <T> ApiPreprocessingContext withState(T state, Class<? extends T> stateClass) { """ Adds the specified state object to the validation context. It can be retrieved by passing the identifying class to {@link #getState(java.lang.Class)}. @param <T> the type of state @param state the state object @param s...
java
public <T> ApiPreprocessingContext withState(T state, Class<? extends T> stateClass) { validationContext.addState(state, stateClass); return this; }
[ "public", "<", "T", ">", "ApiPreprocessingContext", "withState", "(", "T", "state", ",", "Class", "<", "?", "extends", "T", ">", "stateClass", ")", "{", "validationContext", ".", "addState", "(", "state", ",", "stateClass", ")", ";", "return", "this", ";",...
Adds the specified state object to the validation context. It can be retrieved by passing the identifying class to {@link #getState(java.lang.Class)}. @param <T> the type of state @param state the state object @param stateClass the class identifying the state @return this context @throws IllegalArgumentException if a ...
[ "Adds", "the", "specified", "state", "object", "to", "the", "validation", "context", ".", "It", "can", "be", "retrieved", "by", "passing", "the", "identifying", "class", "to", "{", "@link", "#getState", "(", "java", ".", "lang", ".", "Class", ")", "}", "...
train
https://github.com/lotaris/jee-validation/blob/feefff820b5a67c7471a13e08fdaf2d60bb3ad16/src/main/java/com/lotaris/jee/validation/preprocessing/ApiPreprocessingContext.java#L168-L171
joniles/mpxj
src/main/java/net/sf/mpxj/phoenix/PhoenixReader.java
PhoenixReader.readAssignments
private void readAssignments(Resource mpxjResource, net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource res) { """ Reads Phoenix resource assignments. @param mpxjResource MPXJ resource @param res Phoenix resource """ for (Assignment assignment : res.getAssignment()) { ...
java
private void readAssignments(Resource mpxjResource, net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource res) { for (Assignment assignment : res.getAssignment()) { readAssignment(mpxjResource, assignment); } }
[ "private", "void", "readAssignments", "(", "Resource", "mpxjResource", ",", "net", ".", "sf", ".", "mpxj", ".", "phoenix", ".", "schema", ".", "Project", ".", "Storepoints", ".", "Storepoint", ".", "Resources", ".", "Resource", "res", ")", "{", "for", "(",...
Reads Phoenix resource assignments. @param mpxjResource MPXJ resource @param res Phoenix resource
[ "Reads", "Phoenix", "resource", "assignments", "." ]
train
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/phoenix/PhoenixReader.java#L631-L637
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java
CommandLineLinker.runCommand
protected int runCommand(final CCTask task, final File workingDir, final String[] cmdline) throws BuildException { """ This method is exposed so test classes can overload and test the arguments without actually spawning the compiler """ return CUtil.runCommand(task, workingDir, cmdline, this.newEnvironme...
java
protected int runCommand(final CCTask task, final File workingDir, final String[] cmdline) throws BuildException { return CUtil.runCommand(task, workingDir, cmdline, this.newEnvironment, this.env); }
[ "protected", "int", "runCommand", "(", "final", "CCTask", "task", ",", "final", "File", "workingDir", ",", "final", "String", "[", "]", "cmdline", ")", "throws", "BuildException", "{", "return", "CUtil", ".", "runCommand", "(", "task", ",", "workingDir", ","...
This method is exposed so test classes can overload and test the arguments without actually spawning the compiler
[ "This", "method", "is", "exposed", "so", "test", "classes", "can", "overload", "and", "test", "the", "arguments", "without", "actually", "spawning", "the", "compiler" ]
train
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java#L492-L494
blinkfox/zealot
src/main/java/com/blinkfox/zealot/core/ZealotKhala.java
ZealotKhala.andNotIn
public ZealotKhala andNotIn(String field, Object[] values) { """ 生成带" AND "前缀的" NOT IN "范围查询的SQL片段. @param field 数据库字段 @param values 数组的值 @return ZealotKhala实例 """ return this.doIn(ZealotConst.AND_PREFIX, field, values, true, false); }
java
public ZealotKhala andNotIn(String field, Object[] values) { return this.doIn(ZealotConst.AND_PREFIX, field, values, true, false); }
[ "public", "ZealotKhala", "andNotIn", "(", "String", "field", ",", "Object", "[", "]", "values", ")", "{", "return", "this", ".", "doIn", "(", "ZealotConst", ".", "AND_PREFIX", ",", "field", ",", "values", ",", "true", ",", "false", ")", ";", "}" ]
生成带" AND "前缀的" NOT IN "范围查询的SQL片段. @param field 数据库字段 @param values 数组的值 @return ZealotKhala实例
[ "生成带", "AND", "前缀的", "NOT", "IN", "范围查询的SQL片段", "." ]
train
https://github.com/blinkfox/zealot/blob/21b00fa3e4ed42188eef3116d494e112e7a4194c/src/main/java/com/blinkfox/zealot/core/ZealotKhala.java#L1431-L1433
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/geom/Shape.java
Shape.indexOf
public int indexOf(float x, float y) { """ Get the index of a given point @param x The x coordinate of the point @param y The y coordinate of the point @return The index of the point or -1 if the point is not part of this shape path """ for (int i=0;i<points.length;i+=2) { if ((points[i] == x...
java
public int indexOf(float x, float y) { for (int i=0;i<points.length;i+=2) { if ((points[i] == x) && (points[i+1] == y)) { return i / 2; } } return -1; }
[ "public", "int", "indexOf", "(", "float", "x", ",", "float", "y", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "points", ".", "length", ";", "i", "+=", "2", ")", "{", "if", "(", "(", "points", "[", "i", "]", "==", "x", ")", ...
Get the index of a given point @param x The x coordinate of the point @param y The y coordinate of the point @return The index of the point or -1 if the point is not part of this shape path
[ "Get", "the", "index", "of", "a", "given", "point" ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/geom/Shape.java#L409-L417
Azure/azure-sdk-for-java
compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java
AvailabilitySetsInner.updateAsync
public Observable<AvailabilitySetInner> updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters) { """ Update an availability set. @param resourceGroupName The name of the resource group. @param availabilitySetName The name of the availability set. @param parameters ...
java
public Observable<AvailabilitySetInner> updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters) { return updateWithServiceResponseAsync(resourceGroupName, availabilitySetName, parameters).map(new Func1<ServiceResponse<AvailabilitySetInner>, AvailabilitySetInner>() { ...
[ "public", "Observable", "<", "AvailabilitySetInner", ">", "updateAsync", "(", "String", "resourceGroupName", ",", "String", "availabilitySetName", ",", "AvailabilitySetUpdate", "parameters", ")", "{", "return", "updateWithServiceResponseAsync", "(", "resourceGroupName", ","...
Update an availability set. @param resourceGroupName The name of the resource group. @param availabilitySetName The name of the availability set. @param parameters Parameters supplied to the Update Availability Set operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observa...
[ "Update", "an", "availability", "set", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java#L223-L230