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
Metatavu/edelphi
rest/src/main/java/fi/metatavu/edelphi/queries/QueryController.java
QueryController.isPanelsQuery
public boolean isPanelsQuery(Query query, Panel panel) { """ Returns whether query belongs to given panel @param query query @param panel panel @return whether query belongs to given panel """ Panel queryPanel = resourceController.getResourcePanel(query); if (queryPanel == null || panel == null) {...
java
public boolean isPanelsQuery(Query query, Panel panel) { Panel queryPanel = resourceController.getResourcePanel(query); if (queryPanel == null || panel == null) { return false; } return queryPanel.getId().equals(panel.getId()); }
[ "public", "boolean", "isPanelsQuery", "(", "Query", "query", ",", "Panel", "panel", ")", "{", "Panel", "queryPanel", "=", "resourceController", ".", "getResourcePanel", "(", "query", ")", ";", "if", "(", "queryPanel", "==", "null", "||", "panel", "==", "null...
Returns whether query belongs to given panel @param query query @param panel panel @return whether query belongs to given panel
[ "Returns", "whether", "query", "belongs", "to", "given", "panel" ]
train
https://github.com/Metatavu/edelphi/blob/d91a0b54f954b33b4ee674a1bdf03612d76c3305/rest/src/main/java/fi/metatavu/edelphi/queries/QueryController.java#L106-L113
sai-pullabhotla/catatumbo
src/main/java/com/jmethods/catatumbo/impl/DefaultEntityManager.java
DefaultEntityManager.executeEntityListeners
public void executeEntityListeners(CallbackType callbackType, Object entity) { """ Executes the entity listeners associated with the given entity. @param callbackType the event type @param entity the entity that produced the event """ // We may get null entities here. For example loading a nonexisten...
java
public void executeEntityListeners(CallbackType callbackType, Object entity) { // We may get null entities here. For example loading a nonexistent ID // or IDs. if (entity == null) { return; } EntityListenersMetadata entityListenersMetadata = EntityIntrospector .getEntityListenersMetad...
[ "public", "void", "executeEntityListeners", "(", "CallbackType", "callbackType", ",", "Object", "entity", ")", "{", "// We may get null entities here. For example loading a nonexistent ID", "// or IDs.", "if", "(", "entity", "==", "null", ")", "{", "return", ";", "}", "...
Executes the entity listeners associated with the given entity. @param callbackType the event type @param entity the entity that produced the event
[ "Executes", "the", "entity", "listeners", "associated", "with", "the", "given", "entity", "." ]
train
https://github.com/sai-pullabhotla/catatumbo/blob/96d4c6dce3a5009624f7112a398406914dd19165/src/main/java/com/jmethods/catatumbo/impl/DefaultEntityManager.java#L440-L470
b3dgs/lionengine
lionengine-game/src/main/java/com/b3dgs/lionengine/game/feature/tile/map/collision/MapTileCollisionLoader.java
MapTileCollisionLoader.loadTileCollisions
private void loadTileCollisions(MapTileCollision mapCollision, Tile tile) { """ Load the tile collisions. @param mapCollision The map tile collision owner. @param tile The tile reference. """ final TileCollision tileCollision; if (!tile.hasFeature(TileCollision.class)) { ...
java
private void loadTileCollisions(MapTileCollision mapCollision, Tile tile) { final TileCollision tileCollision; if (!tile.hasFeature(TileCollision.class)) { tileCollision = new TileCollisionModel(tile); tile.addFeature(tileCollision); } else ...
[ "private", "void", "loadTileCollisions", "(", "MapTileCollision", "mapCollision", ",", "Tile", "tile", ")", "{", "final", "TileCollision", "tileCollision", ";", "if", "(", "!", "tile", ".", "hasFeature", "(", "TileCollision", ".", "class", ")", ")", "{", "tile...
Load the tile collisions. @param mapCollision The map tile collision owner. @param tile The tile reference.
[ "Load", "the", "tile", "collisions", "." ]
train
https://github.com/b3dgs/lionengine/blob/cac3d5578532cf11724a737b9f09e71bf9995ab2/lionengine-game/src/main/java/com/b3dgs/lionengine/game/feature/tile/map/collision/MapTileCollisionLoader.java#L264-L278
alkacon/opencms-core
src/org/opencms/ui/apps/user/CmsAdditionalInfosDialog.java
CmsAdditionalInfosDialog.addAddInfoLayout
private void addAddInfoLayout(String key, Object value, boolean editable) { """ Add key value pair as component to ui.<p> @param key string @param value object @param editable boolean """ HorizontalLayout res = addInfoLayout(key, value, editable); if (editable) { m_userinfoGro...
java
private void addAddInfoLayout(String key, Object value, boolean editable) { HorizontalLayout res = addInfoLayout(key, value, editable); if (editable) { m_userinfoGroup.addRow(res); } else { m_userinfoNoEditGroup.addRow(res); } }
[ "private", "void", "addAddInfoLayout", "(", "String", "key", ",", "Object", "value", ",", "boolean", "editable", ")", "{", "HorizontalLayout", "res", "=", "addInfoLayout", "(", "key", ",", "value", ",", "editable", ")", ";", "if", "(", "editable", ")", "{"...
Add key value pair as component to ui.<p> @param key string @param value object @param editable boolean
[ "Add", "key", "value", "pair", "as", "component", "to", "ui", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/user/CmsAdditionalInfosDialog.java#L251-L259
liferay/com-liferay-commerce
commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPMeasurementUnitPersistenceImpl.java
CPMeasurementUnitPersistenceImpl.findByG_T
@Override public List<CPMeasurementUnit> findByG_T(long groupId, int type, int start, int end, OrderByComparator<CPMeasurementUnit> orderByComparator) { """ Returns an ordered range of all the cp measurement units where groupId = &#63; and type = &#63;. <p> Useful when paginating results. Returns a maximum ...
java
@Override public List<CPMeasurementUnit> findByG_T(long groupId, int type, int start, int end, OrderByComparator<CPMeasurementUnit> orderByComparator) { return findByG_T(groupId, type, start, end, orderByComparator, true); }
[ "@", "Override", "public", "List", "<", "CPMeasurementUnit", ">", "findByG_T", "(", "long", "groupId", ",", "int", "type", ",", "int", "start", ",", "int", "end", ",", "OrderByComparator", "<", "CPMeasurementUnit", ">", "orderByComparator", ")", "{", "return",...
Returns an ordered range of all the cp measurement units where groupId = &#63; and type = &#63;. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to ...
[ "Returns", "an", "ordered", "range", "of", "all", "the", "cp", "measurement", "units", "where", "groupId", "=", "&#63", ";", "and", "type", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPMeasurementUnitPersistenceImpl.java#L2064-L2068
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/PropertyListSerialization.java
PropertyListSerialization.serializeInteger
private static void serializeInteger(final Number integer, final ContentHandler handler) throws SAXException { """ Serialize a Number as an integer element. @param integer number to serialize. @param handler destination of serialization events. @throws SAXException if exception during serialization. ""...
java
private static void serializeInteger(final Number integer, final ContentHandler handler) throws SAXException { serializeElement("integer", String.valueOf(integer.longValue()), handler); }
[ "private", "static", "void", "serializeInteger", "(", "final", "Number", "integer", ",", "final", "ContentHandler", "handler", ")", "throws", "SAXException", "{", "serializeElement", "(", "\"integer\"", ",", "String", ".", "valueOf", "(", "integer", ".", "longValu...
Serialize a Number as an integer element. @param integer number to serialize. @param handler destination of serialization events. @throws SAXException if exception during serialization.
[ "Serialize", "a", "Number", "as", "an", "integer", "element", "." ]
train
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/PropertyListSerialization.java#L131-L133
Backendless/Android-SDK
src/com/backendless/utils/ReflectionUtil.java
ReflectionUtil.hasField
public static boolean hasField( Class clazz, String fieldName ) { """ Checks whether given class contains a field with given name. Recursively checks superclasses. @param clazz Class in which to search for a field @param fieldName name of the field @return {@code true} if given class or one of its superc...
java
public static boolean hasField( Class clazz, String fieldName ) { try { clazz.getDeclaredField( fieldName ); return true; } catch( NoSuchFieldException nfe ) { if( clazz.getSuperclass() != null ) { return hasField( clazz.getSuperclass(), fieldName ); } e...
[ "public", "static", "boolean", "hasField", "(", "Class", "clazz", ",", "String", "fieldName", ")", "{", "try", "{", "clazz", ".", "getDeclaredField", "(", "fieldName", ")", ";", "return", "true", ";", "}", "catch", "(", "NoSuchFieldException", "nfe", ")", ...
Checks whether given class contains a field with given name. Recursively checks superclasses. @param clazz Class in which to search for a field @param fieldName name of the field @return {@code true} if given class or one of its superclasses contains field with given name, else {@code false}
[ "Checks", "whether", "given", "class", "contains", "a", "field", "with", "given", "name", ".", "Recursively", "checks", "superclasses", "." ]
train
https://github.com/Backendless/Android-SDK/blob/3af1e9a378f19d890db28a833f7fc8595b924cc3/src/com/backendless/utils/ReflectionUtil.java#L142-L160
anotheria/moskito
moskito-extensions/moskito-php/src/main/java/net/anotheria/extensions/php/connectors/impl/RabbitMQConnector.java
RabbitMQConnector.initWithDefaultProperties
@Override public void initWithDefaultProperties(Properties properties) throws ConnectorInitException { """ Opens connection and channel to listen configured queue for incoming data @param properties configured connector properties @throws ConnectorInitException on connection to RabbitMQ fail """ ...
java
@Override public void initWithDefaultProperties(Properties properties) throws ConnectorInitException { log.debug("Starting to initWithDefaultProperties RabbitMQ connector in php plugin..."); ConnectionFactory factory = new ConnectionFactory(); factory.setHost(properties.getProperty("conne...
[ "@", "Override", "public", "void", "initWithDefaultProperties", "(", "Properties", "properties", ")", "throws", "ConnectorInitException", "{", "log", ".", "debug", "(", "\"Starting to initWithDefaultProperties RabbitMQ connector in php plugin...\"", ")", ";", "ConnectionFactory...
Opens connection and channel to listen configured queue for incoming data @param properties configured connector properties @throws ConnectorInitException on connection to RabbitMQ fail
[ "Opens", "connection", "and", "channel", "to", "listen", "configured", "queue", "for", "incoming", "data" ]
train
https://github.com/anotheria/moskito/blob/0fdb79053b98a6ece610fa159f59bc3331e4cf05/moskito-extensions/moskito-php/src/main/java/net/anotheria/extensions/php/connectors/impl/RabbitMQConnector.java#L67-L97
grpc/grpc-java
context/src/main/java/io/grpc/Context.java
Context.withValue
public <V> Context withValue(Key<V> k1, V v1) { """ Create a new context with the given key value set. The new context will cascade cancellation from its parent. <pre> Context withCredential = Context.current().withValue(CRED_KEY, cred); withCredential.run(new Runnable() { public void run() { readUserRecor...
java
public <V> Context withValue(Key<V> k1, V v1) { PersistentHashArrayMappedTrie<Key<?>, Object> newKeyValueEntries = keyValueEntries.put(k1, v1); return new Context(this, newKeyValueEntries); }
[ "public", "<", "V", ">", "Context", "withValue", "(", "Key", "<", "V", ">", "k1", ",", "V", "v1", ")", "{", "PersistentHashArrayMappedTrie", "<", "Key", "<", "?", ">", ",", "Object", ">", "newKeyValueEntries", "=", "keyValueEntries", ".", "put", "(", "...
Create a new context with the given key value set. The new context will cascade cancellation from its parent. <pre> Context withCredential = Context.current().withValue(CRED_KEY, cred); withCredential.run(new Runnable() { public void run() { readUserRecords(userId, CRED_KEY.get()); } }); </pre>
[ "Create", "a", "new", "context", "with", "the", "given", "key", "value", "set", ".", "The", "new", "context", "will", "cascade", "cancellation", "from", "its", "parent", "." ]
train
https://github.com/grpc/grpc-java/blob/973885457f9609de232d2553b82c67f6c3ff57bf/context/src/main/java/io/grpc/Context.java#L320-L323
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/filters/SPSMMappingFilter.java
SPSMMappingFilter.swapINodes
private void swapINodes(List<INode> listOfNodes, int source, int target) { """ Swaps the INodes in listOfNodes in the positions source and target. @param listOfNodes List of INodes of which the elements should be swapped. @param source index of the source element to be swapped. @param target index o...
java
private void swapINodes(List<INode> listOfNodes, int source, int target) { INode aux = listOfNodes.get(source); listOfNodes.set(source, listOfNodes.get(target)); listOfNodes.set(target, aux); }
[ "private", "void", "swapINodes", "(", "List", "<", "INode", ">", "listOfNodes", ",", "int", "source", ",", "int", "target", ")", "{", "INode", "aux", "=", "listOfNodes", ".", "get", "(", "source", ")", ";", "listOfNodes", ".", "set", "(", "source", ","...
Swaps the INodes in listOfNodes in the positions source and target. @param listOfNodes List of INodes of which the elements should be swapped. @param source index of the source element to be swapped. @param target index of the target element to be swapped.
[ "Swaps", "the", "INodes", "in", "listOfNodes", "in", "the", "positions", "source", "and", "target", "." ]
train
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/filters/SPSMMappingFilter.java#L202-L206
super-csv/super-csv
super-csv/src/main/java/org/supercsv/cellprocessor/FmtDate.java
FmtDate.execute
public Object execute(final Object value, final CsvContext context) { """ {@inheritDoc} @throws SuperCsvCellProcessorException if value is null or is not a Date, or if dateFormat is not a valid date format """ validateInputNotNull(value, context); if( !(value instanceof Date) ) { throw new SuperC...
java
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !(value instanceof Date) ) { throw new SuperCsvCellProcessorException(Date.class, value, context, this); } final SimpleDateFormat formatter; try { formatter = new SimpleDateFormat(dateFo...
[ "public", "Object", "execute", "(", "final", "Object", "value", ",", "final", "CsvContext", "context", ")", "{", "validateInputNotNull", "(", "value", ",", "context", ")", ";", "if", "(", "!", "(", "value", "instanceof", "Date", ")", ")", "{", "throw", "...
{@inheritDoc} @throws SuperCsvCellProcessorException if value is null or is not a Date, or if dateFormat is not a valid date format
[ "{", "@inheritDoc", "}" ]
train
https://github.com/super-csv/super-csv/blob/f18db724674dc1c4116e25142c1b5403ebf43e96/super-csv/src/main/java/org/supercsv/cellprocessor/FmtDate.java#L96-L114
wcm-io-caravan/caravan-hal
resource/src/main/java/io/wcm/caravan/hal/resource/HalResource.java
HalResource.addLinks
public HalResource addLinks(String relation, Link... links) { """ Adds links for the given relation @param relation Link relation @param links Links to add @return HAL resource """ return addResources(HalResourceType.LINKS, relation, true, links); }
java
public HalResource addLinks(String relation, Link... links) { return addResources(HalResourceType.LINKS, relation, true, links); }
[ "public", "HalResource", "addLinks", "(", "String", "relation", ",", "Link", "...", "links", ")", "{", "return", "addResources", "(", "HalResourceType", ".", "LINKS", ",", "relation", ",", "true", ",", "links", ")", ";", "}" ]
Adds links for the given relation @param relation Link relation @param links Links to add @return HAL resource
[ "Adds", "links", "for", "the", "given", "relation" ]
train
https://github.com/wcm-io-caravan/caravan-hal/blob/25d58756b58c70c8c48a17fe781e673dd93d5085/resource/src/main/java/io/wcm/caravan/hal/resource/HalResource.java#L317-L319
DDTH/ddth-dao
ddth-dao-core/src/main/java/com/github/ddth/dao/utils/DbcHelper.java
DbcHelper.registerJdbcDataSource
public static boolean registerJdbcDataSource(String name, DataSource dataSource) { """ Registers a named JDBC datasource. @param name @param dataSource @return """ return jdbcDataSources.putIfAbsent(name, dataSource) == null; }
java
public static boolean registerJdbcDataSource(String name, DataSource dataSource) { return jdbcDataSources.putIfAbsent(name, dataSource) == null; }
[ "public", "static", "boolean", "registerJdbcDataSource", "(", "String", "name", ",", "DataSource", "dataSource", ")", "{", "return", "jdbcDataSources", ".", "putIfAbsent", "(", "name", ",", "dataSource", ")", "==", "null", ";", "}" ]
Registers a named JDBC datasource. @param name @param dataSource @return
[ "Registers", "a", "named", "JDBC", "datasource", "." ]
train
https://github.com/DDTH/ddth-dao/blob/8d059ddf641a1629aa53851f9d1b41abf175a180/ddth-dao-core/src/main/java/com/github/ddth/dao/utils/DbcHelper.java#L39-L41
looly/hutool
hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java
FileUtil.writeLines
public static <T> File writeLines(Collection<T> list, File file, String charset, boolean isAppend) throws IORuntimeException { """ 将列表写入文件 @param <T> 集合元素类型 @param list 列表 @param file 文件 @param charset 字符集 @param isAppend 是否追加 @return 目标文件 @throws IORuntimeException IO异常 """ return FileWriter.creat...
java
public static <T> File writeLines(Collection<T> list, File file, String charset, boolean isAppend) throws IORuntimeException { return FileWriter.create(file, CharsetUtil.charset(charset)).writeLines(list, isAppend); }
[ "public", "static", "<", "T", ">", "File", "writeLines", "(", "Collection", "<", "T", ">", "list", ",", "File", "file", ",", "String", "charset", ",", "boolean", "isAppend", ")", "throws", "IORuntimeException", "{", "return", "FileWriter", ".", "create", "...
将列表写入文件 @param <T> 集合元素类型 @param list 列表 @param file 文件 @param charset 字符集 @param isAppend 是否追加 @return 目标文件 @throws IORuntimeException IO异常
[ "将列表写入文件" ]
train
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java#L3056-L3058
h2oai/h2o-3
h2o-algos/src/main/java/hex/deepwater/DeepWaterTask2.java
DeepWaterTask2.postGlobal
@Override protected void postGlobal() { """ Finish up the work after all nodes have reduced their models via the above reduce() method. All we do is average the models and add to the global training sample counter. After this returns, model_info() can be queried for the updated model. """ assert(_res.m...
java
@Override protected void postGlobal() { assert(_res.model_info().get_params()._replicate_training_data); super.postGlobal(); // model averaging (DeepWaterTask only computed the per-node models, each on all the data) // _res.model_info().div(_res._chunk_node_count); _res.model_info().add_processed_g...
[ "@", "Override", "protected", "void", "postGlobal", "(", ")", "{", "assert", "(", "_res", ".", "model_info", "(", ")", ".", "get_params", "(", ")", ".", "_replicate_training_data", ")", ";", "super", ".", "postGlobal", "(", ")", ";", "// model averaging (Dee...
Finish up the work after all nodes have reduced their models via the above reduce() method. All we do is average the models and add to the global training sample counter. After this returns, model_info() can be queried for the updated model.
[ "Finish", "up", "the", "work", "after", "all", "nodes", "have", "reduced", "their", "models", "via", "the", "above", "reduce", "()", "method", ".", "All", "we", "do", "is", "average", "the", "models", "and", "add", "to", "the", "global", "training", "sam...
train
https://github.com/h2oai/h2o-3/blob/845eb49dfeaadf638b6e2f779d82fac996391fad/h2o-algos/src/main/java/hex/deepwater/DeepWaterTask2.java#L74-L83
james-hu/jabb-core
src/main/java/net/sf/jabb/util/db/ResultSetUtility.java
ResultSetUtility.columnLabelOrName
public String columnLabelOrName(ResultSetMetaData rsmd, int col) throws SQLException { """ Get the label or name of a column @param rsmd @param col @return label or name of the column @throws SQLException """ String columnName = rsmd.getColumnLabel(col); if (null == columnName || 0 == columnName.leng...
java
public String columnLabelOrName(ResultSetMetaData rsmd, int col) throws SQLException{ String columnName = rsmd.getColumnLabel(col); if (null == columnName || 0 == columnName.length()) { columnName = rsmd.getColumnName(col); } return columnName; }
[ "public", "String", "columnLabelOrName", "(", "ResultSetMetaData", "rsmd", ",", "int", "col", ")", "throws", "SQLException", "{", "String", "columnName", "=", "rsmd", ".", "getColumnLabel", "(", "col", ")", ";", "if", "(", "null", "==", "columnName", "||", "...
Get the label or name of a column @param rsmd @param col @return label or name of the column @throws SQLException
[ "Get", "the", "label", "or", "name", "of", "a", "column" ]
train
https://github.com/james-hu/jabb-core/blob/bceed441595c5e5195a7418795f03b69fa7b61e4/src/main/java/net/sf/jabb/util/db/ResultSetUtility.java#L309-L315
dbracewell/mango
src/main/java/com/davidbracewell/config/Config.java
Config.toPythonConfigParser
public static Resource toPythonConfigParser(@NonNull String sectionName, @NonNull Resource output) throws IOException { """ Converts the config into an ini format easily consumed by Python with the given section name @param sectionName The section name to write properties under @param output the resource ...
java
public static Resource toPythonConfigParser(@NonNull String sectionName, @NonNull Resource output) throws IOException { try (BufferedWriter writer = new BufferedWriter(output.writer())) { writer.write("["); writer.write(sectionName); writer.write("]\n"); for (Map.Entry<String, ...
[ "public", "static", "Resource", "toPythonConfigParser", "(", "@", "NonNull", "String", "sectionName", ",", "@", "NonNull", "Resource", "output", ")", "throws", "IOException", "{", "try", "(", "BufferedWriter", "writer", "=", "new", "BufferedWriter", "(", "output",...
Converts the config into an ini format easily consumed by Python with the given section name @param sectionName The section name to write properties under @param output the resource to output the ini file to @return the resource writen to @throws IOException Something went wrong writing the config file
[ "Converts", "the", "config", "into", "an", "ini", "format", "easily", "consumed", "by", "Python", "with", "the", "given", "section", "name" ]
train
https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/config/Config.java#L784-L798
comapi/comapi-sdk-android
COMAPI/foundation/src/main/java/com/comapi/internal/log/AppenderFile.java
AppenderFile.loadLogsObservable
private Observable<String> loadLogsObservable() { """ Gets rx observable that reads the log files and appends to string. @return Observable that reads the log files and appends to string. """ return Observable.fromCallable(() -> { StringBuilder sb = new StringBuilder(); Co...
java
private Observable<String> loadLogsObservable() { return Observable.fromCallable(() -> { StringBuilder sb = new StringBuilder(); Context context = appContextRef.get(); if (context != null) { synchronized (sharedLock) { try { ...
[ "private", "Observable", "<", "String", ">", "loadLogsObservable", "(", ")", "{", "return", "Observable", ".", "fromCallable", "(", "(", ")", "->", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "Context", "context", "=", "appContext...
Gets rx observable that reads the log files and appends to string. @return Observable that reads the log files and appends to string.
[ "Gets", "rx", "observable", "that", "reads", "the", "log", "files", "and", "appends", "to", "string", "." ]
train
https://github.com/comapi/comapi-sdk-android/blob/53140a58d5a62afe196047ccc5120bfe090ef211/COMAPI/foundation/src/main/java/com/comapi/internal/log/AppenderFile.java#L214-L255
atomix/atomix
storage/src/main/java/io/atomix/storage/journal/JournalSegmentFile.java
JournalSegmentFile.createSegmentFile
static File createSegmentFile(String name, File directory, long id) { """ Creates a segment file for the given directory, log name, segment ID, and segment version. """ return new File(directory, String.format("%s-%d.log", checkNotNull(name, "name cannot be null"), id)); }
java
static File createSegmentFile(String name, File directory, long id) { return new File(directory, String.format("%s-%d.log", checkNotNull(name, "name cannot be null"), id)); }
[ "static", "File", "createSegmentFile", "(", "String", "name", ",", "File", "directory", ",", "long", "id", ")", "{", "return", "new", "File", "(", "directory", ",", "String", ".", "format", "(", "\"%s-%d.log\"", ",", "checkNotNull", "(", "name", ",", "\"na...
Creates a segment file for the given directory, log name, segment ID, and segment version.
[ "Creates", "a", "segment", "file", "for", "the", "given", "directory", "log", "name", "segment", "ID", "and", "segment", "version", "." ]
train
https://github.com/atomix/atomix/blob/3a94b7c80576d762dd0d396d4645df07a0b37c31/storage/src/main/java/io/atomix/storage/journal/JournalSegmentFile.java#L75-L77
vlingo/vlingo-actors
src/main/java/io/vlingo/actors/World.java
World.stageNamed
public synchronized Stage stageNamed(final String name) { """ Answers the {@code Stage} named by {@code name}, or the newly created {@code Stage} instance named by {@code name} if the {@code Stage} does not already exist. @param name the {@code String} name of the {@code Stage} to answer @return Stage """ ...
java
public synchronized Stage stageNamed(final String name) { Stage stage = stages.get(name); if (stage == null) { stage = new Stage(this, name); if (!name.equals(DEFAULT_STAGE)) stage.startDirectoryScanner(); stages.put(name, stage); } return stage; }
[ "public", "synchronized", "Stage", "stageNamed", "(", "final", "String", "name", ")", "{", "Stage", "stage", "=", "stages", ".", "get", "(", "name", ")", ";", "if", "(", "stage", "==", "null", ")", "{", "stage", "=", "new", "Stage", "(", "this", ",",...
Answers the {@code Stage} named by {@code name}, or the newly created {@code Stage} instance named by {@code name} if the {@code Stage} does not already exist. @param name the {@code String} name of the {@code Stage} to answer @return Stage
[ "Answers", "the", "{" ]
train
https://github.com/vlingo/vlingo-actors/blob/c7d046fd139c0490cf0fd2588d7dc2f792f13493/src/main/java/io/vlingo/actors/World.java#L411-L421
netscaler/sdx_nitro
src/main/java/com/citrix/sdx/nitro/resource/config/ns/ns_cluster.java
ns_cluster.get_nitro_bulk_response
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { """ <pre> Converts API response of bulk operation into object and returns the object array in case of get request. </pre> """ ns_cluster_responses result = (ns_cluster_responses) service.get_payloa...
java
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { ns_cluster_responses result = (ns_cluster_responses) service.get_payload_formatter().string_to_resource(ns_cluster_responses.class, response); if(result.errorcode != 0) { if (result.errorcode == S...
[ "protected", "base_resource", "[", "]", "get_nitro_bulk_response", "(", "nitro_service", "service", ",", "String", "response", ")", "throws", "Exception", "{", "ns_cluster_responses", "result", "=", "(", "ns_cluster_responses", ")", "service", ".", "get_payload_formatte...
<pre> Converts API response of bulk operation into object and returns the object array in case of get request. </pre>
[ "<pre", ">", "Converts", "API", "response", "of", "bulk", "operation", "into", "object", "and", "returns", "the", "object", "array", "in", "case", "of", "get", "request", ".", "<", "/", "pre", ">" ]
train
https://github.com/netscaler/sdx_nitro/blob/c840919f1a8f7c0a5634c0f23d34fa14d1765ff1/src/main/java/com/citrix/sdx/nitro/resource/config/ns/ns_cluster.java#L737-L754
git-commit-id/maven-git-commit-id-plugin
src/main/java/pl/project13/jgit/DescribeCommand.java
DescribeCommand.createDescribeResult
private DescribeResult createDescribeResult(ObjectReader objectReader, ObjectId headCommitId, boolean dirty, @Nullable Pair<Integer, String> howFarFromWhichTag) { """ Prepares the final result of this command. It tries to put as much information as possible into the result, and will fallback to a plain commit ha...
java
private DescribeResult createDescribeResult(ObjectReader objectReader, ObjectId headCommitId, boolean dirty, @Nullable Pair<Integer, String> howFarFromWhichTag) { if (howFarFromWhichTag == null) { return new DescribeResult(objectReader, headCommitId, dirty, dirtyOption) .withCommitIdAbbrev(abbrev); ...
[ "private", "DescribeResult", "createDescribeResult", "(", "ObjectReader", "objectReader", ",", "ObjectId", "headCommitId", ",", "boolean", "dirty", ",", "@", "Nullable", "Pair", "<", "Integer", ",", "String", ">", "howFarFromWhichTag", ")", "{", "if", "(", "howFar...
Prepares the final result of this command. It tries to put as much information as possible into the result, and will fallback to a plain commit hash if nothing better is returnable. The exact logic is following what <pre>git-describe</pre> would do.
[ "Prepares", "the", "final", "result", "of", "this", "command", ".", "It", "tries", "to", "put", "as", "much", "information", "as", "possible", "into", "the", "result", "and", "will", "fallback", "to", "a", "plain", "commit", "hash", "if", "nothing", "bette...
train
https://github.com/git-commit-id/maven-git-commit-id-plugin/blob/a276551fb043d1b7fc4c890603f6ea0c79dc729a/src/main/java/pl/project13/jgit/DescribeCommand.java#L309-L329
deeplearning4j/deeplearning4j
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/jita/handler/impl/CudaZeroHandler.java
CudaZeroHandler.fallback
@Override @Deprecated public void fallback(AllocationPoint point, AllocationShape shape) { """ Copies memory from device to zero-copy memory @param point @param shape """ throw new IllegalStateException("Can't fallback from [" + point.getAllocationStatus() + "]"); }
java
@Override @Deprecated public void fallback(AllocationPoint point, AllocationShape shape) { throw new IllegalStateException("Can't fallback from [" + point.getAllocationStatus() + "]"); }
[ "@", "Override", "@", "Deprecated", "public", "void", "fallback", "(", "AllocationPoint", "point", ",", "AllocationShape", "shape", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Can't fallback from [\"", "+", "point", ".", "getAllocationStatus", "(", ")...
Copies memory from device to zero-copy memory @param point @param shape
[ "Copies", "memory", "from", "device", "to", "zero", "-", "copy", "memory" ]
train
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/jita/handler/impl/CudaZeroHandler.java#L487-L491
lexs/webimageloader
webimageloader/src/main/java/com/webimageloader/util/HeaderParser.java
HeaderParser.skipWhitespace
private static int skipWhitespace(String input, int pos) { """ Returns the next non-whitespace character in {@code input} that is white space. Result is undefined if input contains newline characters. """ for (; pos < input.length(); pos++) { char c = input.charAt(pos); if (c !...
java
private static int skipWhitespace(String input, int pos) { for (; pos < input.length(); pos++) { char c = input.charAt(pos); if (c != ' ' && c != '\t') { break; } } return pos; }
[ "private", "static", "int", "skipWhitespace", "(", "String", "input", ",", "int", "pos", ")", "{", "for", "(", ";", "pos", "<", "input", ".", "length", "(", ")", ";", "pos", "++", ")", "{", "char", "c", "=", "input", ".", "charAt", "(", "pos", ")...
Returns the next non-whitespace character in {@code input} that is white space. Result is undefined if input contains newline characters.
[ "Returns", "the", "next", "non", "-", "whitespace", "character", "in", "{" ]
train
https://github.com/lexs/webimageloader/blob/b29bac036a3855e2f0adf95d3391ee4bbc14457c/webimageloader/src/main/java/com/webimageloader/util/HeaderParser.java#L56-L64
Azure/azure-sdk-for-java
locks/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksInner.java
ManagementLocksInner.createOrUpdateAtSubscriptionLevelAsync
public Observable<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner parameters) { """ Creates or updates a management lock at the subscription level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management ...
java
public Observable<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner parameters) { return createOrUpdateAtSubscriptionLevelWithServiceResponseAsync(lockName, parameters).map(new Func1<ServiceResponse<ManagementLockObjectInner>, ManagementLockObjectInner>...
[ "public", "Observable", "<", "ManagementLockObjectInner", ">", "createOrUpdateAtSubscriptionLevelAsync", "(", "String", "lockName", ",", "ManagementLockObjectInner", "parameters", ")", "{", "return", "createOrUpdateAtSubscriptionLevelWithServiceResponseAsync", "(", "lockName", ",...
Creates or updates a management lock at the subscription level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access ...
[ "Creates", "or", "updates", "a", "management", "lock", "at", "the", "subscription", "level", ".", "When", "you", "apply", "a", "lock", "at", "a", "parent", "scope", "all", "child", "resources", "inherit", "the", "same", "lock", ".", "To", "create", "manage...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/locks/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksInner.java#L1070-L1077
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java
BucketImpl.insertByKey
public Element insertByKey(Object key, Object object) { """ Insert the specified object into the bucket and associate it with the specified key. Returns the Element which holds the newly- inserted object. @param key key of the object element to be inserted. @param object the object to be inserted for the spe...
java
public Element insertByKey(Object key, Object object) { Element element = new Element(this, key, object); add(element); return element; }
[ "public", "Element", "insertByKey", "(", "Object", "key", ",", "Object", "object", ")", "{", "Element", "element", "=", "new", "Element", "(", "this", ",", "key", ",", "object", ")", ";", "add", "(", "element", ")", ";", "return", "element", ";", "}" ]
Insert the specified object into the bucket and associate it with the specified key. Returns the Element which holds the newly- inserted object. @param key key of the object element to be inserted. @param object the object to be inserted for the specified key. @return the Element holding the target object just inserte...
[ "Insert", "the", "specified", "object", "into", "the", "bucket", "and", "associate", "it", "with", "the", "specified", "key", ".", "Returns", "the", "Element", "which", "holds", "the", "newly", "-", "inserted", "object", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java#L105-L110
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jaas.common/src/com/ibm/wsspi/security/auth/callback/WSMappingCallbackHandler.java
WSMappingCallbackHandler.handle
@Override public void handle(Callback[] callbacks) throws UnsupportedCallbackException { """ <p> Return a properties object and a reference of the target <code>ManagedConnectionFactory</code> via <code>Callback[]</code>. """ for (Callback callback : callbacks) { if (callback instanceo...
java
@Override public void handle(Callback[] callbacks) throws UnsupportedCallbackException { for (Callback callback : callbacks) { if (callback instanceof WSManagedConnectionFactoryCallback) { ((WSManagedConnectionFactoryCallback) callback).setManagedConnectionFactory(managedConnecti...
[ "@", "Override", "public", "void", "handle", "(", "Callback", "[", "]", "callbacks", ")", "throws", "UnsupportedCallbackException", "{", "for", "(", "Callback", "callback", ":", "callbacks", ")", "{", "if", "(", "callback", "instanceof", "WSManagedConnectionFactor...
<p> Return a properties object and a reference of the target <code>ManagedConnectionFactory</code> via <code>Callback[]</code>.
[ "<p", ">", "Return", "a", "properties", "object", "and", "a", "reference", "of", "the", "target", "<code", ">", "ManagedConnectionFactory<", "/", "code", ">", "via", "<code", ">", "Callback", "[]", "<", "/", "code", ">", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/wsspi/security/auth/callback/WSMappingCallbackHandler.java#L56-L69
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.importCsvInWorkspace
public Sheet importCsvInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { """ Imports a sheet in given workspace. It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import @param ...
java
public Sheet importCsvInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("workspaces/" + workspaceId + "/sheets/import", file, "text/csv", sheetName, headerRowIndex, primaryRowIndex); }
[ "public", "Sheet", "importCsvInWorkspace", "(", "long", "workspaceId", ",", "String", "file", ",", "String", "sheetName", ",", "Integer", "headerRowIndex", ",", "Integer", "primaryRowIndex", ")", "throws", "SmartsheetException", "{", "return", "importFile", "(", "\"...
Imports a sheet in given workspace. It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import @param workspaceId the workspace id @param file path to the CSV file @param sheetName destination sheet name @param headerRowIndex index (0 based) of row to be used for column names...
[ "Imports", "a", "sheet", "in", "given", "workspace", "." ]
train
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L634-L637
sarl/sarl
contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyGenerator.java
PyGenerator._generate
protected void _generate(SarlClass clazz, PyAppendable it, IExtraLanguageGeneratorContext context) { """ Generate the given object. @param clazz the class. @param it the target for the generated content. @param context the context. """ generateTypeDeclaration( this.qualifiedNameProvider.getFullyQual...
java
protected void _generate(SarlClass clazz, PyAppendable it, IExtraLanguageGeneratorContext context) { generateTypeDeclaration( this.qualifiedNameProvider.getFullyQualifiedName(clazz).toString(), clazz.getName(), clazz.isAbstract(), getSuperTypes(clazz.getExtends(), clazz.getImplements()), getTypeBuilde...
[ "protected", "void", "_generate", "(", "SarlClass", "clazz", ",", "PyAppendable", "it", ",", "IExtraLanguageGeneratorContext", "context", ")", "{", "generateTypeDeclaration", "(", "this", ".", "qualifiedNameProvider", ".", "getFullyQualifiedName", "(", "clazz", ")", "...
Generate the given object. @param clazz the class. @param it the target for the generated content. @param context the context.
[ "Generate", "the", "given", "object", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyGenerator.java#L882-L890
xvik/generics-resolver
src/main/java/ru/vyarus/java/generics/resolver/context/AbstractGenericsContext.java
AbstractGenericsContext.fieldTypeAs
public GenericsContext fieldTypeAs(final Field field, final Class<?> asType) { """ Create generics context for type extending field type. Case: need to analyze field value type, but declared field type is generic sub type. In this situation we can build generics context from required root type (implementation ty...
java
public GenericsContext fieldTypeAs(final Field field, final Class<?> asType) { return switchContext4field(field).inlyingTypeAs(field.getGenericType(), asType); }
[ "public", "GenericsContext", "fieldTypeAs", "(", "final", "Field", "field", ",", "final", "Class", "<", "?", ">", "asType", ")", "{", "return", "switchContext4field", "(", "field", ")", ".", "inlyingTypeAs", "(", "field", ".", "getGenericType", "(", ")", ","...
Create generics context for type extending field type. Case: need to analyze field value type, but declared field type is generic sub type. In this situation we can build generics context from required root type (implementation type) with unknown generics and inject known subtype generics into hierarchy. This is useful...
[ "Create", "generics", "context", "for", "type", "extending", "field", "type", ".", "Case", ":", "need", "to", "analyze", "field", "value", "type", "but", "declared", "field", "type", "is", "generic", "sub", "type", ".", "In", "this", "situation", "we", "ca...
train
https://github.com/xvik/generics-resolver/blob/d7d9d2783265df1178230e8f0b7cb6d853b67a7b/src/main/java/ru/vyarus/java/generics/resolver/context/AbstractGenericsContext.java#L526-L528
phax/ph-schedule
ph-mini-quartz/src/main/java/com/helger/quartz/TriggerBuilder.java
TriggerBuilder.withIdentity
@Nonnull public TriggerBuilder <T> withIdentity (final String name, final String group) { """ Use a TriggerKey with the given name and group to identify the Trigger. <p> If none of the 'withIdentity' methods are set on the TriggerBuilder, then a random, unique TriggerKey will be generated. </p> @param nam...
java
@Nonnull public TriggerBuilder <T> withIdentity (final String name, final String group) { m_aKey = new TriggerKey (name, group); return this; }
[ "@", "Nonnull", "public", "TriggerBuilder", "<", "T", ">", "withIdentity", "(", "final", "String", "name", ",", "final", "String", "group", ")", "{", "m_aKey", "=", "new", "TriggerKey", "(", "name", ",", "group", ")", ";", "return", "this", ";", "}" ]
Use a TriggerKey with the given name and group to identify the Trigger. <p> If none of the 'withIdentity' methods are set on the TriggerBuilder, then a random, unique TriggerKey will be generated. </p> @param name the name element for the Trigger's TriggerKey @param group the group element for the Trigger's TriggerKey...
[ "Use", "a", "TriggerKey", "with", "the", "given", "name", "and", "group", "to", "identify", "the", "Trigger", ".", "<p", ">", "If", "none", "of", "the", "withIdentity", "methods", "are", "set", "on", "the", "TriggerBuilder", "then", "a", "random", "unique"...
train
https://github.com/phax/ph-schedule/blob/b000790b46a9f8d23ad44cc20591f753d07c0229/ph-mini-quartz/src/main/java/com/helger/quartz/TriggerBuilder.java#L154-L159
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/actions/ReceiveMessageAction.java
ReceiveMessageAction.doExecute
@Override public void doExecute(TestContext context) { """ Method receives a message via {@link com.consol.citrus.endpoint.Endpoint} instance constructs a validation context and starts the message validation via {@link MessageValidator}. @throws CitrusRuntimeException """ try { Mes...
java
@Override public void doExecute(TestContext context) { try { Message receivedMessage; String selector = MessageSelectorBuilder.build(messageSelector, messageSelectorMap, context); //receive message either selected or plain with message receiver if (StringUtil...
[ "@", "Override", "public", "void", "doExecute", "(", "TestContext", "context", ")", "{", "try", "{", "Message", "receivedMessage", ";", "String", "selector", "=", "MessageSelectorBuilder", ".", "build", "(", "messageSelector", ",", "messageSelectorMap", ",", "cont...
Method receives a message via {@link com.consol.citrus.endpoint.Endpoint} instance constructs a validation context and starts the message validation via {@link MessageValidator}. @throws CitrusRuntimeException
[ "Method", "receives", "a", "message", "via", "{", "@link", "com", ".", "consol", ".", "citrus", ".", "endpoint", ".", "Endpoint", "}", "instance", "constructs", "a", "validation", "context", "and", "starts", "the", "message", "validation", "via", "{", "@link...
train
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/actions/ReceiveMessageAction.java#L110-L132
grails/grails-core
grails-core/src/main/groovy/grails/util/GrailsMetaClassUtils.java
GrailsMetaClassUtils.getPropertyIfExists
@SuppressWarnings("unchecked") public static <T> T getPropertyIfExists(Object instance, String property, Class<T> requiredType) { """ Obtains a property of an instance if it exists @param instance The instance @param property The property @param requiredType The required type of the property @return The ...
java
@SuppressWarnings("unchecked") public static <T> T getPropertyIfExists(Object instance, String property, Class<T> requiredType) { MetaClass metaClass = getMetaClass(instance); MetaProperty metaProperty = metaClass.getMetaProperty(property); if (metaProperty != null) { Object val...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "<", "T", ">", "T", "getPropertyIfExists", "(", "Object", "instance", ",", "String", "property", ",", "Class", "<", "T", ">", "requiredType", ")", "{", "MetaClass", "metaClass", "=", "ge...
Obtains a property of an instance if it exists @param instance The instance @param property The property @param requiredType The required type of the property @return The property value
[ "Obtains", "a", "property", "of", "an", "instance", "if", "it", "exists" ]
train
https://github.com/grails/grails-core/blob/c0b08aa995b0297143b75d05642abba8cb7b4122/grails-core/src/main/groovy/grails/util/GrailsMetaClassUtils.java#L207-L219
threerings/gwt-utils
src/main/java/com/threerings/gwt/ui/WidgetUtil.java
WidgetUtil.createFlashContainer
public static HTML createFlashContainer ( String ident, String movie, int width, int height, String flashVars) { """ Creates the HTML to display a Flash movie for the browser on which we're running. @param flashVars a pre-URLEncoded string containing flash variables, or null. http://www.adobe.com/cfusi...
java
public static HTML createFlashContainer ( String ident, String movie, int width, int height, String flashVars) { return createContainer(new FlashObject(ident, movie, width, height, flashVars)); }
[ "public", "static", "HTML", "createFlashContainer", "(", "String", "ident", ",", "String", "movie", ",", "int", "width", ",", "int", "height", ",", "String", "flashVars", ")", "{", "return", "createContainer", "(", "new", "FlashObject", "(", "ident", ",", "m...
Creates the HTML to display a Flash movie for the browser on which we're running. @param flashVars a pre-URLEncoded string containing flash variables, or null. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16417
[ "Creates", "the", "HTML", "to", "display", "a", "Flash", "movie", "for", "the", "browser", "on", "which", "we", "re", "running", "." ]
train
https://github.com/threerings/gwt-utils/blob/31b31a23b667f2a9c683160d77646db259f2aae5/src/main/java/com/threerings/gwt/ui/WidgetUtil.java#L141-L145
UrielCh/ovh-java-sdk
ovh-java-sdk-domain/src/main/java/net/minidev/ovh/api/ApiOvhDomain.java
ApiOvhDomain.data_afnicAssociationInformation_associationInformationId_GET
public OvhAssociationContact data_afnicAssociationInformation_associationInformationId_GET(Long associationInformationId) throws IOException { """ Retrieve an association information according to Afnic REST: GET /domain/data/afnicAssociationInformation/{associationInformationId} @param associationInformationId...
java
public OvhAssociationContact data_afnicAssociationInformation_associationInformationId_GET(Long associationInformationId) throws IOException { String qPath = "/domain/data/afnicAssociationInformation/{associationInformationId}"; StringBuilder sb = path(qPath, associationInformationId); String resp = exec(qPath, "...
[ "public", "OvhAssociationContact", "data_afnicAssociationInformation_associationInformationId_GET", "(", "Long", "associationInformationId", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/domain/data/afnicAssociationInformation/{associationInformationId}\"", ";", "Strin...
Retrieve an association information according to Afnic REST: GET /domain/data/afnicAssociationInformation/{associationInformationId} @param associationInformationId [required] Association Information ID
[ "Retrieve", "an", "association", "information", "according", "to", "Afnic" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-domain/src/main/java/net/minidev/ovh/api/ApiOvhDomain.java#L217-L222
landawn/AbacusUtil
src/com/landawn/abacus/util/StringUtil.java
StringUtil.validSurrogatePairAt
static boolean validSurrogatePairAt(final String str, final int index) { """ Note: copy rights: Google Guava. True when a valid surrogate pair starts at the given {@code index} in the given {@code string}. Out-of-range indexes return false. """ return index >= 0 && index <= (str.length() - 2) && C...
java
static boolean validSurrogatePairAt(final String str, final int index) { return index >= 0 && index <= (str.length() - 2) && Character.isHighSurrogate(str.charAt(index)) && Character.isLowSurrogate(str.charAt(index + 1)); }
[ "static", "boolean", "validSurrogatePairAt", "(", "final", "String", "str", ",", "final", "int", "index", ")", "{", "return", "index", ">=", "0", "&&", "index", "<=", "(", "str", ".", "length", "(", ")", "-", "2", ")", "&&", "Character", ".", "isHighSu...
Note: copy rights: Google Guava. True when a valid surrogate pair starts at the given {@code index} in the given {@code string}. Out-of-range indexes return false.
[ "Note", ":", "copy", "rights", ":", "Google", "Guava", "." ]
train
https://github.com/landawn/AbacusUtil/blob/544b7720175d15e9329f83dd22a8cc5fa4515e12/src/com/landawn/abacus/util/StringUtil.java#L4315-L4317
couchbase/couchbase-java-client
src/main/java/com/couchbase/client/java/query/dsl/functions/ArrayFunctions.java
ArrayFunctions.arrayRemove
public static Expression arrayRemove(String expression, Expression value) { """ Returned expression results in new array with all occurrences of value removed. """ return arrayRemove(x(expression), value); }
java
public static Expression arrayRemove(String expression, Expression value) { return arrayRemove(x(expression), value); }
[ "public", "static", "Expression", "arrayRemove", "(", "String", "expression", ",", "Expression", "value", ")", "{", "return", "arrayRemove", "(", "x", "(", "expression", ")", ",", "value", ")", ";", "}" ]
Returned expression results in new array with all occurrences of value removed.
[ "Returned", "expression", "results", "in", "new", "array", "with", "all", "occurrences", "of", "value", "removed", "." ]
train
https://github.com/couchbase/couchbase-java-client/blob/f36a0ee0c66923bdde47838ca543e50cbaa99e14/src/main/java/com/couchbase/client/java/query/dsl/functions/ArrayFunctions.java#L351-L353
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/FileOperations.java
FileOperations.getFileFromComputeNode
public void getFileFromComputeNode(String poolId, String nodeId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors, OutputStream outputStream) throws BatchErrorException, IOException { """ Downloads the specified file from the specified compute node. @param poolId The ID of the pool that contai...
java
public void getFileFromComputeNode(String poolId, String nodeId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors, OutputStream outputStream) throws BatchErrorException, IOException { FileGetFromComputeNodeOptions options = new FileGetFromComputeNodeOptions(); BehaviorManager bhMgr = n...
[ "public", "void", "getFileFromComputeNode", "(", "String", "poolId", ",", "String", "nodeId", ",", "String", "fileName", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ",", "OutputStream", "outputStream", ")", "throws", "BatchErrorException", ...
Downloads the specified file from the specified compute node. @param poolId The ID of the pool that contains the compute node. @param nodeId The ID of the compute node. @param fileName The name of the file to download. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to...
[ "Downloads", "the", "specified", "file", "from", "the", "specified", "compute", "node", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/FileOperations.java#L312-L318
jenkinsci/jenkins
core/src/main/java/hudson/Util.java
Util.getNearestAncestorOfTypeOrThrow
@Restricted(NoExternalUse.class) public static @Nonnull <T> T getNearestAncestorOfTypeOrThrow(@Nonnull StaplerRequest request, @Nonnull Class<T> clazz) { """ Find the specific ancestor, or throw an exception. Useful for an ancestor we know is inside the URL to ease readability """ T t = request.fi...
java
@Restricted(NoExternalUse.class) public static @Nonnull <T> T getNearestAncestorOfTypeOrThrow(@Nonnull StaplerRequest request, @Nonnull Class<T> clazz) { T t = request.findAncestorObject(clazz); if (t == null) { throw new IllegalArgumentException("No ancestor of type " + clazz.getName() ...
[ "@", "Restricted", "(", "NoExternalUse", ".", "class", ")", "public", "static", "@", "Nonnull", "<", "T", ">", "T", "getNearestAncestorOfTypeOrThrow", "(", "@", "Nonnull", "StaplerRequest", "request", ",", "@", "Nonnull", "Class", "<", "T", ">", "clazz", ")"...
Find the specific ancestor, or throw an exception. Useful for an ancestor we know is inside the URL to ease readability
[ "Find", "the", "specific", "ancestor", "or", "throw", "an", "exception", ".", "Useful", "for", "an", "ancestor", "we", "know", "is", "inside", "the", "URL", "to", "ease", "readability" ]
train
https://github.com/jenkinsci/jenkins/blob/44c4d3989232082c254d27ae360aa810669f44b7/core/src/main/java/hudson/Util.java#L1532-L1539
EMCECS/nfs-client-java
src/main/java/com/emc/ecs/nfsclient/rpc/Xdr.java
Xdr.putPayloads
public void putPayloads(List<ByteBuffer> payloads, int size) { """ add payloads, more than one can be added. @param payloads @param size """ putInt(size); if (_payloads == null) { _payloads = payloads; } else { _payloads.addAll(payloads); } _p...
java
public void putPayloads(List<ByteBuffer> payloads, int size) { putInt(size); if (_payloads == null) { _payloads = payloads; } else { _payloads.addAll(payloads); } _payloadsSize += size; }
[ "public", "void", "putPayloads", "(", "List", "<", "ByteBuffer", ">", "payloads", ",", "int", "size", ")", "{", "putInt", "(", "size", ")", ";", "if", "(", "_payloads", "==", "null", ")", "{", "_payloads", "=", "payloads", ";", "}", "else", "{", "_pa...
add payloads, more than one can be added. @param payloads @param size
[ "add", "payloads", "more", "than", "one", "can", "be", "added", "." ]
train
https://github.com/EMCECS/nfs-client-java/blob/7ba25bad5052b95cd286052745327729288b2843/src/main/java/com/emc/ecs/nfsclient/rpc/Xdr.java#L402-L411
jlinn/quartz-redis-jobstore
src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java
AbstractRedisStorage.setTriggerState
public boolean setTriggerState(final RedisTriggerState state, final double score, final String triggerHashKey, T jedis) throws JobPersistenceException { """ Set a trigger state by adding the trigger to the relevant sorted set, using its next fire time as the score. @param state the new state to be set @param sco...
java
public boolean setTriggerState(final RedisTriggerState state, final double score, final String triggerHashKey, T jedis) throws JobPersistenceException{ boolean success = false; if(state != null){ unsetTriggerState(triggerHashKey, jedis); success = jedis.zadd(redisSchema.triggerSt...
[ "public", "boolean", "setTriggerState", "(", "final", "RedisTriggerState", "state", ",", "final", "double", "score", ",", "final", "String", "triggerHashKey", ",", "T", "jedis", ")", "throws", "JobPersistenceException", "{", "boolean", "success", "=", "false", ";"...
Set a trigger state by adding the trigger to the relevant sorted set, using its next fire time as the score. @param state the new state to be set @param score the trigger's next fire time @param triggerHashKey the trigger hash key @param jedis a thread-safe Redis connection @return true if set, false if the trigger was...
[ "Set", "a", "trigger", "state", "by", "adding", "the", "trigger", "to", "the", "relevant", "sorted", "set", "using", "its", "next", "fire", "time", "as", "the", "score", "." ]
train
https://github.com/jlinn/quartz-redis-jobstore/blob/be9a52ee776d8a09866fe99fd9718bc13a0cb992/src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java#L338-L345
unbescape/unbescape
src/main/java/org/unbescape/csv/CsvEscape.java
CsvEscape.unescapeCsv
public static void unescapeCsv(final String text, final Writer writer) throws IOException { """ <p> Perform a CSV <strong>unescape</strong> operation on a <tt>String</tt> input, writing results to a <tt>Writer</tt>. </p> <p> This method is <strong>thread-safe</strong>. </p> @param text the <tt...
java
public static void unescapeCsv(final String text, final Writer writer) throws IOException { if (writer == null) { throw new IllegalArgumentException("Argument 'writer' cannot be null"); } CsvEscapeUtil.unescape(new InternalStringReader(text), writer); }
[ "public", "static", "void", "unescapeCsv", "(", "final", "String", "text", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "if", "(", "writer", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Argument 'writer' can...
<p> Perform a CSV <strong>unescape</strong> operation on a <tt>String</tt> input, writing results to a <tt>Writer</tt>. </p> <p> This method is <strong>thread-safe</strong>. </p> @param text the <tt>String</tt> to be unescaped. @param writer the <tt>java.io.Writer</tt> to which the unescaped result will be written. No...
[ "<p", ">", "Perform", "a", "CSV", "<strong", ">", "unescape<", "/", "strong", ">", "operation", "on", "a", "<tt", ">", "String<", "/", "tt", ">", "input", "writing", "results", "to", "a", "<tt", ">", "Writer<", "/", "tt", ">", ".", "<", "/", "p", ...
train
https://github.com/unbescape/unbescape/blob/ec5435fb3508c2eed25d8165dc27ded2602cae13/src/main/java/org/unbescape/csv/CsvEscape.java#L275-L284
UrielCh/ovh-java-sdk
ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java
ApiOvhOrder.email_exchange_organizationName_service_exchangeService_account_duration_GET
public OvhOrder email_exchange_organizationName_service_exchangeService_account_duration_GET(String organizationName, String exchangeService, String duration, OvhOvhLicenceEnum licence, Long number, OvhAccountQuotaEnum storageQuota) throws IOException { """ Get prices and contracts information REST: GET /order/...
java
public OvhOrder email_exchange_organizationName_service_exchangeService_account_duration_GET(String organizationName, String exchangeService, String duration, OvhOvhLicenceEnum licence, Long number, OvhAccountQuotaEnum storageQuota) throws IOException { String qPath = "/order/email/exchange/{organizationName}/service...
[ "public", "OvhOrder", "email_exchange_organizationName_service_exchangeService_account_duration_GET", "(", "String", "organizationName", ",", "String", "exchangeService", ",", "String", "duration", ",", "OvhOvhLicenceEnum", "licence", ",", "Long", "number", ",", "OvhAccountQuot...
Get prices and contracts information REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration} @param storageQuota [required] The storage quota for the account(s) in GB (default = 50) @param number [required] Number of Accounts to order @param licence [required] Licence type for t...
[ "Get", "prices", "and", "contracts", "information" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java#L3924-L3932
craigwblake/redline
src/main/java/org/redline_rpm/Builder.java
Builder.addLink
public void addLink( final String path, final String target, int permissions, String username, String groupname) throws NoSuchAlgorithmException, IOException { """ Adds a symbolic link to the repository. @param path the absolute path at which this link will be installed. @param target the path of the file this...
java
public void addLink( final String path, final String target, int permissions, String username, String groupname) throws NoSuchAlgorithmException, IOException { contents.addLink( path, target, permissions, username, groupname); }
[ "public", "void", "addLink", "(", "final", "String", "path", ",", "final", "String", "target", ",", "int", "permissions", ",", "String", "username", ",", "String", "groupname", ")", "throws", "NoSuchAlgorithmException", ",", "IOException", "{", "contents", ".", ...
Adds a symbolic link to the repository. @param path the absolute path at which this link will be installed. @param target the path of the file this link will point to. @param permissions the permissions flags @param username user owner of the link @param groupname group owner of the link @throws NoSuchAlgorithmExcepti...
[ "Adds", "a", "symbolic", "link", "to", "the", "repository", "." ]
train
https://github.com/craigwblake/redline/blob/b2fee5eb6c8150e801a132a4478a643f9ec0df04/src/main/java/org/redline_rpm/Builder.java#L1162-L1164
aalmiray/Json-lib
src/main/jdk15/net/sf/json/JSONObject.java
JSONObject.element
public JSONObject element( String key, Collection value, JsonConfig jsonConfig ) { """ Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection. @param key A key string. @param value A Collection value. @return this. @throws JSONException """ ...
java
public JSONObject element( String key, Collection value, JsonConfig jsonConfig ) { if( !(value instanceof JSONArray) ){ value = JSONArray.fromObject( value, jsonConfig ); } return setInternal( key, value, jsonConfig ); }
[ "public", "JSONObject", "element", "(", "String", "key", ",", "Collection", "value", ",", "JsonConfig", "jsonConfig", ")", "{", "if", "(", "!", "(", "value", "instanceof", "JSONArray", ")", ")", "{", "value", "=", "JSONArray", ".", "fromObject", "(", "valu...
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection. @param key A key string. @param value A Collection value. @return this. @throws JSONException
[ "Put", "a", "key", "/", "value", "pair", "in", "the", "JSONObject", "where", "the", "value", "will", "be", "a", "JSONArray", "which", "is", "produced", "from", "a", "Collection", "." ]
train
https://github.com/aalmiray/Json-lib/blob/9e2b3376ee8f511a48aa7ac05f75a7414e02280f/src/main/jdk15/net/sf/json/JSONObject.java#L1672-L1677
Whiley/WhileyCompiler
src/main/java/wyc/io/WhileyFileParser.java
WhileyFileParser.parseBitwiseComplementExpression
private Expr parseBitwiseComplementExpression(EnclosingScope scope, boolean terminated) { """ Parse a bitwise complement expression, which has the form: <pre> TermExpr::= ... | '~' Expr// bitwise complement </pre> @param scope The enclosing scope for this statement, which determines the set of visible (...
java
private Expr parseBitwiseComplementExpression(EnclosingScope scope, boolean terminated) { int start = index; match(Tilde); Expr expression = parseExpression(scope, terminated); return annotateSourceLocation(new Expr.BitwiseComplement(Type.Void, expression), start); }
[ "private", "Expr", "parseBitwiseComplementExpression", "(", "EnclosingScope", "scope", ",", "boolean", "terminated", ")", "{", "int", "start", "=", "index", ";", "match", "(", "Tilde", ")", ";", "Expr", "expression", "=", "parseExpression", "(", "scope", ",", ...
Parse a bitwise complement expression, which has the form: <pre> TermExpr::= ... | '~' Expr// bitwise complement </pre> @param scope The enclosing scope for this statement, which determines the set of visible (i.e. declared) variables and also the current indentation level. @param terminated This indicates that the e...
[ "Parse", "a", "bitwise", "complement", "expression", "which", "has", "the", "form", ":" ]
train
https://github.com/Whiley/WhileyCompiler/blob/680f8a657d3fc286f8cc422755988b6d74ab3f4c/src/main/java/wyc/io/WhileyFileParser.java#L3272-L3277
AgNO3/jcifs-ng
src/main/java/jcifs/util/transport/Transport.java
Transport.readn
public static int readn ( InputStream in, byte[] b, int off, int len ) throws IOException { """ Read bytes from the input stream into a buffer @param in @param b @param off @param len @return number of bytes read @throws IOException """ int i = 0, n = -5; if ( off + len > b.length ) { ...
java
public static int readn ( InputStream in, byte[] b, int off, int len ) throws IOException { int i = 0, n = -5; if ( off + len > b.length ) { throw new IOException("Buffer too short, bufsize " + b.length + " read " + len); } while ( i < len ) { n = in.read(b, off...
[ "public", "static", "int", "readn", "(", "InputStream", "in", ",", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "len", ")", "throws", "IOException", "{", "int", "i", "=", "0", ",", "n", "=", "-", "5", ";", "if", "(", "off", "+", "len",...
Read bytes from the input stream into a buffer @param in @param b @param off @param len @return number of bytes read @throws IOException
[ "Read", "bytes", "from", "the", "input", "stream", "into", "a", "buffer" ]
train
https://github.com/AgNO3/jcifs-ng/blob/0311107a077ea372527ae74839eec8042197332f/src/main/java/jcifs/util/transport/Transport.java#L62-L78
mikepenz/MaterialDrawer
app/src/main/java/com/mikepenz/materialdrawer/app/AdvancedActivity.java
AdvancedActivity.buildHeader
private void buildHeader(boolean compact, Bundle savedInstanceState) { """ small helper method to reuse the logic to build the AccountHeader this will be used to replace the header of the drawer with a compact/normal header @param compact @param savedInstanceState """ // Create the AccountHeader ...
java
private void buildHeader(boolean compact, Bundle savedInstanceState) { // Create the AccountHeader headerResult = new AccountHeaderBuilder() .withActivity(this) .withHeaderBackground(R.drawable.header) .withCompactStyle(compact) .addProfile...
[ "private", "void", "buildHeader", "(", "boolean", "compact", ",", "Bundle", "savedInstanceState", ")", "{", "// Create the AccountHeader", "headerResult", "=", "new", "AccountHeaderBuilder", "(", ")", ".", "withActivity", "(", "this", ")", ".", "withHeaderBackground",...
small helper method to reuse the logic to build the AccountHeader this will be used to replace the header of the drawer with a compact/normal header @param compact @param savedInstanceState
[ "small", "helper", "method", "to", "reuse", "the", "logic", "to", "build", "the", "AccountHeader", "this", "will", "be", "used", "to", "replace", "the", "header", "of", "the", "drawer", "with", "a", "compact", "/", "normal", "header" ]
train
https://github.com/mikepenz/MaterialDrawer/blob/f4fb31635767edead0a01cee7b7588942b89d8d9/app/src/main/java/com/mikepenz/materialdrawer/app/AdvancedActivity.java#L120-L158
gallandarakhneorg/afc
advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/dfx/Rectangle2dfx.java
Rectangle2dfx.widthProperty
@Pure public DoubleProperty widthProperty() { """ Replies the property that is the width of the box. @return the width property. """ if (this.width == null) { this.width = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.WIDTH); this.width.bind(Bindings.subtract(maxXProperty(), minXProperty()))...
java
@Pure public DoubleProperty widthProperty() { if (this.width == null) { this.width = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.WIDTH); this.width.bind(Bindings.subtract(maxXProperty(), minXProperty())); } return this.width; }
[ "@", "Pure", "public", "DoubleProperty", "widthProperty", "(", ")", "{", "if", "(", "this", ".", "width", "==", "null", ")", "{", "this", ".", "width", "=", "new", "ReadOnlyDoubleWrapper", "(", "this", ",", "MathFXAttributeNames", ".", "WIDTH", ")", ";", ...
Replies the property that is the width of the box. @return the width property.
[ "Replies", "the", "property", "that", "is", "the", "width", "of", "the", "box", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/mathfx/src/main/java/org/arakhne/afc/math/geometry/d2/dfx/Rectangle2dfx.java#L292-L299
TheBlackChamber/commons-encryption
src/main/java/net/theblackchamber/crypto/implementations/FileEncryptor.java
FileEncryptor.encryptStream
public void encryptStream(InputStream clearInputStream, OutputStream encryptedOutputStream) throws IOException, MissingParameterException { """ Encrypt the contents of an input stream and write the encrypted data to the output stream. @param clearInputStream Input stream containing the data to be encrypted. ...
java
public void encryptStream(InputStream clearInputStream, OutputStream encryptedOutputStream) throws IOException, MissingParameterException { byte[] clearBytes = IOUtils.toByteArray(clearInputStream); byte[] cipherBytes = encryptionProvider.encrypt(clearBytes); //encryptedOutputStream = new ByteArrayOutputStream...
[ "public", "void", "encryptStream", "(", "InputStream", "clearInputStream", ",", "OutputStream", "encryptedOutputStream", ")", "throws", "IOException", ",", "MissingParameterException", "{", "byte", "[", "]", "clearBytes", "=", "IOUtils", ".", "toByteArray", "(", "clea...
Encrypt the contents of an input stream and write the encrypted data to the output stream. @param clearInputStream Input stream containing the data to be encrypted. @param encryptedOutputStream Output stream which the encrypted data will be written to. @throws IOException @throws MissingParameterException
[ "Encrypt", "the", "contents", "of", "an", "input", "stream", "and", "write", "the", "encrypted", "data", "to", "the", "output", "stream", "." ]
train
https://github.com/TheBlackChamber/commons-encryption/blob/0cbbf7c07ae3c133cc82b6dde7ab7af91ddf64d0/src/main/java/net/theblackchamber/crypto/implementations/FileEncryptor.java#L142-L156
JOML-CI/JOML
src/org/joml/Matrix4d.java
Matrix4d.setTranslation
public Matrix4d setTranslation(double x, double y, double z) { """ Set only the translation components <code>(m30, m31, m32)</code> of this matrix to the given values <code>(x, y, z)</code>. <p> To build a translation matrix instead, use {@link #translation(double, double, double)}. To apply a translation, use ...
java
public Matrix4d setTranslation(double x, double y, double z) { m30 = x; m31 = y; m32 = z; properties &= ~(PROPERTY_PERSPECTIVE | PROPERTY_IDENTITY); return this; }
[ "public", "Matrix4d", "setTranslation", "(", "double", "x", ",", "double", "y", ",", "double", "z", ")", "{", "m30", "=", "x", ";", "m31", "=", "y", ";", "m32", "=", "z", ";", "properties", "&=", "~", "(", "PROPERTY_PERSPECTIVE", "|", "PROPERTY_IDENTIT...
Set only the translation components <code>(m30, m31, m32)</code> of this matrix to the given values <code>(x, y, z)</code>. <p> To build a translation matrix instead, use {@link #translation(double, double, double)}. To apply a translation, use {@link #translate(double, double, double)}. @see #translation(double, doub...
[ "Set", "only", "the", "translation", "components", "<code", ">", "(", "m30", "m31", "m32", ")", "<", "/", "code", ">", "of", "this", "matrix", "to", "the", "given", "values", "<code", ">", "(", "x", "y", "z", ")", "<", "/", "code", ">", ".", "<p"...
train
https://github.com/JOML-CI/JOML/blob/ce2652fc236b42bda3875c591f8e6645048a678f/src/org/joml/Matrix4d.java#L3173-L3179
alkacon/opencms-core
src/org/opencms/mail/CmsMailSettings.java
CmsMailSettings.addMailHost
public void addMailHost(String hostname, String order, String protocol, String username, String password) { """ Adds a new mail host to the internal list of mail hosts with default port 25.<p> @param hostname the name of the mail host @param order the order in which the host is tried @param protocol the proto...
java
public void addMailHost(String hostname, String order, String protocol, String username, String password) { addMailHost(hostname, "25", order, protocol, null, username, password); }
[ "public", "void", "addMailHost", "(", "String", "hostname", ",", "String", "order", ",", "String", "protocol", ",", "String", "username", ",", "String", "password", ")", "{", "addMailHost", "(", "hostname", ",", "\"25\"", ",", "order", ",", "protocol", ",", ...
Adds a new mail host to the internal list of mail hosts with default port 25.<p> @param hostname the name of the mail host @param order the order in which the host is tried @param protocol the protocol to use (default "smtp") @param username the user name to use for authentication @param password the password to use f...
[ "Adds", "a", "new", "mail", "host", "to", "the", "internal", "list", "of", "mail", "hosts", "with", "default", "port", "25", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/mail/CmsMailSettings.java#L84-L87
trello/RxLifecycle
rxlifecycle/src/main/java/com/trello/rxlifecycle3/RxLifecycle.java
RxLifecycle.bindUntilEvent
@Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bindUntilEvent(@Nonnull final Observable<R> lifecycle, @Nonnull final R event) { """ Binds the given source to a lifecycle. <p> When the lifecycle event occurs, the sour...
java
@Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bindUntilEvent(@Nonnull final Observable<R> lifecycle, @Nonnull final R event) { checkNotNull(lifecycle, "lifecycle == null"); checkNotNull(event, "event == nul...
[ "@", "Nonnull", "@", "CheckReturnValue", "public", "static", "<", "T", ",", "R", ">", "LifecycleTransformer", "<", "T", ">", "bindUntilEvent", "(", "@", "Nonnull", "final", "Observable", "<", "R", ">", "lifecycle", ",", "@", "Nonnull", "final", "R", "event...
Binds the given source to a lifecycle. <p> When the lifecycle event occurs, the source will cease to emit any notifications. @param lifecycle the lifecycle sequence @param event the event which should conclude notifications from the source @return a reusable {@link LifecycleTransformer} that unsubscribes the source at...
[ "Binds", "the", "given", "source", "to", "a", "lifecycle", ".", "<p", ">", "When", "the", "lifecycle", "event", "occurs", "the", "source", "will", "cease", "to", "emit", "any", "notifications", "." ]
train
https://github.com/trello/RxLifecycle/blob/b0a9eb54867f0d72b9614d24091c59dfd4b2d5c1/rxlifecycle/src/main/java/com/trello/rxlifecycle3/RxLifecycle.java#L42-L49
beangle/beangle3
ioc/spring/src/main/java/org/beangle/inject/spring/config/BeanDefinitionParser.java
BeanDefinitionParser.parseKeyElement
protected Object parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName) { """ Parse a key sub-element of a map element. @param keyEle a {@link org.w3c.dom.Element} object. @param bd a {@link org.springframework.beans.factory.config.BeanDefinition} object. @param defaultKeyTypeName a {@l...
java
protected Object parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName) { NodeList nl = keyEle.getChildNodes(); Element subElement = null; for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { // Child element is what we'...
[ "protected", "Object", "parseKeyElement", "(", "Element", "keyEle", ",", "BeanDefinition", "bd", ",", "String", "defaultKeyTypeName", ")", "{", "NodeList", "nl", "=", "keyEle", ".", "getChildNodes", "(", ")", ";", "Element", "subElement", "=", "null", ";", "fo...
Parse a key sub-element of a map element. @param keyEle a {@link org.w3c.dom.Element} object. @param bd a {@link org.springframework.beans.factory.config.BeanDefinition} object. @param defaultKeyTypeName a {@link java.lang.String} object. @return a {@link java.lang.Object} object.
[ "Parse", "a", "key", "sub", "-", "element", "of", "a", "map", "element", "." ]
train
https://github.com/beangle/beangle3/blob/33df2873a5f38e28ac174a1d3b8144eb2f808e64/ioc/spring/src/main/java/org/beangle/inject/spring/config/BeanDefinitionParser.java#L990-L1003
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/predicate/FullText.java
FullText.fullTextMatch
public static P<String> fullTextMatch(String configuration, boolean plain, final String query, final String value) { """ Build full text matching predicate (use in where(...)) @param configuration the full text configuration to use @param plain should we use plain mode? @param query the actual query (left hand ...
java
public static P<String> fullTextMatch(String configuration, boolean plain, final String query, final String value){ return new P<>(new FullText(configuration,query,plain),value); }
[ "public", "static", "P", "<", "String", ">", "fullTextMatch", "(", "String", "configuration", ",", "boolean", "plain", ",", "final", "String", "query", ",", "final", "String", "value", ")", "{", "return", "new", "P", "<>", "(", "new", "FullText", "(", "c...
Build full text matching predicate (use in where(...)) @param configuration the full text configuration to use @param plain should we use plain mode? @param query the actual query (left hand side) @param value the value to search for @return the predicate
[ "Build", "full", "text", "matching", "predicate", "(", "use", "in", "where", "(", "...", "))" ]
train
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/predicate/FullText.java#L65-L67
NextFaze/power-adapters
power-adapters-data/src/main/java/com/nextfaze/poweradapters/data/Data.java
Data.fromCursor
@NonNull public static <T> Data<T> fromCursor(@NonNull Callable<Cursor> loader, @NonNull RowMapper<T> rowMapper) { """ Creates a {@linkplain Data} that presents elements of a {@link Cursor} retrieved by invoking the specified loader function in a worker thread. {@link ...
java
@NonNull public static <T> Data<T> fromCursor(@NonNull Callable<Cursor> loader, @NonNull RowMapper<T> rowMapper) { return fromCursor(loader, rowMapper, DataExecutors.defaultExecutor()); }
[ "@", "NonNull", "public", "static", "<", "T", ">", "Data", "<", "T", ">", "fromCursor", "(", "@", "NonNull", "Callable", "<", "Cursor", ">", "loader", ",", "@", "NonNull", "RowMapper", "<", "T", ">", "rowMapper", ")", "{", "return", "fromCursor", "(", ...
Creates a {@linkplain Data} that presents elements of a {@link Cursor} retrieved by invoking the specified loader function in a worker thread. {@link T} instances are mapped using the specified row mapper function. The cursor's position will be pre-configured - callers don't need to set it. <p> The {@linkplain Data} wi...
[ "Creates", "a", "{" ]
train
https://github.com/NextFaze/power-adapters/blob/cdf00b1b723ed9d6bcd549ae9741a19dd59651e1/power-adapters-data/src/main/java/com/nextfaze/poweradapters/data/Data.java#L558-L562
mojohaus/jaxb2-maven-plugin
src/main/java/org/codehaus/mojo/jaxb2/shared/filters/Filters.java
Filters.rejectAtLeastOnce
public static <T> boolean rejectAtLeastOnce(final T object, final List<Filter<T>> filters) { """ Algorithms for rejecting the supplied object if at least one of the supplied Filters does not accept it. @param object The object to reject (or not). @param filters The non-null list of Filters to examine the supp...
java
public static <T> boolean rejectAtLeastOnce(final T object, final List<Filter<T>> filters) { // Check sanity Validate.notNull(filters, "filters"); boolean rejectedByAtLeastOneFilter = false; for (Filter<T> current : filters) { if (!current.accept(object)) { ...
[ "public", "static", "<", "T", ">", "boolean", "rejectAtLeastOnce", "(", "final", "T", "object", ",", "final", "List", "<", "Filter", "<", "T", ">", ">", "filters", ")", "{", "// Check sanity", "Validate", ".", "notNull", "(", "filters", ",", "\"filters\"",...
Algorithms for rejecting the supplied object if at least one of the supplied Filters does not accept it. @param object The object to reject (or not). @param filters The non-null list of Filters to examine the supplied object. @param <T> The Filter type. @return {@code true} if at least one of the filters returns ...
[ "Algorithms", "for", "rejecting", "the", "supplied", "object", "if", "at", "least", "one", "of", "the", "supplied", "Filters", "does", "not", "accept", "it", "." ]
train
https://github.com/mojohaus/jaxb2-maven-plugin/blob/e3c4e47943b15282e5a6e850bbfb1588d8452a0a/src/main/java/org/codehaus/mojo/jaxb2/shared/filters/Filters.java#L77-L92
Azure/azure-sdk-for-java
labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/EnvironmentSettingsInner.java
EnvironmentSettingsInner.beginCreateOrUpdateAsync
public Observable<EnvironmentSettingInner> beginCreateOrUpdateAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, EnvironmentSettingInner environmentSetting) { """ Create or replace an existing Environment Setting. This operation can take a while to complete. @p...
java
public Observable<EnvironmentSettingInner> beginCreateOrUpdateAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, EnvironmentSettingInner environmentSetting) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, labAccountName, labName, environ...
[ "public", "Observable", "<", "EnvironmentSettingInner", ">", "beginCreateOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "labAccountName", ",", "String", "labName", ",", "String", "environmentSettingName", ",", "EnvironmentSettingInner", "environmentSetting...
Create or replace an existing Environment Setting. This operation can take a while to complete. @param resourceGroupName The name of the resource group. @param labAccountName The name of the lab Account. @param labName The name of the lab. @param environmentSettingName The name of the environment Setting. @param envir...
[ "Create", "or", "replace", "an", "existing", "Environment", "Setting", ".", "This", "operation", "can", "take", "a", "while", "to", "complete", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/EnvironmentSettingsInner.java#L738-L745
Azure/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java
WorkflowsInner.generateUpgradedDefinitionAsync
public Observable<Object> generateUpgradedDefinitionAsync(String resourceGroupName, String workflowName, String targetSchemaVersion) { """ Generates the upgraded definition for a workflow. @param resourceGroupName The resource group name. @param workflowName The workflow name. @param targetSchemaVersion The t...
java
public Observable<Object> generateUpgradedDefinitionAsync(String resourceGroupName, String workflowName, String targetSchemaVersion) { return generateUpgradedDefinitionWithServiceResponseAsync(resourceGroupName, workflowName, targetSchemaVersion).map(new Func1<ServiceResponse<Object>, Object>() { @O...
[ "public", "Observable", "<", "Object", ">", "generateUpgradedDefinitionAsync", "(", "String", "resourceGroupName", ",", "String", "workflowName", ",", "String", "targetSchemaVersion", ")", "{", "return", "generateUpgradedDefinitionWithServiceResponseAsync", "(", "resourceGrou...
Generates the upgraded definition for a workflow. @param resourceGroupName The resource group name. @param workflowName The workflow name. @param targetSchemaVersion The target schema version. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the Object object
[ "Generates", "the", "upgraded", "definition", "for", "a", "workflow", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java#L1248-L1255
SUSE/salt-netapi-client
src/main/java/com/suse/salt/netapi/calls/modules/File.java
File.mkdir
public static LocalCall<String> mkdir(String path, String user, String group) { """ Ensures that a directory is available @param path Path to directory @param user Owner user @param group Owner group @return The {@link LocalCall} object to make the call """ return mkdir(path, Optional.of(u...
java
public static LocalCall<String> mkdir(String path, String user, String group) { return mkdir(path, Optional.of(user), Optional.of(group), Optional.empty()); }
[ "public", "static", "LocalCall", "<", "String", ">", "mkdir", "(", "String", "path", ",", "String", "user", ",", "String", "group", ")", "{", "return", "mkdir", "(", "path", ",", "Optional", ".", "of", "(", "user", ")", ",", "Optional", ".", "of", "(...
Ensures that a directory is available @param path Path to directory @param user Owner user @param group Owner group @return The {@link LocalCall} object to make the call
[ "Ensures", "that", "a", "directory", "is", "available" ]
train
https://github.com/SUSE/salt-netapi-client/blob/a0bdf643c8e34fa4def4b915366594c1491fdad5/src/main/java/com/suse/salt/netapi/calls/modules/File.java#L263-L265
lessthanoptimal/BoofCV
main/boofcv-recognition/src/main/java/boofcv/alg/tracker/tld/TldTracker.java
TldTracker.hypothesisFusion
protected boolean hypothesisFusion( boolean trackingWorked , boolean detectionWorked ) { """ Combines hypotheses from tracking and detection. @param trackingWorked If the sequential tracker updated the track region successfully or not @return true a hypothesis was found, false if it failed to find a hypothesis...
java
protected boolean hypothesisFusion( boolean trackingWorked , boolean detectionWorked ) { valid = false; boolean uniqueDetection = detectionWorked && !detection.isAmbiguous(); TldRegion detectedRegion = detection.getBest(); double confidenceTarget; if( trackingWorked ) { // get the scores from tracking...
[ "protected", "boolean", "hypothesisFusion", "(", "boolean", "trackingWorked", ",", "boolean", "detectionWorked", ")", "{", "valid", "=", "false", ";", "boolean", "uniqueDetection", "=", "detectionWorked", "&&", "!", "detection", ".", "isAmbiguous", "(", ")", ";", ...
Combines hypotheses from tracking and detection. @param trackingWorked If the sequential tracker updated the track region successfully or not @return true a hypothesis was found, false if it failed to find a hypothesis
[ "Combines", "hypotheses", "from", "tracking", "and", "detection", "." ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-recognition/src/main/java/boofcv/alg/tracker/tld/TldTracker.java#L332-L385
dasein-cloud/dasein-cloud-aws
src/main/java/org/dasein/cloud/aws/compute/EC2Instance.java
EC2Instance.getPassword
@Override public @Nullable String getPassword( @Nonnull String instanceId ) throws InternalException, CloudException { """ Get encrypted initial Windows password. This method only definitely works with standard Amazon AMIs: http://aws.amazon.com/windows/amis/ Other AMIs in the public library may have had the...
java
@Override public @Nullable String getPassword( @Nonnull String instanceId ) throws InternalException, CloudException { APITrace.begin(getProvider(), "getPassword"); try { return new GetPassCallable(instanceId, getProvider()).call(); } catch( CloudException ce ) { thro...
[ "@", "Override", "public", "@", "Nullable", "String", "getPassword", "(", "@", "Nonnull", "String", "instanceId", ")", "throws", "InternalException", ",", "CloudException", "{", "APITrace", ".", "begin", "(", "getProvider", "(", ")", ",", "\"getPassword\"", ")",...
Get encrypted initial Windows password. This method only definitely works with standard Amazon AMIs: http://aws.amazon.com/windows/amis/ Other AMIs in the public library may have had their password changed, and it will not be retrievable on instances launched from those. @param instanceId @return @throws InternalExcep...
[ "Get", "encrypted", "initial", "Windows", "password", ".", "This", "method", "only", "definitely", "works", "with", "standard", "Amazon", "AMIs", ":", "http", ":", "//", "aws", ".", "amazon", ".", "com", "/", "windows", "/", "amis", "/", "Other", "AMIs", ...
train
https://github.com/dasein-cloud/dasein-cloud-aws/blob/05098574197a1f573f77447cadc39a76bf00b99d/src/main/java/org/dasein/cloud/aws/compute/EC2Instance.java#L432-L444
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/checkouts/OrderItemUrl.java
OrderItemUrl.updateItemDestinationUrl
public static MozuUrl updateItemDestinationUrl(String checkoutId, String destinationId, String itemId, String responseFields) { """ Get Resource Url for UpdateItemDestination @param checkoutId The unique identifier of the checkout. @param destinationId The unique identifier of the destination. @param itemId The...
java
public static MozuUrl updateItemDestinationUrl(String checkoutId, String destinationId, String itemId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/checkouts/{checkoutId}/items/{itemId}/destination/{destinationId}?responseFields={responseFields}"); formatter.formatUrl("check...
[ "public", "static", "MozuUrl", "updateItemDestinationUrl", "(", "String", "checkoutId", ",", "String", "destinationId", ",", "String", "itemId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/c...
Get Resource Url for UpdateItemDestination @param checkoutId The unique identifier of the checkout. @param destinationId The unique identifier of the destination. @param itemId The unique identifier of the item. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data re...
[ "Get", "Resource", "Url", "for", "UpdateItemDestination" ]
train
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/checkouts/OrderItemUrl.java#L70-L78
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/bc/BouncyCastleCertProcessingFactory.java
BouncyCastleCertProcessingFactory.createCertificate
public X509Certificate createCertificate(InputStream certRequestInputStream, X509Certificate cert, PrivateKey privateKey, int lifetime, GSIConstants.CertificateType certType, X509ExtensionSet extSet, String cnValue) throws IOException, GeneralSecurityException { """ Creates a proxy certificate from...
java
public X509Certificate createCertificate(InputStream certRequestInputStream, X509Certificate cert, PrivateKey privateKey, int lifetime, GSIConstants.CertificateType certType, X509ExtensionSet extSet, String cnValue) throws IOException, GeneralSecurityException { ASN1InputStream derin = new ASN1...
[ "public", "X509Certificate", "createCertificate", "(", "InputStream", "certRequestInputStream", ",", "X509Certificate", "cert", ",", "PrivateKey", "privateKey", ",", "int", "lifetime", ",", "GSIConstants", ".", "CertificateType", "certType", ",", "X509ExtensionSet", "extS...
Creates a proxy certificate from the certificate request. (Signs a certificate request creating a new certificate) @see #createProxyCertificate(X509Certificate, PrivateKey, PublicKey, int, int, X509ExtensionSet, String) createProxyCertificate @param certRequestInputStream the input stream to read the certificate reque...
[ "Creates", "a", "proxy", "certificate", "from", "the", "certificate", "request", ".", "(", "Signs", "a", "certificate", "request", "creating", "a", "new", "certificate", ")" ]
train
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/bc/BouncyCastleCertProcessingFactory.java#L571-L587
sannies/mp4parser
isoparser/src/main/java/org/mp4parser/boxes/microsoft/XtraBox.java
XtraBox.setTagValue
public void setTagValue(String name, Date date) { """ Removes and recreates tag using specified Date value @param name Tag name to replace @param date New Date value """ removeTag(name); XtraTag tag = new XtraTag(name); tag.values.addElement(new XtraValue(date)); tags.addEle...
java
public void setTagValue(String name, Date date) { removeTag(name); XtraTag tag = new XtraTag(name); tag.values.addElement(new XtraValue(date)); tags.addElement(tag); }
[ "public", "void", "setTagValue", "(", "String", "name", ",", "Date", "date", ")", "{", "removeTag", "(", "name", ")", ";", "XtraTag", "tag", "=", "new", "XtraTag", "(", "name", ")", ";", "tag", ".", "values", ".", "addElement", "(", "new", "XtraValue",...
Removes and recreates tag using specified Date value @param name Tag name to replace @param date New Date value
[ "Removes", "and", "recreates", "tag", "using", "specified", "Date", "value" ]
train
https://github.com/sannies/mp4parser/blob/3382ff5d489363900f352a8da0f794a20ad3b063/isoparser/src/main/java/org/mp4parser/boxes/microsoft/XtraBox.java#L316-L321
UrielCh/ovh-java-sdk
ovh-java-sdk-ip/src/main/java/net/minidev/ovh/api/ApiOvhIp.java
ApiOvhIp.ip_migrationToken_GET
public OvhIpMigrationToken ip_migrationToken_GET(String ip) throws IOException { """ Get this object properties REST: GET /ip/{ip}/migrationToken @param ip [required] """ String qPath = "/ip/{ip}/migrationToken"; StringBuilder sb = path(qPath, ip); String resp = exec(qPath, "GET", sb.toString(), null...
java
public OvhIpMigrationToken ip_migrationToken_GET(String ip) throws IOException { String qPath = "/ip/{ip}/migrationToken"; StringBuilder sb = path(qPath, ip); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhIpMigrationToken.class); }
[ "public", "OvhIpMigrationToken", "ip_migrationToken_GET", "(", "String", "ip", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/ip/{ip}/migrationToken\"", ";", "StringBuilder", "sb", "=", "path", "(", "qPath", ",", "ip", ")", ";", "String", "resp", ...
Get this object properties REST: GET /ip/{ip}/migrationToken @param ip [required]
[ "Get", "this", "object", "properties" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-ip/src/main/java/net/minidev/ovh/api/ApiOvhIp.java#L298-L303
codeprimate-software/cp-elements
src/main/java/org/cp/elements/lang/ElementsExceptionsFactory.java
ElementsExceptionsFactory.newTypeNotFoundException
public static TypeNotFoundException newTypeNotFoundException(Throwable cause, String message, Object... args) { """ Constructs and initializes a new {@link TypeNotFoundException} with the given {@link Throwable cause} and {@link String message} formatted with the given {@link Object[] arguments}. @param cause ...
java
public static TypeNotFoundException newTypeNotFoundException(Throwable cause, String message, Object... args) { return new TypeNotFoundException(format(message, args), cause); }
[ "public", "static", "TypeNotFoundException", "newTypeNotFoundException", "(", "Throwable", "cause", ",", "String", "message", ",", "Object", "...", "args", ")", "{", "return", "new", "TypeNotFoundException", "(", "format", "(", "message", ",", "args", ")", ",", ...
Constructs and initializes a new {@link TypeNotFoundException} with the given {@link Throwable cause} and {@link String message} formatted with the given {@link Object[] arguments}. @param cause {@link Throwable} identified as the reason this {@link TypeNotFoundException} was thrown. @param message {@link String} desc...
[ "Constructs", "and", "initializes", "a", "new", "{", "@link", "TypeNotFoundException", "}", "with", "the", "given", "{", "@link", "Throwable", "cause", "}", "and", "{", "@link", "String", "message", "}", "formatted", "with", "the", "given", "{", "@link", "Ob...
train
https://github.com/codeprimate-software/cp-elements/blob/f2163c149fbbef05015e688132064ebcac7c49ab/src/main/java/org/cp/elements/lang/ElementsExceptionsFactory.java#L539-L541
d-michail/jheaps
src/main/java/org/jheaps/monotone/AbstractRadixAddressableHeap.java
AbstractRadixAddressableHeap.insert
@Override @ConstantTime public Handle<K, V> insert(K key, V value) { """ {@inheritDoc} @throws IllegalArgumentException if the key is null @throws IllegalArgumentException if the key is less than the minimum allowed key @throws IllegalArgumentException if the key is more than the maximum allowed ke...
java
@Override @ConstantTime public Handle<K, V> insert(K key, V value) { if (key == null) { throw new IllegalArgumentException("Null keys not permitted"); } if (compare(key, maxKey) > 0) { throw new IllegalArgumentException("Key is more than the maximum allowed key");...
[ "@", "Override", "@", "ConstantTime", "public", "Handle", "<", "K", ",", "V", ">", "insert", "(", "K", "key", ",", "V", "value", ")", "{", "if", "(", "key", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Null keys not permitt...
{@inheritDoc} @throws IllegalArgumentException if the key is null @throws IllegalArgumentException if the key is less than the minimum allowed key @throws IllegalArgumentException if the key is more than the maximum allowed key @throws IllegalArgumentException if the key is less than the last deleted key (or the minim...
[ "{", "@inheritDoc", "}" ]
train
https://github.com/d-michail/jheaps/blob/7146451dd6591c2a8559dc564c9c40428c4a2c10/src/main/java/org/jheaps/monotone/AbstractRadixAddressableHeap.java#L129-L161
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlSerialMethodWriter.java
HtmlSerialMethodWriter.addMemberHeader
public void addMemberHeader(ExecutableElement member, Content methodsContentTree) { """ Add the member header. @param member the method document to be listed @param methodsContentTree the content tree to which the member header will be added """ methodsContentTree.addContent(getHead(member)); ...
java
public void addMemberHeader(ExecutableElement member, Content methodsContentTree) { methodsContentTree.addContent(getHead(member)); methodsContentTree.addContent(getSignature(member)); }
[ "public", "void", "addMemberHeader", "(", "ExecutableElement", "member", ",", "Content", "methodsContentTree", ")", "{", "methodsContentTree", ".", "addContent", "(", "getHead", "(", "member", ")", ")", ";", "methodsContentTree", ".", "addContent", "(", "getSignatur...
Add the member header. @param member the method document to be listed @param methodsContentTree the content tree to which the member header will be added
[ "Add", "the", "member", "header", "." ]
train
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlSerialMethodWriter.java#L122-L125
zamrokk/fabric-sdk-java
src/main/java/org/hyperledger/fabric/sdk/Chain.java
Chain.addPeer
public Peer addPeer(String url, String pem) { """ Add a peer given an endpoint specification. @param url URL of the peer @param pem permission @return a new peer. """ Peer peer = new Peer(url, pem, this); this.peers.add(peer); return peer; }
java
public Peer addPeer(String url, String pem) { Peer peer = new Peer(url, pem, this); this.peers.add(peer); return peer; }
[ "public", "Peer", "addPeer", "(", "String", "url", ",", "String", "pem", ")", "{", "Peer", "peer", "=", "new", "Peer", "(", "url", ",", "pem", ",", "this", ")", ";", "this", ".", "peers", ".", "add", "(", "peer", ")", ";", "return", "peer", ";", ...
Add a peer given an endpoint specification. @param url URL of the peer @param pem permission @return a new peer.
[ "Add", "a", "peer", "given", "an", "endpoint", "specification", "." ]
train
https://github.com/zamrokk/fabric-sdk-java/blob/d4993ca602f72d412cd682e1b92e805e48b27afa/src/main/java/org/hyperledger/fabric/sdk/Chain.java#L99-L103
matthewhorridge/owlapi-gwt
owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLObjectSomeValuesFromImpl_CustomFieldSerializer.java
OWLObjectSomeValuesFromImpl_CustomFieldSerializer.deserializeInstance
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLObjectSomeValuesFromImpl instance) throws SerializationException { """ Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.go...
java
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLObjectSomeValuesFromImpl instance) throws SerializationException { deserialize(streamReader, instance); }
[ "@", "Override", "public", "void", "deserializeInstance", "(", "SerializationStreamReader", "streamReader", ",", "OWLObjectSomeValuesFromImpl", "instance", ")", "throws", "SerializationException", "{", "deserialize", "(", "streamReader", ",", "instance", ")", ";", "}" ]
Deserializes the content of the object from the {@link com.google.gwt.user.client.rpc.SerializationStreamReader}. @param streamReader the {@link com.google.gwt.user.client.rpc.SerializationStreamReader} to read the object's content from @param instance the object instance to deserialize @throws com.google.gwt.user...
[ "Deserializes", "the", "content", "of", "the", "object", "from", "the", "{", "@link", "com", ".", "google", ".", "gwt", ".", "user", ".", "client", ".", "rpc", ".", "SerializationStreamReader", "}", "." ]
train
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-serialization/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLObjectSomeValuesFromImpl_CustomFieldSerializer.java#L93-L96
wildfly/wildfly-core
launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java
CliCommandBuilder.setConnection
public CliCommandBuilder setConnection(final String hostname, final int port) { """ Sets the hostname and port to connect to. <p> This sets both the {@code --connect} and {@code --controller} arguments. </p> @param hostname the host name @param port the port @return the builder """ addCli...
java
public CliCommandBuilder setConnection(final String hostname, final int port) { addCliArgument(CliArgument.CONNECT); setController(hostname, port); return this; }
[ "public", "CliCommandBuilder", "setConnection", "(", "final", "String", "hostname", ",", "final", "int", "port", ")", "{", "addCliArgument", "(", "CliArgument", ".", "CONNECT", ")", ";", "setController", "(", "hostname", ",", "port", ")", ";", "return", "this"...
Sets the hostname and port to connect to. <p> This sets both the {@code --connect} and {@code --controller} arguments. </p> @param hostname the host name @param port the port @return the builder
[ "Sets", "the", "hostname", "and", "port", "to", "connect", "to", ".", "<p", ">", "This", "sets", "both", "the", "{", "@code", "--", "connect", "}", "and", "{", "@code", "--", "controller", "}", "arguments", ".", "<", "/", "p", ">" ]
train
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/launcher/src/main/java/org/wildfly/core/launcher/CliCommandBuilder.java#L155-L159
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java
SarlBatchCompiler.postCompileJava
protected boolean postCompileJava(IProgressMonitor progress) { """ Compile the java files after the compilation of the project's files. @param progress monitor of the progress of the compilation. @return the success status. Replies <code>false</code> if the activity is canceled. """ assert progress != nu...
java
protected boolean postCompileJava(IProgressMonitor progress) { assert progress != null; progress.subTask(Messages.SarlBatchCompiler_52); final File classOutputPath = getClassOutputPath(); if (classOutputPath == null) { getLogger().info(Messages.SarlBatchCompiler_24); return true; } getLogger().info(Me...
[ "protected", "boolean", "postCompileJava", "(", "IProgressMonitor", "progress", ")", "{", "assert", "progress", "!=", "null", ";", "progress", ".", "subTask", "(", "Messages", ".", "SarlBatchCompiler_52", ")", ";", "final", "File", "classOutputPath", "=", "getClas...
Compile the java files after the compilation of the project's files. @param progress monitor of the progress of the compilation. @return the success status. Replies <code>false</code> if the activity is canceled.
[ "Compile", "the", "java", "files", "after", "the", "compilation", "of", "the", "project", "s", "files", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1705-L1723
TheCoder4eu/BootsFaces-OSP
src/main/java/net/bootsfaces/listeners/AddResourcesListener.java
AddResourcesListener.addResourceToHeadButAfterJQuery
public static void addResourceToHeadButAfterJQuery(String library, String resource) { """ Registers a JS file that needs to be included in the header of the HTML file, but after jQuery and AngularJS. @param library The name of the sub-folder of the resources folder. @param resource The name of the resource f...
java
public static void addResourceToHeadButAfterJQuery(String library, String resource) { addResource(resource, library, library + "#" + resource, RESOURCE_KEY); }
[ "public", "static", "void", "addResourceToHeadButAfterJQuery", "(", "String", "library", ",", "String", "resource", ")", "{", "addResource", "(", "resource", ",", "library", ",", "library", "+", "\"#\"", "+", "resource", ",", "RESOURCE_KEY", ")", ";", "}" ]
Registers a JS file that needs to be included in the header of the HTML file, but after jQuery and AngularJS. @param library The name of the sub-folder of the resources folder. @param resource The name of the resource file within the library folder.
[ "Registers", "a", "JS", "file", "that", "needs", "to", "be", "included", "in", "the", "header", "of", "the", "HTML", "file", "but", "after", "jQuery", "and", "AngularJS", "." ]
train
https://github.com/TheCoder4eu/BootsFaces-OSP/blob/d1a70952bc240979b5272fa4fe1c7f100873add0/src/main/java/net/bootsfaces/listeners/AddResourcesListener.java#L838-L840
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java
AbstractTagLibrary.addComponent
protected final void addComponent(String name, String componentType, String rendererType) { """ Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name. @see ComponentHandler @see javax.faces.application.Application#createComponent(java.lang.String) @param name name ...
java
protected final void addComponent(String name, String componentType, String rendererType) { _factories.put(name, new ComponentHandlerFactory(componentType, rendererType)); }
[ "protected", "final", "void", "addComponent", "(", "String", "name", ",", "String", "componentType", ",", "String", "rendererType", ")", "{", "_factories", ".", "put", "(", "name", ",", "new", "ComponentHandlerFactory", "(", "componentType", ",", "rendererType", ...
Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name. @see ComponentHandler @see javax.faces.application.Application#createComponent(java.lang.String) @param name name to use, "foo" would be &lt;my:foo /> @param componentType componentType to use @param rendererType rendere...
[ "Add", "a", "ComponentHandler", "with", "the", "specified", "componentType", "and", "rendererType", "aliased", "by", "the", "tag", "name", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java#L157-L160
gmessner/gitlab4j-api
src/main/java/org/gitlab4j/api/AwardEmojiApi.java
AwardEmojiApi.deleteMergeRequestAwardEmoji
public void deleteMergeRequestAwardEmoji(Object projectIdOrPath, Integer mergeRequestIid, Integer awardId) throws GitLabApiException { """ Delete an award emoji from the specified merge request. <pre><code>GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/award_emoji/:award_id</code></pre>...
java
public void deleteMergeRequestAwardEmoji(Object projectIdOrPath, Integer mergeRequestIid, Integer awardId) throws GitLabApiException { delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "award_emoji", awardId); }
[ "public", "void", "deleteMergeRequestAwardEmoji", "(", "Object", "projectIdOrPath", ",", "Integer", "mergeRequestIid", ",", "Integer", "awardId", ")", "throws", "GitLabApiException", "{", "delete", "(", "Response", ".", "Status", ".", "NO_CONTENT", ",", "null", ",",...
Delete an award emoji from the specified merge request. <pre><code>GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/award_emoji/:award_id</code></pre> @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path @param mergeRequestIid the merge request II...
[ "Delete", "an", "award", "emoji", "from", "the", "specified", "merge", "request", "." ]
train
https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AwardEmojiApi.java#L254-L257
sargue/mailgun
src/main/java/net/sargue/mailgun/Configuration.java
Configuration.addDefaultParameter
public Configuration addDefaultParameter(String name, String value) { """ Adds a new value to the specified default parameter. <p> This is only used if the parameter is not specified when building the specific mail. <p> Please note that parameters are multivalued. This method adds a new value. To set a new v...
java
public Configuration addDefaultParameter(String name, String value) { defaultParameters.add(name, value); return this; }
[ "public", "Configuration", "addDefaultParameter", "(", "String", "name", ",", "String", "value", ")", "{", "defaultParameters", ".", "add", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
Adds a new value to the specified default parameter. <p> This is only used if the parameter is not specified when building the specific mail. <p> Please note that parameters are multivalued. This method adds a new value. To set a new value you need to clear the default parameter first. @param name the name of the para...
[ "Adds", "a", "new", "value", "to", "the", "specified", "default", "parameter", ".", "<p", ">", "This", "is", "only", "used", "if", "the", "parameter", "is", "not", "specified", "when", "building", "the", "specific", "mail", ".", "<p", ">", "Please", "not...
train
https://github.com/sargue/mailgun/blob/2ffb0a156f3f3666eb1bb2db661451b9377c3d11/src/main/java/net/sargue/mailgun/Configuration.java#L215-L218
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/pygments/PygmentsGenerator2.java
PygmentsGenerator2.generatePythonSetup
protected void generatePythonSetup(IStyleAppendable it, String basename) { """ Create the content of the "setup.py" file. @param it the content. @param basename the basename. """ it.appendNl("# -*- coding: {0} -*-", getCodeConfig().getEncoding().toLowerCase()); //$NON-NLS-1$ it.appendHeader(); it.new...
java
protected void generatePythonSetup(IStyleAppendable it, String basename) { it.appendNl("# -*- coding: {0} -*-", getCodeConfig().getEncoding().toLowerCase()); //$NON-NLS-1$ it.appendHeader(); it.newLine(); it.append("from setuptools import setup"); //$NON-NLS-1$ it.newLine().newLine(); it.append("setup ("); ...
[ "protected", "void", "generatePythonSetup", "(", "IStyleAppendable", "it", ",", "String", "basename", ")", "{", "it", ".", "appendNl", "(", "\"# -*- coding: {0} -*-\"", ",", "getCodeConfig", "(", ")", ".", "getEncoding", "(", ")", ".", "toLowerCase", "(", ")", ...
Create the content of the "setup.py" file. @param it the content. @param basename the basename.
[ "Create", "the", "content", "of", "the", "setup", ".", "py", "file", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/pygments/PygmentsGenerator2.java#L254-L281
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/script/el/tokens/ExpressionToken.java
ExpressionToken.arrayLookup
protected final Object arrayLookup(Object array, int index) { """ Get the value from <code>array</code> at <code>index</code> @param array the array @param index the index @return the value returned from <code>Array.get(array, index)</code> """ LOGGER.trace("get value from array index " + index); ...
java
protected final Object arrayLookup(Object array, int index) { LOGGER.trace("get value from array index " + index); return Array.get(array, index); }
[ "protected", "final", "Object", "arrayLookup", "(", "Object", "array", ",", "int", "index", ")", "{", "LOGGER", ".", "trace", "(", "\"get value from array index \"", "+", "index", ")", ";", "return", "Array", ".", "get", "(", "array", ",", "index", ")", ";...
Get the value from <code>array</code> at <code>index</code> @param array the array @param index the index @return the value returned from <code>Array.get(array, index)</code>
[ "Get", "the", "value", "from", "<code", ">", "array<", "/", "code", ">", "at", "<code", ">", "index<", "/", "code", ">" ]
train
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/script/el/tokens/ExpressionToken.java#L83-L86
wildfly/wildfly-core
embedded/src/main/java/org/wildfly/core/embedded/EmbeddedProcessFactory.java
EmbeddedProcessFactory.createHostController
public static HostController createHostController(final Configuration configuration) { """ Create an embedded host controller with an already established module loader. @param configuration the configuration for the embedded host controller @return the running host controller Will not be {@code null} """ ...
java
public static HostController createHostController(final Configuration configuration) { final ChainedContext context = new ChainedContext(); context.add(new HostControllerSystemPropertyContext(configuration.getJBossHome())); context.add(new LoggerContext(configuration.getModuleLoader())); ...
[ "public", "static", "HostController", "createHostController", "(", "final", "Configuration", "configuration", ")", "{", "final", "ChainedContext", "context", "=", "new", "ChainedContext", "(", ")", ";", "context", ".", "add", "(", "new", "HostControllerSystemPropertyC...
Create an embedded host controller with an already established module loader. @param configuration the configuration for the embedded host controller @return the running host controller Will not be {@code null}
[ "Create", "an", "embedded", "host", "controller", "with", "an", "already", "established", "module", "loader", "." ]
train
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/embedded/src/main/java/org/wildfly/core/embedded/EmbeddedProcessFactory.java#L246-L291
xdcrafts/flower
flower-tools/src/main/java/com/github/xdcrafts/flower/tools/map/MapApi.java
MapApi.getString
public static Optional<String> getString(final Map map, final Object... path) { """ Get string value by path. @param map subject @param path nodes to walk in map @return value """ return get(map, String.class, path); }
java
public static Optional<String> getString(final Map map, final Object... path) { return get(map, String.class, path); }
[ "public", "static", "Optional", "<", "String", ">", "getString", "(", "final", "Map", "map", ",", "final", "Object", "...", "path", ")", "{", "return", "get", "(", "map", ",", "String", ".", "class", ",", "path", ")", ";", "}" ]
Get string value by path. @param map subject @param path nodes to walk in map @return value
[ "Get", "string", "value", "by", "path", "." ]
train
https://github.com/xdcrafts/flower/blob/96a8e49102fea434bd383a3c7852f0ee9545f999/flower-tools/src/main/java/com/github/xdcrafts/flower/tools/map/MapApi.java#L167-L169
Azure/azure-sdk-for-java
servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageReceiver.java
CoreMessageReceiver.create
@Deprecated public static CompletableFuture<CoreMessageReceiver> create( final MessagingFactory factory, final String name, final String recvPath, final int prefetchCount, final SettleModePair settleModePair) { """ Connection has to be associated with Reactor before Creating a receiver on it. ...
java
@Deprecated public static CompletableFuture<CoreMessageReceiver> create( final MessagingFactory factory, final String name, final String recvPath, final int prefetchCount, final SettleModePair settleModePair) { return create(factory, name, recvPath, prefetchCount, settleModePair, null); }
[ "@", "Deprecated", "public", "static", "CompletableFuture", "<", "CoreMessageReceiver", ">", "create", "(", "final", "MessagingFactory", "factory", ",", "final", "String", "name", ",", "final", "String", "recvPath", ",", "final", "int", "prefetchCount", ",", "fina...
Connection has to be associated with Reactor before Creating a receiver on it.
[ "Connection", "has", "to", "be", "associated", "with", "Reactor", "before", "Creating", "a", "receiver", "on", "it", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageReceiver.java#L221-L230
jqm4gwt/jqm4gwt
library/src/main/java/com/sksamuel/jqm4gwt/toolbar/JQMHeader.java
JQMHeader.setLeftButton
public JQMButton setLeftButton(String text) { """ Creates a new {@link JQMButton} with the given text and then sets that button in the left slot. Any existing right button will be replaced. This button will not link to a page by default and therefore will only react if a click handler is registered. This is u...
java
public JQMButton setLeftButton(String text) { return setLeftButton(text, (String) null, (DataIcon) null); }
[ "public", "JQMButton", "setLeftButton", "(", "String", "text", ")", "{", "return", "setLeftButton", "(", "text", ",", "(", "String", ")", "null", ",", "(", "DataIcon", ")", "null", ")", ";", "}" ]
Creates a new {@link JQMButton} with the given text and then sets that button in the left slot. Any existing right button will be replaced. This button will not link to a page by default and therefore will only react if a click handler is registered. This is useful if you want the button to do something other than nav...
[ "Creates", "a", "new", "{", "@link", "JQMButton", "}", "with", "the", "given", "text", "and", "then", "sets", "that", "button", "in", "the", "left", "slot", ".", "Any", "existing", "right", "button", "will", "be", "replaced", "." ]
train
https://github.com/jqm4gwt/jqm4gwt/blob/cf59958e9ba6d4b70f42507b2c77f10c2465085b/library/src/main/java/com/sksamuel/jqm4gwt/toolbar/JQMHeader.java#L147-L149
lets-blade/blade
src/main/java/com/blade/Environment.java
Environment.add
public Environment add(@NonNull String key, @NonNull Object value) { """ And Set the same @param key key @param value value @return return Environment instance """ return set(key, value); }
java
public Environment add(@NonNull String key, @NonNull Object value) { return set(key, value); }
[ "public", "Environment", "add", "(", "@", "NonNull", "String", "key", ",", "@", "NonNull", "Object", "value", ")", "{", "return", "set", "(", "key", ",", "value", ")", ";", "}" ]
And Set the same @param key key @param value value @return return Environment instance
[ "And", "Set", "the", "same" ]
train
https://github.com/lets-blade/blade/blob/60624ee528be12122c49a9ad1713e336b959e59a/src/main/java/com/blade/Environment.java#L229-L231
salesforce/Argus
ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/AlertResources.java
AlertResources.getSharedAlerts
@GET @Produces(MediaType.APPLICATION_JSON) @Path("/shared") @Description("Returns all shared alerts.") public List<AlertDto> getSharedAlerts(@Context HttpServletRequest req, @QueryParam("ownername") String ownerName, @QueryParam("limit") Integer limit) { """ Returns the list of shared alerts...
java
@GET @Produces(MediaType.APPLICATION_JSON) @Path("/shared") @Description("Returns all shared alerts.") public List<AlertDto> getSharedAlerts(@Context HttpServletRequest req, @QueryParam("ownername") String ownerName, @QueryParam("limit") Integer limit){ PrincipalUser owner = null; if(ownerNam...
[ "@", "GET", "@", "Produces", "(", "MediaType", ".", "APPLICATION_JSON", ")", "@", "Path", "(", "\"/shared\"", ")", "@", "Description", "(", "\"Returns all shared alerts.\"", ")", "public", "List", "<", "AlertDto", ">", "getSharedAlerts", "(", "@", "Context", "...
Returns the list of shared alerts @param req The HttpServlet request object. Cannot be null. @param ownerName Name of the owner. It is optional. @param limit The maximum number of results to return. @return The list of alerts created by the user.
[ "Returns", "the", "list", "of", "shared", "alerts" ]
train
https://github.com/salesforce/Argus/blob/121b59a268da264316cded6a3e9271366a23cd86/ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/AlertResources.java#L292-L308
dlemmermann/CalendarFX
CalendarFXRecurrence/src/main/java/com/google/ical/iter/Util.java
Util.nextWeekStart
static DateValue nextWeekStart(DateValue d, Weekday wkst) { """ the earliest day on or after d that falls on wkst. @param wkst the day of the week that the week starts on """ DTBuilder builder = new DTBuilder(d); builder.day += (7 - ((7 + (Weekday.valueOf(d).javaDayNum - wkst.j...
java
static DateValue nextWeekStart(DateValue d, Weekday wkst) { DTBuilder builder = new DTBuilder(d); builder.day += (7 - ((7 + (Weekday.valueOf(d).javaDayNum - wkst.javaDayNum)) % 7)) % 7; return builder.toDate(); }
[ "static", "DateValue", "nextWeekStart", "(", "DateValue", "d", ",", "Weekday", "wkst", ")", "{", "DTBuilder", "builder", "=", "new", "DTBuilder", "(", "d", ")", ";", "builder", ".", "day", "+=", "(", "7", "-", "(", "(", "7", "+", "(", "Weekday", ".",...
the earliest day on or after d that falls on wkst. @param wkst the day of the week that the week starts on
[ "the", "earliest", "day", "on", "or", "after", "d", "that", "falls", "on", "wkst", "." ]
train
https://github.com/dlemmermann/CalendarFX/blob/f2b91c2622c3f29d004485b6426b23b86c331f96/CalendarFXRecurrence/src/main/java/com/google/ical/iter/Util.java#L53-L59
jlinn/quartz-redis-jobstore
src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java
AbstractRedisStorage.pauseJob
public void pauseJob(JobKey jobKey, T jedis) throws JobPersistenceException { """ Pause a job by pausing all of its triggers @param jobKey the key of the job to be paused @param jedis a thread-safe Redis connection """ for (OperableTrigger trigger : getTriggersForJob(jobKey, jedis)) { pau...
java
public void pauseJob(JobKey jobKey, T jedis) throws JobPersistenceException { for (OperableTrigger trigger : getTriggersForJob(jobKey, jedis)) { pauseTrigger(trigger.getKey(), jedis); } }
[ "public", "void", "pauseJob", "(", "JobKey", "jobKey", ",", "T", "jedis", ")", "throws", "JobPersistenceException", "{", "for", "(", "OperableTrigger", "trigger", ":", "getTriggersForJob", "(", "jobKey", ",", "jedis", ")", ")", "{", "pauseTrigger", "(", "trigg...
Pause a job by pausing all of its triggers @param jobKey the key of the job to be paused @param jedis a thread-safe Redis connection
[ "Pause", "a", "job", "by", "pausing", "all", "of", "its", "triggers" ]
train
https://github.com/jlinn/quartz-redis-jobstore/blob/be9a52ee776d8a09866fe99fd9718bc13a0cb992/src/main/java/net/joelinn/quartz/jobstore/AbstractRedisStorage.java#L529-L533
alibaba/canal
client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java
RdbMirrorDbSyncService.initMappingConfig
private void initMappingConfig(String key, MappingConfig baseConfigMap, MirrorDbConfig mirrorDbConfig, Dml dml) { """ 初始化表配置 @param key 配置key: destination.database.table @param baseConfigMap db sync config @param dml DML """ MappingConfig mappingConfig = mirrorDbConfig.getTableConfig().get(key); ...
java
private void initMappingConfig(String key, MappingConfig baseConfigMap, MirrorDbConfig mirrorDbConfig, Dml dml) { MappingConfig mappingConfig = mirrorDbConfig.getTableConfig().get(key); if (mappingConfig == null) { // 构造表配置 mappingConfig = new MappingConfig(); mapping...
[ "private", "void", "initMappingConfig", "(", "String", "key", ",", "MappingConfig", "baseConfigMap", ",", "MirrorDbConfig", "mirrorDbConfig", ",", "Dml", "dml", ")", "{", "MappingConfig", "mappingConfig", "=", "mirrorDbConfig", ".", "getTableConfig", "(", ")", ".", ...
初始化表配置 @param key 配置key: destination.database.table @param baseConfigMap db sync config @param dml DML
[ "初始化表配置" ]
train
https://github.com/alibaba/canal/blob/8f088cddc0755f4350c5aaae95c6e4002d90a40f/client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java#L122-L146
prestodb/presto
presto-main/src/main/java/com/facebook/presto/operator/aggregation/TypedSet.java
TypedSet.getHashPositionOfElement
private int getHashPositionOfElement(Block block, int position) { """ Get slot position of element at {@code position} of {@code block} """ int hashPosition = getMaskedHash(hashPosition(elementType, block, position)); while (true) { int blockPosition = blockPositionByHash.get(hashPo...
java
private int getHashPositionOfElement(Block block, int position) { int hashPosition = getMaskedHash(hashPosition(elementType, block, position)); while (true) { int blockPosition = blockPositionByHash.get(hashPosition); // Doesn't have this element if (blockPosition...
[ "private", "int", "getHashPositionOfElement", "(", "Block", "block", ",", "int", "position", ")", "{", "int", "hashPosition", "=", "getMaskedHash", "(", "hashPosition", "(", "elementType", ",", "block", ",", "position", ")", ")", ";", "while", "(", "true", "...
Get slot position of element at {@code position} of {@code block}
[ "Get", "slot", "position", "of", "element", "at", "{" ]
train
https://github.com/prestodb/presto/blob/89de5e379d8f85e139d292b0add8c537a2a01a88/presto-main/src/main/java/com/facebook/presto/operator/aggregation/TypedSet.java#L138-L154
UrielCh/ovh-java-sdk
ovh-java-sdk-me/src/main/java/net/minidev/ovh/api/ApiOvhMe.java
ApiOvhMe.installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_DELETE
public void installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_DELETE(String templateName, String schemeName, String name) throws IOException { """ Remove this RAID REST: DELETE /me/installationTemplate/{templateName}/partitionScheme/{schemeName}/hardwareRaid/{name} @param templateN...
java
public void installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_DELETE(String templateName, String schemeName, String name) throws IOException { String qPath = "/me/installationTemplate/{templateName}/partitionScheme/{schemeName}/hardwareRaid/{name}"; StringBuilder sb = path(qPath, templa...
[ "public", "void", "installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_DELETE", "(", "String", "templateName", ",", "String", "schemeName", ",", "String", "name", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/me/installationTemplate/{...
Remove this RAID REST: DELETE /me/installationTemplate/{templateName}/partitionScheme/{schemeName}/hardwareRaid/{name} @param templateName [required] This template name @param schemeName [required] name of this partitioning scheme @param name [required] Hardware RAID name
[ "Remove", "this", "RAID" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-me/src/main/java/net/minidev/ovh/api/ApiOvhMe.java#L3538-L3542
exoplatform/jcr
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionDataManager.java
SessionDataManager.readItem
protected ItemImpl readItem(ItemData itemData, boolean pool) throws RepositoryException { """ Read ItemImpl of given ItemData. Will call postRead Action and check permissions. @param itemData ItemData @param pool boolean, if true will reload pooled ItemImpl @return ItemImpl @throws RepositoryException if er...
java
protected ItemImpl readItem(ItemData itemData, boolean pool) throws RepositoryException { return readItem(itemData, null, pool, true); }
[ "protected", "ItemImpl", "readItem", "(", "ItemData", "itemData", ",", "boolean", "pool", ")", "throws", "RepositoryException", "{", "return", "readItem", "(", "itemData", ",", "null", ",", "pool", ",", "true", ")", ";", "}" ]
Read ItemImpl of given ItemData. Will call postRead Action and check permissions. @param itemData ItemData @param pool boolean, if true will reload pooled ItemImpl @return ItemImpl @throws RepositoryException if errro occurs
[ "Read", "ItemImpl", "of", "given", "ItemData", ".", "Will", "call", "postRead", "Action", "and", "check", "permissions", "." ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionDataManager.java#L579-L582
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/pkcs/PKCS9Attributes.java
PKCS9Attributes.encode
public void encode(byte tag, OutputStream out) throws IOException { """ Put the DER encoding of this PKCS9 attribute set on an DerOutputStream, tagged with the given implicit tag. @param tag the implicit tag to use in the DER encoding. @param out the output stream on which to put the DER encoding. @excepti...
java
public void encode(byte tag, OutputStream out) throws IOException { out.write(tag); out.write(derEncoding, 1, derEncoding.length -1); }
[ "public", "void", "encode", "(", "byte", "tag", ",", "OutputStream", "out", ")", "throws", "IOException", "{", "out", ".", "write", "(", "tag", ")", ";", "out", ".", "write", "(", "derEncoding", ",", "1", ",", "derEncoding", ".", "length", "-", "1", ...
Put the DER encoding of this PKCS9 attribute set on an DerOutputStream, tagged with the given implicit tag. @param tag the implicit tag to use in the DER encoding. @param out the output stream on which to put the DER encoding. @exception IOException on output error.
[ "Put", "the", "DER", "encoding", "of", "this", "PKCS9", "attribute", "set", "on", "an", "DerOutputStream", "tagged", "with", "the", "given", "implicit", "tag", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/pkcs/PKCS9Attributes.java#L238-L241
santhosh-tekuri/jlibs
core/src/main/java/jlibs/core/lang/Noun.java
Noun.addPlural
public static void addPlural(String match, String rule, boolean insensitive) { """ <p>Add a match pattern and replacement rule for converting addPlural forms to addSingular forms.</p> @param match Match pattern regular expression @param rule Replacement rule @param insensitive Flag indicating this match shou...
java
public static void addPlural(String match, String rule, boolean insensitive){ plurals.add(0, new Replacer(match, rule, insensitive)); }
[ "public", "static", "void", "addPlural", "(", "String", "match", ",", "String", "rule", ",", "boolean", "insensitive", ")", "{", "plurals", ".", "add", "(", "0", ",", "new", "Replacer", "(", "match", ",", "rule", ",", "insensitive", ")", ")", ";", "}" ...
<p>Add a match pattern and replacement rule for converting addPlural forms to addSingular forms.</p> @param match Match pattern regular expression @param rule Replacement rule @param insensitive Flag indicating this match should be case insensitive
[ "<p", ">", "Add", "a", "match", "pattern", "and", "replacement", "rule", "for", "converting", "addPlural", "forms", "to", "addSingular", "forms", ".", "<", "/", "p", ">" ]
train
https://github.com/santhosh-tekuri/jlibs/blob/59c28719f054123cf778278154e1b92e943ad232/core/src/main/java/jlibs/core/lang/Noun.java#L75-L77
eurekaclinical/protempa
protempa-framework/src/main/java/org/protempa/HorizontalTemporalInference.java
HorizontalTemporalInference.execute
<T extends TemporalProposition> boolean execute( PropositionDefinition propDef, Segment<T> tp1, Segment<T> tp2) { """ Computes whether the union of two segments of temporal propositions should be taken. We assume that <code>tp1</code> is before or at the same time as <code>tp2</code>, and that <...
java
<T extends TemporalProposition> boolean execute( PropositionDefinition propDef, Segment<T> tp1, Segment<T> tp2) { if (tp1 == null || tp2 == null) { return false; } return executeInternal(propDef, tp1.getInterval(), tp2.getInterval()); }
[ "<", "T", "extends", "TemporalProposition", ">", "boolean", "execute", "(", "PropositionDefinition", "propDef", ",", "Segment", "<", "T", ">", "tp1", ",", "Segment", "<", "T", ">", "tp2", ")", "{", "if", "(", "tp1", "==", "null", "||", "tp2", "==", "nu...
Computes whether the union of two segments of temporal propositions should be taken. We assume that <code>tp1</code> is before or at the same time as <code>tp2</code>, and that <code>tp1</code> and <code>tp2</code> are instances of <code>propDef</code>. @param propDef a {@link PropositionDefinition}. @param tp1 a {@l...
[ "Computes", "whether", "the", "union", "of", "two", "segments", "of", "temporal", "propositions", "should", "be", "taken", "." ]
train
https://github.com/eurekaclinical/protempa/blob/5a620d1a407c7a5426d1cf17d47b97717cf71634/protempa-framework/src/main/java/org/protempa/HorizontalTemporalInference.java#L62-L69
owetterau/neo4j-websockets
client/src/main/java/de/oliverwetterau/neo4j/websockets/client/server/Database.java
Database.onServerReconnected
public synchronized void onServerReconnected(final String id, final String uri) { """ Add a server to the list of available servers. @param id Neo4j cluster id @param uri websocket uri """ logger.debug("[onServerReconnected] id = {}, uri = {}", id, uri); if (id.length() == 0) { S...
java
public synchronized void onServerReconnected(final String id, final String uri) { logger.debug("[onServerReconnected] id = {}, uri = {}", id, uri); if (id.length() == 0) { Server server = getServerByUri(uri); server.register(); server.setAvailable(true); } ...
[ "public", "synchronized", "void", "onServerReconnected", "(", "final", "String", "id", ",", "final", "String", "uri", ")", "{", "logger", ".", "debug", "(", "\"[onServerReconnected] id = {}, uri = {}\"", ",", "id", ",", "uri", ")", ";", "if", "(", "id", ".", ...
Add a server to the list of available servers. @param id Neo4j cluster id @param uri websocket uri
[ "Add", "a", "server", "to", "the", "list", "of", "available", "servers", "." ]
train
https://github.com/owetterau/neo4j-websockets/blob/ca3481066819d01169873aeb145ab3bf5c736afe/client/src/main/java/de/oliverwetterau/neo4j/websockets/client/server/Database.java#L173-L183
io7m/jaffirm
com.io7m.jaffirm.core/src/main/java/com/io7m/jaffirm/core/Postconditions.java
Postconditions.checkPostconditionD
public static double checkPostconditionD( final double value, final boolean condition, final DoubleFunction<String> describer) { """ A {@code double} specialized version of {@link #checkPostcondition(Object, boolean, Function)} @param value The value @param condition The predicate @param desc...
java
public static double checkPostconditionD( final double value, final boolean condition, final DoubleFunction<String> describer) { return innerCheckD(value, condition, describer); }
[ "public", "static", "double", "checkPostconditionD", "(", "final", "double", "value", ",", "final", "boolean", "condition", ",", "final", "DoubleFunction", "<", "String", ">", "describer", ")", "{", "return", "innerCheckD", "(", "value", ",", "condition", ",", ...
A {@code double} specialized version of {@link #checkPostcondition(Object, boolean, Function)} @param value The value @param condition The predicate @param describer The describer of the predicate @return value @throws PostconditionViolationException If the predicate is false
[ "A", "{", "@code", "double", "}", "specialized", "version", "of", "{", "@link", "#checkPostcondition", "(", "Object", "boolean", "Function", ")", "}" ]
train
https://github.com/io7m/jaffirm/blob/c97d246242d381e48832838737418cfe4cb57b4d/com.io7m.jaffirm.core/src/main/java/com/io7m/jaffirm/core/Postconditions.java#L549-L555
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/QueryParserBase.java
QueryParserBase.prependJoin
protected String prependJoin(String queryString, @Nullable SolrDataQuery query, @Nullable Class<?> domainType) { """ Prepend {@code !join from= to=} to given queryString @param queryString @param query @param domainType @return """ if (query == null || query.getJoin() == null) { return queryString; ...
java
protected String prependJoin(String queryString, @Nullable SolrDataQuery query, @Nullable Class<?> domainType) { if (query == null || query.getJoin() == null) { return queryString; } String fromIndex = query.getJoin().getFromIndex() != null ? " fromIndex=" + query.getJoin().getFromIndex() : ""; return "{!jo...
[ "protected", "String", "prependJoin", "(", "String", "queryString", ",", "@", "Nullable", "SolrDataQuery", "query", ",", "@", "Nullable", "Class", "<", "?", ">", "domainType", ")", "{", "if", "(", "query", "==", "null", "||", "query", ".", "getJoin", "(", ...
Prepend {@code !join from= to=} to given queryString @param queryString @param query @param domainType @return
[ "Prepend", "{", "@code", "!join", "from", "=", "to", "=", "}", "to", "given", "queryString" ]
train
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/QueryParserBase.java#L403-L411
Cornutum/tcases
tcases-lib/src/main/java/org/cornutum/tcases/SystemInputs.java
SystemInputs.getPropertySources
public static Map<String,Collection<VarBindingDef>> getPropertySources( FunctionInputDef function) { """ Maps every property in the given function input definition to the variable value definitions that contribute it. """ SetValuedMap<String,VarBindingDef> sources = MultiMapUtils.newSetValuedHashMap(); ...
java
public static Map<String,Collection<VarBindingDef>> getPropertySources( FunctionInputDef function) { SetValuedMap<String,VarBindingDef> sources = MultiMapUtils.newSetValuedHashMap(); toStream( new VarDefIterator( function)) .flatMap( var -> toStream( var.getValues()).map( value -> new VarBindingDef( ...
[ "public", "static", "Map", "<", "String", ",", "Collection", "<", "VarBindingDef", ">", ">", "getPropertySources", "(", "FunctionInputDef", "function", ")", "{", "SetValuedMap", "<", "String", ",", "VarBindingDef", ">", "sources", "=", "MultiMapUtils", ".", "new...
Maps every property in the given function input definition to the variable value definitions that contribute it.
[ "Maps", "every", "property", "in", "the", "given", "function", "input", "definition", "to", "the", "variable", "value", "definitions", "that", "contribute", "it", "." ]
train
https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputs.java#L39-L48
aws/aws-sdk-java
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java
GenerateDataKeyWithoutPlaintextRequest.withEncryptionContext
public GenerateDataKeyWithoutPlaintextRequest withEncryptionContext(java.util.Map<String, String> encryptionContext) { """ <p> A set of key-value pairs that represents additional authenticated data. </p> <p> For more information, see <a href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-con...
java
public GenerateDataKeyWithoutPlaintextRequest withEncryptionContext(java.util.Map<String, String> encryptionContext) { setEncryptionContext(encryptionContext); return this; }
[ "public", "GenerateDataKeyWithoutPlaintextRequest", "withEncryptionContext", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "encryptionContext", ")", "{", "setEncryptionContext", "(", "encryptionContext", ")", ";", "return", "this", ";", "}...
<p> A set of key-value pairs that represents additional authenticated data. </p> <p> For more information, see <a href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption Context</a> in the <i>AWS Key Management Service Developer Guide</i>. </p> @param encryptionContext A set of k...
[ "<p", ">", "A", "set", "of", "key", "-", "value", "pairs", "that", "represents", "additional", "authenticated", "data", ".", "<", "/", "p", ">", "<p", ">", "For", "more", "information", "see", "<a", "href", "=", "http", ":", "//", "docs", ".", "aws",...
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java#L411-L414
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java
LibraryCacheManager.addLibraryInternal
private void addLibraryInternal(final JobID jobID, final Path name, final long size, final DataInput in) throws IOException { """ Reads a library from the given input stream and adds it to the local library cache. The cache name of the library is determined by the checksum of the received data and cannot be sp...
java
private void addLibraryInternal(final JobID jobID, final Path name, final long size, final DataInput in) throws IOException { if (size > (long) Integer.MAX_VALUE) { throw new IOException("Submitted jar file " + name + " is too large"); } // Map the entire jar file to memory final byte[] buf = new byte[(...
[ "private", "void", "addLibraryInternal", "(", "final", "JobID", "jobID", ",", "final", "Path", "name", ",", "final", "long", "size", ",", "final", "DataInput", "in", ")", "throws", "IOException", "{", "if", "(", "size", ">", "(", "long", ")", "Integer", ...
Reads a library from the given input stream and adds it to the local library cache. The cache name of the library is determined by the checksum of the received data and cannot be specified manually. @param jobID the ID of the job the library data belongs to @param name the name of the library at the clients host @para...
[ "Reads", "a", "library", "from", "the", "given", "input", "stream", "and", "adds", "it", "to", "the", "local", "library", "cache", ".", "The", "cache", "name", "of", "the", "library", "is", "determined", "by", "the", "checksum", "of", "the", "received", ...
train
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java#L636-L668