id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
147,900
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/Strings.java
Strings.toArray
public static String[] toArray(Collection<String> coll) { String[] ar; ar = new String[coll.size()]; coll.toArray(ar); return ar; }
java
public static String[] toArray(Collection<String> coll) { String[] ar; ar = new String[coll.size()]; coll.toArray(ar); return ar; }
[ "public", "static", "String", "[", "]", "toArray", "(", "Collection", "<", "String", ">", "coll", ")", "{", "String", "[", "]", "ar", ";", "ar", "=", "new", "String", "[", "coll", ".", "size", "(", ")", "]", ";", "coll", ".", "toArray", "(", "ar"...
Turns a list of Strings into an array. @param coll collection of Strings @return never null
[ "Turns", "a", "list", "of", "Strings", "into", "an", "array", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/Strings.java#L282-L288
147,901
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/Strings.java
Strings.escape
public static String escape(String str) { int i, max; StringBuilder result; char c; max = str.length(); for (i = 0; i < max; i++) { if (str.charAt(i) < 32) { break; } } if (i == max) { return str; } ...
java
public static String escape(String str) { int i, max; StringBuilder result; char c; max = str.length(); for (i = 0; i < max; i++) { if (str.charAt(i) < 32) { break; } } if (i == max) { return str; } ...
[ "public", "static", "String", "escape", "(", "String", "str", ")", "{", "int", "i", ",", "max", ";", "StringBuilder", "result", ";", "char", "c", ";", "max", "=", "str", ".", "length", "(", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "m...
escape Strings as in Java String literals
[ "escape", "Strings", "as", "in", "Java", "String", "literals" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/Strings.java#L344-L383
147,902
opendatatrentino/s-match
src/main/java/it/unitn/disi/common/components/Configurable.java
Configurable.getComponentProperties
protected static Properties getComponentProperties(String componentPrefix, Properties properties) { Properties result = new Properties(); if (null != componentPrefix) { int componentPrefixLength = componentPrefix.length(); for (String propertyName : properties.stringPropertyN...
java
protected static Properties getComponentProperties(String componentPrefix, Properties properties) { Properties result = new Properties(); if (null != componentPrefix) { int componentPrefixLength = componentPrefix.length(); for (String propertyName : properties.stringPropertyN...
[ "protected", "static", "Properties", "getComponentProperties", "(", "String", "componentPrefix", ",", "Properties", "properties", ")", "{", "Properties", "result", "=", "new", "Properties", "(", ")", ";", "if", "(", "null", "!=", "componentPrefix", ")", "{", "in...
Returns only properties that start with componentPrefix, removing this prefix. @param componentPrefix a prefix to search @param properties properties @return properties that start with componentPrefix
[ "Returns", "only", "properties", "that", "start", "with", "componentPrefix", "removing", "this", "prefix", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/common/components/Configurable.java#L61-L72
147,903
opendatatrentino/s-match
src/main/java/it/unitn/disi/common/components/Configurable.java
Configurable.makeComponentPrefix
protected static String makeComponentPrefix(String tokenName, String className) { String simpleClassName = className; if (null != className) { int lastDotIdx = className.lastIndexOf("."); if (lastDotIdx > -1) { simpleClassName = className.substring(lastDotIdx...
java
protected static String makeComponentPrefix(String tokenName, String className) { String simpleClassName = className; if (null != className) { int lastDotIdx = className.lastIndexOf("."); if (lastDotIdx > -1) { simpleClassName = className.substring(lastDotIdx...
[ "protected", "static", "String", "makeComponentPrefix", "(", "String", "tokenName", ",", "String", "className", ")", "{", "String", "simpleClassName", "=", "className", ";", "if", "(", "null", "!=", "className", ")", "{", "int", "lastDotIdx", "=", "className", ...
Creates a prefix for component to search for its properties in properties. @param tokenName a component configuration key @param className a component class name @return prefix
[ "Creates", "a", "prefix", "for", "component", "to", "search", "for", "its", "properties", "in", "properties", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/common/components/Configurable.java#L81-L90
147,904
opendatatrentino/s-match
src/main/java/it/unitn/disi/common/components/Configurable.java
Configurable.loadProperties
public static Properties loadProperties(String filename) throws ConfigurableException { log.info("Loading properties from " + filename); Properties properties = new Properties(); FileInputStream input = null; try { input = new FileInputStream(filename); prop...
java
public static Properties loadProperties(String filename) throws ConfigurableException { log.info("Loading properties from " + filename); Properties properties = new Properties(); FileInputStream input = null; try { input = new FileInputStream(filename); prop...
[ "public", "static", "Properties", "loadProperties", "(", "String", "filename", ")", "throws", "ConfigurableException", "{", "log", ".", "info", "(", "\"Loading properties from \"", "+", "filename", ")", ";", "Properties", "properties", "=", "new", "Properties", "(",...
Loads the properties from the properties file. @param filename the properties file name @return Properties instance @throws ConfigurableException ConfigurableException
[ "Loads", "the", "properties", "from", "the", "properties", "file", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/common/components/Configurable.java#L192-L215
147,905
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNSemanticGlossComparison.java
WNSemanticGlossComparison.match
public char match(ISense source, ISense target) throws MatcherLibraryException { int Equals = 0; int moreGeneral = 0; int lessGeneral = 0; int Opposite = 0; String sSynset = source.getGloss(); String tSynset = target.getGloss(); StringTokenizer stSource = n...
java
public char match(ISense source, ISense target) throws MatcherLibraryException { int Equals = 0; int moreGeneral = 0; int lessGeneral = 0; int Opposite = 0; String sSynset = source.getGloss(); String tSynset = target.getGloss(); StringTokenizer stSource = n...
[ "public", "char", "match", "(", "ISense", "source", ",", "ISense", "target", ")", "throws", "MatcherLibraryException", "{", "int", "Equals", "=", "0", ";", "int", "moreGeneral", "=", "0", ";", "int", "lessGeneral", "=", "0", ";", "int", "Opposite", "=", ...
Computes the relations with WordNet semantic gloss matcher. @param source the gloss of source @param target the gloss of target @return less general, more general, equal, opposite or IDK relation
[ "Computes", "the", "relations", "with", "WordNet", "semantic", "gloss", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNSemanticGlossComparison.java#L46-L74
147,906
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/string/Prefix.java
Prefix.match
public char match(String str1, String str2) { invocationCount++; char rel = IMappingElement.IDK; if (str1 == null || str2 == null) { rel = IMappingElement.IDK; } else { if ((str1.length() > 3) && (str2.length() > 3)) { if (str1.startsWith(...
java
public char match(String str1, String str2) { invocationCount++; char rel = IMappingElement.IDK; if (str1 == null || str2 == null) { rel = IMappingElement.IDK; } else { if ((str1.length() > 3) && (str2.length() > 3)) { if (str1.startsWith(...
[ "public", "char", "match", "(", "String", "str1", ",", "String", "str2", ")", "{", "invocationCount", "++", ";", "char", "rel", "=", "IMappingElement", ".", "IDK", ";", "if", "(", "str1", "==", "null", "||", "str2", "==", "null", ")", "{", "rel", "="...
Computes the relation with prefix matcher. @param str1 the source string @param str2 the target string @return synonym, more general, less general or IDK relation
[ "Computes", "the", "relation", "with", "prefix", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/string/Prefix.java#L29-L60
147,907
Avira/couchdoop
src/main/java/com/avira/couchdoop/exp/ExportArgs.java
ExportArgs.getOperation
public static CouchbaseOperation getOperation(Configuration hadoopConfiguration) throws ArgsException { String strCouchbaseOperation = hadoopConfiguration.get(ARG_OPERATION.getPropertyName()); // Default value if (strCouchbaseOperation == null) { return CouchbaseOperation.SET; } try { ...
java
public static CouchbaseOperation getOperation(Configuration hadoopConfiguration) throws ArgsException { String strCouchbaseOperation = hadoopConfiguration.get(ARG_OPERATION.getPropertyName()); // Default value if (strCouchbaseOperation == null) { return CouchbaseOperation.SET; } try { ...
[ "public", "static", "CouchbaseOperation", "getOperation", "(", "Configuration", "hadoopConfiguration", ")", "throws", "ArgsException", "{", "String", "strCouchbaseOperation", "=", "hadoopConfiguration", ".", "get", "(", "ARG_OPERATION", ".", "getPropertyName", "(", ")", ...
Reads Couchbase store operation from the Hadoop configuration type. @param hadoopConfiguration Hadoop Configuration @return Couchbase store operation to be used @throws ArgsException in case of wrong arguments
[ "Reads", "Couchbase", "store", "operation", "from", "the", "Hadoop", "configuration", "type", "." ]
0df7792524d0cf258523c4bc510eb0df8b1132a1
https://github.com/Avira/couchdoop/blob/0df7792524d0cf258523c4bc510eb0df8b1132a1/src/main/java/com/avira/couchdoop/exp/ExportArgs.java#L96-L110
147,908
awltech/org.parallelj
parallelj-core-parent/parallelj-core-aspects/src/main/java/org/parallelj/Executables.java
Executables.attributes
public static Map<String, String> attributes(Object executable) { if (executable == null || !Aspects.hasAspect(PerExecutable.class, executable.getClass())) { return empty; } PerExecutable perExecutable = Aspects.aspectOf(PerExecutable.class, executable.getClass()); if (perExecutable.executabl...
java
public static Map<String, String> attributes(Object executable) { if (executable == null || !Aspects.hasAspect(PerExecutable.class, executable.getClass())) { return empty; } PerExecutable perExecutable = Aspects.aspectOf(PerExecutable.class, executable.getClass()); if (perExecutable.executabl...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "attributes", "(", "Object", "executable", ")", "{", "if", "(", "executable", "==", "null", "||", "!", "Aspects", ".", "hasAspect", "(", "PerExecutable", ".", "class", ",", "executable", ".", ...
Return the values of the attributes @param executable an instance of a class annotated by {@link Program} or by {@link Executable} @return the values of the attributes or an empty map if the parameter is <code>null</code> or if the class is not annotated by {@link Program} or by {@link Executable}
[ "Return", "the", "values", "of", "the", "attributes" ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-core-parent/parallelj-core-aspects/src/main/java/org/parallelj/Executables.java#L120-L135
147,909
awltech/org.parallelj
parallelj-launching-parent/parallelj-launching-api/src/main/java/org/parallelj/launching/transport/jmx/DynamicLegacyProgram.java
DynamicLegacyProgram.buildJobDataMap
protected Map<String, Object> buildJobDataMap(final JmxCommand jmxCommand, final Object[] params) throws MBeanException { final Map<String, Object> jobDataMap = new HashMap<String, Object>(); try { int ind = 0; // Options are before the AdapterArguments for (JmxOption option : JmxOptions.getOptions())...
java
protected Map<String, Object> buildJobDataMap(final JmxCommand jmxCommand, final Object[] params) throws MBeanException { final Map<String, Object> jobDataMap = new HashMap<String, Object>(); try { int ind = 0; // Options are before the AdapterArguments for (JmxOption option : JmxOptions.getOptions())...
[ "protected", "Map", "<", "String", ",", "Object", ">", "buildJobDataMap", "(", "final", "JmxCommand", "jmxCommand", ",", "final", "Object", "[", "]", "params", ")", "throws", "MBeanException", "{", "final", "Map", "<", "String", ",", "Object", ">", "jobDataM...
Initialize the JobDataMap with the Program arguments @param job The JobDetail for the JobDataMap initialization @param params The parameters Objects for the Program @param signature The parameters type @throws MBeanException If an error appends when initializing the JobDataMap
[ "Initialize", "the", "JobDataMap", "with", "the", "Program", "arguments" ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-launching-parent/parallelj-launching-api/src/main/java/org/parallelj/launching/transport/jmx/DynamicLegacyProgram.java#L110-L129
147,910
yfpeng/pengyifan-bioc
src/main/java/com/pengyifan/bioc/BioCRelation.java
BioCRelation.getNode
public Optional<BioCNode> getNode(String role) { return getNodes().stream().filter(n -> n.getRole().equals(role)).findFirst(); }
java
public Optional<BioCNode> getNode(String role) { return getNodes().stream().filter(n -> n.getRole().equals(role)).findFirst(); }
[ "public", "Optional", "<", "BioCNode", ">", "getNode", "(", "String", "role", ")", "{", "return", "getNodes", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "n", "->", "n", ".", "getRole", "(", ")", ".", "equals", "(", "role", ")", ")", "...
Gets the first node based on the role. @param role the role of the node @return node that has the same role
[ "Gets", "the", "first", "node", "based", "on", "the", "role", "." ]
e09cce1969aa598ff89e7957237375715d7a1a3a
https://github.com/yfpeng/pengyifan-bioc/blob/e09cce1969aa598ff89e7957237375715d7a1a3a/src/main/java/com/pengyifan/bioc/BioCRelation.java#L116-L118
147,911
wkgcass/Style
src/main/java/net/cassite/style/util/RegEx.java
RegEx.getMatcher
public Matcher getMatcher(String str) { Matcher m; if (matchers.containsKey(str)) { m = matchers.get(str); } else { m = p.matcher(str); matchers.put(str, m); } return m...
java
public Matcher getMatcher(String str) { Matcher m; if (matchers.containsKey(str)) { m = matchers.get(str); } else { m = p.matcher(str); matchers.put(str, m); } return m...
[ "public", "Matcher", "getMatcher", "(", "String", "str", ")", "{", "Matcher", "m", ";", "if", "(", "matchers", ".", "containsKey", "(", "str", ")", ")", "{", "m", "=", "matchers", ".", "get", "(", "str", ")", ";", "}", "else", "{", "m", "=", "p",...
get matcher of the given string @param str string @return matcher
[ "get", "matcher", "of", "the", "given", "string" ]
db3ea64337251f46f734279480e365293bececbd
https://github.com/wkgcass/Style/blob/db3ea64337251f46f734279480e365293bececbd/src/main/java/net/cassite/style/util/RegEx.java#L111-L120
147,912
wkgcass/Style
src/main/java/net/cassite/style/util/RegEx.java
RegEx.exec
public String[] exec(String toExec) { Matcher m = getMatcher(toExec); if (m.find()) { List<String> list = new ArrayList<>(); int count = m.groupCount(); For(1).to(count).loop(i -> { li...
java
public String[] exec(String toExec) { Matcher m = getMatcher(toExec); if (m.find()) { List<String> list = new ArrayList<>(); int count = m.groupCount(); For(1).to(count).loop(i -> { li...
[ "public", "String", "[", "]", "exec", "(", "String", "toExec", ")", "{", "Matcher", "m", "=", "getMatcher", "(", "toExec", ")", ";", "if", "(", "m", ".", "find", "(", ")", ")", "{", "List", "<", "String", ">", "list", "=", "new", "ArrayList", "<>...
same as JavaScript exec @param toExec the string to exec @return result string array
[ "same", "as", "JavaScript", "exec" ]
db3ea64337251f46f734279480e365293bececbd
https://github.com/wkgcass/Style/blob/db3ea64337251f46f734279480e365293bececbd/src/main/java/net/cassite/style/util/RegEx.java#L140-L152
147,913
ykrasik/jaci
jaci-utils/src/main/java/com/github/ykrasik/jaci/util/trie/Tries.java
Tries.toStringTrie
public static Trie<String> toStringTrie(List<String> words) { final TrieBuilder<String> builder = new TrieBuilder<>(); for (String word : words) { builder.add(word, ""); } return builder.build(); }
java
public static Trie<String> toStringTrie(List<String> words) { final TrieBuilder<String> builder = new TrieBuilder<>(); for (String word : words) { builder.add(word, ""); } return builder.build(); }
[ "public", "static", "Trie", "<", "String", ">", "toStringTrie", "(", "List", "<", "String", ">", "words", ")", "{", "final", "TrieBuilder", "<", "String", ">", "builder", "=", "new", "TrieBuilder", "<>", "(", ")", ";", "for", "(", "String", "word", ":"...
Sometimes a Trie's values aren't important, only the words matter. Convenience method that associates each word with an empty value. @param words Words to put in the Trie. @return A Trie where each word is associated to an empty value.
[ "Sometimes", "a", "Trie", "s", "values", "aren", "t", "important", "only", "the", "words", "matter", ".", "Convenience", "method", "that", "associates", "each", "word", "with", "an", "empty", "value", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-utils/src/main/java/com/github/ykrasik/jaci/util/trie/Tries.java#L59-L65
147,914
mlhartme/sushi
src/main/java/net/oneandone/sushi/fs/http/io/ChunkedOutputStream.java
ChunkedOutputStream.flushBuffer
private void flushBuffer(byte[] append, int ofs, int len) throws IOException { int count; count = pos + len; if (count > 0) { dest.writeAsciiLn(Integer.toHexString(count)); dest.write(buffer, 0, pos); dest.write(append, ofs, len); dest.writeAsciiL...
java
private void flushBuffer(byte[] append, int ofs, int len) throws IOException { int count; count = pos + len; if (count > 0) { dest.writeAsciiLn(Integer.toHexString(count)); dest.write(buffer, 0, pos); dest.write(append, ofs, len); dest.writeAsciiL...
[ "private", "void", "flushBuffer", "(", "byte", "[", "]", "append", ",", "int", "ofs", ",", "int", "len", ")", "throws", "IOException", "{", "int", "count", ";", "count", "=", "pos", "+", "len", ";", "if", "(", "count", ">", "0", ")", "{", "dest", ...
flush buffer and bytes in append
[ "flush", "buffer", "and", "bytes", "in", "append" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/fs/http/io/ChunkedOutputStream.java#L102-L113
147,915
pulse00/Composer-Java-Bindings
java-api/src/main/java/com/dubture/getcomposer/packages/AsyncDownloader.java
AsyncDownloader.download
public int download() { try { //if (url.startsWith("https://packagist.org") || url.startsWith("https://getcomposer.org")) { if (url.startsWith("https://")) { registerSSLContext(client.getBackend()); } final HttpGet httpGet = new HttpGet(url); if (httpGet.isAborted()) { httpGet.abort...
java
public int download() { try { //if (url.startsWith("https://packagist.org") || url.startsWith("https://getcomposer.org")) { if (url.startsWith("https://")) { registerSSLContext(client.getBackend()); } final HttpGet httpGet = new HttpGet(url); if (httpGet.isAborted()) { httpGet.abort...
[ "public", "int", "download", "(", ")", "{", "try", "{", "//if (url.startsWith(\"https://packagist.org\") || url.startsWith(\"https://getcomposer.org\")) {", "if", "(", "url", ".", "startsWith", "(", "\"https://\"", ")", ")", "{", "registerSSLContext", "(", "client", ".", ...
Starts the async download. The returned number is the internal slot for this download transfer, which can be used as parameter in abort to stop this specific transfer. @return slot
[ "Starts", "the", "async", "download", ".", "The", "returned", "number", "is", "the", "internal", "slot", "for", "this", "download", "transfer", "which", "can", "be", "used", "as", "parameter", "in", "abort", "to", "stop", "this", "specific", "transfer", "." ...
0aa572567db37d047a41a57c32ede7c7fd5d4938
https://github.com/pulse00/Composer-Java-Bindings/blob/0aa572567db37d047a41a57c32ede7c7fd5d4938/java-api/src/main/java/com/dubture/getcomposer/packages/AsyncDownloader.java#L61-L117
147,916
pulse00/Composer-Java-Bindings
java-api/src/main/java/com/dubture/getcomposer/packages/AsyncDownloader.java
AsyncDownloader.abort
public void abort(int slot) { try { HttpGet httpGet = httpGets.get(slot); httpGet.abort(); abortListeners(httpGet.getURI().toString()); } catch(Exception e) { log.error(e.getMessage()); } }
java
public void abort(int slot) { try { HttpGet httpGet = httpGets.get(slot); httpGet.abort(); abortListeners(httpGet.getURI().toString()); } catch(Exception e) { log.error(e.getMessage()); } }
[ "public", "void", "abort", "(", "int", "slot", ")", "{", "try", "{", "HttpGet", "httpGet", "=", "httpGets", ".", "get", "(", "slot", ")", ";", "httpGet", ".", "abort", "(", ")", ";", "abortListeners", "(", "httpGet", ".", "getURI", "(", ")", ".", "...
Aborts a transfer at the given slot @param slot
[ "Aborts", "a", "transfer", "at", "the", "given", "slot" ]
0aa572567db37d047a41a57c32ede7c7fd5d4938
https://github.com/pulse00/Composer-Java-Bindings/blob/0aa572567db37d047a41a57c32ede7c7fd5d4938/java-api/src/main/java/com/dubture/getcomposer/packages/AsyncDownloader.java#L154-L162
147,917
awltech/org.parallelj
parallelj-core-parent/parallelj-core-api/src/main/java/org/parallelj/internal/reflect/ElementBuilderFactory.java
ElementBuilderFactory.newBuilders
public static ElementBuilder[] newBuilders(Class<?> type) { List<ElementBuilder> builders = new ArrayList<ElementBuilder>(); for (ElementBuilderFactory factory : loader) { ElementBuilder b = factory.newBuilder(type); if (b != null) { builders.add(b); } } return builders.toArray(new ElementBuilder...
java
public static ElementBuilder[] newBuilders(Class<?> type) { List<ElementBuilder> builders = new ArrayList<ElementBuilder>(); for (ElementBuilderFactory factory : loader) { ElementBuilder b = factory.newBuilder(type); if (b != null) { builders.add(b); } } return builders.toArray(new ElementBuilder...
[ "public", "static", "ElementBuilder", "[", "]", "newBuilders", "(", "Class", "<", "?", ">", "type", ")", "{", "List", "<", "ElementBuilder", ">", "builders", "=", "new", "ArrayList", "<", "ElementBuilder", ">", "(", ")", ";", "for", "(", "ElementBuilderFac...
Return an array of builders that will build one part of the program. @param type the type of the program. @return an array of {@link ElementBuilder} or an empty array if none is found.
[ "Return", "an", "array", "of", "builders", "that", "will", "build", "one", "part", "of", "the", "program", "." ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-core-parent/parallelj-core-api/src/main/java/org/parallelj/internal/reflect/ElementBuilderFactory.java#L66-L77
147,918
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/MatchManager.java
MatchManager.convertWordNetToFlat
private void convertWordNetToFlat(Properties properties) throws SMatchException { InMemoryWordNetBinaryArray.createWordNetCaches(GLOBAL_PREFIX + SENSE_MATCHER_KEY, properties); WordNet.createWordNetCaches(GLOBAL_PREFIX + LINGUISTIC_ORACLE_KEY, properties); }
java
private void convertWordNetToFlat(Properties properties) throws SMatchException { InMemoryWordNetBinaryArray.createWordNetCaches(GLOBAL_PREFIX + SENSE_MATCHER_KEY, properties); WordNet.createWordNetCaches(GLOBAL_PREFIX + LINGUISTIC_ORACLE_KEY, properties); }
[ "private", "void", "convertWordNetToFlat", "(", "Properties", "properties", ")", "throws", "SMatchException", "{", "InMemoryWordNetBinaryArray", ".", "createWordNetCaches", "(", "GLOBAL_PREFIX", "+", "SENSE_MATCHER_KEY", ",", "properties", ")", ";", "WordNet", ".", "cre...
Converts WordNet dictionary to binary format for fast searching. @param properties configuration @throws SMatchException SMatchException
[ "Converts", "WordNet", "dictionary", "to", "binary", "format", "for", "fast", "searching", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/MatchManager.java#L353-L356
147,919
wkgcass/Style
src/main/java/net/cassite/style/aggregation/CollectionFuncSup.java
CollectionFuncSup.add
@SuppressWarnings("unchecked") public <Coll extends CollectionFuncSup<T>> Coll add(T t) { Collection<T> coll = (Collection<T>) iterable; coll.add(t); return (Coll) this; }
java
@SuppressWarnings("unchecked") public <Coll extends CollectionFuncSup<T>> Coll add(T t) { Collection<T> coll = (Collection<T>) iterable; coll.add(t); return (Coll) this; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "Coll", "extends", "CollectionFuncSup", "<", "T", ">", ">", "Coll", "add", "(", "T", "t", ")", "{", "Collection", "<", "T", ">", "coll", "=", "(", "Collection", "<", "T", ">", ")", "i...
a chain to simplify 'add' process <pre> $(collection).add(e1).add(e2).add(e3) </pre> @param t the element to add @return <code>this</code>
[ "a", "chain", "to", "simplify", "add", "process" ]
db3ea64337251f46f734279480e365293bececbd
https://github.com/wkgcass/Style/blob/db3ea64337251f46f734279480e365293bececbd/src/main/java/net/cassite/style/aggregation/CollectionFuncSup.java#L29-L34
147,920
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/Cli.java
Cli.assist
public boolean assist() { // Read the command line and provide assistance for the command line before the caret. final String commandLine = commandLineManager.getCommandLine(); final int caret = commandLineManager.getCaret(); final String commandLineToAssist = commandLine.substring(0, ca...
java
public boolean assist() { // Read the command line and provide assistance for the command line before the caret. final String commandLine = commandLineManager.getCommandLine(); final int caret = commandLineManager.getCaret(); final String commandLineToAssist = commandLine.substring(0, ca...
[ "public", "boolean", "assist", "(", ")", "{", "// Read the command line and provide assistance for the command line before the caret.", "final", "String", "commandLine", "=", "commandLineManager", ".", "getCommandLine", "(", ")", ";", "final", "int", "caret", "=", "commandL...
Provide assistance for the command line. @return {@code true} if assistance could be provided for the command line.
[ "Provide", "assistance", "for", "the", "command", "line", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/Cli.java#L60-L76
147,921
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java
ServiceManagerIndexRdf.listOutputs
@Override public Set<URI> listOutputs(URI operationUri) { if (operationUri == null) { return ImmutableSet.of(); } return ImmutableSet.copyOf(this.opOutputMap.get(operationUri)); }
java
@Override public Set<URI> listOutputs(URI operationUri) { if (operationUri == null) { return ImmutableSet.of(); } return ImmutableSet.copyOf(this.opOutputMap.get(operationUri)); }
[ "@", "Override", "public", "Set", "<", "URI", ">", "listOutputs", "(", "URI", "operationUri", ")", "{", "if", "(", "operationUri", "==", "null", ")", "{", "return", "ImmutableSet", ".", "of", "(", ")", ";", "}", "return", "ImmutableSet", ".", "copyOf", ...
Obtains the list of output URIs for a given Operation @param operationUri the operation URI @return a List of URIs with the outputs of the operation. If no output is provided the List should be empty NOT null.
[ "Obtains", "the", "list", "of", "output", "URIs", "for", "a", "given", "Operation" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java#L155-L162
147,922
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java
ServiceManagerIndexRdf.listOptionalParts
@Override public Set<URI> listOptionalParts(URI messageContent) { if (messageContent == null) { return ImmutableSet.of(); } return ImmutableSet.copyOf(this.messageOptionalPartsMap.get(messageContent)); }
java
@Override public Set<URI> listOptionalParts(URI messageContent) { if (messageContent == null) { return ImmutableSet.of(); } return ImmutableSet.copyOf(this.messageOptionalPartsMap.get(messageContent)); }
[ "@", "Override", "public", "Set", "<", "URI", ">", "listOptionalParts", "(", "URI", "messageContent", ")", "{", "if", "(", "messageContent", "==", "null", ")", "{", "return", "ImmutableSet", ".", "of", "(", ")", ";", "}", "return", "ImmutableSet", ".", "...
Obtains the list of optional parts for a given Message Content @param messageContent the message content URI @return a Set of URIs with the optional parts of the message content. If there are no parts the Set should be empty NOT null.
[ "Obtains", "the", "list", "of", "optional", "parts", "for", "a", "given", "Message", "Content" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java#L206-L213
147,923
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java
ServiceManagerIndexRdf.initialise
private void initialise() { Stopwatch stopwatch = new Stopwatch(); stopwatch.start(); populateCache(); stopwatch.stop(); log.info("Cache populated. Time taken {}", stopwatch); }
java
private void initialise() { Stopwatch stopwatch = new Stopwatch(); stopwatch.start(); populateCache(); stopwatch.stop(); log.info("Cache populated. Time taken {}", stopwatch); }
[ "private", "void", "initialise", "(", ")", "{", "Stopwatch", "stopwatch", "=", "new", "Stopwatch", "(", ")", ";", "stopwatch", ".", "start", "(", ")", ";", "populateCache", "(", ")", ";", "stopwatch", ".", "stop", "(", ")", ";", "log", ".", "info", "...
This method will be called when the server is initialised. If necessary it should take care of updating any indexes on boot time.
[ "This", "method", "will", "be", "called", "when", "the", "server", "is", "initialised", ".", "If", "necessary", "it", "should", "take", "care", "of", "updating", "any", "indexes", "on", "boot", "time", "." ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerIndexRdf.java#L331-L337
147,924
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlIndexedLogicConceptMatcher.java
SparqlIndexedLogicConceptMatcher.handleOntologyCreated
@Subscribe @AllowConcurrentEvents public synchronized void handleOntologyCreated(OntologyCreatedEvent event) { log.info("Processing Ontology Created Event - {}", event.getOntologyUri()); // Obtain the concepts in the ontology uploaded Set<URI> conceptUris = this.manager.getKnowledgeBas...
java
@Subscribe @AllowConcurrentEvents public synchronized void handleOntologyCreated(OntologyCreatedEvent event) { log.info("Processing Ontology Created Event - {}", event.getOntologyUri()); // Obtain the concepts in the ontology uploaded Set<URI> conceptUris = this.manager.getKnowledgeBas...
[ "@", "Subscribe", "@", "AllowConcurrentEvents", "public", "synchronized", "void", "handleOntologyCreated", "(", "OntologyCreatedEvent", "event", ")", "{", "log", ".", "info", "(", "\"Processing Ontology Created Event - {}\"", ",", "event", ".", "getOntologyUri", "(", ")...
A new ontology has been uploaded to the server and we need to update the indexes @param event the actual event that was triggered
[ "A", "new", "ontology", "has", "been", "uploaded", "to", "the", "server", "and", "we", "need", "to", "update", "the", "indexes" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlIndexedLogicConceptMatcher.java#L206-L220
147,925
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlIndexedLogicConceptMatcher.java
SparqlIndexedLogicConceptMatcher.handleOntologyDeleted
@Subscribe @AllowConcurrentEvents public synchronized void handleOntologyDeleted(OntologyDeletedEvent event) { log.info("Processing Ontology Deleted Event - {}", event.getOntologyUri()); // Obtain all concepts in the KB Set<URI> conceptUris = this.manager.getKnowledgeBaseManager().list...
java
@Subscribe @AllowConcurrentEvents public synchronized void handleOntologyDeleted(OntologyDeletedEvent event) { log.info("Processing Ontology Deleted Event - {}", event.getOntologyUri()); // Obtain all concepts in the KB Set<URI> conceptUris = this.manager.getKnowledgeBaseManager().list...
[ "@", "Subscribe", "@", "AllowConcurrentEvents", "public", "synchronized", "void", "handleOntologyDeleted", "(", "OntologyDeletedEvent", "event", ")", "{", "log", ".", "info", "(", "\"Processing Ontology Deleted Event - {}\"", ",", "event", ".", "getOntologyUri", "(", ")...
An ontology has been deleted from the KB and we should thus update the indexes. By the time we want to process this event we won't know any longer which concepts need to be removed unless we keep this somewhere. @param event the ontology deletion event
[ "An", "ontology", "has", "been", "deleted", "from", "the", "KB", "and", "we", "should", "thus", "update", "the", "indexes", ".", "By", "the", "time", "we", "want", "to", "process", "this", "event", "we", "won", "t", "know", "any", "longer", "which", "c...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlIndexedLogicConceptMatcher.java#L228-L253
147,926
ZenHarbinger/l2fprod-properties-editor
src/main/java/com/l2fprod/common/swing/IconPool.java
IconPool.get
public Icon get(String url) { StackTraceElement[] stacks = new Exception().getStackTrace(); try { Class callerClazz = Class.forName(stacks[1].getClassName()); return get(callerClazz.getResource(url)); } catch (ClassNotFoundException e) { throw new RuntimeExcep...
java
public Icon get(String url) { StackTraceElement[] stacks = new Exception().getStackTrace(); try { Class callerClazz = Class.forName(stacks[1].getClassName()); return get(callerClazz.getResource(url)); } catch (ClassNotFoundException e) { throw new RuntimeExcep...
[ "public", "Icon", "get", "(", "String", "url", ")", "{", "StackTraceElement", "[", "]", "stacks", "=", "new", "Exception", "(", ")", ".", "getStackTrace", "(", ")", ";", "try", "{", "Class", "callerClazz", "=", "Class", ".", "forName", "(", "stacks", "...
Gets the icon denoted by url. If url is relative, it is relative to the caller. @param url @return an icon
[ "Gets", "the", "icon", "denoted", "by", "url", ".", "If", "url", "is", "relative", "it", "is", "relative", "to", "the", "caller", "." ]
d9b15c3f0b6ac1d9a2a9d315be073d2a4a419c32
https://github.com/ZenHarbinger/l2fprod-properties-editor/blob/d9b15c3f0b6ac1d9a2a9d315be073d2a4a419c32/src/main/java/com/l2fprod/common/swing/IconPool.java#L50-L58
147,927
synchronoss/cpo-api
cpo-core/src/main/java/org/synchronoss/cpo/jta/CpoBaseXaResource.java
CpoBaseXaResource.closeAssociated
public void closeAssociated() throws XAException { Xid associatedXid = cpoXaStateMap.getXaResourceMap().get(this); if ( associatedXid != null) { close(associatedXid); } }
java
public void closeAssociated() throws XAException { Xid associatedXid = cpoXaStateMap.getXaResourceMap().get(this); if ( associatedXid != null) { close(associatedXid); } }
[ "public", "void", "closeAssociated", "(", ")", "throws", "XAException", "{", "Xid", "associatedXid", "=", "cpoXaStateMap", ".", "getXaResourceMap", "(", ")", ".", "get", "(", "this", ")", ";", "if", "(", "associatedXid", "!=", "null", ")", "{", "close", "(...
Closes the resource associated with this instance @throws XAException
[ "Closes", "the", "resource", "associated", "with", "this", "instance" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-core/src/main/java/org/synchronoss/cpo/jta/CpoBaseXaResource.java#L79-L84
147,928
synchronoss/cpo-api
cpo-core/src/main/java/org/synchronoss/cpo/jta/CpoBaseXaResource.java
CpoBaseXaResource.close
public void close(Xid xid) throws XAException { synchronized (cpoXaStateMap) { CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid); if (cpoXaState == null) throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID"); // close the resource closeResource(cp...
java
public void close(Xid xid) throws XAException { synchronized (cpoXaStateMap) { CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid); if (cpoXaState == null) throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID"); // close the resource closeResource(cp...
[ "public", "void", "close", "(", "Xid", "xid", ")", "throws", "XAException", "{", "synchronized", "(", "cpoXaStateMap", ")", "{", "CpoXaState", "<", "T", ">", "cpoXaState", "=", "cpoXaStateMap", ".", "getXidStateMap", "(", ")", ".", "get", "(", "xid", ")", ...
Closes the resource for the specified xid @param xid of the global transaction @throws XAException
[ "Closes", "the", "resource", "for", "the", "specified", "xid" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-core/src/main/java/org/synchronoss/cpo/jta/CpoBaseXaResource.java#L92-L108
147,929
awltech/org.parallelj
parallelj-core-parent/parallelj-core-api/src/main/java/org/parallelj/internal/kernel/KProcessor.java
KProcessor.execute
public void execute(org.parallelj.mirror.Process process) { if (!(process instanceof KProcess)) { return; } this.execute((KProcess) process); }
java
public void execute(org.parallelj.mirror.Process process) { if (!(process instanceof KProcess)) { return; } this.execute((KProcess) process); }
[ "public", "void", "execute", "(", "org", ".", "parallelj", ".", "mirror", ".", "Process", "process", ")", "{", "if", "(", "!", "(", "process", "instanceof", "KProcess", ")", ")", "{", "return", ";", "}", "this", ".", "execute", "(", "(", "KProcess", ...
Execute a process. @param process the process to execute
[ "Execute", "a", "process", "." ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-core-parent/parallelj-core-api/src/main/java/org/parallelj/internal/kernel/KProcessor.java#L112-L118
147,930
eurekaclinical/aiw-i2b2-etl
src/main/java/edu/emory/cci/aiw/i2b2etl/dest/metadata/conceptid/SimpleConceptId.java
SimpleConceptId.getInstance
public static ConceptId getInstance(String id, Metadata metadata) { List<Object> key = new ArrayList<>(1); key.add(id); ConceptId result = metadata.getFromConceptIdCache(key); if (result != null) { return result; } else { result = new SimpleConceptId(id, m...
java
public static ConceptId getInstance(String id, Metadata metadata) { List<Object> key = new ArrayList<>(1); key.add(id); ConceptId result = metadata.getFromConceptIdCache(key); if (result != null) { return result; } else { result = new SimpleConceptId(id, m...
[ "public", "static", "ConceptId", "getInstance", "(", "String", "id", ",", "Metadata", "metadata", ")", "{", "List", "<", "Object", ">", "key", "=", "new", "ArrayList", "<>", "(", "1", ")", ";", "key", ".", "add", "(", "id", ")", ";", "ConceptId", "re...
Returns a concept propId with the given string identifier. @param id a concept identifier {@link String}. Cannot be <code>null</code>. @return a {@link PropDefConceptId}.
[ "Returns", "a", "concept", "propId", "with", "the", "given", "string", "identifier", "." ]
3eed6bda7755919cb9466d2930723a0f4748341a
https://github.com/eurekaclinical/aiw-i2b2-etl/blob/3eed6bda7755919cb9466d2930723a0f4748341a/src/main/java/edu/emory/cci/aiw/i2b2etl/dest/metadata/conceptid/SimpleConceptId.java#L42-L53
147,931
ykrasik/jaci
jaci-reflection-api/src/main/java/com/github/ykrasik/jaci/reflection/ReflectionSuppliers.java
ReflectionSuppliers.reflectionSupplier
public static <T> Spplr<T> reflectionSupplier(Object instance, String methodName, Class<T> suppliedClass) { final ReflectionMethod method = ReflectionUtils.getNoArgsMethod(instance.getClass(), methodName); ...
java
public static <T> Spplr<T> reflectionSupplier(Object instance, String methodName, Class<T> suppliedClass) { final ReflectionMethod method = ReflectionUtils.getNoArgsMethod(instance.getClass(), methodName); ...
[ "public", "static", "<", "T", ">", "Spplr", "<", "T", ">", "reflectionSupplier", "(", "Object", "instance", ",", "String", "methodName", ",", "Class", "<", "T", ">", "suppliedClass", ")", "{", "final", "ReflectionMethod", "method", "=", "ReflectionUtils", "....
Create a supplier that will invoke the method specified by the give method name on the given object instance through reflection. The method must be no-args and must return a value of the specified type. The method may be private, in which case it will be made accessible outside it's class. @param instance Instance to ...
[ "Create", "a", "supplier", "that", "will", "invoke", "the", "method", "specified", "by", "the", "give", "method", "name", "on", "the", "given", "object", "instance", "through", "reflection", ".", "The", "method", "must", "be", "no", "-", "args", "and", "mu...
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-reflection-api/src/main/java/com/github/ykrasik/jaci/reflection/ReflectionSuppliers.java#L45-L51
147,932
Avira/couchdoop
src/main/java/com/avira/couchdoop/imp/PageFileWriter.java
PageFileWriter.write
public void write(String key, String document) throws IOException { try { // Write the key. outputStream.write(key.getBytes("UTF-8")); // Write the key-document keyDocumentDelimiter. outputStream.write(keyDocumentDelimiter.getBytes("UTF-8")); // Write the document. outputStream...
java
public void write(String key, String document) throws IOException { try { // Write the key. outputStream.write(key.getBytes("UTF-8")); // Write the key-document keyDocumentDelimiter. outputStream.write(keyDocumentDelimiter.getBytes("UTF-8")); // Write the document. outputStream...
[ "public", "void", "write", "(", "String", "key", ",", "String", "document", ")", "throws", "IOException", "{", "try", "{", "// Write the key.", "outputStream", ".", "write", "(", "key", ".", "getBytes", "(", "\"UTF-8\"", ")", ")", ";", "// Write the key-docume...
Write a Couchbase document @param key Couchbase document ID @param document Couchbase document value @throws IOException in case of issues while writing to a file
[ "Write", "a", "Couchbase", "document" ]
0df7792524d0cf258523c4bc510eb0df8b1132a1
https://github.com/Avira/couchdoop/blob/0df7792524d0cf258523c4bc510eb0df8b1132a1/src/main/java/com/avira/couchdoop/imp/PageFileWriter.java#L72-L86
147,933
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java
MatcherLibrary.getRelation
protected char getRelation(IAtomicConceptOfLabel sourceACoL, IAtomicConceptOfLabel targetACoL) throws MatcherLibraryException { try { char relation = senseMatcher.getRelation(sourceACoL.getSenseList(), targetACoL.getSenseList()); //if WN matcher did not find relation if...
java
protected char getRelation(IAtomicConceptOfLabel sourceACoL, IAtomicConceptOfLabel targetACoL) throws MatcherLibraryException { try { char relation = senseMatcher.getRelation(sourceACoL.getSenseList(), targetACoL.getSenseList()); //if WN matcher did not find relation if...
[ "protected", "char", "getRelation", "(", "IAtomicConceptOfLabel", "sourceACoL", ",", "IAtomicConceptOfLabel", "targetACoL", ")", "throws", "MatcherLibraryException", "{", "try", "{", "char", "relation", "=", "senseMatcher", ".", "getRelation", "(", "sourceACoL", ".", ...
Returns a semantic relation between two atomic concepts. @param sourceACoL source concept @param targetACoL target concept @return relation between concepts @throws MatcherLibraryException MatcherLibraryException
[ "Returns", "a", "semantic", "relation", "between", "two", "atomic", "concepts", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java#L178-L201
147,934
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java
MatcherLibrary.getRelationFromStringMatchers
private char getRelationFromStringMatchers(String sourceLabel, String targetLabel) { char relation = IMappingElement.IDK; int i = 0; while ((relation == IMappingElement.IDK) && (i < stringMatchers.size())) { relation = stringMatchers.get(i).match(sourceLabel, targetLabel); ...
java
private char getRelationFromStringMatchers(String sourceLabel, String targetLabel) { char relation = IMappingElement.IDK; int i = 0; while ((relation == IMappingElement.IDK) && (i < stringMatchers.size())) { relation = stringMatchers.get(i).match(sourceLabel, targetLabel); ...
[ "private", "char", "getRelationFromStringMatchers", "(", "String", "sourceLabel", ",", "String", "targetLabel", ")", "{", "char", "relation", "=", "IMappingElement", ".", "IDK", ";", "int", "i", "=", "0", ";", "while", "(", "(", "relation", "==", "IMappingElem...
Returns semantic relation holding between two labels as computed by string based matchers. @param sourceLabel the string of the source label @param targetLabel the string of the target label @return semantic relation holding between two labels as computed by string based matchers
[ "Returns", "semantic", "relation", "holding", "between", "two", "labels", "as", "computed", "by", "string", "based", "matchers", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java#L210-L218
147,935
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java
MatcherLibrary.getRelationFromSenseGlossMatchers
private char getRelationFromSenseGlossMatchers(List<ISense> sourceSenses, List<ISense> targetSenses) throws MatcherLibraryException { char relation = IMappingElement.IDK; if (0 < senseGlossMatchers.size()) { for (ISense sourceSense : sourceSenses) { //noinspection LoopSta...
java
private char getRelationFromSenseGlossMatchers(List<ISense> sourceSenses, List<ISense> targetSenses) throws MatcherLibraryException { char relation = IMappingElement.IDK; if (0 < senseGlossMatchers.size()) { for (ISense sourceSense : sourceSenses) { //noinspection LoopSta...
[ "private", "char", "getRelationFromSenseGlossMatchers", "(", "List", "<", "ISense", ">", "sourceSenses", ",", "List", "<", "ISense", ">", "targetSenses", ")", "throws", "MatcherLibraryException", "{", "char", "relation", "=", "IMappingElement", ".", "IDK", ";", "i...
Returns semantic relation between two sets of senses by WordNet sense-based matchers. @param sourceSenses source senses @param targetSenses target senses @return semantic relation between two sets of senses @throws MatcherLibraryException MatcherLibraryException
[ "Returns", "semantic", "relation", "between", "two", "sets", "of", "senses", "by", "WordNet", "sense", "-", "based", "matchers", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/MatcherLibrary.java#L228-L244
147,936
mlhartme/sushi
src/main/java/net/oneandone/sushi/xml/Dom.java
Dom.getChildElements
public static List<Element> getChildElements(Element root, String ... steps) { List<Element> lst; lst = new ArrayList<>(); doGetChildElements(root, steps, 0, lst); return lst; }
java
public static List<Element> getChildElements(Element root, String ... steps) { List<Element> lst; lst = new ArrayList<>(); doGetChildElements(root, steps, 0, lst); return lst; }
[ "public", "static", "List", "<", "Element", ">", "getChildElements", "(", "Element", "root", ",", "String", "...", "steps", ")", "{", "List", "<", "Element", ">", "lst", ";", "lst", "=", "new", "ArrayList", "<>", "(", ")", ";", "doGetChildElements", "(",...
Steps may be empty strings
[ "Steps", "may", "be", "empty", "strings" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/xml/Dom.java#L99-L105
147,937
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/preprocessors/NLPToolsContextPreprocessor.java
NLPToolsContextPreprocessor.processNode
private ILabel processNode(INode currentNode, ArrayList<ILabel> pathToRootPhrases) throws ContextPreprocessorException { if (debugLabels) { log.debug("preprocessing node: " + currentNode.getNodeData().getId() + ", label: " + currentNode.getNodeData().getName()); } // reset old ...
java
private ILabel processNode(INode currentNode, ArrayList<ILabel> pathToRootPhrases) throws ContextPreprocessorException { if (debugLabels) { log.debug("preprocessing node: " + currentNode.getNodeData().getId() + ", label: " + currentNode.getNodeData().getName()); } // reset old ...
[ "private", "ILabel", "processNode", "(", "INode", "currentNode", ",", "ArrayList", "<", "ILabel", ">", "pathToRootPhrases", ")", "throws", "ContextPreprocessorException", "{", "if", "(", "debugLabels", ")", "{", "log", ".", "debug", "(", "\"preprocessing node: \"", ...
Converts current node label into a formula using path to root as a context @param currentNode a node to process @param pathToRootPhrases phrases in the path to root @return phrase instance for a current node label @throws ContextPreprocessorException ContextPreprocessorException
[ "Converts", "current", "node", "label", "into", "a", "formula", "using", "path", "to", "root", "as", "a", "context" ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/preprocessors/NLPToolsContextPreprocessor.java#L131-L189
147,938
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNLemma.java
WNLemma.match
public char match(ISense source, ISense target) throws MatcherLibraryException { List<String> sourceLemmas = source.getLemmas(); List<String> targetLemmas = target.getLemmas(); for (String sourceLemma : sourceLemmas) { for (String targetLemma : targetLemmas) { if...
java
public char match(ISense source, ISense target) throws MatcherLibraryException { List<String> sourceLemmas = source.getLemmas(); List<String> targetLemmas = target.getLemmas(); for (String sourceLemma : sourceLemmas) { for (String targetLemma : targetLemmas) { if...
[ "public", "char", "match", "(", "ISense", "source", ",", "ISense", "target", ")", "throws", "MatcherLibraryException", "{", "List", "<", "String", ">", "sourceLemmas", "=", "source", ".", "getLemmas", "(", ")", ";", "List", "<", "String", ">", "targetLemmas"...
Computes the relation with WordNet lemma matcher. @param source the gloss of source @param target the gloss of target @return synonym or IDk relation
[ "Computes", "the", "relation", "with", "WordNet", "lemma", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNLemma.java#L28-L39
147,939
netceteragroup/trema-core
src/main/java/com/netcetera/trema/core/exporting/AndroidExporter.java
AndroidExporter.resolveIOSPlaceholders
protected String resolveIOSPlaceholders(String original) { int index = 1; String resolved = original; final Pattern pattern = Pattern.compile("%[a-zA-Z@]"); final Matcher matcher = pattern.matcher(original); while (matcher.find()) { String placeholderIOS = matcher.group(); String placeh...
java
protected String resolveIOSPlaceholders(String original) { int index = 1; String resolved = original; final Pattern pattern = Pattern.compile("%[a-zA-Z@]"); final Matcher matcher = pattern.matcher(original); while (matcher.find()) { String placeholderIOS = matcher.group(); String placeh...
[ "protected", "String", "resolveIOSPlaceholders", "(", "String", "original", ")", "{", "int", "index", "=", "1", ";", "String", "resolved", "=", "original", ";", "final", "Pattern", "pattern", "=", "Pattern", ".", "compile", "(", "\"%[a-zA-Z@]\"", ")", ";", "...
Returns a string with resolved iOS placeholders. @param original the original text @return The text with resolved iOS placeholders (if there were some).
[ "Returns", "a", "string", "with", "resolved", "iOS", "placeholders", "." ]
e5367f4b80b38038d462627aa146a62bc34fc489
https://github.com/netceteragroup/trema-core/blob/e5367f4b80b38038d462627aa146a62bc34fc489/src/main/java/com/netcetera/trema/core/exporting/AndroidExporter.java#L130-L146
147,940
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java
GenericLogicDiscoverer.findSome
private Map<URI, MatchResult> findSome(URI entityType, URI relationship, Set<URI> types, MatchType matchType) { // Ensure that we have been given correct parameters if (types == null || types.isEmpty() || (!entityType.toASCIIString().equals(MSM.Service.getURI()) && !entityType.toASCIISt...
java
private Map<URI, MatchResult> findSome(URI entityType, URI relationship, Set<URI> types, MatchType matchType) { // Ensure that we have been given correct parameters if (types == null || types.isEmpty() || (!entityType.toASCIIString().equals(MSM.Service.getURI()) && !entityType.toASCIISt...
[ "private", "Map", "<", "URI", ",", "MatchResult", ">", "findSome", "(", "URI", "entityType", ",", "URI", "relationship", ",", "Set", "<", "URI", ">", "types", ",", "MatchType", "matchType", ")", "{", "// Ensure that we have been given correct parameters", "if", ...
Generic implementation for finding all the Services or Operations that have SOME of the given types as inputs or outputs. @param entityType the MSM URI of the type of entity we are looking for. Only supports Service and Operation. @param relationship the MSM URI of the relationship we are looking for. Only supports ...
[ "Generic", "implementation", "for", "finding", "all", "the", "Services", "or", "Operations", "that", "have", "SOME", "of", "the", "given", "types", "as", "inputs", "or", "outputs", "." ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java#L134-L184
147,941
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java
GenericLogicDiscoverer.listEntitesWithModelReference
private Set<URI> listEntitesWithModelReference(URI entityType, URI modelReference) { Set<URI> entities = ImmutableSet.of(); // Deal with services if (entityType.toASCIIString().equals(MSM.Service.getURI())) { entities = this.serviceManager.listServicesWithModelReference(modelReferenc...
java
private Set<URI> listEntitesWithModelReference(URI entityType, URI modelReference) { Set<URI> entities = ImmutableSet.of(); // Deal with services if (entityType.toASCIIString().equals(MSM.Service.getURI())) { entities = this.serviceManager.listServicesWithModelReference(modelReferenc...
[ "private", "Set", "<", "URI", ">", "listEntitesWithModelReference", "(", "URI", "entityType", ",", "URI", "modelReference", ")", "{", "Set", "<", "URI", ">", "entities", "=", "ImmutableSet", ".", "of", "(", ")", ";", "// Deal with services", "if", "(", "enti...
Generic implementation for finding all the Services or Operations that have one specific model reference. @param entityType the MSM URI of the type of entity we are looking for. Only supports Service and Operation. @param modelReference the model reference URI we are looking for. @returns a Set of URIs of matching...
[ "Generic", "implementation", "for", "finding", "all", "the", "Services", "or", "Operations", "that", "have", "one", "specific", "model", "reference", "." ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java#L195-L204
147,942
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java
GenericLogicDiscoverer.listEntitiesWithType
private Set<URI> listEntitiesWithType(URI entityType, URI relationship, URI type) { Set<URI> entities = ImmutableSet.of(); // Deal with services if (entityType.toASCIIString().equals(MSM.Service.getURI())) { // Get the adequate type if (relationship.toASCIIString().equals...
java
private Set<URI> listEntitiesWithType(URI entityType, URI relationship, URI type) { Set<URI> entities = ImmutableSet.of(); // Deal with services if (entityType.toASCIIString().equals(MSM.Service.getURI())) { // Get the adequate type if (relationship.toASCIIString().equals...
[ "private", "Set", "<", "URI", ">", "listEntitiesWithType", "(", "URI", "entityType", ",", "URI", "relationship", ",", "URI", "type", ")", "{", "Set", "<", "URI", ">", "entities", "=", "ImmutableSet", ".", "of", "(", ")", ";", "// Deal with services", "if",...
Generic implementation for finding all the Services or Operations that have one specific type as input or output. @param entityType the MSM URI of the type of entity we are looking for. Only supports Service and Operation. @param relationship the MSM URI of the relationship we are looking for. Only supports hasInput...
[ "Generic", "implementation", "for", "finding", "all", "the", "Services", "or", "Operations", "that", "have", "one", "specific", "type", "as", "input", "or", "output", "." ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java#L215-L238
147,943
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java
GenericLogicDiscoverer.findOperationsConsumingAll
@Override public Map<URI, MatchResult> findOperationsConsumingAll(Set<URI> inputTypes) { return findOperationsConsumingAll(inputTypes, LogicConceptMatchType.Plugin); }
java
@Override public Map<URI, MatchResult> findOperationsConsumingAll(Set<URI> inputTypes) { return findOperationsConsumingAll(inputTypes, LogicConceptMatchType.Plugin); }
[ "@", "Override", "public", "Map", "<", "URI", ",", "MatchResult", ">", "findOperationsConsumingAll", "(", "Set", "<", "URI", ">", "inputTypes", ")", "{", "return", "findOperationsConsumingAll", "(", "inputTypes", ",", "LogicConceptMatchType", ".", "Plugin", ")", ...
Discover registered operations that consume all the types of input provided. That is, all those that have as input the types provided. All the input types should be matched to different inputs. @param inputTypes the types of input to be consumed @return a Set containing all the matching operations. If there are no sol...
[ "Discover", "registered", "operations", "that", "consume", "all", "the", "types", "of", "input", "provided", ".", "That", "is", "all", "those", "that", "have", "as", "input", "the", "types", "provided", ".", "All", "the", "input", "types", "should", "be", ...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java#L248-L251
147,944
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java
GenericLogicDiscoverer.findServicesClassifiedByAll
@Override public Map<URI, MatchResult> findServicesClassifiedByAll(Set<URI> modelReferences) { return findServicesClassifiedByAll(modelReferences, LogicConceptMatchType.Subsume); }
java
@Override public Map<URI, MatchResult> findServicesClassifiedByAll(Set<URI> modelReferences) { return findServicesClassifiedByAll(modelReferences, LogicConceptMatchType.Subsume); }
[ "@", "Override", "public", "Map", "<", "URI", ",", "MatchResult", ">", "findServicesClassifiedByAll", "(", "Set", "<", "URI", ">", "modelReferences", ")", "{", "return", "findServicesClassifiedByAll", "(", "modelReferences", ",", "LogicConceptMatchType", ".", "Subsu...
Discover the services that are classified by all the types given. That is, all those that have some level of matching with respect to all services provided in the model references. @param modelReferences the classifications to match against @return a Set containing all the matching services. If there are no solutions,...
[ "Discover", "the", "services", "that", "are", "classified", "by", "all", "the", "types", "given", ".", "That", "is", "all", "those", "that", "have", "some", "level", "of", "matching", "with", "respect", "to", "all", "services", "provided", "in", "the", "mo...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/GenericLogicDiscoverer.java#L435-L438
147,945
udoprog/ffwd-client-java
src/main/java/com/google/protobuf250/FieldSet.java
FieldSet.getAllFields
public Map<FieldDescriptorType, Object> getAllFields() { if (hasLazyField) { SmallSortedMap<FieldDescriptorType, Object> result = SmallSortedMap.newFieldMap(16); for (int i = 0; i < fields.getNumArrayEntries(); i++) { cloneFieldEntry(result, fields.getArrayEntryAt(i)); } fo...
java
public Map<FieldDescriptorType, Object> getAllFields() { if (hasLazyField) { SmallSortedMap<FieldDescriptorType, Object> result = SmallSortedMap.newFieldMap(16); for (int i = 0; i < fields.getNumArrayEntries(); i++) { cloneFieldEntry(result, fields.getArrayEntryAt(i)); } fo...
[ "public", "Map", "<", "FieldDescriptorType", ",", "Object", ">", "getAllFields", "(", ")", "{", "if", "(", "hasLazyField", ")", "{", "SmallSortedMap", "<", "FieldDescriptorType", ",", "Object", ">", "result", "=", "SmallSortedMap", ".", "newFieldMap", "(", "16...
Get a simple map containing all the fields.
[ "Get", "a", "simple", "map", "containing", "all", "the", "fields", "." ]
b4161d2b138e3edb8fa9420cc3cc653d5764cf5b
https://github.com/udoprog/ffwd-client-java/blob/b4161d2b138e3edb8fa9420cc3cc653d5764cf5b/src/main/java/com/google/protobuf250/FieldSet.java#L160-L177
147,946
udoprog/ffwd-client-java
src/main/java/com/google/protobuf250/FieldSet.java
FieldSet.iterator
public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
java
public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
[ "public", "Iterator", "<", "Map", ".", "Entry", "<", "FieldDescriptorType", ",", "Object", ">", ">", "iterator", "(", ")", "{", "if", "(", "hasLazyField", ")", "{", "return", "new", "LazyIterator", "<", "FieldDescriptorType", ">", "(", "fields", ".", "entr...
Get an iterator to the field map. This iterator should not be leaked out of the protobuf library as it is not protected from mutation when fields is not immutable.
[ "Get", "an", "iterator", "to", "the", "field", "map", ".", "This", "iterator", "should", "not", "be", "leaked", "out", "of", "the", "protobuf", "library", "as", "it", "is", "not", "protected", "from", "mutation", "when", "fields", "is", "not", "immutable",...
b4161d2b138e3edb8fa9420cc3cc653d5764cf5b
https://github.com/udoprog/ffwd-client-java/blob/b4161d2b138e3edb8fa9420cc3cc653d5764cf5b/src/main/java/com/google/protobuf250/FieldSet.java#L195-L201
147,947
udoprog/ffwd-client-java
src/main/java/com/google/protobuf250/FieldSet.java
FieldSet.writeElementNoTag
private static void writeElementNoTag( final CodedOutputStream output, final WireFormat.FieldType type, final Object value) throws IOException { switch (type) { case DOUBLE : output.writeDoubleNoTag ((Double ) value); break; case FLOAT : output.writeFloatNoTag ((Float ) ...
java
private static void writeElementNoTag( final CodedOutputStream output, final WireFormat.FieldType type, final Object value) throws IOException { switch (type) { case DOUBLE : output.writeDoubleNoTag ((Double ) value); break; case FLOAT : output.writeFloatNoTag ((Float ) ...
[ "private", "static", "void", "writeElementNoTag", "(", "final", "CodedOutputStream", "output", ",", "final", "WireFormat", ".", "FieldType", "type", ",", "final", "Object", "value", ")", "throws", "IOException", "{", "switch", "(", "type", ")", "{", "case", "D...
Write a field of arbitrary type, without its tag, to the stream. @param output The output stream. @param type The field's type. @param value Object representing the field's value. Must be of the exact type which would be returned by {@link Message#getField(Descriptors.FieldDescriptor)} for this field.
[ "Write", "a", "field", "of", "arbitrary", "type", "without", "its", "tag", "to", "the", "stream", "." ]
b4161d2b138e3edb8fa9420cc3cc653d5764cf5b
https://github.com/udoprog/ffwd-client-java/blob/b4161d2b138e3edb8fa9420cc3cc653d5764cf5b/src/main/java/com/google/protobuf250/FieldSet.java#L650-L677
147,948
udoprog/ffwd-client-java
src/main/java/com/google/protobuf250/FieldSet.java
FieldSet.writeField
public static void writeField(final FieldDescriptorLite<?> descriptor, final Object value, final CodedOutputStream output) throws IOException { WireFormat.FieldType type = descriptor.getLiteType(); int number = descr...
java
public static void writeField(final FieldDescriptorLite<?> descriptor, final Object value, final CodedOutputStream output) throws IOException { WireFormat.FieldType type = descriptor.getLiteType(); int number = descr...
[ "public", "static", "void", "writeField", "(", "final", "FieldDescriptorLite", "<", "?", ">", "descriptor", ",", "final", "Object", "value", ",", "final", "CodedOutputStream", "output", ")", "throws", "IOException", "{", "WireFormat", ".", "FieldType", "type", "...
Write a single field.
[ "Write", "a", "single", "field", "." ]
b4161d2b138e3edb8fa9420cc3cc653d5764cf5b
https://github.com/udoprog/ffwd-client-java/blob/b4161d2b138e3edb8fa9420cc3cc653d5764cf5b/src/main/java/com/google/protobuf250/FieldSet.java#L680-L712
147,949
udoprog/ffwd-client-java
src/main/java/com/google/protobuf250/FieldSet.java
FieldSet.computeFieldSize
public static int computeFieldSize(final FieldDescriptorLite<?> descriptor, final Object value) { WireFormat.FieldType type = descriptor.getLiteType(); int number = descriptor.getNumber(); if (descriptor.isRepeated()) { if (descriptor.isPacked()) { int data...
java
public static int computeFieldSize(final FieldDescriptorLite<?> descriptor, final Object value) { WireFormat.FieldType type = descriptor.getLiteType(); int number = descriptor.getNumber(); if (descriptor.isRepeated()) { if (descriptor.isPacked()) { int data...
[ "public", "static", "int", "computeFieldSize", "(", "final", "FieldDescriptorLite", "<", "?", ">", "descriptor", ",", "final", "Object", "value", ")", "{", "WireFormat", ".", "FieldType", "type", "=", "descriptor", ".", "getLiteType", "(", ")", ";", "int", "...
Compute the number of bytes needed to encode a particular field.
[ "Compute", "the", "number", "of", "bytes", "needed", "to", "encode", "a", "particular", "field", "." ]
b4161d2b138e3edb8fa9420cc3cc653d5764cf5b
https://github.com/udoprog/ffwd-client-java/blob/b4161d2b138e3edb8fa9420cc3cc653d5764cf5b/src/main/java/com/google/protobuf250/FieldSet.java#L837-L860
147,950
eurekaclinical/aiw-i2b2-etl
src/main/java/edu/emory/cci/aiw/i2b2etl/dest/table/ActiveStatusCode.java
ActiveStatusCode.getInstance
public static String getInstance( Date startDate, Granularity startGran, Date endDate, Granularity endGran) { ActiveStatusCodeStartDate codeStartDate; if (startDate == null) { codeStartDate = ActiveStatusCodeStartDate.UNKNOWN; } else if (startGran == Absolute...
java
public static String getInstance( Date startDate, Granularity startGran, Date endDate, Granularity endGran) { ActiveStatusCodeStartDate codeStartDate; if (startDate == null) { codeStartDate = ActiveStatusCodeStartDate.UNKNOWN; } else if (startGran == Absolute...
[ "public", "static", "String", "getInstance", "(", "Date", "startDate", ",", "Granularity", "startGran", ",", "Date", "endDate", ",", "Granularity", "endGran", ")", "{", "ActiveStatusCodeStartDate", "codeStartDate", ";", "if", "(", "startDate", "==", "null", ")", ...
Infer the correct active status code given what dates are available and whether or not the encounter information is finalized. @param bFinal <code>true</code> if the visit information is finalized according to the EHR, <code>false</code> if not. This parameter is ignored if the visit has neither a start date nor an en...
[ "Infer", "the", "correct", "active", "status", "code", "given", "what", "dates", "are", "available", "and", "whether", "or", "not", "the", "encounter", "information", "is", "finalized", "." ]
3eed6bda7755919cb9466d2930723a0f4748341a
https://github.com/eurekaclinical/aiw-i2b2-etl/blob/3eed6bda7755919cb9466d2930723a0f4748341a/src/main/java/edu/emory/cci/aiw/i2b2etl/dest/table/ActiveStatusCode.java#L47-L89
147,951
awltech/org.parallelj
parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java
Launch.synchLaunch
public Launch synchLaunch() throws LaunchException { JobDataMap jobDataMap = new JobDataMap(); jobDataMap.put(Launch.PARAMETERS, this.launch.getParameters()); jobDataMap.put(Launch.DEFAULT_EXECUTOR_KEY, this.launch.getExecutorService()); try { this.launch.synchLaunch(); } catch (org.parallelj.launching.Lau...
java
public Launch synchLaunch() throws LaunchException { JobDataMap jobDataMap = new JobDataMap(); jobDataMap.put(Launch.PARAMETERS, this.launch.getParameters()); jobDataMap.put(Launch.DEFAULT_EXECUTOR_KEY, this.launch.getExecutorService()); try { this.launch.synchLaunch(); } catch (org.parallelj.launching.Lau...
[ "public", "Launch", "synchLaunch", "(", ")", "throws", "LaunchException", "{", "JobDataMap", "jobDataMap", "=", "new", "JobDataMap", "(", ")", ";", "jobDataMap", ".", "put", "(", "Launch", ".", "PARAMETERS", ",", "this", ".", "launch", ".", "getParameters", ...
Launch a Program and wait until it's terminated. @return A Launch instance. @throws LaunchException When a SchedulerException occurred.
[ "Launch", "a", "Program", "and", "wait", "until", "it", "s", "terminated", "." ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java#L87-L105
147,952
awltech/org.parallelj
parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java
Launch.aSynchLaunch
public Launch aSynchLaunch() throws LaunchException { JobDataMap jobDataMap = new JobDataMap(); jobDataMap.put(Launch.PARAMETERS, this.launch.getParameters()); jobDataMap.put(Launch.DEFAULT_EXECUTOR_KEY, this.launch.getExecutorService()); try { this.launch.aSynchLaunch(); } catch (org.parallelj.launching.L...
java
public Launch aSynchLaunch() throws LaunchException { JobDataMap jobDataMap = new JobDataMap(); jobDataMap.put(Launch.PARAMETERS, this.launch.getParameters()); jobDataMap.put(Launch.DEFAULT_EXECUTOR_KEY, this.launch.getExecutorService()); try { this.launch.aSynchLaunch(); } catch (org.parallelj.launching.L...
[ "public", "Launch", "aSynchLaunch", "(", ")", "throws", "LaunchException", "{", "JobDataMap", "jobDataMap", "=", "new", "JobDataMap", "(", ")", ";", "jobDataMap", ".", "put", "(", "Launch", ".", "PARAMETERS", ",", "this", ".", "launch", ".", "getParameters", ...
Launch a Program and continue. @return A Launch instance. @throws LaunchException When an Exception occurred.
[ "Launch", "a", "Program", "and", "continue", "." ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java#L114-L126
147,953
awltech/org.parallelj
parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java
Launch.addDatas
@SuppressWarnings("unchecked") public synchronized Launch addDatas(final JobDataMap jobDataMap) { Map<String,Object> data = new HashMap<>(); for (String key:jobDataMap.getKeys()) { data.put(key, jobDataMap.get(key)); } this.launch.addParameters(data); return this; }
java
@SuppressWarnings("unchecked") public synchronized Launch addDatas(final JobDataMap jobDataMap) { Map<String,Object> data = new HashMap<>(); for (String key:jobDataMap.getKeys()) { data.put(key, jobDataMap.get(key)); } this.launch.addParameters(data); return this; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "synchronized", "Launch", "addDatas", "(", "final", "JobDataMap", "jobDataMap", ")", "{", "Map", "<", "String", ",", "Object", ">", "data", "=", "new", "HashMap", "<>", "(", ")", ";", "for", "("...
Add a Quartz JobData to the one used to launch the Program. This JobData is used to initialize Programs arguments for launching. @param jobDataMap A JobDatamap @return This Launch instance.
[ "Add", "a", "Quartz", "JobData", "to", "the", "one", "used", "to", "launch", "the", "Program", ".", "This", "JobData", "is", "used", "to", "initialize", "Programs", "arguments", "for", "launching", "." ]
2a2498cc4ac6227df6f45d295ec568cad3cffbc4
https://github.com/awltech/org.parallelj/blob/2a2498cc4ac6227df6f45d295ec568cad3cffbc4/parallelj-legacy-launching-parent/parallelj-legacy-launching-api/src/main/java/org/parallelj/launching/quartz/Launch.java#L136-L144
147,954
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.add
public boolean add(int left, int right) { if (line[left] == null) { line[left] = new IntBitSet(); } else { if (line[left].contains(right)) { return false; } } line[left].add(right); return true; }
java
public boolean add(int left, int right) { if (line[left] == null) { line[left] = new IntBitSet(); } else { if (line[left].contains(right)) { return false; } } line[left].add(right); return true; }
[ "public", "boolean", "add", "(", "int", "left", ",", "int", "right", ")", "{", "if", "(", "line", "[", "left", "]", "==", "null", ")", "{", "line", "[", "left", "]", "=", "new", "IntBitSet", "(", ")", ";", "}", "else", "{", "if", "(", "line", ...
Adds a new pair to the relation. @param left left value of the pair @param right right value of the pair @return false, if the pair was already element of the relation
[ "Adds", "a", "new", "pair", "to", "the", "relation", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L52-L63
147,955
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.add
public void add(int left, IntBitSet right) { if (line[left] == null) { line[left] = new IntBitSet(); } line[left].addAll(right); }
java
public void add(int left, IntBitSet right) { if (line[left] == null) { line[left] = new IntBitSet(); } line[left].addAll(right); }
[ "public", "void", "add", "(", "int", "left", ",", "IntBitSet", "right", ")", "{", "if", "(", "line", "[", "left", "]", "==", "null", ")", "{", "line", "[", "left", "]", "=", "new", "IntBitSet", "(", ")", ";", "}", "line", "[", "left", "]", ".",...
Adds a set of pairs. @param left left value of all pairs to add @param right right values of the pairs to add. If empty, no pair is added
[ "Adds", "a", "set", "of", "pairs", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L71-L76
147,956
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.addAll
public void addAll(IntBitRelation right) { int i, max; max = right.line.length; for (i = 0; i < max; i++) { if (right.line[i] != null) { add(i, right.line[i]); } } }
java
public void addAll(IntBitRelation right) { int i, max; max = right.line.length; for (i = 0; i < max; i++) { if (right.line[i] != null) { add(i, right.line[i]); } } }
[ "public", "void", "addAll", "(", "IntBitRelation", "right", ")", "{", "int", "i", ",", "max", ";", "max", "=", "right", ".", "line", ".", "length", ";", "for", "(", "i", "=", "0", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "ri...
Adds all element from the relation specified. @param right relation to add.
[ "Adds", "all", "element", "from", "the", "relation", "specified", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L82-L91
147,957
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.contains
public boolean contains(int left, int right) { if (line[left] == null) { return false; } return line[left].contains(right); }
java
public boolean contains(int left, int right) { if (line[left] == null) { return false; } return line[left].contains(right); }
[ "public", "boolean", "contains", "(", "int", "left", ",", "int", "right", ")", "{", "if", "(", "line", "[", "left", "]", "==", "null", ")", "{", "return", "false", ";", "}", "return", "line", "[", "left", "]", ".", "contains", "(", "right", ")", ...
Element test. @param left left value of the pair to test. @param right right value of the pair to test. @return true, if (left, right) is element of the relation.
[ "Element", "test", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L99-L104
147,958
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.addRightWhere
public void addRightWhere(int left, IntBitSet result) { if (line[left] != null) { result.addAll(line[left]); } }
java
public void addRightWhere(int left, IntBitSet result) { if (line[left] != null) { result.addAll(line[left]); } }
[ "public", "void", "addRightWhere", "(", "int", "left", ",", "IntBitSet", "result", ")", "{", "if", "(", "line", "[", "left", "]", "!=", "null", ")", "{", "result", ".", "addAll", "(", "line", "[", "left", "]", ")", ";", "}", "}" ]
Returns all right values from the relation that have the left value specified. @param left left value required @param result where to return the result
[ "Returns", "all", "right", "values", "from", "the", "relation", "that", "have", "the", "left", "value", "specified", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L112-L116
147,959
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.contains
public boolean contains(IntBitRelation sub) { int i; if (line.length != sub.line.length) { return false; } for (i = 0; i < line.length; i++) { if (line[i] == null) { if (sub.line[i] != null) { return false; } ...
java
public boolean contains(IntBitRelation sub) { int i; if (line.length != sub.line.length) { return false; } for (i = 0; i < line.length; i++) { if (line[i] == null) { if (sub.line[i] != null) { return false; } ...
[ "public", "boolean", "contains", "(", "IntBitRelation", "sub", ")", "{", "int", "i", ";", "if", "(", "line", ".", "length", "!=", "sub", ".", "line", ".", "length", ")", "{", "return", "false", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", ...
Subset test. @param sub relation to compare with. @return true, if every element of sub is element of this
[ "Subset", "test", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L206-L226
147,960
mlhartme/sushi
src/main/java/net/oneandone/sushi/util/IntBitRelation.java
IntBitRelation.transitiveClosure
public void transitiveClosure() { IntBitRelation next; while (true) { next = new IntBitRelation(getMax()); next.composeRightLeft(this, this); if (contains(next)) { return; } addAll(next); } }
java
public void transitiveClosure() { IntBitRelation next; while (true) { next = new IntBitRelation(getMax()); next.composeRightLeft(this, this); if (contains(next)) { return; } addAll(next); } }
[ "public", "void", "transitiveClosure", "(", ")", "{", "IntBitRelation", "next", ";", "while", "(", "true", ")", "{", "next", "=", "new", "IntBitRelation", "(", "getMax", "(", ")", ")", ";", "next", ".", "composeRightLeft", "(", "this", ",", "this", ")", ...
Transitive closure.
[ "Transitive", "closure", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/util/IntBitRelation.java#L229-L240
147,961
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java
CliDirectory.autoCompleteDirectory
public AutoComplete autoCompleteDirectory(String prefix) { final Trie<CliValueType> possibilities = childDirectories.subTrie(prefix).mapValues(CliValueType.DIRECTORY.<CliDirectory>getMapper()); return new AutoComplete(prefix, possibilities); }
java
public AutoComplete autoCompleteDirectory(String prefix) { final Trie<CliValueType> possibilities = childDirectories.subTrie(prefix).mapValues(CliValueType.DIRECTORY.<CliDirectory>getMapper()); return new AutoComplete(prefix, possibilities); }
[ "public", "AutoComplete", "autoCompleteDirectory", "(", "String", "prefix", ")", "{", "final", "Trie", "<", "CliValueType", ">", "possibilities", "=", "childDirectories", ".", "subTrie", "(", "prefix", ")", ".", "mapValues", "(", "CliValueType", ".", "DIRECTORY", ...
Auto complete the given prefix with child directory possibilities. @param prefix Prefix to offer auto complete for. @return Auto complete for child {@link CliDirectory}s that starts with the given prefix. Case insensitive.
[ "Auto", "complete", "the", "given", "prefix", "with", "child", "directory", "possibilities", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java#L122-L125
147,962
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java
CliDirectory.autoCompleteCommand
public AutoComplete autoCompleteCommand(String prefix) { final Trie<CliValueType> possibilities = childCommands.subTrie(prefix).mapValues(CliValueType.COMMAND.<CliCommand>getMapper()); return new AutoComplete(prefix, possibilities); }
java
public AutoComplete autoCompleteCommand(String prefix) { final Trie<CliValueType> possibilities = childCommands.subTrie(prefix).mapValues(CliValueType.COMMAND.<CliCommand>getMapper()); return new AutoComplete(prefix, possibilities); }
[ "public", "AutoComplete", "autoCompleteCommand", "(", "String", "prefix", ")", "{", "final", "Trie", "<", "CliValueType", ">", "possibilities", "=", "childCommands", ".", "subTrie", "(", "prefix", ")", ".", "mapValues", "(", "CliValueType", ".", "COMMAND", ".", ...
Auto complete the given prefix with child command possibilities. @param prefix Prefix to offer auto complete for. @return Auto complete for the child {@link CliCommand}s that starts with the given prefix. Case insensitive.
[ "Auto", "complete", "the", "given", "prefix", "with", "child", "command", "possibilities", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java#L133-L136
147,963
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java
CliDirectory.autoCompleteEntry
public AutoComplete autoCompleteEntry(String prefix) { final AutoComplete directoryAutoComplete = autoCompleteDirectory(prefix); final AutoComplete commandAutoComplete = autoCompleteCommand(prefix); return directoryAutoComplete.union(commandAutoComplete); }
java
public AutoComplete autoCompleteEntry(String prefix) { final AutoComplete directoryAutoComplete = autoCompleteDirectory(prefix); final AutoComplete commandAutoComplete = autoCompleteCommand(prefix); return directoryAutoComplete.union(commandAutoComplete); }
[ "public", "AutoComplete", "autoCompleteEntry", "(", "String", "prefix", ")", "{", "final", "AutoComplete", "directoryAutoComplete", "=", "autoCompleteDirectory", "(", "prefix", ")", ";", "final", "AutoComplete", "commandAutoComplete", "=", "autoCompleteCommand", "(", "p...
Auto complete the given prefix with child directory or command possibilities. @param prefix Prefix to offer auto complete for. @return Auto complete for child entries (either {@link CliDirectory} or {@link CliCommand}) that start with the given prefix. Case insensitive.
[ "Auto", "complete", "the", "given", "prefix", "with", "child", "directory", "or", "command", "possibilities", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java#L145-L149
147,964
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java
CliDirectory.from
public static CliDirectory from(Identifier identifier, CliCommand... commands) { final Trie<CliCommand> childCommands = createChildCommands(commands); return new CliDirectory(identifier, Tries.<CliDirectory>emptyTrie(), childCommands); }
java
public static CliDirectory from(Identifier identifier, CliCommand... commands) { final Trie<CliCommand> childCommands = createChildCommands(commands); return new CliDirectory(identifier, Tries.<CliDirectory>emptyTrie(), childCommands); }
[ "public", "static", "CliDirectory", "from", "(", "Identifier", "identifier", ",", "CliCommand", "...", "commands", ")", "{", "final", "Trie", "<", "CliCommand", ">", "childCommands", "=", "createChildCommands", "(", "commands", ")", ";", "return", "new", "CliDir...
Construct a CLI directory from the given parameters. @param identifier Directory identifier. @param commands Child CLI commands. @return A CLI directory constructed from the given parameters.
[ "Construct", "a", "CLI", "directory", "from", "the", "given", "parameters", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/directory/CliDirectory.java#L211-L214
147,965
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/preprocessors/ContextPreprocessorIt.java
ContextPreprocessorIt.findMultiwordsInContextStructure
private IContext findMultiwordsInContextStructure(IContext context) throws ContextPreprocessorException { for (Iterator<INode> i = context.getNodes(); i.hasNext(); ) { INode sourceNode = i.next(); // sense disambiguation within the context structure // for all ACoLs in the so...
java
private IContext findMultiwordsInContextStructure(IContext context) throws ContextPreprocessorException { for (Iterator<INode> i = context.getNodes(); i.hasNext(); ) { INode sourceNode = i.next(); // sense disambiguation within the context structure // for all ACoLs in the so...
[ "private", "IContext", "findMultiwordsInContextStructure", "(", "IContext", "context", ")", "throws", "ContextPreprocessorException", "{", "for", "(", "Iterator", "<", "INode", ">", "i", "=", "context", ".", "getNodes", "(", ")", ";", "i", ".", "hasNext", "(", ...
Finds multiwords in context. @param context data structure of input label @return context with multiwords @throws ContextPreprocessorException ContextPreprocessorException
[ "Finds", "multiwords", "in", "context", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/preprocessors/ContextPreprocessorIt.java#L599-L612
147,966
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.listServices
@Override public Set<URI> listServices() { String queryStr = new StringBuilder() .append("SELECT DISTINCT ?svc WHERE { \n") .append(" GRAPH ?g { \n") .append("?svc ").append("<").append(RDF.type.getURI()).append(">").append(" ").append("<").append(MSM.Service....
java
@Override public Set<URI> listServices() { String queryStr = new StringBuilder() .append("SELECT DISTINCT ?svc WHERE { \n") .append(" GRAPH ?g { \n") .append("?svc ").append("<").append(RDF.type.getURI()).append(">").append(" ").append("<").append(MSM.Service....
[ "@", "Override", "public", "Set", "<", "URI", ">", "listServices", "(", ")", "{", "String", "queryStr", "=", "new", "StringBuilder", "(", ")", ".", "append", "(", "\"SELECT DISTINCT ?svc WHERE { \\n\"", ")", ".", "append", "(", "\" GRAPH ?g { \\n\"", ")", ".",...
Obtains a list of service URIs with all the services known to the system @return list of URIs with all the services in the registry
[ "Obtains", "a", "list", "of", "service", "URIs", "with", "all", "the", "services", "known", "to", "the", "system" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L145-L156
147,967
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.getService
@Override public Service getService(URI serviceUri) throws ServiceException { if (serviceUri == null || !serviceUri.isAbsolute()) { log.warn("The Service URI is either absent or relative. Provide an absolute URI"); return null; } OntModel model = null; try { ...
java
@Override public Service getService(URI serviceUri) throws ServiceException { if (serviceUri == null || !serviceUri.isAbsolute()) { log.warn("The Service URI is either absent or relative. Provide an absolute URI"); return null; } OntModel model = null; try { ...
[ "@", "Override", "public", "Service", "getService", "(", "URI", "serviceUri", ")", "throws", "ServiceException", "{", "if", "(", "serviceUri", "==", "null", "||", "!", "serviceUri", ".", "isAbsolute", "(", ")", ")", "{", "log", ".", "warn", "(", "\"The Ser...
Obtains the service description of the service identified by the URI @param serviceUri the URI of the service to obtain @return the service description if it exists or null otherwise @throws uk.ac.open.kmi.iserve.sal.exception.ServiceException
[ "Obtains", "the", "service", "description", "of", "the", "service", "identified", "by", "the", "URI" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L384-L407
147,968
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.getServices
@Override public Set<Service> getServices(Set<URI> serviceUris) throws ServiceException { ImmutableSet.Builder<Service> result = ImmutableSet.builder(); Service svc; for (URI svcUri : serviceUris) { svc = this.getService(svcUri); if (svc != null) { res...
java
@Override public Set<Service> getServices(Set<URI> serviceUris) throws ServiceException { ImmutableSet.Builder<Service> result = ImmutableSet.builder(); Service svc; for (URI svcUri : serviceUris) { svc = this.getService(svcUri); if (svc != null) { res...
[ "@", "Override", "public", "Set", "<", "Service", ">", "getServices", "(", "Set", "<", "URI", ">", "serviceUris", ")", "throws", "ServiceException", "{", "ImmutableSet", ".", "Builder", "<", "Service", ">", "result", "=", "ImmutableSet", ".", "builder", "(",...
Obtains the service descriptions for all the services identified by the URI Set @param serviceUris the URIs of the service to obtain @return the list of all services that could be obtained. If none could be obtained the list will be empty. @throws uk.ac.open.kmi.iserve.sal.exception.ServiceException
[ "Obtains", "the", "service", "descriptions", "for", "all", "the", "services", "identified", "by", "the", "URI", "Set" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L416-L427
147,969
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.clearServices
@Override public boolean clearServices() throws ServiceException { if (!this.graphStoreManager.canBeModified()) { log.warn("The dataset cannot be modified."); return false; } log.info("Clearing services registry."); this.graphStoreManager.clearDataset(); ...
java
@Override public boolean clearServices() throws ServiceException { if (!this.graphStoreManager.canBeModified()) { log.warn("The dataset cannot be modified."); return false; } log.info("Clearing services registry."); this.graphStoreManager.clearDataset(); ...
[ "@", "Override", "public", "boolean", "clearServices", "(", ")", "throws", "ServiceException", "{", "if", "(", "!", "this", ".", "graphStoreManager", ".", "canBeModified", "(", ")", ")", "{", "log", ".", "warn", "(", "\"The dataset cannot be modified.\"", ")", ...
Deletes all the services on the registry. This operation cannot be undone. Use with care. @return @throws uk.ac.open.kmi.iserve.sal.exception.ServiceException
[ "Deletes", "all", "the", "services", "on", "the", "registry", ".", "This", "operation", "cannot", "be", "undone", ".", "Use", "with", "care", "." ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L553-L568
147,970
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.serviceExists
@Override public boolean serviceExists(URI serviceUri) throws ServiceException { if (serviceUri == null || !serviceUri.isAbsolute()) { log.warn("The Service URI is either absent or relative. Provide an absolute URI"); return false; } URI graphUri; try { ...
java
@Override public boolean serviceExists(URI serviceUri) throws ServiceException { if (serviceUri == null || !serviceUri.isAbsolute()) { log.warn("The Service URI is either absent or relative. Provide an absolute URI"); return false; } URI graphUri; try { ...
[ "@", "Override", "public", "boolean", "serviceExists", "(", "URI", "serviceUri", ")", "throws", "ServiceException", "{", "if", "(", "serviceUri", "==", "null", "||", "!", "serviceUri", ".", "isAbsolute", "(", ")", ")", "{", "log", ".", "warn", "(", "\"The ...
Determines whether a service is known to the registry @param serviceUri the URI of the service being looked up @return True if it is registered in the server @throws uk.ac.open.kmi.iserve.sal.exception.ServiceException
[ "Determines", "whether", "a", "service", "is", "known", "to", "the", "registry" ]
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L577-L610
147,971
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.listServicesWithModelReference
@Override public Set<URI> listServicesWithModelReference(URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); } StringBuilder queryBuilder = new StringBuilder(); queryBuilder .append("PREFIX msm: <").append(MSM.getURI()).append(">...
java
@Override public Set<URI> listServicesWithModelReference(URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); } StringBuilder queryBuilder = new StringBuilder(); queryBuilder .append("PREFIX msm: <").append(MSM.getURI()).append(">...
[ "@", "Override", "public", "Set", "<", "URI", ">", "listServicesWithModelReference", "(", "URI", "modelReference", ")", "{", "if", "(", "modelReference", "==", "null", ")", "{", "return", "ImmutableSet", ".", "of", "(", ")", ";", "}", "StringBuilder", "query...
Given the URI of a modelReference, this method figures out all the services that have this as model references. This method uses SPARQL 1.1 to avoid using regexs for performance. @param modelReference the type of output sought for @return a Set of URIs of operations that generate this output type.
[ "Given", "the", "URI", "of", "a", "modelReference", "this", "method", "figures", "out", "all", "the", "services", "that", "have", "this", "as", "model", "references", ".", "This", "method", "uses", "SPARQL", "1", ".", "1", "to", "avoid", "using", "regexs",...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L621-L635
147,972
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.getMsmType
@Override public Set<URI> getMsmType(URI elementUri) { if (elementUri == null || !elementUri.isAbsolute()) { log.warn("The Element URI is either absent or relative. Provide an absolute URI"); return ImmutableSet.of(); } URI graphUri; try { graphUr...
java
@Override public Set<URI> getMsmType(URI elementUri) { if (elementUri == null || !elementUri.isAbsolute()) { log.warn("The Element URI is either absent or relative. Provide an absolute URI"); return ImmutableSet.of(); } URI graphUri; try { graphUr...
[ "@", "Override", "public", "Set", "<", "URI", ">", "getMsmType", "(", "URI", "elementUri", ")", "{", "if", "(", "elementUri", "==", "null", "||", "!", "elementUri", ".", "isAbsolute", "(", ")", ")", "{", "log", ".", "warn", "(", "\"The Element URI is eit...
Given the URI of an element, this method returns the URI of the element from the Minimal Service Model it corresponds to. That is, it will say if it is a service, operation, etc. This method uses SPARQL 1.1 to avoid using regexs for performance. @param elementUri the URI to get the element type for. @return the URI of...
[ "Given", "the", "URI", "of", "an", "element", "this", "method", "returns", "the", "URI", "of", "the", "element", "from", "the", "Minimal", "Service", "Model", "it", "corresponds", "to", ".", "That", "is", "it", "will", "say", "if", "it", "is", "a", "se...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L671-L701
147,973
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.listElementsAnnotatedWith
@Override public Set<URI> listElementsAnnotatedWith(URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); } String queryStr = new StringBuilder() .append("SELECT DISTINCT ?element WHERE { \n") .append(" GRAPH ?g { \n") ...
java
@Override public Set<URI> listElementsAnnotatedWith(URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); } String queryStr = new StringBuilder() .append("SELECT DISTINCT ?element WHERE { \n") .append(" GRAPH ?g { \n") ...
[ "@", "Override", "public", "Set", "<", "URI", ">", "listElementsAnnotatedWith", "(", "URI", "modelReference", ")", "{", "if", "(", "modelReference", "==", "null", ")", "{", "return", "ImmutableSet", ".", "of", "(", ")", ";", "}", "String", "queryStr", "=",...
Given a modelReference, this method finds all the elements that have been annotated with it. This method finds exact annotations. Note that the elements can be services, operations, inputs, etc. @param modelReference the actual annotation we are looking for @return a set of URIs for elements that have been annotated w...
[ "Given", "a", "modelReference", "this", "method", "finds", "all", "the", "elements", "that", "have", "been", "annotated", "with", "it", ".", "This", "method", "finds", "exact", "annotations", ".", "Note", "that", "the", "elements", "can", "be", "services", "...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L746-L761
147,974
kmi/iserve
iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java
ServiceManagerSparql.replaceUris
private void replaceUris(uk.ac.open.kmi.msm4j.Resource resource, URI newUriBase) throws URISyntaxException { // Exit early if (resource == null || newUriBase == null || !newUriBase.isAbsolute()) return; resource.setUri(URIUtil.replaceNamespace(resource....
java
private void replaceUris(uk.ac.open.kmi.msm4j.Resource resource, URI newUriBase) throws URISyntaxException { // Exit early if (resource == null || newUriBase == null || !newUriBase.isAbsolute()) return; resource.setUri(URIUtil.replaceNamespace(resource....
[ "private", "void", "replaceUris", "(", "uk", ".", "ac", ".", "open", ".", "kmi", ".", "msm4j", ".", "Resource", "resource", ",", "URI", "newUriBase", ")", "throws", "URISyntaxException", "{", "// Exit early", "if", "(", "resource", "==", "null", "||", "new...
Given a Resource and the new Uri base to use, modify each and every URL accordingly. This methods maintains the naming used by the service already. Recursive implementation that traverses the entire graph @param resource The service that will be modified @param newUriBase The new URI base
[ "Given", "a", "Resource", "and", "the", "new", "Uri", "base", "to", "use", "modify", "each", "and", "every", "URL", "accordingly", ".", "This", "methods", "maintains", "the", "naming", "used", "by", "the", "service", "already", ".", "Recursive", "implementat...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-sal-core/src/main/java/uk/ac/open/kmi/iserve/sal/manager/impl/ServiceManagerSparql.java#L883-L970
147,975
synchronoss/cpo-api
cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java
JdbcCpoXaAdapter.commit
@Override public void commit() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) ((JdbcCpoTrxAdapter)currentResource).commit(); }
java
@Override public void commit() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) ((JdbcCpoTrxAdapter)currentResource).commit(); }
[ "@", "Override", "public", "void", "commit", "(", ")", "throws", "CpoException", "{", "JdbcCpoAdapter", "currentResource", "=", "getCurrentResource", "(", ")", ";", "if", "(", "currentResource", "!=", "getLocalResource", "(", ")", ")", "(", "(", "JdbcCpoTrxAdapt...
Commits the current transaction behind the CpoTrxAdapter
[ "Commits", "the", "current", "transaction", "behind", "the", "CpoTrxAdapter" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java#L71-L76
147,976
synchronoss/cpo-api
cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java
JdbcCpoXaAdapter.rollback
@Override public void rollback() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) ((JdbcCpoTrxAdapter)currentResource).rollback(); }
java
@Override public void rollback() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) ((JdbcCpoTrxAdapter)currentResource).rollback(); }
[ "@", "Override", "public", "void", "rollback", "(", ")", "throws", "CpoException", "{", "JdbcCpoAdapter", "currentResource", "=", "getCurrentResource", "(", ")", ";", "if", "(", "currentResource", "!=", "getLocalResource", "(", ")", ")", "(", "(", "JdbcCpoTrxAda...
Rollback the current transaction behind the CpoTrxAdapter
[ "Rollback", "the", "current", "transaction", "behind", "the", "CpoTrxAdapter" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java#L81-L86
147,977
synchronoss/cpo-api
cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java
JdbcCpoXaAdapter.isClosed
@Override public boolean isClosed() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) return ((JdbcCpoTrxAdapter)currentResource).isClosed(); else return true; }
java
@Override public boolean isClosed() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) return ((JdbcCpoTrxAdapter)currentResource).isClosed(); else return true; }
[ "@", "Override", "public", "boolean", "isClosed", "(", ")", "throws", "CpoException", "{", "JdbcCpoAdapter", "currentResource", "=", "getCurrentResource", "(", ")", ";", "if", "(", "currentResource", "!=", "getLocalResource", "(", ")", ")", "return", "(", "(", ...
Returns true if the TrxAdapter has been closed, false if it is still active
[ "Returns", "true", "if", "the", "TrxAdapter", "has", "been", "closed", "false", "if", "it", "is", "still", "active" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java#L104-L111
147,978
synchronoss/cpo-api
cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java
JdbcCpoXaAdapter.isBusy
@Override public boolean isBusy() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) return ((JdbcCpoTrxAdapter)currentResource).isBusy(); else return false; }
java
@Override public boolean isBusy() throws CpoException { JdbcCpoAdapter currentResource = getCurrentResource(); if (currentResource != getLocalResource()) return ((JdbcCpoTrxAdapter)currentResource).isBusy(); else return false; }
[ "@", "Override", "public", "boolean", "isBusy", "(", ")", "throws", "CpoException", "{", "JdbcCpoAdapter", "currentResource", "=", "getCurrentResource", "(", ")", ";", "if", "(", "currentResource", "!=", "getLocalResource", "(", ")", ")", "return", "(", "(", "...
Returns true if the TrxAdapter is processing a request, false if it is not
[ "Returns", "true", "if", "the", "TrxAdapter", "is", "processing", "a", "request", "false", "if", "it", "is", "not" ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java#L116-L123
147,979
synchronoss/cpo-api
cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java
JdbcCpoXaAdapter.retrieveBean
@Override public <T> T retrieveBean(T bean) throws CpoException { return getCurrentResource().retrieveBean(bean); }
java
@Override public <T> T retrieveBean(T bean) throws CpoException { return getCurrentResource().retrieveBean(bean); }
[ "@", "Override", "public", "<", "T", ">", "T", "retrieveBean", "(", "T", "bean", ")", "throws", "CpoException", "{", "return", "getCurrentResource", "(", ")", ".", "retrieveBean", "(", "bean", ")", ";", "}" ]
Retrieves the Bean from the datasource. The assumption is that the bean exists in the datasource. If the retrieve function defined for these beans returns more than one row, an exception will be thrown. @param bean This is a bean that has been defined within the metadata of the datasource. If the class is not defined ...
[ "Retrieves", "the", "Bean", "from", "the", "datasource", ".", "The", "assumption", "is", "that", "the", "bean", "exists", "in", "the", "datasource", ".", "If", "the", "retrieve", "function", "defined", "for", "these", "beans", "returns", "more", "than", "one...
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-jdbc/src/main/java/org/synchronoss/cpo/jdbc/jta/JdbcCpoXaAdapter.java#L1273-L1276
147,980
mlhartme/sushi
src/main/java/net/oneandone/sushi/launcher/Launcher.java
Launcher.dir
public Launcher dir(FileNode dir) { return dir(dir.toPath().toFile(), dir.getWorld().getSettings().encoding); }
java
public Launcher dir(FileNode dir) { return dir(dir.toPath().toFile(), dir.getWorld().getSettings().encoding); }
[ "public", "Launcher", "dir", "(", "FileNode", "dir", ")", "{", "return", "dir", "(", "dir", ".", "toPath", "(", ")", ".", "toFile", "(", ")", ",", "dir", ".", "getWorld", "(", ")", ".", "getSettings", "(", ")", ".", "encoding", ")", ";", "}" ]
initializes the directory to execute the command in
[ "initializes", "the", "directory", "to", "execute", "the", "command", "in" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/launcher/Launcher.java#L85-L87
147,981
mlhartme/sushi
src/main/java/net/oneandone/sushi/launcher/Launcher.java
Launcher.exec
public void exec(Writer stdout, Writer stderr, boolean flushDest, Reader stdin, boolean stdinInherit) throws Failure { launch(stdout, stderr, flushDest, stdin, stdinInherit).await(); }
java
public void exec(Writer stdout, Writer stderr, boolean flushDest, Reader stdin, boolean stdinInherit) throws Failure { launch(stdout, stderr, flushDest, stdin, stdinInherit).await(); }
[ "public", "void", "exec", "(", "Writer", "stdout", ",", "Writer", "stderr", ",", "boolean", "flushDest", ",", "Reader", "stdin", ",", "boolean", "stdinInherit", ")", "throws", "Failure", "{", "launch", "(", "stdout", ",", "stderr", ",", "flushDest", ",", "...
Executes a command in this directory, wired with the specified streams. None of the argument stream is closed. @param stdout never null @param stderr may be null (which will redirect the error stream to stdout. @param flushDest true to flush stdout/stderr after every chunk read from the process @param stdin has to be ...
[ "Executes", "a", "command", "in", "this", "directory", "wired", "with", "the", "specified", "streams", ".", "None", "of", "the", "argument", "stream", "is", "closed", "." ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/launcher/Launcher.java#L131-L133
147,982
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/WNHierarchy.java
WNHierarchy.match
public char match(ISense source, ISense target) throws MatcherLibraryException { List<ISense> sourceList = getAncestors(source, depth); List<ISense> targetList = getAncestors(target, depth); targetList.retainAll(sourceList); if (targetList.size() > 0) return IMappingElem...
java
public char match(ISense source, ISense target) throws MatcherLibraryException { List<ISense> sourceList = getAncestors(source, depth); List<ISense> targetList = getAncestors(target, depth); targetList.retainAll(sourceList); if (targetList.size() > 0) return IMappingElem...
[ "public", "char", "match", "(", "ISense", "source", ",", "ISense", "target", ")", "throws", "MatcherLibraryException", "{", "List", "<", "ISense", ">", "sourceList", "=", "getAncestors", "(", "source", ",", "depth", ")", ";", "List", "<", "ISense", ">", "t...
Matches two strings with WNHeirarchy matcher. @param source gloss of source label @param target gloss of target label @return synonym or IDk relation
[ "Matches", "two", "strings", "with", "WNHeirarchy", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/WNHierarchy.java#L50-L58
147,983
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/string/NGram.java
NGram.match
public char match(String str1, String str2) { if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) { return IMappingElement.IDK; } String[] grams1 = generateNGrams(str1, gramlength); String[] grams2 = generateNGrams(str2, gramlength); in...
java
public char match(String str1, String str2) { if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) { return IMappingElement.IDK; } String[] grams1 = generateNGrams(str1, gramlength); String[] grams2 = generateNGrams(str2, gramlength); in...
[ "public", "char", "match", "(", "String", "str1", ",", "String", "str2", ")", "{", "if", "(", "null", "==", "str1", "||", "null", "==", "str2", "||", "0", "==", "str1", ".", "length", "(", ")", "||", "0", "==", "str2", ".", "length", "(", ")", ...
Computes the relation with NGram matcher. @param str1 the source input @param str2 the target input @return synonym or IDK relation
[ "Computes", "the", "relation", "with", "NGram", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/string/NGram.java#L54-L74
147,984
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/string/NGram.java
NGram.generateNGrams
private static String[] generateNGrams(String str, int gramlength) { if (str == null || str.length() == 0) return null; ArrayList<String> grams = new ArrayList<String>(); int length = str.length(); String gram; if (length < gramlength) { for (int i = 1; i <= len...
java
private static String[] generateNGrams(String str, int gramlength) { if (str == null || str.length() == 0) return null; ArrayList<String> grams = new ArrayList<String>(); int length = str.length(); String gram; if (length < gramlength) { for (int i = 1; i <= len...
[ "private", "static", "String", "[", "]", "generateNGrams", "(", "String", "str", ",", "int", "gramlength", ")", "{", "if", "(", "str", "==", "null", "||", "str", ".", "length", "(", ")", "==", "0", ")", "return", "null", ";", "ArrayList", "<", "Strin...
Produces nGrams for nGram matcher. @param str source string @param gramlength gram length @return ngrams
[ "Produces", "nGrams", "for", "nGram", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/string/NGram.java#L83-L110
147,985
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/commandline/CommandLine.java
CommandLine.forExecute
public static CommandLine forExecute(String rawCommandLine) { final List<String> elements = splitCommandLine(rawCommandLine); return new CommandLine(elements); }
java
public static CommandLine forExecute(String rawCommandLine) { final List<String> elements = splitCommandLine(rawCommandLine); return new CommandLine(elements); }
[ "public", "static", "CommandLine", "forExecute", "(", "String", "rawCommandLine", ")", "{", "final", "List", "<", "String", ">", "elements", "=", "splitCommandLine", "(", "rawCommandLine", ")", ";", "return", "new", "CommandLine", "(", "elements", ")", ";", "}...
Parse the command line for execution. If the given command line is empty, an empty command line will be returned. @param rawCommandLine Command line to parse. @return Parsed command line for execution.
[ "Parse", "the", "command", "line", "for", "execution", ".", "If", "the", "given", "command", "line", "is", "empty", "an", "empty", "command", "line", "will", "be", "returned", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/commandline/CommandLine.java#L108-L111
147,986
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/commandline/CommandLine.java
CommandLine.splitCommandLine
static List<String> splitCommandLine(String commandLine) { // Split the commandLine by whitespace. // Allow escaping single and double quoted strings. if (Objects.requireNonNull(commandLine, "commandLine").isEmpty()) { return new LinkedList<>(); } final List<String> ...
java
static List<String> splitCommandLine(String commandLine) { // Split the commandLine by whitespace. // Allow escaping single and double quoted strings. if (Objects.requireNonNull(commandLine, "commandLine").isEmpty()) { return new LinkedList<>(); } final List<String> ...
[ "static", "List", "<", "String", ">", "splitCommandLine", "(", "String", "commandLine", ")", "{", "// Split the commandLine by whitespace.", "// Allow escaping single and double quoted strings.", "if", "(", "Objects", ".", "requireNonNull", "(", "commandLine", ",", "\"comma...
Package-protected for testing
[ "Package", "-", "protected", "for", "testing" ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/commandline/CommandLine.java#L119-L166
147,987
eurekaclinical/aiw-i2b2-etl
src/main/java/edu/emory/cci/aiw/i2b2etl/dest/config/DatabaseSpec.java
DatabaseSpec.toConnectionSpec
public ConnectionSpec toConnectionSpec() { try { return getDatabaseAPI().newConnectionSpecInstance(getConnect(), getUser(), getPasswd(), false); } catch (InvalidConnectionSpecArguments ex) { throw new AssertionError(ex); } }
java
public ConnectionSpec toConnectionSpec() { try { return getDatabaseAPI().newConnectionSpecInstance(getConnect(), getUser(), getPasswd(), false); } catch (InvalidConnectionSpecArguments ex) { throw new AssertionError(ex); } }
[ "public", "ConnectionSpec", "toConnectionSpec", "(", ")", "{", "try", "{", "return", "getDatabaseAPI", "(", ")", ".", "newConnectionSpecInstance", "(", "getConnect", "(", ")", ",", "getUser", "(", ")", ",", "getPasswd", "(", ")", ",", "false", ")", ";", "}...
Gets a connection spec configured with the user, password and connection string specified. Connections created from this connection spec will have auto commit turned off. @return a {@link ConnectionSpec}.
[ "Gets", "a", "connection", "spec", "configured", "with", "the", "user", "password", "and", "connection", "string", "specified", ".", "Connections", "created", "from", "this", "connection", "spec", "will", "have", "auto", "commit", "turned", "off", "." ]
3eed6bda7755919cb9466d2930723a0f4748341a
https://github.com/eurekaclinical/aiw-i2b2-etl/blob/3eed6bda7755919cb9466d2930723a0f4748341a/src/main/java/edu/emory/cci/aiw/i2b2etl/dest/config/DatabaseSpec.java#L59-L65
147,988
pulse00/Composer-Java-Bindings
java-api/src/main/java/com/dubture/getcomposer/core/collection/Psr.java
Psr.add
public void add(Namespace namespace) { if (has(namespace)) { get(namespace.getNamespace()).addPaths(namespace.getPaths()); } else { namespace.addPropertyChangeListener(listener); set(namespace.getNamespace(), namespace); } }
java
public void add(Namespace namespace) { if (has(namespace)) { get(namespace.getNamespace()).addPaths(namespace.getPaths()); } else { namespace.addPropertyChangeListener(listener); set(namespace.getNamespace(), namespace); } }
[ "public", "void", "add", "(", "Namespace", "namespace", ")", "{", "if", "(", "has", "(", "namespace", ")", ")", "{", "get", "(", "namespace", ".", "getNamespace", "(", ")", ")", ".", "addPaths", "(", "namespace", ".", "getPaths", "(", ")", ")", ";", ...
Adds a new dependency. @param dependency the new dependency @return this
[ "Adds", "a", "new", "dependency", "." ]
0aa572567db37d047a41a57c32ede7c7fd5d4938
https://github.com/pulse00/Composer-Java-Bindings/blob/0aa572567db37d047a41a57c32ede7c7fd5d4938/java-api/src/main/java/com/dubture/getcomposer/core/collection/Psr.java#L83-L90
147,989
pulse00/Composer-Java-Bindings
java-api/src/main/java/com/dubture/getcomposer/core/collection/Psr.java
Psr.getNamespaceForPath
public Namespace getNamespaceForPath(String path) { for (Namespace nmspc : properties.values()) { if (nmspc.has(path)) { return nmspc; } } return null; }
java
public Namespace getNamespaceForPath(String path) { for (Namespace nmspc : properties.values()) { if (nmspc.has(path)) { return nmspc; } } return null; }
[ "public", "Namespace", "getNamespaceForPath", "(", "String", "path", ")", "{", "for", "(", "Namespace", "nmspc", ":", "properties", ".", "values", "(", ")", ")", "{", "if", "(", "nmspc", ".", "has", "(", "path", ")", ")", "{", "return", "nmspc", ";", ...
Returns the namespace for a given path or null if the path isn't found @param path the path @return the related namespace
[ "Returns", "the", "namespace", "for", "a", "given", "path", "or", "null", "if", "the", "path", "isn", "t", "found" ]
0aa572567db37d047a41a57c32ede7c7fd5d4938
https://github.com/pulse00/Composer-Java-Bindings/blob/0aa572567db37d047a41a57c32ede7c7fd5d4938/java-api/src/main/java/com/dubture/getcomposer/core/collection/Psr.java#L146-L154
147,990
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNGlossComparison.java
WNGlossComparison.match
public char match(ISense source, ISense target) { String sSynset = source.getGloss(); String tSynset = target.getGloss(); StringTokenizer stSource = new StringTokenizer(sSynset, " ,.\"'();"); String lemmaS, lemmaT; int counter = 0; while (stSource.hasMoreTokens()) {...
java
public char match(ISense source, ISense target) { String sSynset = source.getGloss(); String tSynset = target.getGloss(); StringTokenizer stSource = new StringTokenizer(sSynset, " ,.\"'();"); String lemmaS, lemmaT; int counter = 0; while (stSource.hasMoreTokens()) {...
[ "public", "char", "match", "(", "ISense", "source", ",", "ISense", "target", ")", "{", "String", "sSynset", "=", "source", ".", "getGloss", "(", ")", ";", "String", "tSynset", "=", "target", ".", "getGloss", "(", ")", ";", "StringTokenizer", "stSource", ...
Computes the relations with WordNet gloss comparison matcher. @param source gloss of source @param target gloss of target @return synonym or IDK relation
[ "Computes", "the", "relations", "with", "WordNet", "gloss", "comparison", "matcher", "." ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/gloss/WNGlossComparison.java#L55-L76
147,991
opendatatrentino/s-match
src/main/java/it/unitn/disi/smatch/matchers/element/string/Synonym.java
Synonym.match
public char match(String str1, String str2) { if (str1 == null || str2 == null) return IMappingElement.IDK; if (str1.equals(str2)) { return IMappingElement.EQUIVALENCE; } else return IMappingElement.IDK; }
java
public char match(String str1, String str2) { if (str1 == null || str2 == null) return IMappingElement.IDK; if (str1.equals(str2)) { return IMappingElement.EQUIVALENCE; } else return IMappingElement.IDK; }
[ "public", "char", "match", "(", "String", "str1", ",", "String", "str2", ")", "{", "if", "(", "str1", "==", "null", "||", "str2", "==", "null", ")", "return", "IMappingElement", ".", "IDK", ";", "if", "(", "str1", ".", "equals", "(", "str2", ")", "...
Computes relation with synonym matcher @param str1 the source string @param str2 the target string @return synonym or IDK relation
[ "Computes", "relation", "with", "synonym", "matcher" ]
ba5982ef406b7010c2f92592e43887a485935aa1
https://github.com/opendatatrentino/s-match/blob/ba5982ef406b7010c2f92592e43887a485935aa1/src/main/java/it/unitn/disi/smatch/matchers/element/string/Synonym.java#L23-L30
147,992
kmi/iserve
iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlLogicConceptMatcher.java
SparqlLogicConceptMatcher.getMatchType
private MatchType getMatchType(QuerySolution soln) { if (soln.contains(EXACT_VAR)) return LogicConceptMatchType.Exact; if (soln.contains(SUPER_VAR)) return LogicConceptMatchType.Plugin; if (soln.contains(SUB_VAR)) return LogicConceptMatchType.Subsume; ...
java
private MatchType getMatchType(QuerySolution soln) { if (soln.contains(EXACT_VAR)) return LogicConceptMatchType.Exact; if (soln.contains(SUPER_VAR)) return LogicConceptMatchType.Plugin; if (soln.contains(SUB_VAR)) return LogicConceptMatchType.Subsume; ...
[ "private", "MatchType", "getMatchType", "(", "QuerySolution", "soln", ")", "{", "if", "(", "soln", ".", "contains", "(", "EXACT_VAR", ")", ")", "return", "LogicConceptMatchType", ".", "Exact", ";", "if", "(", "soln", ".", "contains", "(", "SUPER_VAR", ")", ...
Obtain the type of Match. The bindings indicate the relationship between the destination and the origin That is, the subclasses of 'origin' will have a true value at binding 'sub' @param soln @return
[ "Obtain", "the", "type", "of", "Match", ".", "The", "bindings", "indicate", "the", "relationship", "between", "the", "destination", "and", "the", "origin", "That", "is", "the", "subclasses", "of", "origin", "will", "have", "a", "true", "value", "at", "bindin...
13e7016e64c1d5a539b838c6debf1a5cc4aefcb7
https://github.com/kmi/iserve/blob/13e7016e64c1d5a539b838c6debf1a5cc4aefcb7/iserve-semantic-discovery/src/main/java/uk/ac/open/kmi/iserve/discovery/disco/impl/SparqlLogicConceptMatcher.java#L359-L371
147,993
mlhartme/sushi
src/main/java/net/oneandone/sushi/xml/Builder.java
Builder.parseString
public Document parseString(String text) throws SAXException { try { return parse(new InputSource(new StringReader(text))); } catch (IOException e) { throw new RuntimeException("unexpected world exception while reading memory stream", e); } }
java
public Document parseString(String text) throws SAXException { try { return parse(new InputSource(new StringReader(text))); } catch (IOException e) { throw new RuntimeException("unexpected world exception while reading memory stream", e); } }
[ "public", "Document", "parseString", "(", "String", "text", ")", "throws", "SAXException", "{", "try", "{", "return", "parse", "(", "new", "InputSource", "(", "new", "StringReader", "(", "text", ")", ")", ")", ";", "}", "catch", "(", "IOException", "e", ...
This method is not called "parse" to avoid confusion with file parsing methods
[ "This", "method", "is", "not", "called", "parse", "to", "avoid", "confusion", "with", "file", "parsing", "methods" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/xml/Builder.java#L53-L59
147,994
mlhartme/sushi
src/main/java/net/oneandone/sushi/xml/Builder.java
Builder.literal
public Document literal(String text) { try { return parseString(text); } catch (SAXException e) { throw new RuntimeException(text, e); } }
java
public Document literal(String text) { try { return parseString(text); } catch (SAXException e) { throw new RuntimeException(text, e); } }
[ "public", "Document", "literal", "(", "String", "text", ")", "{", "try", "{", "return", "parseString", "(", "text", ")", ";", "}", "catch", "(", "SAXException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "text", ",", "e", ")", ";", "}", ...
asserts a valid document
[ "asserts", "a", "valid", "document" ]
4af33414b04bd58584d4febe5cc63ef6c7346a75
https://github.com/mlhartme/sushi/blob/4af33414b04bd58584d4febe5cc63ef6c7346a75/src/main/java/net/oneandone/sushi/xml/Builder.java#L62-L68
147,995
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/command/CliCommand.java
CliCommand.from
public static CliCommand from(Identifier identifier, List<CliParam> params, CommandExecutor executor) { final CliParamManager paramManager = new CliParamManagerImpl(params); return new CliCommand(identifier, paramManager, executor); }
java
public static CliCommand from(Identifier identifier, List<CliParam> params, CommandExecutor executor) { final CliParamManager paramManager = new CliParamManagerImpl(params); return new CliCommand(identifier, paramManager, executor); }
[ "public", "static", "CliCommand", "from", "(", "Identifier", "identifier", ",", "List", "<", "CliParam", ">", "params", ",", "CommandExecutor", "executor", ")", "{", "final", "CliParamManager", "paramManager", "=", "new", "CliParamManagerImpl", "(", "params", ")",...
Construct a CLI command from the given parameters. @param identifier Command identifier. @param params CLI parameters to use. @param executor Command executor. @return A CLI command constructed from the given parameters.
[ "Construct", "a", "CLI", "command", "from", "the", "given", "parameters", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/command/CliCommand.java#L118-L121
147,996
pulse00/Composer-Java-Bindings
java-api/src/main/java/com/dubture/getcomposer/core/ComposerPackage.java
ComposerPackage.getMinimumStability
public String getMinimumStability() { String stabi = getAsString("minimum-stability"); if (stabi == null) { return ComposerConstants.STABILITIES[0]; } else { return stabi; } }
java
public String getMinimumStability() { String stabi = getAsString("minimum-stability"); if (stabi == null) { return ComposerConstants.STABILITIES[0]; } else { return stabi; } }
[ "public", "String", "getMinimumStability", "(", ")", "{", "String", "stabi", "=", "getAsString", "(", "\"minimum-stability\"", ")", ";", "if", "(", "stabi", "==", "null", ")", "{", "return", "ComposerConstants", ".", "STABILITIES", "[", "0", "]", ";", "}", ...
Returns the minimum-stability property @return the minimum-stability
[ "Returns", "the", "minimum", "-", "stability", "property" ]
0aa572567db37d047a41a57c32ede7c7fd5d4938
https://github.com/pulse00/Composer-Java-Bindings/blob/0aa572567db37d047a41a57c32ede7c7fd5d4938/java-api/src/main/java/com/dubture/getcomposer/core/ComposerPackage.java#L177-L184
147,997
synchronoss/cpo-api
cpo-core/src/main/java/org/synchronoss/cpo/CpoAdapterFactoryManager.java
CpoAdapterFactoryManager.loadAdapters
synchronized public static void loadAdapters(String configFile) { InputStream is = CpoClassLoader.getResourceAsStream(configFile); if (is == null) { logger.info("Resource Not Found: " + configFile); try { is = new FileInputStream(configFile); } catch (FileNotFoundException fnfe) { ...
java
synchronized public static void loadAdapters(String configFile) { InputStream is = CpoClassLoader.getResourceAsStream(configFile); if (is == null) { logger.info("Resource Not Found: " + configFile); try { is = new FileInputStream(configFile); } catch (FileNotFoundException fnfe) { ...
[ "synchronized", "public", "static", "void", "loadAdapters", "(", "String", "configFile", ")", "{", "InputStream", "is", "=", "CpoClassLoader", ".", "getResourceAsStream", "(", "configFile", ")", ";", "if", "(", "is", "==", "null", ")", "{", "logger", ".", "i...
LoadAdapters is responsible for loading the config file and then subsequently loading all the metadata. @param configFile
[ "LoadAdapters", "is", "responsible", "for", "loading", "the", "config", "file", "and", "then", "subsequently", "loading", "all", "the", "metadata", "." ]
dc745aca3b3206abf80b85d9689b0132f5baa694
https://github.com/synchronoss/cpo-api/blob/dc745aca3b3206abf80b85d9689b0132f5baa694/cpo-core/src/main/java/org/synchronoss/cpo/CpoAdapterFactoryManager.java#L93-L159
147,998
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/output/CliPrinter.java
CliPrinter.printCommandInfo
public void printCommandInfo(CommandInfo info) { final PrintContext context = new PrintContext(); // Print command name : description final CliCommand command = info.getCommand(); printIdentifiable(context, command); // Print bound params. final BoundParams boundParams ...
java
public void printCommandInfo(CommandInfo info) { final PrintContext context = new PrintContext(); // Print command name : description final CliCommand command = info.getCommand(); printIdentifiable(context, command); // Print bound params. final BoundParams boundParams ...
[ "public", "void", "printCommandInfo", "(", "CommandInfo", "info", ")", "{", "final", "PrintContext", "context", "=", "new", "PrintContext", "(", ")", ";", "// Print command name : description", "final", "CliCommand", "command", "=", "info", ".", "getCommand", "(", ...
Print information about a command. Called to display assistance information about a command, or if a parse error occurred while parsing the command's parameters. @param info Command info to print.
[ "Print", "information", "about", "a", "command", ".", "Called", "to", "display", "assistance", "information", "about", "a", "command", "or", "if", "a", "parse", "error", "occurred", "while", "parsing", "the", "command", "s", "parameters", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/output/CliPrinter.java#L204-L214
147,999
ykrasik/jaci
jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/output/CliPrinter.java
CliPrinter.printSuggestions
public void printSuggestions(Suggestions suggestions) { final PrintContext context = new PrintContext(); context.append("Suggestions:").println(); context.incIndent(); printSuggestions0(context, suggestions.getDirectorySuggestions(), "Directories"); printSuggestions0(context, su...
java
public void printSuggestions(Suggestions suggestions) { final PrintContext context = new PrintContext(); context.append("Suggestions:").println(); context.incIndent(); printSuggestions0(context, suggestions.getDirectorySuggestions(), "Directories"); printSuggestions0(context, su...
[ "public", "void", "printSuggestions", "(", "Suggestions", "suggestions", ")", "{", "final", "PrintContext", "context", "=", "new", "PrintContext", "(", ")", ";", "context", ".", "append", "(", "\"Suggestions:\"", ")", ".", "println", "(", ")", ";", "context", ...
Print suggestions. @param suggestions Suggestions to print.
[ "Print", "suggestions", "." ]
4615edef7c76288ad5ea8d678132b161645ca1e3
https://github.com/ykrasik/jaci/blob/4615edef7c76288ad5ea8d678132b161645ca1e3/jaci-cli-core/src/main/java/com/github/ykrasik/jaci/cli/output/CliPrinter.java#L248-L258