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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.getOntClassId | public String getOntClassId() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_ontClassId == null)
jcasType.jcas.throwFeatMissing("ontClassId", "de.julielab.jules.types.OntClassMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((OntClassMention_Type)jcasType).casFea... | java | public String getOntClassId() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_ontClassId == null)
jcasType.jcas.throwFeatMissing("ontClassId", "de.julielab.jules.types.OntClassMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((OntClassMention_Type)jcasType).casFea... | [
"public",
"String",
"getOntClassId",
"(",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_ontClassId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",... | getter for ontClassId - gets ID of the corresponding ontology class
@generated
@return value of the feature | [
"getter",
"for",
"ontClassId",
"-",
"gets",
"ID",
"of",
"the",
"corresponding",
"ontology",
"class"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L87-L90 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.setOntClassId | public void setOntClassId(String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_ontClassId == null)
jcasType.jcas.throwFeatMissing("ontClassId", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setStringValue(addr, ((OntClassMention_Type)jcasType).casFeat... | java | public void setOntClassId(String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_ontClassId == null)
jcasType.jcas.throwFeatMissing("ontClassId", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setStringValue(addr, ((OntClassMention_Type)jcasType).casFeat... | [
"public",
"void",
"setOntClassId",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_ontClassId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"t... | setter for ontClassId - sets ID of the corresponding ontology class
@generated
@param v value to set into the feature | [
"setter",
"for",
"ontClassId",
"-",
"sets",
"ID",
"of",
"the",
"corresponding",
"ontology",
"class"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L96-L99 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.getSemanticTypes | public StringArray getSemanticTypes() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_g... | java | public StringArray getSemanticTypes() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_g... | [
"public",
"StringArray",
"getSemanticTypes",
"(",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_semanticTypes",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFe... | getter for semanticTypes - gets Names or IDs of associated semantic types.
@generated
@return value of the feature | [
"getter",
"for",
"semanticTypes",
"-",
"gets",
"Names",
"or",
"IDs",
"of",
"associated",
"semantic",
"types",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L153-L156 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.setSemanticTypes | public void setSemanticTypes(StringArray v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setRefValue(addr, ((OntClassMention_Type)jcasTy... | java | public void setSemanticTypes(StringArray v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setRefValue(addr, ((OntClassMention_Type)jcasTy... | [
"public",
"void",
"setSemanticTypes",
"(",
"StringArray",
"v",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_semanticTypes",
"==",
"null",
")",
"jcasType",
".",
"jcas",
... | setter for semanticTypes - sets Names or IDs of associated semantic types.
@generated
@param v value to set into the feature | [
"setter",
"for",
"semanticTypes",
"-",
"sets",
"Names",
"or",
"IDs",
"of",
"associated",
"semantic",
"types",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L162-L165 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.getSemanticTypes | public String getSemanticTypes(int i) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((On... | java | public String getSemanticTypes(int i) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((On... | [
"public",
"String",
"getSemanticTypes",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_semanticTypes",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",... | indexed getter for semanticTypes - gets an indexed value - Names or IDs of associated semantic types.
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"semanticTypes",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"Names",
"or",
"IDs",
"of",
"associated",
"semantic",
"types",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L172-L176 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.setSemanticTypes | public void setSemanticTypes(int i, String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(a... | java | public void setSemanticTypes(int i, String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_semanticTypes == null)
jcasType.jcas.throwFeatMissing("semanticTypes", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(a... | [
"public",
"void",
"setSemanticTypes",
"(",
"int",
"i",
",",
"String",
"v",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_semanticTypes",
"==",
"null",
")",
"jcasType",... | indexed setter for semanticTypes - sets an indexed value - Names or IDs of associated semantic types.
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"semanticTypes",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"Names",
"or",
"IDs",
"of",
"associated",
"semantic",
"types",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L183-L187 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.getPreferredTerm | public String getPreferredTerm() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_preferredTerm == null)
jcasType.jcas.throwFeatMissing("preferredTerm", "de.julielab.jules.types.OntClassMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((OntClassMention_Type)jcasTyp... | java | public String getPreferredTerm() {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_preferredTerm == null)
jcasType.jcas.throwFeatMissing("preferredTerm", "de.julielab.jules.types.OntClassMention");
return jcasType.ll_cas.ll_getStringValue(addr, ((OntClassMention_Type)jcasTyp... | [
"public",
"String",
"getPreferredTerm",
"(",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_preferredTerm",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMis... | getter for preferredTerm - gets The preferred term associated with the corresponding ontology class.
@generated
@return value of the feature | [
"getter",
"for",
"preferredTerm",
"-",
"gets",
"The",
"preferred",
"term",
"associated",
"with",
"the",
"corresponding",
"ontology",
"class",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L197-L200 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.setPreferredTerm | public void setPreferredTerm(String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_preferredTerm == null)
jcasType.jcas.throwFeatMissing("preferredTerm", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setStringValue(addr, ((OntClassMention_Type)jcasType... | java | public void setPreferredTerm(String v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_preferredTerm == null)
jcasType.jcas.throwFeatMissing("preferredTerm", "de.julielab.jules.types.OntClassMention");
jcasType.ll_cas.ll_setStringValue(addr, ((OntClassMention_Type)jcasType... | [
"public",
"void",
"setPreferredTerm",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_preferredTerm",
"==",
"null",
")",
"jcasType",
".",
"jcas",
"."... | setter for preferredTerm - sets The preferred term associated with the corresponding ontology class.
@generated
@param v value to set into the feature | [
"setter",
"for",
"preferredTerm",
"-",
"sets",
"The",
"preferred",
"term",
"associated",
"with",
"the",
"corresponding",
"ontology",
"class",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L206-L209 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.getMatchedTokens | public Token getMatchedTokens(int i) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Ont... | java | public Token getMatchedTokens(int i) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Ont... | [
"public",
"Token",
"getMatchedTokens",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedTokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | indexed getter for matchedTokens - gets an indexed value - List of tokens the ontology class mention is comprised of.
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"matchedTokens",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"List",
"of",
"tokens",
"the",
"ontology",
"class",
"mention",
"is",
"comprised",
"of",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L238-L242 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java | OntClassMention.setMatchedTokens | public void setMatchedTokens(int i, Token v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(ad... | java | public void setMatchedTokens(int i, Token v) {
if (OntClassMention_Type.featOkTst && ((OntClassMention_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "de.julielab.jules.types.OntClassMention");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(ad... | [
"public",
"void",
"setMatchedTokens",
"(",
"int",
"i",
",",
"Token",
"v",
")",
"{",
"if",
"(",
"OntClassMention_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"OntClassMention_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedTokens",
"==",
"null",
")",
"jcasType",
... | indexed setter for matchedTokens - sets an indexed value - List of tokens the ontology class mention is comprised of.
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"matchedTokens",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"List",
"of",
"tokens",
"the",
"ontology",
"class",
"mention",
"is",
"comprised",
"of",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/OntClassMention.java#L249-L253 | train |
BlueBrain/bluima | modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java | Database.generateDrop | public String generateDrop(String table) {
StringBuffer result = new StringBuffer();
result.append("DROP TABLE ");
result.append(table);
result.append(";\n");
return result.toString();
} | java | public String generateDrop(String table) {
StringBuffer result = new StringBuffer();
result.append("DROP TABLE ");
result.append(table);
result.append(";\n");
return result.toString();
} | [
"public",
"String",
"generateDrop",
"(",
"String",
"table",
")",
"{",
"StringBuffer",
"result",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"result",
".",
"append",
"(",
"\"DROP TABLE \"",
")",
";",
"result",
".",
"append",
"(",
"table",
")",
";",
"result",... | Generate the DROP statement for a table.
@param table
The name of the table to drop.
@return The SQL to drop a table. | [
"Generate",
"the",
"DROP",
"statement",
"for",
"a",
"table",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java#L103-L109 | train |
BlueBrain/bluima | modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java | Database.listTables | public Collection<String> listTables() throws SQLException {
Collection<String> result = new ArrayList<String>();
DatabaseMetaData dbm = connection.getMetaData();
String types[] = { "TABLE" };
ResultSet rs = dbm.getTables(null, null, "", types);
while (rs.next()) {
String str = rs.getString("TABLE_NAME");
... | java | public Collection<String> listTables() throws SQLException {
Collection<String> result = new ArrayList<String>();
DatabaseMetaData dbm = connection.getMetaData();
String types[] = { "TABLE" };
ResultSet rs = dbm.getTables(null, null, "", types);
while (rs.next()) {
String str = rs.getString("TABLE_NAME");
... | [
"public",
"Collection",
"<",
"String",
">",
"listTables",
"(",
")",
"throws",
"SQLException",
"{",
"Collection",
"<",
"String",
">",
"result",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"DatabaseMetaData",
"dbm",
"=",
"connection",
".",
"g... | Get a list of all tables in the database.
@return A list of all tables in the database.
@throws DatabaseException
If a database error occurs. | [
"Get",
"a",
"list",
"of",
"all",
"tables",
"in",
"the",
"database",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java#L143-L154 | train |
BlueBrain/bluima | modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java | Database.listColumns | public Collection<String> listColumns(String table) throws SQLException {
Collection<String> result = new ArrayList<String>();
DatabaseMetaData dbm = connection.getMetaData();
ResultSet rs = dbm.getColumns(null, null, table, null);
while (rs.next()) {
result.add(rs.getString("COLUMN_NAME"));
}
return result;... | java | public Collection<String> listColumns(String table) throws SQLException {
Collection<String> result = new ArrayList<String>();
DatabaseMetaData dbm = connection.getMetaData();
ResultSet rs = dbm.getColumns(null, null, table, null);
while (rs.next()) {
result.add(rs.getString("COLUMN_NAME"));
}
return result;... | [
"public",
"Collection",
"<",
"String",
">",
"listColumns",
"(",
"String",
"table",
")",
"throws",
"SQLException",
"{",
"Collection",
"<",
"String",
">",
"result",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"DatabaseMetaData",
"dbm",
"=",
"... | Get a list of all of the columns on a table.
@param table
The table to check.
@return A list of all of the columns.
@throws DatabaseException
If a database error occurs. | [
"Get",
"a",
"list",
"of",
"all",
"of",
"the",
"columns",
"on",
"a",
"table",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_db/src/main/java/ch/epfl/bbp/uima/db/utils/Database.java#L165-L173 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/ModelReplacementManager.java | ModelReplacementManager.startUsingModel | public void startUsingModel () {
if (replacementThread != null) {
try { replacementThread.join(); }
catch (InterruptedException e) {}
}
replacementCanProceed = false;
users++;
} | java | public void startUsingModel () {
if (replacementThread != null) {
try { replacementThread.join(); }
catch (InterruptedException e) {}
}
replacementCanProceed = false;
users++;
} | [
"public",
"void",
"startUsingModel",
"(",
")",
"{",
"if",
"(",
"replacementThread",
"!=",
"null",
")",
"{",
"try",
"{",
"replacementThread",
".",
"join",
"(",
")",
";",
"}",
"catch",
"(",
"InterruptedException",
"e",
")",
"{",
"}",
"}",
"replacementCanProc... | Inform the manager that a thread is using the model. If a replacement
is underway, the thread is forced to join the replacement thread and thus
wait until it is finished to begin using the model. | [
"Inform",
"the",
"manager",
"that",
"a",
"thread",
"is",
"using",
"the",
"model",
".",
"If",
"a",
"replacement",
"is",
"underway",
"the",
"thread",
"is",
"forced",
"to",
"join",
"the",
"replacement",
"thread",
"and",
"thus",
"wait",
"until",
"it",
"is",
... | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/ModelReplacementManager.java#L100-L107 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/ModelReplacementManager.java | ModelReplacementManager.replaceModel | public synchronized void replaceModel (MaxentModel model) {
replacementThread = Thread.currentThread();
while (!replacementCanProceed) Thread.yield();
setter.setModel(model);
replacementThread = null;
} | java | public synchronized void replaceModel (MaxentModel model) {
replacementThread = Thread.currentThread();
while (!replacementCanProceed) Thread.yield();
setter.setModel(model);
replacementThread = null;
} | [
"public",
"synchronized",
"void",
"replaceModel",
"(",
"MaxentModel",
"model",
")",
"{",
"replacementThread",
"=",
"Thread",
".",
"currentThread",
"(",
")",
";",
"while",
"(",
"!",
"replacementCanProceed",
")",
"Thread",
".",
"yield",
"(",
")",
";",
"setter",
... | Replace the old model with a new one, forcing the replacement to wait
until all threads using the old model have finished using it.
@param model The new model which is being swapped in. | [
"Replace",
"the",
"old",
"model",
"with",
"a",
"new",
"one",
"forcing",
"the",
"replacement",
"to",
"wait",
"until",
"all",
"threads",
"using",
"the",
"old",
"model",
"have",
"finished",
"using",
"it",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/ModelReplacementManager.java#L124-L129 | train |
BlueBrain/bluima | utils/blue_commons/src/main/java/ch/epfl/bbp/triechar/TrieData.java | TrieData.toIdFile | public void toIdFile(OutputStream os) throws IOException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os));
for (TrieNodeData<T> child : root.children.values()) {
child.writeIds(writer, new char[0]);// recursive
}
writer.close();
} | java | public void toIdFile(OutputStream os) throws IOException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os));
for (TrieNodeData<T> child : root.children.values()) {
child.writeIds(writer, new char[0]);// recursive
}
writer.close();
} | [
"public",
"void",
"toIdFile",
"(",
"OutputStream",
"os",
")",
"throws",
"IOException",
"{",
"BufferedWriter",
"writer",
"=",
"new",
"BufferedWriter",
"(",
"new",
"OutputStreamWriter",
"(",
"os",
")",
")",
";",
"for",
"(",
"TrieNodeData",
"<",
"T",
">",
"chil... | one entry per line. word first, then tab, then data | [
"one",
"entry",
"per",
"line",
".",
"word",
"first",
"then",
"tab",
"then",
"data"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/utils/blue_commons/src/main/java/ch/epfl/bbp/triechar/TrieData.java#L48-L54 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/Glossary.java | Glossary.getGlossary | public java.util.List<Glossary> getGlossary() {
if (glossary == null) {
glossary = new ArrayList<Glossary>();
}
return this.glossary;
} | java | public java.util.List<Glossary> getGlossary() {
if (glossary == null) {
glossary = new ArrayList<Glossary>();
}
return this.glossary;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Glossary",
">",
"getGlossary",
"(",
")",
"{",
"if",
"(",
"glossary",
"==",
"null",
")",
"{",
"glossary",
"=",
"new",
"ArrayList",
"<",
"Glossary",
">",
"(",
")",
";",
"}",
"return",
"this",
".",
"gl... | Gets the value of the glossary 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 glossary property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"glossary",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/Glossary.java#L261-L266 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.getDescriptorName | public String getDescriptorName() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorName == null)
jcasType.jcas.throwFeatMissing("descriptorName", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCod... | java | public String getDescriptorName() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorName == null)
jcasType.jcas.throwFeatMissing("descriptorName", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCod... | [
"public",
"String",
"getDescriptorName",
"(",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_descriptorName",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",... | getter for descriptorName - gets see MeSH
@generated
@return value of the feature | [
"getter",
"for",
"descriptorName",
"-",
"gets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L85-L88 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.setDescriptorName | public void setDescriptorName(String v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorName == null)
jcasType.jcas.throwFeatMissing("descriptorName", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode... | java | public void setDescriptorName(String v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorName == null)
jcasType.jcas.throwFeatMissing("descriptorName", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode... | [
"public",
"void",
"setDescriptorName",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_descriptorName",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"t... | setter for descriptorName - sets see MeSH
@generated
@param v value to set into the feature | [
"setter",
"for",
"descriptorName",
"-",
"sets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L94-L97 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.getQualifierName | public String getQualifierName() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierName == null)
jcasType.jcas.throwFeatMissing("qualifierName", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode_q... | java | public String getQualifierName() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierName == null)
jcasType.jcas.throwFeatMissing("qualifierName", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode_q... | [
"public",
"String",
"getQualifierName",
"(",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_qualifierName",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | getter for qualifierName - gets see MeSH
@generated
@return value of the feature | [
"getter",
"for",
"qualifierName",
"-",
"gets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L107-L110 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.setQualifierName | public void setQualifierName(String v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierName == null)
jcasType.jcas.throwFeatMissing("qualifierName", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode_qu... | java | public void setQualifierName(String v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierName == null)
jcasType.jcas.throwFeatMissing("qualifierName", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode_qu... | [
"public",
"void",
"setQualifierName",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_qualifierName",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"thr... | setter for qualifierName - sets see MeSH
@generated
@param v value to set into the feature | [
"setter",
"for",
"qualifierName",
"-",
"sets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L116-L119 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.getDescriptorNameMajorTopic | public boolean getDescriptorNameMajorTopic() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("descriptorNameMajorTopic", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((MeshH... | java | public boolean getDescriptorNameMajorTopic() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("descriptorNameMajorTopic", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((MeshH... | [
"public",
"boolean",
"getDescriptorNameMajorTopic",
"(",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_descriptorNameMajorTopic",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | getter for descriptorNameMajorTopic - gets see MeSH
@generated
@return value of the feature | [
"getter",
"for",
"descriptorNameMajorTopic",
"-",
"gets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L129-L132 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.setDescriptorNameMajorTopic | public void setDescriptorNameMajorTopic(boolean v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("descriptorNameMajorTopic", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setBooleanValue(addr, ((MeshHe... | java | public void setDescriptorNameMajorTopic(boolean v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("descriptorNameMajorTopic", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setBooleanValue(addr, ((MeshHe... | [
"public",
"void",
"setDescriptorNameMajorTopic",
"(",
"boolean",
"v",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_descriptorNameMajorTopic",
"==",
"null",
")",
"jcasType",
".",
... | setter for descriptorNameMajorTopic - sets see MeSH
@generated
@param v value to set into the feature | [
"setter",
"for",
"descriptorNameMajorTopic",
"-",
"sets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L138-L141 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.getQualifierNameMajorTopic | public boolean getQualifierNameMajorTopic() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("qualifierNameMajorTopic", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((MeshHead... | java | public boolean getQualifierNameMajorTopic() {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("qualifierNameMajorTopic", "de.julielab.jules.types.MeshHeading");
return jcasType.ll_cas.ll_getBooleanValue(addr, ((MeshHead... | [
"public",
"boolean",
"getQualifierNameMajorTopic",
"(",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_qualifierNameMajorTopic",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | getter for qualifierNameMajorTopic - gets see MeSH
@generated
@return value of the feature | [
"getter",
"for",
"qualifierNameMajorTopic",
"-",
"gets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L151-L154 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java | MeshHeading.setQualifierNameMajorTopic | public void setQualifierNameMajorTopic(boolean v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("qualifierNameMajorTopic", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setBooleanValue(addr, ((MeshHeadi... | java | public void setQualifierNameMajorTopic(boolean v) {
if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_qualifierNameMajorTopic == null)
jcasType.jcas.throwFeatMissing("qualifierNameMajorTopic", "de.julielab.jules.types.MeshHeading");
jcasType.ll_cas.ll_setBooleanValue(addr, ((MeshHeadi... | [
"public",
"void",
"setQualifierNameMajorTopic",
"(",
"boolean",
"v",
")",
"{",
"if",
"(",
"MeshHeading_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"MeshHeading_Type",
")",
"jcasType",
")",
".",
"casFeat_qualifierNameMajorTopic",
"==",
"null",
")",
"jcasType",
".",
... | setter for qualifierNameMajorTopic - sets see MeSH
@generated
@param v value to set into the feature | [
"setter",
"for",
"qualifierNameMajorTopic",
"-",
"sets",
"see",
"MeSH"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/MeshHeading.java#L160-L163 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.getRef_id | public String getRef_id() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_ref_id == null)
jcasType.jcas.throwFeatMissing("ref_id", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_ref_id);} | java | public String getRef_id() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_ref_id == null)
jcasType.jcas.throwFeatMissing("ref_id", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_ref_id);} | [
"public",
"String",
"getRef_id",
"(",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_ref_id",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ref_id\"",
... | getter for ref_id - gets
@generated
@return value of the feature | [
"getter",
"for",
"ref_id",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L88-L91 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.setRef_id | public void setRef_id(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_ref_id == null)
jcasType.jcas.throwFeatMissing("ref_id", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_ref_id, v);} | java | public void setRef_id(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_ref_id == null)
jcasType.jcas.throwFeatMissing("ref_id", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_ref_id, v);} | [
"public",
"void",
"setRef_id",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_ref_id",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",... | setter for ref_id - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"ref_id",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L97-L100 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.getCanonical | public String getCanonical() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_canonical == null)
jcasType.jcas.throwFeatMissing("canonical", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_canonical);} | java | public String getCanonical() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_canonical == null)
jcasType.jcas.throwFeatMissing("canonical", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_canonical);} | [
"public",
"String",
"getCanonical",
"(",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_canonical",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"canon... | getter for canonical - gets
@generated
@return value of the feature | [
"getter",
"for",
"canonical",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L110-L113 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.setCanonical | public void setCanonical(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_canonical == null)
jcasType.jcas.throwFeatMissing("canonical", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_canonical, v);} | java | public void setCanonical(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_canonical == null)
jcasType.jcas.throwFeatMissing("canonical", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_canonical, v);} | [
"public",
"void",
"setCanonical",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_canonical",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for canonical - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"canonical",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L119-L122 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.getMatchedText | public String getMatchedText() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedText == null)
jcasType.jcas.throwFeatMissing("matchedText", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_matchedText);} | java | public String getMatchedText() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedText == null)
jcasType.jcas.throwFeatMissing("matchedText", "ch.epfl.bbp.uima.types.BioVerb");
return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_matchedText);} | [
"public",
"String",
"getMatchedText",
"(",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedText",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"m... | getter for matchedText - gets
@generated
@return value of the feature | [
"getter",
"for",
"matchedText",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L156-L159 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.setMatchedText | public void setMatchedText(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedText == null)
jcasType.jcas.throwFeatMissing("matchedText", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_matchedText, v);} | java | public void setMatchedText(String v) {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedText == null)
jcasType.jcas.throwFeatMissing("matchedText", "ch.epfl.bbp.uima.types.BioVerb");
jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_matchedText, v);} | [
"public",
"void",
"setMatchedText",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedText",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissin... | setter for matchedText - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"matchedText",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L165-L168 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java | BioVerb.getMatchedTokens | public FSArray getMatchedTokens() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "ch.epfl.bbp.uima.types.BioVerb");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((BioVerb_Type)j... | java | public FSArray getMatchedTokens() {
if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "ch.epfl.bbp.uima.types.BioVerb");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((BioVerb_Type)j... | [
"public",
"FSArray",
"getMatchedTokens",
"(",
")",
"{",
"if",
"(",
"BioVerb_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"BioVerb_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedTokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
... | getter for matchedTokens - gets
@generated
@return value of the feature | [
"getter",
"for",
"matchedTokens",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/BioVerb.java#L178-L181 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/AdjectiveFeats.java | AdjectiveFeats.getDegree | public String getDegree() {
if (AdjectiveFeats_Type.featOkTst && ((AdjectiveFeats_Type)jcasType).casFeat_degree == null)
jcasType.jcas.throwFeatMissing("degree", "de.julielab.jules.types.AdjectiveFeats");
return jcasType.ll_cas.ll_getStringValue(addr, ((AdjectiveFeats_Type)jcasType).casFeatCode_degree);} | java | public String getDegree() {
if (AdjectiveFeats_Type.featOkTst && ((AdjectiveFeats_Type)jcasType).casFeat_degree == null)
jcasType.jcas.throwFeatMissing("degree", "de.julielab.jules.types.AdjectiveFeats");
return jcasType.ll_cas.ll_getStringValue(addr, ((AdjectiveFeats_Type)jcasType).casFeatCode_degree);} | [
"public",
"String",
"getDegree",
"(",
")",
"{",
"if",
"(",
"AdjectiveFeats_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"AdjectiveFeats_Type",
")",
"jcasType",
")",
".",
"casFeat_degree",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
... | getter for degree - gets Degree
@generated
@return value of the feature | [
"getter",
"for",
"degree",
"-",
"gets",
"Degree"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/AdjectiveFeats.java#L85-L88 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/AdjectiveFeats.java | AdjectiveFeats.setDegree | public void setDegree(String v) {
if (AdjectiveFeats_Type.featOkTst && ((AdjectiveFeats_Type)jcasType).casFeat_degree == null)
jcasType.jcas.throwFeatMissing("degree", "de.julielab.jules.types.AdjectiveFeats");
jcasType.ll_cas.ll_setStringValue(addr, ((AdjectiveFeats_Type)jcasType).casFeatCode_degree, v);... | java | public void setDegree(String v) {
if (AdjectiveFeats_Type.featOkTst && ((AdjectiveFeats_Type)jcasType).casFeat_degree == null)
jcasType.jcas.throwFeatMissing("degree", "de.julielab.jules.types.AdjectiveFeats");
jcasType.ll_cas.ll_setStringValue(addr, ((AdjectiveFeats_Type)jcasType).casFeatCode_degree, v);... | [
"public",
"void",
"setDegree",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"AdjectiveFeats_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"AdjectiveFeats_Type",
")",
"jcasType",
")",
".",
"casFeat_degree",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMi... | setter for degree - sets Degree
@generated
@param v value to set into the feature | [
"setter",
"for",
"degree",
"-",
"sets",
"Degree"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/AdjectiveFeats.java#L94-L97 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/tokens/SimpleSourcedTokenizer.java | SimpleSourcedTokenizer.sourcedTokenize | public SourcedToken[] sourcedTokenize(String input,String source)
{
Token[] tokens = tokenize(input);
SourcedToken[] sourcedTokens = new SourcedToken[tokens.length];
for (int i=0; i<tokens.length; i++) {
String key = tokens[i].getValue()+"@"+source;
if (tokMap.get(ke... | java | public SourcedToken[] sourcedTokenize(String input,String source)
{
Token[] tokens = tokenize(input);
SourcedToken[] sourcedTokens = new SourcedToken[tokens.length];
for (int i=0; i<tokens.length; i++) {
String key = tokens[i].getValue()+"@"+source;
if (tokMap.get(ke... | [
"public",
"SourcedToken",
"[",
"]",
"sourcedTokenize",
"(",
"String",
"input",
",",
"String",
"source",
")",
"{",
"Token",
"[",
"]",
"tokens",
"=",
"tokenize",
"(",
"input",
")",
";",
"SourcedToken",
"[",
"]",
"sourcedTokens",
"=",
"new",
"SourcedToken",
"... | Return tokenized version of a string. | [
"Return",
"tokenized",
"version",
"of",
"a",
"string",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/tokens/SimpleSourcedTokenizer.java#L23-L36 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/BagOfTokens.java | BagOfTokens.setWeight | void setWeight(Token tok, double d) {
Double oldWeight = (Double)weightMap.get(tok);
totalWeight += oldWeight==null ? d : (d - oldWeight.doubleValue());
weightMap.put(tok,new Double(d));
} | java | void setWeight(Token tok, double d) {
Double oldWeight = (Double)weightMap.get(tok);
totalWeight += oldWeight==null ? d : (d - oldWeight.doubleValue());
weightMap.put(tok,new Double(d));
} | [
"void",
"setWeight",
"(",
"Token",
"tok",
",",
"double",
"d",
")",
"{",
"Double",
"oldWeight",
"=",
"(",
"Double",
")",
"weightMap",
".",
"get",
"(",
"tok",
")",
";",
"totalWeight",
"+=",
"oldWeight",
"==",
"null",
"?",
"d",
":",
"(",
"d",
"-",
"ol... | Change the weight of a token in the bag | [
"Change",
"the",
"weight",
"of",
"a",
"token",
"in",
"the",
"bag"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/BagOfTokens.java#L47-L51 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java | DBInfo.getAcList | public StringArray getAcList() {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeat... | java | public StringArray getAcList() {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeat... | [
"public",
"StringArray",
"getAcList",
"(",
")",
"{",
"if",
"(",
"DBInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DBInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_acList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"acList\"... | getter for acList - gets A list of accession numbers for this DB, C
@generated
@return value of the feature | [
"getter",
"for",
"acList",
"-",
"gets",
"A",
"list",
"of",
"accession",
"numbers",
"for",
"this",
"DB",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java#L108-L111 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java | DBInfo.setAcList | public void setAcList(StringArray v) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.ll_cas.ll_setRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList, jcasType.ll_cas.ll_getFSRef(v));} | java | public void setAcList(StringArray v) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.ll_cas.ll_setRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList, jcasType.ll_cas.ll_getFSRef(v));} | [
"public",
"void",
"setAcList",
"(",
"StringArray",
"v",
")",
"{",
"if",
"(",
"DBInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DBInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_acList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"... | setter for acList - sets A list of accession numbers for this DB, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"acList",
"-",
"sets",
"A",
"list",
"of",
"accession",
"numbers",
"for",
"this",
"DB",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java#L117-L120 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java | DBInfo.getAcList | public String getAcList(int i) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList), i);
... | java | public String getAcList(int i) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList), i);
... | [
"public",
"String",
"getAcList",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"DBInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DBInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_acList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
... | indexed getter for acList - gets an indexed value - A list of accession numbers for this DB, C
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"acList",
"-",
"gets",
"an",
"indexed",
"value",
"-",
"A",
"list",
"of",
"accession",
"numbers",
"for",
"this",
"DB",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java#L127-L131 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java | DBInfo.setAcList | public void setAcList(int i, String v) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList)... | java | public void setAcList(int i, String v) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList)... | [
"public",
"void",
"setAcList",
"(",
"int",
"i",
",",
"String",
"v",
")",
"{",
"if",
"(",
"DBInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DBInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_acList",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"thro... | indexed setter for acList - sets an indexed value - A list of accession numbers for this DB, C
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"acList",
"-",
"sets",
"an",
"indexed",
"value",
"-",
"A",
"list",
"of",
"accession",
"numbers",
"for",
"this",
"DB",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/DBInfo.java#L138-L142 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java | Date.getDay | public int getDay() {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null)
jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date");
return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_day);} | java | public int getDay() {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null)
jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date");
return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_day);} | [
"public",
"int",
"getDay",
"(",
")",
"{",
"if",
"(",
"Date_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Date_Type",
")",
"jcasType",
")",
".",
"casFeat_day",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"day\"",
",",
"\"de.jul... | getter for day - gets day of the month, C
@generated
@return value of the feature | [
"getter",
"for",
"day",
"-",
"gets",
"day",
"of",
"the",
"month",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java#L85-L88 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java | Date.setDay | public void setDay(int v) {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null)
jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date");
jcasType.ll_cas.ll_setIntValue(addr, ((Date_Type)jcasType).casFeatCode_day, v);} | java | public void setDay(int v) {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null)
jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date");
jcasType.ll_cas.ll_setIntValue(addr, ((Date_Type)jcasType).casFeatCode_day, v);} | [
"public",
"void",
"setDay",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"Date_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Date_Type",
")",
"jcasType",
")",
".",
"casFeat_day",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"day\"",
... | setter for day - sets day of the month, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"day",
"-",
"sets",
"day",
"of",
"the",
"month",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java#L94-L97 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java | Date.getMonth | public int getMonth() {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_month == null)
jcasType.jcas.throwFeatMissing("month", "de.julielab.jules.types.Date");
return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_month);} | java | public int getMonth() {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_month == null)
jcasType.jcas.throwFeatMissing("month", "de.julielab.jules.types.Date");
return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_month);} | [
"public",
"int",
"getMonth",
"(",
")",
"{",
"if",
"(",
"Date_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Date_Type",
")",
"jcasType",
")",
".",
"casFeat_month",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"month\"",
",",
"\"... | getter for month - gets month of the year, C
@generated
@return value of the feature | [
"getter",
"for",
"month",
"-",
"gets",
"month",
"of",
"the",
"year",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java#L107-L110 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java | Date.setMonth | public void setMonth(int v) {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_month == null)
jcasType.jcas.throwFeatMissing("month", "de.julielab.jules.types.Date");
jcasType.ll_cas.ll_setIntValue(addr, ((Date_Type)jcasType).casFeatCode_month, v);} | java | public void setMonth(int v) {
if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_month == null)
jcasType.jcas.throwFeatMissing("month", "de.julielab.jules.types.Date");
jcasType.ll_cas.ll_setIntValue(addr, ((Date_Type)jcasType).casFeatCode_month, v);} | [
"public",
"void",
"setMonth",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"Date_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Date_Type",
")",
"jcasType",
")",
".",
"casFeat_month",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"month... | setter for month - sets month of the year, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"month",
"-",
"sets",
"month",
"of",
"the",
"year",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Date.java#L116-L119 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.averagePrecision | public Double averagePrecision()
{
double n = 0;
double sumPrecision = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
double precisionAtRankI = n/(i+1.0);
sumPrecision += precisionAtRankI;
}
... | java | public Double averagePrecision()
{
double n = 0;
double sumPrecision = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
double precisionAtRankI = n/(i+1.0);
sumPrecision += precisionAtRankI;
}
... | [
"public",
"Double",
"averagePrecision",
"(",
")",
"{",
"double",
"n",
"=",
"0",
";",
"double",
"sumPrecision",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pairs",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"correctPa... | non-interpolated average precision | [
"non",
"-",
"interpolated",
"average",
"precision"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L176-L188 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.maxF1 | public Double maxF1()
{
double maxF1 = -Double.MAX_VALUE;
double n = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
double precisionAtRankI = n/(i+1.0);
double recallAtRankI = n/numCorrectPairs;
... | java | public Double maxF1()
{
double maxF1 = -Double.MAX_VALUE;
double n = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
double precisionAtRankI = n/(i+1.0);
double recallAtRankI = n/numCorrectPairs;
... | [
"public",
"Double",
"maxF1",
"(",
")",
"{",
"double",
"maxF1",
"=",
"-",
"Double",
".",
"MAX_VALUE",
";",
"double",
"n",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pairs",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"... | max F1 for any threshold | [
"max",
"F1",
"for",
"any",
"threshold"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L191-L207 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.blockerRecall | public Double blockerRecall()
{
double n = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
}
}
return new Double(n/numCorrectPairs);
} | java | public Double blockerRecall()
{
double n = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
}
}
return new Double(n/numCorrectPairs);
} | [
"public",
"Double",
"blockerRecall",
"(",
")",
"{",
"double",
"n",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pairs",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"correctPair",
"(",
"i",
")",
")",
"{",
"n",
"++",... | performance of the blocker | [
"performance",
"of",
"the",
"blocker"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L210-L219 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.interpolated11PointPrecision | public double[] interpolated11PointPrecision()
{
double[] interpolatedPrecision = new double[11];
int numCorrectAtRankI = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) ++numCorrectAtRankI;
double recall = numCorrectAtRankI/((double)numCorrectPairs);
... | java | public double[] interpolated11PointPrecision()
{
double[] interpolatedPrecision = new double[11];
int numCorrectAtRankI = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) ++numCorrectAtRankI;
double recall = numCorrectAtRankI/((double)numCorrectPairs);
... | [
"public",
"double",
"[",
"]",
"interpolated11PointPrecision",
"(",
")",
"{",
"double",
"[",
"]",
"interpolatedPrecision",
"=",
"new",
"double",
"[",
"11",
"]",
";",
"int",
"numCorrectAtRankI",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
... | Return an array of interpolated precision at various different recall levels. | [
"Return",
"an",
"array",
"of",
"interpolated",
"precision",
"at",
"various",
"different",
"recall",
"levels",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L231-L246 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.graphPrecisionRecall | public void graphPrecisionRecall(PrintStream out) throws IOException
{
/** find interpolated precision - max precision at any rank point after i */
double[] interpolatedPrecision = new double[pairs.length];
double n = numCorrectPairs;
double maxPrecision = n/pairs.length;
fo... | java | public void graphPrecisionRecall(PrintStream out) throws IOException
{
/** find interpolated precision - max precision at any rank point after i */
double[] interpolatedPrecision = new double[pairs.length];
double n = numCorrectPairs;
double maxPrecision = n/pairs.length;
fo... | [
"public",
"void",
"graphPrecisionRecall",
"(",
"PrintStream",
"out",
")",
"throws",
"IOException",
"{",
"/** find interpolated precision - max precision at any rank point after i */",
"double",
"[",
"]",
"interpolatedPrecision",
"=",
"new",
"double",
"[",
"pairs",
".",
"len... | Graph interpolated precision vs recall | [
"Graph",
"interpolated",
"precision",
"vs",
"recall"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L249-L271 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.displayResults | public void displayResults(boolean showMismatches,PrintStream out) throws IOException
{
PrintfFormat fmt = new PrintfFormat("%s %3d %7.2f | %30s | %30s\n");
for (int i=0; i<pairs.length; i++) {
if (pairs[i]!=null) {
String label = pairs[i].isCorrect() ? "+" : "-";
... | java | public void displayResults(boolean showMismatches,PrintStream out) throws IOException
{
PrintfFormat fmt = new PrintfFormat("%s %3d %7.2f | %30s | %30s\n");
for (int i=0; i<pairs.length; i++) {
if (pairs[i]!=null) {
String label = pairs[i].isCorrect() ? "+" : "-";
... | [
"public",
"void",
"displayResults",
"(",
"boolean",
"showMismatches",
",",
"PrintStream",
"out",
")",
"throws",
"IOException",
"{",
"PrintfFormat",
"fmt",
"=",
"new",
"PrintfFormat",
"(",
"\"%s %3d %7.2f | %30s | %30s\\n\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
... | Show results in a simple format. | [
"Show",
"results",
"in",
"a",
"simple",
"format",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L276-L295 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java | SpecialMatchExpt.dumpResults | public void dumpResults(PrintStream out) throws IOException
{
PrintfFormat fmt = new PrintfFormat("%7.2f\t%s\t%s\n");
for (int i=0; i<pairs.length; i++) {
if (pairs[i]!=null) {
String aText = (pairs[i].getA()==null) ? "***" : pairs[i].getA().unwrap();
Str... | java | public void dumpResults(PrintStream out) throws IOException
{
PrintfFormat fmt = new PrintfFormat("%7.2f\t%s\t%s\n");
for (int i=0; i<pairs.length; i++) {
if (pairs[i]!=null) {
String aText = (pairs[i].getA()==null) ? "***" : pairs[i].getA().unwrap();
Str... | [
"public",
"void",
"dumpResults",
"(",
"PrintStream",
"out",
")",
"throws",
"IOException",
"{",
"PrintfFormat",
"fmt",
"=",
"new",
"PrintfFormat",
"(",
"\"%7.2f\\t%s\\t%s\\n\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pairs",
".",
"lengt... | Show results in an easily machine-readable format. | [
"Show",
"results",
"in",
"an",
"easily",
"machine",
"-",
"readable",
"format",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/SpecialMatchExpt.java#L299-L313 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/io/SuffixSensitiveGISModelReader.java | SuffixSensitiveGISModelReader.main | public static void main(String[] args) throws IOException {
ch.epfl.bbp.shaded.opennlp.maxent.GISModel m =
new SuffixSensitiveGISModelReader(new File(args[0])).getModel();
new SuffixSensitiveGISModelWriter(m, new File(args[1])).persist();
} | java | public static void main(String[] args) throws IOException {
ch.epfl.bbp.shaded.opennlp.maxent.GISModel m =
new SuffixSensitiveGISModelReader(new File(args[0])).getModel();
new SuffixSensitiveGISModelWriter(m, new File(args[1])).persist();
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"IOException",
"{",
"ch",
".",
"epfl",
".",
"bbp",
".",
"shaded",
".",
"opennlp",
".",
"maxent",
".",
"GISModel",
"m",
"=",
"new",
"SuffixSensitiveGISModelReader",
"(",
"... | To convert between different formats of the new style.
<p>java opennlp.maxent.io.SuffixSensitiveGISModelReader old_model_name new_model_name
<p>For example, to convert a model called "model.bin.gz" (which is thus
saved in gzipped binary format) to one in (unzipped) text format:
<p>java opennlp.maxent.io.SuffixSensit... | [
"To",
"convert",
"between",
"different",
"formats",
"of",
"the",
"new",
"style",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/io/SuffixSensitiveGISModelReader.java#L111-L115 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.unknownByPDFExtractor | private boolean unknownByPDFExtractor(ArrayList<ArrayList<TextPiece>> wordsByPage) {
ArrayList<TextPiece> wordsOfPageOne = wordsByPage.get(0);
boolean isUnknownCode = false;
int i = 0;
float codeSize = 0.0f;
while (i<wordsOfPageOne.size()) {
codeSize = codeSize + Math.max(wordsOfPa... | java | private boolean unknownByPDFExtractor(ArrayList<ArrayList<TextPiece>> wordsByPage) {
ArrayList<TextPiece> wordsOfPageOne = wordsByPage.get(0);
boolean isUnknownCode = false;
int i = 0;
float codeSize = 0.0f;
while (i<wordsOfPageOne.size()) {
codeSize = codeSize + Math.max(wordsOfPa... | [
"private",
"boolean",
"unknownByPDFExtractor",
"(",
"ArrayList",
"<",
"ArrayList",
"<",
"TextPiece",
">",
">",
"wordsByPage",
")",
"{",
"ArrayList",
"<",
"TextPiece",
">",
"wordsOfPageOne",
"=",
"wordsByPage",
".",
"get",
"(",
"0",
")",
";",
"boolean",
"isUnkn... | Detects PDF documents encoded in unknown codes
All the constant values are set based on extensive observation and experiment.
Of course, these values still need improvement for better results.
Machine learning methods can be used to tune these values.
@param wordsByPage
the extracted texts in the word level in a docu... | [
"Detects",
"PDF",
"documents",
"encoded",
"in",
"unknown",
"codes"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L237-L250 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getDistinctSortedY | private Vector getDistinctSortedY(Vector distinctY, Vector piecesEachY, ArrayList<TextPiece> wordsOfAPage,
TableCandidate tc) {
int pieceNumThisPage = wordsOfAPage.size();
float x_columnToGetYs = m_docInfo.getMinX();
float endX_columnToGetYs = m_docInfo.getMiddleX();
if ( (tc.isWideTable()... | java | private Vector getDistinctSortedY(Vector distinctY, Vector piecesEachY, ArrayList<TextPiece> wordsOfAPage,
TableCandidate tc) {
int pieceNumThisPage = wordsOfAPage.size();
float x_columnToGetYs = m_docInfo.getMinX();
float endX_columnToGetYs = m_docInfo.getMiddleX();
if ( (tc.isWideTable()... | [
"private",
"Vector",
"getDistinctSortedY",
"(",
"Vector",
"distinctY",
",",
"Vector",
"piecesEachY",
",",
"ArrayList",
"<",
"TextPiece",
">",
"wordsOfAPage",
",",
"TableCandidate",
"tc",
")",
"{",
"int",
"pieceNumThisPage",
"=",
"wordsOfAPage",
".",
"size",
"(",
... | We do not sort the text pieces according to Y values in the WHOLE page,
because if a document contains more than one column and the table is within one document column,
this action will bring the text pieces in other document columns as noise texts.
By default, we sort Y coordinate values based on the text pieces in th... | [
"We",
"do",
"not",
"sort",
"the",
"text",
"pieces",
"according",
"to",
"Y",
"values",
"in",
"the",
"WHOLE",
"page",
"because",
"if",
"a",
"document",
"contains",
"more",
"than",
"one",
"column",
"and",
"the",
"table",
"is",
"within",
"one",
"document",
"... | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L988-L1013 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getMatchedTabledKeyword | private String getMatchedTabledKeyword(String line) {
for (String keyword : Config.TABLE_KEYWORDS) {
if (line.startsWith(keyword)) {
return keyword;
}
}
return null;
} | java | private String getMatchedTabledKeyword(String line) {
for (String keyword : Config.TABLE_KEYWORDS) {
if (line.startsWith(keyword)) {
return keyword;
}
}
return null;
} | [
"private",
"String",
"getMatchedTabledKeyword",
"(",
"String",
"line",
")",
"{",
"for",
"(",
"String",
"keyword",
":",
"Config",
".",
"TABLE_KEYWORDS",
")",
"{",
"if",
"(",
"line",
".",
"startsWith",
"(",
"keyword",
")",
")",
"{",
"return",
"keyword",
";",... | Checks and returns the table caption keyword at the beginning of a give line
@param line
input line
@return matched keyword if found / null if not found | [
"Checks",
"and",
"returns",
"the",
"table",
"caption",
"keyword",
"at",
"the",
"beginning",
"of",
"a",
"give",
"line"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1293-L1300 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getMatchedFigureKeyword | private String getMatchedFigureKeyword(String line) {
for (String keyword : Config.FIGURE_KEYWORDS) {
if (line.startsWith(keyword)) {
return keyword;
}
}
return null;
} | java | private String getMatchedFigureKeyword(String line) {
for (String keyword : Config.FIGURE_KEYWORDS) {
if (line.startsWith(keyword)) {
return keyword;
}
}
return null;
} | [
"private",
"String",
"getMatchedFigureKeyword",
"(",
"String",
"line",
")",
"{",
"for",
"(",
"String",
"keyword",
":",
"Config",
".",
"FIGURE_KEYWORDS",
")",
"{",
"if",
"(",
"line",
".",
"startsWith",
"(",
"keyword",
")",
")",
"{",
"return",
"keyword",
";"... | Checks and returns the figure caption keyword at the beginning of a give line
@param line
input line
@return matched keyword if found / null if not found | [
"Checks",
"and",
"returns",
"the",
"figure",
"caption",
"keyword",
"at",
"the",
"beginning",
"of",
"a",
"give",
"line"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1310-L1317 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.findFootnoteBeginRow | private void findFootnoteBeginRow(TableCandidate tc) {
for (int i = 0; i < tc.getRows().size(); i++) {
TableRow row = tc.getRows().get(i);
TextPiece firstCell = row.getCells().get(0);
String text = firstCell.getText();
if (text.startsWith("*")
|| text.startsWith("t ")
|| ... | java | private void findFootnoteBeginRow(TableCandidate tc) {
for (int i = 0; i < tc.getRows().size(); i++) {
TableRow row = tc.getRows().get(i);
TextPiece firstCell = row.getCells().get(0);
String text = firstCell.getText();
if (text.startsWith("*")
|| text.startsWith("t ")
|| ... | [
"private",
"void",
"findFootnoteBeginRow",
"(",
"TableCandidate",
"tc",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"tc",
".",
"getRows",
"(",
")",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"TableRow",
"row",
"=",
"tc",
".",... | Finds the first line of the potential table footnote
@param tc
the object of the table candidate | [
"Finds",
"the",
"first",
"line",
"of",
"the",
"potential",
"table",
"footnote"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1396-L1414 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.determineFootnoteHeading | private void determineFootnoteHeading(TableCandidate tc) {
/*
* Gets the maximal column number based on all table rows before footnote
*/
int maxColumnNum = 0;
for (int i = 0; i < tc.getFootnoteBeginRow(); i++) {
TableRow row = tc.getRows().get(i);
if (row.getCells().size(... | java | private void determineFootnoteHeading(TableCandidate tc) {
/*
* Gets the maximal column number based on all table rows before footnote
*/
int maxColumnNum = 0;
for (int i = 0; i < tc.getFootnoteBeginRow(); i++) {
TableRow row = tc.getRows().get(i);
if (row.getCells().size(... | [
"private",
"void",
"determineFootnoteHeading",
"(",
"TableCandidate",
"tc",
")",
"{",
"/*\r\n \t * Gets the maximal column number based on all table rows before footnote\r\n \t */",
"int",
"maxColumnNum",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<... | Adjusts the table heading rows and footnote rows
@param tc
the object of the table candidate | [
"Adjusts",
"the",
"table",
"heading",
"rows",
"and",
"footnote",
"rows"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1422-L1452 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getTableStructure | public void getTableStructure (int cc, TableCandidate tc, ArrayList<TextPiece> wordsOfAPage) {
float minGapBtwColumns = 1000.0f;
float[] leftX_tableColumns = tc.getLeftX_tableColumns();
float[] rightX_tableColumns = tc.getRightX_tableColumns();
int YNum = tc.getRows().size();
for (int zz=1; zz<cc;... | java | public void getTableStructure (int cc, TableCandidate tc, ArrayList<TextPiece> wordsOfAPage) {
float minGapBtwColumns = 1000.0f;
float[] leftX_tableColumns = tc.getLeftX_tableColumns();
float[] rightX_tableColumns = tc.getRightX_tableColumns();
int YNum = tc.getRows().size();
for (int zz=1; zz<cc;... | [
"public",
"void",
"getTableStructure",
"(",
"int",
"cc",
",",
"TableCandidate",
"tc",
",",
"ArrayList",
"<",
"TextPiece",
">",
"wordsOfAPage",
")",
"{",
"float",
"minGapBtwColumns",
"=",
"1000.0f",
";",
"float",
"[",
"]",
"leftX_tableColumns",
"=",
"tc",
".",
... | Implements the table structure decomposition step
@param cc
the number of the table columns
@param tc
the object of the table candidate
@param wordsOfAPage
the list of all the words in a document page | [
"Implements",
"the",
"table",
"structure",
"decomposition",
"step"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1662-L1689 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getRealHeadingBasedOnCells | public void getRealHeadingBasedOnCells(int YNum, int cc, TableCandidate tc) {
int footnoteLineIndex = tc.getFootnoteBeginRow();
String[][] cells = tc.getCells();
int i=0;
while (i<footnoteLineIndex) {
int j=0, nonNullCellNum = 0;
while (j<cc) {
if (cells[i][j]=="") {
break;
}
... | java | public void getRealHeadingBasedOnCells(int YNum, int cc, TableCandidate tc) {
int footnoteLineIndex = tc.getFootnoteBeginRow();
String[][] cells = tc.getCells();
int i=0;
while (i<footnoteLineIndex) {
int j=0, nonNullCellNum = 0;
while (j<cc) {
if (cells[i][j]=="") {
break;
}
... | [
"public",
"void",
"getRealHeadingBasedOnCells",
"(",
"int",
"YNum",
",",
"int",
"cc",
",",
"TableCandidate",
"tc",
")",
"{",
"int",
"footnoteLineIndex",
"=",
"tc",
".",
"getFootnoteBeginRow",
"(",
")",
";",
"String",
"[",
"]",
"[",
"]",
"cells",
"=",
"tc",... | Adjusts the real table heading rows based on the cell information
@param YNum
The number of non-duplicated Y axes in the table area
@param cc
the number of the table columns
@param tc
the object of the table candidate | [
"Adjusts",
"the",
"real",
"table",
"heading",
"rows",
"based",
"on",
"the",
"cell",
"information"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1777-L1815 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java | BoxTableExtractor.getColumnHeading | public void getColumnHeading(TableCandidate tc) {
int headings = tc.getHeadingLineNumber();
String[][] cells = tc.getCells();
String columnHeadings = "";
for (int i=0; i<=headings; i++) {
int j = cells[i].length;
for (int k=0; k<j; k++) {
cells[i][k] = tc.replaceAllSpecia... | java | public void getColumnHeading(TableCandidate tc) {
int headings = tc.getHeadingLineNumber();
String[][] cells = tc.getCells();
String columnHeadings = "";
for (int i=0; i<=headings; i++) {
int j = cells[i].length;
for (int k=0; k<j; k++) {
cells[i][k] = tc.replaceAllSpecia... | [
"public",
"void",
"getColumnHeading",
"(",
"TableCandidate",
"tc",
")",
"{",
"int",
"headings",
"=",
"tc",
".",
"getHeadingLineNumber",
"(",
")",
";",
"String",
"[",
"]",
"[",
"]",
"cells",
"=",
"tc",
".",
"getCells",
"(",
")",
";",
"String",
"columnHead... | Gets the table column headings
@param tc
the object of the table candidate | [
"Gets",
"the",
"table",
"column",
"headings"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BoxTableExtractor.java#L1824-L1837 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/namefind/NameFinderEventStream.java | NameFinderEventStream.addEvents | private void addEvents(String sentence) {
String[] parts = sentence.split(" ");
String outcome = NameFinderME.OTHER;
List toks = new ArrayList();
List outcomes = new ArrayList();
for (int pi = 0, pl = parts.length; pi < pl; pi++) {
if (parts[pi].equals("<START>")) {
outcome = NameFinde... | java | private void addEvents(String sentence) {
String[] parts = sentence.split(" ");
String outcome = NameFinderME.OTHER;
List toks = new ArrayList();
List outcomes = new ArrayList();
for (int pi = 0, pl = parts.length; pi < pl; pi++) {
if (parts[pi].equals("<START>")) {
outcome = NameFinde... | [
"private",
"void",
"addEvents",
"(",
"String",
"sentence",
")",
"{",
"String",
"[",
"]",
"parts",
"=",
"sentence",
".",
"split",
"(",
"\" \"",
")",
";",
"String",
"outcome",
"=",
"NameFinderME",
".",
"OTHER",
";",
"List",
"toks",
"=",
"new",
"ArrayList",... | Adds name events for the specified sentence.
@param sentence The sentence for which name events should be added. | [
"Adds",
"name",
"events",
"for",
"the",
"specified",
"sentence",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/namefind/NameFinderEventStream.java#L81-L108 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java | SupplementaryMaterial.getObjectId | public java.util.List<ObjectId> getObjectId() {
if (objectId == null) {
objectId = new ArrayList<ObjectId>();
}
return this.objectId;
} | java | public java.util.List<ObjectId> getObjectId() {
if (objectId == null) {
objectId = new ArrayList<ObjectId>();
}
return this.objectId;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"ObjectId",
">",
"getObjectId",
"(",
")",
"{",
"if",
"(",
"objectId",
"==",
"null",
")",
"{",
"objectId",
"=",
"new",
"ArrayList",
"<",
"ObjectId",
">",
"(",
")",
";",
"}",
"return",
"this",
".",
"ob... | Gets the value of the objectId 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 objectId property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"objectId",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java#L220-L225 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java | SupplementaryMaterial.getCaption | public java.util.List<Caption> getCaption() {
if (caption == null) {
caption = new ArrayList<Caption>();
}
return this.caption;
} | java | public java.util.List<Caption> getCaption() {
if (caption == null) {
caption = new ArrayList<Caption>();
}
return this.caption;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Caption",
">",
"getCaption",
"(",
")",
"{",
"if",
"(",
"caption",
"==",
"null",
")",
"{",
"caption",
"=",
"new",
"ArrayList",
"<",
"Caption",
">",
"(",
")",
";",
"}",
"return",
"this",
".",
"caption... | Gets the value of the caption 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 caption property.
<p>
For example, to add a... | [
"Gets",
"the",
"value",
"of",
"the",
"caption",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java#L273-L278 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java | SupplementaryMaterial.getAltTextOrLongDescOrEmail | public java.util.List<Object> getAltTextOrLongDescOrEmail() {
if (altTextOrLongDescOrEmail == null) {
altTextOrLongDescOrEmail = new ArrayList<Object>();
}
return this.altTextOrLongDescOrEmail;
} | java | public java.util.List<Object> getAltTextOrLongDescOrEmail() {
if (altTextOrLongDescOrEmail == null) {
altTextOrLongDescOrEmail = new ArrayList<Object>();
}
return this.altTextOrLongDescOrEmail;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Object",
">",
"getAltTextOrLongDescOrEmail",
"(",
")",
"{",
"if",
"(",
"altTextOrLongDescOrEmail",
"==",
"null",
")",
"{",
"altTextOrLongDescOrEmail",
"=",
"new",
"ArrayList",
"<",
"Object",
">",
"(",
")",
";... | Gets the value of the altTextOrLongDescOrEmail 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 altTextOrLongDescOrEmail pr... | [
"Gets",
"the",
"value",
"of",
"the",
"altTextOrLongDescOrEmail",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java#L306-L311 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java | SupplementaryMaterial.getDispFormulaOrDispFormulaGroupOrChemStructWrap | public java.util.List<Object> getDispFormulaOrDispFormulaGroupOrChemStructWrap() {
if (dispFormulaOrDispFormulaGroupOrChemStructWrap == null) {
dispFormulaOrDispFormulaGroupOrChemStructWrap = new ArrayList<Object>();
}
return this.dispFormulaOrDispFormulaGroupOrChemStructWrap;
} | java | public java.util.List<Object> getDispFormulaOrDispFormulaGroupOrChemStructWrap() {
if (dispFormulaOrDispFormulaGroupOrChemStructWrap == null) {
dispFormulaOrDispFormulaGroupOrChemStructWrap = new ArrayList<Object>();
}
return this.dispFormulaOrDispFormulaGroupOrChemStructWrap;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Object",
">",
"getDispFormulaOrDispFormulaGroupOrChemStructWrap",
"(",
")",
"{",
"if",
"(",
"dispFormulaOrDispFormulaGroupOrChemStructWrap",
"==",
"null",
")",
"{",
"dispFormulaOrDispFormulaGroupOrChemStructWrap",
"=",
"ne... | Gets the value of the dispFormulaOrDispFormulaGroupOrChemStructWrap 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 dispFo... | [
"Gets",
"the",
"value",
"of",
"the",
"dispFormulaOrDispFormulaGroupOrChemStructWrap",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java#L350-L355 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java | SupplementaryMaterial.getAttribOrPermissions | public java.util.List<Object> getAttribOrPermissions() {
if (attribOrPermissions == null) {
attribOrPermissions = new ArrayList<Object>();
}
return this.attribOrPermissions;
} | java | public java.util.List<Object> getAttribOrPermissions() {
if (attribOrPermissions == null) {
attribOrPermissions = new ArrayList<Object>();
}
return this.attribOrPermissions;
} | [
"public",
"java",
".",
"util",
".",
"List",
"<",
"Object",
">",
"getAttribOrPermissions",
"(",
")",
"{",
"if",
"(",
"attribOrPermissions",
"==",
"null",
")",
"{",
"attribOrPermissions",
"=",
"new",
"ArrayList",
"<",
"Object",
">",
"(",
")",
";",
"}",
"re... | Gets the value of the attribOrPermissions 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 attribOrPermissions property.
<... | [
"Gets",
"the",
"value",
"of",
"the",
"attribOrPermissions",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/SupplementaryMaterial.java#L380-L385 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Constituent.java | Constituent.getParent | public Constituent getParent() {
if (Constituent_Type.featOkTst && ((Constituent_Type)jcasType).casFeat_parent == null)
jcasType.jcas.throwFeatMissing("parent", "de.julielab.jules.types.Constituent");
return (Constituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Constituent_Ty... | java | public Constituent getParent() {
if (Constituent_Type.featOkTst && ((Constituent_Type)jcasType).casFeat_parent == null)
jcasType.jcas.throwFeatMissing("parent", "de.julielab.jules.types.Constituent");
return (Constituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Constituent_Ty... | [
"public",
"Constituent",
"getParent",
"(",
")",
"{",
"if",
"(",
"Constituent_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Constituent_Type",
")",
"jcasType",
")",
".",
"casFeat_parent",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"... | getter for parent - gets The parent in a constituency tree, C
@generated
@return value of the feature | [
"getter",
"for",
"parent",
"-",
"gets",
"The",
"parent",
"in",
"a",
"constituency",
"tree",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Constituent.java#L85-L88 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Constituent.java | Constituent.setParent | public void setParent(Constituent v) {
if (Constituent_Type.featOkTst && ((Constituent_Type)jcasType).casFeat_parent == null)
jcasType.jcas.throwFeatMissing("parent", "de.julielab.jules.types.Constituent");
jcasType.ll_cas.ll_setRefValue(addr, ((Constituent_Type)jcasType).casFeatCode_parent, jcasType.ll_c... | java | public void setParent(Constituent v) {
if (Constituent_Type.featOkTst && ((Constituent_Type)jcasType).casFeat_parent == null)
jcasType.jcas.throwFeatMissing("parent", "de.julielab.jules.types.Constituent");
jcasType.ll_cas.ll_setRefValue(addr, ((Constituent_Type)jcasType).casFeatCode_parent, jcasType.ll_c... | [
"public",
"void",
"setParent",
"(",
"Constituent",
"v",
")",
"{",
"if",
"(",
"Constituent_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Constituent_Type",
")",
"jcasType",
")",
".",
"casFeat_parent",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMis... | setter for parent - sets The parent in a constituency tree, C
@generated
@param v value to set into the feature | [
"setter",
"for",
"parent",
"-",
"sets",
"The",
"parent",
"in",
"a",
"constituency",
"tree",
"C"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Constituent.java#L94-L97 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.hasNextQuery | public boolean hasNextQuery() {
for (int i=0; i<innerLearners.length; i++) {
if (innerLearners[i].hasNextQuery()) return true;
}
return comboHasNextQuery();
} | java | public boolean hasNextQuery() {
for (int i=0; i<innerLearners.length; i++) {
if (innerLearners[i].hasNextQuery()) return true;
}
return comboHasNextQuery();
} | [
"public",
"boolean",
"hasNextQuery",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"innerLearners",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"innerLearners",
"[",
"i",
"]",
".",
"hasNextQuery",
"(",
")",
")",
"return",
... | See if someone has a query | [
"See",
"if",
"someone",
"has",
"a",
"query"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L102-L107 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.nextQuery | public DistanceInstance nextQuery() {
// need to save out the i-th field, if it's been prepared.
// poll sublearners in random order, to be fair
// indices [0,innerLearners.length-1] are the inner learners,
// index innerLearners.length is the comboLearner
ArrayList indices = new ArrayList(innerLearners.lengt... | java | public DistanceInstance nextQuery() {
// need to save out the i-th field, if it's been prepared.
// poll sublearners in random order, to be fair
// indices [0,innerLearners.length-1] are the inner learners,
// index innerLearners.length is the comboLearner
ArrayList indices = new ArrayList(innerLearners.lengt... | [
"public",
"DistanceInstance",
"nextQuery",
"(",
")",
"{",
"// need to save out the i-th field, if it's been prepared.",
"// poll sublearners in random order, to be fair",
"// indices [0,innerLearners.length-1] are the inner learners,",
"// index innerLearners.length is the comboLearner",
"ArrayL... | Get a next query from one of the sublearners | [
"Get",
"a",
"next",
"query",
"from",
"one",
"of",
"the",
"sublearners"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L111-L128 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.addExample | public void addExample(DistanceInstance answeredQuery) {
MyMultiDistanceInstance di = asMultiDistanceInstance( answeredQuery );
for (int i=0; i<innerLearners.length; i++) {
innerLearners[i].addExample( di.get(i) );
}
comboAddExample( di );
} | java | public void addExample(DistanceInstance answeredQuery) {
MyMultiDistanceInstance di = asMultiDistanceInstance( answeredQuery );
for (int i=0; i<innerLearners.length; i++) {
innerLearners[i].addExample( di.get(i) );
}
comboAddExample( di );
} | [
"public",
"void",
"addExample",
"(",
"DistanceInstance",
"answeredQuery",
")",
"{",
"MyMultiDistanceInstance",
"di",
"=",
"asMultiDistanceInstance",
"(",
"answeredQuery",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"innerLearners",
".",
"length",
... | Pass new labels to the sublearners. | [
"Pass",
"new",
"labels",
"to",
"the",
"sublearners",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L132-L138 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.prepare | public StringWrapperIterator prepare(StringWrapperIterator it)
{
List multiWrappers = asMultiStringWrapperList(it);
if (multiWrappers.size()==0) return new BasicStringWrapperIterator( Collections.EMPTY_SET.iterator() );
MultiStringWrapper prototype = (MultiStringWrapper)multiWrappers.get(0);
for (int i=0; i<p... | java | public StringWrapperIterator prepare(StringWrapperIterator it)
{
List multiWrappers = asMultiStringWrapperList(it);
if (multiWrappers.size()==0) return new BasicStringWrapperIterator( Collections.EMPTY_SET.iterator() );
MultiStringWrapper prototype = (MultiStringWrapper)multiWrappers.get(0);
for (int i=0; i<p... | [
"public",
"StringWrapperIterator",
"prepare",
"(",
"StringWrapperIterator",
"it",
")",
"{",
"List",
"multiWrappers",
"=",
"asMultiStringWrapperList",
"(",
"it",
")",
";",
"if",
"(",
"multiWrappers",
".",
"size",
"(",
")",
"==",
"0",
")",
"return",
"new",
"Basi... | Prepare data for the sublearners. | [
"Prepare",
"data",
"for",
"the",
"sublearners",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L142-L158 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.prepare | public DistanceInstanceIterator prepare(DistanceInstanceIterator it)
{
List multiDistances = asMultiDistanceInstanceList(it);
return new BasicDistanceInstanceIterator( multiDistances.iterator() );
} | java | public DistanceInstanceIterator prepare(DistanceInstanceIterator it)
{
List multiDistances = asMultiDistanceInstanceList(it);
return new BasicDistanceInstanceIterator( multiDistances.iterator() );
} | [
"public",
"DistanceInstanceIterator",
"prepare",
"(",
"DistanceInstanceIterator",
"it",
")",
"{",
"List",
"multiDistances",
"=",
"asMultiDistanceInstanceList",
"(",
"it",
")",
";",
"return",
"new",
"BasicDistanceInstanceIterator",
"(",
"multiDistances",
".",
"iterator",
... | Prepare data for the learners. | [
"Prepare",
"data",
"for",
"the",
"learners",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L162-L166 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.prepareForLearner | private StringWrapper prepareForLearner(StringWrapper w,StringDistanceLearner learner) {
StringWrapperIterator it = new BasicStringWrapperIterator( Collections.singleton(w).iterator() );
return learner.prepare(it).nextStringWrapper();
} | java | private StringWrapper prepareForLearner(StringWrapper w,StringDistanceLearner learner) {
StringWrapperIterator it = new BasicStringWrapperIterator( Collections.singleton(w).iterator() );
return learner.prepare(it).nextStringWrapper();
} | [
"private",
"StringWrapper",
"prepareForLearner",
"(",
"StringWrapper",
"w",
",",
"StringDistanceLearner",
"learner",
")",
"{",
"StringWrapperIterator",
"it",
"=",
"new",
"BasicStringWrapperIterator",
"(",
"Collections",
".",
"singleton",
"(",
"w",
")",
".",
"iterator"... | Prepare a single StringWrapper for a learner | [
"Prepare",
"a",
"single",
"StringWrapper",
"for",
"a",
"learner"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L197-L200 | train |
BlueBrain/bluima | modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java | CombinedStringDistanceLearner.getInnerDistances | protected StringDistance[] getInnerDistances()
{
StringDistance[] innerDistances = new StringDistance[ innerLearners.length ];
for (int j=0; j<innerLearners.length; j++) {
innerDistances[j] = innerLearners[j].getDistance();
}
return innerDistances;
} | java | protected StringDistance[] getInnerDistances()
{
StringDistance[] innerDistances = new StringDistance[ innerLearners.length ];
for (int j=0; j<innerLearners.length; j++) {
innerDistances[j] = innerLearners[j].getDistance();
}
return innerDistances;
} | [
"protected",
"StringDistance",
"[",
"]",
"getInnerDistances",
"(",
")",
"{",
"StringDistance",
"[",
"]",
"innerDistances",
"=",
"new",
"StringDistance",
"[",
"innerLearners",
".",
"length",
"]",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"innerL... | Get an array of trained inner distances. | [
"Get",
"an",
"array",
"of",
"trained",
"inner",
"distances",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/CombinedStringDistanceLearner.java#L271-L278 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/neuroner/NeuroNER/Developmental.java | Developmental.getOntologyId | public String getOntologyId() {
if (Developmental_Type.featOkTst && ((Developmental_Type)jcasType).casFeat_ontologyId == null)
jcasType.jcas.throwFeatMissing("ontologyId", "neuroner.NeuroNER.Developmental");
return jcasType.ll_cas.ll_getStringValue(addr, ((Developmental_Type)jcasType).casFeatCode_ontology... | java | public String getOntologyId() {
if (Developmental_Type.featOkTst && ((Developmental_Type)jcasType).casFeat_ontologyId == null)
jcasType.jcas.throwFeatMissing("ontologyId", "neuroner.NeuroNER.Developmental");
return jcasType.ll_cas.ll_getStringValue(addr, ((Developmental_Type)jcasType).casFeatCode_ontology... | [
"public",
"String",
"getOntologyId",
"(",
")",
"{",
"if",
"(",
"Developmental_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Developmental_Type",
")",
"jcasType",
")",
".",
"casFeat_ontologyId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"... | getter for ontologyId - gets ontologyId
@generated
@return value of the feature | [
"getter",
"for",
"ontologyId",
"-",
"gets",
"ontologyId"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/neuroner/NeuroNER/Developmental.java#L105-L108 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BatchExtractor.java | BatchExtractor.showUsage | private static void showUsage()
{
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser>");
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --debug");
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --small");
System.out.printl... | java | private static void showUsage()
{
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser>");
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --debug");
System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --small");
System.out.printl... | [
"private",
"static",
"void",
"showUsage",
"(",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"BatchExtractor <pdf-dir-path> <output-dir-path> <parser>\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"BatchExtractor <pdf-dir-path> <output-dir-path> <par... | Shows usages by displaying the information on the screen, such as the PDF path, output path, the PDF parser, process mode, etc. | [
"Shows",
"usages",
"by",
"displaying",
"the",
"information",
"on",
"the",
"screen",
"such",
"as",
"the",
"PDF",
"path",
"output",
"path",
"the",
"PDF",
"parser",
"process",
"mode",
"etc",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/BatchExtractor.java#L345-L351 | train |
BlueBrain/bluima | modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/pubmed/PubDate.java | PubDate.getYearOrMonthOrDayOrSeasonOrMedlineDate | public List<java.lang.Object> getYearOrMonthOrDayOrSeasonOrMedlineDate() {
if (yearOrMonthOrDayOrSeasonOrMedlineDate == null) {
yearOrMonthOrDayOrSeasonOrMedlineDate = new ArrayList<java.lang.Object>();
}
return this.yearOrMonthOrDayOrSeasonOrMedlineDate;
} | java | public List<java.lang.Object> getYearOrMonthOrDayOrSeasonOrMedlineDate() {
if (yearOrMonthOrDayOrSeasonOrMedlineDate == null) {
yearOrMonthOrDayOrSeasonOrMedlineDate = new ArrayList<java.lang.Object>();
}
return this.yearOrMonthOrDayOrSeasonOrMedlineDate;
} | [
"public",
"List",
"<",
"java",
".",
"lang",
".",
"Object",
">",
"getYearOrMonthOrDayOrSeasonOrMedlineDate",
"(",
")",
"{",
"if",
"(",
"yearOrMonthOrDayOrSeasonOrMedlineDate",
"==",
"null",
")",
"{",
"yearOrMonthOrDayOrSeasonOrMedlineDate",
"=",
"new",
"ArrayList",
"<"... | Gets the value of the yearOrMonthOrDayOrSeasonOrMedlineDate 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 yearOrMonthOrD... | [
"Gets",
"the",
"value",
"of",
"the",
"yearOrMonthOrDayOrSeasonOrMedlineDate",
"property",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/pubmed/PubDate.java#L66-L71 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/NGramFactory.java | NGramFactory.createNGram | public NGram createNGram(List words) {
int[] nums = new int[words.size()]; //ngram needs it own copy of this array so keep making a unique one for each instance.
for (int wi=0;wi<nums.length;wi++) {
nums[wi] = wordMap.getIndex(words.get(wi));
if (nums[wi] == -1) {
return null;
}
}
... | java | public NGram createNGram(List words) {
int[] nums = new int[words.size()]; //ngram needs it own copy of this array so keep making a unique one for each instance.
for (int wi=0;wi<nums.length;wi++) {
nums[wi] = wordMap.getIndex(words.get(wi));
if (nums[wi] == -1) {
return null;
}
}
... | [
"public",
"NGram",
"createNGram",
"(",
"List",
"words",
")",
"{",
"int",
"[",
"]",
"nums",
"=",
"new",
"int",
"[",
"words",
".",
"size",
"(",
")",
"]",
";",
"//ngram needs it own copy of this array so keep making a unique one for each instance.",
"for",
"(",
"int"... | Creates a new n-gram for the specified list of words.
@param words The words which are part of this n-gram.
@return the newly created object or null if the n-gram contains an unknown word. | [
"Creates",
"a",
"new",
"n",
"-",
"gram",
"for",
"the",
"specified",
"list",
"of",
"words",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/NGramFactory.java#L58-L67 | train |
BlueBrain/bluima | modules/bluima_pdf/src/main/java/ch/epfl/bbp/uima/pdf/cleanup/HyphenRemover.java | HyphenRemover.shouldDehyphenate | private static boolean shouldDehyphenate(String w1, String w2) {
boolean dehyphenate = true;
String rule = "DH"; // choice by default, dehyphenate
if (w1.length() <= 1) {
// w1 has only one char
dehyphenate = false;
rule = "N11";
} else if (w2.length... | java | private static boolean shouldDehyphenate(String w1, String w2) {
boolean dehyphenate = true;
String rule = "DH"; // choice by default, dehyphenate
if (w1.length() <= 1) {
// w1 has only one char
dehyphenate = false;
rule = "N11";
} else if (w2.length... | [
"private",
"static",
"boolean",
"shouldDehyphenate",
"(",
"String",
"w1",
",",
"String",
"w2",
")",
"{",
"boolean",
"dehyphenate",
"=",
"true",
";",
"String",
"rule",
"=",
"\"DH\"",
";",
"// choice by default, dehyphenate",
"if",
"(",
"w1",
".",
"length",
"(",... | Decides whether a word should be dehyphenated
@param w1
word behind
@param w2
word forward
@return returns true if the word should be dehyphenated | [
"Decides",
"whether",
"a",
"word",
"should",
"be",
"dehyphenated"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/ch/epfl/bbp/uima/pdf/cleanup/HyphenRemover.java#L65-L105 | train |
BlueBrain/bluima | modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java | RadixTreeImpl.visit | public <R> void visit(String key, Visitor<T, R> visitor) {
if (root != null) {
visit(key, visitor, null, root);
}
} | java | public <R> void visit(String key, Visitor<T, R> visitor) {
if (root != null) {
visit(key, visitor, null, root);
}
} | [
"public",
"<",
"R",
">",
"void",
"visit",
"(",
"String",
"key",
",",
"Visitor",
"<",
"T",
",",
"R",
">",
"visitor",
")",
"{",
"if",
"(",
"root",
"!=",
"null",
")",
"{",
"visit",
"(",
"key",
",",
"visitor",
",",
"null",
",",
"root",
")",
";",
... | visit the node those key matches the given key
@param key The key that need to be visited
@param visitor The visitor object | [
"visit",
"the",
"node",
"those",
"key",
"matches",
"the",
"given",
"key"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java#L310-L314 | train |
BlueBrain/bluima | modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java | RadixTreeImpl.visit | private <R> void visit(String prefix, Visitor<T, R> visitor,
RadixTreeNode<T> parent, RadixTreeNode<T> node) {
int numberOfMatchingCharacters = node.getNumberOfMatchingCharacters(prefix);
// if the node key and prefix match, we found a match!
if (numberOfMatchingCharacte... | java | private <R> void visit(String prefix, Visitor<T, R> visitor,
RadixTreeNode<T> parent, RadixTreeNode<T> node) {
int numberOfMatchingCharacters = node.getNumberOfMatchingCharacters(prefix);
// if the node key and prefix match, we found a match!
if (numberOfMatchingCharacte... | [
"private",
"<",
"R",
">",
"void",
"visit",
"(",
"String",
"prefix",
",",
"Visitor",
"<",
"T",
",",
"R",
">",
"visitor",
",",
"RadixTreeNode",
"<",
"T",
">",
"parent",
",",
"RadixTreeNode",
"<",
"T",
">",
"node",
")",
"{",
"int",
"numberOfMatchingCharac... | recursively visit the tree based on the supplied "key". calls the Visitor
for the node those key matches the given prefix
@param prefix
The key o prefix to search in the tree
@param visitor
The Visitor that will be called if a node with "key" as its
key is found
@param node
The Node from where onward to search | [
"recursively",
"visit",
"the",
"tree",
"based",
"on",
"the",
"supplied",
"key",
".",
"calls",
"the",
"Visitor",
"for",
"the",
"node",
"those",
"key",
"matches",
"the",
"given",
"prefix"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java#L328-L349 | train |
BlueBrain/bluima | modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java | RadixTreeImpl.formatNodeTo | private void formatNodeTo(Formatter f, int level, RadixTreeNode<T> node) {
for (int i = 0; i < level; i++) {
f.format(" ");
}
f.format("|");
for (int i = 0; i < level; i++) {
f.format("-");
}
if (node.isReal() == true)
f.format("%s... | java | private void formatNodeTo(Formatter f, int level, RadixTreeNode<T> node) {
for (int i = 0; i < level; i++) {
f.format(" ");
}
f.format("|");
for (int i = 0; i < level; i++) {
f.format("-");
}
if (node.isReal() == true)
f.format("%s... | [
"private",
"void",
"formatNodeTo",
"(",
"Formatter",
"f",
",",
"int",
"level",
",",
"RadixTreeNode",
"<",
"T",
">",
"node",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"level",
";",
"i",
"++",
")",
"{",
"f",
".",
"format",
"(",
"... | WARNING! Do not use this for a large Trie, it's for testing purpose only. | [
"WARNING!",
"Do",
"not",
"use",
"this",
"for",
"a",
"large",
"Trie",
"it",
"s",
"for",
"testing",
"purpose",
"only",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java#L374-L391 | train |
BlueBrain/bluima | modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java | RadixTreeImpl.formatTo | @Override
public void formatTo(Formatter formatter, int flags, int width, int precision) {
formatNodeTo(formatter, 0, root);
} | java | @Override
public void formatTo(Formatter formatter, int flags, int width, int precision) {
formatNodeTo(formatter, 0, root);
} | [
"@",
"Override",
"public",
"void",
"formatTo",
"(",
"Formatter",
"formatter",
",",
"int",
"flags",
",",
"int",
"width",
",",
"int",
"precision",
")",
"{",
"formatNodeTo",
"(",
"formatter",
",",
"0",
",",
"root",
")",
";",
"}"
] | Writes a textual representation of this tree to the given formatter.
Currently, all options are simply ignored.
WARNING! Do not use this for a large Trie, it's for testing purpose only. | [
"Writes",
"a",
"textual",
"representation",
"of",
"this",
"tree",
"to",
"the",
"given",
"formatter",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ds/tree/RadixTreeImpl.java#L400-L403 | train |
BlueBrain/bluima | modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java | ConcentrationNormalizer.normalizeSpecialCases | private ValueUnitWrapper normalizeSpecialCases(double value, String unit)
throws UnknownUnitException {
if (unit.equals("mol/dm3")) {
return new ValueUnitWrapper(value, MOLAR_NORMALIZED_UNIT);
} else {
throw new UnknownUnitException(unit);
}
} | java | private ValueUnitWrapper normalizeSpecialCases(double value, String unit)
throws UnknownUnitException {
if (unit.equals("mol/dm3")) {
return new ValueUnitWrapper(value, MOLAR_NORMALIZED_UNIT);
} else {
throw new UnknownUnitException(unit);
}
} | [
"private",
"ValueUnitWrapper",
"normalizeSpecialCases",
"(",
"double",
"value",
",",
"String",
"unit",
")",
"throws",
"UnknownUnitException",
"{",
"if",
"(",
"unit",
".",
"equals",
"(",
"\"mol/dm3\"",
")",
")",
"{",
"return",
"new",
"ValueUnitWrapper",
"(",
"val... | deals with the normalization of special cases | [
"deals",
"with",
"the",
"normalization",
"of",
"special",
"cases"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java#L73-L80 | train |
BlueBrain/bluima | modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java | ConcentrationNormalizer.normalizeMassUnit | private ValueUnitWrapper normalizeMassUnit(final double value, final String unit)
throws UnknownUnitException {
Matcher matcher = mMassUnitPatter.matcher(unit);
if (matcher.find()) {
double normalizationFactor = 1.0;
String numeratorSIPrefix = matcher.group(1);
... | java | private ValueUnitWrapper normalizeMassUnit(final double value, final String unit)
throws UnknownUnitException {
Matcher matcher = mMassUnitPatter.matcher(unit);
if (matcher.find()) {
double normalizationFactor = 1.0;
String numeratorSIPrefix = matcher.group(1);
... | [
"private",
"ValueUnitWrapper",
"normalizeMassUnit",
"(",
"final",
"double",
"value",
",",
"final",
"String",
"unit",
")",
"throws",
"UnknownUnitException",
"{",
"Matcher",
"matcher",
"=",
"mMassUnitPatter",
".",
"matcher",
"(",
"unit",
")",
";",
"if",
"(",
"matc... | deals with the normalization of unit confronting weight and volume | [
"deals",
"with",
"the",
"normalization",
"of",
"unit",
"confronting",
"weight",
"and",
"volume"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java#L83-L115 | train |
BlueBrain/bluima | modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java | ConcentrationNormalizer.normalizeMolarUnit | private ValueUnitWrapper normalizeMolarUnit(final double value, final String unit)
throws UnknownUnitException {
Matcher matcher = mMolarUnitPattern.matcher(unit);
if (matcher.find()) {
String siPrefix = matcher.group(1);
Double convFactor = getSIFactor(siPrefix);
... | java | private ValueUnitWrapper normalizeMolarUnit(final double value, final String unit)
throws UnknownUnitException {
Matcher matcher = mMolarUnitPattern.matcher(unit);
if (matcher.find()) {
String siPrefix = matcher.group(1);
Double convFactor = getSIFactor(siPrefix);
... | [
"private",
"ValueUnitWrapper",
"normalizeMolarUnit",
"(",
"final",
"double",
"value",
",",
"final",
"String",
"unit",
")",
"throws",
"UnknownUnitException",
"{",
"Matcher",
"matcher",
"=",
"mMolarUnitPattern",
".",
"matcher",
"(",
"unit",
")",
";",
"if",
"(",
"m... | deals with normalization of measure of molarity | [
"deals",
"with",
"normalization",
"of",
"measure",
"of",
"molarity"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_protein_concentrations/src/main/java/ch/epfl/bbp/nlp/ie/proteinconc/normalizer/ConcentrationNormalizer.java#L118-L135 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java | FeatureTokens.getTokens | public StringArray getTokens() {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTo... | java | public StringArray getTokens() {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTo... | [
"public",
"StringArray",
"getTokens",
"(",
")",
"{",
"if",
"(",
"FeatureTokens_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FeatureTokens_Type",
")",
"jcasType",
")",
".",
"casFeat_tokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",... | getter for tokens - gets
@generated
@return value of the feature | [
"getter",
"for",
"tokens",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java#L88-L91 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java | FeatureTokens.setTokens | public void setTokens(StringArray v) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.ll_cas.ll_setRefValue(addr, ((FeatureTokens_Type)jcasType).casFeatCode_tokens, jcasTy... | java | public void setTokens(StringArray v) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.ll_cas.ll_setRefValue(addr, ((FeatureTokens_Type)jcasType).casFeatCode_tokens, jcasTy... | [
"public",
"void",
"setTokens",
"(",
"StringArray",
"v",
")",
"{",
"if",
"(",
"FeatureTokens_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FeatureTokens_Type",
")",
"jcasType",
")",
".",
"casFeat_tokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFea... | setter for tokens - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"tokens",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java#L97-L100 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java | FeatureTokens.getTokens | public String getTokens(int i) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTokens_Type)jcasType).c... | java | public String getTokens(int i) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTokens_Type)jcasType).c... | [
"public",
"String",
"getTokens",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"FeatureTokens_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FeatureTokens_Type",
")",
"jcasType",
")",
".",
"casFeat_tokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissi... | indexed getter for tokens - gets an indexed value -
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"tokens",
"-",
"gets",
"an",
"indexed",
"value",
"-"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java#L107-L111 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java | FeatureTokens.setTokens | public void setTokens(int i, String v) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTokens_Type)jc... | java | public void setTokens(int i, String v) {
if (FeatureTokens_Type.featOkTst && ((FeatureTokens_Type)jcasType).casFeat_tokens == null)
jcasType.jcas.throwFeatMissing("tokens", "ch.epfl.bbp.uima.types.FeatureTokens");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FeatureTokens_Type)jc... | [
"public",
"void",
"setTokens",
"(",
"int",
"i",
",",
"String",
"v",
")",
"{",
"if",
"(",
"FeatureTokens_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"FeatureTokens_Type",
")",
"jcasType",
")",
".",
"casFeat_tokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
... | indexed setter for tokens - sets an indexed value -
@generated
@param i index in the array to set
@param v value to set into the array | [
"indexed",
"setter",
"for",
"tokens",
"-",
"sets",
"an",
"indexed",
"value",
"-"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/FeatureTokens.java#L118-L122 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java | DictTerm.getDictCanon | public String getDictCanon() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_DictCanon == null)
jcasType.jcas.throwFeatMissing("DictCanon", "org.apache.uima.conceptMapper.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_DictCanon);} | java | public String getDictCanon() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_DictCanon == null)
jcasType.jcas.throwFeatMissing("DictCanon", "org.apache.uima.conceptMapper.DictTerm");
return jcasType.ll_cas.ll_getStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_DictCanon);} | [
"public",
"String",
"getDictCanon",
"(",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_DictCanon",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"Dic... | getter for DictCanon - gets canonical form
@generated
@return value of the feature | [
"getter",
"for",
"DictCanon",
"-",
"gets",
"canonical",
"form"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java#L88-L91 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java | DictTerm.setDictCanon | public void setDictCanon(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_DictCanon == null)
jcasType.jcas.throwFeatMissing("DictCanon", "org.apache.uima.conceptMapper.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_DictCanon, v);} | java | public void setDictCanon(String v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_DictCanon == null)
jcasType.jcas.throwFeatMissing("DictCanon", "org.apache.uima.conceptMapper.DictTerm");
jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_DictCanon, v);} | [
"public",
"void",
"setDictCanon",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_DictCanon",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing"... | setter for DictCanon - sets canonical form
@generated
@param v value to set into the feature | [
"setter",
"for",
"DictCanon",
"-",
"sets",
"canonical",
"form"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java#L97-L100 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java | DictTerm.setMatchedTokens | public void setMatchedTokens(FSArray v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "org.apache.uima.conceptMapper.DictTerm");
jcasType.ll_cas.ll_setRefValue(addr, ((DictTerm_Type)jcasType).casFeatCode_matchedTok... | java | public void setMatchedTokens(FSArray v) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "org.apache.uima.conceptMapper.DictTerm");
jcasType.ll_cas.ll_setRefValue(addr, ((DictTerm_Type)jcasType).casFeatCode_matchedTok... | [
"public",
"void",
"setMatchedTokens",
"(",
"FSArray",
"v",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedTokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFea... | setter for matchedTokens - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"matchedTokens",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java#L163-L166 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java | DictTerm.getMatchedTokens | public TOP getMatchedTokens(int i) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "org.apache.uima.conceptMapper.DictTerm");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DictTerm_Type)jcasTy... | java | public TOP getMatchedTokens(int i) {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_matchedTokens == null)
jcasType.jcas.throwFeatMissing("matchedTokens", "org.apache.uima.conceptMapper.DictTerm");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DictTerm_Type)jcasTy... | [
"public",
"TOP",
"getMatchedTokens",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"DictTerm_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"DictTerm_Type",
")",
"jcasType",
")",
".",
"casFeat_matchedTokens",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMiss... | indexed getter for matchedTokens - gets an indexed value -
@generated
@param i index in the array to get
@return value of the element at index i | [
"indexed",
"getter",
"for",
"matchedTokens",
"-",
"gets",
"an",
"indexed",
"value",
"-"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/org/apache/uima/conceptMapper/DictTerm.java#L173-L177 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/util/CountedNumberedSet.java | CountedNumberedSet.setCount | public void setCount(Object o,int c) {
int[] nums = (int[]) cset.get(o);
if (nums != null) {
nums[0] = c;
}
else {
cset.put(o,new int[]{c,1});
}
} | java | public void setCount(Object o,int c) {
int[] nums = (int[]) cset.get(o);
if (nums != null) {
nums[0] = c;
}
else {
cset.put(o,new int[]{c,1});
}
} | [
"public",
"void",
"setCount",
"(",
"Object",
"o",
",",
"int",
"c",
")",
"{",
"int",
"[",
"]",
"nums",
"=",
"(",
"int",
"[",
"]",
")",
"cset",
".",
"get",
"(",
"o",
")",
";",
"if",
"(",
"nums",
"!=",
"null",
")",
"{",
"nums",
"[",
"0",
"]",
... | Assigns the specified object the specified count in the set.
@param o The object to be added or updated in the set.
@param c The count of the specified object. | [
"Assigns",
"the",
"specified",
"object",
"the",
"specified",
"count",
"in",
"the",
"set",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/util/CountedNumberedSet.java#L70-L78 | train |
BlueBrain/bluima | modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/io/GISModelReader.java | GISModelReader.getParameters | protected Context[] getParameters (int[][] outcomePatterns) throws java.io.IOException {
Context[] params = new Context[NUM_PREDS];
int pid=0;
for (int i=0; i<outcomePatterns.length; i++) {
//construct outcome pattern
int[] outcomePattern = new int[outcomePatterns[i].length-1];
... | java | protected Context[] getParameters (int[][] outcomePatterns) throws java.io.IOException {
Context[] params = new Context[NUM_PREDS];
int pid=0;
for (int i=0; i<outcomePatterns.length; i++) {
//construct outcome pattern
int[] outcomePattern = new int[outcomePatterns[i].length-1];
... | [
"protected",
"Context",
"[",
"]",
"getParameters",
"(",
"int",
"[",
"]",
"[",
"]",
"outcomePatterns",
")",
"throws",
"java",
".",
"io",
".",
"IOException",
"{",
"Context",
"[",
"]",
"params",
"=",
"new",
"Context",
"[",
"NUM_PREDS",
"]",
";",
"int",
"p... | Reads the parameters from a file and populates an array of context objects.
@param outcomePatterns The outcomes patterns for the model. The first index refers to which
outcome pattern (a set of outcomes that occurs with a context) is being specified. The
second index specifies the number of contexts which use this pa... | [
"Reads",
"the",
"parameters",
"from",
"a",
"file",
"and",
"populates",
"an",
"array",
"of",
"context",
"objects",
"."
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/io/GISModelReader.java#L148-L168 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/TopicToken.java | TopicToken.getEnclosingAnnot | public Annotation getEnclosingAnnot() {
if (TopicToken_Type.featOkTst && ((TopicToken_Type)jcasType).casFeat_enclosingAnnot == null)
jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
return (Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr... | java | public Annotation getEnclosingAnnot() {
if (TopicToken_Type.featOkTst && ((TopicToken_Type)jcasType).casFeat_enclosingAnnot == null)
jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
return (Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr... | [
"public",
"Annotation",
"getEnclosingAnnot",
"(",
")",
"{",
"if",
"(",
"TopicToken_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"TopicToken_Type",
")",
"jcasType",
")",
".",
"casFeat_enclosingAnnot",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | getter for enclosingAnnot - gets
@generated
@return value of the feature | [
"getter",
"for",
"enclosingAnnot",
"-",
"gets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/TopicToken.java#L86-L89 | train |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/TopicToken.java | TopicToken.setEnclosingAnnot | public void setEnclosingAnnot(Annotation v) {
if (TopicToken_Type.featOkTst && ((TopicToken_Type)jcasType).casFeat_enclosingAnnot == null)
jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
jcasType.ll_cas.ll_setRefValue(addr, ((TopicToken_Type)jcasType).casFeatCode_enc... | java | public void setEnclosingAnnot(Annotation v) {
if (TopicToken_Type.featOkTst && ((TopicToken_Type)jcasType).casFeat_enclosingAnnot == null)
jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
jcasType.ll_cas.ll_setRefValue(addr, ((TopicToken_Type)jcasType).casFeatCode_enc... | [
"public",
"void",
"setEnclosingAnnot",
"(",
"Annotation",
"v",
")",
"{",
"if",
"(",
"TopicToken_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"TopicToken_Type",
")",
"jcasType",
")",
".",
"casFeat_enclosingAnnot",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | setter for enclosingAnnot - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"enclosingAnnot",
"-",
"sets"
] | 793ea3f46761dce72094e057a56cddfa677156ae | https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/TopicToken.java#L95-L98 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.