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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
140,800 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.writeOntTxt | public void writeOntTxt(PrintWriter pw) {
for (String id : terms.keySet()) {
OntologyTerm term = terms.get(id);
Set<String> synSet = new HashSet<String>();
synSet.add(term.getName());
for (Synonym s : term.getSynonyms()) {
String st = s.getType();
if (id.startsWith("PTCO")
|| (st != null && !st
.matches(".*(InChI|SMILES|FORMULA).*"))) {
String synonym = s.getSyn();
if (!synonym.matches("\\S")) {// reject ontology terms
// consisting of a single
// letter as these produce too
// many false positives
synSet.add(synonym);
}
}
}
pw.println("[" + id + "]");
for (String syn : synSet)
pw.println(syn);
pw.println();
}
pw.flush();
} | java | public void writeOntTxt(PrintWriter pw) {
for (String id : terms.keySet()) {
OntologyTerm term = terms.get(id);
Set<String> synSet = new HashSet<String>();
synSet.add(term.getName());
for (Synonym s : term.getSynonyms()) {
String st = s.getType();
if (id.startsWith("PTCO")
|| (st != null && !st
.matches(".*(InChI|SMILES|FORMULA).*"))) {
String synonym = s.getSyn();
if (!synonym.matches("\\S")) {// reject ontology terms
// consisting of a single
// letter as these produce too
// many false positives
synSet.add(synonym);
}
}
}
pw.println("[" + id + "]");
for (String syn : synSet)
pw.println(syn);
pw.println();
}
pw.flush();
} | [
"public",
"void",
"writeOntTxt",
"(",
"PrintWriter",
"pw",
")",
"{",
"for",
"(",
"String",
"id",
":",
"terms",
".",
"keySet",
"(",
")",
")",
"{",
"OntologyTerm",
"term",
"=",
"terms",
".",
"get",
"(",
"id",
")",
";",
"Set",
"<",
"String",
">",
"synSet",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"synSet",
".",
"add",
"(",
"term",
".",
"getName",
"(",
")",
")",
";",
"for",
"(",
"Synonym",
"s",
":",
"term",
".",
"getSynonyms",
"(",
")",
")",
"{",
"String",
"st",
"=",
"s",
".",
"getType",
"(",
")",
";",
"if",
"(",
"id",
".",
"startsWith",
"(",
"\"PTCO\"",
")",
"||",
"(",
"st",
"!=",
"null",
"&&",
"!",
"st",
".",
"matches",
"(",
"\".*(InChI|SMILES|FORMULA).*\"",
")",
")",
")",
"{",
"String",
"synonym",
"=",
"s",
".",
"getSyn",
"(",
")",
";",
"if",
"(",
"!",
"synonym",
".",
"matches",
"(",
"\"\\\\S\"",
")",
")",
"{",
"// reject ontology terms",
"// consisting of a single",
"// letter as these produce too",
"// many false positives",
"synSet",
".",
"add",
"(",
"synonym",
")",
";",
"}",
"}",
"}",
"pw",
".",
"println",
"(",
"\"[\"",
"+",
"id",
"+",
"\"]\"",
")",
";",
"for",
"(",
"String",
"syn",
":",
"synSet",
")",
"pw",
".",
"println",
"(",
"syn",
")",
";",
"pw",
".",
"println",
"(",
")",
";",
"}",
"pw",
".",
"flush",
"(",
")",
";",
"}"
] | Writes a file suitable for use as onotology.txt.
@param pw
The PrintWriter to write to. | [
"Writes",
"a",
"file",
"suitable",
"for",
"use",
"as",
"onotology",
".",
"txt",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L136-L162 |
140,801 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getIdsForIdsWithAncestors | public Set<String> getIdsForIdsWithAncestors(Collection<String> termIds) {
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.addAll(termIds);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
if (terms.containsKey(id))
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | java | public Set<String> getIdsForIdsWithAncestors(Collection<String> termIds) {
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.addAll(termIds);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
if (terms.containsKey(id))
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | [
"public",
"Set",
"<",
"String",
">",
"getIdsForIdsWithAncestors",
"(",
"Collection",
"<",
"String",
">",
"termIds",
")",
"{",
"Stack",
"<",
"String",
">",
"idsToConsider",
"=",
"new",
"Stack",
"<",
"String",
">",
"(",
")",
";",
"idsToConsider",
".",
"addAll",
"(",
"termIds",
")",
";",
"Set",
"<",
"String",
">",
"resultIds",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"while",
"(",
"!",
"idsToConsider",
".",
"isEmpty",
"(",
")",
")",
"{",
"String",
"id",
"=",
"idsToConsider",
".",
"pop",
"(",
")",
";",
"if",
"(",
"!",
"resultIds",
".",
"contains",
"(",
"id",
")",
")",
"{",
"resultIds",
".",
"add",
"(",
"id",
")",
";",
"if",
"(",
"terms",
".",
"containsKey",
"(",
"id",
")",
")",
"idsToConsider",
".",
"addAll",
"(",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getIsA",
"(",
")",
")",
";",
"}",
"}",
"return",
"resultIds",
";",
"}"
] | Given a set of IDs, return a set that contains all of the IDs, the
parents of those IDs, the grandparents, etc.
@param termIds
The initial "seed" IDs.
@return The full set of IDs. | [
"Given",
"a",
"set",
"of",
"IDs",
"return",
"a",
"set",
"that",
"contains",
"all",
"of",
"the",
"IDs",
"the",
"parents",
"of",
"those",
"IDs",
"the",
"grandparents",
"etc",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L183-L196 |
140,802 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getIdsForIdWithAncestors | public Set<String> getIdsForIdWithAncestors(String termId) {
if (!terms.containsKey(termId))
return new HashSet<String>();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.add(termId);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | java | public Set<String> getIdsForIdWithAncestors(String termId) {
if (!terms.containsKey(termId))
return new HashSet<String>();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.add(termId);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | [
"public",
"Set",
"<",
"String",
">",
"getIdsForIdWithAncestors",
"(",
"String",
"termId",
")",
"{",
"if",
"(",
"!",
"terms",
".",
"containsKey",
"(",
"termId",
")",
")",
"return",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"Stack",
"<",
"String",
">",
"idsToConsider",
"=",
"new",
"Stack",
"<",
"String",
">",
"(",
")",
";",
"idsToConsider",
".",
"add",
"(",
"termId",
")",
";",
"Set",
"<",
"String",
">",
"resultIds",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"while",
"(",
"!",
"idsToConsider",
".",
"isEmpty",
"(",
")",
")",
"{",
"String",
"id",
"=",
"idsToConsider",
".",
"pop",
"(",
")",
";",
"if",
"(",
"!",
"resultIds",
".",
"contains",
"(",
"id",
")",
")",
"{",
"resultIds",
".",
"add",
"(",
"id",
")",
";",
"idsToConsider",
".",
"addAll",
"(",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getIsA",
"(",
")",
")",
";",
"}",
"}",
"return",
"resultIds",
";",
"}"
] | Given a single ID, return that ID, its parents, grandparents etc.
@param termId
The initial "seed" ID.
@return The full set of IDs. | [
"Given",
"a",
"single",
"ID",
"return",
"that",
"ID",
"its",
"parents",
"grandparents",
"etc",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L205-L219 |
140,803 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getIdsForTermWithAncestors | public Set<String> getIdsForTermWithAncestors(String s) {
if (!indexByName.containsKey(s))
return new HashSet<String>();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.addAll(getIdsForTerm(s));
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | java | public Set<String> getIdsForTermWithAncestors(String s) {
if (!indexByName.containsKey(s))
return new HashSet<String>();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.addAll(getIdsForTerm(s));
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
idsToConsider.addAll(terms.get(id).getIsA());
}
}
return resultIds;
} | [
"public",
"Set",
"<",
"String",
">",
"getIdsForTermWithAncestors",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"!",
"indexByName",
".",
"containsKey",
"(",
"s",
")",
")",
"return",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"Stack",
"<",
"String",
">",
"idsToConsider",
"=",
"new",
"Stack",
"<",
"String",
">",
"(",
")",
";",
"idsToConsider",
".",
"addAll",
"(",
"getIdsForTerm",
"(",
"s",
")",
")",
";",
"Set",
"<",
"String",
">",
"resultIds",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"while",
"(",
"!",
"idsToConsider",
".",
"isEmpty",
"(",
")",
")",
"{",
"String",
"id",
"=",
"idsToConsider",
".",
"pop",
"(",
")",
";",
"if",
"(",
"!",
"resultIds",
".",
"contains",
"(",
"id",
")",
")",
"{",
"resultIds",
".",
"add",
"(",
"id",
")",
";",
"idsToConsider",
".",
"addAll",
"(",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getIsA",
"(",
")",
")",
";",
"}",
"}",
"return",
"resultIds",
";",
"}"
] | Look up a term by name, and return its ID and the IDs of all of its
ancestors.
@param s
The term name to look up.
@return The full set of IDs, empty if the term was not found. | [
"Look",
"up",
"a",
"term",
"by",
"name",
"and",
"return",
"its",
"ID",
"and",
"the",
"IDs",
"of",
"all",
"of",
"its",
"ancestors",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L229-L243 |
140,804 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getIdsForIdWithDescendants | public Set<String> getIdsForIdWithDescendants(String s) {
buildIsTypeOf();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.add(s);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
if (terms.containsKey(id))
idsToConsider.addAll(terms.get(id).getIsTypeOf());
}
}
return resultIds;
} | java | public Set<String> getIdsForIdWithDescendants(String s) {
buildIsTypeOf();
Stack<String> idsToConsider = new Stack<String>();
idsToConsider.add(s);
Set<String> resultIds = new HashSet<String>();
while (!idsToConsider.isEmpty()) {
String id = idsToConsider.pop();
if (!resultIds.contains(id)) {
resultIds.add(id);
if (terms.containsKey(id))
idsToConsider.addAll(terms.get(id).getIsTypeOf());
}
}
return resultIds;
} | [
"public",
"Set",
"<",
"String",
">",
"getIdsForIdWithDescendants",
"(",
"String",
"s",
")",
"{",
"buildIsTypeOf",
"(",
")",
";",
"Stack",
"<",
"String",
">",
"idsToConsider",
"=",
"new",
"Stack",
"<",
"String",
">",
"(",
")",
";",
"idsToConsider",
".",
"add",
"(",
"s",
")",
";",
"Set",
"<",
"String",
">",
"resultIds",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"while",
"(",
"!",
"idsToConsider",
".",
"isEmpty",
"(",
")",
")",
"{",
"String",
"id",
"=",
"idsToConsider",
".",
"pop",
"(",
")",
";",
"if",
"(",
"!",
"resultIds",
".",
"contains",
"(",
"id",
")",
")",
"{",
"resultIds",
".",
"add",
"(",
"id",
")",
";",
"if",
"(",
"terms",
".",
"containsKey",
"(",
"id",
")",
")",
"idsToConsider",
".",
"addAll",
"(",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getIsTypeOf",
"(",
")",
")",
";",
"}",
"}",
"return",
"resultIds",
";",
"}"
] | Given a set of IDs, return a set that contains all of the IDs, the
children of those IDs, the grandchildren, etc.
@param s
The initial "seed" ID.
@return The full set of IDs. | [
"Given",
"a",
"set",
"of",
"IDs",
"return",
"a",
"set",
"that",
"contains",
"all",
"of",
"the",
"IDs",
"the",
"children",
"of",
"those",
"IDs",
"the",
"grandchildren",
"etc",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L253-L267 |
140,805 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getNameForID | public String getNameForID(String id) {
if (!terms.containsKey(id))
return null;
return terms.get(id).getName();
} | java | public String getNameForID(String id) {
if (!terms.containsKey(id))
return null;
return terms.get(id).getName();
} | [
"public",
"String",
"getNameForID",
"(",
"String",
"id",
")",
"{",
"if",
"(",
"!",
"terms",
".",
"containsKey",
"(",
"id",
")",
")",
"return",
"null",
";",
"return",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getName",
"(",
")",
";",
"}"
] | Looks up the name for an ontology ID.
@param id
The ontology ID.
@return The name, or null. | [
"Looks",
"up",
"the",
"name",
"for",
"an",
"ontology",
"ID",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L354-L358 |
140,806 | BlueBrain/bluima | modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java | OBOOntology.getDefinitionForID | public String getDefinitionForID(String id) {
if (!terms.containsKey(id))
return null;
return terms.get(id).getDef();
} | java | public String getDefinitionForID(String id) {
if (!terms.containsKey(id))
return null;
return terms.get(id).getDef();
} | [
"public",
"String",
"getDefinitionForID",
"(",
"String",
"id",
")",
"{",
"if",
"(",
"!",
"terms",
".",
"containsKey",
"(",
"id",
")",
")",
"return",
"null",
";",
"return",
"terms",
".",
"get",
"(",
"id",
")",
".",
"getDef",
"(",
")",
";",
"}"
] | Looks up the definition for an ontology ID.
@param id
The ontology ID.
@return The definition, or null. | [
"Looks",
"up",
"the",
"definition",
"for",
"an",
"ontology",
"ID",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L367-L371 |
140,807 | BlueBrain/bluima | modules/bluima_regions/src/main/java/w/ch/epfl/bbp/nlp/br/normalize/Normalize.java | Normalize.processMentionString | public Set<String> processMentionString(String mention) {
Set<String> result = new HashSet<String>();
result.add(mention);
for (MentionEditor editor : editors) {
Set<String> newResult = new HashSet<String>();
for (String mentionEdit : result) {
newResult.addAll(editor.editMention(mentionEdit));
}
result.addAll(newResult);
}
return result;
} | java | public Set<String> processMentionString(String mention) {
Set<String> result = new HashSet<String>();
result.add(mention);
for (MentionEditor editor : editors) {
Set<String> newResult = new HashSet<String>();
for (String mentionEdit : result) {
newResult.addAll(editor.editMention(mentionEdit));
}
result.addAll(newResult);
}
return result;
} | [
"public",
"Set",
"<",
"String",
">",
"processMentionString",
"(",
"String",
"mention",
")",
"{",
"Set",
"<",
"String",
">",
"result",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"result",
".",
"add",
"(",
"mention",
")",
";",
"for",
"(",
"MentionEditor",
"editor",
":",
"editors",
")",
"{",
"Set",
"<",
"String",
">",
"newResult",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"String",
"mentionEdit",
":",
"result",
")",
"{",
"newResult",
".",
"addAll",
"(",
"editor",
".",
"editMention",
"(",
"mentionEdit",
")",
")",
";",
"}",
"result",
".",
"addAll",
"(",
"newResult",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Run the input string through all of the mention editors to clean and edit
it | [
"Run",
"the",
"input",
"string",
"through",
"all",
"of",
"the",
"mention",
"editors",
"to",
"clean",
"and",
"edit",
"it"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_regions/src/main/java/w/ch/epfl/bbp/nlp/br/normalize/Normalize.java#L47-L58 |
140,808 | BlueBrain/bluima | utils/blue_commons/src/main/java/ch/epfl/bbp/Histogram.java | Histogram.add | public void add(T value) {
if (value == null)
return;
if (map.containsKey(value)) {
map.put(value, map.get(value) + 1);
} else {
map.put(value, 1l);
}
} | java | public void add(T value) {
if (value == null)
return;
if (map.containsKey(value)) {
map.put(value, map.get(value) + 1);
} else {
map.put(value, 1l);
}
} | [
"public",
"void",
"add",
"(",
"T",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"return",
";",
"if",
"(",
"map",
".",
"containsKey",
"(",
"value",
")",
")",
"{",
"map",
".",
"put",
"(",
"value",
",",
"map",
".",
"get",
"(",
"value",
")",
"+",
"1",
")",
";",
"}",
"else",
"{",
"map",
".",
"put",
"(",
"value",
",",
"1l",
")",
";",
"}",
"}"
] | Adds an occurence of this value into the Histogram
@param value | [
"Adds",
"an",
"occurence",
"of",
"this",
"value",
"into",
"the",
"Histogram"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/utils/blue_commons/src/main/java/ch/epfl/bbp/Histogram.java#L28-L37 |
140,809 | BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/PubmedXmlParser.java | PubmedXmlParser.parseAsArticles | public List<MedlineCitation> parseAsArticles(InputStream is) {
try {
MedlineCitationSet parse = (MedlineCitationSet) unmarshaller
.unmarshal(is);
return parse.getMedlineCitation();
} catch (Exception e) {
LOG.warn("could not parse article ", e);
return null;
} finally {
IOUtils.closeQuietly(is);
}
} | java | public List<MedlineCitation> parseAsArticles(InputStream is) {
try {
MedlineCitationSet parse = (MedlineCitationSet) unmarshaller
.unmarshal(is);
return parse.getMedlineCitation();
} catch (Exception e) {
LOG.warn("could not parse article ", e);
return null;
} finally {
IOUtils.closeQuietly(is);
}
} | [
"public",
"List",
"<",
"MedlineCitation",
">",
"parseAsArticles",
"(",
"InputStream",
"is",
")",
"{",
"try",
"{",
"MedlineCitationSet",
"parse",
"=",
"(",
"MedlineCitationSet",
")",
"unmarshaller",
".",
"unmarshal",
"(",
"is",
")",
";",
"return",
"parse",
".",
"getMedlineCitation",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"LOG",
".",
"warn",
"(",
"\"could not parse article \"",
",",
"e",
")",
";",
"return",
"null",
";",
"}",
"finally",
"{",
"IOUtils",
".",
"closeQuietly",
"(",
"is",
")",
";",
"}",
"}"
] | Parse Medline gzipped archives | [
"Parse",
"Medline",
"gzipped",
"archives"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/PubmedXmlParser.java#L97-L108 |
140,810 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java | FullTextLink.getUrl | public String getUrl() {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_url == null)
jcasType.jcas.throwFeatMissing("url", "de.julielab.jules.types.FullTextLink");
return jcasType.ll_cas.ll_getStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_url);} | java | public String getUrl() {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_url == null)
jcasType.jcas.throwFeatMissing("url", "de.julielab.jules.types.FullTextLink");
return jcasType.ll_cas.ll_getStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_url);} | [
"public",
"String",
"getUrl",
"(",
")",
"{",
"if",
"(",
"FullTextLink_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeat_url",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"url\"",
",",
"\"de.julielab.jules.types.FullTextLink\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeatCode_url",
")",
";",
"}"
] | getter for url - gets
@generated
@return value of the feature | [
"getter",
"for",
"url",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java#L85-L88 |
140,811 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java | FullTextLink.setUrl | public void setUrl(String v) {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_url == null)
jcasType.jcas.throwFeatMissing("url", "de.julielab.jules.types.FullTextLink");
jcasType.ll_cas.ll_setStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_url, v);} | java | public void setUrl(String v) {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_url == null)
jcasType.jcas.throwFeatMissing("url", "de.julielab.jules.types.FullTextLink");
jcasType.ll_cas.ll_setStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_url, v);} | [
"public",
"void",
"setUrl",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"FullTextLink_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeat_url",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"url\"",
",",
"\"de.julielab.jules.types.FullTextLink\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeatCode_url",
",",
"v",
")",
";",
"}"
] | setter for url - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"url",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java#L94-L97 |
140,812 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java | FullTextLink.getIconUrl | public String getIconUrl() {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_iconUrl == null)
jcasType.jcas.throwFeatMissing("iconUrl", "de.julielab.jules.types.FullTextLink");
return jcasType.ll_cas.ll_getStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_iconUrl);} | java | public String getIconUrl() {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_iconUrl == null)
jcasType.jcas.throwFeatMissing("iconUrl", "de.julielab.jules.types.FullTextLink");
return jcasType.ll_cas.ll_getStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_iconUrl);} | [
"public",
"String",
"getIconUrl",
"(",
")",
"{",
"if",
"(",
"FullTextLink_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeat_iconUrl",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"iconUrl\"",
",",
"\"de.julielab.jules.types.FullTextLink\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeatCode_iconUrl",
")",
";",
"}"
] | getter for iconUrl - gets
@generated
@return value of the feature | [
"getter",
"for",
"iconUrl",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java#L107-L110 |
140,813 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java | FullTextLink.setIconUrl | public void setIconUrl(String v) {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_iconUrl == null)
jcasType.jcas.throwFeatMissing("iconUrl", "de.julielab.jules.types.FullTextLink");
jcasType.ll_cas.ll_setStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_iconUrl, v);} | java | public void setIconUrl(String v) {
if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_iconUrl == null)
jcasType.jcas.throwFeatMissing("iconUrl", "de.julielab.jules.types.FullTextLink");
jcasType.ll_cas.ll_setStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_iconUrl, v);} | [
"public",
"void",
"setIconUrl",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"FullTextLink_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeat_iconUrl",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"iconUrl\"",
",",
"\"de.julielab.jules.types.FullTextLink\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"FullTextLink_Type",
")",
"jcasType",
")",
".",
"casFeatCode_iconUrl",
",",
"v",
")",
";",
"}"
] | setter for iconUrl - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"iconUrl",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLink.java#L116-L119 |
140,814 | BlueBrain/bluima | modules/bluima_regions/src/main/java/ubic/whitetext/BrainRegionPipes.java | BrainRegionPipes.addFullTextPipes | private static void addFullTextPipes(List<String> usedPipeNames,
List<Pipe> pipes) {
// blabla 24 24
pipes.add(new LongRegexSpaced("digit_then_other_then_digit", Pattern
.compile("\\d+[^\\d]+\\d+"), 2, 4));
// 30 mM K SO , 5 mM MgCl 6H O, 10 mM 24 24 22 HEPES
pipes.add(new LongRegexSpaced(
"digit_then_other_then_digit_then_other_then_digit", Pattern
.compile(".*\\d+[^\\d\\n]+\\d+[^\\d\\n]+\\d+.*"), 4, 9));
// n 19
// n 5
pipes.add(new LongRegexSpaced("n_space_digit", Pattern
.compile("n \\d+"), 2, 2));
pipes.add(new LongRegexSpaced("parenthesis_n_space_digit_parenthesis",
Pattern.compile("\\( n \\d+ \\)"), 3, 4));
pipes.add(new LongRegexSpaced("n_space_digit_parenthesis", Pattern
.compile("n \\d+ \\)"), 3, 4));
pipes.add(new LongRegexSpaced("parenthesis_n_space_digit", Pattern
.compile("\\( n \\d+"), 3, 4));
// Fig is never found in any lexicon
pipes.add(new RegexMatches("Figure", Pattern.compile(".*Fig.*")));
} | java | private static void addFullTextPipes(List<String> usedPipeNames,
List<Pipe> pipes) {
// blabla 24 24
pipes.add(new LongRegexSpaced("digit_then_other_then_digit", Pattern
.compile("\\d+[^\\d]+\\d+"), 2, 4));
// 30 mM K SO , 5 mM MgCl 6H O, 10 mM 24 24 22 HEPES
pipes.add(new LongRegexSpaced(
"digit_then_other_then_digit_then_other_then_digit", Pattern
.compile(".*\\d+[^\\d\\n]+\\d+[^\\d\\n]+\\d+.*"), 4, 9));
// n 19
// n 5
pipes.add(new LongRegexSpaced("n_space_digit", Pattern
.compile("n \\d+"), 2, 2));
pipes.add(new LongRegexSpaced("parenthesis_n_space_digit_parenthesis",
Pattern.compile("\\( n \\d+ \\)"), 3, 4));
pipes.add(new LongRegexSpaced("n_space_digit_parenthesis", Pattern
.compile("n \\d+ \\)"), 3, 4));
pipes.add(new LongRegexSpaced("parenthesis_n_space_digit", Pattern
.compile("\\( n \\d+"), 3, 4));
// Fig is never found in any lexicon
pipes.add(new RegexMatches("Figure", Pattern.compile(".*Fig.*")));
} | [
"private",
"static",
"void",
"addFullTextPipes",
"(",
"List",
"<",
"String",
">",
"usedPipeNames",
",",
"List",
"<",
"Pipe",
">",
"pipes",
")",
"{",
"// blabla 24 24",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"digit_then_other_then_digit\"",
",",
"Pattern",
".",
"compile",
"(",
"\"\\\\d+[^\\\\d]+\\\\d+\"",
")",
",",
"2",
",",
"4",
")",
")",
";",
"// 30 mM K SO , 5 mM MgCl 6H O, 10 mM 24 24 22 HEPES",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"digit_then_other_then_digit_then_other_then_digit\"",
",",
"Pattern",
".",
"compile",
"(",
"\".*\\\\d+[^\\\\d\\\\n]+\\\\d+[^\\\\d\\\\n]+\\\\d+.*\"",
")",
",",
"4",
",",
"9",
")",
")",
";",
"// n 19",
"// n 5",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"n_space_digit\"",
",",
"Pattern",
".",
"compile",
"(",
"\"n \\\\d+\"",
")",
",",
"2",
",",
"2",
")",
")",
";",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"parenthesis_n_space_digit_parenthesis\"",
",",
"Pattern",
".",
"compile",
"(",
"\"\\\\( n \\\\d+ \\\\)\"",
")",
",",
"3",
",",
"4",
")",
")",
";",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"n_space_digit_parenthesis\"",
",",
"Pattern",
".",
"compile",
"(",
"\"n \\\\d+ \\\\)\"",
")",
",",
"3",
",",
"4",
")",
")",
";",
"pipes",
".",
"add",
"(",
"new",
"LongRegexSpaced",
"(",
"\"parenthesis_n_space_digit\"",
",",
"Pattern",
".",
"compile",
"(",
"\"\\\\( n \\\\d+\"",
")",
",",
"3",
",",
"4",
")",
")",
";",
"// Fig is never found in any lexicon",
"pipes",
".",
"add",
"(",
"new",
"RegexMatches",
"(",
"\"Figure\"",
",",
"Pattern",
".",
"compile",
"(",
"\".*Fig.*\"",
")",
")",
")",
";",
"}"
] | Pipes added based on experience with full text | [
"Pipes",
"added",
"based",
"on",
"experience",
"with",
"full",
"text"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_regions/src/main/java/ubic/whitetext/BrainRegionPipes.java#L91-L116 |
140,815 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/mmax/MMAXAttribute.java | MMAXAttribute.getValue | public String getValue() {
if (MMAXAttribute_Type.featOkTst && ((MMAXAttribute_Type)jcasType).casFeat_value == null)
jcasType.jcas.throwFeatMissing("value", "de.julielab.jules.types.mmax.MMAXAttribute");
return jcasType.ll_cas.ll_getStringValue(addr, ((MMAXAttribute_Type)jcasType).casFeatCode_value);} | java | public String getValue() {
if (MMAXAttribute_Type.featOkTst && ((MMAXAttribute_Type)jcasType).casFeat_value == null)
jcasType.jcas.throwFeatMissing("value", "de.julielab.jules.types.mmax.MMAXAttribute");
return jcasType.ll_cas.ll_getStringValue(addr, ((MMAXAttribute_Type)jcasType).casFeatCode_value);} | [
"public",
"String",
"getValue",
"(",
")",
"{",
"if",
"(",
"MMAXAttribute_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MMAXAttribute_Type",
")",
"jcasType",
")",
".",
"casFeat_value",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"value\"",
",",
"\"de.julielab.jules.types.mmax.MMAXAttribute\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"MMAXAttribute_Type",
")",
"jcasType",
")",
".",
"casFeatCode_value",
")",
";",
"}"
] | getter for value - gets Value of the MMAX attribute
@generated
@return value of the feature | [
"getter",
"for",
"value",
"-",
"gets",
"Value",
"of",
"the",
"MMAX",
"attribute"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/mmax/MMAXAttribute.java#L108-L111 |
140,816 | BlueBrain/bluima | modules/bluima_banner/src/main/java/banner/tagging/CRFTagger.java | CRFTagger.write | public void write(File f)
{
try
{
ObjectOutputStream oos = new ObjectOutputStream(new GZIPOutputStream(new FileOutputStream(f)));
oos.writeObject(textDirection);
if (textDirection.doForward())
oos.writeObject(forwardCRF);
if (textDirection.doReverse())
oos.writeObject(reverseCRF);
oos.writeObject(basePipe);
oos.writeInt(order);
oos.writeBoolean(useFeatureInduction);
oos.writeObject(format);
oos.close();
}
catch (IOException e)
{
System.err.println("Exception writing file " + f + ": " + e);
}
} | java | public void write(File f)
{
try
{
ObjectOutputStream oos = new ObjectOutputStream(new GZIPOutputStream(new FileOutputStream(f)));
oos.writeObject(textDirection);
if (textDirection.doForward())
oos.writeObject(forwardCRF);
if (textDirection.doReverse())
oos.writeObject(reverseCRF);
oos.writeObject(basePipe);
oos.writeInt(order);
oos.writeBoolean(useFeatureInduction);
oos.writeObject(format);
oos.close();
}
catch (IOException e)
{
System.err.println("Exception writing file " + f + ": " + e);
}
} | [
"public",
"void",
"write",
"(",
"File",
"f",
")",
"{",
"try",
"{",
"ObjectOutputStream",
"oos",
"=",
"new",
"ObjectOutputStream",
"(",
"new",
"GZIPOutputStream",
"(",
"new",
"FileOutputStream",
"(",
"f",
")",
")",
")",
";",
"oos",
".",
"writeObject",
"(",
"textDirection",
")",
";",
"if",
"(",
"textDirection",
".",
"doForward",
"(",
")",
")",
"oos",
".",
"writeObject",
"(",
"forwardCRF",
")",
";",
"if",
"(",
"textDirection",
".",
"doReverse",
"(",
")",
")",
"oos",
".",
"writeObject",
"(",
"reverseCRF",
")",
";",
"oos",
".",
"writeObject",
"(",
"basePipe",
")",
";",
"oos",
".",
"writeInt",
"(",
"order",
")",
";",
"oos",
".",
"writeBoolean",
"(",
"useFeatureInduction",
")",
";",
"oos",
".",
"writeObject",
"(",
"format",
")",
";",
"oos",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Exception writing file \"",
"+",
"f",
"+",
"\": \"",
"+",
"e",
")",
";",
"}",
"}"
] | Serializes and writes this CRFTagger to the specified file
@param f
The file to write this CRFTagger to | [
"Serializes",
"and",
"writes",
"this",
"CRFTagger",
"to",
"the",
"specified",
"file"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_banner/src/main/java/banner/tagging/CRFTagger.java#L233-L253 |
140,817 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java | DictTerm.getEntityId | public String getEntityId() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_entityId == null)
jcasType.jcas.throwFeatMissing("entityId", "ch.epfl.bbp.uima.types.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_entityId);} | java | public String getEntityId() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_entityId == null)
jcasType.jcas.throwFeatMissing("entityId", "ch.epfl.bbp.uima.types.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_entityId);} | [
"public",
"String",
"getEntityId",
"(",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_entityId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"entityId\"",
",",
"\"ch.epfl.bbp.uima.types.DictTerm\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeatCode_entityId",
")",
";",
"}"
] | getter for entityId - gets
@generated
@return value of the feature | [
"getter",
"for",
"entityId",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java#L85-L88 |
140,818 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java | DictTerm.setEntityId | public void setEntityId(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_entityId == null)
jcasType.jcas.throwFeatMissing("entityId", "ch.epfl.bbp.uima.types.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_entityId, v);} | java | public void setEntityId(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_entityId == null)
jcasType.jcas.throwFeatMissing("entityId", "ch.epfl.bbp.uima.types.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_entityId, v);} | [
"public",
"void",
"setEntityId",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_entityId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"entityId\"",
",",
"\"ch.epfl.bbp.uima.types.DictTerm\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeatCode_entityId",
",",
"v",
")",
";",
"}"
] | setter for entityId - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"entityId",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java#L94-L97 |
140,819 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java | DictTerm.getAnnotType | public String getAnnotType() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_annotType == null)
jcasType.jcas.throwFeatMissing("annotType", "ch.epfl.bbp.uima.types.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_annotType);} | java | public String getAnnotType() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_annotType == null)
jcasType.jcas.throwFeatMissing("annotType", "ch.epfl.bbp.uima.types.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_annotType);} | [
"public",
"String",
"getAnnotType",
"(",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_annotType",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"annotType\"",
",",
"\"ch.epfl.bbp.uima.types.DictTerm\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeatCode_annotType",
")",
";",
"}"
] | getter for annotType - gets
@generated
@return value of the feature | [
"getter",
"for",
"annotType",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java#L107-L110 |
140,820 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java | DictTerm.setAnnotType | public void setAnnotType(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_annotType == null)
jcasType.jcas.throwFeatMissing("annotType", "ch.epfl.bbp.uima.types.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_annotType, v);} | java | public void setAnnotType(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_annotType == null)
jcasType.jcas.throwFeatMissing("annotType", "ch.epfl.bbp.uima.types.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_annotType, v);} | [
"public",
"void",
"setAnnotType",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_annotType",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"annotType\"",
",",
"\"ch.epfl.bbp.uima.types.DictTerm\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeatCode_annotType",
",",
"v",
")",
";",
"}"
] | setter for annotType - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"annotType",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DictTerm.java#L116-L119 |
140,821 | BlueBrain/bluima | modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java | BlueAnnotationViewGenerator.getTemplates | private Templates getTemplates(String filename) {
// InputStream is =
// AnnotationViewGenerator.class.getResourceAsStream(filename);
Templates templates;
InputStream is = null;
try {
is = ResourceHelper.getInputStream("viewer/" + filename);
templates = mTFactory.newTemplates(new StreamSource(is));
} catch (Exception e) {
throw new UIMARuntimeException(e);
} finally {
IOUtils.closeQuietly(is);
}
return templates;
} | java | private Templates getTemplates(String filename) {
// InputStream is =
// AnnotationViewGenerator.class.getResourceAsStream(filename);
Templates templates;
InputStream is = null;
try {
is = ResourceHelper.getInputStream("viewer/" + filename);
templates = mTFactory.newTemplates(new StreamSource(is));
} catch (Exception e) {
throw new UIMARuntimeException(e);
} finally {
IOUtils.closeQuietly(is);
}
return templates;
} | [
"private",
"Templates",
"getTemplates",
"(",
"String",
"filename",
")",
"{",
"// InputStream is =",
"// AnnotationViewGenerator.class.getResourceAsStream(filename);",
"Templates",
"templates",
";",
"InputStream",
"is",
"=",
"null",
";",
"try",
"{",
"is",
"=",
"ResourceHelper",
".",
"getInputStream",
"(",
"\"viewer/\"",
"+",
"filename",
")",
";",
"templates",
"=",
"mTFactory",
".",
"newTemplates",
"(",
"new",
"StreamSource",
"(",
"is",
")",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"UIMARuntimeException",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"IOUtils",
".",
"closeQuietly",
"(",
"is",
")",
";",
"}",
"return",
"templates",
";",
"}"
] | Parses an XML file and produces a Templates object.
@param filename
name of .xsl file, to be looked up in the classpath, under the
same package as this class.
@return Templates object usable for XSL transformation | [
"Parses",
"an",
"XML",
"file",
"and",
"produces",
"a",
"Templates",
"object",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java#L108-L122 |
140,822 | BlueBrain/bluima | modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java | BlueAnnotationViewGenerator.writeToFile | private void writeToFile(String filename, File outputDir) {
File outFile = new File(outputDir, filename);
OutputStream os;
try {
os = new FileOutputStream(outFile);
} catch (FileNotFoundException e) {
throw new UIMARuntimeException(e);
}
InputStream is = null;
try {
is = ResourceHelper.getInputStream("viewer/" + filename);
byte[] buf = new byte[1024];
int numRead;
while ((numRead = is.read(buf)) > 0) {
os.write(buf, 0, numRead);
}
} catch (IOException e) {
throw new UIMARuntimeException(e);
} finally {
try {
is.close();
} catch (IOException e) {
// ignore close errors
}
try {
os.close();
} catch (IOException e) {
// ignore close errors
}
}
} | java | private void writeToFile(String filename, File outputDir) {
File outFile = new File(outputDir, filename);
OutputStream os;
try {
os = new FileOutputStream(outFile);
} catch (FileNotFoundException e) {
throw new UIMARuntimeException(e);
}
InputStream is = null;
try {
is = ResourceHelper.getInputStream("viewer/" + filename);
byte[] buf = new byte[1024];
int numRead;
while ((numRead = is.read(buf)) > 0) {
os.write(buf, 0, numRead);
}
} catch (IOException e) {
throw new UIMARuntimeException(e);
} finally {
try {
is.close();
} catch (IOException e) {
// ignore close errors
}
try {
os.close();
} catch (IOException e) {
// ignore close errors
}
}
} | [
"private",
"void",
"writeToFile",
"(",
"String",
"filename",
",",
"File",
"outputDir",
")",
"{",
"File",
"outFile",
"=",
"new",
"File",
"(",
"outputDir",
",",
"filename",
")",
";",
"OutputStream",
"os",
";",
"try",
"{",
"os",
"=",
"new",
"FileOutputStream",
"(",
"outFile",
")",
";",
"}",
"catch",
"(",
"FileNotFoundException",
"e",
")",
"{",
"throw",
"new",
"UIMARuntimeException",
"(",
"e",
")",
";",
"}",
"InputStream",
"is",
"=",
"null",
";",
"try",
"{",
"is",
"=",
"ResourceHelper",
".",
"getInputStream",
"(",
"\"viewer/\"",
"+",
"filename",
")",
";",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"1024",
"]",
";",
"int",
"numRead",
";",
"while",
"(",
"(",
"numRead",
"=",
"is",
".",
"read",
"(",
"buf",
")",
")",
">",
"0",
")",
"{",
"os",
".",
"write",
"(",
"buf",
",",
"0",
",",
"numRead",
")",
";",
"}",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"UIMARuntimeException",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"try",
"{",
"is",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"// ignore close errors",
"}",
"try",
"{",
"os",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"// ignore close errors",
"}",
"}",
"}"
] | Writes a resource file to disk. The resource file is looked up in the
classpath
@param filename
name of the file, to be looked up in the classpath, under the
same package as this class.
@return outputDir directory of output file. Output file will be named the
same as the <code>filename</code> parameter. | [
"Writes",
"a",
"resource",
"file",
"to",
"disk",
".",
"The",
"resource",
"file",
"is",
"looked",
"up",
"in",
"the",
"classpath"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java#L134-L164 |
140,823 | BlueBrain/bluima | modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java | BlueAnnotationViewGenerator.autoGenerateStyleMap | public static String autoGenerateStyleMap(
AnalysisEngineMetaData aTaeMetaData) {
// styles used in automatically generated style maps
final String[] STYLES = { "color:black; background:lightblue;",
"color:black; background:lightgreen;",
"color:black; background:orange;",
"color:black; background:yellow;",
"color:black; background:pink;",
"color:black; background:salmon;",
"color:black; background:cyan;",
"color:black; background:violet;",
"color:black; background:tan;",
"color:white; background:brown;",
"color:white; background:blue;",
"color:white; background:green;",
"color:white; background:red;",
"color:white; background:mediumpurple;" };
// get list of output types from TAE
ArrayList outputTypes = new ArrayList();
Capability[] capabilities = aTaeMetaData.getCapabilities();
for (int i = 0; i < capabilities.length; i++) {
TypeOrFeature[] outputs = capabilities[i].getOutputs();
for (int j = 0; j < outputs.length; j++) {
if (outputs[j].isType()
&& !outputTypes.contains(outputs[j].getName())) {
outputTypes.add(outputs[j].getName());
}
}
}
// generate style map by mapping each type to a background color
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n");
buf.append("<styleMap>\n");
int i = 0;
Iterator it = outputTypes.iterator();
while (it.hasNext()) {
String outputType = (String) it.next();
String label = outputType;
int lastDot = outputType.lastIndexOf('.');
if (lastDot > -1) {
label = outputType.substring(lastDot + 1);
}
buf.append("<rule>\n");
buf.append("<pattern>");
buf.append(outputType);
buf.append("</pattern>\n");
buf.append("<label>");
buf.append(label);
buf.append("</label>\n");
buf.append("<style>");
buf.append(STYLES[i % STYLES.length]);
buf.append("</style>\n");
buf.append("</rule>\n");
i++;
}
buf.append("</styleMap>\n");
return buf.toString();
} | java | public static String autoGenerateStyleMap(
AnalysisEngineMetaData aTaeMetaData) {
// styles used in automatically generated style maps
final String[] STYLES = { "color:black; background:lightblue;",
"color:black; background:lightgreen;",
"color:black; background:orange;",
"color:black; background:yellow;",
"color:black; background:pink;",
"color:black; background:salmon;",
"color:black; background:cyan;",
"color:black; background:violet;",
"color:black; background:tan;",
"color:white; background:brown;",
"color:white; background:blue;",
"color:white; background:green;",
"color:white; background:red;",
"color:white; background:mediumpurple;" };
// get list of output types from TAE
ArrayList outputTypes = new ArrayList();
Capability[] capabilities = aTaeMetaData.getCapabilities();
for (int i = 0; i < capabilities.length; i++) {
TypeOrFeature[] outputs = capabilities[i].getOutputs();
for (int j = 0; j < outputs.length; j++) {
if (outputs[j].isType()
&& !outputTypes.contains(outputs[j].getName())) {
outputTypes.add(outputs[j].getName());
}
}
}
// generate style map by mapping each type to a background color
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n");
buf.append("<styleMap>\n");
int i = 0;
Iterator it = outputTypes.iterator();
while (it.hasNext()) {
String outputType = (String) it.next();
String label = outputType;
int lastDot = outputType.lastIndexOf('.');
if (lastDot > -1) {
label = outputType.substring(lastDot + 1);
}
buf.append("<rule>\n");
buf.append("<pattern>");
buf.append(outputType);
buf.append("</pattern>\n");
buf.append("<label>");
buf.append(label);
buf.append("</label>\n");
buf.append("<style>");
buf.append(STYLES[i % STYLES.length]);
buf.append("</style>\n");
buf.append("</rule>\n");
i++;
}
buf.append("</styleMap>\n");
return buf.toString();
} | [
"public",
"static",
"String",
"autoGenerateStyleMap",
"(",
"AnalysisEngineMetaData",
"aTaeMetaData",
")",
"{",
"// styles used in automatically generated style maps",
"final",
"String",
"[",
"]",
"STYLES",
"=",
"{",
"\"color:black; background:lightblue;\"",
",",
"\"color:black; background:lightgreen;\"",
",",
"\"color:black; background:orange;\"",
",",
"\"color:black; background:yellow;\"",
",",
"\"color:black; background:pink;\"",
",",
"\"color:black; background:salmon;\"",
",",
"\"color:black; background:cyan;\"",
",",
"\"color:black; background:violet;\"",
",",
"\"color:black; background:tan;\"",
",",
"\"color:white; background:brown;\"",
",",
"\"color:white; background:blue;\"",
",",
"\"color:white; background:green;\"",
",",
"\"color:white; background:red;\"",
",",
"\"color:white; background:mediumpurple;\"",
"}",
";",
"// get list of output types from TAE",
"ArrayList",
"outputTypes",
"=",
"new",
"ArrayList",
"(",
")",
";",
"Capability",
"[",
"]",
"capabilities",
"=",
"aTaeMetaData",
".",
"getCapabilities",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"capabilities",
".",
"length",
";",
"i",
"++",
")",
"{",
"TypeOrFeature",
"[",
"]",
"outputs",
"=",
"capabilities",
"[",
"i",
"]",
".",
"getOutputs",
"(",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"outputs",
".",
"length",
";",
"j",
"++",
")",
"{",
"if",
"(",
"outputs",
"[",
"j",
"]",
".",
"isType",
"(",
")",
"&&",
"!",
"outputTypes",
".",
"contains",
"(",
"outputs",
"[",
"j",
"]",
".",
"getName",
"(",
")",
")",
")",
"{",
"outputTypes",
".",
"add",
"(",
"outputs",
"[",
"j",
"]",
".",
"getName",
"(",
")",
")",
";",
"}",
"}",
"}",
"// generate style map by mapping each type to a background color",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"buf",
".",
"append",
"(",
"\"<?xml version=\\\"1.0\\\" encoding=\\\"ISO-8859-1\\\"?>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<styleMap>\\n\"",
")",
";",
"int",
"i",
"=",
"0",
";",
"Iterator",
"it",
"=",
"outputTypes",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"String",
"outputType",
"=",
"(",
"String",
")",
"it",
".",
"next",
"(",
")",
";",
"String",
"label",
"=",
"outputType",
";",
"int",
"lastDot",
"=",
"outputType",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
"lastDot",
">",
"-",
"1",
")",
"{",
"label",
"=",
"outputType",
".",
"substring",
"(",
"lastDot",
"+",
"1",
")",
";",
"}",
"buf",
".",
"append",
"(",
"\"<rule>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<pattern>\"",
")",
";",
"buf",
".",
"append",
"(",
"outputType",
")",
";",
"buf",
".",
"append",
"(",
"\"</pattern>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<label>\"",
")",
";",
"buf",
".",
"append",
"(",
"label",
")",
";",
"buf",
".",
"append",
"(",
"\"</label>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<style>\"",
")",
";",
"buf",
".",
"append",
"(",
"STYLES",
"[",
"i",
"%",
"STYLES",
".",
"length",
"]",
")",
";",
"buf",
".",
"append",
"(",
"\"</style>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"</rule>\\n\"",
")",
";",
"i",
"++",
";",
"}",
"buf",
".",
"append",
"(",
"\"</styleMap>\\n\"",
")",
";",
"return",
"buf",
".",
"toString",
"(",
")",
";",
"}"
] | Automatically generates a style map for the given text analysis engine.
The style map will be returned as an XML string.
@param aTaeMetaData
Metadata of the Text Analysis Engine whose outputs will be
viewed using the generated style map.
@return a String containing the XML style map | [
"Automatically",
"generates",
"a",
"style",
"map",
"for",
"the",
"given",
"text",
"analysis",
"engine",
".",
"The",
"style",
"map",
"will",
"be",
"returned",
"as",
"an",
"XML",
"string",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java#L242-L310 |
140,824 | BlueBrain/bluima | modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java | BlueAnnotationViewGenerator.autoGenerateStyleMap | public static String autoGenerateStyleMap(TypeSystemDescription aTypeSystem) {
// styles used in automatically generated style maps
final String[] STYLES = { "color:black; background:lightblue;",
"color:black; background:lightgreen;",
"color:black; background:orange;",
"color:black; background:yellow;",
"color:black; background:pink;",
"color:black; background:salmon;",
"color:black; background:cyan;",
"color:black; background:violet;",
"color:black; background:tan;",
"color:white; background:brown;",
"color:white; background:blue;",
"color:white; background:green;",
"color:white; background:red;",
"color:white; background:mediumpurple;" };
TypeDescription[] types = aTypeSystem.getTypes();
// generate style map by mapping each type to a background color
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n");
buf.append("<styleMap>\n");
for (int i = 0; i < types.length; i++) {
String outputType = types[i].getName();
String label = outputType;
int lastDot = outputType.lastIndexOf('.');
if (lastDot > -1) {
label = outputType.substring(lastDot + 1);
}
buf.append("<rule>\n");
buf.append("<pattern>");
buf.append(outputType);
buf.append("</pattern>\n");
buf.append("<label>");
buf.append(label);
buf.append("</label>\n");
buf.append("<style>");
buf.append(STYLES[i % STYLES.length]);
buf.append("</style>\n");
buf.append("</rule>\n");
}
buf.append("</styleMap>\n");
return buf.toString();
} | java | public static String autoGenerateStyleMap(TypeSystemDescription aTypeSystem) {
// styles used in automatically generated style maps
final String[] STYLES = { "color:black; background:lightblue;",
"color:black; background:lightgreen;",
"color:black; background:orange;",
"color:black; background:yellow;",
"color:black; background:pink;",
"color:black; background:salmon;",
"color:black; background:cyan;",
"color:black; background:violet;",
"color:black; background:tan;",
"color:white; background:brown;",
"color:white; background:blue;",
"color:white; background:green;",
"color:white; background:red;",
"color:white; background:mediumpurple;" };
TypeDescription[] types = aTypeSystem.getTypes();
// generate style map by mapping each type to a background color
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n");
buf.append("<styleMap>\n");
for (int i = 0; i < types.length; i++) {
String outputType = types[i].getName();
String label = outputType;
int lastDot = outputType.lastIndexOf('.');
if (lastDot > -1) {
label = outputType.substring(lastDot + 1);
}
buf.append("<rule>\n");
buf.append("<pattern>");
buf.append(outputType);
buf.append("</pattern>\n");
buf.append("<label>");
buf.append(label);
buf.append("</label>\n");
buf.append("<style>");
buf.append(STYLES[i % STYLES.length]);
buf.append("</style>\n");
buf.append("</rule>\n");
}
buf.append("</styleMap>\n");
return buf.toString();
} | [
"public",
"static",
"String",
"autoGenerateStyleMap",
"(",
"TypeSystemDescription",
"aTypeSystem",
")",
"{",
"// styles used in automatically generated style maps",
"final",
"String",
"[",
"]",
"STYLES",
"=",
"{",
"\"color:black; background:lightblue;\"",
",",
"\"color:black; background:lightgreen;\"",
",",
"\"color:black; background:orange;\"",
",",
"\"color:black; background:yellow;\"",
",",
"\"color:black; background:pink;\"",
",",
"\"color:black; background:salmon;\"",
",",
"\"color:black; background:cyan;\"",
",",
"\"color:black; background:violet;\"",
",",
"\"color:black; background:tan;\"",
",",
"\"color:white; background:brown;\"",
",",
"\"color:white; background:blue;\"",
",",
"\"color:white; background:green;\"",
",",
"\"color:white; background:red;\"",
",",
"\"color:white; background:mediumpurple;\"",
"}",
";",
"TypeDescription",
"[",
"]",
"types",
"=",
"aTypeSystem",
".",
"getTypes",
"(",
")",
";",
"// generate style map by mapping each type to a background color",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"buf",
".",
"append",
"(",
"\"<?xml version=\\\"1.0\\\" encoding=\\\"ISO-8859-1\\\"?>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<styleMap>\\n\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"types",
".",
"length",
";",
"i",
"++",
")",
"{",
"String",
"outputType",
"=",
"types",
"[",
"i",
"]",
".",
"getName",
"(",
")",
";",
"String",
"label",
"=",
"outputType",
";",
"int",
"lastDot",
"=",
"outputType",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
"lastDot",
">",
"-",
"1",
")",
"{",
"label",
"=",
"outputType",
".",
"substring",
"(",
"lastDot",
"+",
"1",
")",
";",
"}",
"buf",
".",
"append",
"(",
"\"<rule>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<pattern>\"",
")",
";",
"buf",
".",
"append",
"(",
"outputType",
")",
";",
"buf",
".",
"append",
"(",
"\"</pattern>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<label>\"",
")",
";",
"buf",
".",
"append",
"(",
"label",
")",
";",
"buf",
".",
"append",
"(",
"\"</label>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"<style>\"",
")",
";",
"buf",
".",
"append",
"(",
"STYLES",
"[",
"i",
"%",
"STYLES",
".",
"length",
"]",
")",
";",
"buf",
".",
"append",
"(",
"\"</style>\\n\"",
")",
";",
"buf",
".",
"append",
"(",
"\"</rule>\\n\"",
")",
";",
"}",
"buf",
".",
"append",
"(",
"\"</styleMap>\\n\"",
")",
";",
"return",
"buf",
".",
"toString",
"(",
")",
";",
"}"
] | Automatically generates a style map for the given type system. The style
map will be returned as an XML string.
@param aTypeSystem
the type system for which a style map will be generated
@return a String containing the XML style map | [
"Automatically",
"generates",
"a",
"style",
"map",
"for",
"the",
"given",
"type",
"system",
".",
"The",
"style",
"map",
"will",
"be",
"returned",
"as",
"an",
"XML",
"string",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/annotationviewer/BlueAnnotationViewGenerator.java#L321-L371 |
140,825 | BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/FileEventStream.java | FileEventStream.toLine | public static String toLine(Event event) {
StringBuffer sb = new StringBuffer();
sb.append(event.getOutcome());
String[] context = event.getContext();
for (int ci=0,cl=context.length;ci<cl;ci++) {
sb.append(" "+context[ci]);
}
sb.append(System.getProperty("line.separator"));
return sb.toString();
} | java | public static String toLine(Event event) {
StringBuffer sb = new StringBuffer();
sb.append(event.getOutcome());
String[] context = event.getContext();
for (int ci=0,cl=context.length;ci<cl;ci++) {
sb.append(" "+context[ci]);
}
sb.append(System.getProperty("line.separator"));
return sb.toString();
} | [
"public",
"static",
"String",
"toLine",
"(",
"Event",
"event",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"sb",
".",
"append",
"(",
"event",
".",
"getOutcome",
"(",
")",
")",
";",
"String",
"[",
"]",
"context",
"=",
"event",
".",
"getContext",
"(",
")",
";",
"for",
"(",
"int",
"ci",
"=",
"0",
",",
"cl",
"=",
"context",
".",
"length",
";",
"ci",
"<",
"cl",
";",
"ci",
"++",
")",
"{",
"sb",
".",
"append",
"(",
"\" \"",
"+",
"context",
"[",
"ci",
"]",
")",
";",
"}",
"sb",
".",
"append",
"(",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] | Generates a string representing the specified event.
@param event The event for which a string representation is needed.
@return A string representing the specified event. | [
"Generates",
"a",
"string",
"representing",
"the",
"specified",
"event",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/FileEventStream.java#L84-L93 |
140,826 | BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/FileEventStream.java | FileEventStream.main | public static void main(String[] args) throws IOException {
if (args.length == 0) {
System.err.println("Usage: FileEventStream eventfile [iterations cutoff]");
System.exit(1);
}
int ai=0;
String eventFile = args[ai++];
EventStream es = new FileEventStream(eventFile);
int iterations = 100;
int cutoff = 5;
if (ai < args.length) {
iterations = Integer.parseInt(args[ai++]);
cutoff = Integer.parseInt(args[ai++]);
}
GISModel model = GIS.trainModel(es,iterations,cutoff);
new SuffixSensitiveGISModelWriter(model, new File(eventFile+".bin.gz")).persist();
} | java | public static void main(String[] args) throws IOException {
if (args.length == 0) {
System.err.println("Usage: FileEventStream eventfile [iterations cutoff]");
System.exit(1);
}
int ai=0;
String eventFile = args[ai++];
EventStream es = new FileEventStream(eventFile);
int iterations = 100;
int cutoff = 5;
if (ai < args.length) {
iterations = Integer.parseInt(args[ai++]);
cutoff = Integer.parseInt(args[ai++]);
}
GISModel model = GIS.trainModel(es,iterations,cutoff);
new SuffixSensitiveGISModelWriter(model, new File(eventFile+".bin.gz")).persist();
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"IOException",
"{",
"if",
"(",
"args",
".",
"length",
"==",
"0",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Usage: FileEventStream eventfile [iterations cutoff]\"",
")",
";",
"System",
".",
"exit",
"(",
"1",
")",
";",
"}",
"int",
"ai",
"=",
"0",
";",
"String",
"eventFile",
"=",
"args",
"[",
"ai",
"++",
"]",
";",
"EventStream",
"es",
"=",
"new",
"FileEventStream",
"(",
"eventFile",
")",
";",
"int",
"iterations",
"=",
"100",
";",
"int",
"cutoff",
"=",
"5",
";",
"if",
"(",
"ai",
"<",
"args",
".",
"length",
")",
"{",
"iterations",
"=",
"Integer",
".",
"parseInt",
"(",
"args",
"[",
"ai",
"++",
"]",
")",
";",
"cutoff",
"=",
"Integer",
".",
"parseInt",
"(",
"args",
"[",
"ai",
"++",
"]",
")",
";",
"}",
"GISModel",
"model",
"=",
"GIS",
".",
"trainModel",
"(",
"es",
",",
"iterations",
",",
"cutoff",
")",
";",
"new",
"SuffixSensitiveGISModelWriter",
"(",
"model",
",",
"new",
"File",
"(",
"eventFile",
"+",
"\".bin.gz\"",
")",
")",
".",
"persist",
"(",
")",
";",
"}"
] | Trains and writes a model based on the events in the specified event file.
the name of the model created is based on the event file name.
@param args eventfile [iterations cuttoff]
@throws IOException when the eventfile can not be read or the model file can not be written. | [
"Trains",
"and",
"writes",
"a",
"model",
"based",
"on",
"the",
"events",
"in",
"the",
"specified",
"event",
"file",
".",
"the",
"name",
"of",
"the",
"model",
"created",
"is",
"based",
"on",
"the",
"event",
"file",
"name",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/FileEventStream.java#L101-L117 |
140,827 | BlueBrain/bluima | modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/Pipeline.java | Pipeline.addCapabilities | private void addCapabilities(CollectionReaderDescription crd) {
for (Capability capability : crd.getCollectionReaderMetaData()
.getCapabilities()) {
for (TypeOrFeature output : capability.getOutputs()) {
// LOG.info("add @TypeCapability: " + output.getName());
outputTypes.add(output.getName());
}
}
} | java | private void addCapabilities(CollectionReaderDescription crd) {
for (Capability capability : crd.getCollectionReaderMetaData()
.getCapabilities()) {
for (TypeOrFeature output : capability.getOutputs()) {
// LOG.info("add @TypeCapability: " + output.getName());
outputTypes.add(output.getName());
}
}
} | [
"private",
"void",
"addCapabilities",
"(",
"CollectionReaderDescription",
"crd",
")",
"{",
"for",
"(",
"Capability",
"capability",
":",
"crd",
".",
"getCollectionReaderMetaData",
"(",
")",
".",
"getCapabilities",
"(",
")",
")",
"{",
"for",
"(",
"TypeOrFeature",
"output",
":",
"capability",
".",
"getOutputs",
"(",
")",
")",
"{",
"// LOG.info(\"add @TypeCapability: \" + output.getName());",
"outputTypes",
".",
"add",
"(",
"output",
".",
"getName",
"(",
")",
")",
";",
"}",
"}",
"}"
] | Add this crd's capabilities for other downstream aeds. | [
"Add",
"this",
"crd",
"s",
"capabilities",
"for",
"other",
"downstream",
"aeds",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/Pipeline.java#L177-L186 |
140,828 | BlueBrain/bluima | modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/Pipeline.java | Pipeline.checkAndAddCapabilities | private void checkAndAddCapabilities(AnalysisEngineDescription aed) {
for (Capability capability : aed.getAnalysisEngineMetaData()
.getCapabilities()) {
for (TypeOrFeature input : capability.getInputs())
if (!outputTypes.contains(input.getName()))
LOG.error("AnalysisEngine "
+ aed.getAnnotatorImplementationName()
+ " is missing input @TypeCapability: "
+ input.getName());
}
for (Capability capability : aed.getAnalysisEngineMetaData()
.getCapabilities()) {
for (TypeOrFeature output : capability.getOutputs()) {
// LOG.info("add @TypeCapability: " + output.getName());
outputTypes.add(output.getName());
}
}
} | java | private void checkAndAddCapabilities(AnalysisEngineDescription aed) {
for (Capability capability : aed.getAnalysisEngineMetaData()
.getCapabilities()) {
for (TypeOrFeature input : capability.getInputs())
if (!outputTypes.contains(input.getName()))
LOG.error("AnalysisEngine "
+ aed.getAnnotatorImplementationName()
+ " is missing input @TypeCapability: "
+ input.getName());
}
for (Capability capability : aed.getAnalysisEngineMetaData()
.getCapabilities()) {
for (TypeOrFeature output : capability.getOutputs()) {
// LOG.info("add @TypeCapability: " + output.getName());
outputTypes.add(output.getName());
}
}
} | [
"private",
"void",
"checkAndAddCapabilities",
"(",
"AnalysisEngineDescription",
"aed",
")",
"{",
"for",
"(",
"Capability",
"capability",
":",
"aed",
".",
"getAnalysisEngineMetaData",
"(",
")",
".",
"getCapabilities",
"(",
")",
")",
"{",
"for",
"(",
"TypeOrFeature",
"input",
":",
"capability",
".",
"getInputs",
"(",
")",
")",
"if",
"(",
"!",
"outputTypes",
".",
"contains",
"(",
"input",
".",
"getName",
"(",
")",
")",
")",
"LOG",
".",
"error",
"(",
"\"AnalysisEngine \"",
"+",
"aed",
".",
"getAnnotatorImplementationName",
"(",
")",
"+",
"\" is missing input @TypeCapability: \"",
"+",
"input",
".",
"getName",
"(",
")",
")",
";",
"}",
"for",
"(",
"Capability",
"capability",
":",
"aed",
".",
"getAnalysisEngineMetaData",
"(",
")",
".",
"getCapabilities",
"(",
")",
")",
"{",
"for",
"(",
"TypeOrFeature",
"output",
":",
"capability",
".",
"getOutputs",
"(",
")",
")",
"{",
"// LOG.info(\"add @TypeCapability: \" + output.getName());",
"outputTypes",
".",
"add",
"(",
"output",
".",
"getName",
"(",
")",
")",
";",
"}",
"}",
"}"
] | Checks that this @param aed is provided with the right {@link Annotation}
s in the upstream of this pipeline, and prints an error log otherwise.
Add this aed's capabilities for other downstream aeds. | [
"Checks",
"that",
"this"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/Pipeline.java#L193-L210 |
140,829 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.getMostProbableSpeciesId | public String getMostProbableSpeciesId() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_mostProbableSpeciesId == null)
jcasType.jcas.throwFeatMissing("mostProbableSpeciesId", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_mostProbableSpeciesId);} | java | public String getMostProbableSpeciesId() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_mostProbableSpeciesId == null)
jcasType.jcas.throwFeatMissing("mostProbableSpeciesId", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_mostProbableSpeciesId);} | [
"public",
"String",
"getMostProbableSpeciesId",
"(",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_mostProbableSpeciesId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"mostProbableSpeciesId\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_mostProbableSpeciesId",
")",
";",
"}"
] | getter for mostProbableSpeciesId - gets This feature contains the value of the most probable NCBI Taxonomy Id for the annotated species occurence.
@generated
@return value of the feature | [
"getter",
"for",
"mostProbableSpeciesId",
"-",
"gets",
"This",
"feature",
"contains",
"the",
"value",
"of",
"the",
"most",
"probable",
"NCBI",
"Taxonomy",
"Id",
"for",
"the",
"annotated",
"species",
"occurence",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L86-L89 |
140,830 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.setMostProbableSpeciesId | public void setMostProbableSpeciesId(String v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_mostProbableSpeciesId == null)
jcasType.jcas.throwFeatMissing("mostProbableSpeciesId", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_mostProbableSpeciesId, v);} | java | public void setMostProbableSpeciesId(String v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_mostProbableSpeciesId == null)
jcasType.jcas.throwFeatMissing("mostProbableSpeciesId", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_mostProbableSpeciesId, v);} | [
"public",
"void",
"setMostProbableSpeciesId",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_mostProbableSpeciesId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"mostProbableSpeciesId\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_mostProbableSpeciesId",
",",
"v",
")",
";",
"}"
] | setter for mostProbableSpeciesId - sets This feature contains the value of the most probable NCBI Taxonomy Id for the annotated species occurence.
@generated
@param v value to set into the feature | [
"setter",
"for",
"mostProbableSpeciesId",
"-",
"sets",
"This",
"feature",
"contains",
"the",
"value",
"of",
"the",
"most",
"probable",
"NCBI",
"Taxonomy",
"Id",
"for",
"the",
"annotated",
"species",
"occurence",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L95-L98 |
140,831 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.getAllIdsString | public String getAllIdsString() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_allIdsString == null)
jcasType.jcas.throwFeatMissing("allIdsString", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_allIdsString);} | java | public String getAllIdsString() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_allIdsString == null)
jcasType.jcas.throwFeatMissing("allIdsString", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_allIdsString);} | [
"public",
"String",
"getAllIdsString",
"(",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_allIdsString",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"allIdsString\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_allIdsString",
")",
";",
"}"
] | getter for allIdsString - gets This feature contains all possible NCBI Taxonomy IDs.
@generated
@return value of the feature | [
"getter",
"for",
"allIdsString",
"-",
"gets",
"This",
"feature",
"contains",
"all",
"possible",
"NCBI",
"Taxonomy",
"IDs",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L108-L111 |
140,832 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.setAllIdsString | public void setAllIdsString(String v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_allIdsString == null)
jcasType.jcas.throwFeatMissing("allIdsString", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_allIdsString, v);} | java | public void setAllIdsString(String v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_allIdsString == null)
jcasType.jcas.throwFeatMissing("allIdsString", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setStringValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_allIdsString, v);} | [
"public",
"void",
"setAllIdsString",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_allIdsString",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"allIdsString\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_allIdsString",
",",
"v",
")",
";",
"}"
] | setter for allIdsString - sets This feature contains all possible NCBI Taxonomy IDs.
@generated
@param v value to set into the feature | [
"setter",
"for",
"allIdsString",
"-",
"sets",
"This",
"feature",
"contains",
"all",
"possible",
"NCBI",
"Taxonomy",
"IDs",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L117-L120 |
140,833 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.getAmbigous | public boolean getAmbigous() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_ambigous == null)
jcasType.jcas.throwFeatMissing("ambigous", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_ambigous);} | java | public boolean getAmbigous() {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_ambigous == null)
jcasType.jcas.throwFeatMissing("ambigous", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_ambigous);} | [
"public",
"boolean",
"getAmbigous",
"(",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_ambigous",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ambigous\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getBooleanValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_ambigous",
")",
";",
"}"
] | getter for ambigous - gets True if the species tagging is ambigous.
@generated
@return value of the feature | [
"getter",
"for",
"ambigous",
"-",
"gets",
"True",
"if",
"the",
"species",
"tagging",
"is",
"ambigous",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L130-L133 |
140,834 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java | LinnaeusSpecies.setAmbigous | public void setAmbigous(boolean v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_ambigous == null)
jcasType.jcas.throwFeatMissing("ambigous", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setBooleanValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_ambigous, v);} | java | public void setAmbigous(boolean v) {
if (LinnaeusSpecies_Type.featOkTst && ((LinnaeusSpecies_Type)jcasType).casFeat_ambigous == null)
jcasType.jcas.throwFeatMissing("ambigous", "ch.epfl.bbp.uima.types.LinnaeusSpecies");
jcasType.ll_cas.ll_setBooleanValue(addr, ((LinnaeusSpecies_Type)jcasType).casFeatCode_ambigous, v);} | [
"public",
"void",
"setAmbigous",
"(",
"boolean",
"v",
")",
"{",
"if",
"(",
"LinnaeusSpecies_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeat_ambigous",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ambigous\"",
",",
"\"ch.epfl.bbp.uima.types.LinnaeusSpecies\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setBooleanValue",
"(",
"addr",
",",
"(",
"(",
"LinnaeusSpecies_Type",
")",
"jcasType",
")",
".",
"casFeatCode_ambigous",
",",
"v",
")",
";",
"}"
] | setter for ambigous - sets True if the species tagging is ambigous.
@generated
@param v value to set into the feature | [
"setter",
"for",
"ambigous",
"-",
"sets",
"True",
"if",
"the",
"species",
"tagging",
"is",
"ambigous",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/LinnaeusSpecies.java#L139-L142 |
140,835 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.getMinStringSize | private double getMinStringSize(String[] tTokens, String[] uTokens) {
double tSize = 0, uSize = 0;
for (int i = 0; i < tTokens.length; i++) {
tSize += tTokens[i].length();
}
for (int i = 0; i < uTokens.length; i++) {
uSize += uTokens[i].length();
}
return Math.min(tSize, uSize);
} | java | private double getMinStringSize(String[] tTokens, String[] uTokens) {
double tSize = 0, uSize = 0;
for (int i = 0; i < tTokens.length; i++) {
tSize += tTokens[i].length();
}
for (int i = 0; i < uTokens.length; i++) {
uSize += uTokens[i].length();
}
return Math.min(tSize, uSize);
} | [
"private",
"double",
"getMinStringSize",
"(",
"String",
"[",
"]",
"tTokens",
",",
"String",
"[",
"]",
"uTokens",
")",
"{",
"double",
"tSize",
"=",
"0",
",",
"uSize",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"tTokens",
".",
"length",
";",
"i",
"++",
")",
"{",
"tSize",
"+=",
"tTokens",
"[",
"i",
"]",
".",
"length",
"(",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"uTokens",
".",
"length",
";",
"i",
"++",
")",
"{",
"uSize",
"+=",
"uTokens",
"[",
"i",
"]",
".",
"length",
"(",
")",
";",
"}",
"return",
"Math",
".",
"min",
"(",
"tSize",
",",
"uSize",
")",
";",
"}"
] | getMinStringSize count the number of characters in String array tTokens and
String array uTokens and return the minimun size.
@param tTokens String[]
@param uTokens String[]
@return double | [
"getMinStringSize",
"count",
"the",
"number",
"of",
"characters",
"in",
"String",
"array",
"tTokens",
"and",
"String",
"array",
"uTokens",
"and",
"return",
"the",
"minimun",
"size",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L102-L111 |
140,836 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.score | public double score(StringWrapper s, StringWrapper t) {
checkTrainingHasHappened(s,t);
UnitVector sBag = asUnitVector(s);
UnitVector tBag = asUnitVector(t);
if (s.unwrap().equals(t.unwrap())) {
return 1.0;
}
else {
String[] sTokens = getTokenArray(sBag),
tTokens = getTokenArray(tBag);
double[] sIdfArray = getIDFArray(sBag),
tIdfArray = getIDFArray(tBag);
return algorithm1(sTokens, tTokens, sIdfArray, tIdfArray);
}
} | java | public double score(StringWrapper s, StringWrapper t) {
checkTrainingHasHappened(s,t);
UnitVector sBag = asUnitVector(s);
UnitVector tBag = asUnitVector(t);
if (s.unwrap().equals(t.unwrap())) {
return 1.0;
}
else {
String[] sTokens = getTokenArray(sBag),
tTokens = getTokenArray(tBag);
double[] sIdfArray = getIDFArray(sBag),
tIdfArray = getIDFArray(tBag);
return algorithm1(sTokens, tTokens, sIdfArray, tIdfArray);
}
} | [
"public",
"double",
"score",
"(",
"StringWrapper",
"s",
",",
"StringWrapper",
"t",
")",
"{",
"checkTrainingHasHappened",
"(",
"s",
",",
"t",
")",
";",
"UnitVector",
"sBag",
"=",
"asUnitVector",
"(",
"s",
")",
";",
"UnitVector",
"tBag",
"=",
"asUnitVector",
"(",
"t",
")",
";",
"if",
"(",
"s",
".",
"unwrap",
"(",
")",
".",
"equals",
"(",
"t",
".",
"unwrap",
"(",
")",
")",
")",
"{",
"return",
"1.0",
";",
"}",
"else",
"{",
"String",
"[",
"]",
"sTokens",
"=",
"getTokenArray",
"(",
"sBag",
")",
",",
"tTokens",
"=",
"getTokenArray",
"(",
"tBag",
")",
";",
"double",
"[",
"]",
"sIdfArray",
"=",
"getIDFArray",
"(",
"sBag",
")",
",",
"tIdfArray",
"=",
"getIDFArray",
"(",
"tBag",
")",
";",
"return",
"algorithm1",
"(",
"sTokens",
",",
"tTokens",
",",
"sIdfArray",
",",
"tIdfArray",
")",
";",
"}",
"}"
] | getStringMetric computes the similarity between a pair of strings T and U.
@param T String
@param U String
@return double | [
"getStringMetric",
"computes",
"the",
"similarity",
"between",
"a",
"pair",
"of",
"strings",
"T",
"and",
"U",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L120-L134 |
140,837 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.getIDFArray | private double[] getIDFArray(BagOfTokens bag) {
double[] idfArray = new double[bag.size()];
Iterator it = bag.tokenIterator();
int i = 0;
while (it.hasNext()) {
Token tok = (Token) it.next();
idfArray[i] = bag.getWeight(tok);
i++;
}
return idfArray;
} | java | private double[] getIDFArray(BagOfTokens bag) {
double[] idfArray = new double[bag.size()];
Iterator it = bag.tokenIterator();
int i = 0;
while (it.hasNext()) {
Token tok = (Token) it.next();
idfArray[i] = bag.getWeight(tok);
i++;
}
return idfArray;
} | [
"private",
"double",
"[",
"]",
"getIDFArray",
"(",
"BagOfTokens",
"bag",
")",
"{",
"double",
"[",
"]",
"idfArray",
"=",
"new",
"double",
"[",
"bag",
".",
"size",
"(",
")",
"]",
";",
"Iterator",
"it",
"=",
"bag",
".",
"tokenIterator",
"(",
")",
";",
"int",
"i",
"=",
"0",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"Token",
"tok",
"=",
"(",
"Token",
")",
"it",
".",
"next",
"(",
")",
";",
"idfArray",
"[",
"i",
"]",
"=",
"bag",
".",
"getWeight",
"(",
"tok",
")",
";",
"i",
"++",
";",
"}",
"return",
"idfArray",
";",
"}"
] | getIDFArray normalize a vector of IDF weights.
@param bag BagOfTokens
@return double[] | [
"getIDFArray",
"normalize",
"a",
"vector",
"of",
"IDF",
"weights",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L191-L201 |
140,838 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.algorithm1 | private double algorithm1(String[] tTokens, String[] uTokens,
double[] tIdfArray, double[] uIdfArray) {
ArrayList candidateList = obtainCandidateList(tTokens, uTokens, tIdfArray,
uIdfArray);
sortCandidateList(candidateList);
double scoreValue = 0.0;
HashMap tMap = new HashMap(),
uMap = new HashMap();
Iterator it = candidateList.iterator();
while (it.hasNext()) {
Candidates actualCandidates = (Candidates) it.next();
Integer tPos = new Integer(actualCandidates.getTPos());
Integer uPos = new Integer(actualCandidates.getUPos());
if ( (!tMap.containsKey(tPos)) &&
(!uMap.containsKey(uPos))) {
double actualScore = actualCandidates.getScore();
scoreValue += actualScore;
tMap.put(tPos, null);
uMap.put(uPos, null);
}
}
return scoreValue;
} | java | private double algorithm1(String[] tTokens, String[] uTokens,
double[] tIdfArray, double[] uIdfArray) {
ArrayList candidateList = obtainCandidateList(tTokens, uTokens, tIdfArray,
uIdfArray);
sortCandidateList(candidateList);
double scoreValue = 0.0;
HashMap tMap = new HashMap(),
uMap = new HashMap();
Iterator it = candidateList.iterator();
while (it.hasNext()) {
Candidates actualCandidates = (Candidates) it.next();
Integer tPos = new Integer(actualCandidates.getTPos());
Integer uPos = new Integer(actualCandidates.getUPos());
if ( (!tMap.containsKey(tPos)) &&
(!uMap.containsKey(uPos))) {
double actualScore = actualCandidates.getScore();
scoreValue += actualScore;
tMap.put(tPos, null);
uMap.put(uPos, null);
}
}
return scoreValue;
} | [
"private",
"double",
"algorithm1",
"(",
"String",
"[",
"]",
"tTokens",
",",
"String",
"[",
"]",
"uTokens",
",",
"double",
"[",
"]",
"tIdfArray",
",",
"double",
"[",
"]",
"uIdfArray",
")",
"{",
"ArrayList",
"candidateList",
"=",
"obtainCandidateList",
"(",
"tTokens",
",",
"uTokens",
",",
"tIdfArray",
",",
"uIdfArray",
")",
";",
"sortCandidateList",
"(",
"candidateList",
")",
";",
"double",
"scoreValue",
"=",
"0.0",
";",
"HashMap",
"tMap",
"=",
"new",
"HashMap",
"(",
")",
",",
"uMap",
"=",
"new",
"HashMap",
"(",
")",
";",
"Iterator",
"it",
"=",
"candidateList",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"Candidates",
"actualCandidates",
"=",
"(",
"Candidates",
")",
"it",
".",
"next",
"(",
")",
";",
"Integer",
"tPos",
"=",
"new",
"Integer",
"(",
"actualCandidates",
".",
"getTPos",
"(",
")",
")",
";",
"Integer",
"uPos",
"=",
"new",
"Integer",
"(",
"actualCandidates",
".",
"getUPos",
"(",
")",
")",
";",
"if",
"(",
"(",
"!",
"tMap",
".",
"containsKey",
"(",
"tPos",
")",
")",
"&&",
"(",
"!",
"uMap",
".",
"containsKey",
"(",
"uPos",
")",
")",
")",
"{",
"double",
"actualScore",
"=",
"actualCandidates",
".",
"getScore",
"(",
")",
";",
"scoreValue",
"+=",
"actualScore",
";",
"tMap",
".",
"put",
"(",
"tPos",
",",
"null",
")",
";",
"uMap",
".",
"put",
"(",
"uPos",
",",
"null",
")",
";",
"}",
"}",
"return",
"scoreValue",
";",
"}"
] | algorithm1 select the considered most appropiate token pairs and compute
the sum of the selected pairs.
@param tTokens String[]
@param uTokens String[]
@param tIdfArray double[]
@param uIdfArray double[]
@return double | [
"algorithm1",
"select",
"the",
"considered",
"most",
"appropiate",
"token",
"pairs",
"and",
"compute",
"the",
"sum",
"of",
"the",
"selected",
"pairs",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L213-L235 |
140,839 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.obtainCandidateList | private ArrayList obtainCandidateList(String[] tTokens, String[] uTokens,
double[] tIdfArray, double[] uIdfArray) {
ArrayList candidateList = new ArrayList();
double minStringSize = getMinStringSize(tTokens, uTokens);
for (int t = 0; t < tTokens.length; t++) {
int lastTr = -1;
for (int u = 0, flag = 0; u < uTokens.length && flag == 0; u++) {
int tr = Math.abs(t - u);
if (lastTr >= 0 && lastTr < tr) {
flag = 1;
}
else {
String tTok = tTokens[t], uTok = uTokens[u];
double innerScore = tokenDistance.score(tTok,
uTok);
if (innerScore >= 0.0) {
double matched = 0.0;
if (innerScore == 1.0) {
matched = tTokens[t].length();
}
else {
matched = ( (TagLinkToken) tokenDistance).getMatched();
}
double weightMatched = matched / minStringSize,
weightTFIDF = tIdfArray[t] * uIdfArray[u],
weight = (weightTFIDF + weightMatched) / 2.0;
if (innerScore == 1) {
lastTr = tr;
}
candidateList.add(new Candidates(t, u, innerScore * weight));
}
}
}
}
return candidateList;
} | java | private ArrayList obtainCandidateList(String[] tTokens, String[] uTokens,
double[] tIdfArray, double[] uIdfArray) {
ArrayList candidateList = new ArrayList();
double minStringSize = getMinStringSize(tTokens, uTokens);
for (int t = 0; t < tTokens.length; t++) {
int lastTr = -1;
for (int u = 0, flag = 0; u < uTokens.length && flag == 0; u++) {
int tr = Math.abs(t - u);
if (lastTr >= 0 && lastTr < tr) {
flag = 1;
}
else {
String tTok = tTokens[t], uTok = uTokens[u];
double innerScore = tokenDistance.score(tTok,
uTok);
if (innerScore >= 0.0) {
double matched = 0.0;
if (innerScore == 1.0) {
matched = tTokens[t].length();
}
else {
matched = ( (TagLinkToken) tokenDistance).getMatched();
}
double weightMatched = matched / minStringSize,
weightTFIDF = tIdfArray[t] * uIdfArray[u],
weight = (weightTFIDF + weightMatched) / 2.0;
if (innerScore == 1) {
lastTr = tr;
}
candidateList.add(new Candidates(t, u, innerScore * weight));
}
}
}
}
return candidateList;
} | [
"private",
"ArrayList",
"obtainCandidateList",
"(",
"String",
"[",
"]",
"tTokens",
",",
"String",
"[",
"]",
"uTokens",
",",
"double",
"[",
"]",
"tIdfArray",
",",
"double",
"[",
"]",
"uIdfArray",
")",
"{",
"ArrayList",
"candidateList",
"=",
"new",
"ArrayList",
"(",
")",
";",
"double",
"minStringSize",
"=",
"getMinStringSize",
"(",
"tTokens",
",",
"uTokens",
")",
";",
"for",
"(",
"int",
"t",
"=",
"0",
";",
"t",
"<",
"tTokens",
".",
"length",
";",
"t",
"++",
")",
"{",
"int",
"lastTr",
"=",
"-",
"1",
";",
"for",
"(",
"int",
"u",
"=",
"0",
",",
"flag",
"=",
"0",
";",
"u",
"<",
"uTokens",
".",
"length",
"&&",
"flag",
"==",
"0",
";",
"u",
"++",
")",
"{",
"int",
"tr",
"=",
"Math",
".",
"abs",
"(",
"t",
"-",
"u",
")",
";",
"if",
"(",
"lastTr",
">=",
"0",
"&&",
"lastTr",
"<",
"tr",
")",
"{",
"flag",
"=",
"1",
";",
"}",
"else",
"{",
"String",
"tTok",
"=",
"tTokens",
"[",
"t",
"]",
",",
"uTok",
"=",
"uTokens",
"[",
"u",
"]",
";",
"double",
"innerScore",
"=",
"tokenDistance",
".",
"score",
"(",
"tTok",
",",
"uTok",
")",
";",
"if",
"(",
"innerScore",
">=",
"0.0",
")",
"{",
"double",
"matched",
"=",
"0.0",
";",
"if",
"(",
"innerScore",
"==",
"1.0",
")",
"{",
"matched",
"=",
"tTokens",
"[",
"t",
"]",
".",
"length",
"(",
")",
";",
"}",
"else",
"{",
"matched",
"=",
"(",
"(",
"TagLinkToken",
")",
"tokenDistance",
")",
".",
"getMatched",
"(",
")",
";",
"}",
"double",
"weightMatched",
"=",
"matched",
"/",
"minStringSize",
",",
"weightTFIDF",
"=",
"tIdfArray",
"[",
"t",
"]",
"*",
"uIdfArray",
"[",
"u",
"]",
",",
"weight",
"=",
"(",
"weightTFIDF",
"+",
"weightMatched",
")",
"/",
"2.0",
";",
"if",
"(",
"innerScore",
"==",
"1",
")",
"{",
"lastTr",
"=",
"tr",
";",
"}",
"candidateList",
".",
"add",
"(",
"new",
"Candidates",
"(",
"t",
",",
"u",
",",
"innerScore",
"*",
"weight",
")",
")",
";",
"}",
"}",
"}",
"}",
"return",
"candidateList",
";",
"}"
] | obtainCandidateList set a candidate list of pair of tokens. Sometimes it
will not compute all candidate pairs in oder to reduce the computational
cost.
@param tTokens String[]
@param uTokens String[]
@param tIdfArray double[]
@param uIdfArray double[]
@return ArrayList | [
"obtainCandidateList",
"set",
"a",
"candidate",
"list",
"of",
"pair",
"of",
"tokens",
".",
"Sometimes",
"it",
"will",
"not",
"compute",
"all",
"candidate",
"pairs",
"in",
"oder",
"to",
"reduce",
"the",
"computational",
"cost",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L373-L408 |
140,840 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.sortCandidateList | private void sortCandidateList(ArrayList list) {
java.util.Collections.sort(list, new java.util.Comparator() {
public int compare(Object o1, Object o2) {
// First sort, by score in index
double scoreT = ( (Candidates) o1).getScore(),
scoreU = ( (Candidates) o2).getScore();
if (scoreU > scoreT) {
return 1;
}
if (scoreU < scoreT) {
return -1;
}
return 0;
}
}
);
} | java | private void sortCandidateList(ArrayList list) {
java.util.Collections.sort(list, new java.util.Comparator() {
public int compare(Object o1, Object o2) {
// First sort, by score in index
double scoreT = ( (Candidates) o1).getScore(),
scoreU = ( (Candidates) o2).getScore();
if (scoreU > scoreT) {
return 1;
}
if (scoreU < scoreT) {
return -1;
}
return 0;
}
}
);
} | [
"private",
"void",
"sortCandidateList",
"(",
"ArrayList",
"list",
")",
"{",
"java",
".",
"util",
".",
"Collections",
".",
"sort",
"(",
"list",
",",
"new",
"java",
".",
"util",
".",
"Comparator",
"(",
")",
"{",
"public",
"int",
"compare",
"(",
"Object",
"o1",
",",
"Object",
"o2",
")",
"{",
"// First sort, by score in index\r",
"double",
"scoreT",
"=",
"(",
"(",
"Candidates",
")",
"o1",
")",
".",
"getScore",
"(",
")",
",",
"scoreU",
"=",
"(",
"(",
"Candidates",
")",
"o2",
")",
".",
"getScore",
"(",
")",
";",
"if",
"(",
"scoreU",
">",
"scoreT",
")",
"{",
"return",
"1",
";",
"}",
"if",
"(",
"scoreU",
"<",
"scoreT",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"0",
";",
"}",
"}",
")",
";",
"}"
] | sortCandidateList sort a list of candidate pair of tokens.
@param tokenArray String[]
@return float[] | [
"sortCandidateList",
"sort",
"a",
"list",
"of",
"candidate",
"pair",
"of",
"tokens",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L416-L432 |
140,841 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java | TagLink.round | private double round(double number) {
int round = (int) (number * 1000.00);
double rest = (number * 1000.00) - round;
if (rest >= 0.5) {
round++;
}
return (round / 1000.00);
} | java | private double round(double number) {
int round = (int) (number * 1000.00);
double rest = (number * 1000.00) - round;
if (rest >= 0.5) {
round++;
}
return (round / 1000.00);
} | [
"private",
"double",
"round",
"(",
"double",
"number",
")",
"{",
"int",
"round",
"=",
"(",
"int",
")",
"(",
"number",
"*",
"1000.00",
")",
";",
"double",
"rest",
"=",
"(",
"number",
"*",
"1000.00",
")",
"-",
"round",
";",
"if",
"(",
"rest",
">=",
"0.5",
")",
"{",
"round",
"++",
";",
"}",
"return",
"(",
"round",
"/",
"1000.00",
")",
";",
"}"
] | round a double number.
@param number double
@return double | [
"round",
"a",
"double",
"number",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TagLink.java#L449-L456 |
140,842 | BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/BagOfSourcedTokens.java | BagOfSourcedTokens.getEquivalentToken | SourcedToken getEquivalentToken(Token tok) {
if (unsourcedTokens.contains(tok.getValue())) {
for (int i=0; i<tokens.length; i++) {
if (tokens[i].getValue().equals(tok.getValue())) {
return tokens[i];
}
}
System.out.println("This is a problem");
return null;
} else {
return null;
}
} | java | SourcedToken getEquivalentToken(Token tok) {
if (unsourcedTokens.contains(tok.getValue())) {
for (int i=0; i<tokens.length; i++) {
if (tokens[i].getValue().equals(tok.getValue())) {
return tokens[i];
}
}
System.out.println("This is a problem");
return null;
} else {
return null;
}
} | [
"SourcedToken",
"getEquivalentToken",
"(",
"Token",
"tok",
")",
"{",
"if",
"(",
"unsourcedTokens",
".",
"contains",
"(",
"tok",
".",
"getValue",
"(",
")",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"tokens",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"tokens",
"[",
"i",
"]",
".",
"getValue",
"(",
")",
".",
"equals",
"(",
"tok",
".",
"getValue",
"(",
")",
")",
")",
"{",
"return",
"tokens",
"[",
"i",
"]",
";",
"}",
"}",
"System",
".",
"out",
".",
"println",
"(",
"\"This is a problem\"",
")",
";",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}"
] | Test if this token appears at least once. | [
"Test",
"if",
"this",
"token",
"appears",
"at",
"least",
"once",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/BagOfSourcedTokens.java#L41-L53 |
140,843 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Relation.java | Relation.getArguments | public FSArray getArguments() {
if (Relation_Type.featOkTst && ((Relation_Type)jcasType).casFeat_arguments == null)
jcasType.jcas.throwFeatMissing("arguments", "de.julielab.jules.types.ace.Relation");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Relation_Type)jcasType).casFeatCode_arguments)));} | java | public FSArray getArguments() {
if (Relation_Type.featOkTst && ((Relation_Type)jcasType).casFeat_arguments == null)
jcasType.jcas.throwFeatMissing("arguments", "de.julielab.jules.types.ace.Relation");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Relation_Type)jcasType).casFeatCode_arguments)));} | [
"public",
"FSArray",
"getArguments",
"(",
")",
"{",
"if",
"(",
"Relation_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Relation_Type",
")",
"jcasType",
")",
".",
"casFeat_arguments",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"arguments\"",
",",
"\"de.julielab.jules.types.ace.Relation\"",
")",
";",
"return",
"(",
"FSArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"Relation_Type",
")",
"jcasType",
")",
".",
"casFeatCode_arguments",
")",
")",
")",
";",
"}"
] | getter for arguments - gets
@generated
@return value of the feature | [
"getter",
"for",
"arguments",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Relation.java#L218-L221 |
140,844 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java | ResourceEntry.getEntryId | public String getEntryId() {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_entryId == null)
jcasType.jcas.throwFeatMissing("entryId", "de.julielab.jules.types.ResourceEntry");
return jcasType.ll_cas.ll_getStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_entryId);} | java | public String getEntryId() {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_entryId == null)
jcasType.jcas.throwFeatMissing("entryId", "de.julielab.jules.types.ResourceEntry");
return jcasType.ll_cas.ll_getStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_entryId);} | [
"public",
"String",
"getEntryId",
"(",
")",
"{",
"if",
"(",
"ResourceEntry_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeat_entryId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"entryId\"",
",",
"\"de.julielab.jules.types.ResourceEntry\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeatCode_entryId",
")",
";",
"}"
] | getter for entryId - gets The identifier of the entry, C
@generated
@return value of the feature | [
"getter",
"for",
"entryId",
"-",
"gets",
"The",
"identifier",
"of",
"the",
"entry",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java#L107-L110 |
140,845 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java | ResourceEntry.setEntryId | public void setEntryId(String v) {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_entryId == null)
jcasType.jcas.throwFeatMissing("entryId", "de.julielab.jules.types.ResourceEntry");
jcasType.ll_cas.ll_setStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_entryId, v);} | java | public void setEntryId(String v) {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_entryId == null)
jcasType.jcas.throwFeatMissing("entryId", "de.julielab.jules.types.ResourceEntry");
jcasType.ll_cas.ll_setStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_entryId, v);} | [
"public",
"void",
"setEntryId",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"ResourceEntry_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeat_entryId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"entryId\"",
",",
"\"de.julielab.jules.types.ResourceEntry\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeatCode_entryId",
",",
"v",
")",
";",
"}"
] | setter for entryId - sets The identifier of the entry, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"entryId",
"-",
"sets",
"The",
"identifier",
"of",
"the",
"entry",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java#L116-L119 |
140,846 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java | ResourceEntry.getVersion | public String getVersion() {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_version == null)
jcasType.jcas.throwFeatMissing("version", "de.julielab.jules.types.ResourceEntry");
return jcasType.ll_cas.ll_getStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_version);} | java | public String getVersion() {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_version == null)
jcasType.jcas.throwFeatMissing("version", "de.julielab.jules.types.ResourceEntry");
return jcasType.ll_cas.ll_getStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_version);} | [
"public",
"String",
"getVersion",
"(",
")",
"{",
"if",
"(",
"ResourceEntry_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeat_version",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"version\"",
",",
"\"de.julielab.jules.types.ResourceEntry\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeatCode_version",
")",
";",
"}"
] | getter for version - gets The version of the resource, C
@generated
@return value of the feature | [
"getter",
"for",
"version",
"-",
"gets",
"The",
"version",
"of",
"the",
"resource",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java#L129-L132 |
140,847 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java | ResourceEntry.setVersion | public void setVersion(String v) {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_version == null)
jcasType.jcas.throwFeatMissing("version", "de.julielab.jules.types.ResourceEntry");
jcasType.ll_cas.ll_setStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_version, v);} | java | public void setVersion(String v) {
if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_version == null)
jcasType.jcas.throwFeatMissing("version", "de.julielab.jules.types.ResourceEntry");
jcasType.ll_cas.ll_setStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_version, v);} | [
"public",
"void",
"setVersion",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"ResourceEntry_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeat_version",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"version\"",
",",
"\"de.julielab.jules.types.ResourceEntry\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"ResourceEntry_Type",
")",
"jcasType",
")",
".",
"casFeatCode_version",
",",
"v",
")",
";",
"}"
] | setter for version - sets The version of the resource, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"version",
"-",
"sets",
"The",
"version",
"of",
"the",
"resource",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ResourceEntry.java#L138-L141 |
140,848 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ListItem.java | ListItem.getLevel | public int getLevel() {
if (ListItem_Type.featOkTst && ((ListItem_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ListItem");
return jcasType.ll_cas.ll_getIntValue(addr, ((ListItem_Type)jcasType).casFeatCode_level);} | java | public int getLevel() {
if (ListItem_Type.featOkTst && ((ListItem_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ListItem");
return jcasType.ll_cas.ll_getIntValue(addr, ((ListItem_Type)jcasType).casFeatCode_level);} | [
"public",
"int",
"getLevel",
"(",
")",
"{",
"if",
"(",
"ListItem_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ListItem_Type",
")",
"jcasType",
")",
".",
"casFeat_level",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"level\"",
",",
"\"de.julielab.jules.types.ListItem\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getIntValue",
"(",
"addr",
",",
"(",
"(",
"ListItem_Type",
")",
"jcasType",
")",
".",
"casFeatCode_level",
")",
";",
"}"
] | getter for level - gets Level of indentation of the list item.
@generated
@return value of the feature | [
"getter",
"for",
"level",
"-",
"gets",
"Level",
"of",
"indentation",
"of",
"the",
"list",
"item",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ListItem.java#L130-L133 |
140,849 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ListItem.java | ListItem.setLevel | public void setLevel(int v) {
if (ListItem_Type.featOkTst && ((ListItem_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ListItem");
jcasType.ll_cas.ll_setIntValue(addr, ((ListItem_Type)jcasType).casFeatCode_level, v);} | java | public void setLevel(int v) {
if (ListItem_Type.featOkTst && ((ListItem_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ListItem");
jcasType.ll_cas.ll_setIntValue(addr, ((ListItem_Type)jcasType).casFeatCode_level, v);} | [
"public",
"void",
"setLevel",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"ListItem_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ListItem_Type",
")",
"jcasType",
")",
".",
"casFeat_level",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"level\"",
",",
"\"de.julielab.jules.types.ListItem\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setIntValue",
"(",
"addr",
",",
"(",
"(",
"ListItem_Type",
")",
"jcasType",
")",
".",
"casFeatCode_level",
",",
"v",
")",
";",
"}"
] | setter for level - sets Level of indentation of the list item.
@generated
@param v value to set into the feature | [
"setter",
"for",
"level",
"-",
"sets",
"Level",
"of",
"indentation",
"of",
"the",
"list",
"item",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ListItem.java#L139-L142 |
140,850 | BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/List.java | List.getListItemOrX | public java.util.List<Object> getListItemOrX() {
if (listItemOrX == null) {
listItemOrX = new ArrayList<Object>();
}
return this.listItemOrX;
} | java | public java.util.List<Object> getListItemOrX() {
if (listItemOrX == null) {
listItemOrX = new ArrayList<Object>();
}
return this.listItemOrX;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Object",
">",
"getListItemOrX",
"(",
")",
"{",
"if",
"(",
"listItemOrX",
"==",
"null",
")",
"{",
"listItemOrX",
"=",
"new",
"ArrayList",
"<",
"Object",
">",
"(",
")",
";",
"}",
"return",
"this",
".",
"listItemOrX",
";",
"}"
] | Gets the value of the listItemOrX property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the listItemOrX property.
<p>
For example, to add a new item, do as follows:
<pre>
getListItemOrX().add(newItem);
</pre>
<p>
Objects of the following type(s) are allowed in the list
{@link ListItem }
{@link X } | [
"Gets",
"the",
"value",
"of",
"the",
"listItemOrX",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/List.java#L165-L170 |
140,851 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java | Event.setPolarity | public void setPolarity(String v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_polarity == null)
jcasType.jcas.throwFeatMissing("polarity", "de.julielab.jules.types.ace.Event");
jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_polarity, v);} | java | public void setPolarity(String v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_polarity == null)
jcasType.jcas.throwFeatMissing("polarity", "de.julielab.jules.types.ace.Event");
jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_polarity, v);} | [
"public",
"void",
"setPolarity",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Event_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeat_polarity",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"polarity\"",
",",
"\"de.julielab.jules.types.ace.Event\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeatCode_polarity",
",",
"v",
")",
";",
"}"
] | setter for polarity - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"polarity",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java#L117-L120 |
140,852 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java | Event.getGenericity | public String getGenericity() {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_genericity == null)
jcasType.jcas.throwFeatMissing("genericity", "de.julielab.jules.types.ace.Event");
return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_genericity);} | java | public String getGenericity() {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_genericity == null)
jcasType.jcas.throwFeatMissing("genericity", "de.julielab.jules.types.ace.Event");
return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_genericity);} | [
"public",
"String",
"getGenericity",
"(",
")",
"{",
"if",
"(",
"Event_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeat_genericity",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"genericity\"",
",",
"\"de.julielab.jules.types.ace.Event\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeatCode_genericity",
")",
";",
"}"
] | getter for genericity - gets
@generated
@return value of the feature | [
"getter",
"for",
"genericity",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java#L152-L155 |
140,853 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java | Event.setGenericity | public void setGenericity(String v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_genericity == null)
jcasType.jcas.throwFeatMissing("genericity", "de.julielab.jules.types.ace.Event");
jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_genericity, v);} | java | public void setGenericity(String v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_genericity == null)
jcasType.jcas.throwFeatMissing("genericity", "de.julielab.jules.types.ace.Event");
jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_genericity, v);} | [
"public",
"void",
"setGenericity",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Event_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeat_genericity",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"genericity\"",
",",
"\"de.julielab.jules.types.ace.Event\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeatCode_genericity",
",",
"v",
")",
";",
"}"
] | setter for genericity - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"genericity",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java#L161-L164 |
140,854 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java | Event.setMentions | public void setMentions(int i, EventMention v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_mentions == null)
jcasType.jcas.throwFeatMissing("mentions", "de.julielab.jules.types.ace.Event");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_mentions), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_mentions), i, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setMentions(int i, EventMention v) {
if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_mentions == null)
jcasType.jcas.throwFeatMissing("mentions", "de.julielab.jules.types.ace.Event");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_mentions), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_mentions), i, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setMentions",
"(",
"int",
"i",
",",
"EventMention",
"v",
")",
"{",
"if",
"(",
"Event_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeat_mentions",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"mentions\"",
",",
"\"de.julielab.jules.types.ace.Event\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeatCode_mentions",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"Event_Type",
")",
"jcasType",
")",
".",
"casFeatCode_mentions",
")",
",",
"i",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | indexed setter for mentions - sets an indexed value -
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"mentions",
"-",
"sets",
"an",
"indexed",
"value",
"-"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Event.java#L292-L296 |
140,855 | BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/Debug.java | Debug.printTableMeta | public static void printTableMeta(String outputDirPath, File pdfFile, String meta) {
try {
File middleDir = new File(outputDirPath, "metadata");
if (!middleDir.exists()) {
middleDir.mkdirs();
}
File tableMetaFile = new File(middleDir, pdfFile.getName() + ".metadata");
BufferedWriter bw0 = new BufferedWriter(new FileWriter(tableMetaFile));
//System.out.println(meta);
bw0.write(meta);
bw0.close();
}
catch (IOException e){
System.out.printf("[Debug Error] IOException\n");
}
} | java | public static void printTableMeta(String outputDirPath, File pdfFile, String meta) {
try {
File middleDir = new File(outputDirPath, "metadata");
if (!middleDir.exists()) {
middleDir.mkdirs();
}
File tableMetaFile = new File(middleDir, pdfFile.getName() + ".metadata");
BufferedWriter bw0 = new BufferedWriter(new FileWriter(tableMetaFile));
//System.out.println(meta);
bw0.write(meta);
bw0.close();
}
catch (IOException e){
System.out.printf("[Debug Error] IOException\n");
}
} | [
"public",
"static",
"void",
"printTableMeta",
"(",
"String",
"outputDirPath",
",",
"File",
"pdfFile",
",",
"String",
"meta",
")",
"{",
"try",
"{",
"File",
"middleDir",
"=",
"new",
"File",
"(",
"outputDirPath",
",",
"\"metadata\"",
")",
";",
"if",
"(",
"!",
"middleDir",
".",
"exists",
"(",
")",
")",
"{",
"middleDir",
".",
"mkdirs",
"(",
")",
";",
"}",
"File",
"tableMetaFile",
"=",
"new",
"File",
"(",
"middleDir",
",",
"pdfFile",
".",
"getName",
"(",
")",
"+",
"\".metadata\"",
")",
";",
"BufferedWriter",
"bw0",
"=",
"new",
"BufferedWriter",
"(",
"new",
"FileWriter",
"(",
"tableMetaFile",
")",
")",
";",
"//System.out.println(meta);\r",
"bw0",
".",
"write",
"(",
"meta",
")",
";",
"bw0",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"System",
".",
"out",
".",
"printf",
"(",
"\"[Debug Error] IOException\\n\"",
")",
";",
"}",
"}"
] | After detecting and extracting a table, this method enables us to save the table metadata file locally for later performance evaluation.
@param outputDirPath
the directory path where the middle-stage results will go to
@param pdfFile
the PDF file being processed
@param meta
the table metadata to be printed
@throws IOException | [
"After",
"detecting",
"and",
"extracting",
"a",
"table",
"this",
"method",
"enables",
"us",
"to",
"save",
"the",
"table",
"metadata",
"file",
"locally",
"for",
"later",
"performance",
"evaluation",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/Debug.java#L116-L131 |
140,856 | BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/Debug.java | Debug.printStatInfo | public static void printStatInfo(String outputDirPath, File pdfFile, int pageNum, int tableNum) {
try {
File classificationData = new File(outputDirPath, "statInfo");
if (!classificationData.exists()) {
classificationData.mkdirs();
}
File fileName = new File(classificationData, "tableNumStatInfo.txt");
BufferedWriter bw0 = new BufferedWriter(new FileWriter(fileName, true));
bw0.append(outputDirPath+pdfFile.getName() + "\t\t" + pageNum + " PAGES\t\t" + tableNum + " TABLES\n");
bw0.close();
}
catch (IOException e){
System.out.printf("[Debug Error] IOException\n");
}
} | java | public static void printStatInfo(String outputDirPath, File pdfFile, int pageNum, int tableNum) {
try {
File classificationData = new File(outputDirPath, "statInfo");
if (!classificationData.exists()) {
classificationData.mkdirs();
}
File fileName = new File(classificationData, "tableNumStatInfo.txt");
BufferedWriter bw0 = new BufferedWriter(new FileWriter(fileName, true));
bw0.append(outputDirPath+pdfFile.getName() + "\t\t" + pageNum + " PAGES\t\t" + tableNum + " TABLES\n");
bw0.close();
}
catch (IOException e){
System.out.printf("[Debug Error] IOException\n");
}
} | [
"public",
"static",
"void",
"printStatInfo",
"(",
"String",
"outputDirPath",
",",
"File",
"pdfFile",
",",
"int",
"pageNum",
",",
"int",
"tableNum",
")",
"{",
"try",
"{",
"File",
"classificationData",
"=",
"new",
"File",
"(",
"outputDirPath",
",",
"\"statInfo\"",
")",
";",
"if",
"(",
"!",
"classificationData",
".",
"exists",
"(",
")",
")",
"{",
"classificationData",
".",
"mkdirs",
"(",
")",
";",
"}",
"File",
"fileName",
"=",
"new",
"File",
"(",
"classificationData",
",",
"\"tableNumStatInfo.txt\"",
")",
";",
"BufferedWriter",
"bw0",
"=",
"new",
"BufferedWriter",
"(",
"new",
"FileWriter",
"(",
"fileName",
",",
"true",
")",
")",
";",
"bw0",
".",
"append",
"(",
"outputDirPath",
"+",
"pdfFile",
".",
"getName",
"(",
")",
"+",
"\"\\t\\t\"",
"+",
"pageNum",
"+",
"\" PAGES\\t\\t\"",
"+",
"tableNum",
"+",
"\" TABLES\\n\"",
")",
";",
"bw0",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"System",
".",
"out",
".",
"printf",
"(",
"\"[Debug Error] IOException\\n\"",
")",
";",
"}",
"}"
] | After processing all the PDF documents, this method helps us to get the statistic information of all the PDF documents
such as the total number of pages, tables, etc.
@param outputDirPath
the directory path where the middle-stage results will go to
@param pdfFile
the PDF file being processed
@param pageNum
the total number of pages in the PDF directory
@param tableNum
the total number of detected tables in the PDF directory
@throws IOException | [
"After",
"processing",
"all",
"the",
"PDF",
"documents",
"this",
"method",
"helps",
"us",
"to",
"get",
"the",
"statistic",
"information",
"of",
"all",
"the",
"PDF",
"documents",
"such",
"as",
"the",
"total",
"number",
"of",
"pages",
"tables",
"etc",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/Debug.java#L148-L162 |
140,857 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/RelatedArticle.java | RelatedArticle.getRelatedArticle | public String getRelatedArticle() {
if (RelatedArticle_Type.featOkTst && ((RelatedArticle_Type)jcasType).casFeat_relatedArticle == null)
jcasType.jcas.throwFeatMissing("relatedArticle", "de.julielab.jules.types.RelatedArticle");
return jcasType.ll_cas.ll_getStringValue(addr, ((RelatedArticle_Type)jcasType).casFeatCode_relatedArticle);} | java | public String getRelatedArticle() {
if (RelatedArticle_Type.featOkTst && ((RelatedArticle_Type)jcasType).casFeat_relatedArticle == null)
jcasType.jcas.throwFeatMissing("relatedArticle", "de.julielab.jules.types.RelatedArticle");
return jcasType.ll_cas.ll_getStringValue(addr, ((RelatedArticle_Type)jcasType).casFeatCode_relatedArticle);} | [
"public",
"String",
"getRelatedArticle",
"(",
")",
"{",
"if",
"(",
"RelatedArticle_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"RelatedArticle_Type",
")",
"jcasType",
")",
".",
"casFeat_relatedArticle",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"relatedArticle\"",
",",
"\"de.julielab.jules.types.RelatedArticle\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"RelatedArticle_Type",
")",
"jcasType",
")",
".",
"casFeatCode_relatedArticle",
")",
";",
"}"
] | getter for relatedArticle - gets
@generated
@return value of the feature | [
"getter",
"for",
"relatedArticle",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/RelatedArticle.java#L85-L88 |
140,858 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/RelatedArticle.java | RelatedArticle.setRelatedArticle | public void setRelatedArticle(String v) {
if (RelatedArticle_Type.featOkTst && ((RelatedArticle_Type)jcasType).casFeat_relatedArticle == null)
jcasType.jcas.throwFeatMissing("relatedArticle", "de.julielab.jules.types.RelatedArticle");
jcasType.ll_cas.ll_setStringValue(addr, ((RelatedArticle_Type)jcasType).casFeatCode_relatedArticle, v);} | java | public void setRelatedArticle(String v) {
if (RelatedArticle_Type.featOkTst && ((RelatedArticle_Type)jcasType).casFeat_relatedArticle == null)
jcasType.jcas.throwFeatMissing("relatedArticle", "de.julielab.jules.types.RelatedArticle");
jcasType.ll_cas.ll_setStringValue(addr, ((RelatedArticle_Type)jcasType).casFeatCode_relatedArticle, v);} | [
"public",
"void",
"setRelatedArticle",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"RelatedArticle_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"RelatedArticle_Type",
")",
"jcasType",
")",
".",
"casFeat_relatedArticle",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"relatedArticle\"",
",",
"\"de.julielab.jules.types.RelatedArticle\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"RelatedArticle_Type",
")",
"jcasType",
")",
".",
"casFeatCode_relatedArticle",
",",
"v",
")",
";",
"}"
] | setter for relatedArticle - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"relatedArticle",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/RelatedArticle.java#L94-L97 |
140,859 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getMeSHList | public FSArray getMeSHList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList)));} | java | public FSArray getMeSHList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList)));} | [
"public",
"FSArray",
"getMeSHList",
"(",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_meSHList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"meSHList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"return",
"(",
"FSArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
")",
")",
")",
";",
"}"
] | getter for meSHList - gets A collection of objects of type uima.julielab.uima.MeSHHeading, O
@generated
@return value of the feature | [
"getter",
"for",
"meSHList",
"-",
"gets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"MeSHHeading",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L91-L94 |
140,860 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setMeSHList | public void setMeSHList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setMeSHList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setMeSHList",
"(",
"FSArray",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_meSHList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"meSHList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for meSHList - sets A collection of objects of type uima.julielab.uima.MeSHHeading, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"meSHList",
"-",
"sets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"MeSHHeading",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L100-L103 |
140,861 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getMeSHList | public MeshHeading getMeSHList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i);
return (MeshHeading)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i)));} | java | public MeshHeading getMeSHList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i);
return (MeshHeading)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i)));} | [
"public",
"MeshHeading",
"getMeSHList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_meSHList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"meSHList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
")",
",",
"i",
")",
";",
"return",
"(",
"MeshHeading",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
")",
",",
"i",
")",
")",
")",
";",
"}"
] | indexed getter for meSHList - gets an indexed value - A collection of objects of type uima.julielab.uima.MeSHHeading, O
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"meSHList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"MeSHHeading",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L110-L114 |
140,862 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setMeSHList | public void setMeSHList(int i, MeshHeading v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setMeSHList(int i, MeshHeading v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_meSHList == null)
jcasType.jcas.throwFeatMissing("meSHList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_meSHList), i, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setMeSHList",
"(",
"int",
"i",
",",
"MeshHeading",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_meSHList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"meSHList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_meSHList",
")",
",",
"i",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | indexed setter for meSHList - sets an indexed value - A collection of objects of type uima.julielab.uima.MeSHHeading, O
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"meSHList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"MeSHHeading",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L121-L125 |
140,863 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getChemicalList | public FSArray getChemicalList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList)));} | java | public FSArray getChemicalList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList)));} | [
"public",
"FSArray",
"getChemicalList",
"(",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_chemicalList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"chemicalList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"return",
"(",
"FSArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
")",
")",
")",
";",
"}"
] | getter for chemicalList - gets A collection of objects of type uima.julielab.uima.Chemical, O
@generated
@return value of the feature | [
"getter",
"for",
"chemicalList",
"-",
"gets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Chemical",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L135-L138 |
140,864 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setChemicalList | public void setChemicalList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setChemicalList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setChemicalList",
"(",
"FSArray",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_chemicalList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"chemicalList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for chemicalList - sets A collection of objects of type uima.julielab.uima.Chemical, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"chemicalList",
"-",
"sets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Chemical",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L144-L147 |
140,865 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getChemicalList | public Chemical getChemicalList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i);
return (Chemical)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i)));} | java | public Chemical getChemicalList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i);
return (Chemical)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i)));} | [
"public",
"Chemical",
"getChemicalList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_chemicalList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"chemicalList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
")",
",",
"i",
")",
";",
"return",
"(",
"Chemical",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
")",
",",
"i",
")",
")",
")",
";",
"}"
] | indexed getter for chemicalList - gets an indexed value - A collection of objects of type uima.julielab.uima.Chemical, O
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"chemicalList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Chemical",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L154-L158 |
140,866 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setChemicalList | public void setChemicalList(int i, Chemical v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setChemicalList(int i, Chemical v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_chemicalList == null)
jcasType.jcas.throwFeatMissing("chemicalList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_chemicalList), i, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setChemicalList",
"(",
"int",
"i",
",",
"Chemical",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_chemicalList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"chemicalList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_chemicalList",
")",
",",
"i",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | indexed setter for chemicalList - sets an indexed value - A collection of objects of type uima.julielab.uima.Chemical, O
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"chemicalList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Chemical",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L165-L169 |
140,867 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getDBInfoList | public FSArray getDBInfoList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList)));} | java | public FSArray getDBInfoList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList)));} | [
"public",
"FSArray",
"getDBInfoList",
"(",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_dBInfoList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"dBInfoList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"return",
"(",
"FSArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
")",
")",
")",
";",
"}"
] | getter for dBInfoList - gets A collection of objects of type uima.julielab.uima.DBInfo, O
@generated
@return value of the feature | [
"getter",
"for",
"dBInfoList",
"-",
"gets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"DBInfo",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L179-L182 |
140,868 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setDBInfoList | public void setDBInfoList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setDBInfoList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setDBInfoList",
"(",
"FSArray",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_dBInfoList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"dBInfoList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for dBInfoList - sets A collection of objects of type uima.julielab.uima.DBInfo, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"dBInfoList",
"-",
"sets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"DBInfo",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L188-L191 |
140,869 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getDBInfoList | public DBInfo getDBInfoList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i);
return (DBInfo)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i)));} | java | public DBInfo getDBInfoList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i);
return (DBInfo)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i)));} | [
"public",
"DBInfo",
"getDBInfoList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_dBInfoList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"dBInfoList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
")",
",",
"i",
")",
";",
"return",
"(",
"DBInfo",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
")",
",",
"i",
")",
")",
")",
";",
"}"
] | indexed getter for dBInfoList - gets an indexed value - A collection of objects of type uima.julielab.uima.DBInfo, O
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"dBInfoList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"DBInfo",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L198-L202 |
140,870 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setDBInfoList | public void setDBInfoList(int i, DBInfo v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setDBInfoList(int i, DBInfo v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_dBInfoList == null)
jcasType.jcas.throwFeatMissing("dBInfoList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_dBInfoList), i, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setDBInfoList",
"(",
"int",
"i",
",",
"DBInfo",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_dBInfoList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"dBInfoList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_dBInfoList",
")",
",",
"i",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | indexed setter for dBInfoList - sets an indexed value - A collection of objects of type uima.julielab.uima.DBInfo, O
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"dBInfoList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"DBInfo",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L209-L213 |
140,871 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getKeywordList | public FSArray getKeywordList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList)));} | java | public FSArray getKeywordList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList)));} | [
"public",
"FSArray",
"getKeywordList",
"(",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_keywordList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"keywordList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"return",
"(",
"FSArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
")",
")",
")",
";",
"}"
] | getter for keywordList - gets A collection of objects of type uima.julielab.uima.Keyword, O
@generated
@return value of the feature | [
"getter",
"for",
"keywordList",
"-",
"gets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Keyword",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L223-L226 |
140,872 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setKeywordList | public void setKeywordList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setKeywordList(FSArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setKeywordList",
"(",
"FSArray",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_keywordList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"keywordList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for keywordList - sets A collection of objects of type uima.julielab.uima.Keyword, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"keywordList",
"-",
"sets",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Keyword",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L232-L235 |
140,873 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getKeywordList | public Keyword getKeywordList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i);
return (Keyword)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i)));} | java | public Keyword getKeywordList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i);
return (Keyword)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i)));} | [
"public",
"Keyword",
"getKeywordList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_keywordList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"keywordList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
")",
",",
"i",
")",
";",
"return",
"(",
"Keyword",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
")",
",",
"i",
")",
")",
")",
";",
"}"
] | indexed getter for keywordList - gets an indexed value - A collection of objects of type uima.julielab.uima.Keyword, O
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"keywordList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Keyword",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L242-L246 |
140,874 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setKeywordList | public void setKeywordList(int i, Keyword v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setKeywordList(int i, Keyword v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_keywordList == null)
jcasType.jcas.throwFeatMissing("keywordList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_keywordList), i, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setKeywordList",
"(",
"int",
"i",
",",
"Keyword",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_keywordList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"keywordList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_keywordList",
")",
",",
"i",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | indexed setter for keywordList - sets an indexed value - A collection of objects of type uima.julielab.uima.Keyword, O
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"keywordList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"A",
"collection",
"of",
"objects",
"of",
"type",
"uima",
".",
"julielab",
".",
"uima",
".",
"Keyword",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L253-L257 |
140,875 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getGeneSymbolList | public StringArray getGeneSymbolList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList)));} | java | public StringArray getGeneSymbolList() {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList)));} | [
"public",
"StringArray",
"getGeneSymbolList",
"(",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_geneSymbolList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"geneSymbolList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"return",
"(",
"StringArray",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
")",
")",
")",
";",
"}"
] | getter for geneSymbolList - gets GeneSymbolList in PubMed
@generated
@return value of the feature | [
"getter",
"for",
"geneSymbolList",
"-",
"gets",
"GeneSymbolList",
"in",
"PubMed"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L267-L270 |
140,876 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setGeneSymbolList | public void setGeneSymbolList(StringArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setGeneSymbolList(StringArray v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.ll_cas.ll_setRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setGeneSymbolList",
"(",
"StringArray",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_geneSymbolList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"geneSymbolList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for geneSymbolList - sets GeneSymbolList in PubMed
@generated
@param v value to set into the feature | [
"setter",
"for",
"geneSymbolList",
"-",
"sets",
"GeneSymbolList",
"in",
"PubMed"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L276-L279 |
140,877 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.getGeneSymbolList | public String getGeneSymbolList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);
return jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);} | java | public String getGeneSymbolList(int i) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);
return jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);} | [
"public",
"String",
"getGeneSymbolList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_geneSymbolList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"geneSymbolList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
")",
",",
"i",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
")",
",",
"i",
")",
";",
"}"
] | indexed getter for geneSymbolList - gets an indexed value - GeneSymbolList in PubMed
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"geneSymbolList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"GeneSymbolList",
"in",
"PubMed"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L286-L290 |
140,878 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java | ManualDescriptor.setGeneSymbolList | public void setGeneSymbolList(int i, String v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);
jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i, v);} | java | public void setGeneSymbolList(int i, String v) {
if (ManualDescriptor_Type.featOkTst && ((ManualDescriptor_Type)jcasType).casFeat_geneSymbolList == null)
jcasType.jcas.throwFeatMissing("geneSymbolList", "de.julielab.jules.types.pubmed.ManualDescriptor");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i);
jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ManualDescriptor_Type)jcasType).casFeatCode_geneSymbolList), i, v);} | [
"public",
"void",
"setGeneSymbolList",
"(",
"int",
"i",
",",
"String",
"v",
")",
"{",
"if",
"(",
"ManualDescriptor_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeat_geneSymbolList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"geneSymbolList\"",
",",
"\"de.julielab.jules.types.pubmed.ManualDescriptor\"",
")",
";",
"jcasType",
".",
"jcas",
".",
"checkArrayBounds",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
")",
",",
"i",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringArrayValue",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"ManualDescriptor_Type",
")",
"jcasType",
")",
".",
"casFeatCode_geneSymbolList",
")",
",",
"i",
",",
"v",
")",
";",
"}"
] | indexed setter for geneSymbolList - sets an indexed value - GeneSymbolList in PubMed
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"geneSymbolList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"GeneSymbolList",
"in",
"PubMed"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/ManualDescriptor.java#L297-L301 |
140,879 | BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/BasicEventStream.java | BasicEventStream.nextEvent | public Event nextEvent () {
while (_next == null && _ds.hasNext())
_next = createEvent((String)_ds.nextToken());
Event current = _next;
if (_ds.hasNext()) {
_next = createEvent((String)_ds.nextToken());
}
else {
_next = null;
}
return current;
} | java | public Event nextEvent () {
while (_next == null && _ds.hasNext())
_next = createEvent((String)_ds.nextToken());
Event current = _next;
if (_ds.hasNext()) {
_next = createEvent((String)_ds.nextToken());
}
else {
_next = null;
}
return current;
} | [
"public",
"Event",
"nextEvent",
"(",
")",
"{",
"while",
"(",
"_next",
"==",
"null",
"&&",
"_ds",
".",
"hasNext",
"(",
")",
")",
"_next",
"=",
"createEvent",
"(",
"(",
"String",
")",
"_ds",
".",
"nextToken",
"(",
")",
")",
";",
"Event",
"current",
"=",
"_next",
";",
"if",
"(",
"_ds",
".",
"hasNext",
"(",
")",
")",
"{",
"_next",
"=",
"createEvent",
"(",
"(",
"String",
")",
"_ds",
".",
"nextToken",
"(",
")",
")",
";",
"}",
"else",
"{",
"_next",
"=",
"null",
";",
"}",
"return",
"current",
";",
"}"
] | Returns the next Event object held in this EventStream. Each call to nextEvent advances the EventStream.
@return the Event object which is next in this EventStream | [
"Returns",
"the",
"next",
"Event",
"object",
"held",
"in",
"this",
"EventStream",
".",
"Each",
"call",
"to",
"nextEvent",
"advances",
"the",
"EventStream",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/BasicEventStream.java#L48-L60 |
140,880 | BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/BasicEventStream.java | BasicEventStream.hasNext | public boolean hasNext () {
while (_next == null && _ds.hasNext())
_next = createEvent((String)_ds.nextToken());
return _next != null;
} | java | public boolean hasNext () {
while (_next == null && _ds.hasNext())
_next = createEvent((String)_ds.nextToken());
return _next != null;
} | [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"while",
"(",
"_next",
"==",
"null",
"&&",
"_ds",
".",
"hasNext",
"(",
")",
")",
"_next",
"=",
"createEvent",
"(",
"(",
"String",
")",
"_ds",
".",
"nextToken",
"(",
")",
")",
";",
"return",
"_next",
"!=",
"null",
";",
"}"
] | Test whether there are any Events remaining in this EventStream.
@return true if this EventStream has more Events | [
"Test",
"whether",
"there",
"are",
"any",
"Events",
"remaining",
"in",
"this",
"EventStream",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/BasicEventStream.java#L67-L71 |
140,881 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BodyCitation.java | BodyCitation.getTextValue | public String getTextValue() {
if (BodyCitation_Type.featOkTst && ((BodyCitation_Type)jcasType).casFeat_textValue == null)
jcasType.jcas.throwFeatMissing("textValue", "ch.epfl.bbp.uima.types.BodyCitation");
return jcasType.ll_cas.ll_getStringValue(addr, ((BodyCitation_Type)jcasType).casFeatCode_textValue);} | java | public String getTextValue() {
if (BodyCitation_Type.featOkTst && ((BodyCitation_Type)jcasType).casFeat_textValue == null)
jcasType.jcas.throwFeatMissing("textValue", "ch.epfl.bbp.uima.types.BodyCitation");
return jcasType.ll_cas.ll_getStringValue(addr, ((BodyCitation_Type)jcasType).casFeatCode_textValue);} | [
"public",
"String",
"getTextValue",
"(",
")",
"{",
"if",
"(",
"BodyCitation_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BodyCitation_Type",
")",
"jcasType",
")",
".",
"casFeat_textValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"textValue\"",
",",
"\"ch.epfl.bbp.uima.types.BodyCitation\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"BodyCitation_Type",
")",
"jcasType",
")",
".",
"casFeatCode_textValue",
")",
";",
"}"
] | getter for textValue - gets
@generated
@return value of the feature | [
"getter",
"for",
"textValue",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BodyCitation.java#L86-L89 |
140,882 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BodyCitation.java | BodyCitation.setTextValue | public void setTextValue(String v) {
if (BodyCitation_Type.featOkTst && ((BodyCitation_Type)jcasType).casFeat_textValue == null)
jcasType.jcas.throwFeatMissing("textValue", "ch.epfl.bbp.uima.types.BodyCitation");
jcasType.ll_cas.ll_setStringValue(addr, ((BodyCitation_Type)jcasType).casFeatCode_textValue, v);} | java | public void setTextValue(String v) {
if (BodyCitation_Type.featOkTst && ((BodyCitation_Type)jcasType).casFeat_textValue == null)
jcasType.jcas.throwFeatMissing("textValue", "ch.epfl.bbp.uima.types.BodyCitation");
jcasType.ll_cas.ll_setStringValue(addr, ((BodyCitation_Type)jcasType).casFeatCode_textValue, v);} | [
"public",
"void",
"setTextValue",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"BodyCitation_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BodyCitation_Type",
")",
"jcasType",
")",
".",
"casFeat_textValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"textValue\"",
",",
"\"ch.epfl.bbp.uima.types.BodyCitation\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"BodyCitation_Type",
")",
"jcasType",
")",
".",
"casFeatCode_textValue",
",",
"v",
")",
";",
"}"
] | setter for textValue - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"textValue",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BodyCitation.java#L95-L98 |
140,883 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/Header.java | Header.getCitationStatus | public String getCitationStatus() {
if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_citationStatus == null)
jcasType.jcas.throwFeatMissing("citationStatus", "de.julielab.jules.types.pubmed.Header");
return jcasType.ll_cas.ll_getStringValue(addr, ((Header_Type)jcasType).casFeatCode_citationStatus);} | java | public String getCitationStatus() {
if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_citationStatus == null)
jcasType.jcas.throwFeatMissing("citationStatus", "de.julielab.jules.types.pubmed.Header");
return jcasType.ll_cas.ll_getStringValue(addr, ((Header_Type)jcasType).casFeatCode_citationStatus);} | [
"public",
"String",
"getCitationStatus",
"(",
")",
"{",
"if",
"(",
"Header_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Header_Type",
")",
"jcasType",
")",
".",
"casFeat_citationStatus",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"citationStatus\"",
",",
"\"de.julielab.jules.types.pubmed.Header\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"Header_Type",
")",
"jcasType",
")",
".",
"casFeatCode_citationStatus",
")",
";",
"}"
] | getter for citationStatus - gets Indicates the status of citation of a PubMed document, O
@generated
@return value of the feature | [
"getter",
"for",
"citationStatus",
"-",
"gets",
"Indicates",
"the",
"status",
"of",
"citation",
"of",
"a",
"PubMed",
"document",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/Header.java#L85-L88 |
140,884 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/Header.java | Header.setCitationStatus | public void setCitationStatus(String v) {
if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_citationStatus == null)
jcasType.jcas.throwFeatMissing("citationStatus", "de.julielab.jules.types.pubmed.Header");
jcasType.ll_cas.ll_setStringValue(addr, ((Header_Type)jcasType).casFeatCode_citationStatus, v);} | java | public void setCitationStatus(String v) {
if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_citationStatus == null)
jcasType.jcas.throwFeatMissing("citationStatus", "de.julielab.jules.types.pubmed.Header");
jcasType.ll_cas.ll_setStringValue(addr, ((Header_Type)jcasType).casFeatCode_citationStatus, v);} | [
"public",
"void",
"setCitationStatus",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Header_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Header_Type",
")",
"jcasType",
")",
".",
"casFeat_citationStatus",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"citationStatus\"",
",",
"\"de.julielab.jules.types.pubmed.Header\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"Header_Type",
")",
"jcasType",
")",
".",
"casFeatCode_citationStatus",
",",
"v",
")",
";",
"}"
] | setter for citationStatus - sets Indicates the status of citation of a PubMed document, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"citationStatus",
"-",
"sets",
"Indicates",
"the",
"status",
"of",
"citation",
"of",
"a",
"PubMed",
"document",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/pubmed/Header.java#L94-L97 |
140,885 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.getAnchor | public Anchor getAnchor() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_anchor == null)
jcasType.jcas.throwFeatMissing("anchor", "de.julielab.jules.types.ace.EventMention");
return (Anchor)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_anchor)));} | java | public Anchor getAnchor() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_anchor == null)
jcasType.jcas.throwFeatMissing("anchor", "de.julielab.jules.types.ace.EventMention");
return (Anchor)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_anchor)));} | [
"public",
"Anchor",
"getAnchor",
"(",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_anchor",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"anchor\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"return",
"(",
"Anchor",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_anchor",
")",
")",
")",
";",
"}"
] | getter for anchor - gets
@generated
@return value of the feature | [
"getter",
"for",
"anchor",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L86-L89 |
140,886 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.setAnchor | public void setAnchor(Anchor v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_anchor == null)
jcasType.jcas.throwFeatMissing("anchor", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_anchor, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setAnchor(Anchor v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_anchor == null)
jcasType.jcas.throwFeatMissing("anchor", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_anchor, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setAnchor",
"(",
"Anchor",
"v",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_anchor",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"anchor\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_anchor",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for anchor - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"anchor",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L95-L98 |
140,887 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.getLevel | public String getLevel() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ace.EventMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((EventMention_Type)jcasType).casFeatCode_level);} | java | public String getLevel() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ace.EventMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((EventMention_Type)jcasType).casFeatCode_level);} | [
"public",
"String",
"getLevel",
"(",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_level",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"level\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_level",
")",
";",
"}"
] | getter for level - gets
@generated
@return value of the feature | [
"getter",
"for",
"level",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L108-L111 |
140,888 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.setLevel | public void setLevel(String v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setStringValue(addr, ((EventMention_Type)jcasType).casFeatCode_level, v);} | java | public void setLevel(String v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_level == null)
jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setStringValue(addr, ((EventMention_Type)jcasType).casFeatCode_level, v);} | [
"public",
"void",
"setLevel",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_level",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"level\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_level",
",",
"v",
")",
";",
"}"
] | setter for level - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"level",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L117-L120 |
140,889 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.getLdc_scope | public LDC_Scope getLdc_scope() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_ldc_scope == null)
jcasType.jcas.throwFeatMissing("ldc_scope", "de.julielab.jules.types.ace.EventMention");
return (LDC_Scope)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_ldc_scope)));} | java | public LDC_Scope getLdc_scope() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_ldc_scope == null)
jcasType.jcas.throwFeatMissing("ldc_scope", "de.julielab.jules.types.ace.EventMention");
return (LDC_Scope)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_ldc_scope)));} | [
"public",
"LDC_Scope",
"getLdc_scope",
"(",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_ldc_scope",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ldc_scope\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"return",
"(",
"LDC_Scope",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_ldc_scope",
")",
")",
")",
";",
"}"
] | getter for ldc_scope - gets
@generated
@return value of the feature | [
"getter",
"for",
"ldc_scope",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L174-L177 |
140,890 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.setLdc_scope | public void setLdc_scope(LDC_Scope v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_ldc_scope == null)
jcasType.jcas.throwFeatMissing("ldc_scope", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_ldc_scope, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setLdc_scope(LDC_Scope v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_ldc_scope == null)
jcasType.jcas.throwFeatMissing("ldc_scope", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_ldc_scope, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setLdc_scope",
"(",
"LDC_Scope",
"v",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_ldc_scope",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ldc_scope\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_ldc_scope",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for ldc_scope - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"ldc_scope",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L183-L186 |
140,891 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.getEvent_ref | public Event getEvent_ref() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_event_ref == null)
jcasType.jcas.throwFeatMissing("event_ref", "de.julielab.jules.types.ace.EventMention");
return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_event_ref)));} | java | public Event getEvent_ref() {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_event_ref == null)
jcasType.jcas.throwFeatMissing("event_ref", "de.julielab.jules.types.ace.EventMention");
return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_event_ref)));} | [
"public",
"Event",
"getEvent_ref",
"(",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_event_ref",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"event_ref\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"return",
"(",
"Event",
")",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSForRef",
"(",
"jcasType",
".",
"ll_cas",
".",
"ll_getRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_event_ref",
")",
")",
")",
";",
"}"
] | getter for event_ref - gets
@generated
@return value of the feature | [
"getter",
"for",
"event_ref",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L196-L199 |
140,892 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java | EventMention.setEvent_ref | public void setEvent_ref(Event v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_event_ref == null)
jcasType.jcas.throwFeatMissing("event_ref", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_event_ref, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setEvent_ref(Event v) {
if (EventMention_Type.featOkTst && ((EventMention_Type)jcasType).casFeat_event_ref == null)
jcasType.jcas.throwFeatMissing("event_ref", "de.julielab.jules.types.ace.EventMention");
jcasType.ll_cas.ll_setRefValue(addr, ((EventMention_Type)jcasType).casFeatCode_event_ref, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setEvent_ref",
"(",
"Event",
"v",
")",
"{",
"if",
"(",
"EventMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeat_event_ref",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"event_ref\"",
",",
"\"de.julielab.jules.types.ace.EventMention\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setRefValue",
"(",
"addr",
",",
"(",
"(",
"EventMention_Type",
")",
"jcasType",
")",
".",
"casFeatCode_event_ref",
",",
"jcasType",
".",
"ll_cas",
".",
"ll_getFSRef",
"(",
"v",
")",
")",
";",
"}"
] | setter for event_ref - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"event_ref",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EventMention.java#L205-L208 |
140,893 | BlueBrain/bluima | modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/BlueCasUtil.java | BlueCasUtil.fixNoSentences | public static void fixNoSentences(JCas jCas) {
Collection<Sentence> sentences = select(jCas, Sentence.class);
if (sentences.size() == 0) {
String text = jCas.getDocumentText();
Sentence sentence = new Sentence(jCas, 0, text.length());
sentence.addToIndexes();
}
} | java | public static void fixNoSentences(JCas jCas) {
Collection<Sentence> sentences = select(jCas, Sentence.class);
if (sentences.size() == 0) {
String text = jCas.getDocumentText();
Sentence sentence = new Sentence(jCas, 0, text.length());
sentence.addToIndexes();
}
} | [
"public",
"static",
"void",
"fixNoSentences",
"(",
"JCas",
"jCas",
")",
"{",
"Collection",
"<",
"Sentence",
">",
"sentences",
"=",
"select",
"(",
"jCas",
",",
"Sentence",
".",
"class",
")",
";",
"if",
"(",
"sentences",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"String",
"text",
"=",
"jCas",
".",
"getDocumentText",
"(",
")",
";",
"Sentence",
"sentence",
"=",
"new",
"Sentence",
"(",
"jCas",
",",
"0",
",",
"text",
".",
"length",
"(",
")",
")",
";",
"sentence",
".",
"addToIndexes",
"(",
")",
";",
"}",
"}"
] | If this cas has no Sentence annotation, creates one with the whole cas
text | [
"If",
"this",
"cas",
"has",
"no",
"Sentence",
"annotation",
"creates",
"one",
"with",
"the",
"whole",
"cas",
"text"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/BlueCasUtil.java#L142-L149 |
140,894 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/GENIAConstituent.java | GENIAConstituent.getSyn | public String getSyn() {
if (GENIAConstituent_Type.featOkTst && ((GENIAConstituent_Type)jcasType).casFeat_syn == null)
jcasType.jcas.throwFeatMissing("syn", "de.julielab.jules.types.GENIAConstituent");
return jcasType.ll_cas.ll_getStringValue(addr, ((GENIAConstituent_Type)jcasType).casFeatCode_syn);} | java | public String getSyn() {
if (GENIAConstituent_Type.featOkTst && ((GENIAConstituent_Type)jcasType).casFeat_syn == null)
jcasType.jcas.throwFeatMissing("syn", "de.julielab.jules.types.GENIAConstituent");
return jcasType.ll_cas.ll_getStringValue(addr, ((GENIAConstituent_Type)jcasType).casFeatCode_syn);} | [
"public",
"String",
"getSyn",
"(",
")",
"{",
"if",
"(",
"GENIAConstituent_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"GENIAConstituent_Type",
")",
"jcasType",
")",
".",
"casFeat_syn",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"syn\"",
",",
"\"de.julielab.jules.types.GENIAConstituent\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"GENIAConstituent_Type",
")",
"jcasType",
")",
".",
"casFeatCode_syn",
")",
";",
"}"
] | getter for syn - gets Marks coordinations, O
@generated
@return value of the feature | [
"getter",
"for",
"syn",
"-",
"gets",
"Marks",
"coordinations",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/GENIAConstituent.java#L85-L88 |
140,895 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/GENIAConstituent.java | GENIAConstituent.setSyn | public void setSyn(String v) {
if (GENIAConstituent_Type.featOkTst && ((GENIAConstituent_Type)jcasType).casFeat_syn == null)
jcasType.jcas.throwFeatMissing("syn", "de.julielab.jules.types.GENIAConstituent");
jcasType.ll_cas.ll_setStringValue(addr, ((GENIAConstituent_Type)jcasType).casFeatCode_syn, v);} | java | public void setSyn(String v) {
if (GENIAConstituent_Type.featOkTst && ((GENIAConstituent_Type)jcasType).casFeat_syn == null)
jcasType.jcas.throwFeatMissing("syn", "de.julielab.jules.types.GENIAConstituent");
jcasType.ll_cas.ll_setStringValue(addr, ((GENIAConstituent_Type)jcasType).casFeatCode_syn, v);} | [
"public",
"void",
"setSyn",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"GENIAConstituent_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"GENIAConstituent_Type",
")",
"jcasType",
")",
".",
"casFeat_syn",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"syn\"",
",",
"\"de.julielab.jules.types.GENIAConstituent\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"GENIAConstituent_Type",
")",
"jcasType",
")",
".",
"casFeatCode_syn",
",",
"v",
")",
";",
"}"
] | setter for syn - sets Marks coordinations, O
@generated
@param v value to set into the feature | [
"setter",
"for",
"syn",
"-",
"sets",
"Marks",
"coordinations",
"O"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/GENIAConstituent.java#L94-L97 |
140,896 | BlueBrain/bluima | modules/bluima_topic_models/src/main/scala/cc/mallet/topics/MyTopicInferencer.java | MyTopicInferencer.writeInferredDistributions | public void writeInferredDistributions(InstanceList instances,
File distributionsFile,
int numIterations, int thinning, int burnIn,
double threshold, int max) throws IOException {
PrintWriter out = new PrintWriter(distributionsFile);
out.print ("#doc source topic proportion ...\n");
IDSorter[] sortedTopics = new IDSorter[ numTopics ];
for (int topic = 0; topic < numTopics; topic++) {
// Initialize the sorters with dummy values
sortedTopics[topic] = new IDSorter(topic, topic);
}
if (max < 0 || max > numTopics) {
max = numTopics;
}
int doc = 0;
for (Instance instance: instances) {
double[] topicDistribution =
getSampledDistribution(instance, numIterations,
thinning, burnIn);
out.print (doc); out.print (' ');
// Print the Source field of the instance
if (instance.getSource() != null) {
out.print (instance.getSource());
}
else {
out.print ("null-source");
}
out.print (' ');
for (int topic = 0; topic < numTopics; topic++) {
sortedTopics[topic].set(topic, topicDistribution[topic]);
}
Arrays.sort(sortedTopics);
for (int i = 0; i < max; i++) {
if (sortedTopics[i].getWeight() < threshold) { break; }
out.print (sortedTopics[i].getID() + " " +
sortedTopics[i].getWeight() + " ");
}
out.print (" \n");
doc++;
}
out.close();
} | java | public void writeInferredDistributions(InstanceList instances,
File distributionsFile,
int numIterations, int thinning, int burnIn,
double threshold, int max) throws IOException {
PrintWriter out = new PrintWriter(distributionsFile);
out.print ("#doc source topic proportion ...\n");
IDSorter[] sortedTopics = new IDSorter[ numTopics ];
for (int topic = 0; topic < numTopics; topic++) {
// Initialize the sorters with dummy values
sortedTopics[topic] = new IDSorter(topic, topic);
}
if (max < 0 || max > numTopics) {
max = numTopics;
}
int doc = 0;
for (Instance instance: instances) {
double[] topicDistribution =
getSampledDistribution(instance, numIterations,
thinning, burnIn);
out.print (doc); out.print (' ');
// Print the Source field of the instance
if (instance.getSource() != null) {
out.print (instance.getSource());
}
else {
out.print ("null-source");
}
out.print (' ');
for (int topic = 0; topic < numTopics; topic++) {
sortedTopics[topic].set(topic, topicDistribution[topic]);
}
Arrays.sort(sortedTopics);
for (int i = 0; i < max; i++) {
if (sortedTopics[i].getWeight() < threshold) { break; }
out.print (sortedTopics[i].getID() + " " +
sortedTopics[i].getWeight() + " ");
}
out.print (" \n");
doc++;
}
out.close();
} | [
"public",
"void",
"writeInferredDistributions",
"(",
"InstanceList",
"instances",
",",
"File",
"distributionsFile",
",",
"int",
"numIterations",
",",
"int",
"thinning",
",",
"int",
"burnIn",
",",
"double",
"threshold",
",",
"int",
"max",
")",
"throws",
"IOException",
"{",
"PrintWriter",
"out",
"=",
"new",
"PrintWriter",
"(",
"distributionsFile",
")",
";",
"out",
".",
"print",
"(",
"\"#doc source topic proportion ...\\n\"",
")",
";",
"IDSorter",
"[",
"]",
"sortedTopics",
"=",
"new",
"IDSorter",
"[",
"numTopics",
"]",
";",
"for",
"(",
"int",
"topic",
"=",
"0",
";",
"topic",
"<",
"numTopics",
";",
"topic",
"++",
")",
"{",
"// Initialize the sorters with dummy values",
"sortedTopics",
"[",
"topic",
"]",
"=",
"new",
"IDSorter",
"(",
"topic",
",",
"topic",
")",
";",
"}",
"if",
"(",
"max",
"<",
"0",
"||",
"max",
">",
"numTopics",
")",
"{",
"max",
"=",
"numTopics",
";",
"}",
"int",
"doc",
"=",
"0",
";",
"for",
"(",
"Instance",
"instance",
":",
"instances",
")",
"{",
"double",
"[",
"]",
"topicDistribution",
"=",
"getSampledDistribution",
"(",
"instance",
",",
"numIterations",
",",
"thinning",
",",
"burnIn",
")",
";",
"out",
".",
"print",
"(",
"doc",
")",
";",
"out",
".",
"print",
"(",
"'",
"'",
")",
";",
"// Print the Source field of the instance",
"if",
"(",
"instance",
".",
"getSource",
"(",
")",
"!=",
"null",
")",
"{",
"out",
".",
"print",
"(",
"instance",
".",
"getSource",
"(",
")",
")",
";",
"}",
"else",
"{",
"out",
".",
"print",
"(",
"\"null-source\"",
")",
";",
"}",
"out",
".",
"print",
"(",
"'",
"'",
")",
";",
"for",
"(",
"int",
"topic",
"=",
"0",
";",
"topic",
"<",
"numTopics",
";",
"topic",
"++",
")",
"{",
"sortedTopics",
"[",
"topic",
"]",
".",
"set",
"(",
"topic",
",",
"topicDistribution",
"[",
"topic",
"]",
")",
";",
"}",
"Arrays",
".",
"sort",
"(",
"sortedTopics",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"max",
";",
"i",
"++",
")",
"{",
"if",
"(",
"sortedTopics",
"[",
"i",
"]",
".",
"getWeight",
"(",
")",
"<",
"threshold",
")",
"{",
"break",
";",
"}",
"out",
".",
"print",
"(",
"sortedTopics",
"[",
"i",
"]",
".",
"getID",
"(",
")",
"+",
"\" \"",
"+",
"sortedTopics",
"[",
"i",
"]",
".",
"getWeight",
"(",
")",
"+",
"\" \"",
")",
";",
"}",
"out",
".",
"print",
"(",
"\" \\n\"",
")",
";",
"doc",
"++",
";",
"}",
"out",
".",
"close",
"(",
")",
";",
"}"
] | Infer topics for the provided instances and
write distributions to the provided file.
@param instances
@param distributionsFile
@param numIterations The total number of iterations of sampling per document
@param thinning The number of iterations between saved samples
@param burnIn The number of iterations before the first saved sample
@param threshold The minimum proportion of a given topic that will be written
@param max The total number of topics to report per document] | [
"Infer",
"topics",
"for",
"the",
"provided",
"instances",
"and",
"write",
"distributions",
"to",
"the",
"provided",
"file",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_topic_models/src/main/scala/cc/mallet/topics/MyTopicInferencer.java#L419-L472 |
140,897 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java | SourceFile.getAuthor | public String getAuthor() {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_author == null)
jcasType.jcas.throwFeatMissing("author", "de.julielab.jules.types.ace.SourceFile");
return jcasType.ll_cas.ll_getStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_author);} | java | public String getAuthor() {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_author == null)
jcasType.jcas.throwFeatMissing("author", "de.julielab.jules.types.ace.SourceFile");
return jcasType.ll_cas.ll_getStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_author);} | [
"public",
"String",
"getAuthor",
"(",
")",
"{",
"if",
"(",
"SourceFile_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeat_author",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"author\"",
",",
"\"de.julielab.jules.types.ace.SourceFile\"",
")",
";",
"return",
"jcasType",
".",
"ll_cas",
".",
"ll_getStringValue",
"(",
"addr",
",",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeatCode_author",
")",
";",
"}"
] | getter for author - gets
@generated
@return value of the feature | [
"getter",
"for",
"author",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java#L86-L89 |
140,898 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java | SourceFile.setAuthor | public void setAuthor(String v) {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_author == null)
jcasType.jcas.throwFeatMissing("author", "de.julielab.jules.types.ace.SourceFile");
jcasType.ll_cas.ll_setStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_author, v);} | java | public void setAuthor(String v) {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_author == null)
jcasType.jcas.throwFeatMissing("author", "de.julielab.jules.types.ace.SourceFile");
jcasType.ll_cas.ll_setStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_author, v);} | [
"public",
"void",
"setAuthor",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"SourceFile_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeat_author",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"author\"",
",",
"\"de.julielab.jules.types.ace.SourceFile\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeatCode_author",
",",
"v",
")",
";",
"}"
] | setter for author - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"author",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java#L95-L98 |
140,899 | BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java | SourceFile.setUri | public void setUri(String v) {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_uri == null)
jcasType.jcas.throwFeatMissing("uri", "de.julielab.jules.types.ace.SourceFile");
jcasType.ll_cas.ll_setStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_uri, v);} | java | public void setUri(String v) {
if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_uri == null)
jcasType.jcas.throwFeatMissing("uri", "de.julielab.jules.types.ace.SourceFile");
jcasType.ll_cas.ll_setStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_uri, v);} | [
"public",
"void",
"setUri",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"SourceFile_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeat_uri",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"uri\"",
",",
"\"de.julielab.jules.types.ace.SourceFile\"",
")",
";",
"jcasType",
".",
"ll_cas",
".",
"ll_setStringValue",
"(",
"addr",
",",
"(",
"(",
"SourceFile_Type",
")",
"jcasType",
")",
".",
"casFeatCode_uri",
",",
"v",
")",
";",
"}"
] | setter for uri - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"uri",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/SourceFile.java#L117-L120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.