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
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java
CryptoHelper.verifySignatureFor
boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { """ Verify signature for JWT header and payload. @param algorithm algorithm name. @param publicKey algorithm public...
java
boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCh...
[ "boolean", "verifySignatureFor", "(", "String", "algorithm", ",", "PublicKey", "publicKey", ",", "String", "header", ",", "String", "payload", ",", "byte", "[", "]", "signatureBytes", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", ",", "Signa...
Verify signature for JWT header and payload. @param algorithm algorithm name. @param publicKey algorithm public key. @param header JWT header. @param payload JWT payload. @param signatureBytes JWT signature. @return true if signature is valid. @throws NoSuchAlgorithmException if the algorithm is not supported. @throws...
[ "Verify", "signature", "for", "JWT", "header", "and", "payload", "." ]
train
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java#L80-L82
nguillaumin/slick2d-maven
slick2d-core/src/main/java/org/newdawn/slick/UnicodeFont.java
UnicodeFont.createFont
private static Font createFont (String ttfFileRef) throws SlickException { """ Utility to create a Java font for a TTF file reference @param ttfFileRef The file system or classpath location of the TrueTypeFont file. @return The font created @throws SlickException Indicates a failure to locate or load the font...
java
private static Font createFont (String ttfFileRef) throws SlickException { try { return Font.createFont(Font.TRUETYPE_FONT, ResourceLoader.getResourceAsStream(ttfFileRef)); } catch (FontFormatException ex) { throw new SlickException("Invalid font: " + ttfFileRef, ex); } catch (IOException ex) { thr...
[ "private", "static", "Font", "createFont", "(", "String", "ttfFileRef", ")", "throws", "SlickException", "{", "try", "{", "return", "Font", ".", "createFont", "(", "Font", ".", "TRUETYPE_FONT", ",", "ResourceLoader", ".", "getResourceAsStream", "(", "ttfFileRef", ...
Utility to create a Java font for a TTF file reference @param ttfFileRef The file system or classpath location of the TrueTypeFont file. @return The font created @throws SlickException Indicates a failure to locate or load the font into Java's font system.
[ "Utility", "to", "create", "a", "Java", "font", "for", "a", "TTF", "file", "reference" ]
train
https://github.com/nguillaumin/slick2d-maven/blob/8251f88a0ed6a70e726d2468842455cd1f80893f/slick2d-core/src/main/java/org/newdawn/slick/UnicodeFont.java#L59-L67
lucee/Lucee
core/src/main/java/lucee/runtime/op/Caster.java
Caster.toFile
public static File toFile(Object obj, File defaultValue) { """ convert a object to a File @param obj @param defaultValue @return File """ if (obj instanceof File) return (File) obj; String str = Caster.toString(obj, null); if (str == null) return defaultValue; return FileUtil.toFile(str); }
java
public static File toFile(Object obj, File defaultValue) { if (obj instanceof File) return (File) obj; String str = Caster.toString(obj, null); if (str == null) return defaultValue; return FileUtil.toFile(str); }
[ "public", "static", "File", "toFile", "(", "Object", "obj", ",", "File", "defaultValue", ")", "{", "if", "(", "obj", "instanceof", "File", ")", "return", "(", "File", ")", "obj", ";", "String", "str", "=", "Caster", ".", "toString", "(", "obj", ",", ...
convert a object to a File @param obj @param defaultValue @return File
[ "convert", "a", "object", "to", "a", "File" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/op/Caster.java#L4171-L4176
classgraph/classgraph
src/main/java/io/github/classgraph/ClasspathElementDir.java
ClasspathElementDir.getResource
@Override Resource getResource(final String relativePath) { """ Get the {@link Resource} for a given relative path. @param relativePath The relative path of the {@link Resource} to return. @return The {@link Resource} for the given relative path, or null if relativePath does not exist in this classpath e...
java
@Override Resource getResource(final String relativePath) { final File resourceFile = new File(classpathEltDir, relativePath); return resourceFile.canRead() && resourceFile.isFile() ? newResource(relativePath, resourceFile) : null; }
[ "@", "Override", "Resource", "getResource", "(", "final", "String", "relativePath", ")", "{", "final", "File", "resourceFile", "=", "new", "File", "(", "classpathEltDir", ",", "relativePath", ")", ";", "return", "resourceFile", ".", "canRead", "(", ")", "&&", ...
Get the {@link Resource} for a given relative path. @param relativePath The relative path of the {@link Resource} to return. @return The {@link Resource} for the given relative path, or null if relativePath does not exist in this classpath element.
[ "Get", "the", "{", "@link", "Resource", "}", "for", "a", "given", "relative", "path", "." ]
train
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClasspathElementDir.java#L284-L288
looly/hutool
hutool-core/src/main/java/cn/hutool/core/img/ImgUtil.java
ImgUtil.rotate
public static void rotate(File imageFile, int degree, File outFile) throws IORuntimeException { """ 旋转图片为指定角度<br> 此方法不会关闭输出流 @param imageFile 被旋转图像文件 @param degree 旋转角度 @param outFile 输出文件 @since 3.2.2 @throws IORuntimeException IO异常 """ rotate(read(imageFile), degree, outFile); }
java
public static void rotate(File imageFile, int degree, File outFile) throws IORuntimeException { rotate(read(imageFile), degree, outFile); }
[ "public", "static", "void", "rotate", "(", "File", "imageFile", ",", "int", "degree", ",", "File", "outFile", ")", "throws", "IORuntimeException", "{", "rotate", "(", "read", "(", "imageFile", ")", ",", "degree", ",", "outFile", ")", ";", "}" ]
旋转图片为指定角度<br> 此方法不会关闭输出流 @param imageFile 被旋转图像文件 @param degree 旋转角度 @param outFile 输出文件 @since 3.2.2 @throws IORuntimeException IO异常
[ "旋转图片为指定角度<br", ">", "此方法不会关闭输出流" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/img/ImgUtil.java#L1002-L1004
netty/netty
codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspVersions.java
RtspVersions.valueOf
public static HttpVersion valueOf(String text) { """ Returns an existing or new {@link HttpVersion} instance which matches to the specified RTSP version string. If the specified {@code text} is equal to {@code "RTSP/1.0"}, {@link #RTSP_1_0} will be returned. Otherwise, a new {@link HttpVersion} instance will b...
java
public static HttpVersion valueOf(String text) { if (text == null) { throw new NullPointerException("text"); } text = text.trim().toUpperCase(); if ("RTSP/1.0".equals(text)) { return RTSP_1_0; } return new HttpVersion(text, true); }
[ "public", "static", "HttpVersion", "valueOf", "(", "String", "text", ")", "{", "if", "(", "text", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"text\"", ")", ";", "}", "text", "=", "text", ".", "trim", "(", ")", ".", "toUpperC...
Returns an existing or new {@link HttpVersion} instance which matches to the specified RTSP version string. If the specified {@code text} is equal to {@code "RTSP/1.0"}, {@link #RTSP_1_0} will be returned. Otherwise, a new {@link HttpVersion} instance will be returned.
[ "Returns", "an", "existing", "or", "new", "{" ]
train
https://github.com/netty/netty/blob/ba06eafa1c1824bd154f1a380019e7ea2edf3c4c/codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspVersions.java#L36-L47
cdk/cdk
legacy/src/main/java/org/openscience/cdk/geometry/GeometryTools.java
GeometryTools.translate2D
public static void translate2D(IAtomContainer atomCon, double transX, double transY) { """ Translates the given molecule by the given Vector. See comment for center(IAtomContainer atomCon, Dimension areaDim, HashMap renderingCoordinates) for details on coordinate sets @param atomCon The molecule to be transl...
java
public static void translate2D(IAtomContainer atomCon, double transX, double transY) { translate2D(atomCon, new Vector2d(transX, transY)); }
[ "public", "static", "void", "translate2D", "(", "IAtomContainer", "atomCon", ",", "double", "transX", ",", "double", "transY", ")", "{", "translate2D", "(", "atomCon", ",", "new", "Vector2d", "(", "transX", ",", "transY", ")", ")", ";", "}" ]
Translates the given molecule by the given Vector. See comment for center(IAtomContainer atomCon, Dimension areaDim, HashMap renderingCoordinates) for details on coordinate sets @param atomCon The molecule to be translated @param transX translation in x direction @param transY translation in y direction
[ "Translates", "the", "given", "molecule", "by", "the", "given", "Vector", ".", "See", "comment", "for", "center", "(", "IAtomContainer", "atomCon", "Dimension", "areaDim", "HashMap", "renderingCoordinates", ")", "for", "details", "on", "coordinate", "sets" ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/legacy/src/main/java/org/openscience/cdk/geometry/GeometryTools.java#L138-L140
algolia/algoliasearch-client-java
src/main/java/com/algolia/search/saas/APIClient.java
APIClient.getLogs
public JSONObject getLogs(int offset, int length, RequestOptions requestOptions) throws AlgoliaException { """ Return last logs entries. @param offset Specify the first entry to retrieve (0-based, 0 is the most recent log entry). @param length Specify the maximum number of entries to retrieve s...
java
public JSONObject getLogs(int offset, int length, RequestOptions requestOptions) throws AlgoliaException { return getLogs(offset, length, LogType.LOG_ALL, requestOptions); }
[ "public", "JSONObject", "getLogs", "(", "int", "offset", ",", "int", "length", ",", "RequestOptions", "requestOptions", ")", "throws", "AlgoliaException", "{", "return", "getLogs", "(", "offset", ",", "length", ",", "LogType", ".", "LOG_ALL", ",", "requestOption...
Return last logs entries. @param offset Specify the first entry to retrieve (0-based, 0 is the most recent log entry). @param length Specify the maximum number of entries to retrieve starting at offset. Maximum allowed value: 1000. @param requestOptions Options to pass to this request
[ "Return", "last", "logs", "entries", "." ]
train
https://github.com/algolia/algoliasearch-client-java/blob/a05da2f66c099fe6f77295c7b6a8a12c24e95f9b/src/main/java/com/algolia/search/saas/APIClient.java#L438-L440
bitcoinj/bitcoinj
core/src/main/java/org/bitcoinj/utils/Fiat.java
Fiat.parseFiatInexact
public static Fiat parseFiatInexact(final String currencyCode, final String str) { """ <p>Parses an amount expressed in the way humans are used to. The amount is cut to 4 digits after the comma.</p> <p>This takes string in a format understood by {@link BigDecimal#BigDecimal(String)}, for example "0", "1", "0.10",...
java
public static Fiat parseFiatInexact(final String currencyCode, final String str) { try { long val = new BigDecimal(str).movePointRight(SMALLEST_UNIT_EXPONENT).longValue(); return Fiat.valueOf(currencyCode, val); } catch (ArithmeticException e) { throw new IllegalArgum...
[ "public", "static", "Fiat", "parseFiatInexact", "(", "final", "String", "currencyCode", ",", "final", "String", "str", ")", "{", "try", "{", "long", "val", "=", "new", "BigDecimal", "(", "str", ")", ".", "movePointRight", "(", "SMALLEST_UNIT_EXPONENT", ")", ...
<p>Parses an amount expressed in the way humans are used to. The amount is cut to 4 digits after the comma.</p> <p>This takes string in a format understood by {@link BigDecimal#BigDecimal(String)}, for example "0", "1", "0.10", "1.23E3", "1234.5E-5".</p> @throws IllegalArgumentException if you try to specify a value o...
[ "<p", ">", "Parses", "an", "amount", "expressed", "in", "the", "way", "humans", "are", "used", "to", ".", "The", "amount", "is", "cut", "to", "4", "digits", "after", "the", "comma", ".", "<", "/", "p", ">", "<p", ">", "This", "takes", "string", "in...
train
https://github.com/bitcoinj/bitcoinj/blob/9cf13d29315014ed59cf4fc5944e5f227e8df9a6/core/src/main/java/org/bitcoinj/utils/Fiat.java#L100-L107
jmrozanec/cron-utils
src/main/java/com/cronutils/descriptor/DescriptionStrategyFactory.java
DescriptionStrategyFactory.hhMMssInstance
public static DescriptionStrategy hhMMssInstance(final ResourceBundle bundle, final FieldExpression hours, final FieldExpression minutes, final FieldExpression seconds) { """ Creates description strategy for hh:mm:ss. @param bundle - locale @return - DescriptionStrategy instance, never null """...
java
public static DescriptionStrategy hhMMssInstance(final ResourceBundle bundle, final FieldExpression hours, final FieldExpression minutes, final FieldExpression seconds) { return new TimeDescriptionStrategy(bundle, hours, minutes, seconds); }
[ "public", "static", "DescriptionStrategy", "hhMMssInstance", "(", "final", "ResourceBundle", "bundle", ",", "final", "FieldExpression", "hours", ",", "final", "FieldExpression", "minutes", ",", "final", "FieldExpression", "seconds", ")", "{", "return", "new", "TimeDes...
Creates description strategy for hh:mm:ss. @param bundle - locale @return - DescriptionStrategy instance, never null
[ "Creates", "description", "strategy", "for", "hh", ":", "mm", ":", "ss", "." ]
train
https://github.com/jmrozanec/cron-utils/blob/adac5ec8fd9160b082f9762a6eedea0715731170/src/main/java/com/cronutils/descriptor/DescriptionStrategyFactory.java#L125-L128
alibaba/vlayout
vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java
StaggeredGridLayoutHelper.hasGapsToFix
private View hasGapsToFix(VirtualLayoutManager layoutManager, final int position, final int alignLine) { """ Checks for gaps if we've reached to the top of the list. <p/> Intermediate gaps created by full span items are tracked via mLaidOutInvalidFullSpan field. """ View view = layoutManager.findView...
java
private View hasGapsToFix(VirtualLayoutManager layoutManager, final int position, final int alignLine) { View view = layoutManager.findViewByPosition(position); if (view == null) { return null; } BitSet mSpansToCheck = new BitSet(mNumLanes); mSpansToCheck.set(0, mN...
[ "private", "View", "hasGapsToFix", "(", "VirtualLayoutManager", "layoutManager", ",", "final", "int", "position", ",", "final", "int", "alignLine", ")", "{", "View", "view", "=", "layoutManager", ".", "findViewByPosition", "(", "position", ")", ";", "if", "(", ...
Checks for gaps if we've reached to the top of the list. <p/> Intermediate gaps created by full span items are tracked via mLaidOutInvalidFullSpan field.
[ "Checks", "for", "gaps", "if", "we", "ve", "reached", "to", "the", "top", "of", "the", "list", ".", "<p", "/", ">", "Intermediate", "gaps", "created", "by", "full", "span", "items", "are", "tracked", "via", "mLaidOutInvalidFullSpan", "field", "." ]
train
https://github.com/alibaba/vlayout/blob/8a5a51d9d2eeb91fed2ee331a4cf3496282452ce/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java#L614-L634
windup/windup
rules-java/api/src/main/java/org/jboss/windup/rules/apps/java/scan/provider/DiscoverMavenProjectsRuleProvider.java
DiscoverMavenProjectsRuleProvider.getMavenStubProject
private MavenProjectModel getMavenStubProject(MavenProjectService mavenProjectService, String groupId, String artifactId, String version) { """ A Maven stub is a Maven Project for which we have found information, but the project has not yet been located within the input application. If we have found an applicatio...
java
private MavenProjectModel getMavenStubProject(MavenProjectService mavenProjectService, String groupId, String artifactId, String version) { Iterable<MavenProjectModel> mavenProjectModels = mavenProjectService.findByGroupArtifactVersion(groupId, artifactId, version); if (!mavenProjectModels.iterator(...
[ "private", "MavenProjectModel", "getMavenStubProject", "(", "MavenProjectService", "mavenProjectService", ",", "String", "groupId", ",", "String", "artifactId", ",", "String", "version", ")", "{", "Iterable", "<", "MavenProjectModel", ">", "mavenProjectModels", "=", "ma...
A Maven stub is a Maven Project for which we have found information, but the project has not yet been located within the input application. If we have found an application of the same GAV within the input app, we should fill out this stub instead of creating a new one.
[ "A", "Maven", "stub", "is", "a", "Maven", "Project", "for", "which", "we", "have", "found", "information", "but", "the", "project", "has", "not", "yet", "been", "located", "within", "the", "input", "application", ".", "If", "we", "have", "found", "an", "...
train
https://github.com/windup/windup/blob/6668f09e7f012d24a0b4212ada8809417225b2ad/rules-java/api/src/main/java/org/jboss/windup/rules/apps/java/scan/provider/DiscoverMavenProjectsRuleProvider.java#L401-L417
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/UCharacterName.java
UCharacterName.setGroup
boolean setGroup(char group[], byte groupstring[]) { """ Sets the group name data @param group index information array @param groupstring name information array @return false if there is a data error """ if (group != null && groupstring != null && group.length > 0 && groupstring.length >...
java
boolean setGroup(char group[], byte groupstring[]) { if (group != null && groupstring != null && group.length > 0 && groupstring.length > 0) { m_groupinfo_ = group; m_groupstring_ = groupstring; return true; } return false; }
[ "boolean", "setGroup", "(", "char", "group", "[", "]", ",", "byte", "groupstring", "[", "]", ")", "{", "if", "(", "group", "!=", "null", "&&", "groupstring", "!=", "null", "&&", "group", ".", "length", ">", "0", "&&", "groupstring", ".", "length", ">...
Sets the group name data @param group index information array @param groupstring name information array @return false if there is a data error
[ "Sets", "the", "group", "name", "data" ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/UCharacterName.java#L1012-L1021
BorderTech/wcomponents
wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WTreeRenderer.java
WTreeRenderer.handlePaintCustom
protected void handlePaintCustom(final WTree tree, final XmlStringBuilder xml) { """ Paint the custom tree layout. @param tree the WTree to render @param xml the XML string builder """ TreeItemModel model = tree.getTreeModel(); TreeItemIdNode root = tree.getCustomTree(); Set<String> selectedRows = n...
java
protected void handlePaintCustom(final WTree tree, final XmlStringBuilder xml) { TreeItemModel model = tree.getTreeModel(); TreeItemIdNode root = tree.getCustomTree(); Set<String> selectedRows = new HashSet(tree.getSelectedRows()); Set<String> expandedRows = new HashSet(tree.getExpandedRows()); WTree.ExpandM...
[ "protected", "void", "handlePaintCustom", "(", "final", "WTree", "tree", ",", "final", "XmlStringBuilder", "xml", ")", "{", "TreeItemModel", "model", "=", "tree", ".", "getTreeModel", "(", ")", ";", "TreeItemIdNode", "root", "=", "tree", ".", "getCustomTree", ...
Paint the custom tree layout. @param tree the WTree to render @param xml the XML string builder
[ "Paint", "the", "custom", "tree", "layout", "." ]
train
https://github.com/BorderTech/wcomponents/blob/d1a2b2243270067db030feb36ca74255aaa94436/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WTreeRenderer.java#L205-L217
raydac/java-binary-block-parser
jbbp/src/main/java/com/igormaznitsa/jbbp/utils/JBBPDslBuilder.java
JBBPDslBuilder.BitArray
public JBBPDslBuilder BitArray(final String name, final JBBPBitNumber bits, final int size) { """ Add named fixed length bit array. @param name name of the array, if null then anonymous one @param bits length of the field, must not be null @param size number of elements in array, if negative then till the end...
java
public JBBPDslBuilder BitArray(final String name, final JBBPBitNumber bits, final int size) { return this.BitArray(name, bits, arraySizeToString(size)); }
[ "public", "JBBPDslBuilder", "BitArray", "(", "final", "String", "name", ",", "final", "JBBPBitNumber", "bits", ",", "final", "int", "size", ")", "{", "return", "this", ".", "BitArray", "(", "name", ",", "bits", ",", "arraySizeToString", "(", "size", ")", "...
Add named fixed length bit array. @param name name of the array, if null then anonymous one @param bits length of the field, must not be null @param size number of elements in array, if negative then till the end of stream @return the builder instance, must not be null
[ "Add", "named", "fixed", "length", "bit", "array", "." ]
train
https://github.com/raydac/java-binary-block-parser/blob/6d98abcab01e0c72d525ebcc9e7b694f9ce49f5b/jbbp/src/main/java/com/igormaznitsa/jbbp/utils/JBBPDslBuilder.java#L676-L678
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/message/analytics/GenericAnalyticsRequest.java
GenericAnalyticsRequest.simpleStatement
public static GenericAnalyticsRequest simpleStatement(String statement, String bucket, String password) { """ Creates a {@link GenericAnalyticsRequest} and mark it as containing a single simple statement (e.g. "SELECT * FROM default"). @param statement the Analytics query statement to perform. @param bucket t...
java
public static GenericAnalyticsRequest simpleStatement(String statement, String bucket, String password) { return new GenericAnalyticsRequest(statement, false, bucket, bucket, password, null, NO_PRIORITY); }
[ "public", "static", "GenericAnalyticsRequest", "simpleStatement", "(", "String", "statement", ",", "String", "bucket", ",", "String", "password", ")", "{", "return", "new", "GenericAnalyticsRequest", "(", "statement", ",", "false", ",", "bucket", ",", "bucket", ",...
Creates a {@link GenericAnalyticsRequest} and mark it as containing a single simple statement (e.g. "SELECT * FROM default"). @param statement the Analytics query statement to perform. @param bucket the bucket on which to search. @param password the password for the target bucket. @return a {@link GenericAnalyticsRequ...
[ "Creates", "a", "{", "@link", "GenericAnalyticsRequest", "}", "and", "mark", "it", "as", "containing", "a", "single", "simple", "statement", "(", "e", ".", "g", ".", "SELECT", "*", "FROM", "default", ")", "." ]
train
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/message/analytics/GenericAnalyticsRequest.java#L86-L88
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/CECalendar.java
CECalendar.jdToCE
public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) { """ Convert a Julian day to an Coptic/Ethiopic year, month and day @hide unsupported on Android """ int c4; // number of 4 year cycle (1461 days) int[] r4 = new int[1]; // remainder of 4 year cycle, always positive ...
java
public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) { int c4; // number of 4 year cycle (1461 days) int[] r4 = new int[1]; // remainder of 4 year cycle, always positive c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); // exteded year fields[0] = 4 * ...
[ "public", "static", "void", "jdToCE", "(", "int", "julianDay", ",", "int", "jdEpochOffset", ",", "int", "[", "]", "fields", ")", "{", "int", "c4", ";", "// number of 4 year cycle (1461 days)", "int", "[", "]", "r4", "=", "new", "int", "[", "1", "]", ";",...
Convert a Julian day to an Coptic/Ethiopic year, month and day @hide unsupported on Android
[ "Convert", "a", "Julian", "day", "to", "an", "Coptic", "/", "Ethiopic", "year", "month", "and", "day" ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/CECalendar.java#L264-L279
visallo/vertexium
core/src/main/java/org/vertexium/util/ArrayUtils.java
ArrayUtils.intersectsAll
public static <T> boolean intersectsAll(T[] a1, T[] a2) { """ Determines if all values in a1 appear in a2 and that all values in a2 appear in a2. """ for (T anA1 : a1) { if (!contains(a2, anA1)) { return false; } } for (T anA2 : a2) { ...
java
public static <T> boolean intersectsAll(T[] a1, T[] a2) { for (T anA1 : a1) { if (!contains(a2, anA1)) { return false; } } for (T anA2 : a2) { if (!contains(a1, anA2)) { return false; } } return tru...
[ "public", "static", "<", "T", ">", "boolean", "intersectsAll", "(", "T", "[", "]", "a1", ",", "T", "[", "]", "a2", ")", "{", "for", "(", "T", "anA1", ":", "a1", ")", "{", "if", "(", "!", "contains", "(", "a2", ",", "anA1", ")", ")", "{", "r...
Determines if all values in a1 appear in a2 and that all values in a2 appear in a2.
[ "Determines", "if", "all", "values", "in", "a1", "appear", "in", "a2", "and", "that", "all", "values", "in", "a2", "appear", "in", "a2", "." ]
train
https://github.com/visallo/vertexium/blob/bb132b5425ac168957667164e1409b78adbea769/core/src/main/java/org/vertexium/util/ArrayUtils.java#L7-L21
tvesalainen/bcc
src/main/java/org/vesalainen/bcc/Assembler.java
Assembler.if_tcmple
public void if_tcmple(TypeMirror type, String target) throws IOException { """ le succeeds if and only if value1 &lt;= value2 <p>Stack: ..., value1, value2 =&gt; ... @param type @param target @throws IOException """ pushType(type); if_tcmple(target); popType(); }
java
public void if_tcmple(TypeMirror type, String target) throws IOException { pushType(type); if_tcmple(target); popType(); }
[ "public", "void", "if_tcmple", "(", "TypeMirror", "type", ",", "String", "target", ")", "throws", "IOException", "{", "pushType", "(", "type", ")", ";", "if_tcmple", "(", "target", ")", ";", "popType", "(", ")", ";", "}" ]
le succeeds if and only if value1 &lt;= value2 <p>Stack: ..., value1, value2 =&gt; ... @param type @param target @throws IOException
[ "le", "succeeds", "if", "and", "only", "if", "value1", "&lt", ";", "=", "value2", "<p", ">", "Stack", ":", "...", "value1", "value2", "=", "&gt", ";", "..." ]
train
https://github.com/tvesalainen/bcc/blob/4e84e313018d487f1a8cca3952d71bc21e77d16b/src/main/java/org/vesalainen/bcc/Assembler.java#L614-L619
jxnet/Jxnet
jxnet-context/src/main/java/com/ardikars/jxnet/Application.java
Application.run
public static void run(String aplicationName, String applicationDisplayName, String applicationVersion, Builder<Pcap, Void> builder) { """ Bootstraping application. @param aplicationName application name. @param applicationDisplayName application display name. @param applicationVersion application version. @pa...
java
public static void run(String aplicationName, String applicationDisplayName, String applicationVersion, Builder<Pcap, Void> builder) { Validate.notIllegalArgument(builder != null, new IllegalArgumentException("Pcap builder should be not null.")); com.ardikars.jxnet.context.Application.ru...
[ "public", "static", "void", "run", "(", "String", "aplicationName", ",", "String", "applicationDisplayName", ",", "String", "applicationVersion", ",", "Builder", "<", "Pcap", ",", "Void", ">", "builder", ")", "{", "Validate", ".", "notIllegalArgument", "(", "bui...
Bootstraping application. @param aplicationName application name. @param applicationDisplayName application display name. @param applicationVersion application version. @param builder pcap builder.
[ "Bootstraping", "application", "." ]
train
https://github.com/jxnet/Jxnet/blob/3ef28eb83c149ff134df1841d12bcbea3d8fe163/jxnet-context/src/main/java/com/ardikars/jxnet/Application.java#L40-L44
facebookarchive/hadoop-20
src/contrib/corona/src/java/org/apache/hadoop/corona/Session.java
Session.updateInfoUrlAndName
public void updateInfoUrlAndName(String url, String name) { """ Only update the session info url and name. @param url New session info url @param name New session name """ this.info.url = url; this.info.name = name; }
java
public void updateInfoUrlAndName(String url, String name) { this.info.url = url; this.info.name = name; }
[ "public", "void", "updateInfoUrlAndName", "(", "String", "url", ",", "String", "name", ")", "{", "this", ".", "info", ".", "url", "=", "url", ";", "this", ".", "info", ".", "name", "=", "name", ";", "}" ]
Only update the session info url and name. @param url New session info url @param name New session name
[ "Only", "update", "the", "session", "info", "url", "and", "name", "." ]
train
https://github.com/facebookarchive/hadoop-20/blob/2a29bc6ecf30edb1ad8dbde32aa49a317b4d44f4/src/contrib/corona/src/java/org/apache/hadoop/corona/Session.java#L465-L468
apache/flink
flink-core/src/main/java/org/apache/flink/util/IOUtils.java
IOUtils.readFully
public static void readFully(final InputStream in, final byte[] buf, int off, final int len) throws IOException { """ Reads len bytes in a loop. @param in The InputStream to read from @param buf The buffer to fill @param off offset from the buffer @param len the length of bytes to read @throws IOExce...
java
public static void readFully(final InputStream in, final byte[] buf, int off, final int len) throws IOException { int toRead = len; while (toRead > 0) { final int ret = in.read(buf, off, toRead); if (ret < 0) { throw new IOException("Premeture EOF from inputStream"); } toRead -= ret; off += re...
[ "public", "static", "void", "readFully", "(", "final", "InputStream", "in", ",", "final", "byte", "[", "]", "buf", ",", "int", "off", ",", "final", "int", "len", ")", "throws", "IOException", "{", "int", "toRead", "=", "len", ";", "while", "(", "toRead...
Reads len bytes in a loop. @param in The InputStream to read from @param buf The buffer to fill @param off offset from the buffer @param len the length of bytes to read @throws IOException if it could not read requested number of bytes for any reason (including EOF)
[ "Reads", "len", "bytes", "in", "a", "loop", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-core/src/main/java/org/apache/flink/util/IOUtils.java#L129-L140
vkostyukov/la4j
src/main/java/org/la4j/matrix/ColumnMajorSparseMatrix.java
ColumnMajorSparseMatrix.randomSymmetric
public static ColumnMajorSparseMatrix randomSymmetric(int size, double density, Random random) { """ Creates a random symmetric {@link ColumnMajorSparseMatrix} of the given {@code size}. """ return CCSMatrix.randomSymmetric(size, density, random); }
java
public static ColumnMajorSparseMatrix randomSymmetric(int size, double density, Random random) { return CCSMatrix.randomSymmetric(size, density, random); }
[ "public", "static", "ColumnMajorSparseMatrix", "randomSymmetric", "(", "int", "size", ",", "double", "density", ",", "Random", "random", ")", "{", "return", "CCSMatrix", ".", "randomSymmetric", "(", "size", ",", "density", ",", "random", ")", ";", "}" ]
Creates a random symmetric {@link ColumnMajorSparseMatrix} of the given {@code size}.
[ "Creates", "a", "random", "symmetric", "{" ]
train
https://github.com/vkostyukov/la4j/blob/dd1b917caf9606399a49afa6b0d738934cd3a7b3/src/main/java/org/la4j/matrix/ColumnMajorSparseMatrix.java#L91-L93
playn/playn
scene/src/playn/scene/LayerUtil.java
LayerUtil.parentToLayer
public static Point parentToLayer(Layer parent, Layer layer, XY point, Point into) { """ Converts the supplied point from coordinates relative to the specified parent to coordinates relative to the specified child layer. The results are stored into {@code into}, which is returned for convenience. """ int...
java
public static Point parentToLayer(Layer parent, Layer layer, XY point, Point into) { into.set(point); Layer immediateParent = layer.parent(); if (immediateParent != parent) parentToLayer(parent, immediateParent, into, into); parentToLayer(layer, into, into); return into; }
[ "public", "static", "Point", "parentToLayer", "(", "Layer", "parent", ",", "Layer", "layer", ",", "XY", "point", ",", "Point", "into", ")", "{", "into", ".", "set", "(", "point", ")", ";", "Layer", "immediateParent", "=", "layer", ".", "parent", "(", "...
Converts the supplied point from coordinates relative to the specified parent to coordinates relative to the specified child layer. The results are stored into {@code into}, which is returned for convenience.
[ "Converts", "the", "supplied", "point", "from", "coordinates", "relative", "to", "the", "specified", "parent", "to", "coordinates", "relative", "to", "the", "specified", "child", "layer", ".", "The", "results", "are", "stored", "into", "{" ]
train
https://github.com/playn/playn/blob/7e7a9d048ba6afe550dc0cdeaca3e1d5b0d01c66/scene/src/playn/scene/LayerUtil.java#L116-L122
kaazing/gateway
mina.core/core/src/main/java/org/apache/mina/proxy/AbstractProxyLogicHandler.java
AbstractProxyLogicHandler.enqueueWriteRequest
public synchronized void enqueueWriteRequest(final NextFilter nextFilter, final WriteRequest writeRequest) { """ Enqueue a message to be written once handshaking is complete. """ if (writeRequestQueue == null) { writeRequestQueue = new LinkedList<>(); } writeReq...
java
public synchronized void enqueueWriteRequest(final NextFilter nextFilter, final WriteRequest writeRequest) { if (writeRequestQueue == null) { writeRequestQueue = new LinkedList<>(); } writeRequestQueue.offer(new Event(nextFilter, writeRequest)); }
[ "public", "synchronized", "void", "enqueueWriteRequest", "(", "final", "NextFilter", "nextFilter", ",", "final", "WriteRequest", "writeRequest", ")", "{", "if", "(", "writeRequestQueue", "==", "null", ")", "{", "writeRequestQueue", "=", "new", "LinkedList", "<>", ...
Enqueue a message to be written once handshaking is complete.
[ "Enqueue", "a", "message", "to", "be", "written", "once", "handshaking", "is", "complete", "." ]
train
https://github.com/kaazing/gateway/blob/06017b19273109b3b992e528e702586446168d57/mina.core/core/src/main/java/org/apache/mina/proxy/AbstractProxyLogicHandler.java#L173-L180
eclipse/xtext-lib
org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/CollectionExtensions.java
CollectionExtensions.addAll
@SafeVarargs public static <T> boolean addAll(Collection<? super T> collection, T... elements) { """ Adds all of the specified elements to the specified collection. @param collection the collection into which the {@code elements} are to be inserted. May not be <code>null</code>. @param elements the elements...
java
@SafeVarargs public static <T> boolean addAll(Collection<? super T> collection, T... elements) { return collection.addAll(Arrays.asList(elements)); }
[ "@", "SafeVarargs", "public", "static", "<", "T", ">", "boolean", "addAll", "(", "Collection", "<", "?", "super", "T", ">", "collection", ",", "T", "...", "elements", ")", "{", "return", "collection", ".", "addAll", "(", "Arrays", ".", "asList", "(", "...
Adds all of the specified elements to the specified collection. @param collection the collection into which the {@code elements} are to be inserted. May not be <code>null</code>. @param elements the elements to insert into the {@code collection}. May not be <code>null</code> but may contain <code>null</code> entries i...
[ "Adds", "all", "of", "the", "specified", "elements", "to", "the", "specified", "collection", "." ]
train
https://github.com/eclipse/xtext-lib/blob/7063572e1f1bd713a3aa53bdf3a8dc60e25c169a/org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/CollectionExtensions.java#L253-L256
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/htod/HashtableOnDisk.java
HashtableOnDisk.getStaticInstance
static public HashtableOnDisk getStaticInstance(FileManager filemgr, boolean auto_rehash, long instanceid, HashtableInitInterface initfn, ...
java
static public HashtableOnDisk getStaticInstance(FileManager filemgr, boolean auto_rehash, long instanceid, HashtableInitInterface initfn, ...
[ "static", "public", "HashtableOnDisk", "getStaticInstance", "(", "FileManager", "filemgr", ",", "boolean", "auto_rehash", ",", "long", "instanceid", ",", "HashtableInitInterface", "initfn", ",", "boolean", "hasCacheValue", ",", "HTODDynacache", "htoddc", ")", "throws", ...
*********************************************************************** getInstance. Initializes a HashtableOnDisk instance over the specified FileManager, from the specified instanceid. The instanceid was used to originally create the instance in the createInstance method. @param filemgr The FileManager for the HTOD....
[ "***********************************************************************", "getInstance", ".", "Initializes", "a", "HashtableOnDisk", "instance", "over", "the", "specified", "FileManager", "from", "the", "specified", "instanceid", ".", "The", "instanceid", "was", "used", "to"...
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/htod/HashtableOnDisk.java#L382-L404
UrielCh/ovh-java-sdk
ovh-java-sdk-sms/src/main/java/net/minidev/ovh/api/ApiOvhSms.java
ApiOvhSms.serviceName_blacklists_number_GET
public OvhBlacklist serviceName_blacklists_number_GET(String serviceName, String number) throws IOException { """ Get this object properties REST: GET /sms/{serviceName}/blacklists/{number} @param serviceName [required] The internal name of your SMS offer @param number [required] The sms number blacklisted ...
java
public OvhBlacklist serviceName_blacklists_number_GET(String serviceName, String number) throws IOException { String qPath = "/sms/{serviceName}/blacklists/{number}"; StringBuilder sb = path(qPath, serviceName, number); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhBlacklist.c...
[ "public", "OvhBlacklist", "serviceName_blacklists_number_GET", "(", "String", "serviceName", ",", "String", "number", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/sms/{serviceName}/blacklists/{number}\"", ";", "StringBuilder", "sb", "=", "path", "(", "...
Get this object properties REST: GET /sms/{serviceName}/blacklists/{number} @param serviceName [required] The internal name of your SMS offer @param number [required] The sms number blacklisted
[ "Get", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-sms/src/main/java/net/minidev/ovh/api/ApiOvhSms.java#L1256-L1261
tvesalainen/util
util/src/main/java/org/vesalainen/util/BinarySet.java
BinarySet.get
public E get(E key, Predicate<E> predicate) { """ If an item is found in binary-search, the predicate is tested and either item or null is result. <p> Otherwise item before insertion-point is tested and if passed returned. <p> Otherwise item at insert-point is tested and if passed returned. <p> If there is...
java
public E get(E key, Predicate<E> predicate) { int idx = indexOf(key); if (idx >= 0) { E e = list.get(idx); return predicate.test(e) ? e : null; } else { int ip = insertPoint(idx); if (ip-1 >= 0) {...
[ "public", "E", "get", "(", "E", "key", ",", "Predicate", "<", "E", ">", "predicate", ")", "{", "int", "idx", "=", "indexOf", "(", "key", ")", ";", "if", "(", "idx", ">=", "0", ")", "{", "E", "e", "=", "list", ".", "get", "(", "idx", ")", ";...
If an item is found in binary-search, the predicate is tested and either item or null is result. <p> Otherwise item before insertion-point is tested and if passed returned. <p> Otherwise item at insert-point is tested and if passed returned. <p> If there is no item at insert-point or before it returns null. @param key...
[ "If", "an", "item", "is", "found", "in", "binary", "-", "search", "the", "predicate", "is", "tested", "and", "either", "item", "or", "null", "is", "result", ".", "<p", ">", "Otherwise", "item", "before", "insertion", "-", "point", "is", "tested", "and", ...
train
https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/BinarySet.java#L112-L141
alibaba/jstorm
jstorm-core/src/main/java/com/alibaba/jstorm/metric/JStormMetrics.java
JStormMetrics.registerWorkerHistogram
public static AsmHistogram registerWorkerHistogram(String topologyId, String name, AsmHistogram histogram) { """ simplified helper method to register a worker histogram @param topologyId topology id @param name metric name, NOTE it's not a full-qualified name. @param histogram histogram @return regist...
java
public static AsmHistogram registerWorkerHistogram(String topologyId, String name, AsmHistogram histogram) { return (AsmHistogram) registerWorkerMetric( MetricUtils.workerMetricName(topologyId, host, 0, name, MetricType.HISTOGRAM), histogram); }
[ "public", "static", "AsmHistogram", "registerWorkerHistogram", "(", "String", "topologyId", ",", "String", "name", ",", "AsmHistogram", "histogram", ")", "{", "return", "(", "AsmHistogram", ")", "registerWorkerMetric", "(", "MetricUtils", ".", "workerMetricName", "(",...
simplified helper method to register a worker histogram @param topologyId topology id @param name metric name, NOTE it's not a full-qualified name. @param histogram histogram @return registered histogram
[ "simplified", "helper", "method", "to", "register", "a", "worker", "histogram" ]
train
https://github.com/alibaba/jstorm/blob/5d6cde22dbca7df3d6e6830bf94f98a6639ab559/jstorm-core/src/main/java/com/alibaba/jstorm/metric/JStormMetrics.java#L309-L312
WiQuery/wiquery
wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePickerNumberOfMonths.java
DatePickerNumberOfMonths.setParam
private void setParam(Short shortParam, ArrayItemOptions<IntegerItemOptions> arrayParam) { """ Method setting the right parameter @param shortParam Short parameter @param arrayParam Array parameter """ this.shortParam = shortParam; this.arrayParam = arrayParam; }
java
private void setParam(Short shortParam, ArrayItemOptions<IntegerItemOptions> arrayParam) { this.shortParam = shortParam; this.arrayParam = arrayParam; }
[ "private", "void", "setParam", "(", "Short", "shortParam", ",", "ArrayItemOptions", "<", "IntegerItemOptions", ">", "arrayParam", ")", "{", "this", ".", "shortParam", "=", "shortParam", ";", "this", ".", "arrayParam", "=", "arrayParam", ";", "}" ]
Method setting the right parameter @param shortParam Short parameter @param arrayParam Array parameter
[ "Method", "setting", "the", "right", "parameter" ]
train
https://github.com/WiQuery/wiquery/blob/1b8d60c7a3c37b90fd68c9cd0ff97178fcbcbb08/wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePickerNumberOfMonths.java#L165-L169
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/Entity.java
Entity.getMultiRelation
<T extends Entity> EntityCollection<T> getMultiRelation(String name) { """ Get a multi-value relation by name for this entity. @param name Name of the relation attribute. @return IEntityCollection of T. """ return getMultiRelation(name, true); }
java
<T extends Entity> EntityCollection<T> getMultiRelation(String name) { return getMultiRelation(name, true); }
[ "<", "T", "extends", "Entity", ">", "EntityCollection", "<", "T", ">", "getMultiRelation", "(", "String", "name", ")", "{", "return", "getMultiRelation", "(", "name", ",", "true", ")", ";", "}" ]
Get a multi-value relation by name for this entity. @param name Name of the relation attribute. @return IEntityCollection of T.
[ "Get", "a", "multi", "-", "value", "relation", "by", "name", "for", "this", "entity", "." ]
train
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/Entity.java#L240-L242
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.wrapAsDataSource
protected DataSource wrapAsDataSource(JdbcConnectionDescriptor jcd, ObjectPool connectionPool) { """ Wraps the specified object pool for connections as a DataSource. @param jcd the OJB connection descriptor for the pool to be wrapped @param connectionPool the connecti...
java
protected DataSource wrapAsDataSource(JdbcConnectionDescriptor jcd, ObjectPool connectionPool) { final boolean allowConnectionUnwrap; if (jcd == null) { allowConnectionUnwrap = false; } else { ...
[ "protected", "DataSource", "wrapAsDataSource", "(", "JdbcConnectionDescriptor", "jcd", ",", "ObjectPool", "connectionPool", ")", "{", "final", "boolean", "allowConnectionUnwrap", ";", "if", "(", "jcd", "==", "null", ")", "{", "allowConnectionUnwrap", "=", "false", "...
Wraps the specified object pool for connections as a DataSource. @param jcd the OJB connection descriptor for the pool to be wrapped @param connectionPool the connection pool to be wrapped @return a DataSource attached to the connection pool. Connections will be wrapped using DBCP PoolGuard, that will not allow unwrap...
[ "Wraps", "the", "specified", "object", "pool", "for", "connections", "as", "a", "DataSource", "." ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L306-L336
JoeKerouac/utils
src/main/java/com/joe/utils/reflect/BeanUtils.java
BeanUtils.copy
public static <E> E copy(E dest, Object... sources) { """ 将sources中所有与dest同名的字段的值复制到dest中,如果dest中包含字段A,同时sources中多个对象都包含字段A,那么将 以sources中最后一个包含字段A的对象的值为准,source中的{@link Alias Alias}注解将会生效,需要注意的是source中的Alias注解 不要对应dest中的多个字段,否则会发生不可预测错误 @param dest 目标 @param sources 源 @param <E> 目标对象的实际类型 @return 复制...
java
public static <E> E copy(E dest, Object... sources) { if (dest == null || sources == null || sources.length == 0) { return dest; } for (Object obj : sources) { if (dest == obj) { continue; } copy(dest, obj); } return...
[ "public", "static", "<", "E", ">", "E", "copy", "(", "E", "dest", ",", "Object", "...", "sources", ")", "{", "if", "(", "dest", "==", "null", "||", "sources", "==", "null", "||", "sources", ".", "length", "==", "0", ")", "{", "return", "dest", ";...
将sources中所有与dest同名的字段的值复制到dest中,如果dest中包含字段A,同时sources中多个对象都包含字段A,那么将 以sources中最后一个包含字段A的对象的值为准,source中的{@link Alias Alias}注解将会生效,需要注意的是source中的Alias注解 不要对应dest中的多个字段,否则会发生不可预测错误 @param dest 目标 @param sources 源 @param <E> 目标对象的实际类型 @return 复制后的目标对象
[ "将sources中所有与dest同名的字段的值复制到dest中,如果dest中包含字段A,同时sources中多个对象都包含字段A,那么将", "以sources中最后一个包含字段A的对象的值为准,source中的", "{", "@link", "Alias", "Alias", "}", "注解将会生效,需要注意的是source中的Alias注解", "不要对应dest中的多个字段,否则会发生不可预测错误" ]
train
https://github.com/JoeKerouac/utils/blob/45e1b2dc4d736956674fc4dcbe6cf84eaee69278/src/main/java/com/joe/utils/reflect/BeanUtils.java#L168-L179
Wadpam/guja
guja-contact/src/main/java/com/wadpam/guja/dao/GeneratedDContactDaoImpl.java
GeneratedDContactDaoImpl.queryByCountry
public Iterable<DContact> queryByCountry(Object parent, java.lang.String country) { """ query-by method for field country @param country the specified attribute @return an Iterable of DContacts for the specified country """ return queryByField(parent, DContactMapper.Field.COUNTRY.getFieldName(), country)...
java
public Iterable<DContact> queryByCountry(Object parent, java.lang.String country) { return queryByField(parent, DContactMapper.Field.COUNTRY.getFieldName(), country); }
[ "public", "Iterable", "<", "DContact", ">", "queryByCountry", "(", "Object", "parent", ",", "java", ".", "lang", ".", "String", "country", ")", "{", "return", "queryByField", "(", "parent", ",", "DContactMapper", ".", "Field", ".", "COUNTRY", ".", "getFieldN...
query-by method for field country @param country the specified attribute @return an Iterable of DContacts for the specified country
[ "query", "-", "by", "method", "for", "field", "country" ]
train
https://github.com/Wadpam/guja/blob/eb8ba8e6794a96ea0dd9744cada4f9ad9618f114/guja-contact/src/main/java/com/wadpam/guja/dao/GeneratedDContactDaoImpl.java#L124-L126
google/error-prone-javac
src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java
ElementFilter.typesIn
public static List<TypeElement> typesIn(Iterable<? extends Element> elements) { """ Returns a list of types in {@code elements}. @return a list of types in {@code elements} @param elements the elements to filter """ return listFilter(elements, TYPE_KINDS, TypeElement.class); }
java
public static List<TypeElement> typesIn(Iterable<? extends Element> elements) { return listFilter(elements, TYPE_KINDS, TypeElement.class); }
[ "public", "static", "List", "<", "TypeElement", ">", "typesIn", "(", "Iterable", "<", "?", "extends", "Element", ">", "elements", ")", "{", "return", "listFilter", "(", "elements", ",", "TYPE_KINDS", ",", "TypeElement", ".", "class", ")", ";", "}" ]
Returns a list of types in {@code elements}. @return a list of types in {@code elements} @param elements the elements to filter
[ "Returns", "a", "list", "of", "types", "in", "{" ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java#L152-L155
actorapp/actor-platform
actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java
ImageLoading.savePng
public static void savePng(Bitmap src, String fileName) throws ImageSaveException { """ Saving image in png to file @param src source image @param fileName destination file name @throws ImageSaveException if it is unable to save image """ save(src, fileName, Bitmap.CompressFormat.PNG, 100); ...
java
public static void savePng(Bitmap src, String fileName) throws ImageSaveException { save(src, fileName, Bitmap.CompressFormat.PNG, 100); }
[ "public", "static", "void", "savePng", "(", "Bitmap", "src", ",", "String", "fileName", ")", "throws", "ImageSaveException", "{", "save", "(", "src", ",", "fileName", ",", "Bitmap", ".", "CompressFormat", ".", "PNG", ",", "100", ")", ";", "}" ]
Saving image in png to file @param src source image @param fileName destination file name @throws ImageSaveException if it is unable to save image
[ "Saving", "image", "in", "png", "to", "file" ]
train
https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java#L332-L334
mikereedell/sunrisesunsetlib-java
src/main/java/com/luckycatlabs/sunrisesunset/SunriseSunsetCalculator.java
SunriseSunsetCalculator.getSunrise
public static Calendar getSunrise(double latitude, double longitude, TimeZone timeZone, Calendar date, double degrees) { """ Computes the sunrise for an arbitrary declination. @param latitude @param longitude Coordinates for the location to compute the sunrise/sunset for. @param timeZone timezone to compute...
java
public static Calendar getSunrise(double latitude, double longitude, TimeZone timeZone, Calendar date, double degrees) { SolarEventCalculator solarEventCalculator = new SolarEventCalculator(new Location(latitude, longitude), timeZone); return solarEventCalculator.computeSunriseCalendar(new Zenith(90 - d...
[ "public", "static", "Calendar", "getSunrise", "(", "double", "latitude", ",", "double", "longitude", ",", "TimeZone", "timeZone", ",", "Calendar", "date", ",", "double", "degrees", ")", "{", "SolarEventCalculator", "solarEventCalculator", "=", "new", "SolarEventCalc...
Computes the sunrise for an arbitrary declination. @param latitude @param longitude Coordinates for the location to compute the sunrise/sunset for. @param timeZone timezone to compute the sunrise/sunset times in. @param date <code>Calendar</code> object containing the date to compute the official sunset for. @param de...
[ "Computes", "the", "sunrise", "for", "an", "arbitrary", "declination", "." ]
train
https://github.com/mikereedell/sunrisesunsetlib-java/blob/6e6de23f1d11429eef58de2541582cbde9b85b92/src/main/java/com/luckycatlabs/sunrisesunset/SunriseSunsetCalculator.java#L256-L259
igniterealtime/Smack
smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/mediaimpl/jmf/AudioChannel.java
AudioChannel.createTransmitter
private String createTransmitter() { """ Use the RTPManager API to create sessions for each jmf track of the processor. @return description """ // Cheated. Should have checked the type. PushBufferDataSource pbds = (PushBufferDataSource) dataOutput; PushBufferStream[] pbss = pbds.g...
java
private String createTransmitter() { // Cheated. Should have checked the type. PushBufferDataSource pbds = (PushBufferDataSource) dataOutput; PushBufferStream[] pbss = pbds.getStreams(); rtpMgrs = new RTPManager[pbss.length]; SessionAddress localAddr, destAddr; InetAdd...
[ "private", "String", "createTransmitter", "(", ")", "{", "// Cheated. Should have checked the type.", "PushBufferDataSource", "pbds", "=", "(", "PushBufferDataSource", ")", "dataOutput", ";", "PushBufferStream", "[", "]", "pbss", "=", "pbds", ".", "getStreams", "(", ...
Use the RTPManager API to create sessions for each jmf track of the processor. @return description
[ "Use", "the", "RTPManager", "API", "to", "create", "sessions", "for", "each", "jmf", "track", "of", "the", "processor", "." ]
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/mediaimpl/jmf/AudioChannel.java#L341-L406
astrapi69/jaulp-wicket
jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/ajax/editable/tabs/AjaxAddableTabbedPanel.java
AjaxAddableTabbedPanel.onRemoveTab
public void onRemoveTab(final AjaxRequestTarget target, final T tab) { """ On remove tab removes the given tab if it does exists. @param target the target @param tab the tab """ final int index = getTabs().indexOf(tab); if (0 <= index) { onRemoveTab(target, index); } }
java
public void onRemoveTab(final AjaxRequestTarget target, final T tab) { final int index = getTabs().indexOf(tab); if (0 <= index) { onRemoveTab(target, index); } }
[ "public", "void", "onRemoveTab", "(", "final", "AjaxRequestTarget", "target", ",", "final", "T", "tab", ")", "{", "final", "int", "index", "=", "getTabs", "(", ")", ".", "indexOf", "(", "tab", ")", ";", "if", "(", "0", "<=", "index", ")", "{", "onRem...
On remove tab removes the given tab if it does exists. @param target the target @param tab the tab
[ "On", "remove", "tab", "removes", "the", "given", "tab", "if", "it", "does", "exists", "." ]
train
https://github.com/astrapi69/jaulp-wicket/blob/85d74368d00abd9bb97659b5794e38c0f8a013d4/jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/ajax/editable/tabs/AjaxAddableTabbedPanel.java#L772-L779
JOML-CI/JOML
src/org/joml/Matrix4d.java
Matrix4d.frustumAabb
public Matrix4d frustumAabb(Vector3d min, Vector3d max) { """ Compute the axis-aligned bounding box of the frustum described by <code>this</code> matrix and store the minimum corner coordinates in the given <code>min</code> and the maximum corner coordinates in the given <code>max</code> vector. <p> The matrix ...
java
public Matrix4d frustumAabb(Vector3d min, Vector3d max) { double minX = Double.POSITIVE_INFINITY; double minY = Double.POSITIVE_INFINITY; double minZ = Double.POSITIVE_INFINITY; double maxX = Double.NEGATIVE_INFINITY; double maxY = Double.NEGATIVE_INFINITY; double maxZ = ...
[ "public", "Matrix4d", "frustumAabb", "(", "Vector3d", "min", ",", "Vector3d", "max", ")", "{", "double", "minX", "=", "Double", ".", "POSITIVE_INFINITY", ";", "double", "minY", "=", "Double", ".", "POSITIVE_INFINITY", ";", "double", "minZ", "=", "Double", "....
Compute the axis-aligned bounding box of the frustum described by <code>this</code> matrix and store the minimum corner coordinates in the given <code>min</code> and the maximum corner coordinates in the given <code>max</code> vector. <p> The matrix <code>this</code> is assumed to be the {@link #invert() inverse} of th...
[ "Compute", "the", "axis", "-", "aligned", "bounding", "box", "of", "the", "frustum", "described", "by", "<code", ">", "this<", "/", "code", ">", "matrix", "and", "store", "the", "minimum", "corner", "coordinates", "in", "the", "given", "<code", ">", "min<"...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix4d.java#L14743-L14772
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/io/IOUtils.java
IOUtils.readReaderFromString
public static BufferedReader readReaderFromString(String textFileOrUrl, String encoding) throws IOException { """ Open a BufferedReader to a file or URL specified by a String name. If the String starts with https?://, then it is interpreted as a URL, otherwise it is interpreted as a local file. If the Str...
java
public static BufferedReader readReaderFromString(String textFileOrUrl, String encoding) throws IOException { InputStream is = getInputStreamFromURLOrClasspathOrFileSystem(textFileOrUrl); return new BufferedReader(new InputStreamReader(is, encoding)); }
[ "public", "static", "BufferedReader", "readReaderFromString", "(", "String", "textFileOrUrl", ",", "String", "encoding", ")", "throws", "IOException", "{", "InputStream", "is", "=", "getInputStreamFromURLOrClasspathOrFileSystem", "(", "textFileOrUrl", ")", ";", "return", ...
Open a BufferedReader to a file or URL specified by a String name. If the String starts with https?://, then it is interpreted as a URL, otherwise it is interpreted as a local file. If the String ends in .gz, it is interpreted as a gzipped file (and uncompressed), else it is interpreted as a regular text file in the gi...
[ "Open", "a", "BufferedReader", "to", "a", "file", "or", "URL", "specified", "by", "a", "String", "name", ".", "If", "the", "String", "starts", "with", "https?", ":", "//", "then", "it", "is", "interpreted", "as", "a", "URL", "otherwise", "it", "is", "i...
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L465-L469
Deep-Symmetry/beat-link
src/main/java/org/deepsymmetry/beatlink/data/MetadataFinder.java
MetadataFinder.attachMetadataCacheInternal
void attachMetadataCacheInternal(SlotReference slot, MetadataCache cache) { """ Finishes the process of attaching a metadata cache file once it has been opened and validated. @param slot the slot to which the cache should be attached @param cache the opened, validated metadata cache file """ Metada...
java
void attachMetadataCacheInternal(SlotReference slot, MetadataCache cache) { MetadataCache oldCache = metadataCacheFiles.put(slot, cache); if (oldCache != null) { try { oldCache.close(); } catch (IOException e) { logger.error("Problem closing previo...
[ "void", "attachMetadataCacheInternal", "(", "SlotReference", "slot", ",", "MetadataCache", "cache", ")", "{", "MetadataCache", "oldCache", "=", "metadataCacheFiles", ".", "put", "(", "slot", ",", "cache", ")", ";", "if", "(", "oldCache", "!=", "null", ")", "{"...
Finishes the process of attaching a metadata cache file once it has been opened and validated. @param slot the slot to which the cache should be attached @param cache the opened, validated metadata cache file
[ "Finishes", "the", "process", "of", "attaching", "a", "metadata", "cache", "file", "once", "it", "has", "been", "opened", "and", "validated", "." ]
train
https://github.com/Deep-Symmetry/beat-link/blob/f958a2a70e8a87a31a75326d7b4db77c2f0b4212/src/main/java/org/deepsymmetry/beatlink/data/MetadataFinder.java#L571-L582
dita-ot/dita-ot
src/main/java/org/ditang/relaxng/defaults/RelaxNGDefaultsComponent.java
RelaxNGDefaultsComponent.onStartElement
private void onStartElement(QName name, XMLAttributes atts) { """ On start element @param name The element name @param atts The attributes """ if (detecting) { detecting = false; loadDefaults(); } if (defaults != null) { checkAndAddDefaults(name, atts); } }
java
private void onStartElement(QName name, XMLAttributes atts) { if (detecting) { detecting = false; loadDefaults(); } if (defaults != null) { checkAndAddDefaults(name, atts); } }
[ "private", "void", "onStartElement", "(", "QName", "name", ",", "XMLAttributes", "atts", ")", "{", "if", "(", "detecting", ")", "{", "detecting", "=", "false", ";", "loadDefaults", "(", ")", ";", "}", "if", "(", "defaults", "!=", "null", ")", "{", "che...
On start element @param name The element name @param atts The attributes
[ "On", "start", "element" ]
train
https://github.com/dita-ot/dita-ot/blob/ea776b3c60c03d9f033b6f7ea072349e49dbcdd2/src/main/java/org/ditang/relaxng/defaults/RelaxNGDefaultsComponent.java#L220-L228
b3dgs/lionengine
lionengine-core/src/main/java/com/b3dgs/lionengine/UtilStream.java
UtilStream.getCopy
public static File getCopy(String name, InputStream input) { """ Get of full copy of the input stream stored in a temporary file. @param name The file name reference, to have a similar temporary file name (must not be <code>null</code>). @param input The input stream reference (must not be <code>null</code>). ...
java
public static File getCopy(String name, InputStream input) { Check.notNull(name); Check.notNull(input); final String prefix; final String suffix; final int minimumPrefix = 3; final int i = name.lastIndexOf(Constant.DOT); if (i > minimumPrefix) { ...
[ "public", "static", "File", "getCopy", "(", "String", "name", ",", "InputStream", "input", ")", "{", "Check", ".", "notNull", "(", "name", ")", ";", "Check", ".", "notNull", "(", "input", ")", ";", "final", "String", "prefix", ";", "final", "String", "...
Get of full copy of the input stream stored in a temporary file. @param name The file name reference, to have a similar temporary file name (must not be <code>null</code>). @param input The input stream reference (must not be <code>null</code>). @return The temporary file created with copied content from stream. @thro...
[ "Get", "of", "full", "copy", "of", "the", "input", "stream", "stored", "in", "a", "temporary", "file", "." ]
train
https://github.com/b3dgs/lionengine/blob/cac3d5578532cf11724a737b9f09e71bf9995ab2/lionengine-core/src/main/java/com/b3dgs/lionengine/UtilStream.java#L75-L114
kohsuke/com4j
runtime/src/main/java/com4j/COM4J.java
COM4J.createInstance
public static<T extends Com4jObject> T createInstance( Class<T> primaryInterface, GUID clsid ) throws ComException { """ Creates a new COM object of the given CLSID and returns it in a wrapped interface. @param primaryInterface The created COM object is returned as this interface. Must be non-null. Passin...
java
public static<T extends Com4jObject> T createInstance( Class<T> primaryInterface, GUID clsid ) throws ComException { return createInstance(primaryInterface,clsid.toString()); }
[ "public", "static", "<", "T", "extends", "Com4jObject", ">", "T", "createInstance", "(", "Class", "<", "T", ">", "primaryInterface", ",", "GUID", "clsid", ")", "throws", "ComException", "{", "return", "createInstance", "(", "primaryInterface", ",", "clsid", "....
Creates a new COM object of the given CLSID and returns it in a wrapped interface. @param primaryInterface The created COM object is returned as this interface. Must be non-null. Passing in {@link Com4jObject} allows the caller to create a new instance without knowing its primary interface. @param clsid The CLSID of t...
[ "Creates", "a", "new", "COM", "object", "of", "the", "given", "CLSID", "and", "returns", "it", "in", "a", "wrapped", "interface", "." ]
train
https://github.com/kohsuke/com4j/blob/1e690b805fb0e4e9ef61560e20a56335aecb0b24/runtime/src/main/java/com4j/COM4J.java#L47-L50
ReactiveX/RxNetty
rxnetty-common/src/main/java/io/reactivex/netty/util/LineReader.java
LineReader.decodeLast
public void decodeLast(ByteBuf in, List<Object> out, ByteBufAllocator allocator) { """ Same as {@link #decode(ByteBuf, List, ByteBufAllocator)} but it also produces the left-over buffer, even in absence of a line termination. {@link #dispose()} must be called when the associated {@link ChannelHandler} is remov...
java
public void decodeLast(ByteBuf in, List<Object> out, ByteBufAllocator allocator) { decode(in, out, allocator); if (null != incompleteBuffer && incompleteBuffer.isReadable()) { out.add(incompleteBuffer.toString(encoding)); } }
[ "public", "void", "decodeLast", "(", "ByteBuf", "in", ",", "List", "<", "Object", ">", "out", ",", "ByteBufAllocator", "allocator", ")", "{", "decode", "(", "in", ",", "out", ",", "allocator", ")", ";", "if", "(", "null", "!=", "incompleteBuffer", "&&", ...
Same as {@link #decode(ByteBuf, List, ByteBufAllocator)} but it also produces the left-over buffer, even in absence of a line termination. {@link #dispose()} must be called when the associated {@link ChannelHandler} is removed from the pipeline. @param in Buffer to decode. @param out List to add the read lines to. @p...
[ "Same", "as", "{", "@link", "#decode", "(", "ByteBuf", "List", "ByteBufAllocator", ")", "}", "but", "it", "also", "produces", "the", "left", "-", "over", "buffer", "even", "in", "absence", "of", "a", "line", "termination", "." ]
train
https://github.com/ReactiveX/RxNetty/blob/a7ca9a9c1d544a79c82f7b17036daf6958bf1cd6/rxnetty-common/src/main/java/io/reactivex/netty/util/LineReader.java#L112-L117
landawn/AbacusUtil
src/com/landawn/abacus/util/CSVUtil.java
CSVUtil.exportCSV
@SuppressWarnings("unchecked") public static long exportCSV(final File out, final PreparedStatement stmt) throws UncheckedSQLException, UncheckedIOException { """ Exports the data from database to CVS. Title will be added at the first line and columns will be quoted. @param out @param stmt @return ""...
java
@SuppressWarnings("unchecked") public static long exportCSV(final File out, final PreparedStatement stmt) throws UncheckedSQLException, UncheckedIOException { return exportCSV(out, stmt, 0, Long.MAX_VALUE, true, true); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "long", "exportCSV", "(", "final", "File", "out", ",", "final", "PreparedStatement", "stmt", ")", "throws", "UncheckedSQLException", ",", "UncheckedIOException", "{", "return", "exportCSV", "(",...
Exports the data from database to CVS. Title will be added at the first line and columns will be quoted. @param out @param stmt @return
[ "Exports", "the", "data", "from", "database", "to", "CVS", ".", "Title", "will", "be", "added", "at", "the", "first", "line", "and", "columns", "will", "be", "quoted", "." ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/CSVUtil.java#L749-L752
exoplatform/jcr
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionDataManager.java
SessionDataManager.reloadDescendants
private void reloadDescendants(QPath parentOld, QPath parent) throws RepositoryException { """ Reload item's descendants in item reference pool @param parentOld old item's QPath to get descendants out of item reference pool @param parent new item's QPath to set for reloaded descendants @throws RepositoryExcep...
java
private void reloadDescendants(QPath parentOld, QPath parent) throws RepositoryException { List<ItemImpl> items = itemsPool.getDescendats(parentOld); for (ItemImpl item : items) { ItemData oldItemData = item.getData(); ItemData newItemData = updatePath(parentOld, parent, oldItem...
[ "private", "void", "reloadDescendants", "(", "QPath", "parentOld", ",", "QPath", "parent", ")", "throws", "RepositoryException", "{", "List", "<", "ItemImpl", ">", "items", "=", "itemsPool", ".", "getDescendats", "(", "parentOld", ")", ";", "for", "(", "ItemIm...
Reload item's descendants in item reference pool @param parentOld old item's QPath to get descendants out of item reference pool @param parent new item's QPath to set for reloaded descendants @throws RepositoryException
[ "Reload", "item", "s", "descendants", "in", "item", "reference", "pool" ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionDataManager.java#L2375-L2391
diffplug/durian
src/com/diffplug/common/base/TreeNode.java
TreeNode.getPath
public String getPath(Function<? super T, String> toString, String delimiter) { """ Returns the path of this node, using the given {@code toString} method and {@code delimiter}. """ return TreeQuery.path(treeDef(), this, node -> toString.apply(node.getContent()), delimiter); }
java
public String getPath(Function<? super T, String> toString, String delimiter) { return TreeQuery.path(treeDef(), this, node -> toString.apply(node.getContent()), delimiter); }
[ "public", "String", "getPath", "(", "Function", "<", "?", "super", "T", ",", "String", ">", "toString", ",", "String", "delimiter", ")", "{", "return", "TreeQuery", ".", "path", "(", "treeDef", "(", ")", ",", "this", ",", "node", "->", "toString", ".",...
Returns the path of this node, using the given {@code toString} method and {@code delimiter}.
[ "Returns", "the", "path", "of", "this", "node", "using", "the", "given", "{" ]
train
https://github.com/diffplug/durian/blob/10631a3480e5491eb6eb6ee06e752d8596914232/src/com/diffplug/common/base/TreeNode.java#L104-L106
querydsl/querydsl
querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java
Expressions.timeTemplate
public static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, String template, List<?> args) { """ Create a new Template expression @param cl type of expression @param template template @param args template parameters @return template expression """ return timeTempla...
java
public static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, String template, List<?> args) { return timeTemplate(cl, createTemplate(template), args); }
[ "public", "static", "<", "T", "extends", "Comparable", "<", "?", ">", ">", "TimeTemplate", "<", "T", ">", "timeTemplate", "(", "Class", "<", "?", "extends", "T", ">", "cl", ",", "String", "template", ",", "List", "<", "?", ">", "args", ")", "{", "r...
Create a new Template expression @param cl type of expression @param template template @param args template parameters @return template expression
[ "Create", "a", "new", "Template", "expression" ]
train
https://github.com/querydsl/querydsl/blob/2bf234caf78549813a1e0f44d9c30ecc5ef734e3/querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java#L672-L674
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/BandwidthSchedulesInner.java
BandwidthSchedulesInner.getAsync
public Observable<BandwidthScheduleInner> getAsync(String deviceName, String name, String resourceGroupName) { """ Gets the properties of the specified bandwidth schedule. @param deviceName The device name. @param name The bandwidth schedule name. @param resourceGroupName The resource group name. @throws Ill...
java
public Observable<BandwidthScheduleInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<BandwidthScheduleInner>, BandwidthScheduleInner>() { @Override public Bandw...
[ "public", "Observable", "<", "BandwidthScheduleInner", ">", "getAsync", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGroupName",...
Gets the properties of the specified bandwidth schedule. @param deviceName The device name. @param name The bandwidth schedule name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the BandwidthScheduleInner object
[ "Gets", "the", "properties", "of", "the", "specified", "bandwidth", "schedule", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/BandwidthSchedulesInner.java#L255-L262
cdk/cdk
base/standard/src/main/java/org/openscience/cdk/fingerprint/FingerprinterTool.java
FingerprinterTool.makeBitFingerprint
public static IBitFingerprint makeBitFingerprint(final Map<String,Integer> features, int len) { """ Convert a mapping of features and their counts to a binary fingerprint. A single bit is set for each pattern. @param features features to include @param len fingerprint length @return the continuous fingerprin...
java
public static IBitFingerprint makeBitFingerprint(final Map<String,Integer> features, int len) { return makeBitFingerprint(features, len, 1); }
[ "public", "static", "IBitFingerprint", "makeBitFingerprint", "(", "final", "Map", "<", "String", ",", "Integer", ">", "features", ",", "int", "len", ")", "{", "return", "makeBitFingerprint", "(", "features", ",", "len", ",", "1", ")", ";", "}" ]
Convert a mapping of features and their counts to a binary fingerprint. A single bit is set for each pattern. @param features features to include @param len fingerprint length @return the continuous fingerprint @see #makeBitFingerprint(java.util.Map, int, int)
[ "Convert", "a", "mapping", "of", "features", "and", "their", "counts", "to", "a", "binary", "fingerprint", ".", "A", "single", "bit", "is", "set", "for", "each", "pattern", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/base/standard/src/main/java/org/openscience/cdk/fingerprint/FingerprinterTool.java#L144-L146
BotMill/fb-botmill
src/main/java/co/aurasphere/botmill/fb/model/outcoming/factory/GenericTemplateBuilder.java
GenericTemplateBuilder.addQuickReply
public GenericTemplateBuilder addQuickReply(String title, String payload) { """ Adds a {@link QuickReply} to the current object. @param title the quick reply button label. It can't be empty. @param payload the payload sent back when the button is pressed. It can't be empty. @return this builder. @see <a h...
java
public GenericTemplateBuilder addQuickReply(String title, String payload) { this.messageBuilder.addQuickReply(title, payload); return this; }
[ "public", "GenericTemplateBuilder", "addQuickReply", "(", "String", "title", ",", "String", "payload", ")", "{", "this", ".", "messageBuilder", ".", "addQuickReply", "(", "title", ",", "payload", ")", ";", "return", "this", ";", "}" ]
Adds a {@link QuickReply} to the current object. @param title the quick reply button label. It can't be empty. @param payload the payload sent back when the button is pressed. It can't be empty. @return this builder. @see <a href= "https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replie...
[ "Adds", "a", "{", "@link", "QuickReply", "}", "to", "the", "current", "object", "." ]
train
https://github.com/BotMill/fb-botmill/blob/d94da3615a7339822c137ef75c92a03d791ee969/src/main/java/co/aurasphere/botmill/fb/model/outcoming/factory/GenericTemplateBuilder.java#L99-L102
Alluxio/alluxio
core/common/src/main/java/alluxio/metrics/MetricsSystem.java
MetricsSystem.registerGaugeIfAbsent
public static synchronized <T> void registerGaugeIfAbsent(String name, Gauge<T> metric) { """ Registers a gauge if it has not been registered. @param name the gauge name @param metric the gauge @param <T> the type """ if (!METRIC_REGISTRY.getGauges().containsKey(name)) { METRIC_REGISTRY.register...
java
public static synchronized <T> void registerGaugeIfAbsent(String name, Gauge<T> metric) { if (!METRIC_REGISTRY.getGauges().containsKey(name)) { METRIC_REGISTRY.register(name, metric); } }
[ "public", "static", "synchronized", "<", "T", ">", "void", "registerGaugeIfAbsent", "(", "String", "name", ",", "Gauge", "<", "T", ">", "metric", ")", "{", "if", "(", "!", "METRIC_REGISTRY", ".", "getGauges", "(", ")", ".", "containsKey", "(", "name", ")...
Registers a gauge if it has not been registered. @param name the gauge name @param metric the gauge @param <T> the type
[ "Registers", "a", "gauge", "if", "it", "has", "not", "been", "registered", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/common/src/main/java/alluxio/metrics/MetricsSystem.java#L400-L404
dashorst/wicket-stuff-markup-validator
jing/src/main/java/com/thaiopensource/validate/nvdl/ModeUsage.java
ModeUsage.addContext
boolean addContext(boolean isRoot, Vector names, Mode mode) { """ Adds a new context (isRoot, path --> mode). @param isRoot Flag indicating that the path starts or not with / @param names The local names that form the path. @param mode The mode for this path. @return true if we do not have a duplicate path. ...
java
boolean addContext(boolean isRoot, Vector names, Mode mode) { if (modeMap == null) modeMap = new ContextMap(); return modeMap.put(isRoot, names, mode); }
[ "boolean", "addContext", "(", "boolean", "isRoot", ",", "Vector", "names", ",", "Mode", "mode", ")", "{", "if", "(", "modeMap", "==", "null", ")", "modeMap", "=", "new", "ContextMap", "(", ")", ";", "return", "modeMap", ".", "put", "(", "isRoot", ",", ...
Adds a new context (isRoot, path --> mode). @param isRoot Flag indicating that the path starts or not with / @param names The local names that form the path. @param mode The mode for this path. @return true if we do not have a duplicate path.
[ "Adds", "a", "new", "context", "(", "isRoot", "path", "--", ">", "mode", ")", "." ]
train
https://github.com/dashorst/wicket-stuff-markup-validator/blob/9e529a4dc8bfdbbe4c794f3132ef400a006560a1/jing/src/main/java/com/thaiopensource/validate/nvdl/ModeUsage.java#L154-L158
looly/hutool
hutool-crypto/src/main/java/cn/hutool/crypto/KeyUtil.java
KeyUtil.generateKeyPair
public static KeyPair generateKeyPair(String algorithm, byte[] seed, AlgorithmParameterSpec param) { """ 生成用于非对称加密的公钥和私钥<br> 密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator @param algorithm 非对称加密算法 @param param {@link AlgorithmParameterSpec} @param...
java
public static KeyPair generateKeyPair(String algorithm, byte[] seed, AlgorithmParameterSpec param) { return generateKeyPair(algorithm, DEFAULT_KEY_SIZE, seed, param); }
[ "public", "static", "KeyPair", "generateKeyPair", "(", "String", "algorithm", ",", "byte", "[", "]", "seed", ",", "AlgorithmParameterSpec", "param", ")", "{", "return", "generateKeyPair", "(", "algorithm", ",", "DEFAULT_KEY_SIZE", ",", "seed", ",", "param", ")",...
生成用于非对称加密的公钥和私钥<br> 密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator @param algorithm 非对称加密算法 @param param {@link AlgorithmParameterSpec} @param seed 种子 @return {@link KeyPair} @since 4.3.3
[ "生成用于非对称加密的公钥和私钥<br", ">", "密钥对生成算法见:https", ":", "//", "docs", ".", "oracle", ".", "com", "/", "javase", "/", "7", "/", "docs", "/", "technotes", "/", "guides", "/", "security", "/", "StandardNames", ".", "html#KeyPairGenerator" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-crypto/src/main/java/cn/hutool/crypto/KeyUtil.java#L378-L380
Azure/azure-sdk-for-java
eventgrid/resource-manager/v2018_05_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_05_01_preview/implementation/EventSubscriptionsInner.java
EventSubscriptionsInner.getAsync
public Observable<EventSubscriptionInner> getAsync(String scope, String eventSubscriptionName) { """ Get an event subscription. Get properties of an event subscription. @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a...
java
public Observable<EventSubscriptionInner> getAsync(String scope, String eventSubscriptionName) { return getWithServiceResponseAsync(scope, eventSubscriptionName).map(new Func1<ServiceResponse<EventSubscriptionInner>, EventSubscriptionInner>() { @Override public EventSubscriptionInner cal...
[ "public", "Observable", "<", "EventSubscriptionInner", ">", "getAsync", "(", "String", "scope", ",", "String", "eventSubscriptionName", ")", "{", "return", "getWithServiceResponseAsync", "(", "scope", ",", "eventSubscriptionName", ")", ".", "map", "(", "new", "Func1...
Get an event subscription. Get properties of an event subscription. @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for ...
[ "Get", "an", "event", "subscription", ".", "Get", "properties", "of", "an", "event", "subscription", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/resource-manager/v2018_05_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_05_01_preview/implementation/EventSubscriptionsInner.java#L174-L181
jboss/jboss-jsf-api_spec
src/main/java/javax/faces/application/StateManager.java
StateManager.saveSerializedView
public SerializedView saveSerializedView(FacesContext context) { """ <p>Return the tree structure and component state information for the view contained in the specified {@link FacesContext} instance as an object of type <code>StateManager.SerializedView</code>. If there is no state information to be saved, re...
java
public SerializedView saveSerializedView(FacesContext context) { context.getAttributes().put(IS_CALLED_FROM_API_CLASS, Boolean.TRUE); Object stateObj = null; try { stateObj = saveView(context); } finally { context.getAttributes().remove(IS_CALLED_FROM_API_CLASS);...
[ "public", "SerializedView", "saveSerializedView", "(", "FacesContext", "context", ")", "{", "context", ".", "getAttributes", "(", ")", ".", "put", "(", "IS_CALLED_FROM_API_CLASS", ",", "Boolean", ".", "TRUE", ")", ";", "Object", "stateObj", "=", "null", ";", "...
<p>Return the tree structure and component state information for the view contained in the specified {@link FacesContext} instance as an object of type <code>StateManager.SerializedView</code>. If there is no state information to be saved, return <code>null</code> instead.</p> <p/> <p>Components may opt out of being i...
[ "<p", ">", "Return", "the", "tree", "structure", "and", "component", "state", "information", "for", "the", "view", "contained", "in", "the", "specified", "{", "@link", "FacesContext", "}", "instance", "as", "an", "object", "of", "type", "<code", ">", "StateM...
train
https://github.com/jboss/jboss-jsf-api_spec/blob/cb33d215acbab847f2db5cdf2c6fe4d99c0a01c3/src/main/java/javax/faces/application/StateManager.java#L227-L247
Azure/azure-sdk-for-java
network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PublicIPAddressesInner.java
PublicIPAddressesInner.listVirtualMachineScaleSetVMPublicIPAddressesAsync
public Observable<Page<PublicIPAddressInner>> listVirtualMachineScaleSetVMPublicIPAddressesAsync(final String resourceGroupName, final String virtualMachineScaleSetName, final String virtualmachineIndex, final String networkInterfaceName, final String ipConfigurationName) { """ Gets information about all public IP...
java
public Observable<Page<PublicIPAddressInner>> listVirtualMachineScaleSetVMPublicIPAddressesAsync(final String resourceGroupName, final String virtualMachineScaleSetName, final String virtualmachineIndex, final String networkInterfaceName, final String ipConfigurationName) { return listVirtualMachineScaleSetVMPu...
[ "public", "Observable", "<", "Page", "<", "PublicIPAddressInner", ">", ">", "listVirtualMachineScaleSetVMPublicIPAddressesAsync", "(", "final", "String", "resourceGroupName", ",", "final", "String", "virtualMachineScaleSetName", ",", "final", "String", "virtualmachineIndex", ...
Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set. @param resourceGroupName The name of the resource group. @param virtualMachineScaleSetName The name of the virtual machine scale set. @param virtualmachineIndex The virtual machine index. @param network...
[ "Gets", "information", "about", "all", "public", "IP", "addresses", "in", "a", "virtual", "machine", "IP", "configuration", "in", "a", "virtual", "machine", "scale", "set", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PublicIPAddressesInner.java#L1332-L1340
liferay/com-liferay-commerce
commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java
CommerceNotificationTemplatePersistenceImpl.findByGroupId
@Override public List<CommerceNotificationTemplate> findByGroupId(long groupId, int start, int end) { """ Returns a range of all the commerce notification templates where groupId = &#63;. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <cod...
java
@Override public List<CommerceNotificationTemplate> findByGroupId(long groupId, int start, int end) { return findByGroupId(groupId, start, end, null); }
[ "@", "Override", "public", "List", "<", "CommerceNotificationTemplate", ">", "findByGroupId", "(", "long", "groupId", ",", "int", "start", ",", "int", "end", ")", "{", "return", "findByGroupId", "(", "groupId", ",", "start", ",", "end", ",", "null", ")", "...
Returns a range of all the commerce notification templates where groupId = &#63;. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first resul...
[ "Returns", "a", "range", "of", "all", "the", "commerce", "notification", "templates", "where", "groupId", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L1561-L1565
moparisthebest/beehive
beehive-ejb-control/src/main/java/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java
EJBJarDescriptorHandler.insertEJBRefInEJBJar
private void insertEJBRefInEJBJar(Element ejb, EJBInfo ei, String ejbLinkValue, Document ejbDoc) { """ Insert a remote ejb-ref into the specified EJB's descriptor, if an ejb-ref already exists with the same name, remove it before adding a new ref. @param ejb Root DOM element of the EJB descriptor. @p...
java
private void insertEJBRefInEJBJar(Element ejb, EJBInfo ei, String ejbLinkValue, Document ejbDoc) { List ejbRefArray = DomUtils.getChildElementsByName(ejb, "ejb-ref"); String insertedEjbRefName = ei.getRefName(); Node nextSibling = null; for (int j = ejbRefArray.size() - 1; j >= 0; j--)...
[ "private", "void", "insertEJBRefInEJBJar", "(", "Element", "ejb", ",", "EJBInfo", "ei", ",", "String", "ejbLinkValue", ",", "Document", "ejbDoc", ")", "{", "List", "ejbRefArray", "=", "DomUtils", ".", "getChildElementsByName", "(", "ejb", ",", "\"ejb-ref\"", ")"...
Insert a remote ejb-ref into the specified EJB's descriptor, if an ejb-ref already exists with the same name, remove it before adding a new ref. @param ejb Root DOM element of the EJB descriptor. @param ei EJBInfo helper. @param ejbLinkValue New ejb-link value. @param ejbDoc The ejb-jar DOM ro...
[ "Insert", "a", "remote", "ejb", "-", "ref", "into", "the", "specified", "EJB", "s", "descriptor", "if", "an", "ejb", "-", "ref", "already", "exists", "with", "the", "same", "name", "remove", "it", "before", "adding", "a", "new", "ref", "." ]
train
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-ejb-control/src/main/java/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java#L111-L155
TheHolyWaffle/League-of-Legends-XMPP-Chat-Library
src/main/java/com/github/theholywaffle/lolchatapi/LolChat.java
LolChat.getFriend
public Friend getFriend(Filter<Friend> filter) { """ Gets a friend based on a given filter. @param filter The filter defines conditions that your Friend must meet. @return The first Friend that meets the conditions or null if not found. """ for (final RosterEntry e : connection.getRoster().getEntries())...
java
public Friend getFriend(Filter<Friend> filter) { for (final RosterEntry e : connection.getRoster().getEntries()) { final Friend f = new Friend(this, connection, e); if (filter.accept(f)) { return f; } } return null; }
[ "public", "Friend", "getFriend", "(", "Filter", "<", "Friend", ">", "filter", ")", "{", "for", "(", "final", "RosterEntry", "e", ":", "connection", ".", "getRoster", "(", ")", ".", "getEntries", "(", ")", ")", "{", "final", "Friend", "f", "=", "new", ...
Gets a friend based on a given filter. @param filter The filter defines conditions that your Friend must meet. @return The first Friend that meets the conditions or null if not found.
[ "Gets", "a", "friend", "based", "on", "a", "given", "filter", "." ]
train
https://github.com/TheHolyWaffle/League-of-Legends-XMPP-Chat-Library/blob/5e4d87d0c054ff2f6510545b0e9f838338695c70/src/main/java/com/github/theholywaffle/lolchatapi/LolChat.java#L439-L447
FINRAOS/JTAF-ExtWebDriver
src/main/java/org/finra/jtaf/ewd/properties/GUIHierarchyConcatenationProperties.java
GUIHierarchyConcatenationProperties.getPropertyValue
public String getPropertyValue(String[] propertyNames, String... parameters) { """ Searches over the group of {@code GUIProperties} for a property corresponding to a hierarchical concatenation of the given names. <p> Concatenation of property names is done from high index to low. That is to say, for the array ...
java
public String getPropertyValue(String[] propertyNames, String... parameters) { // Create possible combinations of property names String value; List<String> possiblePropertyNames = new ArrayList<String>(); StringBuffer fullName = new StringBuffer(); for (int i = 0; i < propertyNam...
[ "public", "String", "getPropertyValue", "(", "String", "[", "]", "propertyNames", ",", "String", "...", "parameters", ")", "{", "// Create possible combinations of property names", "String", "value", ";", "List", "<", "String", ">", "possiblePropertyNames", "=", "new"...
Searches over the group of {@code GUIProperties} for a property corresponding to a hierarchical concatenation of the given names. <p> Concatenation of property names is done from high index to low. That is to say, for the array {@code ["a", "b", "c"]}, the names searched will be {@code "cba"}, {@code "cb"}, {@code "c"}...
[ "Searches", "over", "the", "group", "of", "{", "@code", "GUIProperties", "}", "for", "a", "property", "corresponding", "to", "a", "hierarchical", "concatenation", "of", "the", "given", "names", ".", "<p", ">", "Concatenation", "of", "property", "names", "is", ...
train
https://github.com/FINRAOS/JTAF-ExtWebDriver/blob/78d646def1bf0904f79b19a81df0241e07f2c73a/src/main/java/org/finra/jtaf/ewd/properties/GUIHierarchyConcatenationProperties.java#L140-L171
eurekaclinical/protempa
protempa-framework/src/main/java/org/protempa/proposition/PropositionUtil.java
PropositionUtil.binarySearchMaxFinish
private static int binarySearchMaxFinish( List<? extends TemporalProposition> params, long timestamp) { """ Binary search for a primitive parameter by timestamp. @param list a <code>List</code> of <code>PrimitiveParameter</code> objects all with the same paramId, cannot be <code>null</code>. @par...
java
private static int binarySearchMaxFinish( List<? extends TemporalProposition> params, long timestamp) { /* * The conditions for using index versus iterator are grabbed from the * JDK source code. */ if (params.size() < 5000 || params instanceof RandomAccess) { ...
[ "private", "static", "int", "binarySearchMaxFinish", "(", "List", "<", "?", "extends", "TemporalProposition", ">", "params", ",", "long", "timestamp", ")", "{", "/*\n * The conditions for using index versus iterator are grabbed from the\n * JDK source code.\n ...
Binary search for a primitive parameter by timestamp. @param list a <code>List</code> of <code>PrimitiveParameter</code> objects all with the same paramId, cannot be <code>null</code>. @param tstamp the timestamp we're interested in finding. @return a <code>PrimitiveParameter</code>, or null if not found.
[ "Binary", "search", "for", "a", "primitive", "parameter", "by", "timestamp", "." ]
train
https://github.com/eurekaclinical/protempa/blob/5a620d1a407c7a5426d1cf17d47b97717cf71634/protempa-framework/src/main/java/org/protempa/proposition/PropositionUtil.java#L306-L317
raydac/java-binary-block-parser
jbbp/src/main/java/com/igormaznitsa/jbbp/utils/JBBPDslBuilder.java
JBBPDslBuilder.BitArray
public JBBPDslBuilder BitArray(final String name, final String bitLenExpression, final String sizeExpression) { """ Add named bit array where each bit length is calculated through expression. @param name name of the array, if null then anonymous one @param bitLenExpression expression to calculate l...
java
public JBBPDslBuilder BitArray(final String name, final String bitLenExpression, final String sizeExpression) { final Item item = new Item(BinType.BIT_ARRAY, name, this.byteOrder); item.bitLenExpression = assertExpressionChars(bitLenExpression); item.sizeExpression = assertExpressionChars(sizeExpression); ...
[ "public", "JBBPDslBuilder", "BitArray", "(", "final", "String", "name", ",", "final", "String", "bitLenExpression", ",", "final", "String", "sizeExpression", ")", "{", "final", "Item", "item", "=", "new", "Item", "(", "BinType", ".", "BIT_ARRAY", ",", "name", ...
Add named bit array where each bit length is calculated through expression. @param name name of the array, if null then anonymous one @param bitLenExpression expression to calculate length of the bit field, must not be null @param sizeExpression expression to be used to calculate array size, must not be ...
[ "Add", "named", "bit", "array", "where", "each", "bit", "length", "is", "calculated", "through", "expression", "." ]
train
https://github.com/raydac/java-binary-block-parser/blob/6d98abcab01e0c72d525ebcc9e7b694f9ce49f5b/jbbp/src/main/java/com/igormaznitsa/jbbp/utils/JBBPDslBuilder.java#L738-L744
Scalified/viewmover
viewmover/src/main/java/com/scalified/viewmover/movers/MarginViewMover.java
MarginViewMover.changeViewPosition
@Override void changeViewPosition(float xAxisDelta, float yAxisDelta) { """ Changes the position of the view, based on view's margins within its parent container @param xAxisDelta X-axis delta in actual pixels @param yAxisDelta Y-axis delta in actual pixels """ ViewGroup.MarginLayoutParams layoutParams ...
java
@Override void changeViewPosition(float xAxisDelta, float yAxisDelta) { ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) getView().getLayoutParams(); if (isViewLeftAligned(layoutParams)) { layoutParams.leftMargin += xAxisDelta; } else { layoutParams.rightMargin -= xAxisDelta; } ...
[ "@", "Override", "void", "changeViewPosition", "(", "float", "xAxisDelta", ",", "float", "yAxisDelta", ")", "{", "ViewGroup", ".", "MarginLayoutParams", "layoutParams", "=", "(", "ViewGroup", ".", "MarginLayoutParams", ")", "getView", "(", ")", ".", "getLayoutPara...
Changes the position of the view, based on view's margins within its parent container @param xAxisDelta X-axis delta in actual pixels @param yAxisDelta Y-axis delta in actual pixels
[ "Changes", "the", "position", "of", "the", "view", "based", "on", "view", "s", "margins", "within", "its", "parent", "container" ]
train
https://github.com/Scalified/viewmover/blob/e2b35f7d8517a5533afe8b68a4c1ee352d9aec34/viewmover/src/main/java/com/scalified/viewmover/movers/MarginViewMover.java#L61-L77
Netflix/spectator
spectator-ext-placeholders/src/main/java/com/netflix/spectator/placeholders/DefaultPlaceholderId.java
DefaultPlaceholderId.createNewId
private DefaultPlaceholderId createNewId(Consumer<FactorySorterAndDeduplicator> consumer) { """ Creates a new dynamic id based on the factories associated with this id and whatever additions are made by the specified consumer. @param consumer lambda that can update the sorter with additional tag factories @r...
java
private DefaultPlaceholderId createNewId(Consumer<FactorySorterAndDeduplicator> consumer) { FactorySorterAndDeduplicator sorter = new FactorySorterAndDeduplicator(tagFactories); consumer.accept(sorter); return new DefaultPlaceholderId(name, sorter.asCollection(), registry); }
[ "private", "DefaultPlaceholderId", "createNewId", "(", "Consumer", "<", "FactorySorterAndDeduplicator", ">", "consumer", ")", "{", "FactorySorterAndDeduplicator", "sorter", "=", "new", "FactorySorterAndDeduplicator", "(", "tagFactories", ")", ";", "consumer", ".", "accept...
Creates a new dynamic id based on the factories associated with this id and whatever additions are made by the specified consumer. @param consumer lambda that can update the sorter with additional tag factories @return the newly created id
[ "Creates", "a", "new", "dynamic", "id", "based", "on", "the", "factories", "associated", "with", "this", "id", "and", "whatever", "additions", "are", "made", "by", "the", "specified", "consumer", "." ]
train
https://github.com/Netflix/spectator/blob/259318252770de3bad581b85adff187d8f2c6537/spectator-ext-placeholders/src/main/java/com/netflix/spectator/placeholders/DefaultPlaceholderId.java#L210-L215
datasift/datasift-java
src/main/java/com/datasift/client/accounts/DataSiftAccount.java
DataSiftAccount.createToken
public FutureData<Token> createToken(String identity, String service, String token) { """ /* Create a new token @param identity identity to store this token under @param service service name to give this token @param token token @return Created Token """ if (service == null || service.isEmpt...
java
public FutureData<Token> createToken(String identity, String service, String token) { if (service == null || service.isEmpty()) { throw new IllegalArgumentException("A service is required"); } if (token == null || token.isEmpty()) { throw new IllegalArgumentException("A t...
[ "public", "FutureData", "<", "Token", ">", "createToken", "(", "String", "identity", ",", "String", "service", ",", "String", "token", ")", "{", "if", "(", "service", "==", "null", "||", "service", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "I...
/* Create a new token @param identity identity to store this token under @param service service name to give this token @param token token @return Created Token
[ "/", "*", "Create", "a", "new", "token" ]
train
https://github.com/datasift/datasift-java/blob/09de124f2a1a507ff6181e59875c6f325290850e/src/main/java/com/datasift/client/accounts/DataSiftAccount.java#L227-L245
dropbox/dropbox-sdk-java
src/main/java/com/dropbox/core/v1/DbxClientV1.java
DbxClientV1.getLongpollDelta
public DbxLongpollDeltaResult getLongpollDelta(String cursor, int timeout) throws DbxException { """ Waits for changes to files on an account, starting from the state represented by {@code cursor}. @param cursor A cursor returned by ono of the "delta" methods. @param timeout How long poll should ru...
java
public DbxLongpollDeltaResult getLongpollDelta(String cursor, int timeout) throws DbxException { if (cursor == null) throw new IllegalArgumentException("'cursor' can't be null"); if (timeout < 30 || timeout > 480) throw new IllegalArgumentException("'timeout' must be >=30 and <= 480"); ...
[ "public", "DbxLongpollDeltaResult", "getLongpollDelta", "(", "String", "cursor", ",", "int", "timeout", ")", "throws", "DbxException", "{", "if", "(", "cursor", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"'cursor' can't be null\"", ")", ";...
Waits for changes to files on an account, starting from the state represented by {@code cursor}. @param cursor A cursor returned by ono of the "delta" methods. @param timeout How long poll should run before timing out, in seconds.
[ "Waits", "for", "changes", "to", "files", "on", "an", "account", "starting", "from", "the", "state", "represented", "by", "{", "@code", "cursor", "}", "." ]
train
https://github.com/dropbox/dropbox-sdk-java/blob/d86157005fad6233c18b4b0f10f00b8d9d56ae92/src/main/java/com/dropbox/core/v1/DbxClientV1.java#L1712-L1740
facebookarchive/swift
swift-codec/src/main/java/com/facebook/swift/codec/internal/compiler/ThriftCodecByteCodeGenerator.java
ThriftCodecByteCodeGenerator.declareCodecFields
private Map<Short, FieldDefinition> declareCodecFields() { """ Declares a field for each delegate codec @return a map from field id to the codec for the field """ Map<Short, FieldDefinition> codecFields = new TreeMap<>(); for (ThriftFieldMetadata fieldMetadata : metadata.getFields()) { ...
java
private Map<Short, FieldDefinition> declareCodecFields() { Map<Short, FieldDefinition> codecFields = new TreeMap<>(); for (ThriftFieldMetadata fieldMetadata : metadata.getFields()) { if (needsCodec(fieldMetadata)) { ThriftCodec<?> codec = codecManager.getCodec(fieldMetad...
[ "private", "Map", "<", "Short", ",", "FieldDefinition", ">", "declareCodecFields", "(", ")", "{", "Map", "<", "Short", ",", "FieldDefinition", ">", "codecFields", "=", "new", "TreeMap", "<>", "(", ")", ";", "for", "(", "ThriftFieldMetadata", "fieldMetadata", ...
Declares a field for each delegate codec @return a map from field id to the codec for the field
[ "Declares", "a", "field", "for", "each", "delegate", "codec" ]
train
https://github.com/facebookarchive/swift/blob/3f1f098a50d6106f50cd6fe1c361dd373ede0197/swift-codec/src/main/java/com/facebook/swift/codec/internal/compiler/ThriftCodecByteCodeGenerator.java#L216-L233
rollbar/rollbar-java
rollbar-android/src/main/java/com/rollbar/android/Rollbar.java
Rollbar.reportMessage
@Deprecated public static void reportMessage(final String message, final String level) { """ Report a message to Rollbar, specifying the level. @param message the message to send. @param level the severity level. """ reportMessage(message, level, null); }
java
@Deprecated public static void reportMessage(final String message, final String level) { reportMessage(message, level, null); }
[ "@", "Deprecated", "public", "static", "void", "reportMessage", "(", "final", "String", "message", ",", "final", "String", "level", ")", "{", "reportMessage", "(", "message", ",", "level", ",", "null", ")", ";", "}" ]
Report a message to Rollbar, specifying the level. @param message the message to send. @param level the severity level.
[ "Report", "a", "message", "to", "Rollbar", "specifying", "the", "level", "." ]
train
https://github.com/rollbar/rollbar-java/blob/5eb4537d1363722b51cfcce55b427cbd8489f17b/rollbar-android/src/main/java/com/rollbar/android/Rollbar.java#L871-L874
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonbindings_service_binding.java
lbmonbindings_service_binding.count_filtered
public static long count_filtered(nitro_service service, String monitorname, String filter) throws Exception { """ Use this API to count the filtered set of lbmonbindings_service_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP". """ lbmonbindings_service_binding obj =...
java
public static long count_filtered(nitro_service service, String monitorname, String filter) throws Exception{ lbmonbindings_service_binding obj = new lbmonbindings_service_binding(); obj.set_monitorname(monitorname); options option = new options(); option.set_count(true); option.set_filter(filter); lbmonbin...
[ "public", "static", "long", "count_filtered", "(", "nitro_service", "service", ",", "String", "monitorname", ",", "String", "filter", ")", "throws", "Exception", "{", "lbmonbindings_service_binding", "obj", "=", "new", "lbmonbindings_service_binding", "(", ")", ";", ...
Use this API to count the filtered set of lbmonbindings_service_binding resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
[ "Use", "this", "API", "to", "count", "the", "filtered", "set", "of", "lbmonbindings_service_binding", "resources", ".", "filter", "string", "should", "be", "in", "JSON", "format", ".", "eg", ":", "port", ":", "80", "servicetype", ":", "HTTP", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonbindings_service_binding.java#L214-L225
looly/hutool
hutool-core/src/main/java/cn/hutool/core/lang/Validator.java
Validator.validateNotEmptyAndNotEqual
public static void validateNotEmptyAndNotEqual(Object t1, Object t2, String errorMsg) throws ValidateException { """ 验证是否非空且与指定值相等<br> 当数据为空时抛出验证异常<br> 当两值相等时抛出异常 @param t1 对象1 @param t2 对象2 @param errorMsg 错误信息 @throws ValidateException 验证异常 """ validateNotEmpty(t1, errorMsg); validateNotEqual(t...
java
public static void validateNotEmptyAndNotEqual(Object t1, Object t2, String errorMsg) throws ValidateException { validateNotEmpty(t1, errorMsg); validateNotEqual(t1, t2, errorMsg); }
[ "public", "static", "void", "validateNotEmptyAndNotEqual", "(", "Object", "t1", ",", "Object", "t2", ",", "String", "errorMsg", ")", "throws", "ValidateException", "{", "validateNotEmpty", "(", "t1", ",", "errorMsg", ")", ";", "validateNotEqual", "(", "t1", ",",...
验证是否非空且与指定值相等<br> 当数据为空时抛出验证异常<br> 当两值相等时抛出异常 @param t1 对象1 @param t2 对象2 @param errorMsg 错误信息 @throws ValidateException 验证异常
[ "验证是否非空且与指定值相等<br", ">", "当数据为空时抛出验证异常<br", ">", "当两值相等时抛出异常" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/lang/Validator.java#L294-L297
gallandarakhneorg/afc
advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java
DBaseFileAttributePool.getAccessor
@Pure DBaseFileAttributeAccessor getAccessor(int recordNumber) { """ Replies the attribute accessor associated to the specified record number. @param recordNumber is the number of the record for which an accessor may be obtainable. @return the accessor to the record at the given position. """ DBaseFile...
java
@Pure DBaseFileAttributeAccessor getAccessor(int recordNumber) { DBaseFileAttributeAccessor accessor = this.accessors.get(recordNumber); if (accessor == null) { accessor = new DBaseFileAttributeAccessor(this, recordNumber); this.accessors.put(recordNumber, accessor); } return accessor; }
[ "@", "Pure", "DBaseFileAttributeAccessor", "getAccessor", "(", "int", "recordNumber", ")", "{", "DBaseFileAttributeAccessor", "accessor", "=", "this", ".", "accessors", ".", "get", "(", "recordNumber", ")", ";", "if", "(", "accessor", "==", "null", ")", "{", "...
Replies the attribute accessor associated to the specified record number. @param recordNumber is the number of the record for which an accessor may be obtainable. @return the accessor to the record at the given position.
[ "Replies", "the", "attribute", "accessor", "associated", "to", "the", "specified", "record", "number", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/dbasefile/src/main/java/org/arakhne/afc/io/dbase/attr/DBaseFileAttributePool.java#L446-L454
dlemmermann/PreferencesFX
preferencesfx/src/main/java/com/dlsc/preferencesfx/formsfx/view/controls/SimpleControl.java
SimpleControl.updateStyle
@Override protected void updateStyle(PseudoClass pseudo, boolean newValue) { """ Sets the css style for the defined properties. @param pseudo The CSS pseudo class to toggle. @param newValue Determines whether the CSS class should be applied. """ if (node != null) { node.pseudoClassStateChange...
java
@Override protected void updateStyle(PseudoClass pseudo, boolean newValue) { if (node != null) { node.pseudoClassStateChanged(pseudo, newValue); } if (fieldLabel != null) { fieldLabel.pseudoClassStateChanged(pseudo, newValue); } }
[ "@", "Override", "protected", "void", "updateStyle", "(", "PseudoClass", "pseudo", ",", "boolean", "newValue", ")", "{", "if", "(", "node", "!=", "null", ")", "{", "node", ".", "pseudoClassStateChanged", "(", "pseudo", ",", "newValue", ")", ";", "}", "if",...
Sets the css style for the defined properties. @param pseudo The CSS pseudo class to toggle. @param newValue Determines whether the CSS class should be applied.
[ "Sets", "the", "css", "style", "for", "the", "defined", "properties", "." ]
train
https://github.com/dlemmermann/PreferencesFX/blob/e06a49663ec949c2f7eb56e6b5952c030ed42d33/preferencesfx/src/main/java/com/dlsc/preferencesfx/formsfx/view/controls/SimpleControl.java#L193-L201
lucee/Lucee
core/src/main/java/lucee/runtime/tag/Ldap.java
Ldap.setScope
public void setScope(String strScope) throws ApplicationException { """ Specifies the scope of the search from the entry specified in the Start attribute for action = "Query". @param strScope The scope to set. @throws ApplicationException """ strScope = strScope.trim().toLowerCase(); if (strScope.equals...
java
public void setScope(String strScope) throws ApplicationException { strScope = strScope.trim().toLowerCase(); if (strScope.equals("onelevel")) scope = SearchControls.ONELEVEL_SCOPE; else if (strScope.equals("base")) scope = SearchControls.OBJECT_SCOPE; else if (strScope.equals("subtree")) scope = SearchControls.SUB...
[ "public", "void", "setScope", "(", "String", "strScope", ")", "throws", "ApplicationException", "{", "strScope", "=", "strScope", ".", "trim", "(", ")", ".", "toLowerCase", "(", ")", ";", "if", "(", "strScope", ".", "equals", "(", "\"onelevel\"", ")", ")",...
Specifies the scope of the search from the entry specified in the Start attribute for action = "Query". @param strScope The scope to set. @throws ApplicationException
[ "Specifies", "the", "scope", "of", "the", "search", "from", "the", "entry", "specified", "in", "the", "Start", "attribute", "for", "action", "=", "Query", "." ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/tag/Ldap.java#L218-L224
sporniket/core
sporniket-core-strings/src/main/java/com/sporniket/strings/QuickDiff.java
QuickDiff.findNextMatchingLine
private int findNextMatchingLine(String[] textLines, int startingLine, String textToMatch) { """ Find the matching line, if any. @param textLines The source text as an array of lines. @param startingLine The line number from which to begin looking for the <code>textToMatch</code>. @param textToMatch The te...
java
private int findNextMatchingLine(String[] textLines, int startingLine, String textToMatch) { int _foundLeft = -1; { int _tempLine = startingLine + 1; while (_tempLine < textLines.length) { String _tempText = getTextLine(textLines, _tempLine); if (_tempText.equals(textToMatch)) { _foundLef...
[ "private", "int", "findNextMatchingLine", "(", "String", "[", "]", "textLines", ",", "int", "startingLine", ",", "String", "textToMatch", ")", "{", "int", "_foundLeft", "=", "-", "1", ";", "{", "int", "_tempLine", "=", "startingLine", "+", "1", ";", "while...
Find the matching line, if any. @param textLines The source text as an array of lines. @param startingLine The line number from which to begin looking for the <code>textToMatch</code>. @param textToMatch The text to look for. @return the line number that is the <code>textToMatch</code>.
[ "Find", "the", "matching", "line", "if", "any", "." ]
train
https://github.com/sporniket/core/blob/3480ebd72a07422fcc09971be2607ee25efb2c26/sporniket-core-strings/src/main/java/com/sporniket/strings/QuickDiff.java#L296-L313
hankcs/HanLP
src/main/java/com/hankcs/hanlp/seg/Other/CommonAhoCorasickSegmentUtil.java
CommonAhoCorasickSegmentUtil.segment
public static <V> LinkedList<ResultTerm<V>> segment(final char[] charArray, AhoCorasickDoubleArrayTrie<V> trie) { """ 最长分词,合并未知语素 @param charArray 文本 @param trie 自动机 @param <V> 类型 @return 结果链表 """ LinkedList<ResultTerm<V>> termList = new LinkedList<ResultTerm<V>>(); final ResultTerm<V>[] wo...
java
public static <V> LinkedList<ResultTerm<V>> segment(final char[] charArray, AhoCorasickDoubleArrayTrie<V> trie) { LinkedList<ResultTerm<V>> termList = new LinkedList<ResultTerm<V>>(); final ResultTerm<V>[] wordNet = new ResultTerm[charArray.length]; trie.parseText(charArray, new AhoCorasickD...
[ "public", "static", "<", "V", ">", "LinkedList", "<", "ResultTerm", "<", "V", ">", ">", "segment", "(", "final", "char", "[", "]", "charArray", ",", "AhoCorasickDoubleArrayTrie", "<", "V", ">", "trie", ")", "{", "LinkedList", "<", "ResultTerm", "<", "V",...
最长分词,合并未知语素 @param charArray 文本 @param trie 自动机 @param <V> 类型 @return 结果链表
[ "最长分词,合并未知语素" ]
train
https://github.com/hankcs/HanLP/blob/a538d0722ab2e4980a9dcd9ea40324fc3ddba7ce/src/main/java/com/hankcs/hanlp/seg/Other/CommonAhoCorasickSegmentUtil.java#L46-L81
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/row/RandomMatrices_DDRM.java
RandomMatrices_DDRM.setRandomB
public static void setRandomB(BMatrixRMaj mat , Random rand ) { """ <p> Sets each element in the boolean matrix to true or false with equal probability </p> @param mat The matrix who is to be randomized. Modified. @param rand Random number generator used to fill the matrix. """ boolean d[] = mat....
java
public static void setRandomB(BMatrixRMaj mat , Random rand ) { boolean d[] = mat.data; int size = mat.getNumElements(); for( int i = 0; i < size; i++ ) { d[i] = rand.nextBoolean(); } }
[ "public", "static", "void", "setRandomB", "(", "BMatrixRMaj", "mat", ",", "Random", "rand", ")", "{", "boolean", "d", "[", "]", "=", "mat", ".", "data", ";", "int", "size", "=", "mat", ".", "getNumElements", "(", ")", ";", "for", "(", "int", "i", "...
<p> Sets each element in the boolean matrix to true or false with equal probability </p> @param mat The matrix who is to be randomized. Modified. @param rand Random number generator used to fill the matrix.
[ "<p", ">", "Sets", "each", "element", "in", "the", "boolean", "matrix", "to", "true", "or", "false", "with", "equal", "probability", "<", "/", "p", ">" ]
train
https://github.com/lessthanoptimal/ejml/blob/1444680cc487af5e866730e62f48f5f9636850d9/main/ejml-ddense/src/org/ejml/dense/row/RandomMatrices_DDRM.java#L379-L388
UrielCh/ovh-java-sdk
ovh-java-sdk-me/src/main/java/net/minidev/ovh/api/ApiOvhMe.java
ApiOvhMe.task_domain_GET
public ArrayList<Long> task_domain_GET(String domain, OvhNicOperationFunctionEnum function, OvhOperationStatusEnum status) throws IOException { """ List of domain task REST: GET /me/task/domain @param status [required] Filter the value of status property (=) @param function [required] Filter the value of func...
java
public ArrayList<Long> task_domain_GET(String domain, OvhNicOperationFunctionEnum function, OvhOperationStatusEnum status) throws IOException { String qPath = "/me/task/domain"; StringBuilder sb = path(qPath); query(sb, "domain", domain); query(sb, "function", function); query(sb, "status", status); String ...
[ "public", "ArrayList", "<", "Long", ">", "task_domain_GET", "(", "String", "domain", ",", "OvhNicOperationFunctionEnum", "function", ",", "OvhOperationStatusEnum", "status", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/me/task/domain\"", ";", "String...
List of domain task REST: GET /me/task/domain @param status [required] Filter the value of status property (=) @param function [required] Filter the value of function property (like) @param domain [required] Filter the value of domain property (like)
[ "List", "of", "domain", "task" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-me/src/main/java/net/minidev/ovh/api/ApiOvhMe.java#L2280-L2288
kuali/kc-s2sgen
coeus-s2sgen-impl/src/main/java/org/kuali/coeus/s2sgen/impl/generate/support/RRSubAwardBudget10_30_1_4V1_4Generator.java
RRSubAwardBudget10_30_1_4V1_4Generator.getFormObject
@Override public RRSubawardBudget103014Document getFormObject(ProposalDevelopmentDocumentContract proposalDevelopmentDocument) { """ This method creates {@link XmlObject} of type {@link RRSubawardBudget103014Document} by populating data from the given {@link ProposalDevelopmentDocumentContract} @param prop...
java
@Override public RRSubawardBudget103014Document getFormObject(ProposalDevelopmentDocumentContract proposalDevelopmentDocument) { pdDoc = proposalDevelopmentDocument; try { return getRRSubawardBudgetDocument(); } catch (IOException | XmlException e) { throw new S2SExce...
[ "@", "Override", "public", "RRSubawardBudget103014Document", "getFormObject", "(", "ProposalDevelopmentDocumentContract", "proposalDevelopmentDocument", ")", "{", "pdDoc", "=", "proposalDevelopmentDocument", ";", "try", "{", "return", "getRRSubawardBudgetDocument", "(", ")", ...
This method creates {@link XmlObject} of type {@link RRSubawardBudget103014Document} by populating data from the given {@link ProposalDevelopmentDocumentContract} @param proposalDevelopmentDocument for which the {@link XmlObject} needs to be created @return {@link XmlObject} which is generated using the given {@link P...
[ "This", "method", "creates", "{", "@link", "XmlObject", "}", "of", "type", "{", "@link", "RRSubawardBudget103014Document", "}", "by", "populating", "data", "from", "the", "given", "{", "@link", "ProposalDevelopmentDocumentContract", "}" ]
train
https://github.com/kuali/kc-s2sgen/blob/2886380e1e3cb8bdd732ba99b2afa6ffc630bb37/coeus-s2sgen-impl/src/main/java/org/kuali/coeus/s2sgen/impl/generate/support/RRSubAwardBudget10_30_1_4V1_4Generator.java#L239-L247
Triple-T/simpleprovider
simpleprovider/src/main/java/de/triplet/simpleprovider/SelectionBuilder.java
SelectionBuilder.where
public SelectionBuilder where(String selection, String... selectionArgs) { """ Append the given selection clause to the internal state. Each clause is surrounded with parenthesis and combined using {@code AND}. """ if (TextUtils.isEmpty(selection)) { if (selectionArgs != null && selectionA...
java
public SelectionBuilder where(String selection, String... selectionArgs) { if (TextUtils.isEmpty(selection)) { if (selectionArgs != null && selectionArgs.length > 0) { throw new IllegalArgumentException( "Valid selection required when including arguments="); ...
[ "public", "SelectionBuilder", "where", "(", "String", "selection", ",", "String", "...", "selectionArgs", ")", "{", "if", "(", "TextUtils", ".", "isEmpty", "(", "selection", ")", ")", "{", "if", "(", "selectionArgs", "!=", "null", "&&", "selectionArgs", ".",...
Append the given selection clause to the internal state. Each clause is surrounded with parenthesis and combined using {@code AND}.
[ "Append", "the", "given", "selection", "clause", "to", "the", "internal", "state", ".", "Each", "clause", "is", "surrounded", "with", "parenthesis", "and", "combined", "using", "{" ]
train
https://github.com/Triple-T/simpleprovider/blob/c6d957ceca2e5c97dbd5092327aa90899a64a6ec/simpleprovider/src/main/java/de/triplet/simpleprovider/SelectionBuilder.java#L67-L88
biojava/biojava
biojava-structure/src/main/java/org/biojava/nbio/structure/align/xml/AFPChainXMLParser.java
AFPChainXMLParser.getPositionForPDBresunm
private static int getPositionForPDBresunm(String pdbresnum, String authId , Atom[] atoms) { """ get the position of PDB residue nr X in the ato marray @param pdbresnum pdbresidue number @param authId chain name @param atoms atom array @return """ ResidueNumber residueNumber = ResidueNumber.fromString...
java
private static int getPositionForPDBresunm(String pdbresnum, String authId , Atom[] atoms){ ResidueNumber residueNumber = ResidueNumber.fromString(pdbresnum); residueNumber.setChainName(authId); boolean blankChain = authId == null || authId.equalsIgnoreCase("null") || authId.equals("_"); for ( int i =0; i< a...
[ "private", "static", "int", "getPositionForPDBresunm", "(", "String", "pdbresnum", ",", "String", "authId", ",", "Atom", "[", "]", "atoms", ")", "{", "ResidueNumber", "residueNumber", "=", "ResidueNumber", ".", "fromString", "(", "pdbresnum", ")", ";", "residueN...
get the position of PDB residue nr X in the ato marray @param pdbresnum pdbresidue number @param authId chain name @param atoms atom array @return
[ "get", "the", "position", "of", "PDB", "residue", "nr", "X", "in", "the", "ato", "marray" ]
train
https://github.com/biojava/biojava/blob/a1c71a8e3d40cc32104b1d387a3d3b560b43356e/biojava-structure/src/main/java/org/biojava/nbio/structure/align/xml/AFPChainXMLParser.java#L519-L543
alipay/sofa-rpc
extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/server/http/AbstractHttpServerTask.java
AbstractHttpServerTask.cannotFoundService
private SofaRpcException cannotFoundService(String appName, String serviceName) { """ 找不到服务 @param appName 应用 @param serviceName 服务 @return 找不到服务的异常响应 """ String errorMsg = LogCodes .getLog(LogCodes.ERROR_PROVIDER_SERVICE_CANNOT_FOUND, serviceName); LOGGER.errorWithApp(appN...
java
private SofaRpcException cannotFoundService(String appName, String serviceName) { String errorMsg = LogCodes .getLog(LogCodes.ERROR_PROVIDER_SERVICE_CANNOT_FOUND, serviceName); LOGGER.errorWithApp(appName, errorMsg); return new SofaRpcException(RpcErrorType.SERVER_NOT_FOUND_INVOKER, ...
[ "private", "SofaRpcException", "cannotFoundService", "(", "String", "appName", ",", "String", "serviceName", ")", "{", "String", "errorMsg", "=", "LogCodes", ".", "getLog", "(", "LogCodes", ".", "ERROR_PROVIDER_SERVICE_CANNOT_FOUND", ",", "serviceName", ")", ";", "L...
找不到服务 @param appName 应用 @param serviceName 服务 @return 找不到服务的异常响应
[ "找不到服务" ]
train
https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/server/http/AbstractHttpServerTask.java#L260-L265
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/OCSPResponseBuilder.java
OCSPResponseBuilder.getKeyStore
public static KeyStore getKeyStore(File keyStoreFile, String keyStorePassword, String tlsStoreType) throws IOException { """ Method to create a keystore and return. @param keyStoreFile keyStore file @param keyStorePassword keyStore password @param tlsStoreType PKCS12 @return keystore @th...
java
public static KeyStore getKeyStore(File keyStoreFile, String keyStorePassword, String tlsStoreType) throws IOException { KeyStore keyStore = null; if (keyStoreFile != null && keyStorePassword != null) { try (InputStream inputStream = new FileInputStream(keyStoreFile)) { ...
[ "public", "static", "KeyStore", "getKeyStore", "(", "File", "keyStoreFile", ",", "String", "keyStorePassword", ",", "String", "tlsStoreType", ")", "throws", "IOException", "{", "KeyStore", "keyStore", "=", "null", ";", "if", "(", "keyStoreFile", "!=", "null", "&...
Method to create a keystore and return. @param keyStoreFile keyStore file @param keyStorePassword keyStore password @param tlsStoreType PKCS12 @return keystore @throws IOException Occurs if it fails to create the keystore.
[ "Method", "to", "create", "a", "keystore", "and", "return", "." ]
train
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/OCSPResponseBuilder.java#L141-L153
nohana/Amalgam
amalgam/src/main/java/com/amalgam/database/CursorUtils.java
CursorUtils.getFloat
public static float getFloat(Cursor cursor, String columnName) { """ Read the float data for the column. @see android.database.Cursor#getFloat(int). @see android.database.Cursor#getColumnIndex(String). @param cursor the cursor. @param columnName the column name. @return the float value. """ if (cu...
java
public static float getFloat(Cursor cursor, String columnName) { if (cursor == null) { return -1; } return cursor.getFloat(cursor.getColumnIndex(columnName)); }
[ "public", "static", "float", "getFloat", "(", "Cursor", "cursor", ",", "String", "columnName", ")", "{", "if", "(", "cursor", "==", "null", ")", "{", "return", "-", "1", ";", "}", "return", "cursor", ".", "getFloat", "(", "cursor", ".", "getColumnIndex",...
Read the float data for the column. @see android.database.Cursor#getFloat(int). @see android.database.Cursor#getColumnIndex(String). @param cursor the cursor. @param columnName the column name. @return the float value.
[ "Read", "the", "float", "data", "for", "the", "column", "." ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/database/CursorUtils.java#L144-L150
jeremylong/DependencyCheck
core/src/main/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzer.java
PythonPackageAnalyzer.analyzeDependency
@Override protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { """ Analyzes python packages and adds evidence to the dependency. @param dependency the dependency being analyzed @param engine the engine being used to perform the scan @throws Analysis...
java
@Override protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { dependency.setEcosystem(DEPENDENCY_ECOSYSTEM); final File file = dependency.getActualFile(); final File parent = file.getParentFile(); final String parentName = par...
[ "@", "Override", "protected", "void", "analyzeDependency", "(", "Dependency", "dependency", ",", "Engine", "engine", ")", "throws", "AnalysisException", "{", "dependency", ".", "setEcosystem", "(", "DEPENDENCY_ECOSYSTEM", ")", ";", "final", "File", "file", "=", "d...
Analyzes python packages and adds evidence to the dependency. @param dependency the dependency being analyzed @param engine the engine being used to perform the scan @throws AnalysisException thrown if there is an unrecoverable error analyzing the dependency
[ "Analyzes", "python", "packages", "and", "adds", "evidence", "to", "the", "dependency", "." ]
train
https://github.com/jeremylong/DependencyCheck/blob/6cc7690ea12e4ca1454210ceaa2e9a5523f0926c/core/src/main/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzer.java#L201-L224
WASdev/ci.maven
liberty-maven-plugin/src/main/java/net/wasdev/wlp/maven/plugins/utils/MavenProjectUtil.java
MavenProjectUtil.getManifestFile
public static File getManifestFile(MavenProject proj, String pluginArtifactId) { """ Get manifest file from plugin configuration @param proj @param pluginArtifactId @return the manifest file """ Xpp3Dom dom = proj.getGoalConfiguration("org.apache.maven.plugins", pluginArtifactId, null, null); ...
java
public static File getManifestFile(MavenProject proj, String pluginArtifactId) { Xpp3Dom dom = proj.getGoalConfiguration("org.apache.maven.plugins", pluginArtifactId, null, null); if (dom != null) { Xpp3Dom archive = dom.getChild("archive"); if (archive != null) { ...
[ "public", "static", "File", "getManifestFile", "(", "MavenProject", "proj", ",", "String", "pluginArtifactId", ")", "{", "Xpp3Dom", "dom", "=", "proj", ".", "getGoalConfiguration", "(", "\"org.apache.maven.plugins\"", ",", "pluginArtifactId", ",", "null", ",", "null...
Get manifest file from plugin configuration @param proj @param pluginArtifactId @return the manifest file
[ "Get", "manifest", "file", "from", "plugin", "configuration" ]
train
https://github.com/WASdev/ci.maven/blob/4fcf2d314299a4c02e2c740e4fc99a4f6aba6918/liberty-maven-plugin/src/main/java/net/wasdev/wlp/maven/plugins/utils/MavenProjectUtil.java#L111-L123
tempodb/tempodb-java
src/main/java/com/tempodb/Filter.java
Filter.addAttributes
public synchronized Filter addAttributes(Map<String, String> attributes) { """ Adds a map of attributes to the filter. @param attributes The map of attributes to add. @return This filter @since 1.0.0 """ for(Map.Entry<String, String> pair : attributes.entrySet()) { String key = pair.getKey(); ...
java
public synchronized Filter addAttributes(Map<String, String> attributes) { for(Map.Entry<String, String> pair : attributes.entrySet()) { String key = pair.getKey(); String value = pair.getValue(); this.attributes.put(key, value); } return this; }
[ "public", "synchronized", "Filter", "addAttributes", "(", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "String", ">", "pair", ":", "attributes", ".", "entrySet", "(", ")", ")", "...
Adds a map of attributes to the filter. @param attributes The map of attributes to add. @return This filter @since 1.0.0
[ "Adds", "a", "map", "of", "attributes", "to", "the", "filter", "." ]
train
https://github.com/tempodb/tempodb-java/blob/5733f204fe4c8dda48916ba1f67cf44f5a3f9c69/src/main/java/com/tempodb/Filter.java#L151-L158
UrielCh/ovh-java-sdk
ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java
ApiOvhDbaaslogs.serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET
public OvhClusterAllowedNetwork serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET(String serviceName, String clusterId, String allowedNetworkId) throws IOException { """ Returns details of an allowed network REST: GET /dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId...
java
public OvhClusterAllowedNetwork serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET(String serviceName, String clusterId, String allowedNetworkId) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}"; StringBuilder sb = path(qPath, servi...
[ "public", "OvhClusterAllowedNetwork", "serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET", "(", "String", "serviceName", ",", "String", "clusterId", ",", "String", "allowedNetworkId", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/dbaas/logs/{ser...
Returns details of an allowed network REST: GET /dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId} @param serviceName [required] Service name @param clusterId [required] Cluster ID @param allowedNetworkId [required] Allowed network UUID
[ "Returns", "details", "of", "an", "allowed", "network" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L191-L196
Ordinastie/MalisisCore
src/main/java/net/malisis/core/renderer/animation/transformation/PositionTransform.java
PositionTransform.doTransform
@Override protected void doTransform(Position<T> transformable, float comp) { """ Calculates the transformation @param transformable the transformable @param comp the comp """ int fromX = reversed ? this.toX : this.fromX; int toX = reversed ? this.fromX : this.toX; int fromY = reversed ? this.toY : ...
java
@Override protected void doTransform(Position<T> transformable, float comp) { int fromX = reversed ? this.toX : this.fromX; int toX = reversed ? this.fromX : this.toX; int fromY = reversed ? this.toY : this.fromY; int toY = reversed ? this.fromY : this.toY; int x = Math.round(fromX + (toX - fromX) * comp);...
[ "@", "Override", "protected", "void", "doTransform", "(", "Position", "<", "T", ">", "transformable", ",", "float", "comp", ")", "{", "int", "fromX", "=", "reversed", "?", "this", ".", "toX", ":", "this", ".", "fromX", ";", "int", "toX", "=", "reversed...
Calculates the transformation @param transformable the transformable @param comp the comp
[ "Calculates", "the", "transformation" ]
train
https://github.com/Ordinastie/MalisisCore/blob/4f8e1fa462d5c372fc23414482ba9f429881cc54/src/main/java/net/malisis/core/renderer/animation/transformation/PositionTransform.java#L100-L112
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putTicketGrantingTicketInScopes
public static void putTicketGrantingTicketInScopes(final RequestContext context, final String ticketValue) { """ Put ticket granting ticket in request and flow scopes. @param context the context @param ticketValue the ticket value """ putTicketGrantingTicketIntoMap(context.getRequestScope(), ti...
java
public static void putTicketGrantingTicketInScopes(final RequestContext context, final String ticketValue) { putTicketGrantingTicketIntoMap(context.getRequestScope(), ticketValue); putTicketGrantingTicketIntoMap(context.getFlowScope(), ticketValue); var session = context.getFlowExecutionContext...
[ "public", "static", "void", "putTicketGrantingTicketInScopes", "(", "final", "RequestContext", "context", ",", "final", "String", "ticketValue", ")", "{", "putTicketGrantingTicketIntoMap", "(", "context", ".", "getRequestScope", "(", ")", ",", "ticketValue", ")", ";",...
Put ticket granting ticket in request and flow scopes. @param context the context @param ticketValue the ticket value
[ "Put", "ticket", "granting", "ticket", "in", "request", "and", "flow", "scopes", "." ]
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L179-L188
JRebirth/JRebirth
org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/concurrent/JRebirth.java
JRebirth.runIntoJTPSync
public static void runIntoJTPSync(final String runnableName, final PriorityLevel runnablePriority, final Runnable runnable, final long... timeout) { """ Run into the JRebirth Thread Pool [JTP] <b>Synchronously</b>. Be careful this method can be called through any thread. @param runnableName the name of the r...
java
public static void runIntoJTPSync(final String runnableName, final PriorityLevel runnablePriority, final Runnable runnable, final long... timeout) { runIntoJTPSync(new JrbReferenceRunnable(runnableName, runnablePriority, runnable), timeout); }
[ "public", "static", "void", "runIntoJTPSync", "(", "final", "String", "runnableName", ",", "final", "PriorityLevel", "runnablePriority", ",", "final", "Runnable", "runnable", ",", "final", "long", "...", "timeout", ")", "{", "runIntoJTPSync", "(", "new", "JrbRefer...
Run into the JRebirth Thread Pool [JTP] <b>Synchronously</b>. Be careful this method can be called through any thread. @param runnableName the name of the runnable for logging purpose @param runnablePriority the priority to try to apply to the runnable @param runnable the task to run @param timeout the optional timeo...
[ "Run", "into", "the", "JRebirth", "Thread", "Pool", "[", "JTP", "]", "<b", ">", "Synchronously<", "/", "b", ">", "." ]
train
https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/concurrent/JRebirth.java#L380-L382
alkacon/opencms-core
src/org/opencms/ade/contenteditor/CmsContentService.java
CmsContentService.validateContent
private CmsValidationResult validateContent(CmsObject cms, CmsUUID structureId, CmsXmlContent content) { """ Validates the given XML content.<p> @param cms the cms context @param structureId the structure id @param content the XML content @return the validation result """ return validateConten...
java
private CmsValidationResult validateContent(CmsObject cms, CmsUUID structureId, CmsXmlContent content) { return validateContent(cms, structureId, content, null); }
[ "private", "CmsValidationResult", "validateContent", "(", "CmsObject", "cms", ",", "CmsUUID", "structureId", ",", "CmsXmlContent", "content", ")", "{", "return", "validateContent", "(", "cms", ",", "structureId", ",", "content", ",", "null", ")", ";", "}" ]
Validates the given XML content.<p> @param cms the cms context @param structureId the structure id @param content the XML content @return the validation result
[ "Validates", "the", "given", "XML", "content", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ade/contenteditor/CmsContentService.java#L2465-L2468
seam/faces
impl/src/main/java/org/jboss/seam/faces/security/SecurityPhaseListener.java
SecurityPhaseListener.redirectToLoginPage
private void redirectToLoginPage(FacesContext context, UIViewRoot viewRoot) { """ Perform the navigation to the @LoginView. If not @LoginView is defined, return a 401 response. The original view id requested by the user is stored in the session map, for use after a successful login. @param context @param vie...
java
private void redirectToLoginPage(FacesContext context, UIViewRoot viewRoot) { Map<String, Object> sessionMap = context.getExternalContext().getSessionMap(); preLoginEvent.fire(new PreLoginEvent(context, sessionMap)); LoginView loginView = viewConfigStore.getAnnotationData(viewRoot.getViewId(), L...
[ "private", "void", "redirectToLoginPage", "(", "FacesContext", "context", ",", "UIViewRoot", "viewRoot", ")", "{", "Map", "<", "String", ",", "Object", ">", "sessionMap", "=", "context", ".", "getExternalContext", "(", ")", ".", "getSessionMap", "(", ")", ";",...
Perform the navigation to the @LoginView. If not @LoginView is defined, return a 401 response. The original view id requested by the user is stored in the session map, for use after a successful login. @param context @param viewRoot
[ "Perform", "the", "navigation", "to", "the", "@LoginView", ".", "If", "not", "@LoginView", "is", "defined", "return", "a", "401", "response", ".", "The", "original", "view", "id", "requested", "by", "the", "user", "is", "stored", "in", "the", "session", "m...
train
https://github.com/seam/faces/blob/2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3/impl/src/main/java/org/jboss/seam/faces/security/SecurityPhaseListener.java#L307-L322
banq/jdonframework
src/main/java/com/jdon/util/UtilValidate.java
UtilValidate.stripCharsInBag
public static String stripCharsInBag(String s, String bag) { """ Removes all characters which appear in string bag from string s. """ int i; String returnString = ""; // Search through string's characters one by one. // If character is not in bag, append to returnString. ...
java
public static String stripCharsInBag(String s, String bag) { int i; String returnString = ""; // Search through string's characters one by one. // If character is not in bag, append to returnString. for (i = 0; i < s.length(); i++) { char c = s.charAt(i); ...
[ "public", "static", "String", "stripCharsInBag", "(", "String", "s", ",", "String", "bag", ")", "{", "int", "i", ";", "String", "returnString", "=", "\"\"", ";", "// Search through string's characters one by one.\r", "// If character is not in bag, append to returnString.\r...
Removes all characters which appear in string bag from string s.
[ "Removes", "all", "characters", "which", "appear", "in", "string", "bag", "from", "string", "s", "." ]
train
https://github.com/banq/jdonframework/blob/72b451caac04f775e57f52aaed3d8775044ead53/src/main/java/com/jdon/util/UtilValidate.java#L227-L239
comapi/comapi-sdk-android
COMAPI/foundation/src/main/java/com/comapi/internal/network/InternalService.java
InternalService.sendMessage
public Observable<ComapiResult<MessageSentResponse>> sendMessage(@NonNull final String conversationId, @NonNull final String body) { """ Send message to the chanel. @param conversationId ID of a conversation to send a message to. @param body Message body to be send. @return Observable to send messag...
java
public Observable<ComapiResult<MessageSentResponse>> sendMessage(@NonNull final String conversationId, @NonNull final String body) { SessionData session = dataMgr.getSessionDAO().session(); return sendMessage(conversationId, APIHelper.createMessage(conversationId, body, session != null ? session.getProf...
[ "public", "Observable", "<", "ComapiResult", "<", "MessageSentResponse", ">", ">", "sendMessage", "(", "@", "NonNull", "final", "String", "conversationId", ",", "@", "NonNull", "final", "String", "body", ")", "{", "SessionData", "session", "=", "dataMgr", ".", ...
Send message to the chanel. @param conversationId ID of a conversation to send a message to. @param body Message body to be send. @return Observable to send message to a conversation.
[ "Send", "message", "to", "the", "chanel", "." ]
train
https://github.com/comapi/comapi-sdk-android/blob/53140a58d5a62afe196047ccc5120bfe090ef211/COMAPI/foundation/src/main/java/com/comapi/internal/network/InternalService.java#L740-L743
stripe/stripe-java
src/main/java/com/stripe/model/LoginLink.java
LoginLink.createOnAccount
public static LoginLink createOnAccount( String account, Map<String, Object> params, RequestOptions options) throws StripeException { """ Creates a single-use login link for an Express account to access their Stripe dashboard. <p><strong>You may only create login links for <a href="/docs/connect/express-a...
java
public static LoginLink createOnAccount( String account, Map<String, Object> params, RequestOptions options) throws StripeException { String url = String.format( "%s%s", Stripe.getApiBase(), String.format("/v1/accounts/%s/login_links", ApiResource.urlEncodeId(accoun...
[ "public", "static", "LoginLink", "createOnAccount", "(", "String", "account", ",", "Map", "<", "String", ",", "Object", ">", "params", ",", "RequestOptions", "options", ")", "throws", "StripeException", "{", "String", "url", "=", "String", ".", "format", "(", ...
Creates a single-use login link for an Express account to access their Stripe dashboard. <p><strong>You may only create login links for <a href="/docs/connect/express-accounts">Express accounts</a> connected to your platform</strong>.
[ "Creates", "a", "single", "-", "use", "login", "link", "for", "an", "Express", "account", "to", "access", "their", "Stripe", "dashboard", "." ]
train
https://github.com/stripe/stripe-java/blob/acfa8becef3e73bfe3e9d8880bea3f3f30dadeac/src/main/java/com/stripe/model/LoginLink.java#L38-L46
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/DevicesInner.java
DevicesInner.beginInstallUpdates
public void beginInstallUpdates(String deviceName, String resourceGroupName) { """ Installs the updates on the data box edge/gateway device. @param deviceName The device name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @throws C...
java
public void beginInstallUpdates(String deviceName, String resourceGroupName) { beginInstallUpdatesWithServiceResponseAsync(deviceName, resourceGroupName).toBlocking().single().body(); }
[ "public", "void", "beginInstallUpdates", "(", "String", "deviceName", ",", "String", "resourceGroupName", ")", "{", "beginInstallUpdatesWithServiceResponseAsync", "(", "deviceName", ",", "resourceGroupName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ...
Installs the updates on the data box edge/gateway device. @param deviceName The device name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other ...
[ "Installs", "the", "updates", "on", "the", "data", "box", "edge", "/", "gateway", "device", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/DevicesInner.java#L1510-L1512