repository_name
stringlengths
7
58
func_path_in_repository
stringlengths
11
218
func_name
stringlengths
4
140
whole_func_string
stringlengths
153
5.32k
language
stringclasses
1 value
func_code_string
stringlengths
72
4k
func_code_tokens
listlengths
20
832
func_documentation_string
stringlengths
61
2k
func_documentation_tokens
listlengths
1
647
split_name
stringclasses
1 value
func_code_url
stringlengths
102
339
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/modules/v/vectorize/OmsVectorizer.java
OmsVectorizer.doVectorize
@SuppressWarnings("unchecked") private Collection<Polygon> doVectorize( RenderedImage src, Map<String, Object> args ) { """ Helper function to run the Vectorize operation with given parameters and retrieve the vectors. @param src the source image @param args a {@code Map} of parameter names and values ...
java
@SuppressWarnings("unchecked") private Collection<Polygon> doVectorize( RenderedImage src, Map<String, Object> args ) { ParameterBlockJAI pb = new ParameterBlockJAI("Vectorize"); pb.setSource("source0", src); // Set any parameters that were passed in for( Entry<String, Object> e : a...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "Collection", "<", "Polygon", ">", "doVectorize", "(", "RenderedImage", "src", ",", "Map", "<", "String", ",", "Object", ">", "args", ")", "{", "ParameterBlockJAI", "pb", "=", "new", "ParameterBloc...
Helper function to run the Vectorize operation with given parameters and retrieve the vectors. @param src the source image @param args a {@code Map} of parameter names and values @return the generated vectors as JTS Polygons
[ "Helper", "function", "to", "run", "the", "Vectorize", "operation", "with", "given", "parameters", "and", "retrieve", "the", "vectors", "." ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/modules/v/vectorize/OmsVectorizer.java#L331-L348
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/BaseCommandTask.java
BaseCommandTask.getArgumentValue
protected String getArgumentValue(String arg, String[] args, String defalt, String passwordArgKey, ConsoleWrapper stdin, PrintStream stdout) { """ Gets the value for the specified argument String. If the default value argument is null, it...
java
protected String getArgumentValue(String arg, String[] args, String defalt, String passwordArgKey, ConsoleWrapper stdin, PrintStream stdout) { for (int i = 1; i < args.length; i++) { String key = args[i].split("=")[0]; ...
[ "protected", "String", "getArgumentValue", "(", "String", "arg", ",", "String", "[", "]", "args", ",", "String", "defalt", ",", "String", "passwordArgKey", ",", "ConsoleWrapper", "stdin", ",", "PrintStream", "stdout", ")", "{", "for", "(", "int", "i", "=", ...
Gets the value for the specified argument String. If the default value argument is null, it indicates the argument is required. No validation is done in the format of args as it is assumed to have been done previously. @param arg Argument name to resolve a value for @param args List of arguments. Assumes the script n...
[ "Gets", "the", "value", "for", "the", "specified", "argument", "String", ".", "If", "the", "default", "value", "argument", "is", "null", "it", "indicates", "the", "argument", "is", "required", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/BaseCommandTask.java#L237-L252
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/VdmElementImageProvider.java
VdmElementImageProvider.getWorkbenchImageDescriptor
public ImageDescriptor getWorkbenchImageDescriptor(IAdaptable adaptable, int flags) { """ Returns an image descriptor for a IAdaptable. The descriptor includes overlays, if specified (only error ticks apply). Returns <code>null</code> if no image could be found. @param adaptable the adaptable @param flag...
java
public ImageDescriptor getWorkbenchImageDescriptor(IAdaptable adaptable, int flags) { IWorkbenchAdapter wbAdapter = (IWorkbenchAdapter) adaptable .getAdapter(IWorkbenchAdapter.class); if (wbAdapter == null) { return null; } ImageDescriptor descriptor = wbAdapter.getImageDescriptor(adaptable); if (de...
[ "public", "ImageDescriptor", "getWorkbenchImageDescriptor", "(", "IAdaptable", "adaptable", ",", "int", "flags", ")", "{", "IWorkbenchAdapter", "wbAdapter", "=", "(", "IWorkbenchAdapter", ")", "adaptable", ".", "getAdapter", "(", "IWorkbenchAdapter", ".", "class", ")"...
Returns an image descriptor for a IAdaptable. The descriptor includes overlays, if specified (only error ticks apply). Returns <code>null</code> if no image could be found. @param adaptable the adaptable @param flags the image flags @return returns the image descriptor
[ "Returns", "an", "image", "descriptor", "for", "a", "IAdaptable", ".", "The", "descriptor", "includes", "overlays", "if", "specified", "(", "only", "error", "ticks", "apply", ")", ".", "Returns", "<code", ">", "null<", "/", "code", ">", "if", "no", "image"...
train
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/VdmElementImageProvider.java#L594-L608
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/Locale.java
Locale.formatList
private static String formatList(String[] stringList, String listPattern, String listCompositionPattern) { """ Format a list using given pattern strings. If either of the patterns is null, then a the list is formatted by concatenation with the delimiter ','. @param stringList the list of strings to be formatted...
java
private static String formatList(String[] stringList, String listPattern, String listCompositionPattern) { // If we have no list patterns, compose the list in a simple, // non-localized way. if (listPattern == null || listCompositionPattern == null) { StringBuffer result = new String...
[ "private", "static", "String", "formatList", "(", "String", "[", "]", "stringList", ",", "String", "listPattern", ",", "String", "listCompositionPattern", ")", "{", "// If we have no list patterns, compose the list in a simple,", "// non-localized way.", "if", "(", "listPat...
Format a list using given pattern strings. If either of the patterns is null, then a the list is formatted by concatenation with the delimiter ','. @param stringList the list of strings to be formatted. @param listPattern should create a MessageFormat taking 0-3 arguments and formatting them into a list. @param listCom...
[ "Format", "a", "list", "using", "given", "pattern", "strings", ".", "If", "either", "of", "the", "patterns", "is", "null", "then", "a", "the", "list", "is", "formatted", "by", "concatenation", "with", "the", "delimiter", "." ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/Locale.java#L2045-L2071
beanshell/beanshell
src/main/java/bsh/NameSpace.java
NameSpace.getVariable
public Object getVariable(final String name, final boolean recurse) throws UtilEvalError { """ Get the specified variable in this namespace. @param name the name @param recurse If recurse is true then we recursively search through parent namespaces for the variable. <p> Note: this method is primar...
java
public Object getVariable(final String name, final boolean recurse) throws UtilEvalError { final Variable var = this.getVariableImpl(name, recurse); return this.unwrapVariable(var); }
[ "public", "Object", "getVariable", "(", "final", "String", "name", ",", "final", "boolean", "recurse", ")", "throws", "UtilEvalError", "{", "final", "Variable", "var", "=", "this", ".", "getVariableImpl", "(", "name", ",", "recurse", ")", ";", "return", "thi...
Get the specified variable in this namespace. @param name the name @param recurse If recurse is true then we recursively search through parent namespaces for the variable. <p> Note: this method is primarily intended for use internally. If you use this method outside of the bsh package you will have to use Primitive.unw...
[ "Get", "the", "specified", "variable", "in", "this", "namespace", "." ]
train
https://github.com/beanshell/beanshell/blob/fdddee3de948c9e6babb2d1337028f6fd0a2ba5c/src/main/java/bsh/NameSpace.java#L613-L617
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/Error.java
Error.printSystemOut
public static void printSystemOut(String message1, long message2) { """ Used to print messages to System.out @param message1 message to print @param message2 message to print """ if (TRACESYSTEMOUT) { System.out.print(message1); System.out.println(message2); } ...
java
public static void printSystemOut(String message1, long message2) { if (TRACESYSTEMOUT) { System.out.print(message1); System.out.println(message2); } }
[ "public", "static", "void", "printSystemOut", "(", "String", "message1", ",", "long", "message2", ")", "{", "if", "(", "TRACESYSTEMOUT", ")", "{", "System", ".", "out", ".", "print", "(", "message1", ")", ";", "System", ".", "out", ".", "println", "(", ...
Used to print messages to System.out @param message1 message to print @param message2 message to print
[ "Used", "to", "print", "messages", "to", "System", ".", "out" ]
train
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Error.java#L264-L270
agmip/translator-dssat
src/main/java/org/agmip/translators/dssat/DssatCommonOutput.java
DssatCommonOutput.formatStr
protected String formatStr(int bits, HashMap m, Object key, String defVal) { """ Format the output string with maximum length @param bits Maximum length of the output string @param m the experiment data holder @param key the key of field in the map @param defVal the default return value when error happens @...
java
protected String formatStr(int bits, HashMap m, Object key, String defVal) { String ret = getObjectOr(m, key, defVal).trim(); return formatStr(bits, ret, key); }
[ "protected", "String", "formatStr", "(", "int", "bits", ",", "HashMap", "m", ",", "Object", "key", ",", "String", "defVal", ")", "{", "String", "ret", "=", "getObjectOr", "(", "m", ",", "key", ",", "defVal", ")", ".", "trim", "(", ")", ";", "return",...
Format the output string with maximum length @param bits Maximum length of the output string @param m the experiment data holder @param key the key of field in the map @param defVal the default return value when error happens @return formated string of number
[ "Format", "the", "output", "string", "with", "maximum", "length" ]
train
https://github.com/agmip/translator-dssat/blob/4be61d998f106eb7234ea8701b63c3746ae688f4/src/main/java/org/agmip/translators/dssat/DssatCommonOutput.java#L106-L110
RobotiumTech/robotium
robotium-solo/src/main/java/com/robotium/solo/Solo.java
Solo.getView
public View getView(Object tag, int index) { """ Returns a View matching the specified tag and index. @param tag the tag of the {@link View} to return @param index the index of the {@link View}. {@code 0} if only one is available @return a {@link View} matching the specified id and index """ if(config.c...
java
public View getView(Object tag, int index){ if(config.commandLogging){ Log.d(config.commandLoggingTag, "getView("+tag+", "+index+")"); } View viewToReturn = getter.getView(tag, index); if(viewToReturn == null) { int match = index + 1; if(match > 1){ Assert.fail(match + " Views with id: '" + tag...
[ "public", "View", "getView", "(", "Object", "tag", ",", "int", "index", ")", "{", "if", "(", "config", ".", "commandLogging", ")", "{", "Log", ".", "d", "(", "config", ".", "commandLoggingTag", ",", "\"getView(\"", "+", "tag", "+", "\", \"", "+", "inde...
Returns a View matching the specified tag and index. @param tag the tag of the {@link View} to return @param index the index of the {@link View}. {@code 0} if only one is available @return a {@link View} matching the specified id and index
[ "Returns", "a", "View", "matching", "the", "specified", "tag", "and", "index", "." ]
train
https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3089-L3106
Azure/azure-sdk-for-java
cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java
ModelsImpl.getRegexEntityRole
public EntityRole getRegexEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId) { """ Get one entity role for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity ID. @param roleId entity role ID. @throws IllegalArgumentException thrown if p...
java
public EntityRole getRegexEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId) { return getRegexEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId).toBlocking().single().body(); }
[ "public", "EntityRole", "getRegexEntityRole", "(", "UUID", "appId", ",", "String", "versionId", ",", "UUID", "entityId", ",", "UUID", "roleId", ")", "{", "return", "getRegexEntityRoleWithServiceResponseAsync", "(", "appId", ",", "versionId", ",", "entityId", ",", ...
Get one entity role for a given entity. @param appId The application ID. @param versionId The version ID. @param entityId entity ID. @param roleId entity role ID. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws...
[ "Get", "one", "entity", "role", "for", "a", "given", "entity", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java#L11951-L11953
OpenLiberty/open-liberty
dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java
LifecycleCallbackHelper.doPreDestroy
public void doPreDestroy(Object instance, List<LifecycleCallback> preDestroy) throws InjectionException { """ Processes the PreDestroy callback method for the login callback handler class @param instance the instance object of the login callback handler class @param postConstructs a list of PreDestroy metadata...
java
public void doPreDestroy(Object instance, List<LifecycleCallback> preDestroy) throws InjectionException { doPreDestroy(instance.getClass(), preDestroy, instance); }
[ "public", "void", "doPreDestroy", "(", "Object", "instance", ",", "List", "<", "LifecycleCallback", ">", "preDestroy", ")", "throws", "InjectionException", "{", "doPreDestroy", "(", "instance", ".", "getClass", "(", ")", ",", "preDestroy", ",", "instance", ")", ...
Processes the PreDestroy callback method for the login callback handler class @param instance the instance object of the login callback handler class @param postConstructs a list of PreDestroy metadata in the application client module @throws InjectionException
[ "Processes", "the", "PreDestroy", "callback", "method", "for", "the", "login", "callback", "handler", "class" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L71-L73
rampatra/jbot
jbot-example/src/main/java/example/jbot/slack/SlackBot.java
SlackBot.onReceiveMessage
@Controller(events = EventType.MESSAGE, pattern = "^([a-z ] { """ Invoked when bot receives an event of type message with text satisfying the pattern {@code ([a-z ]{2})(\d+)([a-z ]{2})}. For example, messages like "ab12xy" or "ab2bc" etc will invoke this method. @param session @param event """2})(\\d+)([...
java
@Controller(events = EventType.MESSAGE, pattern = "^([a-z ]{2})(\\d+)([a-z ]{2})$") public void onReceiveMessage(WebSocketSession session, Event event, Matcher matcher) { reply(session, event, "First group: " + matcher.group(0) + "\n" + "Second group: " + matcher.group(1) + "\n" + ...
[ "@", "Controller", "(", "events", "=", "EventType", ".", "MESSAGE", ",", "pattern", "=", "\"^([a-z ]{2})(\\\\d+)([a-z ]{2})$\"", ")", "public", "void", "onReceiveMessage", "(", "WebSocketSession", "session", ",", "Event", "event", ",", "Matcher", "matcher", ")", "...
Invoked when bot receives an event of type message with text satisfying the pattern {@code ([a-z ]{2})(\d+)([a-z ]{2})}. For example, messages like "ab12xy" or "ab2bc" etc will invoke this method. @param session @param event
[ "Invoked", "when", "bot", "receives", "an", "event", "of", "type", "message", "with", "text", "satisfying", "the", "pattern", "{", "@code", "(", "[", "a", "-", "z", "]", "{", "2", "}", ")", "(", "\\", "d", "+", ")", "(", "[", "a", "-", "z", "]"...
train
https://github.com/rampatra/jbot/blob/0f42e1a6ec4dcbc5d1257e1307704903e771f7b5/jbot-example/src/main/java/example/jbot/slack/SlackBot.java#L69-L75
fuzzylite/jfuzzylite
jfuzzylite/src/main/java/com/fuzzylite/imex/RScriptExporter.java
RScriptExporter.toFile
@Override public void toFile(File file, Engine engine) throws IOException { """ Creates an R script file plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the two input variables @param file is the R script file @param engine is the ...
java
@Override public void toFile(File file, Engine engine) throws IOException { if (engine.getInputVariables().isEmpty()) { throw new RuntimeException("[exporter error] engine has no input variables to export the surface"); } if (engine.getOutputVariables().isEmpty()) { t...
[ "@", "Override", "public", "void", "toFile", "(", "File", "file", ",", "Engine", "engine", ")", "throws", "IOException", "{", "if", "(", "engine", ".", "getInputVariables", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "RuntimeException", ...
Creates an R script file plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the two input variables @param file is the R script file @param engine is the engine to export @throws IOException if any error occurs during writing the file
[ "Creates", "an", "R", "script", "file", "plotting", "multiple", "surfaces", "based", "on", "a", "data", "frame", "generated", "with", "1024", "values", "in", "the", "scope", "of", "FldExporter", "::", "AllVariables", "for", "the", "two", "input", "variables" ]
train
https://github.com/fuzzylite/jfuzzylite/blob/583ac1928f39512af75de80d560e67448039595a/jfuzzylite/src/main/java/com/fuzzylite/imex/RScriptExporter.java#L197-L209
dlemmermann/CalendarFX
CalendarFXView/src/main/java/com/calendarfx/view/DateControl.java
DateControl.setEntryDetailsPopOverContentCallback
public final void setEntryDetailsPopOverContentCallback(Callback<EntryDetailsPopOverContentParameter, Node> callback) { """ Sets the value of {@link #entryDetailsPopOverContentCallbackProperty()}. @param callback the entry details popover content callback """ requireNonNull(callback); entryD...
java
public final void setEntryDetailsPopOverContentCallback(Callback<EntryDetailsPopOverContentParameter, Node> callback) { requireNonNull(callback); entryDetailsPopOverContentCallbackProperty().set(callback); }
[ "public", "final", "void", "setEntryDetailsPopOverContentCallback", "(", "Callback", "<", "EntryDetailsPopOverContentParameter", ",", "Node", ">", "callback", ")", "{", "requireNonNull", "(", "callback", ")", ";", "entryDetailsPopOverContentCallbackProperty", "(", ")", "....
Sets the value of {@link #entryDetailsPopOverContentCallbackProperty()}. @param callback the entry details popover content callback
[ "Sets", "the", "value", "of", "{", "@link", "#entryDetailsPopOverContentCallbackProperty", "()", "}", "." ]
train
https://github.com/dlemmermann/CalendarFX/blob/f2b91c2622c3f29d004485b6426b23b86c331f96/CalendarFXView/src/main/java/com/calendarfx/view/DateControl.java#L1752-L1755
sagiegurari/fax4j
src/main/java/org/fax4j/spi/hylafax/HylaFaxClientSpi.java
HylaFaxClientSpi.createFaxJobImpl
@Override protected FaxJob createFaxJobImpl() { """ This function creates a new fax job instance to be used by the caller to submit a new fax job and so on. @return The fax job instance """ //get client HylaFAXClient client=this.getHylaFAXClient(); FaxJob faxJob=null; ...
java
@Override protected FaxJob createFaxJobImpl() { //get client HylaFAXClient client=this.getHylaFAXClient(); FaxJob faxJob=null; try { //create job Job job=client.createJob(); faxJob=new HylaFaxJob(job); } catch(RuntimeEx...
[ "@", "Override", "protected", "FaxJob", "createFaxJobImpl", "(", ")", "{", "//get client", "HylaFAXClient", "client", "=", "this", ".", "getHylaFAXClient", "(", ")", ";", "FaxJob", "faxJob", "=", "null", ";", "try", "{", "//create job", "Job", "job", "=", "c...
This function creates a new fax job instance to be used by the caller to submit a new fax job and so on. @return The fax job instance
[ "This", "function", "creates", "a", "new", "fax", "job", "instance", "to", "be", "used", "by", "the", "caller", "to", "submit", "a", "new", "fax", "job", "and", "so", "on", "." ]
train
https://github.com/sagiegurari/fax4j/blob/42fa51acabe7bf279e27ab3dd1cf76146b27955f/src/main/java/org/fax4j/spi/hylafax/HylaFaxClientSpi.java#L272-L295
TheHortonMachine/hortonmachine
gears/src/main/java/org/hortonmachine/gears/utils/features/FilterUtilities.java
FilterUtilities.getBboxFilter
public static Filter getBboxFilter( String attribute, BoundingBox bbox ) throws CQLException { """ Create a bounding box filter from a bounding box. @param attribute the geometry attribute or null in the case of default "the_geom". @param bbox the {@link BoundingBox}. @return the filter. @throws CQLException...
java
public static Filter getBboxFilter( String attribute, BoundingBox bbox ) throws CQLException { double w = bbox.getMinX(); double e = bbox.getMaxX(); double s = bbox.getMinY(); double n = bbox.getMaxY(); return getBboxFilter(attribute, w, e, s, n); }
[ "public", "static", "Filter", "getBboxFilter", "(", "String", "attribute", ",", "BoundingBox", "bbox", ")", "throws", "CQLException", "{", "double", "w", "=", "bbox", ".", "getMinX", "(", ")", ";", "double", "e", "=", "bbox", ".", "getMaxX", "(", ")", ";...
Create a bounding box filter from a bounding box. @param attribute the geometry attribute or null in the case of default "the_geom". @param bbox the {@link BoundingBox}. @return the filter. @throws CQLException
[ "Create", "a", "bounding", "box", "filter", "from", "a", "bounding", "box", "." ]
train
https://github.com/TheHortonMachine/hortonmachine/blob/d2b436bbdf951dc1fda56096a42dbc0eae4d35a5/gears/src/main/java/org/hortonmachine/gears/utils/features/FilterUtilities.java#L44-L51
jbundle/jbundle
base/screen/model/src/main/java/org/jbundle/base/screen/model/BasePanel.java
BasePanel.setSFieldToProperty
public int setSFieldToProperty(String strSuffix, boolean bDisplayOption, int iMoveMode) { """ Move the HTML input to the screen record fields. @param strSuffix Only move fields with the suffix. @return true if one was moved. @exception DBException File exception. """ int iErrorCode = Constant.NORMAL...
java
public int setSFieldToProperty(String strSuffix, boolean bDisplayOption, int iMoveMode) { int iErrorCode = Constant.NORMAL_RETURN; for (int iIndex = 0; iIndex < this.getSFieldCount(); iIndex++) { ScreenField sField = this.getSField(iIndex); int iErrorCode2 = sField.s...
[ "public", "int", "setSFieldToProperty", "(", "String", "strSuffix", ",", "boolean", "bDisplayOption", ",", "int", "iMoveMode", ")", "{", "int", "iErrorCode", "=", "Constant", ".", "NORMAL_RETURN", ";", "for", "(", "int", "iIndex", "=", "0", ";", "iIndex", "<...
Move the HTML input to the screen record fields. @param strSuffix Only move fields with the suffix. @return true if one was moved. @exception DBException File exception.
[ "Move", "the", "HTML", "input", "to", "the", "screen", "record", "fields", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/BasePanel.java#L1496-L1508
eFaps/eFaps-Kernel
src/main/java/org/efaps/db/stmt/runner/SQLRunner.java
SQLRunner.executeInserts
private void executeInserts() throws EFapsException { """ Execute the inserts. @throws EFapsException the e faps exception """ ConnectionResource con = null; try { final Insert insert = (Insert) runnable; con = Context.getThreadContext().getConnectionResource(); ...
java
private void executeInserts() throws EFapsException { ConnectionResource con = null; try { final Insert insert = (Insert) runnable; con = Context.getThreadContext().getConnectionResource(); long id = 0; for (final Entry<SQLTable, AbstractSQLInsertUpdat...
[ "private", "void", "executeInserts", "(", ")", "throws", "EFapsException", "{", "ConnectionResource", "con", "=", "null", ";", "try", "{", "final", "Insert", "insert", "=", "(", "Insert", ")", "runnable", ";", "con", "=", "Context", ".", "getThreadContext", ...
Execute the inserts. @throws EFapsException the e faps exception
[ "Execute", "the", "inserts", "." ]
train
https://github.com/eFaps/eFaps-Kernel/blob/04b96548f518c2386a93f5ec2b9349f9b9063859/src/main/java/org/efaps/db/stmt/runner/SQLRunner.java#L527-L550
exoplatform/jcr
exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchManager.java
SearchManager.getNodesByUri
public Set<String> getNodesByUri(final String uri) throws RepositoryException { """ Return set of uuid of nodes. Contains in names prefixes maped to the given uri @param uri @return @throws RepositoryException """ Set<String> result; final int defaultClauseCount = BooleanQuery.getMaxClauseC...
java
public Set<String> getNodesByUri(final String uri) throws RepositoryException { Set<String> result; final int defaultClauseCount = BooleanQuery.getMaxClauseCount(); try { // final LocationFactory locationFactory = new // LocationFactory(this); final ValueF...
[ "public", "Set", "<", "String", ">", "getNodesByUri", "(", "final", "String", "uri", ")", "throws", "RepositoryException", "{", "Set", "<", "String", ">", "result", ";", "final", "int", "defaultClauseCount", "=", "BooleanQuery", ".", "getMaxClauseCount", "(", ...
Return set of uuid of nodes. Contains in names prefixes maped to the given uri @param uri @return @throws RepositoryException
[ "Return", "set", "of", "uuid", "of", "nodes", ".", "Contains", "in", "names", "prefixes", "maped", "to", "the", "given", "uri" ]
train
https://github.com/exoplatform/jcr/blob/3e7f9ee1b5683640d73a4316fb4b0ad5eac5b8a2/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchManager.java#L540-L596
auth0/auth0-spring-security-api
lib/src/main/java/com/auth0/spring/security/api/JwtWebSecurityConfigurer.java
JwtWebSecurityConfigurer.forHS256
@SuppressWarnings( { """ Configures application authorization for JWT signed with HS256 @param audience identifier of the API and must match the {@code aud} value in the token @param issuer of the token for this API and must match the {@code iss} value in the token @param provider of Spring Authentication objec...
java
@SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, AuthenticationProvider provider) { return new JwtWebSecurityConfigurer(audience, issuer, provider); }
[ "@", "SuppressWarnings", "(", "{", "\"WeakerAccess\"", ",", "\"SameParameterValue\"", "}", ")", "public", "static", "JwtWebSecurityConfigurer", "forHS256", "(", "String", "audience", ",", "String", "issuer", ",", "AuthenticationProvider", "provider", ")", "{", "return...
Configures application authorization for JWT signed with HS256 @param audience identifier of the API and must match the {@code aud} value in the token @param issuer of the token for this API and must match the {@code iss} value in the token @param provider of Spring Authentication objects that can validate a {@link com...
[ "Configures", "application", "authorization", "for", "JWT", "signed", "with", "HS256" ]
train
https://github.com/auth0/auth0-spring-security-api/blob/cebd4daa0125efd4da9e651cf29aa5ebdb147e2b/lib/src/main/java/com/auth0/spring/security/api/JwtWebSecurityConfigurer.java#L85-L88
apache/flink
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/functions/SqlDateTimeUtils.java
SqlDateTimeUtils.timestampToString
public static String timestampToString(long ts, int precision, TimeZone tz) { """ Convert a timestamp to string. @param ts the timestamp to convert. @param precision the milli second precision to preserve @param tz the time zone """ int p = (precision <= 3 && precision >= 0) ? precision : 3; String form...
java
public static String timestampToString(long ts, int precision, TimeZone tz) { int p = (precision <= 3 && precision >= 0) ? precision : 3; String format = DEFAULT_DATETIME_FORMATS[p]; return dateFormat(ts, format, tz); }
[ "public", "static", "String", "timestampToString", "(", "long", "ts", ",", "int", "precision", ",", "TimeZone", "tz", ")", "{", "int", "p", "=", "(", "precision", "<=", "3", "&&", "precision", ">=", "0", ")", "?", "precision", ":", "3", ";", "String", ...
Convert a timestamp to string. @param ts the timestamp to convert. @param precision the milli second precision to preserve @param tz the time zone
[ "Convert", "a", "timestamp", "to", "string", "." ]
train
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/functions/SqlDateTimeUtils.java#L391-L395
zaproxy/zaproxy
src/org/zaproxy/zap/spider/parser/SpiderHtmlFormParser.java
SpiderHtmlFormParser.prepareFormDataSet
private FormData prepareFormDataSet(Source source, Element form) { """ Prepares the form data set. A form data set is a sequence of control-name/current-value pairs constructed from successful controls, which will be sent with a GET/POST request for a form. @see <a href="https://www.w3.org/TR/REC-html40/intera...
java
private FormData prepareFormDataSet(Source source, Element form) { List<FormDataField> formDataFields = new LinkedList<>(); // Process each form field Iterator<FormField> it = getFormFields(source, form).iterator(); while (it.hasNext()) { FormField field = it.next(); if (log.isDebugEnabled()) { log.d...
[ "private", "FormData", "prepareFormDataSet", "(", "Source", "source", ",", "Element", "form", ")", "{", "List", "<", "FormDataField", ">", "formDataFields", "=", "new", "LinkedList", "<>", "(", ")", ";", "// Process each form field", "Iterator", "<", "FormField", ...
Prepares the form data set. A form data set is a sequence of control-name/current-value pairs constructed from successful controls, which will be sent with a GET/POST request for a form. @see <a href="https://www.w3.org/TR/REC-html40/interact/forms.html#form-data-set">HTML 4.01 Specification - 17.13.3 Processing form ...
[ "Prepares", "the", "form", "data", "set", ".", "A", "form", "data", "set", "is", "a", "sequence", "of", "control", "-", "name", "/", "current", "-", "value", "pairs", "constructed", "from", "successful", "controls", "which", "will", "be", "sent", "with", ...
train
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/parser/SpiderHtmlFormParser.java#L233-L249
manupsunny/PinLock
pinlock/src/main/java/com/manusunny/pinlock/components/KeypadAdapter.java
KeypadAdapter.setValues
private void setValues(int position, Button view) { """ Setting Button text @param position Position of Button in GridView @param view Button itself """ if (position == 10) { view.setText("0"); } else if (position == 9) { view.setVisibility(View.INVISIBLE); } e...
java
private void setValues(int position, Button view) { if (position == 10) { view.setText("0"); } else if (position == 9) { view.setVisibility(View.INVISIBLE); } else { view.setText(String.valueOf((position + 1) % 10)); } }
[ "private", "void", "setValues", "(", "int", "position", ",", "Button", "view", ")", "{", "if", "(", "position", "==", "10", ")", "{", "view", ".", "setText", "(", "\"0\"", ")", ";", "}", "else", "if", "(", "position", "==", "9", ")", "{", "view", ...
Setting Button text @param position Position of Button in GridView @param view Button itself
[ "Setting", "Button", "text" ]
train
https://github.com/manupsunny/PinLock/blob/bbb5d53cc57d4e163be01a95157d335231b55dc0/pinlock/src/main/java/com/manusunny/pinlock/components/KeypadAdapter.java#L170-L178
massfords/jaxb-visitor
src/main/java/com/massfords/jaxb/ClassDiscoverer.java
ClassDiscoverer.handleXmlElement
private static void handleXmlElement(Outline outline, Set<String> directClasses, JAnnotationValue type) { """ Handles the extraction of the schema type from the XmlElement annotation. This was surprisingly difficult. Apparently the model doesn't provide access to the annotation we're referring to so I need to p...
java
private static void handleXmlElement(Outline outline, Set<String> directClasses, JAnnotationValue type) { StringWriter sw = new StringWriter(); JFormatter jf = new JFormatter(new PrintWriter(sw)); type.generate(jf); String s = sw.toString(); s = s.substring(0, s.length()-".class"...
[ "private", "static", "void", "handleXmlElement", "(", "Outline", "outline", ",", "Set", "<", "String", ">", "directClasses", ",", "JAnnotationValue", "type", ")", "{", "StringWriter", "sw", "=", "new", "StringWriter", "(", ")", ";", "JFormatter", "jf", "=", ...
Handles the extraction of the schema type from the XmlElement annotation. This was surprisingly difficult. Apparently the model doesn't provide access to the annotation we're referring to so I need to print it and read the string back. Even the formatter itself is final! @param outline root of the generated code @param...
[ "Handles", "the", "extraction", "of", "the", "schema", "type", "from", "the", "XmlElement", "annotation", ".", "This", "was", "surprisingly", "difficult", ".", "Apparently", "the", "model", "doesn", "t", "provide", "access", "to", "the", "annotation", "we", "r...
train
https://github.com/massfords/jaxb-visitor/blob/0d66cd4d8b6700b5eb67c028a87b53792be895b8/src/main/java/com/massfords/jaxb/ClassDiscoverer.java#L108-L117
kirgor/enklib
sql/src/main/java/com/kirgor/enklib/sql/Session.java
Session.getSingleOrNull
public <T> T getSingleOrNull(String query, Class<T> entityClass, Object... params) throws SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException { """ Executes SQL query, which returns single entity or null if result is not there. @param <T> Entity type. @param q...
java
public <T> T getSingleOrNull(String query, Class<T> entityClass, Object... params) throws SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException { Cursor<T> cursor = getCursor(query, entityClass, params); return cursor.fetchSingleOrNull(); }
[ "public", "<", "T", ">", "T", "getSingleOrNull", "(", "String", "query", ",", "Class", "<", "T", ">", "entityClass", ",", "Object", "...", "params", ")", "throws", "SQLException", ",", "NoSuchFieldException", ",", "InstantiationException", ",", "IllegalAccessExc...
Executes SQL query, which returns single entity or null if result is not there. @param <T> Entity type. @param query SQL query string. @param entityClass Entity class. @param params Parameters, which will be placed instead of '?' signs. @return Single result entity or null. @throws SQLException ...
[ "Executes", "SQL", "query", "which", "returns", "single", "entity", "or", "null", "if", "result", "is", "not", "there", "." ]
train
https://github.com/kirgor/enklib/blob/8a24db296dc43db5d8fe509cf64ace0a0c7be8f2/sql/src/main/java/com/kirgor/enklib/sql/Session.java#L150-L154
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/stats/Counters.java
Counters.tfLogScale
@SuppressWarnings("unchecked") public static <E, C extends Counter<E>> C tfLogScale(C c, double base) { """ Returns a new Counter which is the input counter with log tf scaling @param c The counter to scale. It is not changed @param base The base of the logarithm used for tf scaling by 1 + log tf @return...
java
@SuppressWarnings("unchecked") public static <E, C extends Counter<E>> C tfLogScale(C c, double base) { C scaled = (C) c.getFactory().create(); for (E key : c.keySet()) { double cnt = c.getCount(key); double scaledCnt = 0.0; if (cnt > 0) { scaledCnt = 1.0 + SloppyMath.log(cnt,...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "<", "E", ",", "C", "extends", "Counter", "<", "E", ">", ">", "C", "tfLogScale", "(", "C", "c", ",", "double", "base", ")", "{", "C", "scaled", "=", "(", "C", ")", "c", ".", ...
Returns a new Counter which is the input counter with log tf scaling @param c The counter to scale. It is not changed @param base The base of the logarithm used for tf scaling by 1 + log tf @return A new Counter which is the argument scaled by the given scale factor.
[ "Returns", "a", "new", "Counter", "which", "is", "the", "input", "counter", "with", "log", "tf", "scaling" ]
train
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/stats/Counters.java#L1549-L1561
OpenLiberty/open-liberty
dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java
LifecycleCallbackHelper.doPostConstruct
@SuppressWarnings("rawtypes") private void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs, Object instance) throws InjectionException { """ Processes the PostConstruct callback method @param clazz the callback class object @param postConstructs a list of PostConstruct application clien...
java
@SuppressWarnings("rawtypes") private void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs, Object instance) throws InjectionException { if (!metadataComplete && clazz.getSuperclass() != null) { doPostConstruct(clazz.getSuperclass(), postConstructs, instance); } ...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "private", "void", "doPostConstruct", "(", "Class", "clazz", ",", "List", "<", "LifecycleCallback", ">", "postConstructs", ",", "Object", "instance", ")", "throws", "InjectionException", "{", "if", "(", "!", "me...
Processes the PostConstruct callback method @param clazz the callback class object @param postConstructs a list of PostConstruct application client module deployment descriptor. @param instance the instance object of the callback class. It can be null for static method. @throws InjectionException
[ "Processes", "the", "PostConstruct", "callback", "method" ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L83-L99
eclipse/xtext-core
org.eclipse.xtext/xtend-gen/org/eclipse/xtext/generator/trace/node/GeneratorNodeExtensions.java
GeneratorNodeExtensions.appendNewLine
public CompositeGeneratorNode appendNewLine(final CompositeGeneratorNode parent) { """ Appends a line separator node to the given parent. @return the given parent node """ List<IGeneratorNode> _children = parent.getChildren(); String _lineDelimiter = this.wsConfig.getLineDelimiter(); NewLineNode...
java
public CompositeGeneratorNode appendNewLine(final CompositeGeneratorNode parent) { List<IGeneratorNode> _children = parent.getChildren(); String _lineDelimiter = this.wsConfig.getLineDelimiter(); NewLineNode _newLineNode = new NewLineNode(_lineDelimiter, false); _children.add(_newLineNode); return p...
[ "public", "CompositeGeneratorNode", "appendNewLine", "(", "final", "CompositeGeneratorNode", "parent", ")", "{", "List", "<", "IGeneratorNode", ">", "_children", "=", "parent", ".", "getChildren", "(", ")", ";", "String", "_lineDelimiter", "=", "this", ".", "wsCon...
Appends a line separator node to the given parent. @return the given parent node
[ "Appends", "a", "line", "separator", "node", "to", "the", "given", "parent", "." ]
train
https://github.com/eclipse/xtext-core/blob/bac941cb75cb24706519845ec174cfef874d7557/org.eclipse.xtext/xtend-gen/org/eclipse/xtext/generator/trace/node/GeneratorNodeExtensions.java#L96-L102
ontop/ontop
core/model/src/main/java/it/unibz/inf/ontop/dbschema/BasicDBMetadata.java
BasicDBMetadata.createDatabaseRelation
public DatabaseRelationDefinition createDatabaseRelation(RelationID id) { """ creates a database table (which can also be a database view) if the <name>id</name> contains schema than the relation is added to the lookup table (see getDatabaseRelation and getRelation) with both the fully qualified id and the tabl...
java
public DatabaseRelationDefinition createDatabaseRelation(RelationID id) { if (!isStillMutable) { throw new IllegalStateException("Too late, cannot create a DB relation"); } DatabaseRelationDefinition table = new DatabaseRelationDefinition(id, typeMapper); add(table, tables); ...
[ "public", "DatabaseRelationDefinition", "createDatabaseRelation", "(", "RelationID", "id", ")", "{", "if", "(", "!", "isStillMutable", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Too late, cannot create a DB relation\"", ")", ";", "}", "DatabaseRelationDefi...
creates a database table (which can also be a database view) if the <name>id</name> contains schema than the relation is added to the lookup table (see getDatabaseRelation and getRelation) with both the fully qualified id and the table name only id @param id @return
[ "creates", "a", "database", "table", "(", "which", "can", "also", "be", "a", "database", "view", ")", "if", "the", "<name", ">", "id<", "/", "name", ">", "contains", "schema", "than", "the", "relation", "is", "added", "to", "the", "lookup", "table", "(...
train
https://github.com/ontop/ontop/blob/ddf78b26981b6129ee9a1a59310016830f5352e4/core/model/src/main/java/it/unibz/inf/ontop/dbschema/BasicDBMetadata.java#L68-L77
Whiley/WhileyCompiler
src/main/java/wyil/check/FlowTypeCheck.java
FlowTypeCheck.checkLogicalDisjunction
private Environment checkLogicalDisjunction(Expr.LogicalOr expr, boolean sign, Environment environment) { """ In this case, we are assuming the environments are exclusive from each other (i.e. this is the opposite of threading them through). For example, consider this case: <pre> function f(int|null x) -> (b...
java
private Environment checkLogicalDisjunction(Expr.LogicalOr expr, boolean sign, Environment environment) { Tuple<Expr> operands = expr.getOperands(); if (sign) { Environment[] refinements = new Environment[operands.size()]; for (int i = 0; i != operands.size(); ++i) { refinements[i] = checkCondition(operan...
[ "private", "Environment", "checkLogicalDisjunction", "(", "Expr", ".", "LogicalOr", "expr", ",", "boolean", "sign", ",", "Environment", "environment", ")", "{", "Tuple", "<", "Expr", ">", "operands", "=", "expr", ".", "getOperands", "(", ")", ";", "if", "(",...
In this case, we are assuming the environments are exclusive from each other (i.e. this is the opposite of threading them through). For example, consider this case: <pre> function f(int|null x) -> (bool r): return (x is null) || (x >= 0) </pre> The environment produced by the left condition is <code>{x->null}</code>....
[ "In", "this", "case", "we", "are", "assuming", "the", "environments", "are", "exclusive", "from", "each", "other", "(", "i", ".", "e", ".", "this", "is", "the", "opposite", "of", "threading", "them", "through", ")", ".", "For", "example", "consider", "th...
train
https://github.com/Whiley/WhileyCompiler/blob/680f8a657d3fc286f8cc422755988b6d74ab3f4c/src/main/java/wyil/check/FlowTypeCheck.java#L958-L975
Whiley/WhileyCompiler
src/main/java/wyil/type/binding/RelaxedTypeResolver.java
RelaxedTypeResolver.isSubtype
private boolean isSubtype(Type.Callable lhs, Type.Callable rhs, LifetimeRelation lifetimes) { """ Check whether the type signature for a given function or method declaration is a super type of a given child declaration. @param lhs @param rhs @return """ Tuple<Type> parentParams = lhs.getParameters(); ...
java
private boolean isSubtype(Type.Callable lhs, Type.Callable rhs, LifetimeRelation lifetimes) { Tuple<Type> parentParams = lhs.getParameters(); Tuple<Type> childParams = rhs.getParameters(); if (parentParams.size() != childParams.size()) { // Differing number of parameters / arguments. Since we don't // suppo...
[ "private", "boolean", "isSubtype", "(", "Type", ".", "Callable", "lhs", ",", "Type", ".", "Callable", "rhs", ",", "LifetimeRelation", "lifetimes", ")", "{", "Tuple", "<", "Type", ">", "parentParams", "=", "lhs", ".", "getParameters", "(", ")", ";", "Tuple"...
Check whether the type signature for a given function or method declaration is a super type of a given child declaration. @param lhs @param rhs @return
[ "Check", "whether", "the", "type", "signature", "for", "a", "given", "function", "or", "method", "declaration", "is", "a", "super", "type", "of", "a", "given", "child", "declaration", "." ]
train
https://github.com/Whiley/WhileyCompiler/blob/680f8a657d3fc286f8cc422755988b6d74ab3f4c/src/main/java/wyil/type/binding/RelaxedTypeResolver.java#L566-L586
lucee/Lucee
core/src/main/java/lucee/runtime/tag/Mail.java
Mail.setProxyuser
public void setProxyuser(String proxyuser) throws ApplicationException { """ set the value username When required by a proxy server, a valid username. @param proxyuser value to set @throws ApplicationException """ try { smtp.getProxyData().setUsername(proxyuser); } catch (Exception e) { throw ...
java
public void setProxyuser(String proxyuser) throws ApplicationException { try { smtp.getProxyData().setUsername(proxyuser); } catch (Exception e) { throw new ApplicationException("attribute [proxyuser] of the tag [mail] is invalid", e.getMessage()); } }
[ "public", "void", "setProxyuser", "(", "String", "proxyuser", ")", "throws", "ApplicationException", "{", "try", "{", "smtp", ".", "getProxyData", "(", ")", ".", "setUsername", "(", "proxyuser", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "thr...
set the value username When required by a proxy server, a valid username. @param proxyuser value to set @throws ApplicationException
[ "set", "the", "value", "username", "When", "required", "by", "a", "proxy", "server", "a", "valid", "username", "." ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/tag/Mail.java#L155-L162
killme2008/xmemcached
src/main/java/net/rubyeye/xmemcached/aws/AWSElasticCacheClient.java
AWSElasticCacheClient.getConfig
public ClusterConfigration getConfig(String key) throws MemcachedException, InterruptedException, TimeoutException { """ Get config by key from cache node by network command. @since 2.3.0 @return clusetr config. """ Command cmd = this.commandFactory.createAWSElasticCacheConfigCommand("get", key);...
java
public ClusterConfigration getConfig(String key) throws MemcachedException, InterruptedException, TimeoutException { Command cmd = this.commandFactory.createAWSElasticCacheConfigCommand("get", key); final Session session = this.sendCommand(cmd); this.latchWait(cmd, opTimeout, session); cmd.getIoBu...
[ "public", "ClusterConfigration", "getConfig", "(", "String", "key", ")", "throws", "MemcachedException", ",", "InterruptedException", ",", "TimeoutException", "{", "Command", "cmd", "=", "this", ".", "commandFactory", ".", "createAWSElasticCacheConfigCommand", "(", "\"g...
Get config by key from cache node by network command. @since 2.3.0 @return clusetr config.
[ "Get", "config", "by", "key", "from", "cache", "node", "by", "network", "command", "." ]
train
https://github.com/killme2008/xmemcached/blob/66150915938813b3e3413de1d7b43b6ff9b1478d/src/main/java/net/rubyeye/xmemcached/aws/AWSElasticCacheClient.java#L253-L265
Netflix/astyanax
astyanax-recipes/src/main/java/com/netflix/astyanax/recipes/locks/ColumnPrefixDistributedRowLock.java
ColumnPrefixDistributedRowLock.verifyLock
public void verifyLock(long curTimeInMicros) throws Exception, BusyLockException, StaleLockException { """ Verify that the lock was acquired. This shouldn't be called unless it's part of a recipe built on top of ColumnPrefixDistributedRowLock. @param curTimeInMicros @throws BusyLockException """ ...
java
public void verifyLock(long curTimeInMicros) throws Exception, BusyLockException, StaleLockException { if (lockColumn == null) throw new IllegalStateException("verifyLock() called without attempting to take the lock"); // Read back all columns. There should be only 1 if we got the ...
[ "public", "void", "verifyLock", "(", "long", "curTimeInMicros", ")", "throws", "Exception", ",", "BusyLockException", ",", "StaleLockException", "{", "if", "(", "lockColumn", "==", "null", ")", "throw", "new", "IllegalStateException", "(", "\"verifyLock() called witho...
Verify that the lock was acquired. This shouldn't be called unless it's part of a recipe built on top of ColumnPrefixDistributedRowLock. @param curTimeInMicros @throws BusyLockException
[ "Verify", "that", "the", "lock", "was", "acquired", ".", "This", "shouldn", "t", "be", "called", "unless", "it", "s", "part", "of", "a", "recipe", "built", "on", "top", "of", "ColumnPrefixDistributedRowLock", "." ]
train
https://github.com/Netflix/astyanax/blob/bcc3fd26e2dda05a923751aa32b139f6209fecdf/astyanax-recipes/src/main/java/com/netflix/astyanax/recipes/locks/ColumnPrefixDistributedRowLock.java#L282-L303
cdk/cdk
base/core/src/main/java/org/openscience/cdk/graph/Cycles.java
Cycles.toRingSet
private static IRingSet toRingSet(IAtomContainer container, int[][] cycles, EdgeToBondMap bondMap) { """ Internal - convert a set of cycles to an ring set. @param container molecule @param cycles a cycle of the chemical graph @param bondMap mapping of the edges (int,int) to the bonds of the container @...
java
private static IRingSet toRingSet(IAtomContainer container, int[][] cycles, EdgeToBondMap bondMap) { // note currently no way to say the size of the RingSet // even through we know it IChemObjectBuilder builder = container.getBuilder(); IRingSet rings = builder.newInstance(IRingSet.clas...
[ "private", "static", "IRingSet", "toRingSet", "(", "IAtomContainer", "container", ",", "int", "[", "]", "[", "]", "cycles", ",", "EdgeToBondMap", "bondMap", ")", "{", "// note currently no way to say the size of the RingSet", "// even through we know it", "IChemObjectBuilde...
Internal - convert a set of cycles to an ring set. @param container molecule @param cycles a cycle of the chemical graph @param bondMap mapping of the edges (int,int) to the bonds of the container @return the ring set
[ "Internal", "-", "convert", "a", "set", "of", "cycles", "to", "an", "ring", "set", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/base/core/src/main/java/org/openscience/cdk/graph/Cycles.java#L915-L927
nemerosa/ontrack
ontrack-ui/src/main/java/net/nemerosa/ontrack/boot/ui/BranchController.java
BranchController.connectTemplateInstance
@RequestMapping(value = "branches/ { """ Tries to connect an existing branch to a template @param branchId Branch to connect """branchId}/template/connect", method = RequestMethod.POST) public Branch connectTemplateInstance(@PathVariable ID branchId, @RequestBody BranchTemplateInstanceConnectRequest req...
java
@RequestMapping(value = "branches/{branchId}/template/connect", method = RequestMethod.POST) public Branch connectTemplateInstance(@PathVariable ID branchId, @RequestBody BranchTemplateInstanceConnectRequest request) { return branchTemplateService.connectTemplateInstance(branchId, request); }
[ "@", "RequestMapping", "(", "value", "=", "\"branches/{branchId}/template/connect\"", ",", "method", "=", "RequestMethod", ".", "POST", ")", "public", "Branch", "connectTemplateInstance", "(", "@", "PathVariable", "ID", "branchId", ",", "@", "RequestBody", "BranchTemp...
Tries to connect an existing branch to a template @param branchId Branch to connect
[ "Tries", "to", "connect", "an", "existing", "branch", "to", "a", "template" ]
train
https://github.com/nemerosa/ontrack/blob/37b0874cbf387b58aba95cd3c1bc3b15e11bc913/ontrack-ui/src/main/java/net/nemerosa/ontrack/boot/ui/BranchController.java#L461-L464
jMetal/jMetal
jmetal-algorithm/src/main/java/org/uma/jmetal/algorithm/multiobjective/wasfga/util/WeightVectors.java
WeightVectors.readFromFile
public static double[][] readFromFile(String filePath) { """ Read a set of weight vector from a file @param filePath A file containing the weight vectors @return A set of weight vectors """ double[][] weights; Vector<double[]> listOfWeights = new Vector<>(); try { // Open the file FileInp...
java
public static double[][] readFromFile(String filePath) { double[][] weights; Vector<double[]> listOfWeights = new Vector<>(); try { // Open the file FileInputStream fis = new FileInputStream(filePath); InputStreamReader isr = new InputStreamReader(fis); BufferedReader br = new BufferedReader(isr...
[ "public", "static", "double", "[", "]", "[", "]", "readFromFile", "(", "String", "filePath", ")", "{", "double", "[", "]", "[", "]", "weights", ";", "Vector", "<", "double", "[", "]", ">", "listOfWeights", "=", "new", "Vector", "<>", "(", ")", ";", ...
Read a set of weight vector from a file @param filePath A file containing the weight vectors @return A set of weight vectors
[ "Read", "a", "set", "of", "weight", "vector", "from", "a", "file" ]
train
https://github.com/jMetal/jMetal/blob/bc981e6aede275d26c5216c9a01227d9675b0cf7/jmetal-algorithm/src/main/java/org/uma/jmetal/algorithm/multiobjective/wasfga/util/WeightVectors.java#L122-L161
couchbase/java-dcp-client
src/main/java/com/couchbase/client/dcp/config/SSLEngineFactory.java
SSLEngineFactory.get
public SSLEngine get() { """ Returns a new {@link SSLEngine} constructed from the config settings. @return a {@link SSLEngine} ready to be used. """ try { String pass = env.sslKeystorePassword(); char[] password = pass == null || pass.isEmpty() ? null : pass.toCharArray(); KeyStore ks...
java
public SSLEngine get() { try { String pass = env.sslKeystorePassword(); char[] password = pass == null || pass.isEmpty() ? null : pass.toCharArray(); KeyStore ks = env.sslKeystore(); if (ks == null) { ks = KeyStore.getInstance(KeyStore.getDefaultType()); String ksFile = env....
[ "public", "SSLEngine", "get", "(", ")", "{", "try", "{", "String", "pass", "=", "env", ".", "sslKeystorePassword", "(", ")", ";", "char", "[", "]", "password", "=", "pass", "==", "null", "||", "pass", ".", "isEmpty", "(", ")", "?", "null", ":", "pa...
Returns a new {@link SSLEngine} constructed from the config settings. @return a {@link SSLEngine} ready to be used.
[ "Returns", "a", "new", "{", "@link", "SSLEngine", "}", "constructed", "from", "the", "config", "settings", "." ]
train
https://github.com/couchbase/java-dcp-client/blob/75359d8c081d6c575f8087cf7c28d24ab24c6421/src/main/java/com/couchbase/client/dcp/config/SSLEngineFactory.java#L54-L83
jferard/fastods
fastods/src/main/java/com/github/jferard/fastods/style/TableColumnStyle.java
TableColumnStyle.appendXMLToTable
public void appendXMLToTable(final XMLUtil util, final Appendable appendable, final int count) throws IOException { """ Append the XML to the table representation @param util an util @param appendable the destination @param count the number of columns concerned @throws IOException if ...
java
public void appendXMLToTable(final XMLUtil util, final Appendable appendable, final int count) throws IOException { appendable.append("<table:table-column"); util.appendEAttribute(appendable, "table:style-name", this.name); if (count > 1) util.appendAttribute(appendable, "table:n...
[ "public", "void", "appendXMLToTable", "(", "final", "XMLUtil", "util", ",", "final", "Appendable", "appendable", ",", "final", "int", "count", ")", "throws", "IOException", "{", "appendable", ".", "append", "(", "\"<table:table-column\"", ")", ";", "util", ".", ...
Append the XML to the table representation @param util an util @param appendable the destination @param count the number of columns concerned @throws IOException if an I/O error occurs
[ "Append", "the", "XML", "to", "the", "table", "representation" ]
train
https://github.com/jferard/fastods/blob/a034d173083ffa602dc525699b97f753082eaef9/fastods/src/main/java/com/github/jferard/fastods/style/TableColumnStyle.java#L109-L118
alkacon/opencms-core
src/org/opencms/search/galleries/CmsGallerySearchResultList.java
CmsGallerySearchResultList.calculatePages
public void calculatePages(int pageIndex, int matchesPerPage) { """ Calculates the result pages.<p> @param pageIndex the index of the current page @param matchesPerPage the matches per page """ m_pageIndex = pageIndex; // calculate the number of pages for this search result m_pageC...
java
public void calculatePages(int pageIndex, int matchesPerPage) { m_pageIndex = pageIndex; // calculate the number of pages for this search result m_pageCount = m_hitCount / matchesPerPage; if ((m_hitCount % matchesPerPage) != 0) { m_pageCount++; } }
[ "public", "void", "calculatePages", "(", "int", "pageIndex", ",", "int", "matchesPerPage", ")", "{", "m_pageIndex", "=", "pageIndex", ";", "// calculate the number of pages for this search result", "m_pageCount", "=", "m_hitCount", "/", "matchesPerPage", ";", "if", "(",...
Calculates the result pages.<p> @param pageIndex the index of the current page @param matchesPerPage the matches per page
[ "Calculates", "the", "result", "pages", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/galleries/CmsGallerySearchResultList.java#L138-L146
rsocket/rsocket-java
rsocket-core/src/main/java/io/rsocket/util/ByteBufPayload.java
ByteBufPayload.create
public static Payload create(String data, @Nullable String metadata) { """ Static factory method for a text payload. Mainly looks better than "new ByteBufPayload(data, metadata)" @param data the data of the payload. @param metadata the metadata for the payload. @return a payload. """ return create( ...
java
public static Payload create(String data, @Nullable String metadata) { return create( ByteBufUtil.writeUtf8(ByteBufAllocator.DEFAULT, data), metadata == null ? null : ByteBufUtil.writeUtf8(ByteBufAllocator.DEFAULT, metadata)); }
[ "public", "static", "Payload", "create", "(", "String", "data", ",", "@", "Nullable", "String", "metadata", ")", "{", "return", "create", "(", "ByteBufUtil", ".", "writeUtf8", "(", "ByteBufAllocator", ".", "DEFAULT", ",", "data", ")", ",", "metadata", "==", ...
Static factory method for a text payload. Mainly looks better than "new ByteBufPayload(data, metadata)" @param data the data of the payload. @param metadata the metadata for the payload. @return a payload.
[ "Static", "factory", "method", "for", "a", "text", "payload", ".", "Mainly", "looks", "better", "than", "new", "ByteBufPayload", "(", "data", "metadata", ")" ]
train
https://github.com/rsocket/rsocket-java/blob/5101748fbd224ec86570351cebd24d079b63fbfc/rsocket-core/src/main/java/io/rsocket/util/ByteBufPayload.java#L66-L70
cloudant/java-cloudant
cloudant-client/src/main/java/com/cloudant/client/org/lightcouch/Params.java
Params.replaceOrAdd
public void replaceOrAdd(String name, String value) { """ If this object already contains a parameter whose name matches {@code name}, replace the existing value with {@code value} for the first instance of parameter {@code name}. Otherwise, add a parameter with the new {@code name} and {@code value}. @param ...
java
public void replaceOrAdd(String name, String value) { boolean found = false; for (Param param : params) { if (param.getKey().equals(name)) { param.setValue(value); found = true; break; } } if (!found) { a...
[ "public", "void", "replaceOrAdd", "(", "String", "name", ",", "String", "value", ")", "{", "boolean", "found", "=", "false", ";", "for", "(", "Param", "param", ":", "params", ")", "{", "if", "(", "param", ".", "getKey", "(", ")", ".", "equals", "(", ...
If this object already contains a parameter whose name matches {@code name}, replace the existing value with {@code value} for the first instance of parameter {@code name}. Otherwise, add a parameter with the new {@code name} and {@code value}. @param name The name of the parameter to replace/add. @param value The ne...
[ "If", "this", "object", "already", "contains", "a", "parameter", "whose", "name", "matches", "{", "@code", "name", "}", "replace", "the", "existing", "value", "with", "{", "@code", "value", "}", "for", "the", "first", "instance", "of", "parameter", "{", "@...
train
https://github.com/cloudant/java-cloudant/blob/42c438654945361bded2cc0827afc046d535b31b/cloudant-client/src/main/java/com/cloudant/client/org/lightcouch/Params.java#L103-L115
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java
TransientPortletEntityDao.wrapEntity
protected IPortletEntity wrapEntity(IPortletEntity portletEntity) { """ Adds a TransientPortletEntity wrapper to the portletEntity if it is needed. If the specified entity is transient but no transient subscribe id has been registered for it yet in the transientIdMap null is returned. If no wrapping is needed th...
java
protected IPortletEntity wrapEntity(IPortletEntity portletEntity) { if (portletEntity == null) { return null; } final String persistentLayoutNodeId = portletEntity.getLayoutNodeId(); if (persistentLayoutNodeId.startsWith(TransientUserLayoutManagerWrapper.SUBSCRIBE_PREFIX)) {...
[ "protected", "IPortletEntity", "wrapEntity", "(", "IPortletEntity", "portletEntity", ")", "{", "if", "(", "portletEntity", "==", "null", ")", "{", "return", "null", ";", "}", "final", "String", "persistentLayoutNodeId", "=", "portletEntity", ".", "getLayoutNodeId", ...
Adds a TransientPortletEntity wrapper to the portletEntity if it is needed. If the specified entity is transient but no transient subscribe id has been registered for it yet in the transientIdMap null is returned. If no wrapping is needed the original entity is returned.
[ "Adds", "a", "TransientPortletEntity", "wrapper", "to", "the", "portletEntity", "if", "it", "is", "needed", ".", "If", "the", "specified", "entity", "is", "transient", "but", "no", "transient", "subscribe", "id", "has", "been", "registered", "for", "it", "yet"...
train
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java#L188-L210
cdk/cdk
display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/VecmathUtil.java
VecmathUtil.adjacentLength
static double adjacentLength(Vector2d hypotenuse, Vector2d adjacent, double oppositeLength) { """ Given vectors for the hypotenuse and adjacent side of a right angled triangle and the length of the opposite side, determine how long the adjacent side size. @param hypotenuse vector for the hypotenuse @param ad...
java
static double adjacentLength(Vector2d hypotenuse, Vector2d adjacent, double oppositeLength) { return Math.tan(hypotenuse.angle(adjacent)) * oppositeLength; }
[ "static", "double", "adjacentLength", "(", "Vector2d", "hypotenuse", ",", "Vector2d", "adjacent", ",", "double", "oppositeLength", ")", "{", "return", "Math", ".", "tan", "(", "hypotenuse", ".", "angle", "(", "adjacent", ")", ")", "*", "oppositeLength", ";", ...
Given vectors for the hypotenuse and adjacent side of a right angled triangle and the length of the opposite side, determine how long the adjacent side size. @param hypotenuse vector for the hypotenuse @param adjacent vector for the adjacent side @param oppositeLength length of the opposite side of a triangle @return ...
[ "Given", "vectors", "for", "the", "hypotenuse", "and", "adjacent", "side", "of", "a", "right", "angled", "triangle", "and", "the", "length", "of", "the", "opposite", "side", "determine", "how", "long", "the", "adjacent", "side", "size", "." ]
train
https://github.com/cdk/cdk/blob/c3d0f16502bf08df50365fee392e11d7c9856657/display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/VecmathUtil.java#L220-L222
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java
CloseableThreadContext.put
public static CloseableThreadContext.Instance put(final String key, final String value) { """ Populates the Thread Context Map with the supplied key/value pair. Any existing key in the {@link ThreadContext} will be replaced with the supplied value, and restored back to their original value when the instance is c...
java
public static CloseableThreadContext.Instance put(final String key, final String value) { return new CloseableThreadContext.Instance().put(key, value); }
[ "public", "static", "CloseableThreadContext", ".", "Instance", "put", "(", "final", "String", "key", ",", "final", "String", "value", ")", "{", "return", "new", "CloseableThreadContext", ".", "Instance", "(", ")", ".", "put", "(", "key", ",", "value", ")", ...
Populates the Thread Context Map with the supplied key/value pair. Any existing key in the {@link ThreadContext} will be replaced with the supplied value, and restored back to their original value when the instance is closed. @param key The key to be added @param value The value to be added @return a new instance t...
[ "Populates", "the", "Thread", "Context", "Map", "with", "the", "supplied", "key", "/", "value", "pair", ".", "Any", "existing", "key", "in", "the", "{", "@link", "ThreadContext", "}", "will", "be", "replaced", "with", "the", "supplied", "value", "and", "re...
train
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java#L74-L76
lessthanoptimal/BoofCV
main/boofcv-feature/src/main/java/boofcv/alg/descriptor/ConvertDescriptors.java
ConvertDescriptors.convertNcc
public static void convertNcc( TupleDesc_F64 input , NccFeature output ) { """ Converts a regular feature description into a NCC feature description @param input Tuple descriptor. (not modified) @param output The equivalent NCC feature. (modified) """ if( input.size() != output.size() ) throw new Illeg...
java
public static void convertNcc( TupleDesc_F64 input , NccFeature output ) { if( input.size() != output.size() ) throw new IllegalArgumentException("Feature lengths do not match."); double mean = 0; for (int i = 0; i < input.value.length; i++) { mean += input.value[i]; } mean /= input.value.length; d...
[ "public", "static", "void", "convertNcc", "(", "TupleDesc_F64", "input", ",", "NccFeature", "output", ")", "{", "if", "(", "input", ".", "size", "(", ")", "!=", "output", ".", "size", "(", ")", ")", "throw", "new", "IllegalArgumentException", "(", "\"Featu...
Converts a regular feature description into a NCC feature description @param input Tuple descriptor. (not modified) @param output The equivalent NCC feature. (modified)
[ "Converts", "a", "regular", "feature", "description", "into", "a", "NCC", "feature", "description" ]
train
https://github.com/lessthanoptimal/BoofCV/blob/f01c0243da0ec086285ee722183804d5923bc3ac/main/boofcv-feature/src/main/java/boofcv/alg/descriptor/ConvertDescriptors.java#L80-L100
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
SqlQueryStatement.getFieldDescriptor
protected FieldDescriptor getFieldDescriptor(TableAlias aTableAlias, PathInfo aPathInfo) { """ Get the FieldDescriptor for the PathInfo @param aTableAlias @param aPathInfo @return FieldDescriptor """ FieldDescriptor fld = null; String colName = aPathInfo.column; if (aTableAlia...
java
protected FieldDescriptor getFieldDescriptor(TableAlias aTableAlias, PathInfo aPathInfo) { FieldDescriptor fld = null; String colName = aPathInfo.column; if (aTableAlias != null) { fld = aTableAlias.cld.getFieldDescriptorByName(colName); if (fld == nu...
[ "protected", "FieldDescriptor", "getFieldDescriptor", "(", "TableAlias", "aTableAlias", ",", "PathInfo", "aPathInfo", ")", "{", "FieldDescriptor", "fld", "=", "null", ";", "String", "colName", "=", "aPathInfo", ".", "column", ";", "if", "(", "aTableAlias", "!=", ...
Get the FieldDescriptor for the PathInfo @param aTableAlias @param aPathInfo @return FieldDescriptor
[ "Get", "the", "FieldDescriptor", "for", "the", "PathInfo" ]
train
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java#L342-L365
loldevs/riotapi
domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/AmfWriter.java
AmfWriter.serializeAmf3
@SneakyThrows(value = { """ Serializes the specified object to amf3 @param obj The object to serialize @param marker The type of the object to check for referencability @throws IOException """InstantiationException.class, IllegalAccessException.class}) public void serializeAmf3(Object obj, Amf3Type mark...
java
@SneakyThrows(value = {InstantiationException.class, IllegalAccessException.class}) public void serializeAmf3(Object obj, Amf3Type marker) throws IOException { if (checkReferenceable(obj, marker)) { return; } Serialization context; if (amf3Serializers.containsKey(obj.g...
[ "@", "SneakyThrows", "(", "value", "=", "{", "InstantiationException", ".", "class", ",", "IllegalAccessException", ".", "class", "}", ")", "public", "void", "serializeAmf3", "(", "Object", "obj", ",", "Amf3Type", "marker", ")", "throws", "IOException", "{", "...
Serializes the specified object to amf3 @param obj The object to serialize @param marker The type of the object to check for referencability @throws IOException
[ "Serializes", "the", "specified", "object", "to", "amf3" ]
train
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/AmfWriter.java#L267-L303
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.updateUserSpeakStatus
public ResponseWrapper updateUserSpeakStatus(long roomId, String username, int flag) throws APIConnectionException, APIRequestException { """ Update user speak status @param roomId chat room id @param username user to be modified @param flag 0 means allow to speak, 1 means forbid to speak in...
java
public ResponseWrapper updateUserSpeakStatus(long roomId, String username, int flag) throws APIConnectionException, APIRequestException { return _chatRoomClient.updateUserSpeakStatus(roomId, username, flag); }
[ "public", "ResponseWrapper", "updateUserSpeakStatus", "(", "long", "roomId", ",", "String", "username", ",", "int", "flag", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "return", "_chatRoomClient", ".", "updateUserSpeakStatus", "(", "roomId"...
Update user speak status @param roomId chat room id @param username user to be modified @param flag 0 means allow to speak, 1 means forbid to speak in chat room @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Update", "user", "speak", "status" ]
train
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L861-L864
liferay/com-liferay-commerce
commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListPersistenceImpl.java
CommerceWishListPersistenceImpl.findByUserId
@Override public List<CommerceWishList> findByUserId(long userId) { """ Returns all the commerce wish lists where userId = &#63;. @param userId the user ID @return the matching commerce wish lists """ return findByUserId(userId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
java
@Override public List<CommerceWishList> findByUserId(long userId) { return findByUserId(userId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
[ "@", "Override", "public", "List", "<", "CommerceWishList", ">", "findByUserId", "(", "long", "userId", ")", "{", "return", "findByUserId", "(", "userId", ",", "QueryUtil", ".", "ALL_POS", ",", "QueryUtil", ".", "ALL_POS", ",", "null", ")", ";", "}" ]
Returns all the commerce wish lists where userId = &#63;. @param userId the user ID @return the matching commerce wish lists
[ "Returns", "all", "the", "commerce", "wish", "lists", "where", "userId", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/persistence/impl/CommerceWishListPersistenceImpl.java#L2023-L2026
GCRC/nunaliit
nunaliit2-couch-client/src/main/java/ca/carleton/gcrc/couch/fsentry/FSEntryFile.java
FSEntryFile.getPositionedFile
static public FSEntry getPositionedFile(String path, File file) throws Exception { """ Create a virtual tree hierarchy with a file supporting the leaf. @param path Position of the file in the hierarchy, including its name @param file The actual file, or directory , abcking the end leaf @return The FSEntry root ...
java
static public FSEntry getPositionedFile(String path, File file) throws Exception { List<String> pathFrags = FSEntrySupport.interpretPath(path); // Start at leaf and work our way back int index = pathFrags.size() - 1; FSEntry root = new FSEntryFile(pathFrags.get(index), file); --index; while(index >= 0...
[ "static", "public", "FSEntry", "getPositionedFile", "(", "String", "path", ",", "File", "file", ")", "throws", "Exception", "{", "List", "<", "String", ">", "pathFrags", "=", "FSEntrySupport", ".", "interpretPath", "(", "path", ")", ";", "// Start at leaf and wo...
Create a virtual tree hierarchy with a file supporting the leaf. @param path Position of the file in the hierarchy, including its name @param file The actual file, or directory , abcking the end leaf @return The FSEntry root for this hierarchy @throws Exception Invalid parameter
[ "Create", "a", "virtual", "tree", "hierarchy", "with", "a", "file", "supporting", "the", "leaf", "." ]
train
https://github.com/GCRC/nunaliit/blob/0b4abfc64eef2eb8b94f852ce697de2e851d8e67/nunaliit2-couch-client/src/main/java/ca/carleton/gcrc/couch/fsentry/FSEntryFile.java#L23-L39
m-m-m/util
contenttype/src/main/java/net/sf/mmm/util/contenttype/base/ContentTypeList.java
ContentTypeList.collectNodes
private void collectNodes(ContentTypeBean node, Collection<ContentTypeBean> collection) { """ This method walks down the tree of {@link ContentTypeBean}s recursively adding them to the given {@link Collection} . @param node is the current node to traverse. @param collection is where to {@link Collection#add(O...
java
private void collectNodes(ContentTypeBean node, Collection<ContentTypeBean> collection) { collection.add(node); for (ContentType child : node.getChildren()) { collectNodes((ContentTypeBean) child, collection); } }
[ "private", "void", "collectNodes", "(", "ContentTypeBean", "node", ",", "Collection", "<", "ContentTypeBean", ">", "collection", ")", "{", "collection", ".", "add", "(", "node", ")", ";", "for", "(", "ContentType", "child", ":", "node", ".", "getChildren", "...
This method walks down the tree of {@link ContentTypeBean}s recursively adding them to the given {@link Collection} . @param node is the current node to traverse. @param collection is where to {@link Collection#add(Object) add} the {@link ContentTypeBean} objects.
[ "This", "method", "walks", "down", "the", "tree", "of", "{", "@link", "ContentTypeBean", "}", "s", "recursively", "adding", "them", "to", "the", "given", "{", "@link", "Collection", "}", "." ]
train
https://github.com/m-m-m/util/blob/f0e4e084448f8dfc83ca682a9e1618034a094ce6/contenttype/src/main/java/net/sf/mmm/util/contenttype/base/ContentTypeList.java#L103-L109
gallandarakhneorg/afc
advanced/gis/giscore/src/main/java/org/arakhne/afc/gis/mapelement/MapPolyline.java
MapPolyline.getSubSegmentForDistance
@Pure public Segment1D<?, ?> getSubSegmentForDistance(double distance) { """ Replies the subsegment which is corresponding to the given position. <p>A subsegment is a pair if connected points in the polyline. @param distance is position on the polyline (in {@code 0} to {@code getLength()}). @return the poi...
java
@Pure public Segment1D<?, ?> getSubSegmentForDistance(double distance) { final double rd = distance < 0. ? 0. : distance; double onGoingDistance = 0.; for (final PointGroup group : groups()) { Point2d previousPts = null; for (final Point2d pts : group.points()) { if (previousPts != null) { onGoing...
[ "@", "Pure", "public", "Segment1D", "<", "?", ",", "?", ">", "getSubSegmentForDistance", "(", "double", "distance", ")", "{", "final", "double", "rd", "=", "distance", "<", "0.", "?", "0.", ":", "distance", ";", "double", "onGoingDistance", "=", "0.", ";...
Replies the subsegment which is corresponding to the given position. <p>A subsegment is a pair if connected points in the polyline. @param distance is position on the polyline (in {@code 0} to {@code getLength()}). @return the point pair, never <code>null</code>.
[ "Replies", "the", "subsegment", "which", "is", "corresponding", "to", "the", "given", "position", "." ]
train
https://github.com/gallandarakhneorg/afc/blob/0c7d2e1ddefd4167ef788416d970a6c1ef6f8bbb/advanced/gis/giscore/src/main/java/org/arakhne/afc/gis/mapelement/MapPolyline.java#L360-L381
haifengl/smile
math/src/main/java/smile/math/matrix/Lanczos.java
Lanczos.ortbnd
private static void ortbnd(double[] alf, double[] bet, double[] eta, double[] oldeta, int step, double rnm, double eps) { """ Update the eta recurrence. @param alf array to store diagonal of the tridiagonal matrix T @param bet array to store off-diagonal of T @param eta on input, orthogonality es...
java
private static void ortbnd(double[] alf, double[] bet, double[] eta, double[] oldeta, int step, double rnm, double eps) { if (step < 1) { return; } if (0 != rnm) { if (step > 1) { oldeta[0] = (bet[1] * eta[1] + (alf[0] - alf[step]) * eta[0] - bet[step] * ...
[ "private", "static", "void", "ortbnd", "(", "double", "[", "]", "alf", ",", "double", "[", "]", "bet", ",", "double", "[", "]", "eta", ",", "double", "[", "]", "oldeta", ",", "int", "step", ",", "double", "rnm", ",", "double", "eps", ")", "{", "i...
Update the eta recurrence. @param alf array to store diagonal of the tridiagonal matrix T @param bet array to store off-diagonal of T @param eta on input, orthogonality estimate of Lanczos vectors at step j. On output, orthogonality estimate of Lanczos vectors at step j+1 . @param oldeta on input, orth...
[ "Update", "the", "eta", "recurrence", "." ]
train
https://github.com/haifengl/smile/blob/e27e43e90fbaacce3f99d30120cf9dd6a764c33d/math/src/main/java/smile/math/matrix/Lanczos.java#L381-L404
google/j2objc
jre_emul/openjdk/src/share/classes/java/math/MutableBigInteger.java
MutableBigInteger.getLower
private BigInteger getLower(int n) { """ Returns a {@code BigInteger} equal to the {@code n} low ints of this number. """ if (isZero()) { return BigInteger.ZERO; } else if (intLen < n) { return toBigInteger(1); } else { // strip zeros int...
java
private BigInteger getLower(int n) { if (isZero()) { return BigInteger.ZERO; } else if (intLen < n) { return toBigInteger(1); } else { // strip zeros int len = n; while (len > 0 && value[offset+intLen-len] == 0) len--; ...
[ "private", "BigInteger", "getLower", "(", "int", "n", ")", "{", "if", "(", "isZero", "(", ")", ")", "{", "return", "BigInteger", ".", "ZERO", ";", "}", "else", "if", "(", "intLen", "<", "n", ")", "{", "return", "toBigInteger", "(", "1", ")", ";", ...
Returns a {@code BigInteger} equal to the {@code n} low ints of this number.
[ "Returns", "a", "{" ]
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/openjdk/src/share/classes/java/math/MutableBigInteger.java#L707-L720
blackfizz/EazeGraph
EazeGraphLibrary/src/main/java/org/eazegraph/lib/charts/BaseBarChart.java
BaseBarChart.onSizeChanged
@Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { """ This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0. @param w Current width of this view. @param h Current height of t...
java
@Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); // Check if the current graph is a VerticalBarChart and set the // availableScreenSize to the chartHeight mAvailableScreenSize = this instanceof VerticalBarChart ? mGraph...
[ "@", "Override", "protected", "void", "onSizeChanged", "(", "int", "w", ",", "int", "h", ",", "int", "oldw", ",", "int", "oldh", ")", "{", "super", ".", "onSizeChanged", "(", "w", ",", "h", ",", "oldw", ",", "oldh", ")", ";", "// Check if the current g...
This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0. @param w Current width of this view. @param h Current height of this view. @param oldw Old width of this view. @param oldh Old height of this view.
[ "This", "is", "called", "during", "layout", "when", "the", "size", "of", "this", "view", "has", "changed", ".", "If", "you", "were", "just", "added", "to", "the", "view", "hierarchy", "you", "re", "called", "with", "the", "old", "values", "of", "0", "....
train
https://github.com/blackfizz/EazeGraph/blob/ce5e68ecc70e154f83bbb2fcce1a970db125c1e6/EazeGraphLibrary/src/main/java/org/eazegraph/lib/charts/BaseBarChart.java#L240-L250
spring-projects/spring-hateoas
src/main/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsTemplate.java
HalFormsTemplate.andContentType
public HalFormsTemplate andContentType(MediaType mediaType) { """ Returns a new {@link HalFormsTemplate} with the given {@link MediaType} added as content type. @param mediaType must not be {@literal null}. @return """ Assert.notNull(mediaType, "Media type must not be null!"); List<MediaType> content...
java
public HalFormsTemplate andContentType(MediaType mediaType) { Assert.notNull(mediaType, "Media type must not be null!"); List<MediaType> contentTypes = new ArrayList<>(this.contentTypes); contentTypes.add(mediaType); return new HalFormsTemplate(title, httpMethod, properties, contentTypes); }
[ "public", "HalFormsTemplate", "andContentType", "(", "MediaType", "mediaType", ")", "{", "Assert", ".", "notNull", "(", "mediaType", ",", "\"Media type must not be null!\"", ")", ";", "List", "<", "MediaType", ">", "contentTypes", "=", "new", "ArrayList", "<>", "(...
Returns a new {@link HalFormsTemplate} with the given {@link MediaType} added as content type. @param mediaType must not be {@literal null}. @return
[ "Returns", "a", "new", "{", "@link", "HalFormsTemplate", "}", "with", "the", "given", "{", "@link", "MediaType", "}", "added", "as", "content", "type", "." ]
train
https://github.com/spring-projects/spring-hateoas/blob/70ebff9309f086cd8d6a97daf67e0dc215c87d9c/src/main/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsTemplate.java#L99-L107
UrielCh/ovh-java-sdk
ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java
ApiOvhOrder.catalog_formatted_privateCloudDC_GET
public net.minidev.ovh.api.order.catalog.privatecloud.OvhCatalog catalog_formatted_privateCloudDC_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException { """ Retrieve information of Private Cloud Dedicated Cloud catalog REST: GET /order/catalog/formatted/privateCloudDC @param ovhSubsidiary [required] Subs...
java
public net.minidev.ovh.api.order.catalog.privatecloud.OvhCatalog catalog_formatted_privateCloudDC_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException { String qPath = "/order/catalog/formatted/privateCloudDC"; StringBuilder sb = path(qPath); query(sb, "ovhSubsidiary", ovhSubsidiary); String resp = execN(...
[ "public", "net", ".", "minidev", ".", "ovh", ".", "api", ".", "order", ".", "catalog", ".", "privatecloud", ".", "OvhCatalog", "catalog_formatted_privateCloudDC_GET", "(", "OvhOvhSubsidiaryEnum", "ovhSubsidiary", ")", "throws", "IOException", "{", "String", "qPath",...
Retrieve information of Private Cloud Dedicated Cloud catalog REST: GET /order/catalog/formatted/privateCloudDC @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog API beta
[ "Retrieve", "information", "of", "Private", "Cloud", "Dedicated", "Cloud", "catalog" ]
train
https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java#L7331-L7337
alrocar/POIProxy
es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/DescribeService.java
DescribeService.getRequestForParam
public String getRequestForParam(List<Param> optionalParam, ServiceParams params) { """ returns the URL to request given an array of optional params. Usually if optionalParam contains a {@link Param} of type {@link Param#QUERY} then this method will return the url of the {@link RequestType} of type {@link Descr...
java
public String getRequestForParam(List<Param> optionalParam, ServiceParams params) { String url; ArrayList<String> requestParams; RequestType requestType; this.setType(DescribeService.BROWSE_TYPE); requestType = getRequestTypes().get(DescribeService.BROWSE_TYPE); if (optionalParam == null) { this.setTyp...
[ "public", "String", "getRequestForParam", "(", "List", "<", "Param", ">", "optionalParam", ",", "ServiceParams", "params", ")", "{", "String", "url", ";", "ArrayList", "<", "String", ">", "requestParams", ";", "RequestType", "requestType", ";", "this", ".", "s...
returns the URL to request given an array of optional params. Usually if optionalParam contains a {@link Param} of type {@link Param#QUERY} then this method will return the url of the {@link RequestType} of type {@link DescribeService#SEARCH_TYPE} otherwise will return the url of {@link DescribeService#BROWSE_TYPE} @p...
[ "returns", "the", "URL", "to", "request", "given", "an", "array", "of", "optional", "params", ".", "Usually", "if", "optionalParam", "contains", "a", "{", "@link", "Param", "}", "of", "type", "{", "@link", "Param#QUERY", "}", "then", "this", "method", "wil...
train
https://github.com/alrocar/POIProxy/blob/e1dabe738a862478b2580e90d5fc4209a2997868/es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/DescribeService.java#L223-L257
fcrepo3/fcrepo
fcrepo-client/fcrepo-client-admin/src/main/java/org/fcrepo/client/batch/BatchModify.java
BatchModify.openLog
private static void openLog(String rootName) throws Exception { """ Initializes the log file for writing. @param rootName The name of the root element for the xml log file. @throws Exception If any type of error occurs in trying to open the log file for writing. """ s_rootName = rootName; ...
java
private static void openLog(String rootName) throws Exception { s_rootName = rootName; String fileName = s_rootName + "-" + System.currentTimeMillis() + ".xml"; File outFile; String fedoraHome = Constants.FEDORA_HOME; if (fedoraHome == null) { // to cu...
[ "private", "static", "void", "openLog", "(", "String", "rootName", ")", "throws", "Exception", "{", "s_rootName", "=", "rootName", ";", "String", "fileName", "=", "s_rootName", "+", "\"-\"", "+", "System", ".", "currentTimeMillis", "(", ")", "+", "\".xml\"", ...
Initializes the log file for writing. @param rootName The name of the root element for the xml log file. @throws Exception If any type of error occurs in trying to open the log file for writing.
[ "Initializes", "the", "log", "file", "for", "writing", "." ]
train
https://github.com/fcrepo3/fcrepo/blob/37df51b9b857fd12c6ab8269820d406c3c4ad774/fcrepo-client/fcrepo-client-admin/src/main/java/org/fcrepo/client/batch/BatchModify.java#L250-L273
google/closure-templates
java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java
GenJsCodeVisitor.genParamTypeChecks
@CheckReturnValue protected Statement genParamTypeChecks(TemplateNode node, String alias) { """ Generate code to verify the runtime types of the input params. Also typecasts the input parameters and assigns them to local variables for use in the template. @param node the template node. """ ImmutableL...
java
@CheckReturnValue protected Statement genParamTypeChecks(TemplateNode node, String alias) { ImmutableList.Builder<Statement> declarations = ImmutableList.builder(); for (TemplateParam param : node.getAllParams()) { String paramName = param.name(); SoyType paramType = param.type(); CodeChunk....
[ "@", "CheckReturnValue", "protected", "Statement", "genParamTypeChecks", "(", "TemplateNode", "node", ",", "String", "alias", ")", "{", "ImmutableList", ".", "Builder", "<", "Statement", ">", "declarations", "=", "ImmutableList", ".", "builder", "(", ")", ";", "...
Generate code to verify the runtime types of the input params. Also typecasts the input parameters and assigns them to local variables for use in the template. @param node the template node.
[ "Generate", "code", "to", "verify", "the", "runtime", "types", "of", "the", "input", "params", ".", "Also", "typecasts", "the", "input", "parameters", "and", "assigns", "them", "to", "local", "variables", "for", "use", "in", "the", "template", "." ]
train
https://github.com/google/closure-templates/blob/cc61e1dff70ae97f24f417a57410081bc498bd56/java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java#L1557-L1610
google/gson
gson/src/main/java/com/google/gson/TypeAdapter.java
TypeAdapter.toJson
public final void toJson(Writer out, T value) throws IOException { """ Converts {@code value} to a JSON document and writes it to {@code out}. Unlike Gson's similar {@link Gson#toJson(JsonElement, Appendable) toJson} method, this write is strict. Create a {@link JsonWriter#setLenient(boolean) lenient} {@code Js...
java
public final void toJson(Writer out, T value) throws IOException { JsonWriter writer = new JsonWriter(out); write(writer, value); }
[ "public", "final", "void", "toJson", "(", "Writer", "out", ",", "T", "value", ")", "throws", "IOException", "{", "JsonWriter", "writer", "=", "new", "JsonWriter", "(", "out", ")", ";", "write", "(", "writer", ",", "value", ")", ";", "}" ]
Converts {@code value} to a JSON document and writes it to {@code out}. Unlike Gson's similar {@link Gson#toJson(JsonElement, Appendable) toJson} method, this write is strict. Create a {@link JsonWriter#setLenient(boolean) lenient} {@code JsonWriter} and call {@link #write(com.google.gson.stream.JsonWriter, Object)} fo...
[ "Converts", "{", "@code", "value", "}", "to", "a", "JSON", "document", "and", "writes", "it", "to", "{", "@code", "out", "}", ".", "Unlike", "Gson", "s", "similar", "{", "@link", "Gson#toJson", "(", "JsonElement", "Appendable", ")", "toJson", "}", "metho...
train
https://github.com/google/gson/blob/63ee47cb642c8018e5cddd639aa2be143220ad4b/gson/src/main/java/com/google/gson/TypeAdapter.java#L140-L143
liferay/com-liferay-commerce
commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java
CommerceCountryPersistenceImpl.findByG_S_A
@Override public List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active, int start, int end) { """ Returns a range of all the commerce countries where groupId = &#63; and shippingAllowed = &#63; and active = &#63;. <p> Useful when paginating results. Returns a maximum of <co...
java
@Override public List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active, int start, int end) { return findByG_S_A(groupId, shippingAllowed, active, start, end, null); }
[ "@", "Override", "public", "List", "<", "CommerceCountry", ">", "findByG_S_A", "(", "long", "groupId", ",", "boolean", "shippingAllowed", ",", "boolean", "active", ",", "int", "start", ",", "int", "end", ")", "{", "return", "findByG_S_A", "(", "groupId", ","...
Returns a range of all the commerce countries where groupId = &#63; and shippingAllowed = &#63; and active = &#63;. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>...
[ "Returns", "a", "range", "of", "all", "the", "commerce", "countries", "where", "groupId", "=", "&#63", ";", "and", "shippingAllowed", "=", "&#63", ";", "and", "active", "=", "&#63", ";", "." ]
train
https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java#L3654-L3658
marklogic/marklogic-sesame
marklogic-sesame/src/main/java/com/marklogic/semantics/sesame/client/MarkLogicClient.java
MarkLogicClient.sendAdd
public void sendAdd(String baseURI, Resource subject, URI predicate, Value object, Resource... contexts) throws MarkLogicSesameException { """ add single triple, if cache is enabled will add triple to cache model @param baseURI @param subject @param predicate @param object @param contexts """ if (WRIT...
java
public void sendAdd(String baseURI, Resource subject, URI predicate, Value object, Resource... contexts) throws MarkLogicSesameException { if (WRITE_CACHE_ENABLED) { timerWriteCache.add(subject, predicate, object, contexts); } else { getClient().performAdd(baseURI, (Resource) skolemize(subject), (URI) skolemi...
[ "public", "void", "sendAdd", "(", "String", "baseURI", ",", "Resource", "subject", ",", "URI", "predicate", ",", "Value", "object", ",", "Resource", "...", "contexts", ")", "throws", "MarkLogicSesameException", "{", "if", "(", "WRITE_CACHE_ENABLED", ")", "{", ...
add single triple, if cache is enabled will add triple to cache model @param baseURI @param subject @param predicate @param object @param contexts
[ "add", "single", "triple", "if", "cache", "is", "enabled", "will", "add", "triple", "to", "cache", "model" ]
train
https://github.com/marklogic/marklogic-sesame/blob/d5b668ed2b3d5e90c9f1d5096012813c272062a2/marklogic-sesame/src/main/java/com/marklogic/semantics/sesame/client/MarkLogicClient.java#L340-L346
JoanZapata/android-pdfview
android-pdfview/src/main/java/com/joanzapata/pdfview/util/DragPinchListener.java
DragPinchListener.isClick
private boolean isClick(MotionEvent upEvent, float xDown, float yDown, float xUp, float yUp) { """ Test if a MotionEvent with the given start and end offsets can be considered as a "click". @param upEvent The final finger-up event. @param xDown The x-offset of the down event. @param yDown The y-offset of t...
java
private boolean isClick(MotionEvent upEvent, float xDown, float yDown, float xUp, float yUp) { if (upEvent == null) return false; long time = upEvent.getEventTime() - upEvent.getDownTime(); float distance = PointF.length( // xDown - xUp, // yDown - yUp); ...
[ "private", "boolean", "isClick", "(", "MotionEvent", "upEvent", ",", "float", "xDown", ",", "float", "yDown", ",", "float", "xUp", ",", "float", "yUp", ")", "{", "if", "(", "upEvent", "==", "null", ")", "return", "false", ";", "long", "time", "=", "upE...
Test if a MotionEvent with the given start and end offsets can be considered as a "click". @param upEvent The final finger-up event. @param xDown The x-offset of the down event. @param yDown The y-offset of the down event. @param xUp The x-offset of the up event. @param yUp The y-offset of the up event. @re...
[ "Test", "if", "a", "MotionEvent", "with", "the", "given", "start", "and", "end", "offsets", "can", "be", "considered", "as", "a", "click", "." ]
train
https://github.com/JoanZapata/android-pdfview/blob/8f239bb91ab56ff3066739dc44bccf8b1753b0ba/android-pdfview/src/main/java/com/joanzapata/pdfview/util/DragPinchListener.java#L274-L281
Stratio/stratio-cassandra
src/java/org/apache/cassandra/cql3/MultiColumnRelation.java
MultiColumnRelation.createSingleMarkerInRelation
public static MultiColumnRelation createSingleMarkerInRelation(List<ColumnIdentifier.Raw> entities, Tuples.INRaw inMarker) { """ Creates a multi-column IN relation with a marker for the IN values. For example: "SELECT ... WHERE (a, b) IN ?" @param entities the columns on the LHS of the relation @param inMarker ...
java
public static MultiColumnRelation createSingleMarkerInRelation(List<ColumnIdentifier.Raw> entities, Tuples.INRaw inMarker) { return new MultiColumnRelation(entities, Operator.IN, null, null, inMarker); }
[ "public", "static", "MultiColumnRelation", "createSingleMarkerInRelation", "(", "List", "<", "ColumnIdentifier", ".", "Raw", ">", "entities", ",", "Tuples", ".", "INRaw", "inMarker", ")", "{", "return", "new", "MultiColumnRelation", "(", "entities", ",", "Operator",...
Creates a multi-column IN relation with a marker for the IN values. For example: "SELECT ... WHERE (a, b) IN ?" @param entities the columns on the LHS of the relation @param inMarker a single IN marker
[ "Creates", "a", "multi", "-", "column", "IN", "relation", "with", "a", "marker", "for", "the", "IN", "values", ".", "For", "example", ":", "SELECT", "...", "WHERE", "(", "a", "b", ")", "IN", "?" ]
train
https://github.com/Stratio/stratio-cassandra/blob/f6416b43ad5309083349ad56266450fa8c6a2106/src/java/org/apache/cassandra/cql3/MultiColumnRelation.java#L82-L85
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/ObjectDataTypesInner.java
ObjectDataTypesInner.listFieldsByTypeAsync
public Observable<List<TypeFieldInner>> listFieldsByTypeAsync(String resourceGroupName, String automationAccountName, String typeName) { """ Retrieve a list of fields of a given type across all accessible modules. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name o...
java
public Observable<List<TypeFieldInner>> listFieldsByTypeAsync(String resourceGroupName, String automationAccountName, String typeName) { return listFieldsByTypeWithServiceResponseAsync(resourceGroupName, automationAccountName, typeName).map(new Func1<ServiceResponse<List<TypeFieldInner>>, List<TypeFieldInner>>(...
[ "public", "Observable", "<", "List", "<", "TypeFieldInner", ">", ">", "listFieldsByTypeAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "String", "typeName", ")", "{", "return", "listFieldsByTypeWithServiceResponseAsync", "(", "re...
Retrieve a list of fields of a given type across all accessible modules. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param typeName The name of type. @throws IllegalArgumentException thrown if parameters fail the validation @return the obs...
[ "Retrieve", "a", "list", "of", "fields", "of", "a", "given", "type", "across", "all", "accessible", "modules", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/ObjectDataTypesInner.java#L206-L213
jhy/jsoup
src/main/java/org/jsoup/safety/Whitelist.java
Whitelist.addAttributes
public Whitelist addAttributes(String tag, String... attributes) { """ Add a list of allowed attributes to a tag. (If an attribute is not allowed on an element, it will be removed.) <p> E.g.: <code>addAttributes("a", "href", "class")</code> allows <code>href</code> and <code>class</code> attributes on <code>a</...
java
public Whitelist addAttributes(String tag, String... attributes) { Validate.notEmpty(tag); Validate.notNull(attributes); Validate.isTrue(attributes.length > 0, "No attribute names supplied."); TagName tagName = TagName.valueOf(tag); tagNames.add(tagName); Set<AttributeKe...
[ "public", "Whitelist", "addAttributes", "(", "String", "tag", ",", "String", "...", "attributes", ")", "{", "Validate", ".", "notEmpty", "(", "tag", ")", ";", "Validate", ".", "notNull", "(", "attributes", ")", ";", "Validate", ".", "isTrue", "(", "attribu...
Add a list of allowed attributes to a tag. (If an attribute is not allowed on an element, it will be removed.) <p> E.g.: <code>addAttributes("a", "href", "class")</code> allows <code>href</code> and <code>class</code> attributes on <code>a</code> tags. </p> <p> To make an attribute valid for <b>all tags</b>, use the ps...
[ "Add", "a", "list", "of", "allowed", "attributes", "to", "a", "tag", ".", "(", "If", "an", "attribute", "is", "not", "allowed", "on", "an", "element", "it", "will", "be", "removed", ".", ")", "<p", ">", "E", ".", "g", ".", ":", "<code", ">", "add...
train
https://github.com/jhy/jsoup/blob/68ff8cbe7ad847059737a09c567a501a7f1d251f/src/main/java/org/jsoup/safety/Whitelist.java#L253-L272
spotbugs/spotbugs
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/deref/UnconditionalValueDerefSet.java
UnconditionalValueDerefSet.addDeref
public void addDeref(ValueNumber vn, Location location) { """ Mark a value as being dereferenced at given Location. @param vn the value @param location the Location """ if (UnconditionalValueDerefAnalysis.DEBUG) { System.out.println("Adding dereference of " + vn + " to # " + System.id...
java
public void addDeref(ValueNumber vn, Location location) { if (UnconditionalValueDerefAnalysis.DEBUG) { System.out.println("Adding dereference of " + vn + " to # " + System.identityHashCode(this) + " @ " + location); } valueNumbersUnconditionallyDereferenced.set(vn.getNumber()); ...
[ "public", "void", "addDeref", "(", "ValueNumber", "vn", ",", "Location", "location", ")", "{", "if", "(", "UnconditionalValueDerefAnalysis", ".", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"Adding dereference of \"", "+", "vn", "+", "\" to...
Mark a value as being dereferenced at given Location. @param vn the value @param location the Location
[ "Mark", "a", "value", "as", "being", "dereferenced", "at", "given", "Location", "." ]
train
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/deref/UnconditionalValueDerefSet.java#L244-L252
GoogleCloudPlatform/bigdata-interop
gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/auth/GcsDelegationTokens.java
GcsDelegationTokens.extractIdentifier
public static DelegationTokenIdentifier extractIdentifier( final Token<? extends DelegationTokenIdentifier> token) throws IOException { """ From a token, get the session token identifier. @param token token to process @return the session token identifier @throws IOException failure to validate/read data...
java
public static DelegationTokenIdentifier extractIdentifier( final Token<? extends DelegationTokenIdentifier> token) throws IOException { checkArgument(token != null, "null token"); DelegationTokenIdentifier identifier; // harden up decode beyond what Token does itself try { identifier = token...
[ "public", "static", "DelegationTokenIdentifier", "extractIdentifier", "(", "final", "Token", "<", "?", "extends", "DelegationTokenIdentifier", ">", "token", ")", "throws", "IOException", "{", "checkArgument", "(", "token", "!=", "null", ",", "\"null token\"", ")", "...
From a token, get the session token identifier. @param token token to process @return the session token identifier @throws IOException failure to validate/read data encoded in identifier. @throws IllegalArgumentException if the token isn't an GCP session token
[ "From", "a", "token", "get", "the", "session", "token", "identifier", "." ]
train
https://github.com/GoogleCloudPlatform/bigdata-interop/blob/918d91c80a63e36046edb28972a5c65d3326a858/gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/auth/GcsDelegationTokens.java#L232-L251
elastic/elasticsearch-hadoop
mr/src/main/java/org/elasticsearch/hadoop/rest/InitializationUtils.java
InitializationUtils.discoverClusterInfo
public static ClusterInfo discoverClusterInfo(Settings settings, Log log) { """ Retrieves the Elasticsearch cluster name and version from the settings, or, if they should be missing, creates a bootstrap client and obtains their values. """ ClusterName remoteClusterName = null; EsMajorVersion r...
java
public static ClusterInfo discoverClusterInfo(Settings settings, Log log) { ClusterName remoteClusterName = null; EsMajorVersion remoteVersion = null; String clusterName = settings.getProperty(InternalConfigurationOptions.INTERNAL_ES_CLUSTER_NAME); String clusterUUID = settings.getProper...
[ "public", "static", "ClusterInfo", "discoverClusterInfo", "(", "Settings", "settings", ",", "Log", "log", ")", "{", "ClusterName", "remoteClusterName", "=", "null", ";", "EsMajorVersion", "remoteVersion", "=", "null", ";", "String", "clusterName", "=", "settings", ...
Retrieves the Elasticsearch cluster name and version from the settings, or, if they should be missing, creates a bootstrap client and obtains their values.
[ "Retrieves", "the", "Elasticsearch", "cluster", "name", "and", "version", "from", "the", "settings", "or", "if", "they", "should", "be", "missing", "creates", "a", "bootstrap", "client", "and", "obtains", "their", "values", "." ]
train
https://github.com/elastic/elasticsearch-hadoop/blob/f3acaba268ff96efae8eb946088c748c777c22cc/mr/src/main/java/org/elasticsearch/hadoop/rest/InitializationUtils.java#L311-L346
JM-Lab/utils-elasticsearch
src/main/java/kr/jm/utils/elasticsearch/JMElasticsearchSearchAndCount.java
JMElasticsearchSearchAndCount.searchAll
public SearchResponse searchAll(String index, String type) { """ Search all search response. @param index the index @param type the type @return the search response """ return searchAll(JMArrays.buildArray(index), type); }
java
public SearchResponse searchAll(String index, String type) { return searchAll(JMArrays.buildArray(index), type); }
[ "public", "SearchResponse", "searchAll", "(", "String", "index", ",", "String", "type", ")", "{", "return", "searchAll", "(", "JMArrays", ".", "buildArray", "(", "index", ")", ",", "type", ")", ";", "}" ]
Search all search response. @param index the index @param type the type @return the search response
[ "Search", "all", "search", "response", "." ]
train
https://github.com/JM-Lab/utils-elasticsearch/blob/6ccec90e1e51d65d2af5efbb6d7b9f9bad90e638/src/main/java/kr/jm/utils/elasticsearch/JMElasticsearchSearchAndCount.java#L495-L497
chhh/MSFTBX
MSFileToolbox/src/main/java/umich/ms/util/jaxb/JaxbUtils.java
JaxbUtils.unmarshal
public static <T> T unmarshal(Class<T> cl, Reader r) throws JAXBException { """ Convert the contents of a Reader to an object of a given class. @param cl Type of object @param r Reader to be read @return Object of the given type """ return unmarshal(cl, new StreamSource(r)); }
java
public static <T> T unmarshal(Class<T> cl, Reader r) throws JAXBException { return unmarshal(cl, new StreamSource(r)); }
[ "public", "static", "<", "T", ">", "T", "unmarshal", "(", "Class", "<", "T", ">", "cl", ",", "Reader", "r", ")", "throws", "JAXBException", "{", "return", "unmarshal", "(", "cl", ",", "new", "StreamSource", "(", "r", ")", ")", ";", "}" ]
Convert the contents of a Reader to an object of a given class. @param cl Type of object @param r Reader to be read @return Object of the given type
[ "Convert", "the", "contents", "of", "a", "Reader", "to", "an", "object", "of", "a", "given", "class", "." ]
train
https://github.com/chhh/MSFTBX/blob/e53ae6be982e2de3123292be7d5297715bec70bb/MSFileToolbox/src/main/java/umich/ms/util/jaxb/JaxbUtils.java#L264-L266
ops4j/org.ops4j.pax.wicket
service/src/main/java/org/ops4j/pax/wicket/spi/support/BundleInjectionProviderHelper.java
BundleInjectionProviderHelper.setApplicationName
public final void setApplicationName(String applicationName) { """ Sets the application nane. @param applicationName a {@link java.lang.String} object. """ synchronized (lock) { if (applicationName == null) { serviceProperties.remove(APPLICATION_NAME); bun...
java
public final void setApplicationName(String applicationName) { synchronized (lock) { if (applicationName == null) { serviceProperties.remove(APPLICATION_NAME); bundleAnalysingComponentInstantiationListener = null; } else { serviceProperties...
[ "public", "final", "void", "setApplicationName", "(", "String", "applicationName", ")", "{", "synchronized", "(", "lock", ")", "{", "if", "(", "applicationName", "==", "null", ")", "{", "serviceProperties", ".", "remove", "(", "APPLICATION_NAME", ")", ";", "bu...
Sets the application nane. @param applicationName a {@link java.lang.String} object.
[ "Sets", "the", "application", "nane", "." ]
train
https://github.com/ops4j/org.ops4j.pax.wicket/blob/ef7cb4bdf918e9e61ec69789b9c690567616faa9/service/src/main/java/org/ops4j/pax/wicket/spi/support/BundleInjectionProviderHelper.java#L116-L131
Netflix/Hystrix
hystrix-contrib/hystrix-javanica/src/main/java/com/netflix/hystrix/contrib/javanica/command/CommandExecutor.java
CommandExecutor.execute
public static Object execute(HystrixInvokable invokable, ExecutionType executionType, MetaHolder metaHolder) throws RuntimeException { """ Calls a method of {@link HystrixExecutable} in accordance with specified execution type. @param invokable {@link HystrixInvokable} @param metaHolder {@link MetaHolder} @r...
java
public static Object execute(HystrixInvokable invokable, ExecutionType executionType, MetaHolder metaHolder) throws RuntimeException { Validate.notNull(invokable); Validate.notNull(metaHolder); switch (executionType) { case SYNCHRONOUS: { return castToExecutable(invo...
[ "public", "static", "Object", "execute", "(", "HystrixInvokable", "invokable", ",", "ExecutionType", "executionType", ",", "MetaHolder", "metaHolder", ")", "throws", "RuntimeException", "{", "Validate", ".", "notNull", "(", "invokable", ")", ";", "Validate", ".", ...
Calls a method of {@link HystrixExecutable} in accordance with specified execution type. @param invokable {@link HystrixInvokable} @param metaHolder {@link MetaHolder} @return the result of invocation of specific method. @throws RuntimeException
[ "Calls", "a", "method", "of", "{", "@link", "HystrixExecutable", "}", "in", "accordance", "with", "specified", "execution", "type", "." ]
train
https://github.com/Netflix/Hystrix/blob/3cb21589895e9f8f87cfcdbc9d96d9f63d48b848/hystrix-contrib/hystrix-javanica/src/main/java/com/netflix/hystrix/contrib/javanica/command/CommandExecutor.java#L46-L69
Atmosphere/wasync
wasync/src/main/java/org/atmosphere/wasync/util/TypeResolver.java
TypeResolver.resolveArgument
public static <T, I extends T> Class<?> resolveArgument(Class<I> initialType, Class<T> targetType) { """ Returns the raw class representing the type argument for the {@code targetType} resolved upwards from the {@code initialType}. If no arguments can be resolved then {@code Unknown.class} is returned. @param...
java
public static <T, I extends T> Class<?> resolveArgument(Class<I> initialType, Class<T> targetType) { return resolveArgument(resolveGenericType(initialType, targetType), initialType); }
[ "public", "static", "<", "T", ",", "I", "extends", "T", ">", "Class", "<", "?", ">", "resolveArgument", "(", "Class", "<", "I", ">", "initialType", ",", "Class", "<", "T", ">", "targetType", ")", "{", "return", "resolveArgument", "(", "resolveGenericType...
Returns the raw class representing the type argument for the {@code targetType} resolved upwards from the {@code initialType}. If no arguments can be resolved then {@code Unknown.class} is returned. @param initialType to resolve upwards from @param targetType to resolve arguments for @return type argument for {@code i...
[ "Returns", "the", "raw", "class", "representing", "the", "type", "argument", "for", "the", "{", "@code", "targetType", "}", "resolved", "upwards", "from", "the", "{", "@code", "initialType", "}", ".", "If", "no", "arguments", "can", "be", "resolved", "then",...
train
https://github.com/Atmosphere/wasync/blob/0146828b2f5138d4cbb4872fcbfe7d6e1887ac14/wasync/src/main/java/org/atmosphere/wasync/util/TypeResolver.java#L94-L96
radkovo/jStyleParser
src/main/java/cz/vutbr/web/domassign/DeclarationTransformerImpl.java
DeclarationTransformerImpl.genericTermLength
protected <T extends CSSProperty> boolean genericTermLength(Term<?> term, String propertyName, T lengthIdentification, ValueRange range, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { """ Converts term into TermLength and stores values and types in maps @param <T> CSSProperty @param...
java
protected <T extends CSSProperty> boolean genericTermLength(Term<?> term, String propertyName, T lengthIdentification, ValueRange range, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (term instanceof TermInteger && ((TermInteger) term).getUnit().equals(TermNumber.Unit.none)) { ...
[ "protected", "<", "T", "extends", "CSSProperty", ">", "boolean", "genericTermLength", "(", "Term", "<", "?", ">", "term", ",", "String", "propertyName", ",", "T", "lengthIdentification", ",", "ValueRange", "range", ",", "Map", "<", "String", ",", "CSSProperty"...
Converts term into TermLength and stores values and types in maps @param <T> CSSProperty @param term Term to be parsed @param propertyName How to store colorIdentificiton @param lengthIdentification What to store under propertyName @param properties Map to store property types @param values Map to store property value...
[ "Converts", "term", "into", "TermLength", "and", "stores", "values", "and", "types", "in", "maps" ]
train
https://github.com/radkovo/jStyleParser/blob/8ab049ac6866aa52c4d7deee25c9e294e7191957/src/main/java/cz/vutbr/web/domassign/DeclarationTransformerImpl.java#L337-L356
arnaudroger/SimpleFlatMapper
sfm-map/src/main/java/org/simpleflatmapper/map/mapper/MapperBuilder.java
MapperBuilder.addMapping
public final B addMapping(String column, int index, final ColumnDefinition<K, ?> columnDefinition) { """ add a new mapping to the specified property with the specified index, specified property definition and an undefined type. @param column the property name @param index the property inde...
java
public final B addMapping(String column, int index, final ColumnDefinition<K, ?> columnDefinition) { return addMapping(key(column, index), columnDefinition); }
[ "public", "final", "B", "addMapping", "(", "String", "column", ",", "int", "index", ",", "final", "ColumnDefinition", "<", "K", ",", "?", ">", "columnDefinition", ")", "{", "return", "addMapping", "(", "key", "(", "column", ",", "index", ")", ",", "colum...
add a new mapping to the specified property with the specified index, specified property definition and an undefined type. @param column the property name @param index the property index @param columnDefinition the property definition @return the current builder
[ "add", "a", "new", "mapping", "to", "the", "specified", "property", "with", "the", "specified", "index", "specified", "property", "definition", "and", "an", "undefined", "type", "." ]
train
https://github.com/arnaudroger/SimpleFlatMapper/blob/93435438c18f26c87963d5e0f3ebf0f264dcd8c2/sfm-map/src/main/java/org/simpleflatmapper/map/mapper/MapperBuilder.java#L111-L113
qiniu/java-sdk
src/main/java/com/qiniu/storage/UploadManager.java
UploadManager.put
public Response put(File file, String key, String token, StringMap params, String mime, boolean checkCrc) throws QiniuException { """ 上传文件 @param file 上传的文件对象 @param key 上传文件保存的文件名 @param token 上传凭证 @param mime 指定文件mimetype @param checkCrc 是否验证crc32 """ ch...
java
public Response put(File file, String key, String token, StringMap params, String mime, boolean checkCrc) throws QiniuException { checkArgs(key, null, file, token); if (mime == null) { mime = Client.DefaultMime; } params = filterParam(params); ...
[ "public", "Response", "put", "(", "File", "file", ",", "String", "key", ",", "String", "token", ",", "StringMap", "params", ",", "String", "mime", ",", "boolean", "checkCrc", ")", "throws", "QiniuException", "{", "checkArgs", "(", "key", ",", "null", ",", ...
上传文件 @param file 上传的文件对象 @param key 上传文件保存的文件名 @param token 上传凭证 @param mime 指定文件mimetype @param checkCrc 是否验证crc32
[ "上传文件" ]
train
https://github.com/qiniu/java-sdk/blob/6c05f3fb718403a496c725b048e9241f80171499/src/main/java/com/qiniu/storage/UploadManager.java#L198-L213
apache/incubator-heron
heron/spi/src/java/org/apache/heron/spi/statemgr/SchedulerStateManagerAdaptor.java
SchedulerStateManagerAdaptor.getTMasterLocation
public TopologyMaster.TMasterLocation getTMasterLocation(String topologyName) { """ Get the tmaster location for the given topology @return TMasterLocation """ return awaitResult(delegate.getTMasterLocation(null, topologyName)); }
java
public TopologyMaster.TMasterLocation getTMasterLocation(String topologyName) { return awaitResult(delegate.getTMasterLocation(null, topologyName)); }
[ "public", "TopologyMaster", ".", "TMasterLocation", "getTMasterLocation", "(", "String", "topologyName", ")", "{", "return", "awaitResult", "(", "delegate", ".", "getTMasterLocation", "(", "null", ",", "topologyName", ")", ")", ";", "}" ]
Get the tmaster location for the given topology @return TMasterLocation
[ "Get", "the", "tmaster", "location", "for", "the", "given", "topology" ]
train
https://github.com/apache/incubator-heron/blob/776abe2b5a45b93a0eb957fd65cbc149d901a92a/heron/spi/src/java/org/apache/heron/spi/statemgr/SchedulerStateManagerAdaptor.java#L247-L249
openengsb/openengsb
components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/EntryFactory.java
EntryFactory.javaObject
public static Entry javaObject(String classname, String constructorArgument, Dn baseDn) { """ Returns an {@link Entry} whose Dn is baseDn followed by classname as Rdn. The attribute type of the Rdn is javaClassName. The constructorArgument is treated as an optional description as explained in {@link #namedDescri...
java
public static Entry javaObject(String classname, String constructorArgument, Dn baseDn) { Dn dn = LdapUtils.concatDn(SchemaConstants.JAVA_CLASS_NAME_ATTRIBUTE, classname, baseDn); Entry entry = new DefaultEntry(dn); try { entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, SchemaConsta...
[ "public", "static", "Entry", "javaObject", "(", "String", "classname", ",", "String", "constructorArgument", ",", "Dn", "baseDn", ")", "{", "Dn", "dn", "=", "LdapUtils", ".", "concatDn", "(", "SchemaConstants", ".", "JAVA_CLASS_NAME_ATTRIBUTE", ",", "classname", ...
Returns an {@link Entry} whose Dn is baseDn followed by classname as Rdn. The attribute type of the Rdn is javaClassName. The constructorArgument is treated as an optional description as explained in {@link #namedDescriptiveObject(String, String, Dn)}.
[ "Returns", "an", "{" ]
train
https://github.com/openengsb/openengsb/blob/d39058000707f617cd405629f9bc7f17da7b414a/components/services/src/main/java/org/openengsb/core/services/internal/security/ldap/EntryFactory.java#L90-L101
adorsys/hbci4java-adorsys
src/main/java/org/kapott/hbci/protocol/Message.java
Message.setMsgSizeValue
private void setMsgSizeValue(int value, boolean allowOverwrite) { """ setzen des feldes "nachrichtengroesse" im nachrichtenkopf einer nachricht """ String absPath = getPath() + ".MsgHead.msgsize"; SyntaxElement msgsizeElem = getElement(absPath); if (msgsizeElem == null) thr...
java
private void setMsgSizeValue(int value, boolean allowOverwrite) { String absPath = getPath() + ".MsgHead.msgsize"; SyntaxElement msgsizeElem = getElement(absPath); if (msgsizeElem == null) throw new NoSuchPathException(absPath); int size = ((DE) msgsizeElem).getMinSize(); ...
[ "private", "void", "setMsgSizeValue", "(", "int", "value", ",", "boolean", "allowOverwrite", ")", "{", "String", "absPath", "=", "getPath", "(", ")", "+", "\".MsgHead.msgsize\"", ";", "SyntaxElement", "msgsizeElem", "=", "getElement", "(", "absPath", ")", ";", ...
setzen des feldes "nachrichtengroesse" im nachrichtenkopf einer nachricht
[ "setzen", "des", "feldes", "nachrichtengroesse", "im", "nachrichtenkopf", "einer", "nachricht" ]
train
https://github.com/adorsys/hbci4java-adorsys/blob/5e24f7e429d6b555e1d993196b4cf1adda6433cf/src/main/java/org/kapott/hbci/protocol/Message.java#L96-L109
Stratio/cassandra-lucene-index
builder/src/main/java/com/stratio/cassandra/lucene/builder/Builder.java
Builder.geoBBox
public static GeoBBoxCondition geoBBox(String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) { """ Re...
java
public static GeoBBoxCondition geoBBox(String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) { ret...
[ "public", "static", "GeoBBoxCondition", "geoBBox", "(", "String", "field", ",", "double", "minLatitude", ",", "double", "maxLatitude", ",", "double", "minLongitude", ",", "double", "maxLongitude", ")", "{", "return", "new", "GeoBBoxCondition", "(", "field", ",", ...
Returns a new {@link GeoBBoxCondition} with the specified field name and bounding box coordinates. @param field the name of the field to be matched @param minLongitude the minimum accepted longitude @param maxLongitude the maximum accepted longitude @param minLatitude the minimum accepted latitude @param maxLatitude t...
[ "Returns", "a", "new", "{", "@link", "GeoBBoxCondition", "}", "with", "the", "specified", "field", "name", "and", "bounding", "box", "coordinates", "." ]
train
https://github.com/Stratio/cassandra-lucene-index/blob/a94a4d9af6c25d40e1108729974c35c27c54441c/builder/src/main/java/com/stratio/cassandra/lucene/builder/Builder.java#L439-L445
alkacon/opencms-core
src/org/opencms/db/CmsSecurityManager.java
CmsSecurityManager.deleteRelationsForResource
public void deleteRelationsForResource(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) throws CmsException { """ Deletes all relations for the given resource matching the given filter.<p> @param context the current user context @param resource the resource to delete the relations...
java
public void deleteRelationsForResource(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkOfflineProject(dbc); checkPermissions(dbc, resource, CmsPermissionS...
[ "public", "void", "deleteRelationsForResource", "(", "CmsRequestContext", "context", ",", "CmsResource", "resource", ",", "CmsRelationFilter", "filter", ")", "throws", "CmsException", "{", "CmsDbContext", "dbc", "=", "m_dbContextFactory", ".", "getDbContext", "(", "cont...
Deletes all relations for the given resource matching the given filter.<p> @param context the current user context @param resource the resource to delete the relations for @param filter the filter to use for deletion @throws CmsException if something goes wrong @see #addRelationToResource(CmsRequestContext, CmsResou...
[ "Deletes", "all", "relations", "for", "the", "given", "resource", "matching", "the", "given", "filter", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsSecurityManager.java#L1543-L1559
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/DataSourceService.java
DataSourceService.parseIsolationLevel
private static final void parseIsolationLevel(NavigableMap<String, Object> wProps, String vendorImplClassName) { """ Utility method that converts transaction isolation level constant names to the corresponding int value. @param wProps WAS data source properties, including the configured isolationLevel property...
java
private static final void parseIsolationLevel(NavigableMap<String, Object> wProps, String vendorImplClassName) { // Convert isolationLevel constant name to integer Object isolationLevel = wProps.get(DataSourceDef.isolationLevel.name()); if (isolationLevel instanceof String) { isolati...
[ "private", "static", "final", "void", "parseIsolationLevel", "(", "NavigableMap", "<", "String", ",", "Object", ">", "wProps", ",", "String", "vendorImplClassName", ")", "{", "// Convert isolationLevel constant name to integer", "Object", "isolationLevel", "=", "wProps", ...
Utility method that converts transaction isolation level constant names to the corresponding int value. @param wProps WAS data source properties, including the configured isolationLevel property. @param vendorImplClassName name of the vendor data source or driver implementation class. @return Integer transaction isola...
[ "Utility", "method", "that", "converts", "transaction", "isolation", "level", "constant", "names", "to", "the", "corresponding", "int", "value", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/DataSourceService.java#L871-L885
blinkfox/zealot
src/main/java/com/blinkfox/zealot/core/builder/XmlSqlInfoBuilder.java
XmlSqlInfoBuilder.buildNormalSql
public SqlInfo buildNormalSql(String fieldText, String valueText, String suffix) { """ 构建普通类型查询的sqlInfo信息. @param fieldText 字段文本值 @param valueText 参数值 @param suffix 后缀,如:大于、等于、小于等 @return 返回SqlInfo信息 """ Object value = ParseHelper.parseExpressWithException(valueText, context); return super....
java
public SqlInfo buildNormalSql(String fieldText, String valueText, String suffix) { Object value = ParseHelper.parseExpressWithException(valueText, context); return super.buildNormalSql(fieldText, value, suffix); }
[ "public", "SqlInfo", "buildNormalSql", "(", "String", "fieldText", ",", "String", "valueText", ",", "String", "suffix", ")", "{", "Object", "value", "=", "ParseHelper", ".", "parseExpressWithException", "(", "valueText", ",", "context", ")", ";", "return", "supe...
构建普通类型查询的sqlInfo信息. @param fieldText 字段文本值 @param valueText 参数值 @param suffix 后缀,如:大于、等于、小于等 @return 返回SqlInfo信息
[ "构建普通类型查询的sqlInfo信息", "." ]
train
https://github.com/blinkfox/zealot/blob/21b00fa3e4ed42188eef3116d494e112e7a4194c/src/main/java/com/blinkfox/zealot/core/builder/XmlSqlInfoBuilder.java#L42-L45
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java
VirtualHost.removeWebApplication
public void removeWebApplication(DeployedModule deployedModule, String contextRoot) { """ begin 280649 SERVICE: clean up separation of core and shell WASCC.web.webcontainer : reuse with other VirtualHost impls. """ //boolean restarting = deployedModule.isRestarting(); if (TraceComponent.i...
java
public void removeWebApplication(DeployedModule deployedModule, String contextRoot) { //boolean restarting = deployedModule.isRestarting(); if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.logp(Level.FINE, CLASS_NAME, "removeWebApplication", "ContextRoot : " ...
[ "public", "void", "removeWebApplication", "(", "DeployedModule", "deployedModule", ",", "String", "contextRoot", ")", "{", "//boolean restarting = deployedModule.isRestarting();", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isL...
begin 280649 SERVICE: clean up separation of core and shell WASCC.web.webcontainer : reuse with other VirtualHost impls.
[ "begin", "280649", "SERVICE", ":", "clean", "up", "separation", "of", "core", "and", "shell", "WASCC", ".", "web", ".", "webcontainer", ":", "reuse", "with", "other", "VirtualHost", "impls", "." ]
train
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java#L247-L276
eclipse/xtext-lib
org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/IterableExtensions.java
IterableExtensions.flatMap
@Pure public static <T, R> Iterable<R> flatMap(Iterable<T> original, Function1<? super T, ? extends Iterable<R>> transformation) { """ Returns an iterable that performs the given {@code transformation} for each element of {@code original} when requested. The mapping is done lazily. That is, subsequent iterations...
java
@Pure public static <T, R> Iterable<R> flatMap(Iterable<T> original, Function1<? super T, ? extends Iterable<R>> transformation) { return flatten(map(original, transformation)); }
[ "@", "Pure", "public", "static", "<", "T", ",", "R", ">", "Iterable", "<", "R", ">", "flatMap", "(", "Iterable", "<", "T", ">", "original", ",", "Function1", "<", "?", "super", "T", ",", "?", "extends", "Iterable", "<", "R", ">", ">", "transformati...
Returns an iterable that performs the given {@code transformation} for each element of {@code original} when requested. The mapping is done lazily. That is, subsequent iterations of the elements in the iterable will repeatedly apply the transformation. <p> The transformation maps each element to an iterable, and all re...
[ "Returns", "an", "iterable", "that", "performs", "the", "given", "{", "@code", "transformation", "}", "for", "each", "element", "of", "{", "@code", "original", "}", "when", "requested", ".", "The", "mapping", "is", "done", "lazily", ".", "That", "is", "sub...
train
https://github.com/eclipse/xtext-lib/blob/7063572e1f1bd713a3aa53bdf3a8dc60e25c169a/org.eclipse.xtext.xbase.lib/src/org/eclipse/xtext/xbase/lib/IterableExtensions.java#L366-L369
watchrabbit/rabbit-executor
src/main/java/com/watchrabbit/executor/command/ExecutorCommand.java
ExecutorCommand.observe
public <V> void observe(Callable<V> callable, CheckedConsumer<V> onSuccess, Consumer<Exception> onFailure) { """ Invokes runnable asynchronously with respecting circuit logic and cache logic if configured. If callable completed with success then the {@code onSuccess} method is called. If callable throws exceptio...
java
public <V> void observe(Callable<V> callable, CheckedConsumer<V> onSuccess, Consumer<Exception> onFailure) { service.executeAsynchronously(wrap(callable, onSuccess, onFailure), config); }
[ "public", "<", "V", ">", "void", "observe", "(", "Callable", "<", "V", ">", "callable", ",", "CheckedConsumer", "<", "V", ">", "onSuccess", ",", "Consumer", "<", "Exception", ">", "onFailure", ")", "{", "service", ".", "executeAsynchronously", "(", "wrap",...
Invokes runnable asynchronously with respecting circuit logic and cache logic if configured. If callable completed with success then the {@code onSuccess} method is called. If callable throws exception then {@code onFailure} method is called @param <V> type of returned value by callable @param callable method fired by...
[ "Invokes", "runnable", "asynchronously", "with", "respecting", "circuit", "logic", "and", "cache", "logic", "if", "configured", ".", "If", "callable", "completed", "with", "success", "then", "the", "{", "@code", "onSuccess", "}", "method", "is", "called", ".", ...
train
https://github.com/watchrabbit/rabbit-executor/blob/fe6674b78e6ab464babcecb6e1f100edec3c9966/src/main/java/com/watchrabbit/executor/command/ExecutorCommand.java#L186-L188
flow/commons
src/main/java/com/flowpowered/commons/LogicUtil.java
LogicUtil.bothNullOrEqual
public static boolean bothNullOrEqual(Object a, Object b) { """ Checks if object a and b are both null or are equal @return if both null or equal """ return (a == null || b == null) ? (a == b) : a.equals(b); }
java
public static boolean bothNullOrEqual(Object a, Object b) { return (a == null || b == null) ? (a == b) : a.equals(b); }
[ "public", "static", "boolean", "bothNullOrEqual", "(", "Object", "a", ",", "Object", "b", ")", "{", "return", "(", "a", "==", "null", "||", "b", "==", "null", ")", "?", "(", "a", "==", "b", ")", ":", "a", ".", "equals", "(", "b", ")", ";", "}" ...
Checks if object a and b are both null or are equal @return if both null or equal
[ "Checks", "if", "object", "a", "and", "b", "are", "both", "null", "or", "are", "equal" ]
train
https://github.com/flow/commons/blob/0690efdac06fd728fcd7e9cf10f2b1319379c45b/src/main/java/com/flowpowered/commons/LogicUtil.java#L72-L74
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/concurrent/Executors.java
Executors.newFixedThreadPool
public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { """ Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue, using the provided ThreadFactory to create new threads when needed. At any point, at most {@code nThreads} thread...
java
public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { return new ThreadPoolExecutor(nThreads, nThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(), ...
[ "public", "static", "ExecutorService", "newFixedThreadPool", "(", "int", "nThreads", ",", "ThreadFactory", "threadFactory", ")", "{", "return", "new", "ThreadPoolExecutor", "(", "nThreads", ",", "nThreads", ",", "0L", ",", "TimeUnit", ".", "MILLISECONDS", ",", "ne...
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue, using the provided ThreadFactory to create new threads when needed. At any point, at most {@code nThreads} threads will be active processing tasks. If additional tasks are submitted when all threads are active, they wi...
[ "Creates", "a", "thread", "pool", "that", "reuses", "a", "fixed", "number", "of", "threads", "operating", "off", "a", "shared", "unbounded", "queue", "using", "the", "provided", "ThreadFactory", "to", "create", "new", "threads", "when", "needed", ".", "At", ...
train
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/concurrent/Executors.java#L154-L159
jbundle/jbundle
base/remote/src/main/java/org/jbundle/base/remote/db/TableSession.java
TableSession.setProperty
public void setProperty(String strProperty, String strValue) { """ Set a table property. @param strProperty The key to set. @param strValue The value to set it to. """ Record record = this.getMainRecord(); BaseTable table = record.getTable(); table.setProperty(strProperty, strValue); ...
java
public void setProperty(String strProperty, String strValue) { Record record = this.getMainRecord(); BaseTable table = record.getTable(); table.setProperty(strProperty, strValue); }
[ "public", "void", "setProperty", "(", "String", "strProperty", ",", "String", "strValue", ")", "{", "Record", "record", "=", "this", ".", "getMainRecord", "(", ")", ";", "BaseTable", "table", "=", "record", ".", "getTable", "(", ")", ";", "table", ".", "...
Set a table property. @param strProperty The key to set. @param strValue The value to set it to.
[ "Set", "a", "table", "property", "." ]
train
https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/remote/src/main/java/org/jbundle/base/remote/db/TableSession.java#L786-L791
b3dgs/lionengine
lionengine-game/src/main/java/com/b3dgs/lionengine/game/feature/tile/map/pathfinding/PathfindableModel.java
PathfindableModel.updateObjectId
private void updateObjectId(int lastStep, int nextStep) { """ Update reference by updating map object Id. @param lastStep The last step. @param nextStep The next step. """ final int max = getMaxStep(); if (nextStep < max) { // Next step is free if (checkObjec...
java
private void updateObjectId(int lastStep, int nextStep) { final int max = getMaxStep(); if (nextStep < max) { // Next step is free if (checkObjectId(path.getX(nextStep), path.getY(nextStep))) { takeNextStep(lastStep, nextStep); ...
[ "private", "void", "updateObjectId", "(", "int", "lastStep", ",", "int", "nextStep", ")", "{", "final", "int", "max", "=", "getMaxStep", "(", ")", ";", "if", "(", "nextStep", "<", "max", ")", "{", "// Next step is free", "if", "(", "checkObjectId", "(", ...
Update reference by updating map object Id. @param lastStep The last step. @param nextStep The next step.
[ "Update", "reference", "by", "updating", "map", "object", "Id", "." ]
train
https://github.com/b3dgs/lionengine/blob/cac3d5578532cf11724a737b9f09e71bf9995ab2/lionengine-game/src/main/java/com/b3dgs/lionengine/game/feature/tile/map/pathfinding/PathfindableModel.java#L209-L224
nohana/Amalgam
amalgam/src/main/java/com/amalgam/view/ViewUtils.java
ViewUtils.toggleVisibility
public static void toggleVisibility(View view, int hidingPolicy) { """ Toggle visibility of a {@link android.view.View}. Status of invisible is applied by the parameter of hidingPolicy. @param view to toggle @param hidingPolicy {@link android.view.View#INVISIBLE} or {@link android.view.View#GONE} """ ...
java
public static void toggleVisibility(View view, int hidingPolicy) { int current = view.getVisibility(); view.setVisibility(current == View.VISIBLE ? hidingPolicy : View.VISIBLE); }
[ "public", "static", "void", "toggleVisibility", "(", "View", "view", ",", "int", "hidingPolicy", ")", "{", "int", "current", "=", "view", ".", "getVisibility", "(", ")", ";", "view", ".", "setVisibility", "(", "current", "==", "View", ".", "VISIBLE", "?", ...
Toggle visibility of a {@link android.view.View}. Status of invisible is applied by the parameter of hidingPolicy. @param view to toggle @param hidingPolicy {@link android.view.View#INVISIBLE} or {@link android.view.View#GONE}
[ "Toggle", "visibility", "of", "a", "{" ]
train
https://github.com/nohana/Amalgam/blob/57809ddbfe7897e979cf507982ce0b3aa5e0ed8a/amalgam/src/main/java/com/amalgam/view/ViewUtils.java#L123-L126
lucee/Lucee
core/src/main/java/lucee/runtime/reflection/Invoker.java
Invoker.setProperty
public static void setProperty(Object o, String prop, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException { """ assign a value to a visible property of a object @param o Object to assign value to his property @param prop name of property @param value Value to assign @t...
java
public static void setProperty(Object o, String prop, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException { getFieldIgnoreCase(o.getClass(), prop).set(o, value); }
[ "public", "static", "void", "setProperty", "(", "Object", "o", ",", "String", "prop", ",", "Object", "value", ")", "throws", "IllegalArgumentException", ",", "IllegalAccessException", ",", "NoSuchFieldException", "{", "getFieldIgnoreCase", "(", "o", ".", "getClass",...
assign a value to a visible property of a object @param o Object to assign value to his property @param prop name of property @param value Value to assign @throws IllegalArgumentException @throws IllegalAccessException @throws NoSuchFieldException
[ "assign", "a", "value", "to", "a", "visible", "property", "of", "a", "object" ]
train
https://github.com/lucee/Lucee/blob/29b153fc4e126e5edb97da937f2ee2e231b87593/core/src/main/java/lucee/runtime/reflection/Invoker.java#L376-L378
KyoriPowered/text
api/src/main/java/net/kyori/text/KeybindComponent.java
KeybindComponent.of
public static KeybindComponent of(final @NonNull String keybind, final @Nullable TextColor color) { """ Creates a keybind component with content, and optional color. @param keybind the keybind @param color the color @return the keybind component """ return of(keybind, color, Collections.emptySet()); ...
java
public static KeybindComponent of(final @NonNull String keybind, final @Nullable TextColor color) { return of(keybind, color, Collections.emptySet()); }
[ "public", "static", "KeybindComponent", "of", "(", "final", "@", "NonNull", "String", "keybind", ",", "final", "@", "Nullable", "TextColor", "color", ")", "{", "return", "of", "(", "keybind", ",", "color", ",", "Collections", ".", "emptySet", "(", ")", ")"...
Creates a keybind component with content, and optional color. @param keybind the keybind @param color the color @return the keybind component
[ "Creates", "a", "keybind", "component", "with", "content", "and", "optional", "color", "." ]
train
https://github.com/KyoriPowered/text/blob/4496c593bf89e8fb036dd6efe26f8ac60f7655c9/api/src/main/java/net/kyori/text/KeybindComponent.java#L85-L87
j-a-w-r/jawr-main-repo
jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/renderer/CSSHTMLBundleLinkRenderer.java
CSSHTMLBundleLinkRenderer.renderIeCssBundleLink
private void renderIeCssBundleLink(BundleRendererContext ctx, Writer out, BundlePath bundlePath) throws IOException { """ Renders the CSS link to retrieve the CSS bundle for IE in debug mode. @param ctx the context @param out the writer @param bundle the bundle @throws IOException if an IOException oc...
java
private void renderIeCssBundleLink(BundleRendererContext ctx, Writer out, BundlePath bundlePath) throws IOException { Random randomSeed = new Random(); int random = randomSeed.nextInt(); if (random < 0) random *= -1; String path = GeneratorRegistry.IE_CSS_GENERATOR_PREFIX + GeneratorRegistry.PREFIX_SEPARA...
[ "private", "void", "renderIeCssBundleLink", "(", "BundleRendererContext", "ctx", ",", "Writer", "out", ",", "BundlePath", "bundlePath", ")", "throws", "IOException", "{", "Random", "randomSeed", "=", "new", "Random", "(", ")", ";", "int", "random", "=", "randomS...
Renders the CSS link to retrieve the CSS bundle for IE in debug mode. @param ctx the context @param out the writer @param bundle the bundle @throws IOException if an IOException occurs
[ "Renders", "the", "CSS", "link", "to", "retrieve", "the", "CSS", "bundle", "for", "IE", "in", "debug", "mode", "." ]
train
https://github.com/j-a-w-r/jawr-main-repo/blob/5381f6acf461cd2502593c67a77bd6ef9eab848d/jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/renderer/CSSHTMLBundleLinkRenderer.java#L350-L360
hypercube1024/firefly
firefly-common/src/main/java/com/firefly/utils/StringUtils.java
StringUtils.unicodeToString
public static String unicodeToString(String s) { """ Convert a string that is unicode form to a normal string. @param s The unicode form of a string, e.g. "\\u8001\\u9A6C" @return Normal string """ StringBuilder sb = new StringBuilder(); StringTokenizer st = new StringTokenizer(s, "\\u");...
java
public static String unicodeToString(String s) { StringBuilder sb = new StringBuilder(); StringTokenizer st = new StringTokenizer(s, "\\u"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (token.length() > 4) { sb.append((char) Intege...
[ "public", "static", "String", "unicodeToString", "(", "String", "s", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "StringTokenizer", "st", "=", "new", "StringTokenizer", "(", "s", ",", "\"\\\\u\"", ")", ";", "while", "(", "s...
Convert a string that is unicode form to a normal string. @param s The unicode form of a string, e.g. "\\u8001\\u9A6C" @return Normal string
[ "Convert", "a", "string", "that", "is", "unicode", "form", "to", "a", "normal", "string", "." ]
train
https://github.com/hypercube1024/firefly/blob/ed3fc75b7c54a65b1e7d8141d01b49144bb423a3/firefly-common/src/main/java/com/firefly/utils/StringUtils.java#L656-L669
Azure/azure-sdk-for-java
labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/EnvironmentsInner.java
EnvironmentsInner.beginStart
public void beginStart(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName) { """ Starts an environment by starting all resources inside the environment. This operation can take a while to complete. @param resourceGroupName The name of the resou...
java
public void beginStart(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName) { beginStartWithServiceResponseAsync(resourceGroupName, labAccountName, labName, environmentSettingName, environmentName).toBlocking().single().body(); }
[ "public", "void", "beginStart", "(", "String", "resourceGroupName", ",", "String", "labAccountName", ",", "String", "labName", ",", "String", "environmentSettingName", ",", "String", "environmentName", ")", "{", "beginStartWithServiceResponseAsync", "(", "resourceGroupNam...
Starts an environment by starting all resources inside the environment. This operation can take a while to complete. @param resourceGroupName The name of the resource group. @param labAccountName The name of the lab Account. @param labName The name of the lab. @param environmentSettingName The name of the environment ...
[ "Starts", "an", "environment", "by", "starting", "all", "resources", "inside", "the", "environment", ".", "This", "operation", "can", "take", "a", "while", "to", "complete", "." ]
train
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/EnvironmentsInner.java#L1479-L1481
alkacon/opencms-core
src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java
CmsDefaultXmlContentHandler.initFormatters
protected void initFormatters(Element root, CmsXmlContentDefinition contentDefinition) { """ Initializes the formatters for this content handler.<p> @param root the "formatters" element from the appinfo node of the XML content definition @param contentDefinition the content definition the formatters belong to ...
java
protected void initFormatters(Element root, CmsXmlContentDefinition contentDefinition) { // reading the include resources common for all formatters Iterator<Element> itFormatter = CmsXmlGenericWrapper.elementIterator(root, APPINFO_FORMATTER); while (itFormatter.hasNext()) { // itera...
[ "protected", "void", "initFormatters", "(", "Element", "root", ",", "CmsXmlContentDefinition", "contentDefinition", ")", "{", "// reading the include resources common for all formatters", "Iterator", "<", "Element", ">", "itFormatter", "=", "CmsXmlGenericWrapper", ".", "eleme...
Initializes the formatters for this content handler.<p> @param root the "formatters" element from the appinfo node of the XML content definition @param contentDefinition the content definition the formatters belong to
[ "Initializes", "the", "formatters", "for", "this", "content", "handler", ".", "<p", ">" ]
train
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java#L2625-L2652
unbescape/unbescape
src/main/java/org/unbescape/properties/PropertiesEscape.java
PropertiesEscape.escapePropertiesKeyMinimal
public static void escapePropertiesKeyMinimal(final Reader reader, final Writer writer) throws IOException { """ <p> Perform a Java Properties Key level 1 (only basic set) <strong>escape</strong> operation on a <tt>Reader</tt> input, writing results to a <tt>Writer</tt>. </p> <p> <em>Level 1</em> ...
java
public static void escapePropertiesKeyMinimal(final Reader reader, final Writer writer) throws IOException { escapePropertiesKey(reader, writer, PropertiesKeyEscapeLevel.LEVEL_1_BASIC_ESCAPE_SET); }
[ "public", "static", "void", "escapePropertiesKeyMinimal", "(", "final", "Reader", "reader", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "escapePropertiesKey", "(", "reader", ",", "writer", ",", "PropertiesKeyEscapeLevel", ".", "LEVEL_1_BASIC_E...
<p> Perform a Java Properties Key level 1 (only basic set) <strong>escape</strong> operation on a <tt>Reader</tt> input, writing results to a <tt>Writer</tt>. </p> <p> <em>Level 1</em> means this method will only escape the Java Properties Key basic escape set: </p> <ul> <li>The <em>Single Escape Characters</em>: <tt>&...
[ "<p", ">", "Perform", "a", "Java", "Properties", "Key", "level", "1", "(", "only", "basic", "set", ")", "<strong", ">", "escape<", "/", "strong", ">", "operation", "on", "a", "<tt", ">", "Reader<", "/", "tt", ">", "input", "writing", "results", "to", ...
train
https://github.com/unbescape/unbescape/blob/ec5435fb3508c2eed25d8165dc27ded2602cae13/src/main/java/org/unbescape/properties/PropertiesEscape.java#L1082-L1085