Dataset Viewer
Auto-converted to Parquet Duplicate
repository_name
stringlengths
7
58
func_path_in_repository
stringlengths
11
204
func_name
stringlengths
5
103
whole_func_string
stringlengths
87
3.44k
language
stringclasses
1 value
func_code_string
stringlengths
87
3.44k
func_code_tokens
sequencelengths
21
714
func_documentation_string
stringlengths
61
1.95k
func_documentation_tokens
sequencelengths
1
482
split_name
stringclasses
1 value
func_code_url
stringlengths
102
309
jcuda/jcuda
JCudaJava/src/main/java/jcuda/driver/JCudaDriver.java
JCudaDriver.cuDeviceComputeCapability
@Deprecated public static int cuDeviceComputeCapability(int major[], int minor[], CUdevice dev) { return checkResult(cuDeviceComputeCapabilityNative(major, minor, dev)); }
java
@Deprecated public static int cuDeviceComputeCapability(int major[], int minor[], CUdevice dev) { return checkResult(cuDeviceComputeCapabilityNative(major, minor, dev)); }
[ "@", "Deprecated", "public", "static", "int", "cuDeviceComputeCapability", "(", "int", "major", "[", "]", ",", "int", "minor", "[", "]", ",", "CUdevice", "dev", ")", "{", "return", "checkResult", "(", "cuDeviceComputeCapabilityNative", "(", "major", ",", "mino...
Returns the compute capability of the device. <pre> CUresult cuDeviceComputeCapability ( int* major, int* minor, CUdevice dev ) </pre> <div> <p>Returns the compute capability of the device. DeprecatedThis function was deprecated as of CUDA 5.0 and its functionality superceded by cuDeviceGetAttribute(). </p> <p>Returns...
[ "Returns", "the", "compute", "capability", "of", "the", "device", "." ]
train
https://github.com/jcuda/jcuda/blob/468528b5b9b37dfceb6ed83fcfd889e9b359f984/JCudaJava/src/main/java/jcuda/driver/JCudaDriver.java#L763-L767
baratine/baratine
kraken/src/main/java/com/caucho/v5/kraken/table/WatchServiceImpl.java
WatchServiceImpl.notifyWatch
@Override public void notifyWatch(TableKraken table, byte []key) { WatchTable watchTable = _tableMap.get(table); if (watchTable != null) { watchTable.onPut(key, TableListener.TypePut.REMOTE); } }
java
@Override public void notifyWatch(TableKraken table, byte []key) { WatchTable watchTable = _tableMap.get(table); if (watchTable != null) { watchTable.onPut(key, TableListener.TypePut.REMOTE); } }
[ "@", "Override", "public", "void", "notifyWatch", "(", "TableKraken", "table", ",", "byte", "[", "]", "key", ")", "{", "WatchTable", "watchTable", "=", "_tableMap", ".", "get", "(", "table", ")", ";", "if", "(", "watchTable", "!=", "null", ")", "{", "w...
Notify local and remote watches for the given table and key @param table the table with the updated row @param key the key for the updated row
[ "Notify", "local", "and", "remote", "watches", "for", "the", "given", "table", "and", "key" ]
train
https://github.com/baratine/baratine/blob/db34b45c03c5a5e930d8142acc72319125569fcf/kraken/src/main/java/com/caucho/v5/kraken/table/WatchServiceImpl.java#L212-L220
UrielCh/ovh-java-sdk
ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java
ApiOvhOrder.hosting_web_serviceName_cdn_duration_POST
public OvhOrder hosting_web_serviceName_cdn_duration_POST(String serviceName, String duration, OvhCdnOfferEnum offer) throws IOException { String qPath = "/order/hosting/web/{serviceName}/cdn/{duration}"; StringBuilder sb = path(qPath, serviceName, duration); HashMap<String, Object>o = new HashMap<String, Object>...
java
public OvhOrder hosting_web_serviceName_cdn_duration_POST(String serviceName, String duration, OvhCdnOfferEnum offer) throws IOException { String qPath = "/order/hosting/web/{serviceName}/cdn/{duration}"; StringBuilder sb = path(qPath, serviceName, duration); HashMap<String, Object>o = new HashMap<String, Object>...
[ "public", "OvhOrder", "hosting_web_serviceName_cdn_duration_POST", "(", "String", "serviceName", ",", "String", "duration", ",", "OvhCdnOfferEnum", "offer", ")", "throws", "IOException", "{", "String", "qPath", "=", "\"/order/hosting/web/{serviceName}/cdn/{duration}\"", ";", ...
Create order REST: POST /order/hosting/web/{serviceName}/cdn/{duration} @param offer [required] Cdn offers you can add to your hosting @param serviceName [required] The internal name of your hosting @param duration [required] Duration
[ "Create", "order" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java#L5013-L5020
googleapis/google-cloud-java
google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
KnowledgeBasesClient.createKnowledgeBase
public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setKnowledgeBase(knowledgeBase) .build();...
java
public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setKnowledgeBase(knowledgeBase) .build();...
[ "public", "final", "KnowledgeBase", "createKnowledgeBase", "(", "ProjectName", "parent", ",", "KnowledgeBase", "knowledgeBase", ")", "{", "CreateKnowledgeBaseRequest", "request", "=", "CreateKnowledgeBaseRequest", ".", "newBuilder", "(", ")", ".", "setParent", "(", "par...
Creates a knowledge base. <p>Sample code: <pre><code> try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); KnowledgeBase knowledgeBase = KnowledgeBase.newBuilder().build(); KnowledgeBase response = knowledgeBasesClient.createKnowledgeBase(...
[ "Creates", "a", "knowledge", "base", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java#L405-L413
jparsec/jparsec
jparsec/src/main/java/org/jparsec/Parser.java
Parser.ifelse
public final <R> Parser<R> ifelse(Parser<? extends R> consequence, Parser<? extends R> alternative) { return ifelse(__ -> consequence, alternative); }
java
public final <R> Parser<R> ifelse(Parser<? extends R> consequence, Parser<? extends R> alternative) { return ifelse(__ -> consequence, alternative); }
[ "public", "final", "<", "R", ">", "Parser", "<", "R", ">", "ifelse", "(", "Parser", "<", "?", "extends", "R", ">", "consequence", ",", "Parser", "<", "?", "extends", "R", ">", "alternative", ")", "{", "return", "ifelse", "(", "__", "->", "consequence...
A {@link Parser} that runs {@code consequence} if {@code this} succeeds, or {@code alternative} otherwise.
[ "A", "{" ]
train
https://github.com/jparsec/jparsec/blob/df1280259f5da9eb5ffc537437569dddba66cb94/jparsec/src/main/java/org/jparsec/Parser.java#L447-L449
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DisasterRecoveryConfigurationsInner.java
DisasterRecoveryConfigurationsInner.beginFailoverAllowDataLoss
public void beginFailoverAllowDataLoss(String resourceGroupName, String serverName, String disasterRecoveryConfigurationName) { beginFailoverAllowDataLossWithServiceResponseAsync(resourceGroupName, serverName, disasterRecoveryConfigurationName).toBlocking().single().body(); }
java
public void beginFailoverAllowDataLoss(String resourceGroupName, String serverName, String disasterRecoveryConfigurationName) { beginFailoverAllowDataLossWithServiceResponseAsync(resourceGroupName, serverName, disasterRecoveryConfigurationName).toBlocking().single().body(); }
[ "public", "void", "beginFailoverAllowDataLoss", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "disasterRecoveryConfigurationName", ")", "{", "beginFailoverAllowDataLossWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ",",...
Fails over from the current primary server to this server. This operation might result in data loss. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param disaster...
[ "Fails", "over", "from", "the", "current", "primary", "server", "to", "this", "server", ".", "This", "operation", "might", "result", "in", "data", "loss", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DisasterRecoveryConfigurationsInner.java#L877-L879
mygreen/xlsmapper
src/main/java/com/gh/mygreen/xlsmapper/util/POIUtils.java
POIUtils.buildNameArea
public static AreaReference buildNameArea(final String sheetName, final Point startPosition, final Point endPosition, SpreadsheetVersion sheetVersion) { ArgUtils.notEmpty(sheetName, "sheetName"); ArgUtils.notNull(startPosition, "startPosition"); ArgUtils.notNull(endPosition, "e...
java
public static AreaReference buildNameArea(final String sheetName, final Point startPosition, final Point endPosition, SpreadsheetVersion sheetVersion) { ArgUtils.notEmpty(sheetName, "sheetName"); ArgUtils.notNull(startPosition, "startPosition"); ArgUtils.notNull(endPosition, "e...
[ "public", "static", "AreaReference", "buildNameArea", "(", "final", "String", "sheetName", ",", "final", "Point", "startPosition", ",", "final", "Point", "endPosition", ",", "SpreadsheetVersion", "sheetVersion", ")", "{", "ArgUtils", ".", "notEmpty", "(", "sheetName...
名前の範囲の形式を組み立てる。 <code>シート名!$A$1:$A:$5</code> @param sheetName シート名 @param startPosition 設定するセルの開始位置 @param endPosition 設定するセルの終了位置 @param sheetVersion シートの形式 @return
[ "名前の範囲の形式を組み立てる。", "<code", ">", "シート名!$A$1", ":", "$A", ":", "$5<", "/", "code", ">" ]
train
https://github.com/mygreen/xlsmapper/blob/a0c6b25c622e5f3a50b199ef685d2ee46ad5483c/src/main/java/com/gh/mygreen/xlsmapper/util/POIUtils.java#L847-L858
phoenixnap/springmvc-raml-plugin
src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java
SchemaHelper.extractTopItem
private static String extractTopItem(String searchString, String schema, int startIdx) { String extracted = null; int propIdx = schema.indexOf("\"properties\"", startIdx); if (propIdx == -1) { propIdx = Integer.MAX_VALUE; } // check for second int idIdx = schema.indexOf("\"" + searchString + "\"", startI...
java
private static String extractTopItem(String searchString, String schema, int startIdx) { String extracted = null; int propIdx = schema.indexOf("\"properties\"", startIdx); if (propIdx == -1) { propIdx = Integer.MAX_VALUE; } // check for second int idIdx = schema.indexOf("\"" + searchString + "\"", startI...
[ "private", "static", "String", "extractTopItem", "(", "String", "searchString", ",", "String", "schema", ",", "int", "startIdx", ")", "{", "String", "extracted", "=", "null", ";", "int", "propIdx", "=", "schema", ".", "indexOf", "(", "\"\\\"properties\\\"\"", ...
Extracts the value of a specified parameter in a schema @param searchString element to search for @param schema Schema as a string @return the value or null if not found
[ "Extracts", "the", "value", "of", "a", "specified", "parameter", "in", "a", "schema" ]
train
https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L261-L281
cdk/cdk
tool/builder3d/src/main/java/org/openscience/cdk/modeling/builder3d/AtomTetrahedralLigandPlacer3D.java
AtomTetrahedralLigandPlacer3D.getPlacedAtomsInAtomContainer
public IAtomContainer getPlacedAtomsInAtomContainer(IAtom atom, IAtomContainer ac) { List bonds = ac.getConnectedBondsList(atom); IAtomContainer connectedAtoms = atom.getBuilder().newInstance(IAtomContainer.class); IAtom connectedAtom = null; for (int i = 0; i < bonds.size(); i++) { ...
java
public IAtomContainer getPlacedAtomsInAtomContainer(IAtom atom, IAtomContainer ac) { List bonds = ac.getConnectedBondsList(atom); IAtomContainer connectedAtoms = atom.getBuilder().newInstance(IAtomContainer.class); IAtom connectedAtom = null; for (int i = 0; i < bonds.size(); i++) { ...
[ "public", "IAtomContainer", "getPlacedAtomsInAtomContainer", "(", "IAtom", "atom", ",", "IAtomContainer", "ac", ")", "{", "List", "bonds", "=", "ac", ".", "getConnectedBondsList", "(", "atom", ")", ";", "IAtomContainer", "connectedAtoms", "=", "atom", ".", "getBui...
Gets all placed neighbouring atoms of a atom. @param atom central atom (Atom) @param ac the molecule @return all connected and placed atoms to the central atom ((AtomContainer)
[ "Gets", "all", "placed", "neighbouring", "atoms", "of", "a", "atom", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/tool/builder3d/src/main/java/org/openscience/cdk/modeling/builder3d/AtomTetrahedralLigandPlacer3D.java#L816-L828
kcthota/emoji4j
src/main/java/emoji4j/AbstractEmoji.java
AbstractEmoji.htmlifyHelper
protected static String htmlifyHelper(String text, boolean isHex, boolean isSurrogate) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < text.length(); i++) { int ch = text.codePointAt(i); if (ch <= 128) { sb.appendCodePoint(ch); } else if (ch > 128 && (ch < 159 || (ch >= 55296 && ch <= 57...
java
protected static String htmlifyHelper(String text, boolean isHex, boolean isSurrogate) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < text.length(); i++) { int ch = text.codePointAt(i); if (ch <= 128) { sb.appendCodePoint(ch); } else if (ch > 128 && (ch < 159 || (ch >= 55296 && ch <= 57...
[ "protected", "static", "String", "htmlifyHelper", "(", "String", "text", ",", "boolean", "isHex", ",", "boolean", "isSurrogate", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", ...
Helper to convert emoji characters to html entities in a string @param text String to htmlify @param isHex isHex @return htmlified string
[ "Helper", "to", "convert", "emoji", "characters", "to", "html", "entities", "in", "a", "string" ]
train
https://github.com/kcthota/emoji4j/blob/b8cc0c60b8d804cfd7f3369689576b9a93ea1e6f/src/main/java/emoji4j/AbstractEmoji.java#L29-L61
operasoftware/operaprestodriver
src/com/opera/core/systems/scope/WaitState.java
WaitState.pollResultItem
private ResultItem pollResultItem(long timeout, boolean idle) { ResultItem result = getResult(); if (result != null) { result.remainingIdleTimeout = timeout; } if (result == null && timeout > 0) { long start = System.currentTimeMillis(); internalWait(timeout); long end = System....
java
private ResultItem pollResultItem(long timeout, boolean idle) { ResultItem result = getResult(); if (result != null) { result.remainingIdleTimeout = timeout; } if (result == null && timeout > 0) { long start = System.currentTimeMillis(); internalWait(timeout); long end = System....
[ "private", "ResultItem", "pollResultItem", "(", "long", "timeout", ",", "boolean", "idle", ")", "{", "ResultItem", "result", "=", "getResult", "(", ")", ";", "if", "(", "result", "!=", "null", ")", "{", "result", ".", "remainingIdleTimeout", "=", "timeout", ...
Checks for a result item. <p/> If no result item is available this method will wait for timeout milliseconds and try again. If still no result if available then a ResponseNotReceivedException is thrown. @param timeout time in milliseconds to wait before retrying. @param idle whether you are waiting for an Idle even...
[ "Checks", "for", "a", "result", "item", ".", "<p", "/", ">", "If", "no", "result", "item", "is", "available", "this", "method", "will", "wait", "for", "timeout", "milliseconds", "and", "try", "again", ".", "If", "still", "no", "result", "if", "available"...
train
https://github.com/operasoftware/operaprestodriver/blob/1ccceda80f1c1a0489171d17dcaa6e7b18fb4c01/src/com/opera/core/systems/scope/WaitState.java#L428-L454
eurekaclinical/eurekaclinical-common
src/main/java/org/eurekaclinical/common/comm/clients/EurekaClinicalClient.java
EurekaClinicalClient.doPost
protected <T> T doPost(String path, MultivaluedMap<String, String> formParams, GenericType<T> genericType) throws ClientException { return doPost(path, formParams, genericType, null); }
java
protected <T> T doPost(String path, MultivaluedMap<String, String> formParams, GenericType<T> genericType) throws ClientException { return doPost(path, formParams, genericType, null); }
[ "protected", "<", "T", ">", "T", "doPost", "(", "String", "path", ",", "MultivaluedMap", "<", "String", ",", "String", ">", "formParams", ",", "GenericType", "<", "T", ">", "genericType", ")", "throws", "ClientException", "{", "return", "doPost", "(", "pat...
Submits a form and gets back a JSON object. Adds appropriate Accepts and Content Type headers. @param <T> the type of object that is expected in the response. @param path the API to call. @param formParams the form parameters to send. @param genericType the type of object that is expected in the response. @return the ...
[ "Submits", "a", "form", "and", "gets", "back", "a", "JSON", "object", ".", "Adds", "appropriate", "Accepts", "and", "Content", "Type", "headers", "." ]
train
https://github.com/eurekaclinical/eurekaclinical-common/blob/1867102ff43fe94e519f76a074d5f5923e9be61c/src/main/java/org/eurekaclinical/common/comm/clients/EurekaClinicalClient.java#L487-L489
OpenBEL/openbel-framework
org.openbel.framework.common/src/main/java/org/openbel/framework/common/protonetwork/model/ProtoNodeTable.java
ProtoNodeTable.addNode
public Integer addNode(final int termIndex, final String label) { if (label == null) { throw new InvalidArgument("label", label); } // if we have already seen this term index, return Integer visitedIndex = termNodeIndex.get(termIndex); if (visitedIndex != null) { ...
java
public Integer addNode(final int termIndex, final String label) { if (label == null) { throw new InvalidArgument("label", label); } // if we have already seen this term index, return Integer visitedIndex = termNodeIndex.get(termIndex); if (visitedIndex != null) { ...
[ "public", "Integer", "addNode", "(", "final", "int", "termIndex", ",", "final", "String", "label", ")", "{", "if", "(", "label", "==", "null", ")", "{", "throw", "new", "InvalidArgument", "(", "\"label\"", ",", "label", ")", ";", "}", "// if we have alread...
Adds a proto node {@link String label} for a specific {@link Integer term index}. If the {@link Integer term index} has already been added then its {@link Integer proto node index} will be returned. <p> This operation maintains the {@link Map map} of term index to node index. </p> @param termIndex {@link Integer} the ...
[ "Adds", "a", "proto", "node", "{", "@link", "String", "label", "}", "for", "a", "specific", "{", "@link", "Integer", "term", "index", "}", ".", "If", "the", "{", "@link", "Integer", "term", "index", "}", "has", "already", "been", "added", "then", "its"...
train
https://github.com/OpenBEL/openbel-framework/blob/149f80b1d6eabb15ab15815b6f745b0afa9fd2d3/org.openbel.framework.common/src/main/java/org/openbel/framework/common/protonetwork/model/ProtoNodeTable.java#L112-L133
BorderTech/wcomponents
wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WEditableImageRenderer.java
WEditableImageRenderer.doRender
@Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WEditableImage editableImage = (WEditableImage) component; XmlStringBuilder xml = renderContext.getWriter(); // No image set if (editableImage.getImage() == null && editableImage.getImageUrl() == null) { r...
java
@Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WEditableImage editableImage = (WEditableImage) component; XmlStringBuilder xml = renderContext.getWriter(); // No image set if (editableImage.getImage() == null && editableImage.getImageUrl() == null) { r...
[ "@", "Override", "public", "void", "doRender", "(", "final", "WComponent", "component", ",", "final", "WebXmlRenderContext", "renderContext", ")", "{", "WEditableImage", "editableImage", "=", "(", "WEditableImage", ")", "component", ";", "XmlStringBuilder", "xml", "...
Paints the given {@link WEditableImage}. @param component the WEditableImage to paint. @param renderContext the RenderContext to paint to.
[ "Paints", "the", "given", "{", "@link", "WEditableImage", "}", "." ]
train
https://github.com/BorderTech/wcomponents/blob/d1a2b2243270067db030feb36ca74255aaa94436/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WEditableImageRenderer.java#L23-L39
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java
TEBeanLifeCycleInfo.traceBeanState
public static void traceBeanState(int oldState, String oldString, int newState, String newString) // d167264 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_St...
java
public static void traceBeanState(int oldState, String oldString, int newState, String newString) // d167264 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_St...
[ "public", "static", "void", "traceBeanState", "(", "int", "oldState", ",", "String", "oldString", ",", "int", "newState", ",", "String", "newString", ")", "// d167264", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", ...
This is called by the EJB container server code to write a ejb bean state record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "ejb", "bean", "state", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java#L68-L85
jbundle/jbundle
base/base/src/main/java/org/jbundle/base/db/QueryRecord.java
QueryRecord.addRelationship
public void addRelationship(int linkType, Record recLeft, Record recRight, String fldLeft1, String fldRight1, String fldLeft2, String fldRight2, String fldLeft3, String fldRight3) { new TableLink(this, linkType, recLeft, recRight, fldLeft1, fldRight1, fldLeft2, fldRight2, fldLeft3, fldRight3); }
java
public void addRelationship(int linkType, Record recLeft, Record recRight, String fldLeft1, String fldRight1, String fldLeft2, String fldRight2, String fldLeft3, String fldRight3) { new TableLink(this, linkType, recLeft, recRight, fldLeft1, fldRight1, fldLeft2, fldRight2, fldLeft3, fldRight3); }
[ "public", "void", "addRelationship", "(", "int", "linkType", ",", "Record", "recLeft", ",", "Record", "recRight", ",", "String", "fldLeft1", ",", "String", "fldRight1", ",", "String", "fldLeft2", ",", "String", "fldRight2", ",", "String", "fldLeft3", ",", "Str...
Add this table link to this query. Creates a new tablelink and adds it to the link list.
[ "Add", "this", "table", "link", "to", "this", "query", ".", "Creates", "a", "new", "tablelink", "and", "adds", "it", "to", "the", "link", "list", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/QueryRecord.java#L176-L179
igniterealtime/Smack
smack-legacy/src/main/java/org/jivesoftware/smackx/workgroup/agent/AgentSession.java
AgentSession.getAgentHistory
public AgentChatHistory getAgentHistory(EntityBareJid jid, int maxSessions, Date startDate) throws XMPPException, NotConnectedException, InterruptedException { AgentChatHistory request; if (startDate != null) { request = new AgentChatHistory(jid, maxSessions, startDate); } el...
java
public AgentChatHistory getAgentHistory(EntityBareJid jid, int maxSessions, Date startDate) throws XMPPException, NotConnectedException, InterruptedException { AgentChatHistory request; if (startDate != null) { request = new AgentChatHistory(jid, maxSessions, startDate); } el...
[ "public", "AgentChatHistory", "getAgentHistory", "(", "EntityBareJid", "jid", ",", "int", "maxSessions", ",", "Date", "startDate", ")", "throws", "XMPPException", ",", "NotConnectedException", ",", "InterruptedException", "{", "AgentChatHistory", "request", ";", "if", ...
Retrieves the AgentChatHistory associated with a particular agent jid. @param jid the jid of the agent. @param maxSessions the max number of sessions to retrieve. @param startDate point in time from which on history should get retrieved. @return the chat history associated with a given jid. @throws XMPPException if an...
[ "Retrieves", "the", "AgentChatHistory", "associated", "with", "a", "particular", "agent", "jid", "." ]
train
https://github.com/igniterealtime/Smack/blob/870756997faec1e1bfabfac0cd6c2395b04da873/smack-legacy/src/main/java/org/jivesoftware/smackx/workgroup/agent/AgentSession.java#L896-L912
jhunters/jprotobuf
src/main/java/com/baidu/bjf/remoting/protobuf/code/CodedConstant.java
CodedConstant.getRequiredCheck
public static String getRequiredCheck(int order, Field field) { String fieldName = getFieldName(order); String code = "if (" + fieldName + "== null) {\n"; code += "throw new UninitializedMessageException(CodedConstant.asList(\"" + field.getName() + "\"))" + ClassCode.JAVA_LINE_BR...
java
public static String getRequiredCheck(int order, Field field) { String fieldName = getFieldName(order); String code = "if (" + fieldName + "== null) {\n"; code += "throw new UninitializedMessageException(CodedConstant.asList(\"" + field.getName() + "\"))" + ClassCode.JAVA_LINE_BR...
[ "public", "static", "String", "getRequiredCheck", "(", "int", "order", ",", "Field", "field", ")", "{", "String", "fieldName", "=", "getFieldName", "(", "order", ")", ";", "String", "code", "=", "\"if (\"", "+", "fieldName", "+", "\"== null) {\\n\"", ";", "c...
get required field check java expression. @param order field order @param field java field @return full java expression
[ "get", "required", "field", "check", "java", "expression", "." ]
train
https://github.com/jhunters/jprotobuf/blob/55832c9b4792afb128e5b35139d8a3891561d8a3/src/main/java/com/baidu/bjf/remoting/protobuf/code/CodedConstant.java#L477-L485
lessthanoptimal/BoofCV
examples/src/main/java/boofcv/examples/features/ExampleFeatureSurf.java
ExampleFeatureSurf.harder
public static <II extends ImageGray<II>> void harder(GrayF32 image ) { // SURF works off of integral images Class<II> integralType = GIntegralImageOps.getIntegralType(GrayF32.class); // define the feature detection algorithm NonMaxSuppression extractor = FactoryFeatureExtractor.nonmax(new ConfigExtract(2...
java
public static <II extends ImageGray<II>> void harder(GrayF32 image ) { // SURF works off of integral images Class<II> integralType = GIntegralImageOps.getIntegralType(GrayF32.class); // define the feature detection algorithm NonMaxSuppression extractor = FactoryFeatureExtractor.nonmax(new ConfigExtract(2...
[ "public", "static", "<", "II", "extends", "ImageGray", "<", "II", ">", ">", "void", "harder", "(", "GrayF32", "image", ")", "{", "// SURF works off of integral images", "Class", "<", "II", ">", "integralType", "=", "GIntegralImageOps", ".", "getIntegralType", "(...
Configured exactly the same as the easy example above, but require a lot more code and a more in depth understanding of how SURF works and is configured. Instead of TupleDesc_F64, SurfFeature are computed in this case. They are almost the same as TupleDesc_F64, but contain the Laplacian's sign which can be used to sp...
[ "Configured", "exactly", "the", "same", "as", "the", "easy", "example", "above", "but", "require", "a", "lot", "more", "code", "and", "a", "more", "in", "depth", "understanding", "of", "how", "SURF", "works", "and", "is", "configured", ".", "Instead", "of"...
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/examples/src/main/java/boofcv/examples/features/ExampleFeatureSurf.java#L79-L124
google/closure-compiler
src/com/google/javascript/rhino/TypeDeclarationsIR.java
TypeDeclarationsIR.functionType
public static TypeDeclarationNode functionType( Node returnType, LinkedHashMap<String, TypeDeclarationNode> requiredParams, LinkedHashMap<String, TypeDeclarationNode> optionalParams, String restName, TypeDeclarationNode restType) { TypeDeclarationNode node = new TypeDeclarationNode(Token.FUNCTION_...
java
public static TypeDeclarationNode functionType( Node returnType, LinkedHashMap<String, TypeDeclarationNode> requiredParams, LinkedHashMap<String, TypeDeclarationNode> optionalParams, String restName, TypeDeclarationNode restType) { TypeDeclarationNode node = new TypeDeclarationNode(Token.FUNCTION_...
[ "public", "static", "TypeDeclarationNode", "functionType", "(", "Node", "returnType", ",", "LinkedHashMap", "<", "String", ",", "TypeDeclarationNode", ">", "requiredParams", ",", "LinkedHashMap", "<", "String", ",", "TypeDeclarationNode", ">", "optionalParams", ",", "...
Represents a function type. Closure has syntax like {@code {function(string, boolean):number}} Closure doesn't include parameter names. If the parameter types are unnamed, arbitrary names can be substituted, eg. p1, p2, etc. <p>Example: <pre> FUNCTION_TYPE NUMBER_TYPE STRING_KEY p1 [declared_type_expr: STRING_TYPE] ST...
[ "Represents", "a", "function", "type", ".", "Closure", "has", "syntax", "like", "{", "@code", "{", "function", "(", "string", "boolean", ")", ":", "number", "}}", "Closure", "doesn", "t", "include", "parameter", "names", ".", "If", "the", "parameter", "typ...
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/rhino/TypeDeclarationsIR.java#L188-L212
finmath/finmath-lib
src/main/java/net/finmath/montecarlo/interestrate/products/components/IndexedValue.java
IndexedValue.getValue
@Override public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException { double evaluationTimeUnderlying = Math.max(evaluationTime, exerciseDate); RandomVariable underlyingValues = underlying.getValue(evaluationTimeUnderlying, model); RandomVariab...
java
@Override public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException { double evaluationTimeUnderlying = Math.max(evaluationTime, exerciseDate); RandomVariable underlyingValues = underlying.getValue(evaluationTimeUnderlying, model); RandomVariab...
[ "@", "Override", "public", "RandomVariable", "getValue", "(", "double", "evaluationTime", ",", "LIBORModelMonteCarloSimulationModel", "model", ")", "throws", "CalculationException", "{", "double", "evaluationTimeUnderlying", "=", "Math", ".", "max", "(", "evaluationTime",...
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime. Note: For a lattice this is often the value conditional to evalutationTime, for a Monte-Carlo simulation this is the (sum of) value discounted to evaluation time. Cash flows prior evaluationTim...
[ "This", "method", "returns", "the", "value", "random", "variable", "of", "the", "product", "within", "the", "specified", "model", "evaluated", "at", "a", "given", "evalutationTime", ".", "Note", ":", "For", "a", "lattice", "this", "is", "often", "the", "valu...
train
https://github.com/finmath/finmath-lib/blob/a3c067d52dd33feb97d851df6cab130e4116759f/src/main/java/net/finmath/montecarlo/interestrate/products/components/IndexedValue.java#L73-L101
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java
PersonDirectoryPrincipalResolver.extractPrincipalId
protected String extractPrincipalId(final Credential credential, final Optional<Principal> currentPrincipal) { LOGGER.debug("Extracting credential id based on existing credential [{}]", credential); val id = credential.getId(); if (currentPrincipal != null && currentPrincipal.isPresent()) { ...
java
protected String extractPrincipalId(final Credential credential, final Optional<Principal> currentPrincipal) { LOGGER.debug("Extracting credential id based on existing credential [{}]", credential); val id = credential.getId(); if (currentPrincipal != null && currentPrincipal.isPresent()) { ...
[ "protected", "String", "extractPrincipalId", "(", "final", "Credential", "credential", ",", "final", "Optional", "<", "Principal", ">", "currentPrincipal", ")", "{", "LOGGER", ".", "debug", "(", "\"Extracting credential id based on existing credential [{}]\"", ",", "crede...
Extracts the id of the user from the provided credential. This method should be overridden by subclasses to achieve more sophisticated strategies for producing a principal ID from a credential. @param credential the credential provided by the user. @param currentPrincipal the current principal @return the userna...
[ "Extracts", "the", "id", "of", "the", "user", "from", "the", "provided", "credential", ".", "This", "method", "should", "be", "overridden", "by", "subclasses", "to", "achieve", "more", "sophisticated", "strategies", "for", "producing", "a", "principal", "ID", ...
train
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java#L262-L282
inferred/FreeBuilder
src/main/java/org/inferred/freebuilder/processor/Analyser.java
Analyser.tryFindBuilder
private Optional<DeclaredType> tryFindBuilder( final QualifiedName superclass, TypeElement valueType) { TypeElement builderType = typesIn(valueType.getEnclosedElements()) .stream() .filter(element -> element.getSimpleName().contentEquals(USER_BUILDER_NAME)) .findAny() .orElse(n...
java
private Optional<DeclaredType> tryFindBuilder( final QualifiedName superclass, TypeElement valueType) { TypeElement builderType = typesIn(valueType.getEnclosedElements()) .stream() .filter(element -> element.getSimpleName().contentEquals(USER_BUILDER_NAME)) .findAny() .orElse(n...
[ "private", "Optional", "<", "DeclaredType", ">", "tryFindBuilder", "(", "final", "QualifiedName", "superclass", ",", "TypeElement", "valueType", ")", "{", "TypeElement", "builderType", "=", "typesIn", "(", "valueType", ".", "getEnclosedElements", "(", ")", ")", "....
Looks for a nested type in {@code valueType} called Builder, and verifies it extends the autogenerated {@code superclass}. <p>If the value type is generic, the builder type must match, and the returned DeclaredType will be parameterized with the type variables from the <b>value type</b>, not the builder. (This makes t...
[ "Looks", "for", "a", "nested", "type", "in", "{", "@code", "valueType", "}", "called", "Builder", "and", "verifies", "it", "extends", "the", "autogenerated", "{", "@code", "superclass", "}", "." ]
train
https://github.com/inferred/FreeBuilder/blob/d5a222f90648aece135da4b971c55a60afe8649c/src/main/java/org/inferred/freebuilder/processor/Analyser.java#L332-L383
EasyinnovaSL/Tiff-Library-4J
src/main/java/com/easyinnova/tiff/profiles/TiffITProfile.java
TiffITProfile.checkRequiredTag
private boolean checkRequiredTag(IfdTags metadata, String tagName, int cardinality) { return checkRequiredTag(metadata, tagName, cardinality, null); }
java
private boolean checkRequiredTag(IfdTags metadata, String tagName, int cardinality) { return checkRequiredTag(metadata, tagName, cardinality, null); }
[ "private", "boolean", "checkRequiredTag", "(", "IfdTags", "metadata", ",", "String", "tagName", ",", "int", "cardinality", ")", "{", "return", "checkRequiredTag", "(", "metadata", ",", "tagName", ",", "cardinality", ",", "null", ")", ";", "}" ]
Check a required tag is present. @param metadata the metadata @param tagName the name of the mandatory tag @param cardinality the mandatory cardinality @return true, if tag is present
[ "Check", "a", "required", "tag", "is", "present", "." ]
train
https://github.com/EasyinnovaSL/Tiff-Library-4J/blob/682605d3ed207a66213278c054c98f1b909472b7/src/main/java/com/easyinnova/tiff/profiles/TiffITProfile.java#L661-L663
googleapis/google-cloud-java
google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
EntityTypesClient.updateEntityType
public final EntityType updateEntityType(EntityType entityType, String languageCode) { UpdateEntityTypeRequest request = UpdateEntityTypeRequest.newBuilder() .setEntityType(entityType) .setLanguageCode(languageCode) .build(); return updateEntityType(request); }
java
public final EntityType updateEntityType(EntityType entityType, String languageCode) { UpdateEntityTypeRequest request = UpdateEntityTypeRequest.newBuilder() .setEntityType(entityType) .setLanguageCode(languageCode) .build(); return updateEntityType(request); }
[ "public", "final", "EntityType", "updateEntityType", "(", "EntityType", "entityType", ",", "String", "languageCode", ")", "{", "UpdateEntityTypeRequest", "request", "=", "UpdateEntityTypeRequest", ".", "newBuilder", "(", ")", ".", "setEntityType", "(", "entityType", "...
Updates the specified entity type. <p>Sample code: <pre><code> try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { EntityType entityType = EntityType.newBuilder().build(); String languageCode = ""; EntityType response = entityTypesClient.updateEntityType(entityType, languageCode); } </code></pre>...
[ "Updates", "the", "specified", "entity", "type", "." ]
train
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java#L768-L776
Azure/azure-sdk-for-java
appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java
AppServiceEnvironmentsInner.createOrUpdate
public AppServiceEnvironmentResourceInner createOrUpdate(String resourceGroupName, String name, AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentEnvelope).toBlocking().last().body(); }
java
public AppServiceEnvironmentResourceInner createOrUpdate(String resourceGroupName, String name, AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentEnvelope).toBlocking().last().body(); }
[ "public", "AppServiceEnvironmentResourceInner", "createOrUpdate", "(", "String", "resourceGroupName", ",", "String", "name", ",", "AppServiceEnvironmentResourceInner", "hostingEnvironmentEnvelope", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "resourceGroupNam...
Create or update an App Service Environment. Create or update an App Service Environment. @param resourceGroupName Name of the resource group to which the resource belongs. @param name Name of the App Service Environment. @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. @throws I...
[ "Create", "or", "update", "an", "App", "Service", "Environment", ".", "Create", "or", "update", "an", "App", "Service", "Environment", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java#L686-L688
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/productinfo/ProductInfo.java
ProductInfo.getVersionFilesByProdExtension
public static Map<String, File[]> getVersionFilesByProdExtension(File installDir) { Map<String, File[]> versionFiles = new TreeMap<String, File[]>(); Iterator<ProductExtensionInfo> productExtensions = ProductExtension.getProductExtensions().iterator(); while (productExtensions != null && produc...
java
public static Map<String, File[]> getVersionFilesByProdExtension(File installDir) { Map<String, File[]> versionFiles = new TreeMap<String, File[]>(); Iterator<ProductExtensionInfo> productExtensions = ProductExtension.getProductExtensions().iterator(); while (productExtensions != null && produc...
[ "public", "static", "Map", "<", "String", ",", "File", "[", "]", ">", "getVersionFilesByProdExtension", "(", "File", "installDir", ")", "{", "Map", "<", "String", ",", "File", "[", "]", ">", "versionFiles", "=", "new", "TreeMap", "<", "String", ",", "Fil...
Retrieves the product extension jar bundles pointed to by the properties file in etc/extensions. @return The array of product extension jar bundles
[ "Retrieves", "the", "product", "extension", "jar", "bundles", "pointed", "to", "by", "the", "properties", "file", "in", "etc", "/", "extensions", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/productinfo/ProductInfo.java#L254-L280
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ManagedObject.java
ManagedObject.setState
private void setState(int[] nextState) throws StateErrorException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "setState", new Object[] { nextState, ...
java
private void setState(int[] nextState) throws StateErrorException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "setState", new Object[] { nextState, ...
[ "private", "void", "setState", "(", "int", "[", "]", "nextState", ")", "throws", "StateErrorException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry", "(", "this"...
Makes a state transition. @param nextState maps the current stte to the new one. @throws StateErrorException if the transition is invalid.
[ "Makes", "a", "state", "transition", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ManagedObject.java#L1997-L2033
super-csv/super-csv
super-csv-joda/src/main/java/org/supercsv/cellprocessor/joda/FmtDuration.java
FmtDuration.execute
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.t...
java
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.t...
[ "public", "Object", "execute", "(", "final", "Object", "value", ",", "final", "CsvContext", "context", ")", "{", "validateInputNotNull", "(", "value", ",", "context", ")", ";", "if", "(", "!", "(", "value", "instanceof", "Duration", ")", ")", "{", "throw",...
{@inheritDoc} @throws SuperCsvCellProcessorException if value is null or not a Duration
[ "{", "@inheritDoc", "}" ]
train
https://github.com/super-csv/super-csv/blob/f18db724674dc1c4116e25142c1b5403ebf43e96/super-csv-joda/src/main/java/org/supercsv/cellprocessor/joda/FmtDuration.java#L63-L72
defei/codelogger-utils
src/main/java/org/codelogger/utils/StringUtils.java
StringUtils.indexOfIgnoreCase
public static int indexOfIgnoreCase(final String source, final String target) { int targetIndex = source.indexOf(target); if (targetIndex == INDEX_OF_NOT_FOUND) { String sourceLowerCase = source.toLowerCase(); String targetLowerCase = target.toLowerCase(); targetIndex = sourceLowerCase.indexO...
java
public static int indexOfIgnoreCase(final String source, final String target) { int targetIndex = source.indexOf(target); if (targetIndex == INDEX_OF_NOT_FOUND) { String sourceLowerCase = source.toLowerCase(); String targetLowerCase = target.toLowerCase(); targetIndex = sourceLowerCase.indexO...
[ "public", "static", "int", "indexOfIgnoreCase", "(", "final", "String", "source", ",", "final", "String", "target", ")", "{", "int", "targetIndex", "=", "source", ".", "indexOf", "(", "target", ")", ";", "if", "(", "targetIndex", "==", "INDEX_OF_NOT_FOUND", ...
Returns the index within given source string of the first occurrence of the specified target string with ignore case sensitive. @param source source string to be tested. @param target target string to be tested. @return index number if found, -1 otherwise.
[ "Returns", "the", "index", "within", "given", "source", "string", "of", "the", "first", "occurrence", "of", "the", "specified", "target", "string", "with", "ignore", "case", "sensitive", "." ]
train
https://github.com/defei/codelogger-utils/blob/d906f5d217b783c7ae3e53442cd6fb87b20ecc0a/src/main/java/org/codelogger/utils/StringUtils.java#L125-L136
apache/flink
flink-table/flink-table-planner-blink/src/main/java/org/apache/calcite/avatica/util/DateTimeUtils.java
DateTimeUtils.parseFraction
private static int parseFraction(String v, int multiplier) { int r = 0; for (int i = 0; i < v.length(); i++) { char c = v.charAt(i); int x = c < '0' || c > '9' ? 0 : (c - '0'); r += multiplier * x; if (multiplier < 10) { // We're at the last digit. Check for rounding. if (i + 1 < v.length() ...
java
private static int parseFraction(String v, int multiplier) { int r = 0; for (int i = 0; i < v.length(); i++) { char c = v.charAt(i); int x = c < '0' || c > '9' ? 0 : (c - '0'); r += multiplier * x; if (multiplier < 10) { // We're at the last digit. Check for rounding. if (i + 1 < v.length() ...
[ "private", "static", "int", "parseFraction", "(", "String", "v", ",", "int", "multiplier", ")", "{", "int", "r", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "v", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "...
Parses a fraction, multiplying the first character by {@code multiplier}, the second character by {@code multiplier / 10}, the third character by {@code multiplier / 100}, and so forth. <p>For example, {@code parseFraction("1234", 100)} yields {@code 123}.
[ "Parses", "a", "fraction", "multiplying", "the", "first", "character", "by", "{", "@code", "multiplier", "}", "the", "second", "character", "by", "{", "@code", "multiplier", "/", "10", "}", "the", "third", "character", "by", "{", "@code", "multiplier", "/", ...
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-table/flink-table-planner-blink/src/main/java/org/apache/calcite/avatica/util/DateTimeUtils.java#L838-L855
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java
AptPropertySet.initProperties
protected ArrayList<AptProperty> initProperties() { ArrayList<AptProperty> properties = new ArrayList<AptProperty>(); if (_propertySet == null || _propertySet.getMethods() == null ) return properties; // Add all declared method, but ignore the mystery <clinit> methods ...
java
protected ArrayList<AptProperty> initProperties() { ArrayList<AptProperty> properties = new ArrayList<AptProperty>(); if (_propertySet == null || _propertySet.getMethods() == null ) return properties; // Add all declared method, but ignore the mystery <clinit> methods ...
[ "protected", "ArrayList", "<", "AptProperty", ">", "initProperties", "(", ")", "{", "ArrayList", "<", "AptProperty", ">", "properties", "=", "new", "ArrayList", "<", "AptProperty", ">", "(", ")", ";", "if", "(", "_propertySet", "==", "null", "||", "_property...
Initializes the list of ControlProperties associated with this ControlPropertySet
[ "Initializes", "the", "list", "of", "ControlProperties", "associated", "with", "this", "ControlPropertySet" ]
train
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java#L67-L81
mgm-tp/jfunk
jfunk-web/src/main/java/com/mgmtp/jfunk/web/util/WebDriverTool.java
WebDriverTool.getElementText
public String getElementText(final By by, final boolean normalizeSpace) { WebElement element = findElement(by); String text = element.getText(); return normalizeSpace ? JFunkUtils.normalizeSpace(text) : text; }
java
public String getElementText(final By by, final boolean normalizeSpace) { WebElement element = findElement(by); String text = element.getText(); return normalizeSpace ? JFunkUtils.normalizeSpace(text) : text; }
[ "public", "String", "getElementText", "(", "final", "By", "by", ",", "final", "boolean", "normalizeSpace", ")", "{", "WebElement", "element", "=", "findElement", "(", "by", ")", ";", "String", "text", "=", "element", ".", "getText", "(", ")", ";", "return"...
Delegates to {@link #findElement(By)} and then calls {@link WebElement#getText() getText()} on the returned element. If {@code normalizeSpace} is {@code true}, the element's text is passed to {@link JFunkUtils#normalizeSpace(String)}. @param by the {@link By} used to locate the element @param normalizeSpace specifies ...
[ "Delegates", "to", "{", "@link", "#findElement", "(", "By", ")", "}", "and", "then", "calls", "{", "@link", "WebElement#getText", "()", "getText", "()", "}", "on", "the", "returned", "element", ".", "If", "{", "@code", "normalizeSpace", "}", "is", "{", "...
train
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-web/src/main/java/com/mgmtp/jfunk/web/util/WebDriverTool.java#L572-L576
google/closure-compiler
src/com/google/javascript/rhino/jstype/JSTypeRegistry.java
JSTypeRegistry.createTemplateTypeMap
public TemplateTypeMap createTemplateTypeMap( ImmutableList<TemplateType> templateKeys, ImmutableList<JSType> templateValues) { if (templateKeys == null) { templateKeys = ImmutableList.of(); } if (templateValues == null) { templateValues = ImmutableList.of(); } return (templa...
java
public TemplateTypeMap createTemplateTypeMap( ImmutableList<TemplateType> templateKeys, ImmutableList<JSType> templateValues) { if (templateKeys == null) { templateKeys = ImmutableList.of(); } if (templateValues == null) { templateValues = ImmutableList.of(); } return (templa...
[ "public", "TemplateTypeMap", "createTemplateTypeMap", "(", "ImmutableList", "<", "TemplateType", ">", "templateKeys", ",", "ImmutableList", "<", "JSType", ">", "templateValues", ")", "{", "if", "(", "templateKeys", "==", "null", ")", "{", "templateKeys", "=", "Imm...
Creates a template type map from the specified list of template keys and template value types.
[ "Creates", "a", "template", "type", "map", "from", "the", "specified", "list", "of", "template", "keys", "and", "template", "value", "types", "." ]
train
https://github.com/google/closure-compiler/blob/d81e36740f6a9e8ac31a825ee8758182e1dc5aae/src/com/google/javascript/rhino/jstype/JSTypeRegistry.java#L1855-L1867
google/error-prone
check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java
ASTHelpers.constValue
@Nullable public static <T> T constValue(Tree tree, Class<? extends T> clazz) { Object value = constValue(tree); return clazz.isInstance(value) ? clazz.cast(value) : null; }
java
@Nullable public static <T> T constValue(Tree tree, Class<? extends T> clazz) { Object value = constValue(tree); return clazz.isInstance(value) ? clazz.cast(value) : null; }
[ "@", "Nullable", "public", "static", "<", "T", ">", "T", "constValue", "(", "Tree", "tree", ",", "Class", "<", "?", "extends", "T", ">", "clazz", ")", "{", "Object", "value", "=", "constValue", "(", "tree", ")", ";", "return", "clazz", ".", "isInstan...
Returns the compile-time constant value of a tree if it is of type clazz, or {@code null}.
[ "Returns", "the", "compile", "-", "time", "constant", "value", "of", "a", "tree", "if", "it", "is", "of", "type", "clazz", "or", "{" ]
train
https://github.com/google/error-prone/blob/fe2e3cc2cf1958cb7c487bfe89852bb4c225ba9d/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java#L931-L935
LearnLib/learnlib
oracles/equivalence-oracles/src/main/java/de/learnlib/oracle/equivalence/SampleSetEQOracle.java
SampleSetEQOracle.addAll
@SafeVarargs public final SampleSetEQOracle<I, D> addAll(MembershipOracle<I, D> oracle, Word<I>... words) { return addAll(oracle, Arrays.asList(words)); }
java
@SafeVarargs public final SampleSetEQOracle<I, D> addAll(MembershipOracle<I, D> oracle, Word<I>... words) { return addAll(oracle, Arrays.asList(words)); }
[ "@", "SafeVarargs", "public", "final", "SampleSetEQOracle", "<", "I", ",", "D", ">", "addAll", "(", "MembershipOracle", "<", "I", ",", "D", ">", "oracle", ",", "Word", "<", "I", ">", "...", "words", ")", "{", "return", "addAll", "(", "oracle", ",", "...
Adds several query words to the sample set. The expected output is determined by means of the specified membership oracle. @param oracle the membership oracle used to determine expected outputs @param words the words to be added to the sample set @return {@code this}, to enable chained {@code add} or {@code addAll} c...
[ "Adds", "several", "query", "words", "to", "the", "sample", "set", ".", "The", "expected", "output", "is", "determined", "by", "means", "of", "the", "specified", "membership", "oracle", "." ]
train
https://github.com/LearnLib/learnlib/blob/fa38a14adcc0664099f180d671ffa42480318d7b/oracles/equivalence-oracles/src/main/java/de/learnlib/oracle/equivalence/SampleSetEQOracle.java#L100-L103
pgjdbc/pgjdbc
pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
TimestampUtils.appendTime
private static void appendTime(StringBuilder sb, int hours, int minutes, int seconds, int nanos) { sb.append(NUMBERS[hours]); sb.append(':'); sb.append(NUMBERS[minutes]); sb.append(':'); sb.append(NUMBERS[seconds]); // Add nanoseconds. // This won't work for server versions < 7.2 which on...
java
private static void appendTime(StringBuilder sb, int hours, int minutes, int seconds, int nanos) { sb.append(NUMBERS[hours]); sb.append(':'); sb.append(NUMBERS[minutes]); sb.append(':'); sb.append(NUMBERS[seconds]); // Add nanoseconds. // This won't work for server versions < 7.2 which on...
[ "private", "static", "void", "appendTime", "(", "StringBuilder", "sb", ",", "int", "hours", ",", "int", "minutes", ",", "int", "seconds", ",", "int", "nanos", ")", "{", "sb", ".", "append", "(", "NUMBERS", "[", "hours", "]", ")", ";", "sb", ".", "app...
Appends time part to the {@code StringBuilder} in PostgreSQL-compatible format. The function truncates {@param nanos} to microseconds. The value is expected to be rounded beforehand. @param sb destination @param hours hours @param minutes minutes @param seconds seconds @param nanos nanoseconds
[ "Appends", "time", "part", "to", "the", "{" ]
train
https://github.com/pgjdbc/pgjdbc/blob/95ba7b261e39754674c5817695ae5ebf9a341fae/pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java#L690-L720
micronaut-projects/micronaut-core
http-client/src/main/java/io/micronaut/http/client/interceptor/HttpClientIntroductionAdvice.java
HttpClientIntroductionAdvice.resolveTemplate
private String resolveTemplate(AnnotationValue<Client> clientAnnotation, String templateString) { String path = clientAnnotation.get("path", String.class).orElse(null); if (StringUtils.isNotEmpty(path)) { return path + templateString; } else { String value = clientAnnotat...
java
private String resolveTemplate(AnnotationValue<Client> clientAnnotation, String templateString) { String path = clientAnnotation.get("path", String.class).orElse(null); if (StringUtils.isNotEmpty(path)) { return path + templateString; } else { String value = clientAnnotat...
[ "private", "String", "resolveTemplate", "(", "AnnotationValue", "<", "Client", ">", "clientAnnotation", ",", "String", "templateString", ")", "{", "String", "path", "=", "clientAnnotation", ".", "get", "(", "\"path\"", ",", "String", ".", "class", ")", ".", "o...
Resolve the template for the client annotation. @param clientAnnotation client annotation reference @param templateString template to be applied @return resolved template contents
[ "Resolve", "the", "template", "for", "the", "client", "annotation", "." ]
train
https://github.com/micronaut-projects/micronaut-core/blob/c31f5b03ce0eb88c2f6470710987db03b8967d5c/http-client/src/main/java/io/micronaut/http/client/interceptor/HttpClientIntroductionAdvice.java#L580-L593
dnsjava/dnsjava
org/xbill/DNS/TSIG.java
TSIG.verify
public int verify(Message m, byte [] b, TSIGRecord old) { return verify(m, b, b.length, old); }
java
public int verify(Message m, byte [] b, TSIGRecord old) { return verify(m, b, b.length, old); }
[ "public", "int", "verify", "(", "Message", "m", ",", "byte", "[", "]", "b", ",", "TSIGRecord", "old", ")", "{", "return", "verify", "(", "m", ",", "b", ",", "b", ".", "length", ",", "old", ")", ";", "}" ]
Verifies a TSIG record on an incoming message. Since this is only called in the context where a TSIG is expected to be present, it is an error if one is not present. After calling this routine, Message.isVerified() may be called on this message. @param m The message @param b The message in unparsed form. This is nec...
[ "Verifies", "a", "TSIG", "record", "on", "an", "incoming", "message", ".", "Since", "this", "is", "only", "called", "in", "the", "context", "where", "a", "TSIG", "is", "expected", "to", "be", "present", "it", "is", "an", "error", "if", "one", "is", "no...
train
https://github.com/dnsjava/dnsjava/blob/d97b6a0685d59143372bb392ab591dd8dd840b61/org/xbill/DNS/TSIG.java#L526-L529
aws/aws-sdk-java
aws-java-sdk-signer/src/main/java/com/amazonaws/services/signer/model/DescribeSigningJobResult.java
DescribeSigningJobResult.withSigningParameters
public DescribeSigningJobResult withSigningParameters(java.util.Map<String, String> signingParameters) { setSigningParameters(signingParameters); return this; }
java
public DescribeSigningJobResult withSigningParameters(java.util.Map<String, String> signingParameters) { setSigningParameters(signingParameters); return this; }
[ "public", "DescribeSigningJobResult", "withSigningParameters", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "signingParameters", ")", "{", "setSigningParameters", "(", "signingParameters", ")", ";", "return", "this", ";", "}" ]
<p> Map of user-assigned key-value pairs used during signing. These values contain any information that you specified for use in your signing job. </p> @param signingParameters Map of user-assigned key-value pairs used during signing. These values contain any information that you specified for use in your signing job....
[ "<p", ">", "Map", "of", "user", "-", "assigned", "key", "-", "value", "pairs", "used", "during", "signing", ".", "These", "values", "contain", "any", "information", "that", "you", "specified", "for", "use", "in", "your", "signing", "job", ".", "<", "/", ...
train
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-signer/src/main/java/com/amazonaws/services/signer/model/DescribeSigningJobResult.java#L387-L390
jenkinsci/java-client-api
jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java
JenkinsServer.updateView
public JenkinsServer updateView(String viewName, String viewXml) throws IOException { return this.updateView(viewName, viewXml, true); }
java
public JenkinsServer updateView(String viewName, String viewXml) throws IOException { return this.updateView(viewName, viewXml, true); }
[ "public", "JenkinsServer", "updateView", "(", "String", "viewName", ",", "String", "viewXml", ")", "throws", "IOException", "{", "return", "this", ".", "updateView", "(", "viewName", ",", "viewXml", ",", "true", ")", ";", "}" ]
Update the xml description of an existing view @param viewName name of the view. @param viewXml the view configuration. @throws IOException in case of an error.
[ "Update", "the", "xml", "description", "of", "an", "existing", "view" ]
train
https://github.com/jenkinsci/java-client-api/blob/c4f5953d3d4dda92cd946ad3bf2b811524c32da9/jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java#L581-L583
lessthanoptimal/BoofCV
main/boofcv-ip/src/main/java/boofcv/alg/filter/binary/LinearContourLabelChang2004.java
LinearContourLabelChang2004.handleStep2
private void handleStep2(GrayS32 labeled, int label) { // if the blob is not labeled and in this state it cannot be against the left side of the image if( label == 0 ) label = labeled.data[indexOut-1]; ContourPacked c = contours.get(label-1); c.internalIndexes.add( packedPoints.size() ); packedPoints.grow...
java
private void handleStep2(GrayS32 labeled, int label) { // if the blob is not labeled and in this state it cannot be against the left side of the image if( label == 0 ) label = labeled.data[indexOut-1]; ContourPacked c = contours.get(label-1); c.internalIndexes.add( packedPoints.size() ); packedPoints.grow...
[ "private", "void", "handleStep2", "(", "GrayS32", "labeled", ",", "int", "label", ")", "{", "// if the blob is not labeled and in this state it cannot be against the left side of the image", "if", "(", "label", "==", "0", ")", "label", "=", "labeled", ".", "data", "[", ...
Step 2: If the pixel below is unmarked and white then it must be an internal contour Same behavior it the pixel in question has been labeled or not already
[ "Step", "2", ":", "If", "the", "pixel", "below", "is", "unmarked", "and", "white", "then", "it", "must", "be", "an", "internal", "contour", "Same", "behavior", "it", "the", "pixel", "in", "question", "has", "been", "labeled", "or", "not", "already" ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-ip/src/main/java/boofcv/alg/filter/binary/LinearContourLabelChang2004.java#L194-L210
roboconf/roboconf-platform
core/roboconf-target-iaas-ec2/src/main/java/net/roboconf/target/ec2/internal/Ec2IaasHandler.java
Ec2IaasHandler.createEc2Client
public static AmazonEC2 createEc2Client( Map<String,String> targetProperties ) throws TargetException { parseProperties( targetProperties ); // Configure the IaaS client AWSCredentials credentials = new BasicAWSCredentials( targetProperties.get(Ec2Constants.EC2_ACCESS_KEY), targetProperties.get(Ec2Const...
java
public static AmazonEC2 createEc2Client( Map<String,String> targetProperties ) throws TargetException { parseProperties( targetProperties ); // Configure the IaaS client AWSCredentials credentials = new BasicAWSCredentials( targetProperties.get(Ec2Constants.EC2_ACCESS_KEY), targetProperties.get(Ec2Const...
[ "public", "static", "AmazonEC2", "createEc2Client", "(", "Map", "<", "String", ",", "String", ">", "targetProperties", ")", "throws", "TargetException", "{", "parseProperties", "(", "targetProperties", ")", ";", "// Configure the IaaS client", "AWSCredentials", "credent...
Creates a client for EC2. @param targetProperties the target properties (not null) @return a non-null client @throws TargetException if properties are invalid
[ "Creates", "a", "client", "for", "EC2", "." ]
train
https://github.com/roboconf/roboconf-platform/blob/add54eead479effb138d0ff53a2d637902b82702/core/roboconf-target-iaas-ec2/src/main/java/net/roboconf/target/ec2/internal/Ec2IaasHandler.java#L268-L281
smurn/jPLY
jply/src/main/java/org/smurn/jply/util/RectBounds.java
RectBounds.addPoint
public void addPoint(final double x, final double y, final double z) { minX = Math.min(minX, x); minY = Math.min(minY, y); minZ = Math.min(minZ, z); maxX = Math.max(maxX, x); maxY = Math.max(maxY, y); maxZ = Math.max(maxZ, z); }
java
public void addPoint(final double x, final double y, final double z) { minX = Math.min(minX, x); minY = Math.min(minY, y); minZ = Math.min(minZ, z); maxX = Math.max(maxX, x); maxY = Math.max(maxY, y); maxZ = Math.max(maxZ, z); }
[ "public", "void", "addPoint", "(", "final", "double", "x", ",", "final", "double", "y", ",", "final", "double", "z", ")", "{", "minX", "=", "Math", ".", "min", "(", "minX", ",", "x", ")", ";", "minY", "=", "Math", ".", "min", "(", "minY", ",", ...
Increases the bounds to include a given point. <p>If the point is already in the interior of the bounded area the bounds are not changed.</p> @param x Coordinate of the point to include. @param y Coordinate of the point to include. @param z Coordinate of the point to include.
[ "Increases", "the", "bounds", "to", "include", "a", "given", "point", ".", "<p", ">", "If", "the", "point", "is", "already", "in", "the", "interior", "of", "the", "bounded", "area", "the", "bounds", "are", "not", "changed", ".", "<", "/", "p", ">" ]
train
https://github.com/smurn/jPLY/blob/77cb8c47fff7549ae1da8d8568ad8bdf374fe89f/jply/src/main/java/org/smurn/jply/util/RectBounds.java#L70-L77
mirage-sql/mirage
src/main/java/com/miragesql/miragesql/SqlExecutor.java
SqlExecutor.fillIdentityPrimaryKeys
@SuppressWarnings("unchecked") protected void fillIdentityPrimaryKeys(Object entity, ResultSet rs) throws SQLException { BeanDesc beanDesc = beanDescFactory.getBeanDesc(entity.getClass()); int size = beanDesc.getPropertyDescSize(); for(int i=0; i < size; i++){ PropertyDesc...
java
@SuppressWarnings("unchecked") protected void fillIdentityPrimaryKeys(Object entity, ResultSet rs) throws SQLException { BeanDesc beanDesc = beanDescFactory.getBeanDesc(entity.getClass()); int size = beanDesc.getPropertyDescSize(); for(int i=0; i < size; i++){ PropertyDesc...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "void", "fillIdentityPrimaryKeys", "(", "Object", "entity", ",", "ResultSet", "rs", ")", "throws", "SQLException", "{", "BeanDesc", "beanDesc", "=", "beanDescFactory", ".", "getBeanDesc", "(", "entity"...
Sets GenerationType.IDENTITY properties value. @param entity the entity @param rs the result set @throws SQLException if something goes wrong.
[ "Sets", "GenerationType", ".", "IDENTITY", "properties", "value", "." ]
train
https://github.com/mirage-sql/mirage/blob/29a44b7ad267b5a48bc250cd0ef7d74813d46889/src/main/java/com/miragesql/miragesql/SqlExecutor.java#L437-L457
astrapi69/jaulp-wicket
jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/ajax/editable/tabs/AjaxAddableTabbedPanel.java
AjaxAddableTabbedPanel.newAddTabButtonLabel
protected Label newAddTabButtonLabel(final String id, final IModel<String> model) { return ComponentFactory.newLabel(id, model); }
java
protected Label newAddTabButtonLabel(final String id, final IModel<String> model) { return ComponentFactory.newLabel(id, model); }
[ "protected", "Label", "newAddTabButtonLabel", "(", "final", "String", "id", ",", "final", "IModel", "<", "String", ">", "model", ")", "{", "return", "ComponentFactory", ".", "newLabel", "(", "id", ",", "model", ")", ";", "}" ]
Factory method for creating the new label of the button. @param id the id @param model the model @return the new label of the button.
[ "Factory", "method", "for", "creating", "the", "new", "label", "of", "the", "button", "." ]
train
https://github.com/astrapi69/jaulp-wicket/blob/85d74368d00abd9bb97659b5794e38c0f8a013d4/jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/ajax/editable/tabs/AjaxAddableTabbedPanel.java#L315-L318
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java
cmppolicy_stats.get
public static cmppolicy_stats get(nitro_service service, String name) throws Exception{ cmppolicy_stats obj = new cmppolicy_stats(); obj.set_name(name); cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service); return response; }
java
public static cmppolicy_stats get(nitro_service service, String name) throws Exception{ cmppolicy_stats obj = new cmppolicy_stats(); obj.set_name(name); cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service); return response; }
[ "public", "static", "cmppolicy_stats", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "cmppolicy_stats", "obj", "=", "new", "cmppolicy_stats", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "cmp...
Use this API to fetch statistics of cmppolicy_stats resource of given name .
[ "Use", "this", "API", "to", "fetch", "statistics", "of", "cmppolicy_stats", "resource", "of", "given", "name", "." ]
train
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java#L169-L174
hudson3-plugins/warnings-plugin
src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java
MsBuildParser.determinePriority
private Priority determinePriority(final Matcher matcher) { if (isOfType(matcher, "note") || isOfType(matcher, "info")) { return Priority.LOW; } else if (isOfType(matcher, "warning")) { return Priority.NORMAL; } return Priority.HIGH; }
java
private Priority determinePriority(final Matcher matcher) { if (isOfType(matcher, "note") || isOfType(matcher, "info")) { return Priority.LOW; } else if (isOfType(matcher, "warning")) { return Priority.NORMAL; } return Priority.HIGH; }
[ "private", "Priority", "determinePriority", "(", "final", "Matcher", "matcher", ")", "{", "if", "(", "isOfType", "(", "matcher", ",", "\"note\"", ")", "||", "isOfType", "(", "matcher", ",", "\"info\"", ")", ")", "{", "return", "Priority", ".", "LOW", ";", ...
Determines the priority of the warning. @param matcher the matcher to get the matches from @return the priority of the warning
[ "Determines", "the", "priority", "of", "the", "warning", "." ]
train
https://github.com/hudson3-plugins/warnings-plugin/blob/462c9f3dffede9120173935567392b22520b0966/src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java#L91-L99
versionone/VersionOne.SDK.Java.ObjectModel
src/main/java/com/versionone/om/V1InstanceCreator.java
V1InstanceCreator.buildRun
public BuildRun buildRun(BuildProject buildProject, String name, DateTime date) { return buildRun(buildProject, name, date, null); }
java
public BuildRun buildRun(BuildProject buildProject, String name, DateTime date) { return buildRun(buildProject, name, date, null); }
[ "public", "BuildRun", "buildRun", "(", "BuildProject", "buildProject", ",", "String", "name", ",", "DateTime", "date", ")", "{", "return", "buildRun", "(", "buildProject", ",", "name", ",", "date", ",", "null", ")", ";", "}" ]
Create a new Build Run in the given Build Project with a name and date. @param buildProject The Build Project this Build Run belongs to. @param name Name of the build project. @param date The Date this Build Run ran. @return A newly minted Build Run that exists in the VersionOne system.
[ "Create", "a", "new", "Build", "Run", "in", "the", "given", "Build", "Project", "with", "a", "name", "and", "date", "." ]
train
https://github.com/versionone/VersionOne.SDK.Java.ObjectModel/blob/59d35b67c849299631bca45ee94143237eb2ae1a/src/main/java/com/versionone/om/V1InstanceCreator.java#L896-L899
alkacon/opencms-core
src-gwt/org/opencms/ade/containerpage/client/CmsContainerpageHandler.java
CmsContainerpageHandler.createRawMenuEntry
protected CmsContextMenuEntry createRawMenuEntry(CmsUUID structureId, final Runnable action) { CmsContextMenuEntry entry = new CmsContextMenuEntry(this, structureId, new I_CmsContextMenuCommand() { public void execute( CmsUUID innerStructureId, I_CmsContextMenuHandl...
java
protected CmsContextMenuEntry createRawMenuEntry(CmsUUID structureId, final Runnable action) { CmsContextMenuEntry entry = new CmsContextMenuEntry(this, structureId, new I_CmsContextMenuCommand() { public void execute( CmsUUID innerStructureId, I_CmsContextMenuHandl...
[ "protected", "CmsContextMenuEntry", "createRawMenuEntry", "(", "CmsUUID", "structureId", ",", "final", "Runnable", "action", ")", "{", "CmsContextMenuEntry", "entry", "=", "new", "CmsContextMenuEntry", "(", "this", ",", "structureId", ",", "new", "I_CmsContextMenuComman...
Creates a menu entry based on a structure id and action without anything else.<p> @param structureId the structure id @param action the action for the menu entry @return the new menu entry
[ "Creates", "a", "menu", "entry", "based", "on", "a", "structure", "id", "and", "action", "without", "anything", "else", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/ade/containerpage/client/CmsContainerpageHandler.java#L1266-L1295
exoplatform/jcr
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/io/SwapFile.java
SwapFile.get
public static SwapFile get(final File parent, final String child) throws IOException { return get(parent, child, SpoolConfig.getDefaultSpoolConfig().fileCleaner); }
java
public static SwapFile get(final File parent, final String child) throws IOException { return get(parent, child, SpoolConfig.getDefaultSpoolConfig().fileCleaner); }
[ "public", "static", "SwapFile", "get", "(", "final", "File", "parent", ",", "final", "String", "child", ")", "throws", "IOException", "{", "return", "get", "(", "parent", ",", "child", ",", "SpoolConfig", ".", "getDefaultSpoolConfig", "(", ")", ".", "fileCle...
Obtain SwapFile by parent file and name. @param parent - parent File @param child - String with file name @return SwapFile swap file @throws IOException I/O error
[ "Obtain", "SwapFile", "by", "parent", "file", "and", "name", "." ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/io/SwapFile.java#L109-L113
JDBDT/jdbdt
src/main/java/org/jdbdt/JDBDT.java
JDBDT.assertTableDoesNotExist
@SafeVarargs public static void assertTableDoesNotExist(String message, DB db, String... tableNames) throws DBAssertionError { multipleTableExistenceAssertions(CallInfo.create(message), db, tableNames, false); }
java
@SafeVarargs public static void assertTableDoesNotExist(String message, DB db, String... tableNames) throws DBAssertionError { multipleTableExistenceAssertions(CallInfo.create(message), db, tableNames, false); }
[ "@", "SafeVarargs", "public", "static", "void", "assertTableDoesNotExist", "(", "String", "message", ",", "DB", "db", ",", "String", "...", "tableNames", ")", "throws", "DBAssertionError", "{", "multipleTableExistenceAssertions", "(", "CallInfo", ".", "create", "(",...
Assert that tables do not exist in a database (error message variant). @param message Error message. @param db Database. @param tableNames Table names. @throws DBAssertionError If the assertion fails. @see #assertTableExists(String, DB, String...) @see #drop(Table...) @since 1.2
[ "Assert", "that", "tables", "do", "not", "exist", "in", "a", "database", "(", "error", "message", "variant", ")", "." ]
train
https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/JDBDT.java#L842-L845
wildfly/wildfly-core
controller/src/main/java/org/jboss/as/controller/extension/ExtensionRegistry.java
ExtensionRegistry.initializeParsers
public final void initializeParsers(final Extension extension, final String moduleName, final XMLMapper xmlMapper) { ExtensionParsingContextImpl parsingContext = new ExtensionParsingContextImpl(moduleName, xmlMapper); extension.initializeParsers(parsingContext); parsingContext.attemptCurrentPars...
java
public final void initializeParsers(final Extension extension, final String moduleName, final XMLMapper xmlMapper) { ExtensionParsingContextImpl parsingContext = new ExtensionParsingContextImpl(moduleName, xmlMapper); extension.initializeParsers(parsingContext); parsingContext.attemptCurrentPars...
[ "public", "final", "void", "initializeParsers", "(", "final", "Extension", "extension", ",", "final", "String", "moduleName", ",", "final", "XMLMapper", "xmlMapper", ")", "{", "ExtensionParsingContextImpl", "parsingContext", "=", "new", "ExtensionParsingContextImpl", "(...
Ask the given {@code extension} to {@link Extension#initializeParsers(ExtensionParsingContext) initialize its parsers}. Should be used in preference to calling {@link #getExtensionParsingContext(String, XMLMapper)} and passing the returned value to {@code Extension#initializeParsers(context)} as this method allows the ...
[ "Ask", "the", "given", "{", "@code", "extension", "}", "to", "{", "@link", "Extension#initializeParsers", "(", "ExtensionParsingContext", ")", "initialize", "its", "parsers", "}", ".", "Should", "be", "used", "in", "preference", "to", "calling", "{", "@link", ...
train
https://github.com/wildfly/wildfly-core/blob/cfaf0479dcbb2d320a44c5374b93b944ec39fade/controller/src/main/java/org/jboss/as/controller/extension/ExtensionRegistry.java#L246-L250
DataArt/CalculationEngine
calculation-engine/engine-converters/src/main/java/com/dataart/spreadsheetanalytics/engine/DependencyExtractors.java
DependencyExtractors.toDataModel
static IDataModel toDataModel(final IDataModel book, final ICellAddress address) { return toDataModel(DataModelConverters.toWorkbook(book), address); }
java
static IDataModel toDataModel(final IDataModel book, final ICellAddress address) { return toDataModel(DataModelConverters.toWorkbook(book), address); }
[ "static", "IDataModel", "toDataModel", "(", "final", "IDataModel", "book", ",", "final", "ICellAddress", "address", ")", "{", "return", "toDataModel", "(", "DataModelConverters", ".", "toWorkbook", "(", "book", ")", ",", "address", ")", ";", "}" ]
Invokes {@link #toDataModel(Workbook, ICellAddress)} with {@link IDataModel} converted to {@link Workbook}.
[ "Invokes", "{" ]
train
https://github.com/DataArt/CalculationEngine/blob/34ce1d9c1f9b57a502906b274311d28580b134e5/calculation-engine/engine-converters/src/main/java/com/dataart/spreadsheetanalytics/engine/DependencyExtractors.java#L62-L64
BioPAX/Paxtools
sbgn-converter/src/main/java/org/biopax/paxtools/io/sbgn/VNode.java
VNode.setBounds
public void setBounds(float w, float h) { this.glyph.getBbox().setW(w); this.glyph.getBbox().setH(h); }
java
public void setBounds(float w, float h) { this.glyph.getBbox().setW(w); this.glyph.getBbox().setH(h); }
[ "public", "void", "setBounds", "(", "float", "w", ",", "float", "h", ")", "{", "this", ".", "glyph", ".", "getBbox", "(", ")", ".", "setW", "(", "w", ")", ";", "this", ".", "glyph", ".", "getBbox", "(", ")", ".", "setH", "(", "h", ")", ";", "...
Sets the bound of this VNode by given width and height @param w new width @param h new height
[ "Sets", "the", "bound", "of", "this", "VNode", "by", "given", "width", "and", "height" ]
train
https://github.com/BioPAX/Paxtools/blob/2f93afa94426bf8b5afc2e0e61cd4b269a83288d/sbgn-converter/src/main/java/org/biopax/paxtools/io/sbgn/VNode.java#L142-L146
nohana/Amalgam
amalgam/src/main/java/com/amalgam/app/FragmentManagerUtils.java
FragmentManagerUtils.findFragmentById
@SuppressWarnings("unchecked") // we know that the returning fragment is child of fragment. @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static <F extends android.app.Fragment> F findFragmentById(android.app.FragmentManager manager, int id) { return (F) manager.findFragmentById(id); }
java
@SuppressWarnings("unchecked") // we know that the returning fragment is child of fragment. @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static <F extends android.app.Fragment> F findFragmentById(android.app.FragmentManager manager, int id) { return (F) manager.findFragmentById(id); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "// we know that the returning fragment is child of fragment.", "@", "TargetApi", "(", "Build", ".", "VERSION_CODES", ".", "HONEYCOMB", ")", "public", "static", "<", "F", "extends", "android", ".", "app", ".", "Fragm...
Find a fragment that is under {@link android.app.FragmentManager}'s control by the id. @param manager the fragment manager. @param id the fragment id. @param <F> the concrete fragment class parameter. @return the fragment.
[ "Find", "a", "fragment", "that", "is", "under", "{" ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/app/FragmentManagerUtils.java#L23-L27
Azure/azure-sdk-for-java
datamigration/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2017_11_15_preview/implementation/ServicesInner.java
ServicesInner.createOrUpdateAsync
public Observable<DataMigrationServiceInner> createOrUpdateAsync(String groupName, String serviceName, DataMigrationServiceInner parameters) { return createOrUpdateWithServiceResponseAsync(groupName, serviceName, parameters).map(new Func1<ServiceResponse<DataMigrationServiceInner>, DataMigrationServiceInner>() ...
java
public Observable<DataMigrationServiceInner> createOrUpdateAsync(String groupName, String serviceName, DataMigrationServiceInner parameters) { return createOrUpdateWithServiceResponseAsync(groupName, serviceName, parameters).map(new Func1<ServiceResponse<DataMigrationServiceInner>, DataMigrationServiceInner>() ...
[ "public", "Observable", "<", "DataMigrationServiceInner", ">", "createOrUpdateAsync", "(", "String", "groupName", ",", "String", "serviceName", ",", "DataMigrationServiceInner", "parameters", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "groupName", ",...
Create or update DMS Instance. The services resource is the top-level resource that represents the Data Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", whi...
[ "Create", "or", "update", "DMS", "Instance", ".", "The", "services", "resource", "is", "the", "top", "-", "level", "resource", "that", "represents", "the", "Data", "Migration", "Service", ".", "The", "PUT", "method", "creates", "a", "new", "service", "or", ...
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/datamigration/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2017_11_15_preview/implementation/ServicesInner.java#L193-L200
Hygieia/Hygieia
api/src/main/java/com/capitalone/dashboard/service/UserInfoServiceImpl.java
UserInfoServiceImpl.isUserValid
@Override public boolean isUserValid(String userId, AuthType authType) { if (userInfoRepository.findByUsernameAndAuthType(userId, authType) != null) { return true; } else { if (authType == AuthType.LDAP) { try { return searchLdapUser(userId); } catch (NamingException ne) { LOGGER.error("Fai...
java
@Override public boolean isUserValid(String userId, AuthType authType) { if (userInfoRepository.findByUsernameAndAuthType(userId, authType) != null) { return true; } else { if (authType == AuthType.LDAP) { try { return searchLdapUser(userId); } catch (NamingException ne) { LOGGER.error("Fai...
[ "@", "Override", "public", "boolean", "isUserValid", "(", "String", "userId", ",", "AuthType", "authType", ")", "{", "if", "(", "userInfoRepository", ".", "findByUsernameAndAuthType", "(", "userId", ",", "authType", ")", "!=", "null", ")", "{", "return", "true...
Can be called to check validity of userId when creating a dashboard remotely via api @param userId @param authType @return
[ "Can", "be", "called", "to", "check", "validity", "of", "userId", "when", "creating", "a", "dashboard", "remotely", "via", "api" ]
train
https://github.com/Hygieia/Hygieia/blob/d8b67a590da2744acf59bcd99d9b34ef1bb84890/api/src/main/java/com/capitalone/dashboard/service/UserInfoServiceImpl.java#L134-L150
apache/flink
flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java
RowTypeInfo.projectFields
public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping) { TypeInformation[] fieldTypes = new TypeInformation[fieldMapping.length]; String[] fieldNames = new String[fieldMapping.length]; for (int i = 0; i < fieldMapping.length; i++) { fieldTypes[i] = rowType.getTypeAt(fieldMapping[i]); ...
java
public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping) { TypeInformation[] fieldTypes = new TypeInformation[fieldMapping.length]; String[] fieldNames = new String[fieldMapping.length]; for (int i = 0; i < fieldMapping.length; i++) { fieldTypes[i] = rowType.getTypeAt(fieldMapping[i]); ...
[ "public", "static", "RowTypeInfo", "projectFields", "(", "RowTypeInfo", "rowType", ",", "int", "[", "]", "fieldMapping", ")", "{", "TypeInformation", "[", "]", "fieldTypes", "=", "new", "TypeInformation", "[", "fieldMapping", ".", "length", "]", ";", "String", ...
Creates a {@link RowTypeInfo} with projected fields. @param rowType The original RowTypeInfo whose fields are projected @param fieldMapping The field mapping of the projection @return A RowTypeInfo with projected fields.
[ "Creates", "a", "{", "@link", "RowTypeInfo", "}", "with", "projected", "fields", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java#L388-L396
Squarespace/cldr
compiler/src/main/java/com/squarespace/cldr/codegen/CalendarCodeGenerator.java
CalendarCodeGenerator.addSkeletonClassifierMethod
private void addSkeletonClassifierMethod(TypeSpec.Builder type, List<DateTimeData> dataList) { Set<String> dates = new LinkedHashSet<>(); Set<String> times = new LinkedHashSet<>(); for (DateTimeData data : dataList) { for (Skeleton skeleton : data.dateTimeSkeletons) { if (isDateSkeleton(skelet...
java
private void addSkeletonClassifierMethod(TypeSpec.Builder type, List<DateTimeData> dataList) { Set<String> dates = new LinkedHashSet<>(); Set<String> times = new LinkedHashSet<>(); for (DateTimeData data : dataList) { for (Skeleton skeleton : data.dateTimeSkeletons) { if (isDateSkeleton(skelet...
[ "private", "void", "addSkeletonClassifierMethod", "(", "TypeSpec", ".", "Builder", "type", ",", "List", "<", "DateTimeData", ">", "dataList", ")", "{", "Set", "<", "String", ">", "dates", "=", "new", "LinkedHashSet", "<>", "(", ")", ";", "Set", "<", "Strin...
Create a helper class to classify skeletons as either DATE or TIME.
[ "Create", "a", "helper", "class", "to", "classify", "skeletons", "as", "either", "DATE", "or", "TIME", "." ]
train
https://github.com/Squarespace/cldr/blob/54b752d4ec2457df56e98461618f9c0eec41e1e1/compiler/src/main/java/com/squarespace/cldr/codegen/CalendarCodeGenerator.java#L113-L128
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendCloneFunctionIfCloneable
protected void appendCloneFunctionIfCloneable(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!target.isInterface() && this.inheritanceHelper.isSubTypeOf(target, Cloneable.class, null)) { appendCloneFunction(context, source, target); } }
java
protected void appendCloneFunctionIfCloneable(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!target.isInterface() && this.inheritanceHelper.isSubTypeOf(target, Cloneable.class, null)) { appendCloneFunction(context, source, target); } }
[ "protected", "void", "appendCloneFunctionIfCloneable", "(", "GenerationContext", "context", ",", "XtendTypeDeclaration", "source", ",", "JvmGenericType", "target", ")", "{", "if", "(", "!", "target", ".", "isInterface", "(", ")", "&&", "this", ".", "inheritanceHelpe...
Append the clone function only if the type is a subtype of {@link Cloneable}. <p>The clone function replies a value of the current type, not {@code Object}. @param context the current generation context. @param source the source object. @param target the inferred JVM object. @since 0.6 @see #appendCloneFunction(Gener...
[ "Append", "the", "clone", "function", "only", "if", "the", "type", "is", "a", "subtype", "of", "{", "@link", "Cloneable", "}", "." ]
train
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2877-L2881
jamesagnew/hapi-fhir
hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/RestfulClientFactory.java
RestfulClientFactory.newClient
@Override public synchronized <T extends IRestfulClient> T newClient(Class<T> theClientType, String theServerBase) { validateConfigured(); if (!theClientType.isInterface()) { throw new ConfigurationException(theClientType.getCanonicalName() + " is not an interface"); } ClientInvocationHandlerFactory invoc...
java
@Override public synchronized <T extends IRestfulClient> T newClient(Class<T> theClientType, String theServerBase) { validateConfigured(); if (!theClientType.isInterface()) { throw new ConfigurationException(theClientType.getCanonicalName() + " is not an interface"); } ClientInvocationHandlerFactory invoc...
[ "@", "Override", "public", "synchronized", "<", "T", "extends", "IRestfulClient", ">", "T", "newClient", "(", "Class", "<", "T", ">", "theClientType", ",", "String", "theServerBase", ")", "{", "validateConfigured", "(", ")", ";", "if", "(", "!", "theClientTy...
Instantiates a new client instance @param theClientType The client type, which is an interface type to be instantiated @param theServerBase The URL of the base for the restful FHIR server to connect to @return A newly created client @throws ConfigurationException If the interface type is not an interface
[ "Instantiates", "a", "new", "client", "instance" ]
train
https://github.com/jamesagnew/hapi-fhir/blob/150a84d52fe691b7f48fcb28247c4bddb7aec352/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/RestfulClientFactory.java#L139-L159
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getSummoners
public Future<Map<String, Summoner>> getSummoners(String... names) { return new ApiFuture<>(() -> handler.getSummoners(names)); }
java
public Future<Map<String, Summoner>> getSummoners(String... names) { return new ApiFuture<>(() -> handler.getSummoners(names)); }
[ "public", "Future", "<", "Map", "<", "String", ",", "Summoner", ">", ">", "getSummoners", "(", "String", "...", "names", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getSummoners", "(", "names", ")", ")", ";", "...
Get summoner information for the summoners with the specified names @param names The names of the players @return A map, mapping standardized player names to summoner information @see <a href=https://developer.riotgames.com/api/methods#!/620/1930>Official API documentation</a> @see net.boreeas.riotapi.Util#standardizeS...
[ "Get", "summoner", "information", "for", "the", "summoners", "with", "the", "specified", "names" ]
train
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1091-L1093
khuxtable/seaglass
src/main/java/com/seaglasslookandfeel/painter/TitlePaneCloseButtonPainter.java
TitlePaneCloseButtonPainter.paintCloseEnabled
private void paintCloseEnabled(Graphics2D g, JComponent c, int width, int height) { paintClose(g, c, width, height, enabled); }
java
private void paintCloseEnabled(Graphics2D g, JComponent c, int width, int height) { paintClose(g, c, width, height, enabled); }
[ "private", "void", "paintCloseEnabled", "(", "Graphics2D", "g", ",", "JComponent", "c", ",", "int", "width", ",", "int", "height", ")", "{", "paintClose", "(", "g", ",", "c", ",", "width", ",", "height", ",", "enabled", ")", ";", "}" ]
Paint the background enabled state. @param g the Graphics2D context to paint with. @param c the component. @param width the width of the component. @param height the height of the component.
[ "Paint", "the", "background", "enabled", "state", "." ]
train
https://github.com/khuxtable/seaglass/blob/f25ecba622923d7b29b64cb7d6068dd8005989b3/src/main/java/com/seaglasslookandfeel/painter/TitlePaneCloseButtonPainter.java#L115-L117
future-architect/uroborosql
src/main/java/jp/co/future/uroborosql/connection/DataSourceConnectionSupplierImpl.java
DataSourceConnectionSupplierImpl.setTransactionIsolation
public void setTransactionIsolation(final String dataSourceName, final int transactionIsolation) { if (Connection.TRANSACTION_READ_UNCOMMITTED == transactionIsolation || Connection.TRANSACTION_READ_COMMITTED == transactionIsolation || Connection.TRANSACTION_REPEATABLE_READ == transactionIsolation || Conne...
java
public void setTransactionIsolation(final String dataSourceName, final int transactionIsolation) { if (Connection.TRANSACTION_READ_UNCOMMITTED == transactionIsolation || Connection.TRANSACTION_READ_COMMITTED == transactionIsolation || Connection.TRANSACTION_REPEATABLE_READ == transactionIsolation || Conne...
[ "public", "void", "setTransactionIsolation", "(", "final", "String", "dataSourceName", ",", "final", "int", "transactionIsolation", ")", "{", "if", "(", "Connection", ".", "TRANSACTION_READ_UNCOMMITTED", "==", "transactionIsolation", "||", "Connection", ".", "TRANSACTIO...
{@link DataSourceConnectionSupplierImpl#setDefaultDataSourceName(String)} で指定したデータソースに対するtransactionIsolationオプションの指定 @see Connection#TRANSACTION_READ_UNCOMMITTED @see Connection#TRANSACTION_READ_COMMITTED @see Connection#TRANSACTION_REPEATABLE_READ @see Connection#TRANSACTION_SERIALIZABLE @param dataSourceName データソー...
[ "{", "@link", "DataSourceConnectionSupplierImpl#setDefaultDataSourceName", "(", "String", ")", "}", "で指定したデータソースに対するtransactionIsolationオプションの指定" ]
train
https://github.com/future-architect/uroborosql/blob/4c26db51defdac3c6ed16866e33ab45e190e2e0c/src/main/java/jp/co/future/uroborosql/connection/DataSourceConnectionSupplierImpl.java#L266-L276
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DateFormat.java
DateFormat.getInstanceForSkeleton
public final static DateFormat getInstanceForSkeleton(String skeleton) { return getPatternInstance(skeleton, ULocale.getDefault(Category.FORMAT)); }
java
public final static DateFormat getInstanceForSkeleton(String skeleton) { return getPatternInstance(skeleton, ULocale.getDefault(Category.FORMAT)); }
[ "public", "final", "static", "DateFormat", "getInstanceForSkeleton", "(", "String", "skeleton", ")", "{", "return", "getPatternInstance", "(", "skeleton", ",", "ULocale", ".", "getDefault", "(", "Category", ".", "FORMAT", ")", ")", ";", "}" ]
<strong>[icu]</strong> Returns a {@link DateFormat} object that can be used to format dates and times in the default locale. @param skeleton The skeleton that selects the fields to be formatted. (Uses the {@link DateTimePatternGenerator}.) This can be {@link DateFormat#ABBR_MONTH}, {@link DateFormat#MONTH_WEEKDAY_DAY}...
[ "<strong", ">", "[", "icu", "]", "<", "/", "strong", ">", "Returns", "a", "{", "@link", "DateFormat", "}", "object", "that", "can", "be", "used", "to", "format", "dates", "and", "times", "in", "the", "default", "locale", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DateFormat.java#L1949-L1951
lucee/Lucee
core/src/main/java/lucee/runtime/config/PasswordImpl.java
PasswordImpl.readFromXML
public static Password readFromXML(Element el, String salt, boolean isDefault) { String prefix = isDefault ? "default-" : ""; // first we look for the hashed and salted password String pw = el.getAttribute(prefix + "hspw"); if (!StringUtil.isEmpty(pw, true)) { // password is only of use when there is a salt a...
java
public static Password readFromXML(Element el, String salt, boolean isDefault) { String prefix = isDefault ? "default-" : ""; // first we look for the hashed and salted password String pw = el.getAttribute(prefix + "hspw"); if (!StringUtil.isEmpty(pw, true)) { // password is only of use when there is a salt a...
[ "public", "static", "Password", "readFromXML", "(", "Element", "el", ",", "String", "salt", ",", "boolean", "isDefault", ")", "{", "String", "prefix", "=", "isDefault", "?", "\"default-\"", ":", "\"\"", ";", "// first we look for the hashed and salted password", "St...
reads the password defined in the Lucee configuration, this can also in older formats (only hashed or encrypted) @param el @param salt @param isDefault @return
[ "reads", "the", "password", "defined", "in", "the", "Lucee", "configuration", "this", "can", "also", "in", "older", "formats", "(", "only", "hashed", "or", "encrypted", ")" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/config/PasswordImpl.java#L135-L159
dlemmermann/CalendarFX
CalendarFXView/src/main/java/com/calendarfx/model/Interval.java
Interval.withDates
public Interval withDates(LocalDateTime startDateTime, LocalDateTime endDateTime) { requireNonNull(startDateTime); requireNonNull(endDateTime); return new Interval(startDateTime, endDateTime, this.zoneId); }
java
public Interval withDates(LocalDateTime startDateTime, LocalDateTime endDateTime) { requireNonNull(startDateTime); requireNonNull(endDateTime); return new Interval(startDateTime, endDateTime, this.zoneId); }
[ "public", "Interval", "withDates", "(", "LocalDateTime", "startDateTime", ",", "LocalDateTime", "endDateTime", ")", "{", "requireNonNull", "(", "startDateTime", ")", ";", "requireNonNull", "(", "endDateTime", ")", ";", "return", "new", "Interval", "(", "startDateTim...
Returns a new interval based on this interval but with a different start and end date. @param startDateTime the new start date @param endDateTime the new end date @return a new interval
[ "Returns", "a", "new", "interval", "based", "on", "this", "interval", "but", "with", "a", "different", "start", "and", "end", "date", "." ]
train
https://github.com/dlemmermann/CalendarFX/blob/f2b91c2622c3f29d004485b6426b23b86c331f96/CalendarFXView/src/main/java/com/calendarfx/model/Interval.java#L292-L296
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
9