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
azkaban/azkaban
azkaban-web-server/src/main/java/azkaban/flowtrigger/plugin/FlowTriggerDependencyPluginManager.java
FlowTriggerDependencyPluginManager.getFilesMatchingPath
private File[] getFilesMatchingPath(final String path) { """ retrieve files with wildcard matching. Only support "dir/*". Pattern like "dir/foo*" or "dir/*foo*" will not be supported since user shouldn't upload the jars they don't want to import the reason for supporting dir/* is to provide another packaging op...
java
private File[] getFilesMatchingPath(final String path) { if (path.endsWith("*")) { final File dir = new File(path.substring(0, path.lastIndexOf("/") + 1)); final FileFilter fileFilter = new WildcardFileFilter(path.substring(path.lastIndexOf("/") + 1)); final File[] files = dir.listFiles(...
[ "private", "File", "[", "]", "getFilesMatchingPath", "(", "final", "String", "path", ")", "{", "if", "(", "path", ".", "endsWith", "(", "\"*\"", ")", ")", "{", "final", "File", "dir", "=", "new", "File", "(", "path", ".", "substring", "(", "0", ",", ...
retrieve files with wildcard matching. Only support "dir/*". Pattern like "dir/foo*" or "dir/*foo*" will not be supported since user shouldn't upload the jars they don't want to import the reason for supporting dir/* is to provide another packaging option which let user upload a dir of all required jars in addition to ...
[ "retrieve", "files", "with", "wildcard", "matching", ".", "Only", "support", "dir", "/", "*", ".", "Pattern", "like", "dir", "/", "foo", "*", "or", "dir", "/", "*", "foo", "*", "will", "not", "be", "supported", "since", "user", "shouldn", "t", "upload"...
train
https://github.com/azkaban/azkaban/blob/d258ea7d6e66807c6eff79c5325d6d3443618dff/azkaban-web-server/src/main/java/azkaban/flowtrigger/plugin/FlowTriggerDependencyPluginManager.java#L74-L84
lessthanoptimal/BoofCV
main/boofcv-geo/src/main/java/boofcv/alg/geo/trifocal/EnforceTrifocalGeometry.java
EnforceTrifocalGeometry.computeErrorVector
public void computeErrorVector( DMatrixRMaj A , DMatrixRMaj errors ) { """ Returns the algebraic error vector. error = A*U*x. length = number of observations """ errors.reshape(A.numRows,1); CommonOps_DDRM.mult(A,vectorT,errors); }
java
public void computeErrorVector( DMatrixRMaj A , DMatrixRMaj errors ) { errors.reshape(A.numRows,1); CommonOps_DDRM.mult(A,vectorT,errors); }
[ "public", "void", "computeErrorVector", "(", "DMatrixRMaj", "A", ",", "DMatrixRMaj", "errors", ")", "{", "errors", ".", "reshape", "(", "A", ".", "numRows", ",", "1", ")", ";", "CommonOps_DDRM", ".", "mult", "(", "A", ",", "vectorT", ",", "errors", ")", ...
Returns the algebraic error vector. error = A*U*x. length = number of observations
[ "Returns", "the", "algebraic", "error", "vector", ".", "error", "=", "A", "*", "U", "*", "x", ".", "length", "=", "number", "of", "observations" ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-geo/src/main/java/boofcv/alg/geo/trifocal/EnforceTrifocalGeometry.java#L123-L126
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/NarProperties.java
NarProperties.getInstance
public static NarProperties getInstance(final MavenProject project) throws MojoFailureException { """ Retrieve the NarProperties @param project may be null @return @throws MojoFailureException """ NarProperties instance = instances.get(project); if (instance == null) { if (project == null) ...
java
public static NarProperties getInstance(final MavenProject project) throws MojoFailureException { NarProperties instance = instances.get(project); if (instance == null) { if (project == null) { instance = new NarProperties(project, null, null); } else { String customPropertyLocatio...
[ "public", "static", "NarProperties", "getInstance", "(", "final", "MavenProject", "project", ")", "throws", "MojoFailureException", "{", "NarProperties", "instance", "=", "instances", ".", "get", "(", "project", ")", ";", "if", "(", "instance", "==", "null", ")"...
Retrieve the NarProperties @param project may be null @return @throws MojoFailureException
[ "Retrieve", "the", "NarProperties" ]
train
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/NarProperties.java#L54-L77
pgjdbc/pgjdbc
pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java
SSPIClient.continueSSPI
@Override public void continueSSPI(int msgLength) throws SQLException, IOException { """ Continue an existing authentication conversation with the back-end in resonse to an authentication request of type AUTH_REQ_GSS_CONT. @param msgLength Length of message to read, excluding length word and message type wor...
java
@Override public void continueSSPI(int msgLength) throws SQLException, IOException { if (sspiContext == null) { throw new IllegalStateException("Cannot continue SSPI authentication that we didn't begin"); } LOGGER.log(Level.FINEST, "Continuing SSPI negotiation"); /* Read the response token fr...
[ "@", "Override", "public", "void", "continueSSPI", "(", "int", "msgLength", ")", "throws", "SQLException", ",", "IOException", "{", "if", "(", "sspiContext", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Cannot continue SSPI authentication...
Continue an existing authentication conversation with the back-end in resonse to an authentication request of type AUTH_REQ_GSS_CONT. @param msgLength Length of message to read, excluding length word and message type word @throws SQLException if something wrong happens @throws IOException if something wrong happens
[ "Continue", "an", "existing", "authentication", "conversation", "with", "the", "back", "-", "end", "in", "resonse", "to", "an", "authentication", "request", "of", "type", "AUTH_REQ_GSS_CONT", "." ]
train
https://github.com/pgjdbc/pgjdbc/blob/95ba7b261e39754674c5817695ae5ebf9a341fae/pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java#L181-L209
metafacture/metafacture-core
metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/Iso646ByteBuffer.java
Iso646ByteBuffer.stringAt
String stringAt(final int fromIndex, final int length, final Charset charset) { """ Returns a string containing the characters in the specified part of the record. @param fromIndex index of the first byte of the string. @param length number of bytes to include in the string. If zero an empty stri...
java
String stringAt(final int fromIndex, final int length, final Charset charset) { return new String(byteArray, fromIndex, length, charset); }
[ "String", "stringAt", "(", "final", "int", "fromIndex", ",", "final", "int", "length", ",", "final", "Charset", "charset", ")", "{", "return", "new", "String", "(", "byteArray", ",", "fromIndex", ",", "length", ",", "charset", ")", ";", "}" ]
Returns a string containing the characters in the specified part of the record. @param fromIndex index of the first byte of the string. @param length number of bytes to include in the string. If zero an empty string is returned. @param charset used for decoding the byte sequence into characters. It is callers responsi...
[ "Returns", "a", "string", "containing", "the", "characters", "in", "the", "specified", "part", "of", "the", "record", "." ]
train
https://github.com/metafacture/metafacture-core/blob/cb43933ec8eb01a4ddce4019c14b2415cc441918/metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/Iso646ByteBuffer.java#L138-L141
geomajas/geomajas-project-server
plugin/layer-openstreetmap/openstreetmap/src/main/java/org/geomajas/layer/osm/TiledRasterLayerServiceState.java
TiledRasterLayerServiceState.postConstruct
public void postConstruct(GeoService geoService, DtoConverterService converterService) throws GeomajasException { """ Finish initialization of state object. @param geoService geo service @param converterService converter service @throws GeomajasException oops """ if (null == layerInfo) { layerInfo = ...
java
public void postConstruct(GeoService geoService, DtoConverterService converterService) throws GeomajasException { if (null == layerInfo) { layerInfo = new RasterLayerInfo(); } layerInfo.setCrs(TiledRasterLayerService.MERCATOR); crs = geoService.getCrs2(TiledRasterLayerService.MERCATOR); layerInfo.setTileWi...
[ "public", "void", "postConstruct", "(", "GeoService", "geoService", ",", "DtoConverterService", "converterService", ")", "throws", "GeomajasException", "{", "if", "(", "null", "==", "layerInfo", ")", "{", "layerInfo", "=", "new", "RasterLayerInfo", "(", ")", ";", ...
Finish initialization of state object. @param geoService geo service @param converterService converter service @throws GeomajasException oops
[ "Finish", "initialization", "of", "state", "object", "." ]
train
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-openstreetmap/openstreetmap/src/main/java/org/geomajas/layer/osm/TiledRasterLayerServiceState.java#L203-L224
jenkinsci/jenkins
core/src/main/java/jenkins/security/apitoken/ApiTokenStore.java
ApiTokenStore.reconfigure
public synchronized void reconfigure(@Nonnull Map<String, JSONObject> tokenStoreDataMap) { """ Defensive approach to avoid involuntary change since the UUIDs are generated at startup only for UI and so between restart they change """ tokenList.forEach(hashedToken -> { JSONObject receivedTo...
java
public synchronized void reconfigure(@Nonnull Map<String, JSONObject> tokenStoreDataMap) { tokenList.forEach(hashedToken -> { JSONObject receivedTokenData = tokenStoreDataMap.get(hashedToken.uuid); if (receivedTokenData == null) { LOGGER.log(Level.INFO, "No token received...
[ "public", "synchronized", "void", "reconfigure", "(", "@", "Nonnull", "Map", "<", "String", ",", "JSONObject", ">", "tokenStoreDataMap", ")", "{", "tokenList", ".", "forEach", "(", "hashedToken", "->", "{", "JSONObject", "receivedTokenData", "=", "tokenStoreDataMa...
Defensive approach to avoid involuntary change since the UUIDs are generated at startup only for UI and so between restart they change
[ "Defensive", "approach", "to", "avoid", "involuntary", "change", "since", "the", "UUIDs", "are", "generated", "at", "startup", "only", "for", "UI", "and", "so", "between", "restart", "they", "change" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/jenkins/security/apitoken/ApiTokenStore.java#L104-L120
Drivemode/TypefaceHelper
TypefaceHelper/src/main/java/com/drivemode/android/typeface/TypefaceHelper.java
TypefaceHelper.setTypeface
public <D extends Dialog> void setTypeface(D dialog, String typefaceName, int style) { """ Set the typeface for the dialog view. @param dialog the dialog. @param typefaceName typeface name. @param style the typeface style. """ DialogUtils.setTypeface(this, dialog, typefaceName, style); }
java
public <D extends Dialog> void setTypeface(D dialog, String typefaceName, int style) { DialogUtils.setTypeface(this, dialog, typefaceName, style); }
[ "public", "<", "D", "extends", "Dialog", ">", "void", "setTypeface", "(", "D", "dialog", ",", "String", "typefaceName", ",", "int", "style", ")", "{", "DialogUtils", ".", "setTypeface", "(", "this", ",", "dialog", ",", "typefaceName", ",", "style", ")", ...
Set the typeface for the dialog view. @param dialog the dialog. @param typefaceName typeface name. @param style the typeface style.
[ "Set", "the", "typeface", "for", "the", "dialog", "view", "." ]
train
https://github.com/Drivemode/TypefaceHelper/blob/86bef9ce16b9626b7076559e846db1b9f043c008/TypefaceHelper/src/main/java/com/drivemode/android/typeface/TypefaceHelper.java#L485-L487
leonchen83/redis-replicator
src/main/java/com/moilioncircle/redis/replicator/rdb/BaseRdbParser.java
BaseRdbParser.rdbLoadLzfStringObject
public ByteArray rdbLoadLzfStringObject(int flags) throws IOException { """ |11xxxxxx| remaining 6bit is 3,then lzf compressed string follows <p> lzf format <p> |lzf flag|clen:1 or 2 or 5 bytes|len:1 or 2 or 5 bytes | lzf compressed bytes | <p> |11xxxxxx|xxxxxxxx|....|xxxxxxxx|xxxxxxxx|....|x...
java
public ByteArray rdbLoadLzfStringObject(int flags) throws IOException { boolean plain = (flags & RDB_LOAD_PLAIN) != 0; boolean encode = (flags & RDB_LOAD_ENC) != 0; long clen = rdbLoadLen().len; long len = rdbLoadLen().len; // if (plain || sds) { // return val; ...
[ "public", "ByteArray", "rdbLoadLzfStringObject", "(", "int", "flags", ")", "throws", "IOException", "{", "boolean", "plain", "=", "(", "flags", "&", "RDB_LOAD_PLAIN", ")", "!=", "0", ";", "boolean", "encode", "=", "(", "flags", "&", "RDB_LOAD_ENC", ")", "!="...
|11xxxxxx| remaining 6bit is 3,then lzf compressed string follows <p> lzf format <p> |lzf flag|clen:1 or 2 or 5 bytes|len:1 or 2 or 5 bytes | lzf compressed bytes | <p> |11xxxxxx|xxxxxxxx|....|xxxxxxxx|xxxxxxxx|....|xxxxxxxx|xxxxxxxx|xxxxxxxx|............xxxxxxxx| <p> @param flags RDB_LOAD_ENC: encoded...
[ "|11xxxxxx|", "remaining", "6bit", "is", "3", "then", "lzf", "compressed", "string", "follows", "<p", ">", "lzf", "format", "<p", ">", "|lzf", "flag|clen", ":", "1", "or", "2", "or", "5", "bytes|len", ":", "1", "or", "2", "or", "5", "bytes", "|", "lz...
train
https://github.com/leonchen83/redis-replicator/blob/645aac2de1452e26c0f8f9d01d60edb45bba38c9/src/main/java/com/moilioncircle/redis/replicator/rdb/BaseRdbParser.java#L164-L181
icode/ameba
src/main/java/ameba/db/ebean/EbeanUtils.java
EbeanUtils.appendOrder
public static <T> void appendOrder(OrderBy<T> orderBy, String orderByClause) { """ <p>appendOrder.</p> @param orderBy a {@link io.ebean.OrderBy} object. @param orderByClause a {@link java.lang.String} object. @param <T> a T object. """ if (orderByClause == null) { retu...
java
public static <T> void appendOrder(OrderBy<T> orderBy, String orderByClause) { if (orderByClause == null) { return; } String[] chunks = orderByClause.split(","); for (String chunk : chunks) { String[] pairs = chunk.split(" "); Property p = parseOrder...
[ "public", "static", "<", "T", ">", "void", "appendOrder", "(", "OrderBy", "<", "T", ">", "orderBy", ",", "String", "orderByClause", ")", "{", "if", "(", "orderByClause", "==", "null", ")", "{", "return", ";", "}", "String", "[", "]", "chunks", "=", "...
<p>appendOrder.</p> @param orderBy a {@link io.ebean.OrderBy} object. @param orderByClause a {@link java.lang.String} object. @param <T> a T object.
[ "<p", ">", "appendOrder", ".", "<", "/", "p", ">" ]
train
https://github.com/icode/ameba/blob/9d4956e935898e41331b2745e400ef869cd265e0/src/main/java/ameba/db/ebean/EbeanUtils.java#L110-L124
alkacon/opencms-core
src/org/opencms/gwt/CmsIconUtil.java
CmsIconUtil.getResourceTypeIconClass
static String getResourceTypeIconClass(String resourceTypeName, boolean small) { """ Returns the CSS class for the given resource type.<p> @param resourceTypeName the resource type name @param small if true, get the icon class for the small icon, else for the biggest one available @return the CSS class ...
java
static String getResourceTypeIconClass(String resourceTypeName, boolean small) { StringBuffer sb = new StringBuffer(CmsGwtConstants.TYPE_ICON_CLASS); sb.append("_").append(resourceTypeName.hashCode()); if (small) { sb.append(SMALL_SUFFIX); } return sb.toString(); ...
[ "static", "String", "getResourceTypeIconClass", "(", "String", "resourceTypeName", ",", "boolean", "small", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", "CmsGwtConstants", ".", "TYPE_ICON_CLASS", ")", ";", "sb", ".", "append", "(", "\"_\"", "...
Returns the CSS class for the given resource type.<p> @param resourceTypeName the resource type name @param small if true, get the icon class for the small icon, else for the biggest one available @return the CSS class
[ "Returns", "the", "CSS", "class", "for", "the", "given", "resource", "type", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/gwt/CmsIconUtil.java#L451-L459
kiswanij/jk-util
src/main/java/com/jk/util/java/JKCompileUtil.java
JKCompileUtil.compileJavaClass
public static boolean compileJavaClass(String sourceCode) { """ Compile java class. @param sourceCode the source code @throws IOException """ try { String fileName = getClassName(sourceCode).concat(".java"); logger.info("Compiling Java Class ({})", fileName); File rootDir = JKIOUtil.create...
java
public static boolean compileJavaClass(String sourceCode) { try { String fileName = getClassName(sourceCode).concat(".java"); logger.info("Compiling Java Class ({})", fileName); File rootDir = JKIOUtil.createTempDirectory(); String packageDir = getPackageDir(sourceCode); File sourceFile ; i...
[ "public", "static", "boolean", "compileJavaClass", "(", "String", "sourceCode", ")", "{", "try", "{", "String", "fileName", "=", "getClassName", "(", "sourceCode", ")", ".", "concat", "(", "\".java\"", ")", ";", "logger", ".", "info", "(", "\"Compiling Java Cl...
Compile java class. @param sourceCode the source code @throws IOException
[ "Compile", "java", "class", "." ]
train
https://github.com/kiswanij/jk-util/blob/8e0c85818423406f769444c76194a748e0a0fc0a/src/main/java/com/jk/util/java/JKCompileUtil.java#L50-L91
DaGeRe/KoPeMe
kopeme-analysis/src/main/java/de/dagere/kopeme/instrumentation/KiekerMeasureUtil.java
KiekerMeasureUtil.measureAfter
public OperationExecutionRecord measureAfter() { """ Denotes that the method call has finished successfully, finishing the {@link OperationExecutionRecord} and saving it to Kieker. @return The recoreded value, mainly for testing purposes """ // measure after final long tout = TIME.getTime(); Operatio...
java
public OperationExecutionRecord measureAfter() { // measure after final long tout = TIME.getTime(); OperationExecutionRecord record = new OperationExecutionRecord(signature, sessionId, traceId, tin, tout, hostname, eoi, ess); CTRLINST.newMonitoringRecord(record); // cleanup if (entrypoint) { CFREGISTRY.u...
[ "public", "OperationExecutionRecord", "measureAfter", "(", ")", "{", "// measure after", "final", "long", "tout", "=", "TIME", ".", "getTime", "(", ")", ";", "OperationExecutionRecord", "record", "=", "new", "OperationExecutionRecord", "(", "signature", ",", "sessio...
Denotes that the method call has finished successfully, finishing the {@link OperationExecutionRecord} and saving it to Kieker. @return The recoreded value, mainly for testing purposes
[ "Denotes", "that", "the", "method", "call", "has", "finished", "successfully", "finishing", "the", "{", "@link", "OperationExecutionRecord", "}", "and", "saving", "it", "to", "Kieker", "." ]
train
https://github.com/DaGeRe/KoPeMe/blob/a4939113cba73cb20a2c7d6dc8d34d0139a3e340/kopeme-analysis/src/main/java/de/dagere/kopeme/instrumentation/KiekerMeasureUtil.java#L106-L120
xiaosunzhu/resource-utils
src/main/java/net/sunyijun/resource/config/Configs.java
Configs.getSelfConfigDecimal
public static BigDecimal getSelfConfigDecimal(String configAbsoluteClassPath, IConfigKey key) { """ Get self config decimal. @param configAbsoluteClassPath config path. @param key config key in configAbsoluteClassPath config file @return config BigDecimal value. Return null if not add conf...
java
public static BigDecimal getSelfConfigDecimal(String configAbsoluteClassPath, IConfigKey key) { OneProperties configs = otherConfigs.get(configAbsoluteClassPath); if (configs == null) { addSelfConfigs(configAbsoluteClassPath, null); configs = otherConfigs.get(configAbsoluteCl...
[ "public", "static", "BigDecimal", "getSelfConfigDecimal", "(", "String", "configAbsoluteClassPath", ",", "IConfigKey", "key", ")", "{", "OneProperties", "configs", "=", "otherConfigs", ".", "get", "(", "configAbsoluteClassPath", ")", ";", "if", "(", "configs", "==",...
Get self config decimal. @param configAbsoluteClassPath config path. @param key config key in configAbsoluteClassPath config file @return config BigDecimal value. Return null if not add config file or not config in config file. @see #addSelfConfigs(String, OneProperties)
[ "Get", "self", "config", "decimal", "." ]
train
https://github.com/xiaosunzhu/resource-utils/blob/4f2bf3f36df10195a978f122ed682ba1eb0462b5/src/main/java/net/sunyijun/resource/config/Configs.java#L293-L303
albfernandez/itext2
src/main/java/com/lowagie/text/Document.java
Document.addHeader
public boolean addHeader(String name, String content) { """ Adds a user defined header to the document. @param name the name of the header @param content the content of the header @return <CODE>true</CODE> if successful, <CODE>false</CODE> otherwise """ try { return add(new Header(na...
java
public boolean addHeader(String name, String content) { try { return add(new Header(name, content)); } catch (DocumentException de) { throw new ExceptionConverter(de); } }
[ "public", "boolean", "addHeader", "(", "String", "name", ",", "String", "content", ")", "{", "try", "{", "return", "add", "(", "new", "Header", "(", "name", ",", "content", ")", ")", ";", "}", "catch", "(", "DocumentException", "de", ")", "{", "throw",...
Adds a user defined header to the document. @param name the name of the header @param content the content of the header @return <CODE>true</CODE> if successful, <CODE>false</CODE> otherwise
[ "Adds", "a", "user", "defined", "header", "to", "the", "document", "." ]
train
https://github.com/albfernandez/itext2/blob/438fc1899367fd13dfdfa8dfdca9a3c1a7783b84/src/main/java/com/lowagie/text/Document.java#L512-L518
ZieIony/Carbon
carbon/src/main/java/carbon/shadow/ShapeAppearanceModel.java
ShapeAppearanceModel.setTopRightCorner
public void setTopRightCorner(@CornerFamily int cornerFamily, @Dimension int cornerSize) { """ Sets the corner treatment for the top-right corner. @param cornerFamily the family to use to create the corner treatment @param cornerSize the size to use to create the corner treatment """ setTopRightC...
java
public void setTopRightCorner(@CornerFamily int cornerFamily, @Dimension int cornerSize) { setTopRightCorner(MaterialShapeUtils.createCornerTreatment(cornerFamily, cornerSize)); }
[ "public", "void", "setTopRightCorner", "(", "@", "CornerFamily", "int", "cornerFamily", ",", "@", "Dimension", "int", "cornerSize", ")", "{", "setTopRightCorner", "(", "MaterialShapeUtils", ".", "createCornerTreatment", "(", "cornerFamily", ",", "cornerSize", ")", "...
Sets the corner treatment for the top-right corner. @param cornerFamily the family to use to create the corner treatment @param cornerSize the size to use to create the corner treatment
[ "Sets", "the", "corner", "treatment", "for", "the", "top", "-", "right", "corner", "." ]
train
https://github.com/ZieIony/Carbon/blob/78b0a432bd49edc7a6a13ce111cab274085d1693/carbon/src/main/java/carbon/shadow/ShapeAppearanceModel.java#L260-L262
JetBrains/xodus
entity-store/src/main/java/jetbrains/exodus/entitystore/tables/BlobsTable.java
BlobsTable.put
public void put(@NotNull final Transaction txn, final long localId, final int blobId, @NotNull final ByteIterable value) { """ Setter for blob handle value. @param txn enclosing transaction @param localId entity local id. @param blobId blob id @param value property value. """ ...
java
public void put(@NotNull final Transaction txn, final long localId, final int blobId, @NotNull final ByteIterable value) { primaryStore.put(txn, PropertyKey.propertyKeyToEntry(new PropertyKey(localId, blobId)), value); allBlobsIndex.put(txn, IntegerBinding.intToCompressedEntry(blobId...
[ "public", "void", "put", "(", "@", "NotNull", "final", "Transaction", "txn", ",", "final", "long", "localId", ",", "final", "int", "blobId", ",", "@", "NotNull", "final", "ByteIterable", "value", ")", "{", "primaryStore", ".", "put", "(", "txn", ",", "Pr...
Setter for blob handle value. @param txn enclosing transaction @param localId entity local id. @param blobId blob id @param value property value.
[ "Setter", "for", "blob", "handle", "value", "." ]
train
https://github.com/JetBrains/xodus/blob/7b3476c4e81db66f9c7529148c761605cc8eea6d/entity-store/src/main/java/jetbrains/exodus/entitystore/tables/BlobsTable.java#L62-L66
kazocsaba/imageviewer
src/main/java/hu/kazocsaba/imageviewer/LayeredImageView.java
LayeredImageView.addOverlay
public void addOverlay(Overlay overlay, int layer) { """ Adds an overlay as the specified layer. @param overlay the overlay to add @param layer the layer to add the overlay to; higher layers are on top of lower layers; the image resides in layer 0 """ if (overlay==null) throw new NullPointerException(); ...
java
public void addOverlay(Overlay overlay, int layer) { if (overlay==null) throw new NullPointerException(); OverlayComponent c=new OverlayComponent(overlay, theImage); overlay.addOverlayComponent(c); layeredPane.add(c, Integer.valueOf(layer)); layeredPane.revalidate(); layeredPane.repaint(); }
[ "public", "void", "addOverlay", "(", "Overlay", "overlay", ",", "int", "layer", ")", "{", "if", "(", "overlay", "==", "null", ")", "throw", "new", "NullPointerException", "(", ")", ";", "OverlayComponent", "c", "=", "new", "OverlayComponent", "(", "overlay",...
Adds an overlay as the specified layer. @param overlay the overlay to add @param layer the layer to add the overlay to; higher layers are on top of lower layers; the image resides in layer 0
[ "Adds", "an", "overlay", "as", "the", "specified", "layer", "." ]
train
https://github.com/kazocsaba/imageviewer/blob/59b8834c9dbf87bd9ca0898da3458ae592e3851e/src/main/java/hu/kazocsaba/imageviewer/LayeredImageView.java#L40-L47
JetBrains/xodus
entity-store/src/main/java/jetbrains/exodus/entitystore/PersistentEntityStoreImpl.java
PersistentEntityStoreImpl.getEntityTypeId
@Deprecated public int getEntityTypeId(@NotNull final String entityType, final boolean allowCreate) { """ Gets or creates id of the entity type. @param entityType entity type name. @param allowCreate if set to true and if there is no entity type like entityType, create the new id for the entityType. @re...
java
@Deprecated public int getEntityTypeId(@NotNull final String entityType, final boolean allowCreate) { return getEntityTypeId(txnProvider, entityType, allowCreate); }
[ "@", "Deprecated", "public", "int", "getEntityTypeId", "(", "@", "NotNull", "final", "String", "entityType", ",", "final", "boolean", "allowCreate", ")", "{", "return", "getEntityTypeId", "(", "txnProvider", ",", "entityType", ",", "allowCreate", ")", ";", "}" ]
Gets or creates id of the entity type. @param entityType entity type name. @param allowCreate if set to true and if there is no entity type like entityType, create the new id for the entityType. @return entity type id.
[ "Gets", "or", "creates", "id", "of", "the", "entity", "type", "." ]
train
https://github.com/JetBrains/xodus/blob/7b3476c4e81db66f9c7529148c761605cc8eea6d/entity-store/src/main/java/jetbrains/exodus/entitystore/PersistentEntityStoreImpl.java#L1587-L1590
codecentric/zucchini
zucchini-bdd/src/main/java/de/codecentric/zucchini/bdd/util/Assert.java
Assert.assertNotIdentity
@SuppressWarnings( { """ Asserts that two objects don't have the same identity, i.e. {@code expected != actual}, and fails otherwise. @param message The message of the thrown {@link java.lang.AssertionError}. @param expected The expected object. @param actual The actual object. """"SameParameterValue",...
java
@SuppressWarnings({"SameParameterValue", "WeakerAccess"}) public static void assertNotIdentity(String message, Object expected, Object actual) { if (expected == actual) { fail(message); } }
[ "@", "SuppressWarnings", "(", "{", "\"SameParameterValue\"", ",", "\"WeakerAccess\"", "}", ")", "public", "static", "void", "assertNotIdentity", "(", "String", "message", ",", "Object", "expected", ",", "Object", "actual", ")", "{", "if", "(", "expected", "==", ...
Asserts that two objects don't have the same identity, i.e. {@code expected != actual}, and fails otherwise. @param message The message of the thrown {@link java.lang.AssertionError}. @param expected The expected object. @param actual The actual object.
[ "Asserts", "that", "two", "objects", "don", "t", "have", "the", "same", "identity", "i", ".", "e", ".", "{", "@code", "expected", "!", "=", "actual", "}", "and", "fails", "otherwise", "." ]
train
https://github.com/codecentric/zucchini/blob/61541cd8ce666ef21ad943486a7c0eb53310ed5a/zucchini-bdd/src/main/java/de/codecentric/zucchini/bdd/util/Assert.java#L90-L95
mapfish/mapfish-print
core/src/main/java/org/mapfish/print/config/WorkingDirectories.java
WorkingDirectories.setWorking
public final void setWorking(final String working) { """ Defines what is the root directory used to store every temporary files. <p> The given path can contain the pattern "{WEBAPP}" and it will replaced by the webapp name. @param working The path """ final String webappPath = this.servletContext....
java
public final void setWorking(final String working) { final String webappPath = this.servletContext.getRealPath("/"); final String webappName; if (webappPath != null) { webappName = new File(webappPath).getName(); } else { webappName = "default"; // left like that...
[ "public", "final", "void", "setWorking", "(", "final", "String", "working", ")", "{", "final", "String", "webappPath", "=", "this", ".", "servletContext", ".", "getRealPath", "(", "\"/\"", ")", ";", "final", "String", "webappName", ";", "if", "(", "webappPat...
Defines what is the root directory used to store every temporary files. <p> The given path can contain the pattern "{WEBAPP}" and it will replaced by the webapp name. @param working The path
[ "Defines", "what", "is", "the", "root", "directory", "used", "to", "store", "every", "temporary", "files", ".", "<p", ">", "The", "given", "path", "can", "contain", "the", "pattern", "{", "WEBAPP", "}", "and", "it", "will", "replaced", "by", "the", "weba...
train
https://github.com/mapfish/mapfish-print/blob/25a452cb39f592bd8a53b20db1037703898e1e22/core/src/main/java/org/mapfish/print/config/WorkingDirectories.java#L47-L58
prestodb/presto
presto-main/src/main/java/com/facebook/presto/operator/scalar/FailureFunction.java
FailureFunction.failWithException
@Description("Decodes json to an exception and throws it") @ScalarFunction(value = "fail", hidden = true) @SqlType("unknown") public static boolean failWithException(@SqlType(StandardTypes.JSON) Slice failureInfoSlice) { """ We shouldn't be using UNKNOWN as an explicit type. This will be fixed when we ...
java
@Description("Decodes json to an exception and throws it") @ScalarFunction(value = "fail", hidden = true) @SqlType("unknown") public static boolean failWithException(@SqlType(StandardTypes.JSON) Slice failureInfoSlice) { FailureInfo failureInfo = JSON_CODEC.fromJson(failureInfoSlice.getBytes());...
[ "@", "Description", "(", "\"Decodes json to an exception and throws it\"", ")", "@", "ScalarFunction", "(", "value", "=", "\"fail\"", ",", "hidden", "=", "true", ")", "@", "SqlType", "(", "\"unknown\"", ")", "public", "static", "boolean", "failWithException", "(", ...
We shouldn't be using UNKNOWN as an explicit type. This will be fixed when we fix type inference
[ "We", "shouldn", "t", "be", "using", "UNKNOWN", "as", "an", "explicit", "type", ".", "This", "will", "be", "fixed", "when", "we", "fix", "type", "inference" ]
train
https://github.com/prestodb/presto/blob/89de5e379d8f85e139d292b0add8c537a2a01a88/presto-main/src/main/java/com/facebook/presto/operator/scalar/FailureFunction.java#L33-L41
b3dgs/lionengine
lionengine-core/src/main/java/com/b3dgs/lionengine/XmlReader.java
XmlReader.readLong
public long readLong(long defaultValue, String attribute) { """ Read a long. @param defaultValue The value returned if attribute not found. @param attribute The float name (must not be <code>null</code>). @return The long value. @throws LionEngineException If invalid argument. """ return Long.par...
java
public long readLong(long defaultValue, String attribute) { return Long.parseLong(getValue(String.valueOf(defaultValue), attribute)); }
[ "public", "long", "readLong", "(", "long", "defaultValue", ",", "String", "attribute", ")", "{", "return", "Long", ".", "parseLong", "(", "getValue", "(", "String", ".", "valueOf", "(", "defaultValue", ")", ",", "attribute", ")", ")", ";", "}" ]
Read a long. @param defaultValue The value returned if attribute not found. @param attribute The float name (must not be <code>null</code>). @return The long value. @throws LionEngineException If invalid argument.
[ "Read", "a", "long", "." ]
train
https://github.com/b3dgs/lionengine/blob/cac3d5578532cf11724a737b9f09e71bf9995ab2/lionengine-core/src/main/java/com/b3dgs/lionengine/XmlReader.java#L235-L238
alkacon/opencms-core
src/org/opencms/ui/apps/modules/edit/CmsEditModuleForm.java
CmsEditModuleForm.addDependency
void addDependency(String moduleName, String version) { """ Adds a new module dependency widget.<p> @param moduleName the module name @param version the module version """ try { m_dependencies.addComponent( new CmsRemovableFormRow<CmsModuleDependencyWidget>( ...
java
void addDependency(String moduleName, String version) { try { m_dependencies.addComponent( new CmsRemovableFormRow<CmsModuleDependencyWidget>( CmsModuleDependencyWidget.create( new CmsModuleDependency(moduleName, new CmsModuleVersion(versi...
[ "void", "addDependency", "(", "String", "moduleName", ",", "String", "version", ")", "{", "try", "{", "m_dependencies", ".", "addComponent", "(", "new", "CmsRemovableFormRow", "<", "CmsModuleDependencyWidget", ">", "(", "CmsModuleDependencyWidget", ".", "create", "(...
Adds a new module dependency widget.<p> @param moduleName the module name @param version the module version
[ "Adds", "a", "new", "module", "dependency", "widget", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/modules/edit/CmsEditModuleForm.java#L667-L678
arakelian/more-commons
src/main/java/com/arakelian/core/utils/XmlStreamReaderUtils.java
XmlStreamReaderUtils.requiredClassAttribute
public static Class requiredClassAttribute(final XMLStreamReader reader, final String localName) throws XMLStreamException { """ Returns the value of an attribute as a Class. If the attribute is empty, this method throws an exception. @param reader <code>XMLStreamReader</code> that contains attrib...
java
public static Class requiredClassAttribute(final XMLStreamReader reader, final String localName) throws XMLStreamException { return requiredClassAttribute(reader, null, localName); }
[ "public", "static", "Class", "requiredClassAttribute", "(", "final", "XMLStreamReader", "reader", ",", "final", "String", "localName", ")", "throws", "XMLStreamException", "{", "return", "requiredClassAttribute", "(", "reader", ",", "null", ",", "localName", ")", ";...
Returns the value of an attribute as a Class. If the attribute is empty, this method throws an exception. @param reader <code>XMLStreamReader</code> that contains attribute values. @param localName local name of attribute (the namespace is ignored). @return value of attribute as Class @throws XMLStreamException if att...
[ "Returns", "the", "value", "of", "an", "attribute", "as", "a", "Class", ".", "If", "the", "attribute", "is", "empty", "this", "method", "throws", "an", "exception", "." ]
train
https://github.com/arakelian/more-commons/blob/83c607044f64a7f6c005a67866c0ef7cb68d6e29/src/main/java/com/arakelian/core/utils/XmlStreamReaderUtils.java#L1081-L1084
lievendoclo/Valkyrie-RCP
valkyrie-rcp-core/src/main/java/org/valkyriercp/application/session/ApplicationSession.java
ApplicationSession.setSessionAttributes
public void setSessionAttributes(Map<String, Object> attributes) { """ Add the given key/value pairs to the session attributes. @param attributes a map of key/value pairs. """ this.sessionAttributes.putAll(attributes); propertyChangeSupport.firePropertyChange(SESSION_ATTRIBUTES, null, sessi...
java
public void setSessionAttributes(Map<String, Object> attributes) { this.sessionAttributes.putAll(attributes); propertyChangeSupport.firePropertyChange(SESSION_ATTRIBUTES, null, sessionAttributes); }
[ "public", "void", "setSessionAttributes", "(", "Map", "<", "String", ",", "Object", ">", "attributes", ")", "{", "this", ".", "sessionAttributes", ".", "putAll", "(", "attributes", ")", ";", "propertyChangeSupport", ".", "firePropertyChange", "(", "SESSION_ATTRIBU...
Add the given key/value pairs to the session attributes. @param attributes a map of key/value pairs.
[ "Add", "the", "given", "key", "/", "value", "pairs", "to", "the", "session", "attributes", "." ]
train
https://github.com/lievendoclo/Valkyrie-RCP/blob/6aad6e640b348cda8f3b0841f6e42025233f1eb8/valkyrie-rcp-core/src/main/java/org/valkyriercp/application/session/ApplicationSession.java#L293-L297
RestComm/sipunit
src/main/java/org/cafesip/sipunit/SipAssert.java
SipAssert.assertBodyContains
public static void assertBodyContains(String msg, SipMessage sipMessage, String value) { """ Asserts that the given SIP message contains a body that includes the given value. The assertion fails if a body is not present in the message or is present but doesn't include the value. Assertion failure output includes...
java
public static void assertBodyContains(String msg, SipMessage sipMessage, String value) { assertNotNull("Null assert object passed in", sipMessage); assertBodyPresent(msg, sipMessage); String body = new String(sipMessage.getRawContent()); if (body.indexOf(value) != -1) { assertTrue(true); ...
[ "public", "static", "void", "assertBodyContains", "(", "String", "msg", ",", "SipMessage", "sipMessage", ",", "String", "value", ")", "{", "assertNotNull", "(", "\"Null assert object passed in\"", ",", "sipMessage", ")", ";", "assertBodyPresent", "(", "msg", ",", ...
Asserts that the given SIP message contains a body that includes the given value. The assertion fails if a body is not present in the message or is present but doesn't include the value. Assertion failure output includes the given message text. @param msg message text to output if the assertion fails. @param sipMessag...
[ "Asserts", "that", "the", "given", "SIP", "message", "contains", "a", "body", "that", "includes", "the", "given", "value", ".", "The", "assertion", "fails", "if", "a", "body", "is", "not", "present", "in", "the", "message", "or", "is", "present", "but", ...
train
https://github.com/RestComm/sipunit/blob/18a6be2e29be3fbdc14226e8c41b25e2d57378b1/src/main/java/org/cafesip/sipunit/SipAssert.java#L698-L709
kaazing/gateway
mina.netty/src/main/java/org/jboss/netty/channel/socket/nio/NioServerDatagramChannelFactory.java
NioServerDatagramChannelFactory.newChildChannel
public NioChildDatagramChannel newChildChannel(Channel parent, final ChannelPipeline pipeline) { """ mina.netty change - adding this to create child datagram channels """ return new NioChildDatagramChannel(parent, this, pipeline, childSink, workerPool.nextWorker(), family); }
java
public NioChildDatagramChannel newChildChannel(Channel parent, final ChannelPipeline pipeline) { return new NioChildDatagramChannel(parent, this, pipeline, childSink, workerPool.nextWorker(), family); }
[ "public", "NioChildDatagramChannel", "newChildChannel", "(", "Channel", "parent", ",", "final", "ChannelPipeline", "pipeline", ")", "{", "return", "new", "NioChildDatagramChannel", "(", "parent", ",", "this", ",", "pipeline", ",", "childSink", ",", "workerPool", "."...
mina.netty change - adding this to create child datagram channels
[ "mina", ".", "netty", "change", "-", "adding", "this", "to", "create", "child", "datagram", "channels" ]
train
https://github.com/kaazing/gateway/blob/06017b19273109b3b992e528e702586446168d57/mina.netty/src/main/java/org/jboss/netty/channel/socket/nio/NioServerDatagramChannelFactory.java#L91-L93
betfair/cougar
cougar-framework/cougar-zipkin-common/src/main/java/com/betfair/cougar/modules/zipkin/impl/ZipkinManager.java
ZipkinManager.createNewZipkinRequestUUID
public ZipkinRequestUUID createNewZipkinRequestUUID(@Nonnull RequestUUID cougarUuid, @Nullable String traceId, @Nullable String spanId, @Nullable String parentSpanId, @Nullable String sampled, @Nullable Strin...
java
public ZipkinRequestUUID createNewZipkinRequestUUID(@Nonnull RequestUUID cougarUuid, @Nullable String traceId, @Nullable String spanId, @Nullable String parentSpanId, @Nullable String sampled, @Nullable Strin...
[ "public", "ZipkinRequestUUID", "createNewZipkinRequestUUID", "(", "@", "Nonnull", "RequestUUID", "cougarUuid", ",", "@", "Nullable", "String", "traceId", ",", "@", "Nullable", "String", "spanId", ",", "@", "Nullable", "String", "parentSpanId", ",", "@", "Nullable", ...
Creates a new ZipkinRequestUUID. This method will generate any required Zipkin data if it does not exist (e.g. if this invocation corresponds to the first request in the chain). @param cougarUuid The cougar UUID @param traceId The trace ID of the span (null to request generation) @param spanId The ID of t...
[ "Creates", "a", "new", "ZipkinRequestUUID", ".", "This", "method", "will", "generate", "any", "required", "Zipkin", "data", "if", "it", "does", "not", "exist", "(", "e", ".", "g", ".", "if", "this", "invocation", "corresponds", "to", "the", "first", "reque...
train
https://github.com/betfair/cougar/blob/08d1fe338fbd0e8572a9c2305bb5796402d5b1f5/cougar-framework/cougar-zipkin-common/src/main/java/com/betfair/cougar/modules/zipkin/impl/ZipkinManager.java#L114-L160
Samsung/GearVRf
GVRf/Framework/framework/src/main/java/org/gearvrf/jassimp/Jassimp.java
Jassimp.wrapVec3
static Object wrapVec3(float x, float y, float z) { """ Helper method for wrapping a vector.<p> Used by JNI, do not modify! @param x x component @param y y component @param z z component @return the wrapped vector """ ByteBuffer temp = ByteBuffer.allocate(3 * 4); temp.putFloat(x); ...
java
static Object wrapVec3(float x, float y, float z) { ByteBuffer temp = ByteBuffer.allocate(3 * 4); temp.putFloat(x); temp.putFloat(y); temp.putFloat(z); temp.flip(); return s_wrapperProvider.wrapVector3f(temp, 0, 3); }
[ "static", "Object", "wrapVec3", "(", "float", "x", ",", "float", "y", ",", "float", "z", ")", "{", "ByteBuffer", "temp", "=", "ByteBuffer", ".", "allocate", "(", "3", "*", "4", ")", ";", "temp", ".", "putFloat", "(", "x", ")", ";", "temp", ".", "...
Helper method for wrapping a vector.<p> Used by JNI, do not modify! @param x x component @param y y component @param z z component @return the wrapped vector
[ "Helper", "method", "for", "wrapping", "a", "vector", ".", "<p", ">" ]
train
https://github.com/Samsung/GearVRf/blob/05034d465a7b0a494fabb9e9f2971ac19392f32d/GVRf/Framework/framework/src/main/java/org/gearvrf/jassimp/Jassimp.java#L270-L277
basho/riak-java-client
src/main/java/com/basho/riak/client/api/convert/reflection/AnnotationUtil.java
AnnotationUtil.setVClock
public static <T> T setVClock(T domainObject, VClock vclock) throws ConversionException { """ Attempts to inject <code>vclock</code> as the value of the {@literal @RiakVClock} annotated member of <code>domainObject</code> @param <T> the type of <code>domainObject</code> @param domainObject the object to injec...
java
public static <T> T setVClock(T domainObject, VClock vclock) throws ConversionException { T obj = AnnotationHelper.getInstance().setRiakVClock(domainObject, vclock); return obj; }
[ "public", "static", "<", "T", ">", "T", "setVClock", "(", "T", "domainObject", ",", "VClock", "vclock", ")", "throws", "ConversionException", "{", "T", "obj", "=", "AnnotationHelper", ".", "getInstance", "(", ")", ".", "setRiakVClock", "(", "domainObject", "...
Attempts to inject <code>vclock</code> as the value of the {@literal @RiakVClock} annotated member of <code>domainObject</code> @param <T> the type of <code>domainObject</code> @param domainObject the object to inject the key into @param vclock the vclock to inject @return <code>domainObject</code> with {@literal @Ria...
[ "Attempts", "to", "inject", "<code", ">", "vclock<", "/", "code", ">", "as", "the", "value", "of", "the", "{", "@literal", "@RiakVClock", "}", "annotated", "member", "of", "<code", ">", "domainObject<", "/", "code", ">" ]
train
https://github.com/basho/riak-java-client/blob/bed6cd60f360bacf1b873ab92dd74f2526651e71/src/main/java/com/basho/riak/client/api/convert/reflection/AnnotationUtil.java#L139-L143
looly/hutool
hutool-core/src/main/java/cn/hutool/core/util/URLUtil.java
URLUtil.toUrlForHttp
public static URL toUrlForHttp(String urlStr, URLStreamHandler handler) { """ 将URL字符串转换为URL对象,并做必要验证 @param urlStr URL字符串 @param handler {@link URLStreamHandler} @return URL @since 4.1.9 """ Assert.notBlank(urlStr, "Url is blank !"); // 去掉url中的空白符,防止空白符导致的异常 urlStr = StrUtil.cleanBlank(urlStr); ...
java
public static URL toUrlForHttp(String urlStr, URLStreamHandler handler) { Assert.notBlank(urlStr, "Url is blank !"); // 去掉url中的空白符,防止空白符导致的异常 urlStr = StrUtil.cleanBlank(urlStr); return URLUtil.url(urlStr, handler); }
[ "public", "static", "URL", "toUrlForHttp", "(", "String", "urlStr", ",", "URLStreamHandler", "handler", ")", "{", "Assert", ".", "notBlank", "(", "urlStr", ",", "\"Url is blank !\"", ")", ";", "// 去掉url中的空白符,防止空白符导致的异常\r", "urlStr", "=", "StrUtil", ".", "cleanBlan...
将URL字符串转换为URL对象,并做必要验证 @param urlStr URL字符串 @param handler {@link URLStreamHandler} @return URL @since 4.1.9
[ "将URL字符串转换为URL对象,并做必要验证" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/util/URLUtil.java#L119-L124
kaazing/gateway
mina.core/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMResponses.java
NTLMResponses.getNTLM2SessionResponse
public static byte[] getNTLM2SessionResponse(String password, byte[] challenge, byte[] clientNonce) throws Exception { """ Calculates the NTLM2 Session Response for the given challenge, using the specified password and client nonce. @param password The user's password. @param challenge The Type 2 ...
java
public static byte[] getNTLM2SessionResponse(String password, byte[] challenge, byte[] clientNonce) throws Exception { byte[] ntlmHash = ntlmHash(password); MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(challenge); md5.update(clientNonce); byte[] se...
[ "public", "static", "byte", "[", "]", "getNTLM2SessionResponse", "(", "String", "password", ",", "byte", "[", "]", "challenge", ",", "byte", "[", "]", "clientNonce", ")", "throws", "Exception", "{", "byte", "[", "]", "ntlmHash", "=", "ntlmHash", "(", "pass...
Calculates the NTLM2 Session Response for the given challenge, using the specified password and client nonce. @param password The user's password. @param challenge The Type 2 challenge from the server. @param clientNonce The random 8-byte client nonce. @return The NTLM2 Session Response. This is placed in the NTLM r...
[ "Calculates", "the", "NTLM2", "Session", "Response", "for", "the", "given", "challenge", "using", "the", "specified", "password", "and", "client", "nonce", "." ]
train
https://github.com/kaazing/gateway/blob/06017b19273109b3b992e528e702586446168d57/mina.core/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMResponses.java#L161-L170
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.inferFunctionReturnType
protected JvmTypeReference inferFunctionReturnType(XtendFunction source, JvmOperation target, JvmOperation overriddenOperation) { """ Infer the return type for the given source function. @param source the source function. @param target the target operation. @param overriddenOperation reference to the overridd...
java
protected JvmTypeReference inferFunctionReturnType(XtendFunction source, JvmOperation target, JvmOperation overriddenOperation) { // The return type is explicitly given if (source.getReturnType() != null) { return ensureValidType(source.eResource(), source.getReturnType()); } // An super operation was detec...
[ "protected", "JvmTypeReference", "inferFunctionReturnType", "(", "XtendFunction", "source", ",", "JvmOperation", "target", ",", "JvmOperation", "overriddenOperation", ")", "{", "// The return type is explicitly given", "if", "(", "source", ".", "getReturnType", "(", ")", ...
Infer the return type for the given source function. @param source the source function. @param target the target operation. @param overriddenOperation reference to the overridden operation. @return the inferred return type. @since 0.7
[ "Infer", "the", "return", "type", "for", "the", "given", "source", "function", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3643-L3665
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/config/CommonConfigUtils.java
CommonConfigUtils.getRequiredConfigAttribute
public String getRequiredConfigAttribute(Map<String, Object> props, String key) { """ Returns the value for the configuration attribute matching the key provided. If the value does not exist or is empty, the resulting value will be {@code null} and an error message will be logged. """ return getRequir...
java
public String getRequiredConfigAttribute(Map<String, Object> props, String key) { return getRequiredConfigAttributeWithDefaultValueAndConfigId(props, key, null, null); }
[ "public", "String", "getRequiredConfigAttribute", "(", "Map", "<", "String", ",", "Object", ">", "props", ",", "String", "key", ")", "{", "return", "getRequiredConfigAttributeWithDefaultValueAndConfigId", "(", "props", ",", "key", ",", "null", ",", "null", ")", ...
Returns the value for the configuration attribute matching the key provided. If the value does not exist or is empty, the resulting value will be {@code null} and an error message will be logged.
[ "Returns", "the", "value", "for", "the", "configuration", "attribute", "matching", "the", "key", "provided", ".", "If", "the", "value", "does", "not", "exist", "or", "is", "empty", "the", "resulting", "value", "will", "be", "{" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/config/CommonConfigUtils.java#L52-L54
logic-ng/LogicNG
src/main/java/org/logicng/datastructures/EncodingResult.java
EncodingResult.resultForCleaneLing
public static EncodingResult resultForCleaneLing(final FormulaFactory f, final CleaneLing cleaneLing) { """ Constructs a new result which adds the result directly to a given CleaneLing solver. @param f the formula factory @param cleaneLing the CleaneLing solver @return the result """ return new...
java
public static EncodingResult resultForCleaneLing(final FormulaFactory f, final CleaneLing cleaneLing) { return new EncodingResult(f, null, cleaneLing); }
[ "public", "static", "EncodingResult", "resultForCleaneLing", "(", "final", "FormulaFactory", "f", ",", "final", "CleaneLing", "cleaneLing", ")", "{", "return", "new", "EncodingResult", "(", "f", ",", "null", ",", "cleaneLing", ")", ";", "}" ]
Constructs a new result which adds the result directly to a given CleaneLing solver. @param f the formula factory @param cleaneLing the CleaneLing solver @return the result
[ "Constructs", "a", "new", "result", "which", "adds", "the", "result", "directly", "to", "a", "given", "CleaneLing", "solver", "." ]
train
https://github.com/logic-ng/LogicNG/blob/bb9eb88a768be4be8e02a76cfc4a59e6c3fb7f2e/src/main/java/org/logicng/datastructures/EncodingResult.java#L98-L100
SonarSource/sonarqube
server/sonar-server-common/src/main/java/org/sonar/server/es/BaseDoc.java
BaseDoc.getNullableField
@CheckForNull public <K> K getNullableField(String key) { """ Use this method when field value can be null. See warning in {@link #getField(String)} """ if (!fields.containsKey(key)) { throw new IllegalStateException(String.format("Field %s not specified in query options", key)); } return (...
java
@CheckForNull public <K> K getNullableField(String key) { if (!fields.containsKey(key)) { throw new IllegalStateException(String.format("Field %s not specified in query options", key)); } return (K) fields.get(key); }
[ "@", "CheckForNull", "public", "<", "K", ">", "K", "getNullableField", "(", "String", "key", ")", "{", "if", "(", "!", "fields", ".", "containsKey", "(", "key", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "String", ".", "format", "(", ...
Use this method when field value can be null. See warning in {@link #getField(String)}
[ "Use", "this", "method", "when", "field", "value", "can", "be", "null", ".", "See", "warning", "in", "{" ]
train
https://github.com/SonarSource/sonarqube/blob/2fffa4c2f79ae3714844d7742796e82822b6a98a/server/sonar-server-common/src/main/java/org/sonar/server/es/BaseDoc.java#L97-L103
pac4j/pac4j
pac4j-saml/src/main/java/org/pac4j/saml/store/HttpSessionStore.java
HttpSessionStore.updateSession
private void updateSession(final LinkedHashMap<String, XMLObject> messages) { """ Updates session with the internalMessages key. Some application servers require session value to be updated in order to replicate the session across nodes or persist it correctly. """ context.getSessionStore().set(contex...
java
private void updateSession(final LinkedHashMap<String, XMLObject> messages) { context.getSessionStore().set(context, SAML_STORAGE_KEY, messages); }
[ "private", "void", "updateSession", "(", "final", "LinkedHashMap", "<", "String", ",", "XMLObject", ">", "messages", ")", "{", "context", ".", "getSessionStore", "(", ")", ".", "set", "(", "context", ",", "SAML_STORAGE_KEY", ",", "messages", ")", ";", "}" ]
Updates session with the internalMessages key. Some application servers require session value to be updated in order to replicate the session across nodes or persist it correctly.
[ "Updates", "session", "with", "the", "internalMessages", "key", ".", "Some", "application", "servers", "require", "session", "value", "to", "be", "updated", "in", "order", "to", "replicate", "the", "session", "across", "nodes", "or", "persist", "it", "correctly"...
train
https://github.com/pac4j/pac4j/blob/d9cd029f8783792b31dd48bf1e32f80628f2c4a3/pac4j-saml/src/main/java/org/pac4j/saml/store/HttpSessionStore.java#L141-L143
unbescape/unbescape
src/main/java/org/unbescape/json/JsonEscape.java
JsonEscape.unescapeJson
public static void unescapeJson(final char[] text, final int offset, final int len, final Writer writer) throws IOException { """ <p> Perform a JSON <strong>unescape</strong> operation on a <tt>char[]</tt> input. </p> <p> No additional configuration arguments are required. U...
java
public static void unescapeJson(final char[] text, final int offset, final int len, final Writer writer) throws IOException { if (writer == null) { throw new IllegalArgumentException("Argument 'writer' cannot be null"); } final int textLen = (tex...
[ "public", "static", "void", "unescapeJson", "(", "final", "char", "[", "]", "text", ",", "final", "int", "offset", ",", "final", "int", "len", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "if", "(", "writer", "==", "null", ")", ...
<p> Perform a JSON <strong>unescape</strong> operation on a <tt>char[]</tt> input. </p> <p> No additional configuration arguments are required. Unescape operations will always perform <em>complete</em> JSON unescape of SECs and u-based escapes. </p> <p> This method is <strong>thread-safe</strong>. </p> @param text the...
[ "<p", ">", "Perform", "a", "JSON", "<strong", ">", "unescape<", "/", "strong", ">", "operation", "on", "a", "<tt", ">", "char", "[]", "<", "/", "tt", ">", "input", ".", "<", "/", "p", ">", "<p", ">", "No", "additional", "configuration", "arguments", ...
train
https://github.com/unbescape/unbescape/blob/ec5435fb3508c2eed25d8165dc27ded2602cae13/src/main/java/org/unbescape/json/JsonEscape.java#L988-L1009
relayrides/pushy
pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java
ParsingMockApnsServerListenerAdapter.handlePushNotificationRejected
public void handlePushNotificationRejected(final Http2Headers headers, final ByteBuf payload, final RejectionReason rejectionReason, final Date deviceTokenExpirationTimestamp) { """ Parses a push notification rejected by a mock APNs server into an {@link ApnsPushNotification} instance for further processing by {...
java
public void handlePushNotificationRejected(final Http2Headers headers, final ByteBuf payload, final RejectionReason rejectionReason, final Date deviceTokenExpirationTimestamp) { this.handlePushNotificationRejected(parsePushNotification(headers, payload), rejectionReason, deviceTokenExpirationTimestamp); }
[ "public", "void", "handlePushNotificationRejected", "(", "final", "Http2Headers", "headers", ",", "final", "ByteBuf", "payload", ",", "final", "RejectionReason", "rejectionReason", ",", "final", "Date", "deviceTokenExpirationTimestamp", ")", "{", "this", ".", "handlePus...
Parses a push notification rejected by a mock APNs server into an {@link ApnsPushNotification} instance for further processing by {@link ParsingMockApnsServerListenerAdapter#handlePushNotificationRejected(ApnsPushNotification, RejectionReason, Date)}. @param headers the notification's HTTP/2 headers @param payload the...
[ "Parses", "a", "push", "notification", "rejected", "by", "a", "mock", "APNs", "server", "into", "an", "{", "@link", "ApnsPushNotification", "}", "instance", "for", "further", "processing", "by", "{", "@link", "ParsingMockApnsServerListenerAdapter#handlePushNotificationR...
train
https://github.com/relayrides/pushy/blob/1f6f9a0e07d785c815d74c2320a8d87c80231d36/pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java#L147-L149
jenkinsci/jenkins
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol4.java
JnlpSlaveAgentProtocol4.setHub
@Inject public void setHub(IOHubProvider hub) { """ Inject the {@link IOHubProvider} @param hub the hub provider. """ this.hub = hub; handler = new JnlpProtocol4Handler(JnlpAgentReceiver.DATABASE, Computer.threadPoolForRemoting, hub.getHub(), sslContext, false, true); ...
java
@Inject public void setHub(IOHubProvider hub) { this.hub = hub; handler = new JnlpProtocol4Handler(JnlpAgentReceiver.DATABASE, Computer.threadPoolForRemoting, hub.getHub(), sslContext, false, true); }
[ "@", "Inject", "public", "void", "setHub", "(", "IOHubProvider", "hub", ")", "{", "this", ".", "hub", "=", "hub", ";", "handler", "=", "new", "JnlpProtocol4Handler", "(", "JnlpAgentReceiver", ".", "DATABASE", ",", "Computer", ".", "threadPoolForRemoting", ",",...
Inject the {@link IOHubProvider} @param hub the hub provider.
[ "Inject", "the", "{", "@link", "IOHubProvider", "}" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol4.java#L154-L159
wcm-io/wcm-io-tooling
maven/plugins/wcmio-content-package-maven-plugin/src/main/java/io/wcm/maven/plugins/contentpackage/ArtifactHelper.java
ArtifactHelper.getArtifactFromMavenCoordinates
private Artifact getArtifactFromMavenCoordinates(final String artifact) throws MojoFailureException { """ Parse coordinates following definition from https://maven.apache.org/pom.html#Maven_Coordinates @param artifact Artifact coordinates @return Artifact object @throws MojoFailureException if coordinates are s...
java
private Artifact getArtifactFromMavenCoordinates(final String artifact) throws MojoFailureException { String[] parts = StringUtils.split(artifact, ":"); String version; String packaging = null; String classifier = null; switch (parts.length) { case 3: // groupId:artifactId:version ...
[ "private", "Artifact", "getArtifactFromMavenCoordinates", "(", "final", "String", "artifact", ")", "throws", "MojoFailureException", "{", "String", "[", "]", "parts", "=", "StringUtils", ".", "split", "(", "artifact", ",", "\":\"", ")", ";", "String", "version", ...
Parse coordinates following definition from https://maven.apache.org/pom.html#Maven_Coordinates @param artifact Artifact coordinates @return Artifact object @throws MojoFailureException if coordinates are semantically invalid
[ "Parse", "coordinates", "following", "definition", "from", "https", ":", "//", "maven", ".", "apache", ".", "org", "/", "pom", ".", "html#Maven_Coordinates" ]
train
https://github.com/wcm-io/wcm-io-tooling/blob/1abcd01dd3ad4cc248f03b431f929573d84fa9b4/maven/plugins/wcmio-content-package-maven-plugin/src/main/java/io/wcm/maven/plugins/contentpackage/ArtifactHelper.java#L83-L118
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/field/BitReferenceField.java
BitReferenceField.setupDefaultView
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) // Add this view to the list { """ Set up the default screen control for this field. @param itsLocation Location of this component on screen (ie....
java
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) // Add this view to the list { if (targetScreen instanceof GridScreenParent) return super.setupDefaultView(itsLocation, targetS...
[ "public", "ScreenComponent", "setupDefaultView", "(", "ScreenLoc", "itsLocation", ",", "ComponentParent", "targetScreen", ",", "Convert", "converter", ",", "int", "iDisplayFieldDesc", ",", "Map", "<", "String", ",", "Object", ">", "properties", ")", "// Add this view ...
Set up the default screen control for this field. @param itsLocation Location of this component on screen (ie., GridBagConstraint). @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). @param converter The converter to set the screenfield to. @param iDisplayFieldDesc Display the labe...
[ "Set", "up", "the", "default", "screen", "control", "for", "this", "field", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/BitReferenceField.java#L79-L116
Comcast/jrugged
jrugged-core/src/main/java/org/fishwife/jrugged/CircuitBreakerFactory.java
CircuitBreakerFactory.getLongPropertyOverrideValue
private Long getLongPropertyOverrideValue(String name, String key) { """ Get an {@link Long} property override value. @param name the {@link CircuitBreaker} name. @param key the property override key. @return the property override value, or null if it is not found. """ if (properties != null) { ...
java
private Long getLongPropertyOverrideValue(String name, String key) { if (properties != null) { String propertyName = getPropertyName(name, key); String propertyOverrideValue = properties.getProperty(propertyName); if (propertyOverrideValue != null) { try { ...
[ "private", "Long", "getLongPropertyOverrideValue", "(", "String", "name", ",", "String", "key", ")", "{", "if", "(", "properties", "!=", "null", ")", "{", "String", "propertyName", "=", "getPropertyName", "(", "name", ",", "key", ")", ";", "String", "propert...
Get an {@link Long} property override value. @param name the {@link CircuitBreaker} name. @param key the property override key. @return the property override value, or null if it is not found.
[ "Get", "an", "{" ]
train
https://github.com/Comcast/jrugged/blob/b6a5147c68ee733faf5616d49800abcbba67afe9/jrugged-core/src/main/java/org/fishwife/jrugged/CircuitBreakerFactory.java#L199-L216
linkedin/dexmaker
dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/StaticMockMethodAdvice.java
StaticMockMethodAdvice.getOrigin
@SuppressWarnings("unused") public Method getOrigin(Object ignored, String methodWithTypeAndSignature) throws Throwable { """ Get the method specified by {@code methodWithTypeAndSignature}. @param ignored @param methodWithTypeAndSignature the description of the method @return method {@code methodWithTypeA...
java
@SuppressWarnings("unused") public Method getOrigin(Object ignored, String methodWithTypeAndSignature) throws Throwable { MethodDesc methodDesc = new MethodDesc(methodWithTypeAndSignature); Class clazz = getClassMethodWasCalledOn(methodDesc); if (clazz == null) { return null; ...
[ "@", "SuppressWarnings", "(", "\"unused\"", ")", "public", "Method", "getOrigin", "(", "Object", "ignored", ",", "String", "methodWithTypeAndSignature", ")", "throws", "Throwable", "{", "MethodDesc", "methodDesc", "=", "new", "MethodDesc", "(", "methodWithTypeAndSigna...
Get the method specified by {@code methodWithTypeAndSignature}. @param ignored @param methodWithTypeAndSignature the description of the method @return method {@code methodWithTypeAndSignature} refer to
[ "Get", "the", "method", "specified", "by", "{", "@code", "methodWithTypeAndSignature", "}", "." ]
train
https://github.com/linkedin/dexmaker/blob/c58ffebcbb2564c7d1fa6fb58b48f351c330296d/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/StaticMockMethodAdvice.java#L198-L214
spring-projects/spring-android
spring-android-rest-template/src/main/java/org/springframework/http/MediaType.java
MediaType.removeQualityValue
public MediaType removeQualityValue() { """ Return a replica of this instance with its quality value removed. @return the same instance if the media type doesn't contain a quality value, or a new one otherwise """ if (!this.parameters.containsKey(PARAM_QUALITY_FACTOR)) { return this; } Map<String, St...
java
public MediaType removeQualityValue() { if (!this.parameters.containsKey(PARAM_QUALITY_FACTOR)) { return this; } Map<String, String> params = new LinkedHashMap<String, String>(this.parameters); params.remove(PARAM_QUALITY_FACTOR); return new MediaType(this, params); }
[ "public", "MediaType", "removeQualityValue", "(", ")", "{", "if", "(", "!", "this", ".", "parameters", ".", "containsKey", "(", "PARAM_QUALITY_FACTOR", ")", ")", "{", "return", "this", ";", "}", "Map", "<", "String", ",", "String", ">", "params", "=", "n...
Return a replica of this instance with its quality value removed. @return the same instance if the media type doesn't contain a quality value, or a new one otherwise
[ "Return", "a", "replica", "of", "this", "instance", "with", "its", "quality", "value", "removed", "." ]
train
https://github.com/spring-projects/spring-android/blob/941296e152d49a40e0745a3e81628a974f72b7e4/spring-android-rest-template/src/main/java/org/springframework/http/MediaType.java#L595-L602
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/DTMDefaultBase.java
DTMDefaultBase.isNodeAfter
public boolean isNodeAfter(int nodeHandle1, int nodeHandle2) { """ Figure out whether nodeHandle2 should be considered as being later in the document than nodeHandle1, in Document Order as defined by the XPath model. This may not agree with the ordering defined by other XML applications. <p> There are some ca...
java
public boolean isNodeAfter(int nodeHandle1, int nodeHandle2) { // These return NULL if the node doesn't belong to this document. int index1 = makeNodeIdentity(nodeHandle1); int index2 = makeNodeIdentity(nodeHandle2); return index1!=NULL && index2!=NULL && index1 <= index2; }
[ "public", "boolean", "isNodeAfter", "(", "int", "nodeHandle1", ",", "int", "nodeHandle2", ")", "{", "// These return NULL if the node doesn't belong to this document.", "int", "index1", "=", "makeNodeIdentity", "(", "nodeHandle1", ")", ";", "int", "index2", "=", "makeNo...
Figure out whether nodeHandle2 should be considered as being later in the document than nodeHandle1, in Document Order as defined by the XPath model. This may not agree with the ordering defined by other XML applications. <p> There are some cases where ordering isn't defined, and neither are the results of this functio...
[ "Figure", "out", "whether", "nodeHandle2", "should", "be", "considered", "as", "being", "later", "in", "the", "document", "than", "nodeHandle1", "in", "Document", "Order", "as", "defined", "by", "the", "XPath", "model", ".", "This", "may", "not", "agree", "w...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/DTMDefaultBase.java#L2113-L2120
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java
ExtraLanguageFeatureNameConverter.convertDeclarationName
public String convertDeclarationName(String simpleName, SarlAction feature) { """ Convert the given name for the given feature to its equivalent in the extra language. <p>Usually, this function is called to convert the function's name when it is declared. @param simpleName the feature's simple name to conver...
java
public String convertDeclarationName(String simpleName, SarlAction feature) { assert simpleName != null; assert feature != null; final JvmOperation operation = this.associations.getDirectlyInferredOperation(feature); if (operation != null) { if (this.conversions == null) { this.conversions = initMapping(...
[ "public", "String", "convertDeclarationName", "(", "String", "simpleName", ",", "SarlAction", "feature", ")", "{", "assert", "simpleName", "!=", "null", ";", "assert", "feature", "!=", "null", ";", "final", "JvmOperation", "operation", "=", "this", ".", "associa...
Convert the given name for the given feature to its equivalent in the extra language. <p>Usually, this function is called to convert the function's name when it is declared. @param simpleName the feature's simple name to convert. @param feature the JVM feature that corresponds to the name. @return the conversion resu...
[ "Convert", "the", "given", "name", "for", "the", "given", "feature", "to", "its", "equivalent", "in", "the", "extra", "language", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java#L274-L296
wonderpush/wonderpush-android-sdk
sdk/src/main/java/com/wonderpush/sdk/WonderPush.java
WonderPush.safeDeferWithConsent
static void safeDeferWithConsent(final Runnable runnable, @Nullable final String id) { """ Defers code to execute once consent is provided *and* SDK is initialized, using {@link #safeDefer(Runnable, long)}. If consent is available, the code is still executed using {@link #safeDefer(Runnable, long)}. @param runna...
java
static void safeDeferWithConsent(final Runnable runnable, @Nullable final String id) { safeDefer(new Runnable() { @Override public void run() { if (hasUserConsent()) { runnable.run(); } else { synchronized (sUserCons...
[ "static", "void", "safeDeferWithConsent", "(", "final", "Runnable", "runnable", ",", "@", "Nullable", "final", "String", "id", ")", "{", "safeDefer", "(", "new", "Runnable", "(", ")", "{", "@", "Override", "public", "void", "run", "(", ")", "{", "if", "(...
Defers code to execute once consent is provided *and* SDK is initialized, using {@link #safeDefer(Runnable, long)}. If consent is available, the code is still executed using {@link #safeDefer(Runnable, long)}. @param runnable The code to execute @param id - Permits to replace an old runnable still waiting with the same...
[ "Defers", "code", "to", "execute", "once", "consent", "is", "provided", "*", "and", "*", "SDK", "is", "initialized", "using", "{" ]
train
https://github.com/wonderpush/wonderpush-android-sdk/blob/ba0a1568f705cdd6206639bfab1e5cf529084b59/sdk/src/main/java/com/wonderpush/sdk/WonderPush.java#L1502-L1515
LGoodDatePicker/LGoodDatePicker
Project/src/main/java/com/github/lgooddatepicker/components/DatePicker.java
DatePicker.openPopup
public void openPopup() { """ openPopup, This opens the calendar popup. If the date picker contains a lastValidDate, the calendar will be opened to the month and year of the lastValidDate, with the lastValidDate marked as selected. If the lastValidDate is null, then the calendar will be opened with today's ...
java
public void openPopup() { if (isPopupOpen()) { closePopup(); return; } if (settings == null) { return; } // If the component is disabled, do nothing. if (!isEnabled()) { return; } // If this function was cal...
[ "public", "void", "openPopup", "(", ")", "{", "if", "(", "isPopupOpen", "(", ")", ")", "{", "closePopup", "(", ")", ";", "return", ";", "}", "if", "(", "settings", "==", "null", ")", "{", "return", ";", "}", "// If the component is disabled, do nothing.", ...
openPopup, This opens the calendar popup. If the date picker contains a lastValidDate, the calendar will be opened to the month and year of the lastValidDate, with the lastValidDate marked as selected. If the lastValidDate is null, then the calendar will be opened with today's month and year displayed, and no date wi...
[ "openPopup", "This", "opens", "the", "calendar", "popup", "." ]
train
https://github.com/LGoodDatePicker/LGoodDatePicker/blob/c7df05a5fe382e1e08a6237e9391d8dc5fd48692/Project/src/main/java/com/github/lgooddatepicker/components/DatePicker.java#L468-L518
j256/ormlite-android
src/main/java/com/j256/ormlite/android/apptools/OrmLiteConfigUtil.java
OrmLiteConfigUtil.writeConfigFile
public static void writeConfigFile(File configFile, File searchDir) throws SQLException, IOException { """ Finds the annotated classes in the specified search directory or below and writes a configuration file. """ writeConfigFile(configFile, searchDir, false); }
java
public static void writeConfigFile(File configFile, File searchDir) throws SQLException, IOException { writeConfigFile(configFile, searchDir, false); }
[ "public", "static", "void", "writeConfigFile", "(", "File", "configFile", ",", "File", "searchDir", ")", "throws", "SQLException", ",", "IOException", "{", "writeConfigFile", "(", "configFile", ",", "searchDir", ",", "false", ")", ";", "}" ]
Finds the annotated classes in the specified search directory or below and writes a configuration file.
[ "Finds", "the", "annotated", "classes", "in", "the", "specified", "search", "directory", "or", "below", "and", "writes", "a", "configuration", "file", "." ]
train
https://github.com/j256/ormlite-android/blob/e82327a868ae242f994730fe2389f79684d7bcab/src/main/java/com/j256/ormlite/android/apptools/OrmLiteConfigUtil.java#L166-L168
elki-project/elki
elki-index-mtree/src/main/java/de/lmu/ifi/dbs/elki/index/tree/metrical/mtreevariants/mktrees/mkapp/MkAppTreeNode.java
MkAppTreeNode.adjustEntry
@Override public boolean adjustEntry(MkAppEntry entry, DBID routingObjectID, double parentDistance, AbstractMTree<O, MkAppTreeNode<O>, MkAppEntry, ?> mTree) { """ Adjusts the parameters of the entry representing this node. @param entry the entry representing this node @param routingObjectID the id of the (ne...
java
@Override public boolean adjustEntry(MkAppEntry entry, DBID routingObjectID, double parentDistance, AbstractMTree<O, MkAppTreeNode<O>, MkAppEntry, ?> mTree) { super.adjustEntry(entry, routingObjectID, parentDistance, mTree); // entry.setKnnDistanceApproximation(knnDistanceApproximation()); return true; //...
[ "@", "Override", "public", "boolean", "adjustEntry", "(", "MkAppEntry", "entry", ",", "DBID", "routingObjectID", ",", "double", "parentDistance", ",", "AbstractMTree", "<", "O", ",", "MkAppTreeNode", "<", "O", ">", ",", "MkAppEntry", ",", "?", ">", "mTree", ...
Adjusts the parameters of the entry representing this node. @param entry the entry representing this node @param routingObjectID the id of the (new) routing object of this node @param parentDistance the distance from the routing object of this node to the routing object of the parent node @param mTree the M-Tree objec...
[ "Adjusts", "the", "parameters", "of", "the", "entry", "representing", "this", "node", "." ]
train
https://github.com/elki-project/elki/blob/b54673327e76198ecd4c8a2a901021f1a9174498/elki-index-mtree/src/main/java/de/lmu/ifi/dbs/elki/index/tree/metrical/mtreevariants/mktrees/mkapp/MkAppTreeNode.java#L107-L112
undertow-io/undertow
core/src/main/java/io/undertow/Handlers.java
Handlers.acl
public static final AccessControlListHandler acl(final HttpHandler next, boolean defaultAllow, ExchangeAttribute attribute) { """ Returns a new handler that can allow or deny access to a resource based an at attribute of the exchange @param next The next handler in the chain @param defaultAllow Determi...
java
public static final AccessControlListHandler acl(final HttpHandler next, boolean defaultAllow, ExchangeAttribute attribute) { return new AccessControlListHandler(next, attribute).setDefaultAllow(defaultAllow); }
[ "public", "static", "final", "AccessControlListHandler", "acl", "(", "final", "HttpHandler", "next", ",", "boolean", "defaultAllow", ",", "ExchangeAttribute", "attribute", ")", "{", "return", "new", "AccessControlListHandler", "(", "next", ",", "attribute", ")", "."...
Returns a new handler that can allow or deny access to a resource based an at attribute of the exchange @param next The next handler in the chain @param defaultAllow Determine if a non-matching user agent will be allowed by default @return A new user agent access control handler
[ "Returns", "a", "new", "handler", "that", "can", "allow", "or", "deny", "access", "to", "a", "resource", "based", "an", "at", "attribute", "of", "the", "exchange" ]
train
https://github.com/undertow-io/undertow/blob/87de0b856a7a4ba8faf5b659537b9af07b763263/core/src/main/java/io/undertow/Handlers.java#L329-L331
google/error-prone
core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/ThreadSafety.java
ThreadSafety.getMarkerOrAcceptedAnnotation
public AnnotationInfo getMarkerOrAcceptedAnnotation(Symbol sym, VisitorState state) { """ Gets the {@link Symbol}'s annotation info, either from a marker annotation on the symbol, from an accepted annotation on the symbol, or from the list of well-known types. """ String nameStr = sym.flatName().toString(...
java
public AnnotationInfo getMarkerOrAcceptedAnnotation(Symbol sym, VisitorState state) { String nameStr = sym.flatName().toString(); AnnotationInfo known = knownTypes.getKnownSafeClasses().get(nameStr); if (known != null) { return known; } return getAnnotation( sym, ImmutableSet.copyOf(Se...
[ "public", "AnnotationInfo", "getMarkerOrAcceptedAnnotation", "(", "Symbol", "sym", ",", "VisitorState", "state", ")", "{", "String", "nameStr", "=", "sym", ".", "flatName", "(", ")", ".", "toString", "(", ")", ";", "AnnotationInfo", "known", "=", "knownTypes", ...
Gets the {@link Symbol}'s annotation info, either from a marker annotation on the symbol, from an accepted annotation on the symbol, or from the list of well-known types.
[ "Gets", "the", "{" ]
train
https://github.com/google/error-prone/blob/fe2e3cc2cf1958cb7c487bfe89852bb4c225ba9d/core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/ThreadSafety.java#L651-L659
openxc/openxc-android
library/src/main/java/com/openxc/interfaces/UriBasedVehicleInterfaceMixin.java
UriBasedVehicleInterfaceMixin.sameResource
public static boolean sameResource(URI uri, String otherResource) { """ Determine if two URIs refer to the same resource. The function safely attempts to convert the otherResource parameter to a URI object before comparing. @return true if the address and port match the current in-use values. """ ...
java
public static boolean sameResource(URI uri, String otherResource) { try { return createUri(otherResource).equals(uri); } catch(DataSourceException e) { return false; } }
[ "public", "static", "boolean", "sameResource", "(", "URI", "uri", ",", "String", "otherResource", ")", "{", "try", "{", "return", "createUri", "(", "otherResource", ")", ".", "equals", "(", "uri", ")", ";", "}", "catch", "(", "DataSourceException", "e", ")...
Determine if two URIs refer to the same resource. The function safely attempts to convert the otherResource parameter to a URI object before comparing. @return true if the address and port match the current in-use values.
[ "Determine", "if", "two", "URIs", "refer", "to", "the", "same", "resource", "." ]
train
https://github.com/openxc/openxc-android/blob/799adbdcd107a72fe89737bbf19c039dc2881665/library/src/main/java/com/openxc/interfaces/UriBasedVehicleInterfaceMixin.java#L26-L32
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/generator/variant/css/CssSkinGenerator.java
CssSkinGenerator.getVariants
private Map<String, VariantSet> getVariants(String defaultSkin, Set<String> skinNames, String defaultLocaleName, Set<String> localeVariants) { """ Returns the skin variants @param defaultSkin the default skin @param skinNames the skin names @param defaultLocaleName the default locale name @param locale...
java
private Map<String, VariantSet> getVariants(String defaultSkin, Set<String> skinNames, String defaultLocaleName, Set<String> localeVariants) { Map<String, VariantSet> skinVariants = new HashMap<>(); if (!skinNames.isEmpty()) { skinVariants.put(JawrConstant.SKIN_VARIANT_TYPE, new VariantSet(JawrConstant....
[ "private", "Map", "<", "String", ",", "VariantSet", ">", "getVariants", "(", "String", "defaultSkin", ",", "Set", "<", "String", ">", "skinNames", ",", "String", "defaultLocaleName", ",", "Set", "<", "String", ">", "localeVariants", ")", "{", "Map", "<", "...
Returns the skin variants @param defaultSkin the default skin @param skinNames the skin names @param defaultLocaleName the default locale name @param localeVariants the locale variants @return the skin variants
[ "Returns", "the", "skin", "variants" ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/generator/variant/css/CssSkinGenerator.java#L546-L561
alkacon/opencms-core
src/org/opencms/db/generic/CmsUserDriver.java
CmsUserDriver.internalUpdateUserInfo
protected void internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, String key, Object value) throws CmsDataAccessException { """ Updates additional user info.<p> @param dbc the current dbc @param userId the user id to add the user info for @param key the name of the additional user info @param value t...
java
protected void internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, String key, Object value) throws CmsDataAccessException { PreparedStatement stmt = null; Connection conn = null; try { conn = getSqlManager().getConnection(dbc); stmt = m_sqlManager.getPreparedS...
[ "protected", "void", "internalUpdateUserInfo", "(", "CmsDbContext", "dbc", ",", "CmsUUID", "userId", ",", "String", "key", ",", "Object", "value", ")", "throws", "CmsDataAccessException", "{", "PreparedStatement", "stmt", "=", "null", ";", "Connection", "conn", "=...
Updates additional user info.<p> @param dbc the current dbc @param userId the user id to add the user info for @param key the name of the additional user info @param value the value of the additional user info @throws CmsDataAccessException if something goes wrong
[ "Updates", "additional", "user", "info", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/generic/CmsUserDriver.java#L2808-L2832
Alluxio/alluxio
core/server/worker/src/main/java/alluxio/worker/block/BlockMetadataManager.java
BlockMetadataManager.cleanupSessionTempBlocks
@Deprecated public void cleanupSessionTempBlocks(long sessionId, List<Long> tempBlockIds) { """ Cleans up the metadata of the given temp block ids. @param sessionId the id of the client associated with the temp blocks @param tempBlockIds the list of temporary block ids to be cleaned up, non temporary block i...
java
@Deprecated public void cleanupSessionTempBlocks(long sessionId, List<Long> tempBlockIds) { for (StorageTier tier : mTiers) { for (StorageDir dir : tier.getStorageDirs()) { dir.cleanupSessionTempBlocks(sessionId, tempBlockIds); } } }
[ "@", "Deprecated", "public", "void", "cleanupSessionTempBlocks", "(", "long", "sessionId", ",", "List", "<", "Long", ">", "tempBlockIds", ")", "{", "for", "(", "StorageTier", "tier", ":", "mTiers", ")", "{", "for", "(", "StorageDir", "dir", ":", "tier", "....
Cleans up the metadata of the given temp block ids. @param sessionId the id of the client associated with the temp blocks @param tempBlockIds the list of temporary block ids to be cleaned up, non temporary block ids will be ignored. @deprecated As of version 0.8.
[ "Cleans", "up", "the", "metadata", "of", "the", "given", "temp", "block", "ids", "." ]
train
https://github.com/Alluxio/alluxio/blob/af38cf3ab44613355b18217a3a4d961f8fec3a10/core/server/worker/src/main/java/alluxio/worker/block/BlockMetadataManager.java#L139-L146
fcrepo4/fcrepo4
fcrepo-kernel-modeshape/src/main/java/org/fcrepo/kernel/modeshape/utils/FedoraTypesUtils.java
FedoraTypesUtils.touchLdpMembershipResource
public static void touchLdpMembershipResource(final Node node, final Calendar date, final String user) { """ Update the fedora:lastModified date and fedora:lastModifiedBy of the parent's ldp:membershipResource if that node is a direct or indirect container, provided the LDP constraints are valid. @param node T...
java
public static void touchLdpMembershipResource(final Node node, final Calendar date, final String user) { getContainingNode(node).filter(uncheck(parent -> parent.hasProperty(LDP_MEMBER_RESOURCE))).ifPresent(parent -> { try { final Optional<String> hasInsertedContentProperty = ldpInser...
[ "public", "static", "void", "touchLdpMembershipResource", "(", "final", "Node", "node", ",", "final", "Calendar", "date", ",", "final", "String", "user", ")", "{", "getContainingNode", "(", "node", ")", ".", "filter", "(", "uncheck", "(", "parent", "->", "pa...
Update the fedora:lastModified date and fedora:lastModifiedBy of the parent's ldp:membershipResource if that node is a direct or indirect container, provided the LDP constraints are valid. @param node The JCR node @param date the date the modification was supposed to have occurred or null to indicate now @param user t...
[ "Update", "the", "fedora", ":", "lastModified", "date", "and", "fedora", ":", "lastModifiedBy", "of", "the", "parent", "s", "ldp", ":", "membershipResource", "if", "that", "node", "is", "a", "direct", "or", "indirect", "container", "provided", "the", "LDP", ...
train
https://github.com/fcrepo4/fcrepo4/blob/7489ad5bc8fb44e2442c93eceb7d97ac54553ab6/fcrepo-kernel-modeshape/src/main/java/org/fcrepo/kernel/modeshape/utils/FedoraTypesUtils.java#L418-L433
arangodb/spring-data
src/main/java/com/arangodb/springframework/repository/SimpleArangoRepository.java
SimpleArangoRepository.findAll
@Override public Iterable<T> findAll(final Sort sort) { """ Gets all documents in the collection for the class type of this repository, with the given sort applied @param sort the sort object to use for sorting @return an iterable with all the documents in the collection """ return new Iterable<T>() { ...
java
@Override public Iterable<T> findAll(final Sort sort) { return new Iterable<T>() { @Override public Iterator<T> iterator() { return findAllInternal(sort, null, new HashMap<>()); } }; }
[ "@", "Override", "public", "Iterable", "<", "T", ">", "findAll", "(", "final", "Sort", "sort", ")", "{", "return", "new", "Iterable", "<", "T", ">", "(", ")", "{", "@", "Override", "public", "Iterator", "<", "T", ">", "iterator", "(", ")", "{", "re...
Gets all documents in the collection for the class type of this repository, with the given sort applied @param sort the sort object to use for sorting @return an iterable with all the documents in the collection
[ "Gets", "all", "documents", "in", "the", "collection", "for", "the", "class", "type", "of", "this", "repository", "with", "the", "given", "sort", "applied" ]
train
https://github.com/arangodb/spring-data/blob/ff8ae53986b353964b9b90bd8199996d5aabf0c1/src/main/java/com/arangodb/springframework/repository/SimpleArangoRepository.java#L224-L232
awin/rabbiteasy
rabbiteasy-core/src/main/java/com/zanox/rabbiteasy/MessageWriter.java
MessageWriter.writeBodyFromString
public void writeBodyFromString(String bodyAsString, Charset charset) { """ Writes the message body from a string using the given charset as encoding and setting the content type to text/plain. @param bodyAsString Body to write as string @param charset The charset to encode the string """ message...
java
public void writeBodyFromString(String bodyAsString, Charset charset) { message.contentEncoding(charset.name()) .contentType(Message.TEXT_PLAIN); byte[] bodyContent = bodyAsString.getBytes(charset); message.body(bodyContent); }
[ "public", "void", "writeBodyFromString", "(", "String", "bodyAsString", ",", "Charset", "charset", ")", "{", "message", ".", "contentEncoding", "(", "charset", ".", "name", "(", ")", ")", ".", "contentType", "(", "Message", ".", "TEXT_PLAIN", ")", ";", "byte...
Writes the message body from a string using the given charset as encoding and setting the content type to text/plain. @param bodyAsString Body to write as string @param charset The charset to encode the string
[ "Writes", "the", "message", "body", "from", "a", "string", "using", "the", "given", "charset", "as", "encoding", "and", "setting", "the", "content", "type", "to", "text", "/", "plain", "." ]
train
https://github.com/awin/rabbiteasy/blob/c161efda6c0f7ef319aedf09dfe40a4a90165510/rabbiteasy-core/src/main/java/com/zanox/rabbiteasy/MessageWriter.java#L67-L72
aol/cyclops
cyclops-futurestream/src/main/java/cyclops/futurestream/LazyReact.java
LazyReact.fromStreamAsync
public <U> FutureStream<U> fromStreamAsync(final Stream<? extends Supplier<U>> actions) { """ /* Build an FutureStream that reacts Asynchronously to the Suppliers within the specified Stream <pre> {@code Stream<Supplier<Data>> stream = Stream.of(this::load1,this::looad2,this::load3); LazyReact().fromStre...
java
public <U> FutureStream<U> fromStreamAsync(final Stream<? extends Supplier<U>> actions) { return constructFutures(actions.map(next -> CompletableFuture.supplyAsync(next, getExecutor()))); }
[ "public", "<", "U", ">", "FutureStream", "<", "U", ">", "fromStreamAsync", "(", "final", "Stream", "<", "?", "extends", "Supplier", "<", "U", ">", ">", "actions", ")", "{", "return", "constructFutures", "(", "actions", ".", "map", "(", "next", "->", "C...
/* Build an FutureStream that reacts Asynchronously to the Suppliers within the specified Stream <pre> {@code Stream<Supplier<Data>> stream = Stream.of(this::load1,this::looad2,this::load3); LazyReact().fromStreamAsync(stream) .map(this::process) .forEach(this::save) } </pre> @param actions Stream to react to @retur...
[ "/", "*", "Build", "an", "FutureStream", "that", "reacts", "Asynchronously", "to", "the", "Suppliers", "within", "the", "specified", "Stream" ]
train
https://github.com/aol/cyclops/blob/59a9fde30190a4d1faeb9f6d9851d209d82b81dd/cyclops-futurestream/src/main/java/cyclops/futurestream/LazyReact.java#L645-L648
ribot/easy-adapter
library/src/main/java/uk/co/ribot/easyadapter/annotations/FieldAnnotationParser.java
FieldAnnotationParser.setViewFields
private static void setViewFields(final Object object, final ViewFinder viewFinder) { """ Parse {@link ViewId} annotation and try to assign the view with that id to the annotated field. It will throw a {@link ClassCastException} if the field and the view with the given ID have different types. @param object ...
java
private static void setViewFields(final Object object, final ViewFinder viewFinder) { Field[] fields = object.getClass().getDeclaredFields(); for (Field field : fields) { if (field.isAnnotationPresent(ViewId.class)) { field.setAccessible(true); ViewId viewIdA...
[ "private", "static", "void", "setViewFields", "(", "final", "Object", "object", ",", "final", "ViewFinder", "viewFinder", ")", "{", "Field", "[", "]", "fields", "=", "object", ".", "getClass", "(", ")", ".", "getDeclaredFields", "(", ")", ";", "for", "(", ...
Parse {@link ViewId} annotation and try to assign the view with that id to the annotated field. It will throw a {@link ClassCastException} if the field and the view with the given ID have different types. @param object object where the annotation is. @param viewFinder callback that provides a way of finding the vi...
[ "Parse", "{", "@link", "ViewId", "}", "annotation", "and", "try", "to", "assign", "the", "view", "with", "that", "id", "to", "the", "annotated", "field", ".", "It", "will", "throw", "a", "{", "@link", "ClassCastException", "}", "if", "the", "field", "and...
train
https://github.com/ribot/easy-adapter/blob/8cf85023a79c781aa2013e9dc39fd66734fb2019/library/src/main/java/uk/co/ribot/easyadapter/annotations/FieldAnnotationParser.java#L65-L79
bingoohuang/spring-rest-client
src/main/java/com/github/bingoohuang/springrestclient/spring/ClassPathSpringRestClientScanner.java
ClassPathSpringRestClientScanner.registerFilters
public void registerFilters() { """ Configures parent scanner to search for the right interfaces. It can search for all interfaces or just for those that extends a markerInterface or/and those annotated with the annotationClass """ addExcludeFilter(new TypeFilter() { @Override ...
java
public void registerFilters() { addExcludeFilter(new TypeFilter() { @Override public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) { return !metadataReader.getClassMetadata().isInterface(); } }); addI...
[ "public", "void", "registerFilters", "(", ")", "{", "addExcludeFilter", "(", "new", "TypeFilter", "(", ")", "{", "@", "Override", "public", "boolean", "match", "(", "MetadataReader", "metadataReader", ",", "MetadataReaderFactory", "metadataReaderFactory", ")", "{", ...
Configures parent scanner to search for the right interfaces. It can search for all interfaces or just for those that extends a markerInterface or/and those annotated with the annotationClass
[ "Configures", "parent", "scanner", "to", "search", "for", "the", "right", "interfaces", ".", "It", "can", "search", "for", "all", "interfaces", "or", "just", "for", "those", "that", "extends", "a", "markerInterface", "or", "/", "and", "those", "annotated", "...
train
https://github.com/bingoohuang/spring-rest-client/blob/50766ec010063102f56650350d893c924658fa6b/src/main/java/com/github/bingoohuang/springrestclient/spring/ClassPathSpringRestClientScanner.java#L32-L40
hazelcast/hazelcast
hazelcast/src/main/java/com/hazelcast/config/Config.java
Config.setProperty
public Config setProperty(String name, String value) { """ Sets the value of a named property. @param name property name @param value value of the property @return this config instance @see <a href="http://docs.hazelcast.org/docs/latest/manual/html-single/index.html#system-properties"> Hazelcast System Pro...
java
public Config setProperty(String name, String value) { properties.put(name, value); return this; }
[ "public", "Config", "setProperty", "(", "String", "name", ",", "String", "value", ")", "{", "properties", ".", "put", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
Sets the value of a named property. @param name property name @param value value of the property @return this config instance @see <a href="http://docs.hazelcast.org/docs/latest/manual/html-single/index.html#system-properties"> Hazelcast System Properties</a>
[ "Sets", "the", "value", "of", "a", "named", "property", "." ]
train
https://github.com/hazelcast/hazelcast/blob/8c4bc10515dbbfb41a33e0302c0caedf3cda1baf/hazelcast/src/main/java/com/hazelcast/config/Config.java#L260-L263
Azure/azure-sdk-for-java
streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/FunctionsInner.java
FunctionsInner.retrieveDefaultDefinitionAsync
public Observable<FunctionInner> retrieveDefaultDefinitionAsync(String resourceGroupName, String jobName, String functionName) { """ Retrieves the default definition of a function based on the parameters specified. @param resourceGroupName The name of the resource group that contains the resource. You can obtai...
java
public Observable<FunctionInner> retrieveDefaultDefinitionAsync(String resourceGroupName, String jobName, String functionName) { return retrieveDefaultDefinitionWithServiceResponseAsync(resourceGroupName, jobName, functionName).map(new Func1<ServiceResponse<FunctionInner>, FunctionInner>() { @Overri...
[ "public", "Observable", "<", "FunctionInner", ">", "retrieveDefaultDefinitionAsync", "(", "String", "resourceGroupName", ",", "String", "jobName", ",", "String", "functionName", ")", "{", "return", "retrieveDefaultDefinitionWithServiceResponseAsync", "(", "resourceGroupName",...
Retrieves the default definition of a function based on the parameters specified. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param jobName The name of the streaming job. @param functionName The name o...
[ "Retrieves", "the", "default", "definition", "of", "a", "function", "based", "on", "the", "parameters", "specified", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/FunctionsInner.java#L1327-L1334
jenkinsci/jenkins
core/src/main/java/hudson/Launcher.java
Launcher.decorateByEnv
@Nonnull public final Launcher decorateByEnv(@Nonnull EnvVars _env) { """ Returns a decorated {@link Launcher} that automatically adds the specified environment variables. Those that are specified in {@link ProcStarter#envs(String...)} will take precedence over what's specified here. @since 1.489 "...
java
@Nonnull public final Launcher decorateByEnv(@Nonnull EnvVars _env) { final EnvVars env = new EnvVars(_env); final Launcher outer = this; return new Launcher(outer) { @Override public boolean isUnix() { return outer.isUnix(); } ...
[ "@", "Nonnull", "public", "final", "Launcher", "decorateByEnv", "(", "@", "Nonnull", "EnvVars", "_env", ")", "{", "final", "EnvVars", "env", "=", "new", "EnvVars", "(", "_env", ")", ";", "final", "Launcher", "outer", "=", "this", ";", "return", "new", "L...
Returns a decorated {@link Launcher} that automatically adds the specified environment variables. Those that are specified in {@link ProcStarter#envs(String...)} will take precedence over what's specified here. @since 1.489
[ "Returns", "a", "decorated", "{", "@link", "Launcher", "}", "that", "automatically", "adds", "the", "specified", "environment", "variables", "." ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/Launcher.java#L872-L906
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java
InheritanceHelper.isSubTypeOf
public boolean isSubTypeOf(JvmTypeReference candidate, Class<?> jvmSuperType, Class<? extends XtendTypeDeclaration> sarlSuperType) { """ Replies if the type candidate is a subtype of the given super type. @param candidate the type to test. @param jvmSuperType the expected JVM super-type. @param sarlSuperTy...
java
public boolean isSubTypeOf(JvmTypeReference candidate, Class<?> jvmSuperType, Class<? extends XtendTypeDeclaration> sarlSuperType) { final LightweightTypeReference reference = Utils.toLightweightTypeReference(candidate, this.services); return isSubTypeOf(reference, jvmSuperType, sarlSuperType); }
[ "public", "boolean", "isSubTypeOf", "(", "JvmTypeReference", "candidate", ",", "Class", "<", "?", ">", "jvmSuperType", ",", "Class", "<", "?", "extends", "XtendTypeDeclaration", ">", "sarlSuperType", ")", "{", "final", "LightweightTypeReference", "reference", "=", ...
Replies if the type candidate is a subtype of the given super type. @param candidate the type to test. @param jvmSuperType the expected JVM super-type. @param sarlSuperType the expected SARL super-type. @return <code>true</code> if the candidate is a sub-type of the super-type.
[ "Replies", "if", "the", "type", "candidate", "is", "a", "subtype", "of", "the", "given", "super", "type", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L76-L80
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/res/XPATHMessages.java
XPATHMessages.createXPATHWarning
public static final String createXPATHWarning(String msgKey, Object args[]) //throws Exception { """ Creates a message from the specified key and replacement arguments, localized to the given locale. @param msgKey The key for the message text. @param args The arguments to be used as replacement text in...
java
public static final String createXPATHWarning(String msgKey, Object args[]) //throws Exception { // BEGIN android-changed // don't localize exception messages return createXPATHMsg(XPATHBundle, msgKey, args); // END android-changed }
[ "public", "static", "final", "String", "createXPATHWarning", "(", "String", "msgKey", ",", "Object", "args", "[", "]", ")", "//throws Exception", "{", "// BEGIN android-changed", "// don't localize exception messages", "return", "createXPATHMsg", "(", "XPATHBundle", "...
Creates a message from the specified key and replacement arguments, localized to the given locale. @param msgKey The key for the message text. @param args The arguments to be used as replacement text in the message created. @return The formatted warning string.
[ "Creates", "a", "message", "from", "the", "specified", "key", "and", "replacement", "arguments", "localized", "to", "the", "given", "locale", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/res/XPATHMessages.java#L68-L74
aspectran/aspectran
core/src/main/java/com/aspectran/core/util/PropertiesLoaderUtils.java
PropertiesLoaderUtils.loadProperties
public static Properties loadProperties(String resourceName, ClassLoader classLoader) throws IOException { """ Load all properties from the specified class path resource (in ISO-8859-1 encoding), using the given class loader. <p>Merges properties if more than one resource of the same name found in the class pat...
java
public static Properties loadProperties(String resourceName, ClassLoader classLoader) throws IOException { Properties props = cache.get(resourceName); if (props == null) { props = new Properties(); fillProperties(props, resourceName, classLoader); Properties existing ...
[ "public", "static", "Properties", "loadProperties", "(", "String", "resourceName", ",", "ClassLoader", "classLoader", ")", "throws", "IOException", "{", "Properties", "props", "=", "cache", ".", "get", "(", "resourceName", ")", ";", "if", "(", "props", "==", "...
Load all properties from the specified class path resource (in ISO-8859-1 encoding), using the given class loader. <p>Merges properties if more than one resource of the same name found in the class path.</p> @param resourceName the name of the class path resource @param classLoader the class loader @return the Propert...
[ "Load", "all", "properties", "from", "the", "specified", "class", "path", "resource", "(", "in", "ISO", "-", "8859", "-", "1", "encoding", ")", "using", "the", "given", "class", "loader", ".", "<p", ">", "Merges", "properties", "if", "more", "than", "one...
train
https://github.com/aspectran/aspectran/blob/2d758a2a28b71ee85b42823c12dc44674d7f2c70/core/src/main/java/com/aspectran/core/util/PropertiesLoaderUtils.java#L66-L77
alipay/sofa-rpc
extension-impl/extension-common/src/main/java/com/alipay/sofa/rpc/context/BaggageResolver.java
BaggageResolver.pickupFromRequest
public static void pickupFromRequest(RpcInvokeContext context, SofaRequest request, boolean init) { """ 从请求里获取透传数据 @param context RpcInvokeContext @param request 请求 @param init 传入上下文为空时,是否初始化 """ if (context == null && !init) { return; } // 解析请求 Map<String, ...
java
public static void pickupFromRequest(RpcInvokeContext context, SofaRequest request, boolean init) { if (context == null && !init) { return; } // 解析请求 Map<String, String> requestBaggage = (Map<String, String>) request .getRequestProp(RemotingConstants.RPC_REQUEST_...
[ "public", "static", "void", "pickupFromRequest", "(", "RpcInvokeContext", "context", ",", "SofaRequest", "request", ",", "boolean", "init", ")", "{", "if", "(", "context", "==", "null", "&&", "!", "init", ")", "{", "return", ";", "}", "// 解析请求 ", "Map", "<...
从请求里获取透传数据 @param context RpcInvokeContext @param request 请求 @param init 传入上下文为空时,是否初始化
[ "从请求里获取透传数据" ]
train
https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/extension-common/src/main/java/com/alipay/sofa/rpc/context/BaggageResolver.java#L62-L75
exoplatform/jcr
exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/acl/ACLProperties.java
ACLProperties.getOwner
public static HierarchicalProperty getOwner(NodeImpl node) throws RepositoryException { """ Transform owner got from node's {@link AccessControlList} to tree like {@link HierarchicalProperty} instance to use in PROPFIND response body @param node @return {@link HierarchicalProperty} representation of node owner ...
java
public static HierarchicalProperty getOwner(NodeImpl node) throws RepositoryException { HierarchicalProperty ownerProperty = new HierarchicalProperty(PropertyConstants.OWNER); HierarchicalProperty href = new HierarchicalProperty(new QName("DAV:", "href")); href.setValue(node.getACL().getOwner()); ...
[ "public", "static", "HierarchicalProperty", "getOwner", "(", "NodeImpl", "node", ")", "throws", "RepositoryException", "{", "HierarchicalProperty", "ownerProperty", "=", "new", "HierarchicalProperty", "(", "PropertyConstants", ".", "OWNER", ")", ";", "HierarchicalProperty...
Transform owner got from node's {@link AccessControlList} to tree like {@link HierarchicalProperty} instance to use in PROPFIND response body @param node @return {@link HierarchicalProperty} representation of node owner @throws RepositoryException
[ "Transform", "owner", "got", "from", "node", "s", "{" ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/acl/ACLProperties.java#L176-L186
tomgibara/bits
src/main/java/com/tomgibara/bits/Bits.java
Bits.resizedCopyOf
public static BitStore resizedCopyOf(BitStore store, int newSize, boolean anchorLeft) { """ Creates a mutable, resized copy of a {@link BitStore}. The new size may be equal, larger or smaller than original size. When the the new size is greater than the original size, the new bits are identically zero. The meth...
java
public static BitStore resizedCopyOf(BitStore store, int newSize, boolean anchorLeft) { if (newSize < 0) throw new IllegalArgumentException(); int size = store.size(); if (size == newSize) return store.mutableCopy(); int from; int to; if (anchorLeft) { from = size - newSize; to = size; } else { f...
[ "public", "static", "BitStore", "resizedCopyOf", "(", "BitStore", "store", ",", "int", "newSize", ",", "boolean", "anchorLeft", ")", "{", "if", "(", "newSize", "<", "0", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "int", "size", "=", "s...
Creates a mutable, resized copy of a {@link BitStore}. The new size may be equal, larger or smaller than original size. When the the new size is greater than the original size, the new bits are identically zero. The method makes no guarantees about the BitStore implementation that results, in particular, there is certa...
[ "Creates", "a", "mutable", "resized", "copy", "of", "a", "{", "@link", "BitStore", "}", ".", "The", "new", "size", "may", "be", "equal", "larger", "or", "smaller", "than", "original", "size", ".", "When", "the", "the", "new", "size", "is", "greater", "...
train
https://github.com/tomgibara/bits/blob/56c32c0a30efd3d7c4e7c6600a0ca39e51eecc97/src/main/java/com/tomgibara/bits/Bits.java#L1023-L1040
gallandarakhneorg/afc
advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/ifx/Circle2ifx.java
Circle2ifx.radiusProperty
@Pure public IntegerProperty radiusProperty() { """ Replies the property that is the radius of the circle. @return the radius property. """ if (this.radius == null) { this.radius = new SimpleIntegerProperty(this, MathFXAttributeNames.RADIUS) { @Override protected void invalidated() { if (...
java
@Pure public IntegerProperty radiusProperty() { if (this.radius == null) { this.radius = new SimpleIntegerProperty(this, MathFXAttributeNames.RADIUS) { @Override protected void invalidated() { if (get() < 0) { set(0); } } }; } return this.radius; }
[ "@", "Pure", "public", "IntegerProperty", "radiusProperty", "(", ")", "{", "if", "(", "this", ".", "radius", "==", "null", ")", "{", "this", ".", "radius", "=", "new", "SimpleIntegerProperty", "(", "this", ",", "MathFXAttributeNames", ".", "RADIUS", ")", "...
Replies the property that is the radius of the circle. @return the radius property.
[ "Replies", "the", "property", "that", "is", "the", "radius", "of", "the", "circle", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/ifx/Circle2ifx.java#L199-L212
geomajas/geomajas-project-client-gwt
common-gwt-smartgwt/src/main/java/org/geomajas/gwt/client/util/HtmlBuilder.java
HtmlBuilder.openTagStyle
public static String openTagStyle(String tag, String style, String... content) { """ Build a String containing a HTML opening tag with given CSS style attribute(s) and concatenates the given content. Content should contain no HTML, because it is prepared with {@link #htmlEncode(String)}. @param tag String name...
java
public static String openTagStyle(String tag, String style, String... content) { return openTag(tag, null, style, content); }
[ "public", "static", "String", "openTagStyle", "(", "String", "tag", ",", "String", "style", ",", "String", "...", "content", ")", "{", "return", "openTag", "(", "tag", ",", "null", ",", "style", ",", "content", ")", ";", "}" ]
Build a String containing a HTML opening tag with given CSS style attribute(s) and concatenates the given content. Content should contain no HTML, because it is prepared with {@link #htmlEncode(String)}. @param tag String name of HTML tag @param style style for tag (plain CSS) @param content content string @return HTM...
[ "Build", "a", "String", "containing", "a", "HTML", "opening", "tag", "with", "given", "CSS", "style", "attribute", "(", "s", ")", "and", "concatenates", "the", "given", "content", ".", "Content", "should", "contain", "no", "HTML", "because", "it", "is", "p...
train
https://github.com/geomajas/geomajas-project-client-gwt/blob/1c1adc48deb192ed825265eebcc74d70bbf45670/common-gwt-smartgwt/src/main/java/org/geomajas/gwt/client/util/HtmlBuilder.java#L363-L365
kiegroup/drools
drools-model/drools-constraint-parser/src/main/javacc-support/org/drools/constraint/parser/GeneratedDrlConstraintParserTokenManagerBase.java
GeneratedDrlConstraintParserTokenManagerBase.createCommentFromToken
static Comment createCommentFromToken(Token token) { """ Since comments are completely captured in a single token, including their delimiters, deconstruct them here so we can turn them into nodes later on. """ String commentText = token.image; if (token.kind == JAVADOC_COMMENT) { r...
java
static Comment createCommentFromToken(Token token) { String commentText = token.image; if (token.kind == JAVADOC_COMMENT) { return new JavadocComment(tokenRange(token), commentText.substring(3, commentText.length() - 2)); } else if (token.kind == MULTI_LINE_COMMENT) { ret...
[ "static", "Comment", "createCommentFromToken", "(", "Token", "token", ")", "{", "String", "commentText", "=", "token", ".", "image", ";", "if", "(", "token", ".", "kind", "==", "JAVADOC_COMMENT", ")", "{", "return", "new", "JavadocComment", "(", "tokenRange", ...
Since comments are completely captured in a single token, including their delimiters, deconstruct them here so we can turn them into nodes later on.
[ "Since", "comments", "are", "completely", "captured", "in", "a", "single", "token", "including", "their", "delimiters", "deconstruct", "them", "here", "so", "we", "can", "turn", "them", "into", "nodes", "later", "on", "." ]
train
https://github.com/kiegroup/drools/blob/22b0275d6dbe93070b8090948502cf46eda543c4/drools-model/drools-constraint-parser/src/main/javacc-support/org/drools/constraint/parser/GeneratedDrlConstraintParserTokenManagerBase.java#L58-L76
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java
AbstractProviderResolver.shutdown
private void shutdown(String applicationName, ClassLoader classLoader) { """ Close down a specific config used by a specified application (that is not also still in use by other applications) """ synchronized (configCache) { ConfigWrapper configWrapper = configCache.get(classLoader); ...
java
private void shutdown(String applicationName, ClassLoader classLoader) { synchronized (configCache) { ConfigWrapper configWrapper = configCache.get(classLoader); boolean close = configWrapper.removeApplication(applicationName); if (close) { close(classLoader);...
[ "private", "void", "shutdown", "(", "String", "applicationName", ",", "ClassLoader", "classLoader", ")", "{", "synchronized", "(", "configCache", ")", "{", "ConfigWrapper", "configWrapper", "=", "configCache", ".", "get", "(", "classLoader", ")", ";", "boolean", ...
Close down a specific config used by a specified application (that is not also still in use by other applications)
[ "Close", "down", "a", "specific", "config", "used", "by", "a", "specified", "application", "(", "that", "is", "not", "also", "still", "in", "use", "by", "other", "applications", ")" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L174-L182
cdk/cdk
base/standard/src/main/java/org/openscience/cdk/graph/ConnectivityChecker.java
ConnectivityChecker.partitionIntoMolecules
public static IAtomContainerSet partitionIntoMolecules(IAtomContainer container) { """ Partitions the atoms in an AtomContainer into covalently connected components. @param container The AtomContainer to be partitioned into connected components, i.e. molecules @return A MoleculeSet. @cdk....
java
public static IAtomContainerSet partitionIntoMolecules(IAtomContainer container) { ConnectedComponents cc = new ConnectedComponents(GraphUtil.toAdjList(container)); return partitionIntoMolecules(container, cc.components()); }
[ "public", "static", "IAtomContainerSet", "partitionIntoMolecules", "(", "IAtomContainer", "container", ")", "{", "ConnectedComponents", "cc", "=", "new", "ConnectedComponents", "(", "GraphUtil", ".", "toAdjList", "(", "container", ")", ")", ";", "return", "partitionIn...
Partitions the atoms in an AtomContainer into covalently connected components. @param container The AtomContainer to be partitioned into connected components, i.e. molecules @return A MoleculeSet. @cdk.dictref blue-obelisk:graphPartitioning
[ "Partitions", "the", "atoms", "in", "an", "AtomContainer", "into", "covalently", "connected", "components", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/base/standard/src/main/java/org/openscience/cdk/graph/ConnectivityChecker.java#L83-L86
alkacon/opencms-core
src/org/opencms/util/CmsRequestUtil.java
CmsRequestUtil.getCookieValue
public static String getCookieValue(CmsJspActionElement jsp, String name) { """ Returns the value of the cookie with the given name.<p/> @param jsp the CmsJspActionElement to use @param name the name of the cookie @return the value of the cookie with the given name or null, if no cookie exists with the name...
java
public static String getCookieValue(CmsJspActionElement jsp, String name) { Cookie[] cookies = jsp.getRequest().getCookies(); return getCookieValue(cookies, name); }
[ "public", "static", "String", "getCookieValue", "(", "CmsJspActionElement", "jsp", ",", "String", "name", ")", "{", "Cookie", "[", "]", "cookies", "=", "jsp", ".", "getRequest", "(", ")", ".", "getCookies", "(", ")", ";", "return", "getCookieValue", "(", "...
Returns the value of the cookie with the given name.<p/> @param jsp the CmsJspActionElement to use @param name the name of the cookie @return the value of the cookie with the given name or null, if no cookie exists with the name
[ "Returns", "the", "value", "of", "the", "cookie", "with", "the", "given", "name", ".", "<p", "/", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/util/CmsRequestUtil.java#L546-L550
dickschoeller/gedbrowser
gedbrowser-datamodel/src/main/java/org/schoellerfamily/gedbrowser/datamodel/util/GetStringComparator.java
GetStringComparator.getChunk
private String getChunk(final String string, final int slength, final int marker) { """ Get a chunk of the string that is all digits or all not digits. Length of string is passed in for improved efficiency (calculate once). @param string the string being chunked @param slength the length of the stri...
java
private String getChunk(final String string, final int slength, final int marker) { if (isDigit(string.charAt(marker))) { return getNumericChunk(string, slength, marker); } else { return getTextChunk(string, slength, marker); } }
[ "private", "String", "getChunk", "(", "final", "String", "string", ",", "final", "int", "slength", ",", "final", "int", "marker", ")", "{", "if", "(", "isDigit", "(", "string", ".", "charAt", "(", "marker", ")", ")", ")", "{", "return", "getNumericChunk"...
Get a chunk of the string that is all digits or all not digits. Length of string is passed in for improved efficiency (calculate once). @param string the string being chunked @param slength the length of the string @param marker the starting point for processing @return the chunk
[ "Get", "a", "chunk", "of", "the", "string", "that", "is", "all", "digits", "or", "all", "not", "digits", ".", "Length", "of", "string", "is", "passed", "in", "for", "improved", "efficiency", "(", "calculate", "once", ")", "." ]
train
https://github.com/dickschoeller/gedbrowser/blob/e3e10b1ff3a34ebde9b7edcbfafcd5fe6fb3b3e1/gedbrowser-datamodel/src/main/java/org/schoellerfamily/gedbrowser/datamodel/util/GetStringComparator.java#L136-L143
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java
NotEqualsRule.getRule
public static Rule getRule(final String field, final String value) { """ Get new instance. @param field field @param value value @return new instance. """ if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return ne...
java
public static Rule getRule(final String field, final String value) { if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return new NotEqualsRule(field, value); } }
[ "public", "static", "Rule", "getRule", "(", "final", "String", "field", ",", "final", "String", "value", ")", "{", "if", "(", "field", ".", "equalsIgnoreCase", "(", "LoggingEventFieldResolver", ".", "LEVEL_FIELD", ")", ")", "{", "return", "NotLevelEqualsRule", ...
Get new instance. @param field field @param value value @return new instance.
[ "Get", "new", "instance", "." ]
train
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java#L75-L81
liyiorg/weixin-popular
src/main/java/weixin/popular/api/ScanAPI.java
ScanAPI.productGet
public static ProductGetResult productGet(String accessToken, ProductGet productGet) { """ 查询商品信息 @param accessToken accessToken @param productGet productGet @return ProductGetResult """ return productGet(accessToken, JsonUtil.toJSONString(productGet)); }
java
public static ProductGetResult productGet(String accessToken, ProductGet productGet) { return productGet(accessToken, JsonUtil.toJSONString(productGet)); }
[ "public", "static", "ProductGetResult", "productGet", "(", "String", "accessToken", ",", "ProductGet", "productGet", ")", "{", "return", "productGet", "(", "accessToken", ",", "JsonUtil", ".", "toJSONString", "(", "productGet", ")", ")", ";", "}" ]
查询商品信息 @param accessToken accessToken @param productGet productGet @return ProductGetResult
[ "查询商品信息" ]
train
https://github.com/liyiorg/weixin-popular/blob/c64255292d41463bdb671938feaabf42a335d82c/src/main/java/weixin/popular/api/ScanAPI.java#L162-L164
jcuda/jcuda
JCudaJava/src/main/java/jcuda/runtime/JCuda.java
JCuda.cudaMemcpyToArray
public static int cudaMemcpyToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind) { """ Copies data between host and device. <pre> cudaError_t cudaMemcpyToArray ( cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind ...
java
public static int cudaMemcpyToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind) { return checkResult(cudaMemcpyToArrayNative(dst, wOffset, hOffset, src, count, cudaMemcpyKind_kind)); }
[ "public", "static", "int", "cudaMemcpyToArray", "(", "cudaArray", "dst", ",", "long", "wOffset", ",", "long", "hOffset", ",", "Pointer", "src", ",", "long", "count", ",", "int", "cudaMemcpyKind_kind", ")", "{", "return", "checkResult", "(", "cudaMemcpyToArrayNat...
Copies data between host and device. <pre> cudaError_t cudaMemcpyToArray ( cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind ) </pre> <div> <p>Copies data between host and device. Copies <tt>count</tt> bytes from the memory area pointed to by <tt>src</tt> to the CUDA a...
[ "Copies", "data", "between", "host", "and", "device", "." ]
train
https://github.com/jcuda/jcuda/blob/468528b5b9b37dfceb6ed83fcfd889e9b359f984/JCudaJava/src/main/java/jcuda/runtime/JCuda.java#L4747-L4750
alkacon/opencms-core
src/org/opencms/db/CmsPublishList.java
CmsPublishList.containsSubResources
protected boolean containsSubResources(CmsObject cms, CmsResource folder) throws CmsException { """ Checks if the publish list contains all sub-resources of a given folder.<p> @param cms the current CMS context @param folder the folder for which the check should be performed @return true if the publish list c...
java
protected boolean containsSubResources(CmsObject cms, CmsResource folder) throws CmsException { String folderPath = cms.getSitePath(folder); List<CmsResource> subResources = cms.readResources(folderPath, CmsResourceFilter.ALL, true); for (CmsResource resource : subResources) { if (!...
[ "protected", "boolean", "containsSubResources", "(", "CmsObject", "cms", ",", "CmsResource", "folder", ")", "throws", "CmsException", "{", "String", "folderPath", "=", "cms", ".", "getSitePath", "(", "folder", ")", ";", "List", "<", "CmsResource", ">", "subResou...
Checks if the publish list contains all sub-resources of a given folder.<p> @param cms the current CMS context @param folder the folder for which the check should be performed @return true if the publish list contains all sub-resources of a given folder @throws CmsException if something goes wrong
[ "Checks", "if", "the", "publish", "list", "contains", "all", "sub", "-", "resources", "of", "a", "given", "folder", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsPublishList.java#L624-L634
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/SharesInner.java
SharesInner.listByDataBoxEdgeDeviceAsync
public Observable<Page<ShareInner>> listByDataBoxEdgeDeviceAsync(final String deviceName, final String resourceGroupName) { """ Lists all the shares in a data box edge/gateway device. @param deviceName The device name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown i...
java
public Observable<Page<ShareInner>> listByDataBoxEdgeDeviceAsync(final String deviceName, final String resourceGroupName) { return listByDataBoxEdgeDeviceWithServiceResponseAsync(deviceName, resourceGroupName) .map(new Func1<ServiceResponse<Page<ShareInner>>, Page<ShareInner>>() { @O...
[ "public", "Observable", "<", "Page", "<", "ShareInner", ">", ">", "listByDataBoxEdgeDeviceAsync", "(", "final", "String", "deviceName", ",", "final", "String", "resourceGroupName", ")", "{", "return", "listByDataBoxEdgeDeviceWithServiceResponseAsync", "(", "deviceName", ...
Lists all the shares in a data box edge/gateway device. @param deviceName The device name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;ShareInner&gt; object
[ "Lists", "all", "the", "shares", "in", "a", "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/SharesInner.java#L152-L160
opsmatters/opsmatters-core
src/main/java/com/opsmatters/core/util/FormatUtilities.java
FormatUtilities.getFormattedBytes
static public String getFormattedBytes(long bytes, String units, String format) { """ Returns the given bytes number formatted as KBytes, MBytes or GBytes as appropriate. @param bytes The bytes to be converted @param units The units to be displayed with the converted bytes @param format The format to use to dis...
java
static public String getFormattedBytes(long bytes, String units, String format) { double num = bytes; String[] prefix = {"", "K", "M", "G", "T"}; int count = 0; while(num >= 1024.0) { num = num/1024.0; ++count; } DecimalFormat f = new...
[ "static", "public", "String", "getFormattedBytes", "(", "long", "bytes", ",", "String", "units", ",", "String", "format", ")", "{", "double", "num", "=", "bytes", ";", "String", "[", "]", "prefix", "=", "{", "\"\"", ",", "\"K\"", ",", "\"M\"", ",", "\"...
Returns the given bytes number formatted as KBytes, MBytes or GBytes as appropriate. @param bytes The bytes to be converted @param units The units to be displayed with the converted bytes @param format The format to use to display the bytes @return The given bytes number formatted as KBytes, MBytes or GBytes as appropr...
[ "Returns", "the", "given", "bytes", "number", "formatted", "as", "KBytes", "MBytes", "or", "GBytes", "as", "appropriate", "." ]
train
https://github.com/opsmatters/opsmatters-core/blob/c48904f7e8d029fd45357811ec38a735e261e3fd/src/main/java/com/opsmatters/core/util/FormatUtilities.java#L69-L83
recruit-mp/android-HeaderFooterGridView
library/src/main/java/jp/co/recruit_mp/android/headerfootergridview/HeaderFooterGridView.java
HeaderFooterGridView.addFooterView
public void addFooterView(View v, Object data, boolean isSelectable) { """ Add a fixed view to appear at the bottom of the grid. If addFooterView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want. <p> NOTE: Call this before cal...
java
public void addFooterView(View v, Object data, boolean isSelectable) { ListAdapter adapter = getAdapter(); if (adapter != null && !(adapter instanceof HeaderFooterViewGridAdapter)) { throw new IllegalStateException( "Cannot add footer view to grid -- setAdapter has alrea...
[ "public", "void", "addFooterView", "(", "View", "v", ",", "Object", "data", ",", "boolean", "isSelectable", ")", "{", "ListAdapter", "adapter", "=", "getAdapter", "(", ")", ";", "if", "(", "adapter", "!=", "null", "&&", "!", "(", "adapter", "instanceof", ...
Add a fixed view to appear at the bottom of the grid. If addFooterView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want. <p> NOTE: Call this before calling setAdapter. This is so HeaderFooterGridView can wrap the supplied cursor with o...
[ "Add", "a", "fixed", "view", "to", "appear", "at", "the", "bottom", "of", "the", "grid", ".", "If", "addFooterView", "is", "called", "more", "than", "once", "the", "views", "will", "appear", "in", "the", "order", "they", "were", "added", ".", "Views", ...
train
https://github.com/recruit-mp/android-HeaderFooterGridView/blob/a3deb03fffaa5b7e6723994b8b79b4c8e3e54c34/library/src/main/java/jp/co/recruit_mp/android/headerfootergridview/HeaderFooterGridView.java#L181-L203
AgNO3/jcifs-ng
src/main/java/jcifs/http/NtlmSsp.java
NtlmSsp.doAuthentication
public NtlmPasswordAuthentication doAuthentication ( CIFSContext tc, HttpServletRequest req, HttpServletResponse resp, byte[] challenge ) throws IOException { """ Calls the static {@link #authenticate(CIFSContext, HttpServletRequest, HttpServletResponse, byte[])} method to perform NTLM authentication ...
java
public NtlmPasswordAuthentication doAuthentication ( CIFSContext tc, HttpServletRequest req, HttpServletResponse resp, byte[] challenge ) throws IOException { return authenticate(tc, req, resp, challenge); }
[ "public", "NtlmPasswordAuthentication", "doAuthentication", "(", "CIFSContext", "tc", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "resp", ",", "byte", "[", "]", "challenge", ")", "throws", "IOException", "{", "return", "authenticate", "(", "tc", ",...
Calls the static {@link #authenticate(CIFSContext, HttpServletRequest, HttpServletResponse, byte[])} method to perform NTLM authentication for the specified servlet request. @param tc @param req The request being serviced. @param resp The response. @param challenge The domain controller challenge. @return credentials...
[ "Calls", "the", "static", "{", "@link", "#authenticate", "(", "CIFSContext", "HttpServletRequest", "HttpServletResponse", "byte", "[]", ")", "}", "method", "to", "perform", "NTLM", "authentication", "for", "the", "specified", "servlet", "request", "." ]
train
https://github.com/AgNO3/jcifs-ng/blob/0311107a077ea372527ae74839eec8042197332f/src/main/java/jcifs/http/NtlmSsp.java#L74-L77
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-scaleout/spark/dl4j-spark/src/main/java/org/deeplearning4j/spark/util/MLLibUtil.java
MLLibUtil.fromLabeledPoint
@Deprecated public static JavaRDD<DataSet> fromLabeledPoint(JavaSparkContext sc, JavaRDD<LabeledPoint> data, final long numPossibleLabels) { """ From labeled point @param sc the org.deeplearning4j.spark context used for creating the rdd @param data the data to convert @param numPossibleL...
java
@Deprecated public static JavaRDD<DataSet> fromLabeledPoint(JavaSparkContext sc, JavaRDD<LabeledPoint> data, final long numPossibleLabels) { return data.map(new Function<LabeledPoint, DataSet>() { @Override public DataSet call(LabeledPoint lp) { re...
[ "@", "Deprecated", "public", "static", "JavaRDD", "<", "DataSet", ">", "fromLabeledPoint", "(", "JavaSparkContext", "sc", ",", "JavaRDD", "<", "LabeledPoint", ">", "data", ",", "final", "long", "numPossibleLabels", ")", "{", "return", "data", ".", "map", "(", ...
From labeled point @param sc the org.deeplearning4j.spark context used for creating the rdd @param data the data to convert @param numPossibleLabels the number of possible labels @return @deprecated Use {@link #fromLabeledPoint(JavaRDD, int)}
[ "From", "labeled", "point" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/deeplearning4j/deeplearning4j-scaleout/spark/dl4j-spark/src/main/java/org/deeplearning4j/spark/util/MLLibUtil.java#L232-L241
apache/incubator-gobblin
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/trash/ProxiedTrash.java
ProxiedTrash.moveToTrashAsOwner
public boolean moveToTrashAsOwner(Path path) throws IOException { """ Move the path to trash as the owner of the path. @param path {@link org.apache.hadoop.fs.Path} to move. @return true if the move succeeded. @throws IOException """ String owner = this.fs.getFileStatus(path).getOwner(); return move...
java
public boolean moveToTrashAsOwner(Path path) throws IOException { String owner = this.fs.getFileStatus(path).getOwner(); return moveToTrashAsUser(path, owner); }
[ "public", "boolean", "moveToTrashAsOwner", "(", "Path", "path", ")", "throws", "IOException", "{", "String", "owner", "=", "this", ".", "fs", ".", "getFileStatus", "(", "path", ")", ".", "getOwner", "(", ")", ";", "return", "moveToTrashAsUser", "(", "path", ...
Move the path to trash as the owner of the path. @param path {@link org.apache.hadoop.fs.Path} to move. @return true if the move succeeded. @throws IOException
[ "Move", "the", "path", "to", "trash", "as", "the", "owner", "of", "the", "path", "." ]
train
https://github.com/apache/incubator-gobblin/blob/f029b4c0fea0fe4aa62f36dda2512344ff708bae/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/trash/ProxiedTrash.java#L72-L75
cojen/Cojen
src/main/java/org/cojen/classfile/attribute/CodeAttr.java
CodeAttr.mapLineNumber
public void mapLineNumber(Location start, int line_number) { """ Map a bytecode address (start_pc) to a line number in the source code as a debugging aid. """ if (mLineNumberTable == null) { addAttribute(new LineNumberTableAttr(getConstantPool())); } mLineNumberTable.addEnt...
java
public void mapLineNumber(Location start, int line_number) { if (mLineNumberTable == null) { addAttribute(new LineNumberTableAttr(getConstantPool())); } mLineNumberTable.addEntry(start, line_number); }
[ "public", "void", "mapLineNumber", "(", "Location", "start", ",", "int", "line_number", ")", "{", "if", "(", "mLineNumberTable", "==", "null", ")", "{", "addAttribute", "(", "new", "LineNumberTableAttr", "(", "getConstantPool", "(", ")", ")", ")", ";", "}", ...
Map a bytecode address (start_pc) to a line number in the source code as a debugging aid.
[ "Map", "a", "bytecode", "address", "(", "start_pc", ")", "to", "a", "line", "number", "in", "the", "source", "code", "as", "a", "debugging", "aid", "." ]
train
https://github.com/cojen/Cojen/blob/ddee9a0fde83870b97e0ed04c58270aa665f3a62/src/main/java/org/cojen/classfile/attribute/CodeAttr.java#L187-L192
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java
BpmnParse.parseConditionalStartEventForEventSubprocess
public ConditionalEventDefinition parseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting) { """ Parses the given element as conditional start event of an event subprocess. @param element the XML element which contains the conditional event informatio...
java
public ConditionalEventDefinition parseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting) { conditionalActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.START_EVENT_CONDITIONAL); ConditionalEventDefinition conditionalEventDefinition = ...
[ "public", "ConditionalEventDefinition", "parseConditionalStartEventForEventSubprocess", "(", "Element", "element", ",", "ActivityImpl", "conditionalActivity", ",", "boolean", "interrupting", ")", "{", "conditionalActivity", ".", "getProperties", "(", ")", ".", "set", "(", ...
Parses the given element as conditional start event of an event subprocess. @param element the XML element which contains the conditional event information @param interrupting indicates if the event is interrupting or not @param conditionalActivity the conditional event activity @return
[ "Parses", "the", "given", "element", "as", "conditional", "start", "event", "of", "an", "event", "subprocess", "." ]
train
https://github.com/camunda/camunda-bpm-platform/blob/1a464fc887ef3760e53d6f91b9e5b871a0d77cc0/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java#L3498-L3510
TNG/JGiven
jgiven-core/src/main/java/com/tngtech/jgiven/impl/util/ReflectionUtil.java
ReflectionUtil.getAllNonStaticFieldValuesFrom
public static List<Object> getAllNonStaticFieldValuesFrom( final Class<?> clazz, final Object target, final String errorDescription ) { """ Returns a {@link List} of objects reflecting all the non-static field values declared by the class or interface represented by the given {@link Class} object and defined by t...
java
public static List<Object> getAllNonStaticFieldValuesFrom( final Class<?> clazz, final Object target, final String errorDescription ) { return getAllFieldValues( target, getAllNonStaticFields( clazz ), errorDescription ); }
[ "public", "static", "List", "<", "Object", ">", "getAllNonStaticFieldValuesFrom", "(", "final", "Class", "<", "?", ">", "clazz", ",", "final", "Object", "target", ",", "final", "String", "errorDescription", ")", "{", "return", "getAllFieldValues", "(", "target",...
Returns a {@link List} of objects reflecting all the non-static field values declared by the class or interface represented by the given {@link Class} object and defined by the given {@link Object}. This includes {@code public}, {@code protected}, default (package) access, and {@code private} fields, but excludes inher...
[ "Returns", "a", "{", "@link", "List", "}", "of", "objects", "reflecting", "all", "the", "non", "-", "static", "field", "values", "declared", "by", "the", "class", "or", "interface", "represented", "by", "the", "given", "{", "@link", "Class", "}", "object",...
train
https://github.com/TNG/JGiven/blob/1a69248fc6d7eb380cdc4542e3be273842889748/jgiven-core/src/main/java/com/tngtech/jgiven/impl/util/ReflectionUtil.java#L203-L205
virgo47/javasimon
console-embed/src/main/java/org/javasimon/console/reflect/GetterFactory.java
GetterFactory.getGettersAsMap
private static Map<String, Getter> getGettersAsMap(Class type) { """ Extract all getters for given class. @param type Class @return Map property name &rarr; Getter """ Map<String, Getter> typeGetters = GETTER_CACHE.get(type); if (typeGetters == null) { typeGetters = new HashMap<>(); for (Meth...
java
private static Map<String, Getter> getGettersAsMap(Class type) { Map<String, Getter> typeGetters = GETTER_CACHE.get(type); if (typeGetters == null) { typeGetters = new HashMap<>(); for (Method method : type.getMethods()) { if (isGetterMethod(method)) { String propertyName = getPropertyName(meth...
[ "private", "static", "Map", "<", "String", ",", "Getter", ">", "getGettersAsMap", "(", "Class", "type", ")", "{", "Map", "<", "String", ",", "Getter", ">", "typeGetters", "=", "GETTER_CACHE", ".", "get", "(", "type", ")", ";", "if", "(", "typeGetters", ...
Extract all getters for given class. @param type Class @return Map property name &rarr; Getter
[ "Extract", "all", "getters", "for", "given", "class", "." ]
train
https://github.com/virgo47/javasimon/blob/17dfaa93cded9ce8ef64a134b28ccbf4d0284d2f/console-embed/src/main/java/org/javasimon/console/reflect/GetterFactory.java#L88-L103
google/closure-compiler
src/com/google/javascript/rhino/NominalTypeBuilder.java
NominalTypeBuilder.declareConstructorProperty
public void declareConstructorProperty(String name, JSType type, Node defSite) { """ Declares a static property on the nominal type's constructor. """ constructor.defineDeclaredProperty(name, type, defSite); }
java
public void declareConstructorProperty(String name, JSType type, Node defSite) { constructor.defineDeclaredProperty(name, type, defSite); }
[ "public", "void", "declareConstructorProperty", "(", "String", "name", ",", "JSType", "type", ",", "Node", "defSite", ")", "{", "constructor", ".", "defineDeclaredProperty", "(", "name", ",", "type", ",", "defSite", ")", ";", "}" ]
Declares a static property on the nominal type's constructor.
[ "Declares", "a", "static", "property", "on", "the", "nominal", "type", "s", "constructor", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/rhino/NominalTypeBuilder.java#L80-L82
cybazeitalia/emaze-dysfunctional
src/main/java/net/emaze/dysfunctional/Consumers.java
Consumers.dict
public static <M extends Map<K, V>, K, V> M dict(Iterator<Pair<K, V>> iterator, M map) { """ Yields all elements of the iterator (in the provided map). @param <M> the returned map type @param <K> the map key type @param <V> the map value type @param iterator the iterator that will be consumed @param map the...
java
public static <M extends Map<K, V>, K, V> M dict(Iterator<Pair<K, V>> iterator, M map) { dbc.precondition(map != null, "cannot call dict with a null map"); final Function<Iterator<Pair<K, V>>, M> consumer = new ConsumeIntoMap<>(new ConstantSupplier<M>(map)); return consumer.apply(iterator); ...
[ "public", "static", "<", "M", "extends", "Map", "<", "K", ",", "V", ">", ",", "K", ",", "V", ">", "M", "dict", "(", "Iterator", "<", "Pair", "<", "K", ",", "V", ">", ">", "iterator", ",", "M", "map", ")", "{", "dbc", ".", "precondition", "(",...
Yields all elements of the iterator (in the provided map). @param <M> the returned map type @param <K> the map key type @param <V> the map value type @param iterator the iterator that will be consumed @param map the map where the iterator is consumed @return the map filled with iterator values
[ "Yields", "all", "elements", "of", "the", "iterator", "(", "in", "the", "provided", "map", ")", "." ]
train
https://github.com/cybazeitalia/emaze-dysfunctional/blob/98115a436e35335c5e8831f9fdc12f6d93d524be/src/main/java/net/emaze/dysfunctional/Consumers.java#L179-L183
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java
HtmlFormRenderer.afterFormElementsEnd
@Override protected void afterFormElementsEnd(FacesContext facesContext, UIComponent component) throws IOException { """ private static final Log log = LogFactory.getLog(HtmlFormRenderer.class); """ super.afterFormElementsEnd(facesContext, component); }
java
@Override protected void afterFormElementsEnd(FacesContext facesContext, UIComponent component) throws IOException { super.afterFormElementsEnd(facesContext, component); }
[ "@", "Override", "protected", "void", "afterFormElementsEnd", "(", "FacesContext", "facesContext", ",", "UIComponent", "component", ")", "throws", "IOException", "{", "super", ".", "afterFormElementsEnd", "(", "facesContext", ",", "component", ")", ";", "}" ]
private static final Log log = LogFactory.getLog(HtmlFormRenderer.class);
[ "private", "static", "final", "Log", "log", "=", "LogFactory", ".", "getLog", "(", "HtmlFormRenderer", ".", "class", ")", ";" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java#L46-L50
Azure/azure-sdk-for-java
network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/ExpressRouteCircuitsInner.java
ExpressRouteCircuitsInner.beginListRoutesTableSummary
public ExpressRouteCircuitsRoutesTableSummaryListResultInner beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, String devicePath) { """ Gets the currently advertised routes table summary associated with the express route circuit in a resource group. @param resourceGro...
java
public ExpressRouteCircuitsRoutesTableSummaryListResultInner beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, String devicePath) { return beginListRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, circuitName, peeringName, devicePath).toBlocking().single(...
[ "public", "ExpressRouteCircuitsRoutesTableSummaryListResultInner", "beginListRoutesTableSummary", "(", "String", "resourceGroupName", ",", "String", "circuitName", ",", "String", "peeringName", ",", "String", "devicePath", ")", "{", "return", "beginListRoutesTableSummaryWithServi...
Gets the currently advertised routes table summary associated with the express route circuit in a resource group. @param resourceGroupName The name of the resource group. @param circuitName The name of the express route circuit. @param peeringName The name of the peering. @param devicePath The path of the device. @thr...
[ "Gets", "the", "currently", "advertised", "routes", "table", "summary", "associated", "with", "the", "express", "route", "circuit", "in", "a", "resource", "group", "." ]
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/ExpressRouteCircuitsInner.java#L1319-L1321
gallandarakhneorg/afc
advanced/attributes/src/main/java/org/arakhne/afc/attrs/collection/AbstractAttributeCollection.java
AbstractAttributeCollection.fireAttributeAddedEvent
protected synchronized void fireAttributeAddedEvent(String name, AttributeValue attr) { """ Fire the addition event. @param name is the name of the attribute for which the event occured. @param attr is the value of the attribute. """ if (this.listenerList != null && isEventFirable()) { final Attribute...
java
protected synchronized void fireAttributeAddedEvent(String name, AttributeValue attr) { if (this.listenerList != null && isEventFirable()) { final AttributeChangeListener[] list = new AttributeChangeListener[this.listenerList.size()]; this.listenerList.toArray(list); final AttributeChangeEvent event = new At...
[ "protected", "synchronized", "void", "fireAttributeAddedEvent", "(", "String", "name", ",", "AttributeValue", "attr", ")", "{", "if", "(", "this", ".", "listenerList", "!=", "null", "&&", "isEventFirable", "(", ")", ")", "{", "final", "AttributeChangeListener", ...
Fire the addition event. @param name is the name of the attribute for which the event occured. @param attr is the value of the attribute.
[ "Fire", "the", "addition", "event", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/attributes/src/main/java/org/arakhne/afc/attrs/collection/AbstractAttributeCollection.java#L75-L90
joachimvda/jtransfo
core/src/main/java/org/jtransfo/AutomaticListTypeConverter.java
AutomaticListTypeConverter.doConvertOne
public Object doConvertOne(JTransfo jTransfo, Object toObject, Class<?> domainObjectType, String... tags) throws JTransfoException { """ Do the actual conversion of one object. @param jTransfo jTransfo instance in use @param toObject transfer object @param domainObjectType domain object type @par...
java
public Object doConvertOne(JTransfo jTransfo, Object toObject, Class<?> domainObjectType, String... tags) throws JTransfoException { return jTransfo.convertTo(toObject, domainObjectType, tags); }
[ "public", "Object", "doConvertOne", "(", "JTransfo", "jTransfo", ",", "Object", "toObject", ",", "Class", "<", "?", ">", "domainObjectType", ",", "String", "...", "tags", ")", "throws", "JTransfoException", "{", "return", "jTransfo", ".", "convertTo", "(", "to...
Do the actual conversion of one object. @param jTransfo jTransfo instance in use @param toObject transfer object @param domainObjectType domain object type @param tags tags which indicate which fields can be converted based on {@link MapOnly} annotations. @return domain object @throws JTransfoException oops, cannot co...
[ "Do", "the", "actual", "conversion", "of", "one", "object", "." ]
train
https://github.com/joachimvda/jtransfo/blob/eb1c72b64b09d6f3b6212bd3f1579cac5c983ea8/core/src/main/java/org/jtransfo/AutomaticListTypeConverter.java#L77-L80