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/ch/epfl/bbp/uima/types/DataTable.java
DataTable.getReferenceText
public String getReferenceText() { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_referenceText == null) jcasType.jcas.throwFeatMissing("referenceText", "ch.epfl.bbp.uima.types.DataTable"); return jcasType.ll_cas.ll_getStringValue(addr, ((DataTable_Type)jcasType).casFeatCode_referenceT...
java
public String getReferenceText() { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_referenceText == null) jcasType.jcas.throwFeatMissing("referenceText", "ch.epfl.bbp.uima.types.DataTable"); return jcasType.ll_cas.ll_getStringValue(addr, ((DataTable_Type)jcasType).casFeatCode_referenceT...
[ "public", "String", "getReferenceText", "(", ")", "{", "if", "(", "DataTable_Type", ".", "featOkTst", "&&", "(", "(", "DataTable_Type", ")", "jcasType", ")", ".", "casFeat_referenceText", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "("...
getter for referenceText - gets @generated @return value of the feature
[ "getter", "for", "referenceText", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java#L263-L266
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java
DataTable.setReferenceText
public void setReferenceText(String v) { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_referenceText == null) jcasType.jcas.throwFeatMissing("referenceText", "ch.epfl.bbp.uima.types.DataTable"); jcasType.ll_cas.ll_setStringValue(addr, ((DataTable_Type)jcasType).casFeatCode_referenceTe...
java
public void setReferenceText(String v) { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_referenceText == null) jcasType.jcas.throwFeatMissing("referenceText", "ch.epfl.bbp.uima.types.DataTable"); jcasType.ll_cas.ll_setStringValue(addr, ((DataTable_Type)jcasType).casFeatCode_referenceTe...
[ "public", "void", "setReferenceText", "(", "String", "v", ")", "{", "if", "(", "DataTable_Type", ".", "featOkTst", "&&", "(", "(", "DataTable_Type", ")", "jcasType", ")", ".", "casFeat_referenceText", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFe...
setter for referenceText - sets @generated @param v value to set into the feature
[ "setter", "for", "referenceText", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java#L272-L275
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java
DataTable.getPageNumber
public int getPageNumber() { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_pageNumber == null) jcasType.jcas.throwFeatMissing("pageNumber", "ch.epfl.bbp.uima.types.DataTable"); return jcasType.ll_cas.ll_getIntValue(addr, ((DataTable_Type)jcasType).casFeatCode_pageNumber);}
java
public int getPageNumber() { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_pageNumber == null) jcasType.jcas.throwFeatMissing("pageNumber", "ch.epfl.bbp.uima.types.DataTable"); return jcasType.ll_cas.ll_getIntValue(addr, ((DataTable_Type)jcasType).casFeatCode_pageNumber);}
[ "public", "int", "getPageNumber", "(", ")", "{", "if", "(", "DataTable_Type", ".", "featOkTst", "&&", "(", "(", "DataTable_Type", ")", "jcasType", ")", ".", "casFeat_pageNumber", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"pa...
getter for pageNumber - gets the number of the page where the table is located in @generated @return value of the feature
[ "getter", "for", "pageNumber", "-", "gets", "the", "number", "of", "the", "page", "where", "the", "table", "is", "located", "in" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java#L285-L288
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java
DataTable.setPageNumber
public void setPageNumber(int v) { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_pageNumber == null) jcasType.jcas.throwFeatMissing("pageNumber", "ch.epfl.bbp.uima.types.DataTable"); jcasType.ll_cas.ll_setIntValue(addr, ((DataTable_Type)jcasType).casFeatCode_pageNumber, v);}
java
public void setPageNumber(int v) { if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_pageNumber == null) jcasType.jcas.throwFeatMissing("pageNumber", "ch.epfl.bbp.uima.types.DataTable"); jcasType.ll_cas.ll_setIntValue(addr, ((DataTable_Type)jcasType).casFeatCode_pageNumber, v);}
[ "public", "void", "setPageNumber", "(", "int", "v", ")", "{", "if", "(", "DataTable_Type", ".", "featOkTst", "&&", "(", "(", "DataTable_Type", ")", "jcasType", ")", ".", "casFeat_pageNumber", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing...
setter for pageNumber - sets the number of the page where the table is located in @generated @param v value to set into the feature
[ "setter", "for", "pageNumber", "-", "sets", "the", "number", "of", "the", "page", "where", "the", "table", "is", "located", "in" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DataTable.java#L294-L297
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java
Token.getWordForms
public FSArray getWordForms() { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode...
java
public FSArray getWordForms() { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode...
[ "public", "FSArray", "getWordForms", "(", ")", "{", "if", "(", "Token_Type", ".", "featOkTst", "&&", "(", "(", "Token_Type", ")", "jcasType", ")", ".", "casFeat_wordForms", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"wordForm...
getter for wordForms - gets A Token is related to one or more WordForm @generated @return value of the feature
[ "getter", "for", "wordForms", "-", "gets", "A", "Token", "is", "related", "to", "one", "or", "more", "WordForm" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java#L87-L90
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java
Token.setWordForms
public void setWordForms(FSArray v) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.ll_cas.ll_setRefValue(addr, ((Token_Type)jcasType).casFeatCode_wordForms, jcasType.ll_cas.ll_getFSRef(v)...
java
public void setWordForms(FSArray v) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.ll_cas.ll_setRefValue(addr, ((Token_Type)jcasType).casFeatCode_wordForms, jcasType.ll_cas.ll_getFSRef(v)...
[ "public", "void", "setWordForms", "(", "FSArray", "v", ")", "{", "if", "(", "Token_Type", ".", "featOkTst", "&&", "(", "(", "Token_Type", ")", "jcasType", ")", ".", "casFeat_wordForms", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "...
setter for wordForms - sets A Token is related to one or more WordForm @generated @param v value to set into the feature
[ "setter", "for", "wordForms", "-", "sets", "A", "Token", "is", "related", "to", "one", "or", "more", "WordForm" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java#L96-L99
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java
Token.getWordForms
public WordForm getWordForms(int i) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode_wordForms)...
java
public WordForm getWordForms(int i) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode_wordForms)...
[ "public", "WordForm", "getWordForms", "(", "int", "i", ")", "{", "if", "(", "Token_Type", ".", "featOkTst", "&&", "(", "(", "Token_Type", ")", "jcasType", ")", ".", "casFeat_wordForms", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "...
indexed getter for wordForms - gets an indexed value - A Token is related to one or more WordForm @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "wordForms", "-", "gets", "an", "indexed", "value", "-", "A", "Token", "is", "related", "to", "one", "or", "more", "WordForm" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java#L106-L110
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java
Token.setWordForms
public void setWordForms(int i, WordForm v) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode_w...
java
public void setWordForms(int i, WordForm v) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_wordForms == null) jcasType.jcas.throwFeatMissing("wordForms", "com.digitalpebble.rasp.Token"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Token_Type)jcasType).casFeatCode_w...
[ "public", "void", "setWordForms", "(", "int", "i", ",", "WordForm", "v", ")", "{", "if", "(", "Token_Type", ".", "featOkTst", "&&", "(", "(", "Token_Type", ")", "jcasType", ")", ".", "casFeat_wordForms", "==", "null", ")", "jcasType", ".", "jcas", ".", ...
indexed setter for wordForms - sets an indexed value - A Token is related to one or more WordForm @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "wordForms", "-", "sets", "an", "indexed", "value", "-", "A", "Token", "is", "related", "to", "one", "or", "more", "WordForm" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/com/digitalpebble/rasp/Token.java#L117-L121
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/abbvGapsHmm/AlignmentPredictionModel.java
AlignmentPredictionModel.trainOnAll
public boolean trainOnAll() { List<Map<String, String>> trueLabels = loadLabels(_trueLabelsFile); List<String> corpus = loadTrainingCorpus(_trainingCorpusFile); List<List<Acronym>> trainingExtractedCandidates = new ArrayList<List<Acronym>>(); List<Map<String, String>> trueLabelsForTraining = new ArrayList<Map...
java
public boolean trainOnAll() { List<Map<String, String>> trueLabels = loadLabels(_trueLabelsFile); List<String> corpus = loadTrainingCorpus(_trainingCorpusFile); List<List<Acronym>> trainingExtractedCandidates = new ArrayList<List<Acronym>>(); List<Map<String, String>> trueLabelsForTraining = new ArrayList<Map...
[ "public", "boolean", "trainOnAll", "(", ")", "{", "List", "<", "Map", "<", "String", ",", "String", ">", ">", "trueLabels", "=", "loadLabels", "(", "_trueLabelsFile", ")", ";", "List", "<", "String", ">", "corpus", "=", "loadTrainingCorpus", "(", "_trainin...
Trains on full corpus
[ "Trains", "on", "full", "corpus" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/abbvGapsHmm/AlignmentPredictionModel.java#L115-L133
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/abbvGapsHmm/AlignmentPredictionModel.java
AlignmentPredictionModel.trainOnCandidates
public boolean trainOnCandidates() { List<String> corpus = loadTrainingCorpus(_trainingCorpusFile); List<List<Acronym>> trainingExtractedCandidates = new ArrayList<List<Acronym>>(); for (Integer docID = 0; docID < corpus.size(); ++docID) { // Adds to training examples, all the extracted pairs from the //...
java
public boolean trainOnCandidates() { List<String> corpus = loadTrainingCorpus(_trainingCorpusFile); List<List<Acronym>> trainingExtractedCandidates = new ArrayList<List<Acronym>>(); for (Integer docID = 0; docID < corpus.size(); ++docID) { // Adds to training examples, all the extracted pairs from the //...
[ "public", "boolean", "trainOnCandidates", "(", ")", "{", "List", "<", "String", ">", "corpus", "=", "loadTrainingCorpus", "(", "_trainingCorpusFile", ")", ";", "List", "<", "List", "<", "Acronym", ">", ">", "trainingExtractedCandidates", "=", "new", "ArrayList",...
Trains on candidate pairs extracted from the corpus
[ "Trains", "on", "candidate", "pairs", "extracted", "from", "the", "corpus" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/abbvGapsHmm/AlignmentPredictionModel.java#L136-L150
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/POSVerb.java
POSVerb.getBiolexicon_id
public String getBiolexicon_id() { if (POSVerb_Type.featOkTst && ((POSVerb_Type)jcasType).casFeat_biolexicon_id == null) jcasType.jcas.throwFeatMissing("biolexicon_id", "ch.epfl.bbp.uima.types.POSVerb"); return jcasType.ll_cas.ll_getStringValue(addr, ((POSVerb_Type)jcasType).casFeatCode_biolexicon_id);}
java
public String getBiolexicon_id() { if (POSVerb_Type.featOkTst && ((POSVerb_Type)jcasType).casFeat_biolexicon_id == null) jcasType.jcas.throwFeatMissing("biolexicon_id", "ch.epfl.bbp.uima.types.POSVerb"); return jcasType.ll_cas.ll_getStringValue(addr, ((POSVerb_Type)jcasType).casFeatCode_biolexicon_id);}
[ "public", "String", "getBiolexicon_id", "(", ")", "{", "if", "(", "POSVerb_Type", ".", "featOkTst", "&&", "(", "(", "POSVerb_Type", ")", "jcasType", ")", ".", "casFeat_biolexicon_id", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", ...
getter for biolexicon_id - gets @generated @return value of the feature
[ "getter", "for", "biolexicon_id", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/POSVerb.java#L86-L89
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/POSVerb.java
POSVerb.setBiolexicon_id
public void setBiolexicon_id(String v) { if (POSVerb_Type.featOkTst && ((POSVerb_Type)jcasType).casFeat_biolexicon_id == null) jcasType.jcas.throwFeatMissing("biolexicon_id", "ch.epfl.bbp.uima.types.POSVerb"); jcasType.ll_cas.ll_setStringValue(addr, ((POSVerb_Type)jcasType).casFeatCode_biolexicon_id, v);}
java
public void setBiolexicon_id(String v) { if (POSVerb_Type.featOkTst && ((POSVerb_Type)jcasType).casFeat_biolexicon_id == null) jcasType.jcas.throwFeatMissing("biolexicon_id", "ch.epfl.bbp.uima.types.POSVerb"); jcasType.ll_cas.ll_setStringValue(addr, ((POSVerb_Type)jcasType).casFeatCode_biolexicon_id, v);}
[ "public", "void", "setBiolexicon_id", "(", "String", "v", ")", "{", "if", "(", "POSVerb_Type", ".", "featOkTst", "&&", "(", "(", "POSVerb_Type", ")", "jcasType", ")", ".", "casFeat_biolexicon_id", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMi...
setter for biolexicon_id - sets @generated @param v value to set into the feature
[ "setter", "for", "biolexicon_id", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/POSVerb.java#L95-L98
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java
Table.setBody
public void setBody(String body) { String xbody = body; String [] row = xbody.split("\n"); for(int i=0; i<row.length; i++){ this.m_xbody.add(row[i]); } }
java
public void setBody(String body) { String xbody = body; String [] row = xbody.split("\n"); for(int i=0; i<row.length; i++){ this.m_xbody.add(row[i]); } }
[ "public", "void", "setBody", "(", "String", "body", ")", "{", "String", "xbody", "=", "body", ";", "String", "[", "]", "row", "=", "xbody", ".", "split", "(", "\"\\n\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "row", ".", "le...
Sets the table body cells into an array @param body the table body content to set
[ "Sets", "the", "table", "body", "cells", "into", "an", "array" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java#L231-L238
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java
Table.setHeading
public void setHeading(String heading) { String m_heading = heading; String [] preCol = m_heading.split("\n"); String [][] cells = new String[preCol.length][this.m_columnNumber]; for(int i=0; i<preCol.length; i++) cells[i] = preCol[i].split(";", this.m_col...
java
public void setHeading(String heading) { String m_heading = heading; String [] preCol = m_heading.split("\n"); String [][] cells = new String[preCol.length][this.m_columnNumber]; for(int i=0; i<preCol.length; i++) cells[i] = preCol[i].split(";", this.m_col...
[ "public", "void", "setHeading", "(", "String", "heading", ")", "{", "String", "m_heading", "=", "heading", ";", "String", "[", "]", "preCol", "=", "m_heading", ".", "split", "(", "\"\\n\"", ")", ";", "String", "[", "]", "[", "]", "cells", "=", "new", ...
Sets the table heading rows @param heading the heading to set
[ "Sets", "the", "table", "heading", "rows" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java#L285-L307
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java
Table.setValidTable
public void setValidTable(TableCandidate tc) { /** * TODO [improve]: Table/TableCandidate not match * */ this.setHeight(tc.getHeight()); this.setWidth(tc.getWidth()); this.setCaption(tc.getCaption()); this.setRowNumber(tc.getRows().size()); this.setColumnNumber(tc....
java
public void setValidTable(TableCandidate tc) { /** * TODO [improve]: Table/TableCandidate not match * */ this.setHeight(tc.getHeight()); this.setWidth(tc.getWidth()); this.setCaption(tc.getCaption()); this.setRowNumber(tc.getRows().size()); this.setColumnNumber(tc....
[ "public", "void", "setValidTable", "(", "TableCandidate", "tc", ")", "{", "/**\r\n \t * TODO [improve]: Table/TableCandidate not match\r\n \t * */", "this", ".", "setHeight", "(", "tc", ".", "getHeight", "(", ")", ")", ";", "this", ".", "setWidth", "(", "tc", ...
Sets the metadata of a valid table @param tc TableCandidate
[ "Sets", "the", "metadata", "of", "a", "valid", "table" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/Table.java#L384-L399
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java
RelationMention.getLexical_condition
public String getLexical_condition() { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_lexical_condition == null) jcasType.jcas.throwFeatMissing("lexical_condition", "de.julielab.jules.types.ace.RelationMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((RelationMent...
java
public String getLexical_condition() { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_lexical_condition == null) jcasType.jcas.throwFeatMissing("lexical_condition", "de.julielab.jules.types.ace.RelationMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((RelationMent...
[ "public", "String", "getLexical_condition", "(", ")", "{", "if", "(", "RelationMention_Type", ".", "featOkTst", "&&", "(", "(", "RelationMention_Type", ")", "jcasType", ")", ".", "casFeat_lexical_condition", "==", "null", ")", "jcasType", ".", "jcas", ".", "thro...
getter for lexical_condition - gets @generated @return value of the feature
[ "getter", "for", "lexical_condition", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java#L86-L89
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java
RelationMention.setLexical_condition
public void setLexical_condition(String v) { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_lexical_condition == null) jcasType.jcas.throwFeatMissing("lexical_condition", "de.julielab.jules.types.ace.RelationMention"); jcasType.ll_cas.ll_setStringValue(addr, ((RelationMenti...
java
public void setLexical_condition(String v) { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_lexical_condition == null) jcasType.jcas.throwFeatMissing("lexical_condition", "de.julielab.jules.types.ace.RelationMention"); jcasType.ll_cas.ll_setStringValue(addr, ((RelationMenti...
[ "public", "void", "setLexical_condition", "(", "String", "v", ")", "{", "if", "(", "RelationMention_Type", ".", "featOkTst", "&&", "(", "(", "RelationMention_Type", ")", "jcasType", ")", ".", "casFeat_lexical_condition", "==", "null", ")", "jcasType", ".", "jcas...
setter for lexical_condition - sets @generated @param v value to set into the feature
[ "setter", "for", "lexical_condition", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java#L95-L98
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java
RelationMention.getRelation_ref
public Relation getRelation_ref() { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_relation_ref == null) jcasType.jcas.throwFeatMissing("relation_ref", "de.julielab.jules.types.ace.RelationMention"); return (Relation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRef...
java
public Relation getRelation_ref() { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_relation_ref == null) jcasType.jcas.throwFeatMissing("relation_ref", "de.julielab.jules.types.ace.RelationMention"); return (Relation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRef...
[ "public", "Relation", "getRelation_ref", "(", ")", "{", "if", "(", "RelationMention_Type", ".", "featOkTst", "&&", "(", "(", "RelationMention_Type", ")", "jcasType", ")", ".", "casFeat_relation_ref", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMis...
getter for relation_ref - gets @generated @return value of the feature
[ "getter", "for", "relation_ref", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java#L152-L155
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java
RelationMention.setRelation_ref
public void setRelation_ref(Relation v) { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_relation_ref == null) jcasType.jcas.throwFeatMissing("relation_ref", "de.julielab.jules.types.ace.RelationMention"); jcasType.ll_cas.ll_setRefValue(addr, ((RelationMention_Type)jcasType...
java
public void setRelation_ref(Relation v) { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_relation_ref == null) jcasType.jcas.throwFeatMissing("relation_ref", "de.julielab.jules.types.ace.RelationMention"); jcasType.ll_cas.ll_setRefValue(addr, ((RelationMention_Type)jcasType...
[ "public", "void", "setRelation_ref", "(", "Relation", "v", ")", "{", "if", "(", "RelationMention_Type", ".", "featOkTst", "&&", "(", "(", "RelationMention_Type", ")", "jcasType", ")", ".", "casFeat_relation_ref", "==", "null", ")", "jcasType", ".", "jcas", "."...
setter for relation_ref - sets @generated @param v value to set into the feature
[ "setter", "for", "relation_ref", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/RelationMention.java#L161-L164
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java
ParseAnnotator.loadMappings
private void loadMappings() { for (int i = 0; i < mappings.length; i++) { String[] pair = mappings[i].split(";"); if (pair.length < 2) { try { throw new AnnotatorConfigurationException(); } catch (AnnotatorConfigurationException e) { LOGGER.error("[OpenNLP Parser: ]" + e.getMessage()); ...
java
private void loadMappings() { for (int i = 0; i < mappings.length; i++) { String[] pair = mappings[i].split(";"); if (pair.length < 2) { try { throw new AnnotatorConfigurationException(); } catch (AnnotatorConfigurationException e) { LOGGER.error("[OpenNLP Parser: ]" + e.getMessage()); ...
[ "private", "void", "loadMappings", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mappings", ".", "length", ";", "i", "++", ")", "{", "String", "[", "]", "pair", "=", "mappings", "[", "i", "]", ".", "split", "(", "\";\"", ")",...
load mappings of constituent names
[ "load", "mappings", "of", "constituent", "names" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java#L285-L304
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java
ParseAnnotator.annotate
private void annotate(Parse parse, JCas cas, Constituent parent) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { Constituent cons = null; Span span = parse.getSpan(); String l...
java
private void annotate(Parse parse, JCas cas, Constituent parent) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { Constituent cons = null; Span span = parse.getSpan(); String l...
[ "private", "void", "annotate", "(", "Parse", "parse", ",", "JCas", "cas", ",", "Constituent", "parent", ")", "throws", "SecurityException", ",", "IllegalArgumentException", ",", "ClassNotFoundException", ",", "NoSuchMethodException", ",", "InstantiationException", ",", ...
provide annotations from Parse result to CAS object
[ "provide", "annotations", "from", "Parse", "result", "to", "CAS", "object" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java#L309-L361
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java
ParseAnnotator.makeFunAnnotations
private void makeFunAnnotations(Constituent cons, String[] funCatLabels) { if (funCatLabels != null && funCatLabels.length > 1) { String labeltype; for (int i = 1; i < funCatLabels.length; i++) { labeltype = funTable.get(funCatLabels[i]); if (labeltype != null) { Class c = cons.getClass(); if...
java
private void makeFunAnnotations(Constituent cons, String[] funCatLabels) { if (funCatLabels != null && funCatLabels.length > 1) { String labeltype; for (int i = 1; i < funCatLabels.length; i++) { labeltype = funTable.get(funCatLabels[i]); if (labeltype != null) { Class c = cons.getClass(); if...
[ "private", "void", "makeFunAnnotations", "(", "Constituent", "cons", ",", "String", "[", "]", "funCatLabels", ")", "{", "if", "(", "funCatLabels", "!=", "null", "&&", "funCatLabels", ".", "length", ">", "1", ")", "{", "String", "labeltype", ";", "for", "("...
make Fun annotations
[ "make", "Fun", "annotations" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java#L366-L428
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java
ParseAnnotator.initBracketMap
private void initBracketMap() { escMap.put("(", "-LRB-"); escMap.put(")", "-RRB-"); escMap.put("{", "-LCB-"); escMap.put("}", "-RCB-"); escMap.put("[", "-LSB-"); escMap.put("]", "-RSB-"); }
java
private void initBracketMap() { escMap.put("(", "-LRB-"); escMap.put(")", "-RRB-"); escMap.put("{", "-LCB-"); escMap.put("}", "-RCB-"); escMap.put("[", "-LSB-"); escMap.put("]", "-RSB-"); }
[ "private", "void", "initBracketMap", "(", ")", "{", "escMap", ".", "put", "(", "\"(\"", ",", "\"-LRB-\"", ")", ";", "escMap", ".", "put", "(", "\")\"", ",", "\"-RRB-\"", ")", ";", "escMap", ".", "put", "(", "\"{\"", ",", "\"-LCB-\"", ")", ";", "escMa...
init table with charactets to be escaped
[ "init", "table", "with", "charactets", "to", "be", "escaped" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java#L434-L441
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java
ParseAnnotator.initFunMap
private void initFunMap() { funTable.put("ADV", "formFuncDisc"); funTable.put("NOM", "formFuncDisc"); funTable.put("DTV", "gramRole"); funTable.put("LGS", "gramRole"); funTable.put("PRD", "gramRole"); funTable.put("PUT", "gramRole"); funTable.put("SBJ", "gramRole"); funTable.put("VOC", "gramRole"); ...
java
private void initFunMap() { funTable.put("ADV", "formFuncDisc"); funTable.put("NOM", "formFuncDisc"); funTable.put("DTV", "gramRole"); funTable.put("LGS", "gramRole"); funTable.put("PRD", "gramRole"); funTable.put("PUT", "gramRole"); funTable.put("SBJ", "gramRole"); funTable.put("VOC", "gramRole"); ...
[ "private", "void", "initFunMap", "(", ")", "{", "funTable", ".", "put", "(", "\"ADV\"", ",", "\"formFuncDisc\"", ")", ";", "funTable", ".", "put", "(", "\"NOM\"", ",", "\"formFuncDisc\"", ")", ";", "funTable", ".", "put", "(", "\"DTV\"", ",", "\"gramRole\"...
init table wit fun tags and corresponfing attributes of a Constituent
[ "init", "table", "wit", "fun", "tags", "and", "corresponfing", "attributes", "of", "a", "Constituent" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/de/julielab/jules/ae/opennlp/ParseAnnotator.java#L447-L473
train
BlueBrain/bluima
modules/bluima_bbp/src/main/java/ch/epfl/bbp/uima/ae/ExtractBrainregionsCoocurrences2.java
ExtractBrainregionsCoocurrences2.getLoadline
private String[] getLoadline(Pair<BrainRegion, BrainRegion> pair, int pmId) { BrainRegion br1 = pair.getKey(); BrainRegion br2 = pair.getValue(); return new String[] { pmId + "",// br1.getCoveredText().replaceAll("(\\r|\\n|\\t)", ""), br1.getBegi...
java
private String[] getLoadline(Pair<BrainRegion, BrainRegion> pair, int pmId) { BrainRegion br1 = pair.getKey(); BrainRegion br2 = pair.getValue(); return new String[] { pmId + "",// br1.getCoveredText().replaceAll("(\\r|\\n|\\t)", ""), br1.getBegi...
[ "private", "String", "[", "]", "getLoadline", "(", "Pair", "<", "BrainRegion", ",", "BrainRegion", ">", "pair", ",", "int", "pmId", ")", "{", "BrainRegion", "br1", "=", "pair", ".", "getKey", "(", ")", ";", "BrainRegion", "br2", "=", "pair", ".", "getV...
`pubmed_id`,`region_1_name,`region_1_start`,`region_1_end`,`region_2_name `,` region_2_start`,`region_2_end`
[ "pubmed_id", "region_1_name", "region_1_start", "region_1_end", "region_2_name", "region_2_start", "region_2_end" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_bbp/src/main/java/ch/epfl/bbp/uima/ae/ExtractBrainregionsCoocurrences2.java#L93-L105
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/GISTrainer.java
GISTrainer.eval
public void eval(int[] context, double[] outsums) { for (int oid = 0; oid < numOutcomes; oid++) { outsums[oid] = iprob; numfeats[oid] = 0; } int[] activeOutcomes; double[] activeParameters; for (int i = 0; i < context.length; i++) { Context predParams = params[context[i]]; a...
java
public void eval(int[] context, double[] outsums) { for (int oid = 0; oid < numOutcomes; oid++) { outsums[oid] = iprob; numfeats[oid] = 0; } int[] activeOutcomes; double[] activeParameters; for (int i = 0; i < context.length; i++) { Context predParams = params[context[i]]; a...
[ "public", "void", "eval", "(", "int", "[", "]", "context", ",", "double", "[", "]", "outsums", ")", "{", "for", "(", "int", "oid", "=", "0", ";", "oid", "<", "numOutcomes", ";", "oid", "++", ")", "{", "outsums", "[", "oid", "]", "=", "iprob", "...
Use this model to evaluate a context and populate the specified outsums array with the likelihood of each outcome given that context. @param context The integers of the predicates which have been observed at the present decision point.
[ "Use", "this", "model", "to", "evaluate", "a", "context", "and", "populate", "the", "specified", "outsums", "array", "with", "the", "likelihood", "of", "each", "outcome", "given", "that", "context", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/maxent/GISTrainer.java#L349-L379
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java
DocumentBlock.getHasBold
public boolean getHasBold() { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasBold == null) jcasType.jcas.throwFeatMissing("hasBold", "ch.epfl.bbp.uima.types.DocumentBlock"); return jcasType.ll_cas.ll_getBooleanValue(addr, ((DocumentBlock_Type)jcasType).casFeatCode_hasBold);}
java
public boolean getHasBold() { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasBold == null) jcasType.jcas.throwFeatMissing("hasBold", "ch.epfl.bbp.uima.types.DocumentBlock"); return jcasType.ll_cas.ll_getBooleanValue(addr, ((DocumentBlock_Type)jcasType).casFeatCode_hasBold);}
[ "public", "boolean", "getHasBold", "(", ")", "{", "if", "(", "DocumentBlock_Type", ".", "featOkTst", "&&", "(", "(", "DocumentBlock_Type", ")", "jcasType", ")", ".", "casFeat_hasBold", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", ...
getter for hasBold - gets @generated @return value of the feature
[ "getter", "for", "hasBold", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java#L85-L88
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java
DocumentBlock.setHasBold
public void setHasBold(boolean v) { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasBold == null) jcasType.jcas.throwFeatMissing("hasBold", "ch.epfl.bbp.uima.types.DocumentBlock"); jcasType.ll_cas.ll_setBooleanValue(addr, ((DocumentBlock_Type)jcasType).casFeatCode_hasBold, v)...
java
public void setHasBold(boolean v) { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasBold == null) jcasType.jcas.throwFeatMissing("hasBold", "ch.epfl.bbp.uima.types.DocumentBlock"); jcasType.ll_cas.ll_setBooleanValue(addr, ((DocumentBlock_Type)jcasType).casFeatCode_hasBold, v)...
[ "public", "void", "setHasBold", "(", "boolean", "v", ")", "{", "if", "(", "DocumentBlock_Type", ".", "featOkTst", "&&", "(", "(", "DocumentBlock_Type", ")", "jcasType", ")", ".", "casFeat_hasBold", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatM...
setter for hasBold - sets @generated @param v value to set into the feature
[ "setter", "for", "hasBold", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java#L94-L97
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java
DocumentBlock.getHasManyFontsizes
public boolean getHasManyFontsizes() { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasManyFontsizes == null) jcasType.jcas.throwFeatMissing("hasManyFontsizes", "ch.epfl.bbp.uima.types.DocumentBlock"); return jcasType.ll_cas.ll_getBooleanValue(addr, ((DocumentBlock_Type)jcasT...
java
public boolean getHasManyFontsizes() { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasManyFontsizes == null) jcasType.jcas.throwFeatMissing("hasManyFontsizes", "ch.epfl.bbp.uima.types.DocumentBlock"); return jcasType.ll_cas.ll_getBooleanValue(addr, ((DocumentBlock_Type)jcasT...
[ "public", "boolean", "getHasManyFontsizes", "(", ")", "{", "if", "(", "DocumentBlock_Type", ".", "featOkTst", "&&", "(", "(", "DocumentBlock_Type", ")", "jcasType", ")", ".", "casFeat_hasManyFontsizes", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeat...
getter for hasManyFontsizes - gets @generated @return value of the feature
[ "getter", "for", "hasManyFontsizes", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java#L107-L110
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java
DocumentBlock.setHasManyFontsizes
public void setHasManyFontsizes(boolean v) { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasManyFontsizes == null) jcasType.jcas.throwFeatMissing("hasManyFontsizes", "ch.epfl.bbp.uima.types.DocumentBlock"); jcasType.ll_cas.ll_setBooleanValue(addr, ((DocumentBlock_Type)jcasTy...
java
public void setHasManyFontsizes(boolean v) { if (DocumentBlock_Type.featOkTst && ((DocumentBlock_Type)jcasType).casFeat_hasManyFontsizes == null) jcasType.jcas.throwFeatMissing("hasManyFontsizes", "ch.epfl.bbp.uima.types.DocumentBlock"); jcasType.ll_cas.ll_setBooleanValue(addr, ((DocumentBlock_Type)jcasTy...
[ "public", "void", "setHasManyFontsizes", "(", "boolean", "v", ")", "{", "if", "(", "DocumentBlock_Type", ".", "featOkTst", "&&", "(", "(", "DocumentBlock_Type", ")", "jcasType", ")", ".", "casFeat_hasManyFontsizes", "==", "null", ")", "jcasType", ".", "jcas", ...
setter for hasManyFontsizes - sets @generated @param v value to set into the feature
[ "setter", "for", "hasManyFontsizes", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/types/DocumentBlock.java#L116-L119
train
BlueBrain/bluima
modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/AppGroup.java
AppGroup.getAppOrRefList
public java.util.List<Object> getAppOrRefList() { if (appOrRefList == null) { appOrRefList = new ArrayList<Object>(); } return this.appOrRefList; }
java
public java.util.List<Object> getAppOrRefList() { if (appOrRefList == null) { appOrRefList = new ArrayList<Object>(); } return this.appOrRefList; }
[ "public", "java", ".", "util", ".", "List", "<", "Object", ">", "getAppOrRefList", "(", ")", "{", "if", "(", "appOrRefList", "==", "null", ")", "{", "appOrRefList", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "}", "return", "this", "....
Gets the value of the appOrRefList 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 appOrRefList property. <p> For example...
[ "Gets", "the", "value", "of", "the", "appOrRefList", "property", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/AppGroup.java#L269-L274
train
BlueBrain/bluima
modules/bluima_jsre/src/main/java/org/itc/irst/tcc/sre/data/SentenceSet2VectorSet.java
SentenceSet2VectorSet.getHelp
private static String getHelp() { StringBuffer sb = new StringBuffer(); // SRE sb.append("\njSRE: Simple Relation Extraction V1.10\t 30.08.06\n"); sb.append("developed by Claudio Giuliano (giuliano@itc.it)\n\n"); // License sb.append("Copyright 2005 FBK-irst (http://www.fbk.eu)\n"); sb.append("\n"); ...
java
private static String getHelp() { StringBuffer sb = new StringBuffer(); // SRE sb.append("\njSRE: Simple Relation Extraction V1.10\t 30.08.06\n"); sb.append("developed by Claudio Giuliano (giuliano@itc.it)\n\n"); // License sb.append("Copyright 2005 FBK-irst (http://www.fbk.eu)\n"); sb.append("\n"); ...
[ "private", "static", "String", "getHelp", "(", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "// SRE", "sb", ".", "append", "(", "\"\\njSRE: Simple Relation Extraction V1.10\\t 30.08.06\\n\"", ")", ";", "sb", ".", "append", "(", "\"d...
Returns a command-line help. return a command-line help.
[ "Returns", "a", "command", "-", "line", "help", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_jsre/src/main/java/org/itc/irst/tcc/sre/data/SentenceSet2VectorSet.java#L262-L298
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.clear
public void clear(String what) { if (what.equals("blockers")) blockers.clear(); else if (what.equals("datasets")) datasets.clear(); else if (what.equals("learners")) learners.clear(); else if (what.equals("all")) { clear("blockers"); clear("datasets"); clear("learners"); } else { System.out.println...
java
public void clear(String what) { if (what.equals("blockers")) blockers.clear(); else if (what.equals("datasets")) datasets.clear(); else if (what.equals("learners")) learners.clear(); else if (what.equals("all")) { clear("blockers"); clear("datasets"); clear("learners"); } else { System.out.println...
[ "public", "void", "clear", "(", "String", "what", ")", "{", "if", "(", "what", ".", "equals", "(", "\"blockers\"", ")", ")", "blockers", ".", "clear", "(", ")", ";", "else", "if", "(", "what", ".", "equals", "(", "\"datasets\"", ")", ")", "datasets",...
Clear datasets, blockers, or learners.
[ "Clear", "datasets", "blockers", "or", "learners", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L64-L74
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.show
public void show(String what) { if (what.equals("blockers")) showList("blockers",blockerNames); else if (what.equals("datasets")) showList("datasets", datasetNames); else if (what.equals("learners")) showList("learners", learnerNames); else if (what.equals("all")) { show("blockers"); show("datasets"); ...
java
public void show(String what) { if (what.equals("blockers")) showList("blockers",blockerNames); else if (what.equals("datasets")) showList("datasets", datasetNames); else if (what.equals("learners")) showList("learners", learnerNames); else if (what.equals("all")) { show("blockers"); show("datasets"); ...
[ "public", "void", "show", "(", "String", "what", ")", "{", "if", "(", "what", ".", "equals", "(", "\"blockers\"", ")", ")", "showList", "(", "\"blockers\"", ",", "blockerNames", ")", ";", "else", "if", "(", "what", ".", "equals", "(", "\"datasets\"", "...
Show datasets, blockers, or learners.
[ "Show", "datasets", "blockers", "or", "learners", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L77-L87
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.dataset
public void dataset(String dataFile) throws MatchData.InputFormatException { datasets.add( new MatchData(dataFile) ); datasetNames.add( dataFile ); expt = null; }
java
public void dataset(String dataFile) throws MatchData.InputFormatException { datasets.add( new MatchData(dataFile) ); datasetNames.add( dataFile ); expt = null; }
[ "public", "void", "dataset", "(", "String", "dataFile", ")", "throws", "MatchData", ".", "InputFormatException", "{", "datasets", ".", "add", "(", "new", "MatchData", "(", "dataFile", ")", ")", ";", "datasetNames", ".", "add", "(", "dataFile", ")", ";", "e...
Load a dataset.
[ "Load", "a", "dataset", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L103-L108
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.learner
public void learner(String learnerClass) { learners.add( DistanceLearnerFactory.build( learnerClass )); learnerNames.add( learnerClass ); expt = null; }
java
public void learner(String learnerClass) { learners.add( DistanceLearnerFactory.build( learnerClass )); learnerNames.add( learnerClass ); expt = null; }
[ "public", "void", "learner", "(", "String", "learnerClass", ")", "{", "learners", ".", "add", "(", "DistanceLearnerFactory", ".", "build", "(", "learnerClass", ")", ")", ";", "learnerNames", ".", "add", "(", "learnerClass", ")", ";", "expt", "=", "null", "...
Load a learner.
[ "Load", "a", "learner", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L111-L116
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.blocker
public void blocker(String blockerClass) throws ClassNotFoundException,InstantiationException,IllegalAccessException { blockers.add( Class.forName(BLOCKER_PACKAGE+blockerClass).newInstance() ); blockerNames.add( blockerClass ); expt = null; }
java
public void blocker(String blockerClass) throws ClassNotFoundException,InstantiationException,IllegalAccessException { blockers.add( Class.forName(BLOCKER_PACKAGE+blockerClass).newInstance() ); blockerNames.add( blockerClass ); expt = null; }
[ "public", "void", "blocker", "(", "String", "blockerClass", ")", "throws", "ClassNotFoundException", ",", "InstantiationException", ",", "IllegalAccessException", "{", "blockers", ".", "add", "(", "Class", ".", "forName", "(", "BLOCKER_PACKAGE", "+", "blockerClass", ...
Load a blocker.
[ "Load", "a", "blocker", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L127-L133
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.blocker
public void blocker(String blockerClass, String param, String value) throws ClassNotFoundException,InstantiationException,IllegalAccessException, InvocationTargetException,NoSuchMethodException { Blocker blocker = (Blocker)Class.forName(BLOCKER_PACKAGE+blockerClass).newInstance(); // upperCase the first l...
java
public void blocker(String blockerClass, String param, String value) throws ClassNotFoundException,InstantiationException,IllegalAccessException, InvocationTargetException,NoSuchMethodException { Blocker blocker = (Blocker)Class.forName(BLOCKER_PACKAGE+blockerClass).newInstance(); // upperCase the first l...
[ "public", "void", "blocker", "(", "String", "blockerClass", ",", "String", "param", ",", "String", "value", ")", "throws", "ClassNotFoundException", ",", "InstantiationException", ",", "IllegalAccessException", ",", "InvocationTargetException", ",", "NoSuchMethodException...
Load a blocker, with optional boolean value
[ "Load", "a", "blocker", "with", "optional", "boolean", "value" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L136-L148
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.compute
public void compute() { if (!computable) { throw new RuntimeException("can't re-'compute' experiment results after a 'restore'"); } expt = new MatchExpt[blockers.size()][learners.size()][datasets.size()]; for (int i=0; i<blockers.size(); i++) { Blocker blocker = (Blocker)blockers.get(i); for (int j=0...
java
public void compute() { if (!computable) { throw new RuntimeException("can't re-'compute' experiment results after a 'restore'"); } expt = new MatchExpt[blockers.size()][learners.size()][datasets.size()]; for (int i=0; i<blockers.size(); i++) { Blocker blocker = (Blocker)blockers.get(i); for (int j=0...
[ "public", "void", "compute", "(", ")", "{", "if", "(", "!", "computable", ")", "{", "throw", "new", "RuntimeException", "(", "\"can't re-'compute' experiment results after a 'restore'\"", ")", ";", "}", "expt", "=", "new", "MatchExpt", "[", "blockers", ".", "siz...
Compute learners.
[ "Compute", "learners", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L151-L167
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.table
public void table(String what) throws NoSuchMethodException,IllegalAccessException,InvocationTargetException { PrintfFormat dfmt = new PrintfFormat("Dataset %2d:"); PrintfFormat fmt = new PrintfFormat(" %9.5f "); PrintfFormat nfmt = new PrintfFormat(" %11s"); if (expt==null) compute(); for (int i=0; i<block...
java
public void table(String what) throws NoSuchMethodException,IllegalAccessException,InvocationTargetException { PrintfFormat dfmt = new PrintfFormat("Dataset %2d:"); PrintfFormat fmt = new PrintfFormat(" %9.5f "); PrintfFormat nfmt = new PrintfFormat(" %11s"); if (expt==null) compute(); for (int i=0; i<block...
[ "public", "void", "table", "(", "String", "what", ")", "throws", "NoSuchMethodException", ",", "IllegalAccessException", ",", "InvocationTargetException", "{", "PrintfFormat", "dfmt", "=", "new", "PrintfFormat", "(", "\"Dataset %2d:\"", ")", ";", "PrintfFormat", "fmt"...
Show a table of some expt-wide numeric measurement.
[ "Show", "a", "table", "of", "some", "expt", "-", "wide", "numeric", "measurement", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L170-L202
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.save
public void save(String file) throws IOException,FileNotFoundException { ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)); oos.writeObject(blockerNames); oos.writeObject(datasetNames); oos.writeObject(learnerNames); oos.writeObject(expt); oos.close(); }
java
public void save(String file) throws IOException,FileNotFoundException { ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)); oos.writeObject(blockerNames); oos.writeObject(datasetNames); oos.writeObject(learnerNames); oos.writeObject(expt); oos.close(); }
[ "public", "void", "save", "(", "String", "file", ")", "throws", "IOException", ",", "FileNotFoundException", "{", "ObjectOutputStream", "oos", "=", "new", "ObjectOutputStream", "(", "new", "FileOutputStream", "(", "file", ")", ")", ";", "oos", ".", "writeObject"...
Save current experimental data to a file
[ "Save", "current", "experimental", "data", "to", "a", "file" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L252-L260
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.restore
public void restore(String file) throws IOException,FileNotFoundException,ClassNotFoundException { ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file)); blockerNames = (List)ois.readObject(); datasetNames = (List)ois.readObject(); learnerNames = (List)ois.readObject(); expt = (MatchExpt[]...
java
public void restore(String file) throws IOException,FileNotFoundException,ClassNotFoundException { ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file)); blockerNames = (List)ois.readObject(); datasetNames = (List)ois.readObject(); learnerNames = (List)ois.readObject(); expt = (MatchExpt[]...
[ "public", "void", "restore", "(", "String", "file", ")", "throws", "IOException", ",", "FileNotFoundException", ",", "ClassNotFoundException", "{", "ObjectInputStream", "ois", "=", "new", "ObjectInputStream", "(", "new", "FileInputStream", "(", "file", ")", ")", "...
Restore experimental data previously 'saved' toa file. It will be possible to analyze this data with 'table' commands and etc, but not to perform additional experiments.
[ "Restore", "experimental", "data", "previously", "saved", "toa", "file", ".", "It", "will", "be", "possible", "to", "analyze", "this", "data", "with", "table", "commands", "and", "etc", "but", "not", "to", "perform", "additional", "experiments", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L266-L275
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.runScript
public void runScript(String configFileName) { int lineNum = 0; try { BufferedReader in = new BufferedReader(new FileReader(configFileName)); String line; while ((line = in.readLine())!=null) { lineNum++; if (!line.startsWith("#")) { String command = null; List args = new ArrayLis...
java
public void runScript(String configFileName) { int lineNum = 0; try { BufferedReader in = new BufferedReader(new FileReader(configFileName)); String line; while ((line = in.readLine())!=null) { lineNum++; if (!line.startsWith("#")) { String command = null; List args = new ArrayLis...
[ "public", "void", "runScript", "(", "String", "configFileName", ")", "{", "int", "lineNum", "=", "0", ";", "try", "{", "BufferedReader", "in", "=", "new", "BufferedReader", "(", "new", "FileReader", "(", "configFileName", ")", ")", ";", "String", "line", "...
Load commands from a file and execute them.
[ "Load", "commands", "from", "a", "file", "and", "execute", "them", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L280-L309
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java
MatchExptScript.execCommand
private void execCommand(String command,List args) throws NoSuchMethodException,IllegalAccessException,InvocationTargetException { Class[] template = new Class[ args.size() ]; for (int i=0; i<args.size(); i++) { template[i] = String.class; } Method m = MatchExptScript.class.getMethod(command, template );...
java
private void execCommand(String command,List args) throws NoSuchMethodException,IllegalAccessException,InvocationTargetException { Class[] template = new Class[ args.size() ]; for (int i=0; i<args.size(); i++) { template[i] = String.class; } Method m = MatchExptScript.class.getMethod(command, template );...
[ "private", "void", "execCommand", "(", "String", "command", ",", "List", "args", ")", "throws", "NoSuchMethodException", ",", "IllegalAccessException", ",", "InvocationTargetException", "{", "Class", "[", "]", "template", "=", "new", "Class", "[", "args", ".", "...
execute a single command
[ "execute", "a", "single", "command" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/MatchExptScript.java#L311-L320
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TokenFelligiSunter.java
TokenFelligiSunter.prepare
public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); // reweight by -log( freq/collectionSize ) double normalizer = 0.0; for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); if (collectionSize>0) { Integer dfInteger = (Inte...
java
public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); // reweight by -log( freq/collectionSize ) double normalizer = 0.0; for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); if (collectionSize>0) { Integer dfInteger = (Inte...
[ "public", "StringWrapper", "prepare", "(", "String", "s", ")", "{", "BagOfTokens", "bag", "=", "new", "BagOfTokens", "(", "s", ",", "tokenizer", ".", "tokenize", "(", "s", ")", ")", ";", "// reweight by -log( freq/collectionSize )", "double", "normalizer", "=", ...
Preprocess a string by finding tokens and giving them appropriate weights
[ "Preprocess", "a", "string", "by", "finding", "tokens", "and", "giving", "them", "appropriate", "weights" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/TokenFelligiSunter.java#L52-L69
train
BlueBrain/bluima
utils/blue_commons/src/main/java/ch/epfl/bbp/MissingUtils.java
MissingUtils.format
public static String format(String msg, Object... args) { if (args == null || args.length == 0) return msg; StringBuilder sb = new StringBuilder(); int argId = 0; for (int i = 0; i < msg.length(); i++) { final char c = msg.charAt(i); if (c == '{' &&...
java
public static String format(String msg, Object... args) { if (args == null || args.length == 0) return msg; StringBuilder sb = new StringBuilder(); int argId = 0; for (int i = 0; i < msg.length(); i++) { final char c = msg.charAt(i); if (c == '{' &&...
[ "public", "static", "String", "format", "(", "String", "msg", ",", "Object", "...", "args", ")", "{", "if", "(", "args", "==", "null", "||", "args", ".", "length", "==", "0", ")", "return", "msg", ";", "StringBuilder", "sb", "=", "new", "StringBuilder"...
Similar to Slf4J logger
[ "Similar", "to", "Slf4J", "logger" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/utils/blue_commons/src/main/java/ch/epfl/bbp/MissingUtils.java#L21-L47
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/tokens/NGramTokenizer.java
NGramTokenizer.tokenize
public Token[] tokenize(String input) { Token[] initialTokens = innerTokenizer.tokenize(input); List tokens = new ArrayList(); for (int i=0; i<initialTokens.length; i++) { Token tok = initialTokens[i]; String str = "^"+tok.getValue()+"$"; if (keepOldToken...
java
public Token[] tokenize(String input) { Token[] initialTokens = innerTokenizer.tokenize(input); List tokens = new ArrayList(); for (int i=0; i<initialTokens.length; i++) { Token tok = initialTokens[i]; String str = "^"+tok.getValue()+"$"; if (keepOldToken...
[ "public", "Token", "[", "]", "tokenize", "(", "String", "input", ")", "{", "Token", "[", "]", "initialTokens", "=", "innerTokenizer", ".", "tokenize", "(", "input", ")", ";", "List", "tokens", "=", "new", "ArrayList", "(", ")", ";", "for", "(", "int", ...
Return tokenized version of a string. Tokens are all character n-grams that are part of a token produced by the inner tokenizer.
[ "Return", "tokenized", "version", "of", "a", "string", ".", "Tokens", "are", "all", "character", "n", "-", "grams", "that", "are", "part", "of", "a", "token", "produced", "by", "the", "inner", "tokenizer", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/tokens/NGramTokenizer.java#L30-L47
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getCategories
public FSArray getCategories() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Des...
java
public FSArray getCategories() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Des...
[ "public", "FSArray", "getCategories", "(", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_categories", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", ...
getter for categories - gets List of Wikipedia categories associated with a Wikipedia page. @generated @return value of the feature
[ "getter", "for", "categories", "-", "gets", "List", "of", "Wikipedia", "categories", "associated", "with", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L87-L90
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setCategories
public void setCategories(FSArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_categor...
java
public void setCategories(FSArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_categor...
[ "public", "void", "setCategories", "(", "FSArray", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_categories", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatM...
setter for categories - sets List of Wikipedia categories associated with a Wikipedia page. @generated @param v value to set into the feature
[ "setter", "for", "categories", "-", "sets", "List", "of", "Wikipedia", "categories", "associated", "with", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L96-L99
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getCategories
public Title getCategories(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)j...
java
public Title getCategories(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)j...
[ "public", "Title", "getCategories", "(", "int", "i", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_categories", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMiss...
indexed getter for categories - gets an indexed value - List of Wikipedia categories associated with a Wikipedia page. @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "categories", "-", "gets", "an", "indexed", "value", "-", "List", "of", "Wikipedia", "categories", "associated", "with", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L106-L110
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setCategories
public void setCategories(int i, Title v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descript...
java
public void setCategories(int i, Title v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null) jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descript...
[ "public", "void", "setCategories", "(", "int", "i", ",", "Title", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_categories", "==", "null", ")", "jcasType", ".", "jcas",...
indexed setter for categories - sets an indexed value - List of Wikipedia categories associated with a Wikipedia page. @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "categories", "-", "sets", "an", "indexed", "value", "-", "List", "of", "Wikipedia", "categories", "associated", "with", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L117-L121
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getOutgoingLinks
public FSArray getOutgoingLinks() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(ad...
java
public FSArray getOutgoingLinks() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(ad...
[ "public", "FSArray", "getOutgoingLinks", "(", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_outgoingLinks", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
getter for outgoingLinks - gets List of outgoing links pointing to other Wikipedia pages starting at a Wikipedia page. @generated @return value of the feature
[ "getter", "for", "outgoingLinks", "-", "gets", "List", "of", "outgoing", "links", "pointing", "to", "other", "Wikipedia", "pages", "starting", "at", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L175-L178
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setOutgoingLinks
public void setOutgoingLinks(FSArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCod...
java
public void setOutgoingLinks(FSArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCod...
[ "public", "void", "setOutgoingLinks", "(", "FSArray", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_outgoingLinks", "==", "null", ")", "jcasType", ".", "jcas", ".", "thro...
setter for outgoingLinks - sets List of outgoing links pointing to other Wikipedia pages starting at a Wikipedia page. @generated @param v value to set into the feature
[ "setter", "for", "outgoingLinks", "-", "sets", "List", "of", "outgoing", "links", "pointing", "to", "other", "Wikipedia", "pages", "starting", "at", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L184-L187
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getOutgoingLinks
public Title getOutgoingLinks(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descript...
java
public Title getOutgoingLinks(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descript...
[ "public", "Title", "getOutgoingLinks", "(", "int", "i", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_outgoingLinks", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFe...
indexed getter for outgoingLinks - gets an indexed value - List of outgoing links pointing to other Wikipedia pages starting at a Wikipedia page. @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "outgoingLinks", "-", "gets", "an", "indexed", "value", "-", "List", "of", "outgoing", "links", "pointing", "to", "other", "Wikipedia", "pages", "starting", "at", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L194-L198
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setOutgoingLinks
public void setOutgoingLinks(int i, Title v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, (...
java
public void setOutgoingLinks(int i, Title v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_outgoingLinks == null) jcasType.jcas.throwFeatMissing("outgoingLinks", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, (...
[ "public", "void", "setOutgoingLinks", "(", "int", "i", ",", "Title", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_outgoingLinks", "==", "null", ")", "jcasType", ".", "...
indexed setter for outgoingLinks - sets an indexed value - List of outgoing links pointing to other Wikipedia pages starting at a Wikipedia page. @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "outgoingLinks", "-", "sets", "an", "indexed", "value", "-", "List", "of", "outgoing", "links", "pointing", "to", "other", "Wikipedia", "pages", "starting", "at", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L205-L209
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getRedirects
public StringArray getRedirects() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ...
java
public StringArray getRedirects() { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ...
[ "public", "StringArray", "getRedirects", "(", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_redirects", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(",...
getter for redirects - gets List of redirects pointing to a Wikipedia page. @generated @return value of the feature
[ "getter", "for", "redirects", "-", "gets", "List", "of", "redirects", "pointing", "to", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L219-L222
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setRedirects
public void setRedirects(StringArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_redire...
java
public void setRedirects(StringArray v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.ll_cas.ll_setRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_redire...
[ "public", "void", "setRedirects", "(", "StringArray", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_redirects", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFea...
setter for redirects - sets List of redirects pointing to a Wikipedia page. @generated @param v value to set into the feature
[ "setter", "for", "redirects", "-", "sets", "List", "of", "redirects", "pointing", "to", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L228-L231
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.getRedirects
public String getRedirects(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jca...
java
public String getRedirects(int i) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jca...
[ "public", "String", "getRedirects", "(", "int", "i", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_redirects", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissi...
indexed getter for redirects - gets an indexed value - List of redirects pointing to a Wikipedia page. @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "redirects", "-", "gets", "an", "indexed", "value", "-", "List", "of", "redirects", "pointing", "to", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L238-L242
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java
Descriptor.setRedirects
public void setRedirects(int i, String v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor...
java
public void setRedirects(int i, String v) { if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null) jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor...
[ "public", "void", "setRedirects", "(", "int", "i", ",", "String", "v", ")", "{", "if", "(", "Descriptor_Type", ".", "featOkTst", "&&", "(", "(", "Descriptor_Type", ")", "jcasType", ")", ".", "casFeat_redirects", "==", "null", ")", "jcasType", ".", "jcas", ...
indexed setter for redirects - sets an indexed value - List of redirects pointing to a Wikipedia page. @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "redirects", "-", "sets", "an", "indexed", "value", "-", "List", "of", "redirects", "pointing", "to", "a", "Wikipedia", "page", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/wikipedia/Descriptor.java#L249-L253
train
BlueBrain/bluima
modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/Bio.java
Bio.getRid
public java.util.List<Object> getRid() { if (rid == null) { rid = new ArrayList<Object>(); } return this.rid; }
java
public java.util.List<Object> getRid() { if (rid == null) { rid = new ArrayList<Object>(); } return this.rid; }
[ "public", "java", ".", "util", ".", "List", "<", "Object", ">", "getRid", "(", ")", "{", "if", "(", "rid", "==", "null", ")", "{", "rid", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "}", "return", "this", ".", "rid", ";", "}" ]
Gets the value of the rid 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 rid property. <p> For example, to add a new ite...
[ "Gets", "the", "value", "of", "the", "rid", "property", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_xml/src/main/java/ch/epfl/bbp/uima/xml/archivearticle3/Bio.java#L419-L424
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.parse
public static Pipeline parse(File scriptFile, List<String> replacementVars) throws ParseException, IOException { checkArgument( scriptFile.exists(), "could not find pipeline script file at " + scriptFile.getAbsolutePath()); return parse...
java
public static Pipeline parse(File scriptFile, List<String> replacementVars) throws ParseException, IOException { checkArgument( scriptFile.exists(), "could not find pipeline script file at " + scriptFile.getAbsolutePath()); return parse...
[ "public", "static", "Pipeline", "parse", "(", "File", "scriptFile", ",", "List", "<", "String", ">", "replacementVars", ")", "throws", "ParseException", ",", "IOException", "{", "checkArgument", "(", "scriptFile", ".", "exists", "(", ")", ",", "\"could not find ...
Parses a pipeline script file. @param scriptFile the pipeline script file to parse @param replacementVars the variables to replace in the original pipeline script. The first variable gets inserted in place of all $1, the second in place of $2, etc. @return the parsed {@link Pipeline}
[ "Parses", "a", "pipeline", "script", "file", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L76-L84
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.parse
public static Pipeline parse(List<String> scriptLines, String parentFilePath, List<String> replacementVars) throws ParseException, IOException { if (replacementVars == null) replacementVars = new ArrayList<String>(); // parse Pipeline pipeline = parseAndDispa...
java
public static Pipeline parse(List<String> scriptLines, String parentFilePath, List<String> replacementVars) throws ParseException, IOException { if (replacementVars == null) replacementVars = new ArrayList<String>(); // parse Pipeline pipeline = parseAndDispa...
[ "public", "static", "Pipeline", "parse", "(", "List", "<", "String", ">", "scriptLines", ",", "String", "parentFilePath", ",", "List", "<", "String", ">", "replacementVars", ")", "throws", "ParseException", ",", "IOException", "{", "if", "(", "replacementVars", ...
Parses lines from a pipeline script. @param scriptLines the lines of a pipeline script to parse @param parentFilePath the path to the parent File, used for resolving includes @param replacementVars the variables to replace in the original pipeline script. The first variable gets inserted in place of all $1, the second...
[ "Parses", "lines", "from", "a", "pipeline", "script", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L99-L120
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.parsePython
private static void parsePython(IteratorWithPrevious<String> it, Pipeline pipeline) throws ParseException { String script = ""; while (it.hasNext()) { String current = it.next(); if (StringUtils.isBlank(current)) break; script += current +...
java
private static void parsePython(IteratorWithPrevious<String> it, Pipeline pipeline) throws ParseException { String script = ""; while (it.hasNext()) { String current = it.next(); if (StringUtils.isBlank(current)) break; script += current +...
[ "private", "static", "void", "parsePython", "(", "IteratorWithPrevious", "<", "String", ">", "it", ",", "Pipeline", "pipeline", ")", "throws", "ParseException", "{", "String", "script", "=", "\"\"", ";", "while", "(", "it", ".", "hasNext", "(", ")", ")", "...
Parses inline, raw Python code and executes it with Jython @return
[ "Parses", "inline", "raw", "Python", "code", "and", "executes", "it", "with", "Jython" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L211-L233
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.parseJava
private static void parseJava(IteratorWithPrevious<String> it, Pipeline pipeline) throws ParseException { String script = ""; while (it.hasNext()) { String current = it.next(); if (isBlank(current)) break; script += current + "\n"; ...
java
private static void parseJava(IteratorWithPrevious<String> it, Pipeline pipeline) throws ParseException { String script = ""; while (it.hasNext()) { String current = it.next(); if (isBlank(current)) break; script += current + "\n"; ...
[ "private", "static", "void", "parseJava", "(", "IteratorWithPrevious", "<", "String", ">", "it", ",", "Pipeline", "pipeline", ")", "throws", "ParseException", "{", "String", "script", "=", "\"\"", ";", "while", "(", "it", ".", "hasNext", "(", ")", ")", "{"...
Parses inline, raw java code and executes it with Beanshell @return
[ "Parses", "inline", "raw", "java", "code", "and", "executes", "it", "with", "Beanshell" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L240-L260
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.parseInclude
private static void parseInclude(String line, Pipeline pipeline, String parentFilePath, List<String> cliArgs) throws ParseException { LOG.info("+-parsing include line '{}'", line); String includeName = line.replaceFirst("include: ", "").trim(); File includeFile = null; if (in...
java
private static void parseInclude(String line, Pipeline pipeline, String parentFilePath, List<String> cliArgs) throws ParseException { LOG.info("+-parsing include line '{}'", line); String includeName = line.replaceFirst("include: ", "").trim(); File includeFile = null; if (in...
[ "private", "static", "void", "parseInclude", "(", "String", "line", ",", "Pipeline", "pipeline", ",", "String", "parentFilePath", ",", "List", "<", "String", ">", "cliArgs", ")", "throws", "ParseException", "{", "LOG", ".", "info", "(", "\"+-parsing include line...
parse include commands
[ "parse", "include", "commands" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L263-L297
train
BlueBrain/bluima
modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java
PipelineScriptParser.validateParams
private static void validateParams(List<Object> params, Class<?> classz) { // skip validation if not uimafit if (!JCasAnnotator_ImplBase.class.isAssignableFrom(classz) && !JCasCollectionReader_ImplBase.class.isAssignableFrom(// classz)) { LOG.warn( ...
java
private static void validateParams(List<Object> params, Class<?> classz) { // skip validation if not uimafit if (!JCasAnnotator_ImplBase.class.isAssignableFrom(classz) && !JCasCollectionReader_ImplBase.class.isAssignableFrom(// classz)) { LOG.warn( ...
[ "private", "static", "void", "validateParams", "(", "List", "<", "Object", ">", "params", ",", "Class", "<", "?", ">", "classz", ")", "{", "// skip validation if not uimafit", "if", "(", "!", "JCasAnnotator_ImplBase", ".", "class", ".", "isAssignableFrom", "(", ...
check that this ae or cr has the right parameters @param params key : val : key : val @param classz a cr or an ae @throws ParseException if the keys are not declared as fields in the classz
[ "check", "that", "this", "ae", "or", "cr", "has", "the", "right", "parameters" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_scripting/src/main/java/ch/epfl/bbp/uima/laucher/PipelineScriptParser.java#L377-L420
train
duracloud/duracloud
security/src/main/java/org/duracloud/security/vote/VoterUtil.java
VoterUtil.debugText
protected static String debugText(String heading, Authentication auth, Collection<ConfigAttribute> config, Object resource, int decision) { StringBuilder sb = n...
java
protected static String debugText(String heading, Authentication auth, Collection<ConfigAttribute> config, Object resource, int decision) { StringBuilder sb = n...
[ "protected", "static", "String", "debugText", "(", "String", "heading", ",", "Authentication", "auth", ",", "Collection", "<", "ConfigAttribute", ">", "config", ",", "Object", "resource", ",", "int", "decision", ")", "{", "StringBuilder", "sb", "=", "new", "St...
This is small debug utility available to voters in this package.
[ "This", "is", "small", "debug", "utility", "available", "to", "voters", "in", "this", "package", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/security/src/main/java/org/duracloud/security/vote/VoterUtil.java#L28-L57
train
duracloud/duracloud
storeclient/src/main/java/org/duracloud/client/task/S3TaskClientManager.java
S3TaskClientManager.get
public S3TaskClient get(String storeId) throws ContentStoreException { ContentStore contentStore = contentStoreManager.getContentStore(storeId); return new S3TaskClientImpl(contentStore); }
java
public S3TaskClient get(String storeId) throws ContentStoreException { ContentStore contentStore = contentStoreManager.getContentStore(storeId); return new S3TaskClientImpl(contentStore); }
[ "public", "S3TaskClient", "get", "(", "String", "storeId", ")", "throws", "ContentStoreException", "{", "ContentStore", "contentStore", "=", "contentStoreManager", ".", "getContentStore", "(", "storeId", ")", ";", "return", "new", "S3TaskClientImpl", "(", "contentStor...
Retrieve an S3TaskClient @param storeId id of the storage provider @return client for calling S3 tasks @throws ContentStoreException on error
[ "Retrieve", "an", "S3TaskClient" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/storeclient/src/main/java/org/duracloud/client/task/S3TaskClientManager.java#L35-L38
train
duracloud/duracloud
common/src/main/java/org/duracloud/common/util/IOUtil.java
IOUtil.addFileToZipOutputStream
public static void addFileToZipOutputStream(File file, ZipOutputStream zipOs) throws IOException { String fileName = file.getName(); try (FileInputStream fos = new FileInputStream(file)) { ZipEntry zipEntry = new ZipEntry(fileName); zipEntry.setSize(file.length()); zi...
java
public static void addFileToZipOutputStream(File file, ZipOutputStream zipOs) throws IOException { String fileName = file.getName(); try (FileInputStream fos = new FileInputStream(file)) { ZipEntry zipEntry = new ZipEntry(fileName); zipEntry.setSize(file.length()); zi...
[ "public", "static", "void", "addFileToZipOutputStream", "(", "File", "file", ",", "ZipOutputStream", "zipOs", ")", "throws", "IOException", "{", "String", "fileName", "=", "file", ".", "getName", "(", ")", ";", "try", "(", "FileInputStream", "fos", "=", "new",...
Adds the specified file to the zip output stream. @param file @param zipOs
[ "Adds", "the", "specified", "file", "to", "the", "zip", "output", "stream", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common/src/main/java/org/duracloud/common/util/IOUtil.java#L140-L155
train
duracloud/duracloud
glacierstorageprovider/src/main/java/org/duracloud/glacierstorage/GlacierStorageProvider.java
GlacierStorageProvider.checkStorageState
private void checkStorageState(StorageException e) { if (e.getCause() instanceof AmazonS3Exception) { String errorCode = ((AmazonS3Exception) e.getCause()).getErrorCode(); if (INVALID_OBJECT_STATE.equals(errorCode)) { String message = "The storage sta...
java
private void checkStorageState(StorageException e) { if (e.getCause() instanceof AmazonS3Exception) { String errorCode = ((AmazonS3Exception) e.getCause()).getErrorCode(); if (INVALID_OBJECT_STATE.equals(errorCode)) { String message = "The storage sta...
[ "private", "void", "checkStorageState", "(", "StorageException", "e", ")", "{", "if", "(", "e", ".", "getCause", "(", ")", "instanceof", "AmazonS3Exception", ")", "{", "String", "errorCode", "=", "(", "(", "AmazonS3Exception", ")", "e", ".", "getCause", "(",...
Recognize and handle exceptions due to content which resides in Glacier but has not been retrieved for access.
[ "Recognize", "and", "handle", "exceptions", "due", "to", "content", "which", "resides", "in", "Glacier", "but", "has", "not", "been", "retrieved", "for", "access", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/glacierstorageprovider/src/main/java/org/duracloud/glacierstorage/GlacierStorageProvider.java#L116-L129
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/ManifestRest.java
ManifestRest.generateAsynchronously
private URI generateAsynchronously(String account, String spaceId, String storeId, String format) throws Exception { StorageProviderType providerType = getStorageProviderType(storeId...
java
private URI generateAsynchronously(String account, String spaceId, String storeId, String format) throws Exception { StorageProviderType providerType = getStorageProviderType(storeId...
[ "private", "URI", "generateAsynchronously", "(", "String", "account", ",", "String", "spaceId", ",", "String", "storeId", ",", "String", "format", ")", "throws", "Exception", "{", "StorageProviderType", "providerType", "=", "getStorageProviderType", "(", "storeId", ...
Generates a manifest file asynchronously and uploads to DuraCloud @param account @param spaceId @param storeId @param format @return The URI of the generated manifest.
[ "Generates", "a", "manifest", "file", "asynchronously", "and", "uploads", "to", "DuraCloud" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/ManifestRest.java#L177-L226
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java
StorageProviderFactoryImpl.getStorageAccounts
@Override public List<StorageAccount> getStorageAccounts() { List<StorageAccount> accts = new ArrayList<>(); Iterator<String> ids = getAccountManager().getStorageAccountIds(); while (ids.hasNext()) { accts.add(getAccountManager().getStorageAccount(ids.next())); } ...
java
@Override public List<StorageAccount> getStorageAccounts() { List<StorageAccount> accts = new ArrayList<>(); Iterator<String> ids = getAccountManager().getStorageAccountIds(); while (ids.hasNext()) { accts.add(getAccountManager().getStorageAccount(ids.next())); } ...
[ "@", "Override", "public", "List", "<", "StorageAccount", ">", "getStorageAccounts", "(", ")", "{", "List", "<", "StorageAccount", ">", "accts", "=", "new", "ArrayList", "<>", "(", ")", ";", "Iterator", "<", "String", ">", "ids", "=", "getAccountManager", ...
This method returns all of the registered storage accounts. @return list of storage accounts
[ "This", "method", "returns", "all", "of", "the", "registered", "storage", "accounts", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java#L154-L163
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java
StorageProviderFactoryImpl.getStorageProvider
@Override public StorageProvider getStorageProvider(String storageAccountId) throws StorageException { // If no store ID is provided, retrieves the primary store ID storageAccountId = checkStorageAccountId(storageAccountId); if (storageProviders.containsKey(storageAccountId)) { ...
java
@Override public StorageProvider getStorageProvider(String storageAccountId) throws StorageException { // If no store ID is provided, retrieves the primary store ID storageAccountId = checkStorageAccountId(storageAccountId); if (storageProviders.containsKey(storageAccountId)) { ...
[ "@", "Override", "public", "StorageProvider", "getStorageProvider", "(", "String", "storageAccountId", ")", "throws", "StorageException", "{", "// If no store ID is provided, retrieves the primary store ID", "storageAccountId", "=", "checkStorageAccountId", "(", "storageAccountId",...
Retrieves a particular storage provider based on the storage account ID. If no storage ID is provided use the primary storage provider account If no storage account can be found with the given ID, throw NotFoundException @param storageAccountId - the ID of the storage provider account @return @throws StorageException
[ "Retrieves", "a", "particular", "storage", "provider", "based", "on", "the", "storage", "account", "ID", ".", "If", "no", "storage", "ID", "is", "provided", "use", "the", "primary", "storage", "provider", "account", "If", "no", "storage", "account", "can", "...
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java#L186-L256
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java
StorageProviderFactoryImpl.expireStorageProvider
@Override public void expireStorageProvider(String storageAccountId) { storageAccountId = checkStorageAccountId(storageAccountId); log.info("Expiring storage provider connection! Storage account id: {}", storageAccountId); storageProviders.remove(storageAccountId); }
java
@Override public void expireStorageProvider(String storageAccountId) { storageAccountId = checkStorageAccountId(storageAccountId); log.info("Expiring storage provider connection! Storage account id: {}", storageAccountId); storageProviders.remove(storageAccountId); }
[ "@", "Override", "public", "void", "expireStorageProvider", "(", "String", "storageAccountId", ")", "{", "storageAccountId", "=", "checkStorageAccountId", "(", "storageAccountId", ")", ";", "log", ".", "info", "(", "\"Expiring storage provider connection! Storage account i...
Removes a particular storage provider from the cache, which will require that the connection be recreated on the next call. @param storageAccountId - the ID of the storage provider account
[ "Removes", "a", "particular", "storage", "provider", "from", "the", "cache", "which", "will", "require", "that", "the", "connection", "be", "recreated", "on", "the", "next", "call", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/util/StorageProviderFactoryImpl.java#L271-L277
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/util/ProviderFactoryBase.java
ProviderFactoryBase.initialize
public void initialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort, String accountId) throws StorageException { this.initConfig = initConfig; storageAccountManager.initialize(initConfig....
java
public void initialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort, String accountId) throws StorageException { this.initConfig = initConfig; storageAccountManager.initialize(initConfig....
[ "public", "void", "initialize", "(", "DuraStoreInitConfig", "initConfig", ",", "String", "instanceHost", ",", "String", "instancePort", ",", "String", "accountId", ")", "throws", "StorageException", "{", "this", ".", "initConfig", "=", "initConfig", ";", "storageAcc...
Initializes DuraStore with account information necessary to connect to Storage Providers.
[ "Initializes", "DuraStore", "with", "account", "information", "necessary", "to", "connect", "to", "Storage", "Providers", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/util/ProviderFactoryBase.java#L36-L44
train
duracloud/duracloud
common-queue/src/main/java/org/duracloud/common/queue/task/Task.java
Task.getAttempts
public int getAttempts() { String attempts = this.properties.get("attempts"); if (attempts == null) { attempts = "0"; } return Integer.parseInt(attempts); }
java
public int getAttempts() { String attempts = this.properties.get("attempts"); if (attempts == null) { attempts = "0"; } return Integer.parseInt(attempts); }
[ "public", "int", "getAttempts", "(", ")", "{", "String", "attempts", "=", "this", ".", "properties", ".", "get", "(", "\"attempts\"", ")", ";", "if", "(", "attempts", "==", "null", ")", "{", "attempts", "=", "\"0\"", ";", "}", "return", "Integer", ".",...
The number of completed attempts to process this task. @return
[ "The", "number", "of", "completed", "attempts", "to", "process", "this", "task", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-queue/src/main/java/org/duracloud/common/queue/task/Task.java#L72-L79
train
duracloud/duracloud
s3storageprovider/src/main/java/org/duracloud/s3task/streaminghls/GetHlsSignedCookiesUrlTaskRunner.java
GetHlsSignedCookiesUrlTaskRunner.performTask
public String performTask(String taskParameters) { GetSignedCookiesUrlTaskParameters taskParams = GetSignedCookiesUrlTaskParameters.deserialize(taskParameters); String spaceId = taskParams.getSpaceId(); String ipAddress = taskParams.getIpAddress(); int minutesToExpire = task...
java
public String performTask(String taskParameters) { GetSignedCookiesUrlTaskParameters taskParams = GetSignedCookiesUrlTaskParameters.deserialize(taskParameters); String spaceId = taskParams.getSpaceId(); String ipAddress = taskParams.getIpAddress(); int minutesToExpire = task...
[ "public", "String", "performTask", "(", "String", "taskParameters", ")", "{", "GetSignedCookiesUrlTaskParameters", "taskParams", "=", "GetSignedCookiesUrlTaskParameters", ".", "deserialize", "(", "taskParameters", ")", ";", "String", "spaceId", "=", "taskParams", ".", "...
Create and store signed cookies
[ "Create", "and", "store", "signed", "cookies" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/s3storageprovider/src/main/java/org/duracloud/s3task/streaminghls/GetHlsSignedCookiesUrlTaskRunner.java#L77-L146
train
duracloud/duracloud
retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalManager.java
RetrievalManager.run
public void run() { try { while (!complete) { ContentItem contentItem = new Retrier(5, 4000, 2).execute(() -> { return source.getNextContentItem(); }); if (contentItem == null) { break; } ...
java
public void run() { try { while (!complete) { ContentItem contentItem = new Retrier(5, 4000, 2).execute(() -> { return source.getNextContentItem(); }); if (contentItem == null) { break; } ...
[ "public", "void", "run", "(", ")", "{", "try", "{", "while", "(", "!", "complete", ")", "{", "ContentItem", "contentItem", "=", "new", "Retrier", "(", "5", ",", "4000", ",", "2", ")", ".", "execute", "(", "(", ")", "->", "{", "return", "source", ...
Begins the content retrieval process
[ "Begins", "the", "content", "retrieval", "process" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalManager.java#L74-L96
train
duracloud/duracloud
retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalManager.java
RetrievalManager.shutdown
public void shutdown() { logger.info("Closing Retrieval Manager"); workerPool.shutdown(); try { workerPool.awaitTermination(30, TimeUnit.MINUTES); } catch (InterruptedException e) { // Exit wait on interruption } complete = true; }
java
public void shutdown() { logger.info("Closing Retrieval Manager"); workerPool.shutdown(); try { workerPool.awaitTermination(30, TimeUnit.MINUTES); } catch (InterruptedException e) { // Exit wait on interruption } complete = true; }
[ "public", "void", "shutdown", "(", ")", "{", "logger", ".", "info", "(", "\"Closing Retrieval Manager\"", ")", ";", "workerPool", ".", "shutdown", "(", ")", ";", "try", "{", "workerPool", ".", "awaitTermination", "(", "30", ",", "TimeUnit", ".", "MINUTES", ...
Stops the retrieval, no further files will be retrieved after those which are in progress have completed.
[ "Stops", "the", "retrieval", "no", "further", "files", "will", "be", "retrieved", "after", "those", "which", "are", "in", "progress", "have", "completed", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalManager.java#L127-L138
train
duracloud/duracloud
common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java
XmlSerializer.serialize
public String serialize(T obj) { try { Marshaller marshaller = context.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); StringWriter writer = new StringWriter(); marshaller.marshal(obj, writer); return writer.to...
java
public String serialize(T obj) { try { Marshaller marshaller = context.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); StringWriter writer = new StringWriter(); marshaller.marshal(obj, writer); return writer.to...
[ "public", "String", "serialize", "(", "T", "obj", ")", "{", "try", "{", "Marshaller", "marshaller", "=", "context", ".", "createMarshaller", "(", ")", ";", "marshaller", ".", "setProperty", "(", "Marshaller", ".", "JAXB_FORMATTED_OUTPUT", ",", "true", ")", "...
Serializes the data stored within a java bean to XML. The bean and any ancillary beans should include JAXB binding annotations. @param obj to serialize @return XML
[ "Serializes", "the", "data", "stored", "within", "a", "java", "bean", "to", "XML", ".", "The", "bean", "and", "any", "ancillary", "beans", "should", "include", "JAXB", "binding", "annotations", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java#L85-L97
train
duracloud/duracloud
common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java
XmlSerializer.deserialize
public T deserialize(String xml) { if (xml == null || xml.equals("")) { throw new RuntimeException("XML cannot be null or empty"); } else { return deserialize(new StreamSource(new StringReader(xml))); } }
java
public T deserialize(String xml) { if (xml == null || xml.equals("")) { throw new RuntimeException("XML cannot be null or empty"); } else { return deserialize(new StreamSource(new StringReader(xml))); } }
[ "public", "T", "deserialize", "(", "String", "xml", ")", "{", "if", "(", "xml", "==", "null", "||", "xml", ".", "equals", "(", "\"\"", ")", ")", "{", "throw", "new", "RuntimeException", "(", "\"XML cannot be null or empty\"", ")", ";", "}", "else", "{", ...
De-serializes XML into an object structure. @param xml to de-serialize @return de-serialized object
[ "De", "-", "serializes", "XML", "into", "an", "object", "structure", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java#L105-L111
train
duracloud/duracloud
common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java
XmlSerializer.deserialize
public T deserialize(InputStream stream) { if (stream == null) { throw new RuntimeException("Stream cannot be null"); } else { return deserialize(new StreamSource(stream)); } }
java
public T deserialize(InputStream stream) { if (stream == null) { throw new RuntimeException("Stream cannot be null"); } else { return deserialize(new StreamSource(stream)); } }
[ "public", "T", "deserialize", "(", "InputStream", "stream", ")", "{", "if", "(", "stream", "==", "null", ")", "{", "throw", "new", "RuntimeException", "(", "\"Stream cannot be null\"", ")", ";", "}", "else", "{", "return", "deserialize", "(", "new", "StreamS...
De-serializes XML from an InputStream into an object structure. @param stream containing XML to de-serialize @return de-serialized object
[ "De", "-", "serializes", "XML", "from", "an", "InputStream", "into", "an", "object", "structure", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-xml/src/main/java/org/duracloud/common/xml/XmlSerializer.java#L119-L125
train
duracloud/duracloud
storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java
StorageProviderBase.getSpaceProperties
public Map<String, String> getSpaceProperties(String spaceId) { Map<String, String> spaceProps = new HashMap<String, String>(); Map<String, String> allProps = getAllSpaceProperties(spaceId); // ONLY include non-ACL properties. for (String name : allProps.keySet()) { if (!nam...
java
public Map<String, String> getSpaceProperties(String spaceId) { Map<String, String> spaceProps = new HashMap<String, String>(); Map<String, String> allProps = getAllSpaceProperties(spaceId); // ONLY include non-ACL properties. for (String name : allProps.keySet()) { if (!nam...
[ "public", "Map", "<", "String", ",", "String", ">", "getSpaceProperties", "(", "String", "spaceId", ")", "{", "Map", "<", "String", ",", "String", ">", "spaceProps", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "Map", "<", ...
This method returns all of the space properties EXCEPT the ACLs @param spaceId - ID of the space @return map of space properties
[ "This", "method", "returns", "all", "of", "the", "space", "properties", "EXCEPT", "the", "ACLs" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java#L55-L67
train
duracloud/duracloud
storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java
StorageProviderBase.setNewSpaceProperties
public void setNewSpaceProperties(String spaceId, Map<String, String> spaceProperties) { setNewSpaceProperties(spaceId, spaceProperties, getSpaceACLs(spaceId)); }
java
public void setNewSpaceProperties(String spaceId, Map<String, String> spaceProperties) { setNewSpaceProperties(spaceId, spaceProperties, getSpaceACLs(spaceId)); }
[ "public", "void", "setNewSpaceProperties", "(", "String", "spaceId", ",", "Map", "<", "String", ",", "String", ">", "spaceProperties", ")", "{", "setNewSpaceProperties", "(", "spaceId", ",", "spaceProperties", ",", "getSpaceACLs", "(", "spaceId", ")", ")", ";", ...
Sets the properties on this space. Maintains the current ACL settings. @param spaceId @param spaceProperties @link setNewSpaceProperties(spaceId, spaceProperties, spaceACLs)
[ "Sets", "the", "properties", "on", "this", "space", ".", "Maintains", "the", "current", "ACL", "settings", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java#L76-L79
train
duracloud/duracloud
storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java
StorageProviderBase.setNewSpaceProperties
public void setNewSpaceProperties(String spaceId, Map<String, String> spaceProperties, Map<String, AclType> spaceACLs) { // Add ACLs to the properties list spaceProperties.putAll(packACLs(spaceACLs)); boolean success = ...
java
public void setNewSpaceProperties(String spaceId, Map<String, String> spaceProperties, Map<String, AclType> spaceACLs) { // Add ACLs to the properties list spaceProperties.putAll(packACLs(spaceACLs)); boolean success = ...
[ "public", "void", "setNewSpaceProperties", "(", "String", "spaceId", ",", "Map", "<", "String", ",", "String", ">", "spaceProperties", ",", "Map", "<", "String", ",", "AclType", ">", "spaceACLs", ")", "{", "// Add ACLs to the properties list", "spaceProperties", "...
Sets the properties of this space. Note that this method is intentionally not exposed to users, as it is not meant to be used for user properties, but only for system-level properties. The names and values need to be kept short, and the overall number of properties needs to be tightly limited, or there will be issues d...
[ "Sets", "the", "properties", "of", "this", "space", ".", "Note", "that", "this", "method", "is", "intentionally", "not", "exposed", "to", "users", "as", "it", "is", "not", "meant", "to", "be", "used", "for", "user", "properties", "but", "only", "for", "s...
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java#L95-L117
train
duracloud/duracloud
storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java
StorageProviderBase.deleteSpaceSync
public void deleteSpaceSync(String spaceId) { log.debug("deleteSpaceSync(" + spaceId + ")"); throwIfSpaceNotExist(spaceId); Map<String, String> allProps = getAllSpaceProperties(spaceId); allProps.put("is-delete", "true"); doSetSpaceProperties(spaceId, allProps); SpaceDe...
java
public void deleteSpaceSync(String spaceId) { log.debug("deleteSpaceSync(" + spaceId + ")"); throwIfSpaceNotExist(spaceId); Map<String, String> allProps = getAllSpaceProperties(spaceId); allProps.put("is-delete", "true"); doSetSpaceProperties(spaceId, allProps); SpaceDe...
[ "public", "void", "deleteSpaceSync", "(", "String", "spaceId", ")", "{", "log", ".", "debug", "(", "\"deleteSpaceSync(\"", "+", "spaceId", "+", "\")\"", ")", ";", "throwIfSpaceNotExist", "(", "spaceId", ")", ";", "Map", "<", "String", ",", "String", ">", "...
This method is only intended to be used by tests! @param spaceId
[ "This", "method", "is", "only", "intended", "to", "be", "used", "by", "tests!" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/storageprovider/src/main/java/org/duracloud/storage/provider/StorageProviderBase.java#L315-L325
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/TaskRest.java
TaskRest.getSupportedTasks
@GET public Response getSupportedTasks(@QueryParam("storeID") String storeID) { String msg = "getting suppported tasks(" + storeID + ")"; try { TaskProvider taskProvider = taskProviderFactory.getTaskProvider(storeID); List<String> supportedTasks = taskProvide...
java
@GET public Response getSupportedTasks(@QueryParam("storeID") String storeID) { String msg = "getting suppported tasks(" + storeID + ")"; try { TaskProvider taskProvider = taskProviderFactory.getTaskProvider(storeID); List<String> supportedTasks = taskProvide...
[ "@", "GET", "public", "Response", "getSupportedTasks", "(", "@", "QueryParam", "(", "\"storeID\"", ")", "String", "storeID", ")", "{", "String", "msg", "=", "\"getting suppported tasks(\"", "+", "storeID", "+", "\")\"", ";", "try", "{", "TaskProvider", "taskProv...
Gets a listing of supported tasks for a given provider @return 200 on success
[ "Gets", "a", "listing", "of", "supported", "tasks", "for", "a", "given", "provider" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/TaskRest.java#L68-L83
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/TaskRest.java
TaskRest.performTask
@Path("/{taskName}") @POST public Response performTask(@PathParam("taskName") String taskName, @QueryParam("storeID") String storeID) { String msg = "performing task(" + taskName + ", " + storeID + ")"; String taskParameters = null; try { task...
java
@Path("/{taskName}") @POST public Response performTask(@PathParam("taskName") String taskName, @QueryParam("storeID") String storeID) { String msg = "performing task(" + taskName + ", " + storeID + ")"; String taskParameters = null; try { task...
[ "@", "Path", "(", "\"/{taskName}\"", ")", "@", "POST", "public", "Response", "performTask", "(", "@", "PathParam", "(", "\"taskName\"", ")", "String", "taskName", ",", "@", "QueryParam", "(", "\"storeID\"", ")", "String", "storeID", ")", "{", "String", "msg"...
Performs a task @return 200 on success
[ "Performs", "a", "task" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/TaskRest.java#L90-L121
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java
ContentResourceImpl.getContent
@Override public RetrievedContent getContent(String spaceID, String contentID, String storeID, String range) throws InvalidRequestException, ResourceException { try { Stor...
java
@Override public RetrievedContent getContent(String spaceID, String contentID, String storeID, String range) throws InvalidRequestException, ResourceException { try { Stor...
[ "@", "Override", "public", "RetrievedContent", "getContent", "(", "String", "spaceID", ",", "String", "contentID", ",", "String", "storeID", ",", "String", "range", ")", "throws", "InvalidRequestException", ",", "ResourceException", "{", "try", "{", "StorageProvider...
Retrieves content from a space. @param spaceID @param contentID @return InputStream which can be used to read content.
[ "Retrieves", "content", "from", "a", "space", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java#L56-L83
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java
ContentResourceImpl.getContentProperties
@Override public Map<String, String> getContentProperties(String spaceID, String contentID, String storeID) throws ResourceException { try { StorageProvider storage = s...
java
@Override public Map<String, String> getContentProperties(String spaceID, String contentID, String storeID) throws ResourceException { try { StorageProvider storage = s...
[ "@", "Override", "public", "Map", "<", "String", ",", "String", ">", "getContentProperties", "(", "String", "spaceID", ",", "String", "contentID", ",", "String", "storeID", ")", "throws", "ResourceException", "{", "try", "{", "StorageProvider", "storage", "=", ...
Retrieves the properties of a piece of content. @param spaceID @param contentID @return Map of content properties
[ "Retrieves", "the", "properties", "of", "a", "piece", "of", "content", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java#L92-L113
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java
ContentResourceImpl.updateContentProperties
@Override public void updateContentProperties(String spaceID, String contentID, String contentMimeType, Map<String, String> userProperties, String storeID) ...
java
@Override public void updateContentProperties(String spaceID, String contentID, String contentMimeType, Map<String, String> userProperties, String storeID) ...
[ "@", "Override", "public", "void", "updateContentProperties", "(", "String", "spaceID", ",", "String", "contentID", ",", "String", "contentMimeType", ",", "Map", "<", "String", ",", "String", ">", "userProperties", ",", "String", "storeID", ")", "throws", "Resou...
Updates the properties of a piece of content. @return success
[ "Updates", "the", "properties", "of", "a", "piece", "of", "content", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java#L120-L156
train
duracloud/duracloud
durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java
ContentResourceImpl.addContent
@Override public String addContent(String spaceID, String contentID, InputStream content, String contentMimeType, Map<String, String> userProperties, long contentSize, ...
java
@Override public String addContent(String spaceID, String contentID, InputStream content, String contentMimeType, Map<String, String> userProperties, long contentSize, ...
[ "@", "Override", "public", "String", "addContent", "(", "String", "spaceID", ",", "String", "contentID", ",", "InputStream", "content", ",", "String", "contentMimeType", ",", "Map", "<", "String", ",", "String", ">", "userProperties", ",", "long", "contentSize",...
Adds content to a space. @return the checksum of the content as computed by the storage provider
[ "Adds", "content", "to", "a", "space", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/durastore/src/main/java/org/duracloud/durastore/rest/ContentResourceImpl.java#L192-L256
train
duracloud/duracloud
common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java
NotificationManager.initializeNotifiers
public void initializeNotifiers(Collection<NotificationConfig> notificationConfigs) { for (NotificationConfig config : notificationConfigs) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().name().equalsIgnoreCase( config.getType())) {...
java
public void initializeNotifiers(Collection<NotificationConfig> notificationConfigs) { for (NotificationConfig config : notificationConfigs) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().name().equalsIgnoreCase( config.getType())) {...
[ "public", "void", "initializeNotifiers", "(", "Collection", "<", "NotificationConfig", ">", "notificationConfigs", ")", "{", "for", "(", "NotificationConfig", "config", ":", "notificationConfigs", ")", "{", "for", "(", "Notifier", "notifier", ":", "notifiers", ")", ...
Initializes notifiers using the provided configuration. It is expected that there will be exactly one config for each notifier type. - If there is more than one config for a given type, the last configuration of that type in the list will win. - If there is a type not represented in the config list, then all notifiers ...
[ "Initializes", "notifiers", "using", "the", "provided", "configuration", ".", "It", "is", "expected", "that", "there", "will", "be", "exactly", "one", "config", "for", "each", "notifier", "type", ".", "-", "If", "there", "is", "more", "than", "one", "config"...
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java#L38-L47
train
duracloud/duracloud
common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java
NotificationManager.sendNotification
public void sendNotification(NotificationType type, String subject, String message, String... destinations) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().equals(type))...
java
public void sendNotification(NotificationType type, String subject, String message, String... destinations) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().equals(type))...
[ "public", "void", "sendNotification", "(", "NotificationType", "type", ",", "String", "subject", ",", "String", "message", ",", "String", "...", "destinations", ")", "{", "for", "(", "Notifier", "notifier", ":", "notifiers", ")", "{", "if", "(", "notifier", ...
Sends a notification through all configured notifiers of a given type. @param type of notification to be sent @param subject of the notification @param message of the notification @param destinations where notification is to be sent
[ "Sends", "a", "notification", "through", "all", "configured", "notifiers", "of", "a", "given", "type", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java#L57-L66
train
duracloud/duracloud
common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java
NotificationManager.sendAdminNotification
public void sendAdminNotification(NotificationType type, String subject, String message) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().equals(type)) { notifier.notifyAdmins(s...
java
public void sendAdminNotification(NotificationType type, String subject, String message) { for (Notifier notifier : notifiers) { if (notifier.getNotificationType().equals(type)) { notifier.notifyAdmins(s...
[ "public", "void", "sendAdminNotification", "(", "NotificationType", "type", ",", "String", "subject", ",", "String", "message", ")", "{", "for", "(", "Notifier", "notifier", ":", "notifiers", ")", "{", "if", "(", "notifier", ".", "getNotificationType", "(", ")...
Sends a notification to system administrators through all configured notifiers of a given type. @param type of notification to be sent @param subject of the notification @param message of the notification
[ "Sends", "a", "notification", "to", "system", "administrators", "through", "all", "configured", "notifiers", "of", "a", "given", "type", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-notification/src/main/java/org/duracloud/common/notification/NotificationManager.java#L76-L84
train
duracloud/duracloud
s3storageprovider/src/main/java/org/duracloud/s3storage/StringDataStore.java
StringDataStore.storeData
public String storeData(String cookieData) { try { String token = generateToken(); ensureSpaceExists(); s3StorageProvider.addHiddenContent(this.hiddenSpaceName, token, Constants.MEDIA_TYPE_APPLICATION_JSON, IOUtil.writeStrin...
java
public String storeData(String cookieData) { try { String token = generateToken(); ensureSpaceExists(); s3StorageProvider.addHiddenContent(this.hiddenSpaceName, token, Constants.MEDIA_TYPE_APPLICATION_JSON, IOUtil.writeStrin...
[ "public", "String", "storeData", "(", "String", "cookieData", ")", "{", "try", "{", "String", "token", "=", "generateToken", "(", ")", ";", "ensureSpaceExists", "(", ")", ";", "s3StorageProvider", ".", "addHiddenContent", "(", "this", ".", "hiddenSpaceName", "...
Stores string data and returns a token by which that data can be retrieved @param cookieData serialized cookie data @return alphanumeric token value by which data can be retrieved
[ "Stores", "string", "data", "and", "returns", "a", "token", "by", "which", "that", "data", "can", "be", "retrieved" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/s3storageprovider/src/main/java/org/duracloud/s3storage/StringDataStore.java#L42-L52
train
duracloud/duracloud
s3storageprovider/src/main/java/org/duracloud/s3storage/StringDataStore.java
StringDataStore.retrieveData
public String retrieveData(String token) { try { RetrievedContent data = this.s3StorageProvider.getContent(this.hiddenSpaceName, token); return IOUtil.readStringFromStream(data.getContentStream()); } catch (NotFoundException ex) { return null; } catch (E...
java
public String retrieveData(String token) { try { RetrievedContent data = this.s3StorageProvider.getContent(this.hiddenSpaceName, token); return IOUtil.readStringFromStream(data.getContentStream()); } catch (NotFoundException ex) { return null; } catch (E...
[ "public", "String", "retrieveData", "(", "String", "token", ")", "{", "try", "{", "RetrievedContent", "data", "=", "this", ".", "s3StorageProvider", ".", "getContent", "(", "this", ".", "hiddenSpaceName", ",", "token", ")", ";", "return", "IOUtil", ".", "rea...
Retrieves string data given its token. If no data is associated with the provided token, returns null @param token @return
[ "Retrieves", "string", "data", "given", "its", "token", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/s3storageprovider/src/main/java/org/duracloud/s3storage/StringDataStore.java#L68-L77
train
duracloud/duracloud
retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalWorker.java
RetrievalWorker.retrieveToFile
protected Map<String, String> retrieveToFile(File localFile, RetrievalListener listener) throws IOException { try { contentStream = new Retrier(5, 4000, 3).execute(() -> { return source.getSourceContent(contentItem, listener); }); } catch (Exception ex) { ...
java
protected Map<String, String> retrieveToFile(File localFile, RetrievalListener listener) throws IOException { try { contentStream = new Retrier(5, 4000, 3).execute(() -> { return source.getSourceContent(contentItem, listener); }); } catch (Exception ex) { ...
[ "protected", "Map", "<", "String", ",", "String", ">", "retrieveToFile", "(", "File", "localFile", ",", "RetrievalListener", "listener", ")", "throws", "IOException", "{", "try", "{", "contentStream", "=", "new", "Retrier", "(", "5", ",", "4000", ",", "3", ...
Transfers the remote file stream to the local file @param localFile @param listener @return @throws IOException @returns the checksum of the File upon successful retrieval. Successful retrieval means the checksum of the local file and remote file match, otherwise an IOException is thrown.
[ "Transfers", "the", "remote", "file", "stream", "to", "the", "local", "file" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/retrievaltool/src/main/java/org/duracloud/retrieval/mgmt/RetrievalWorker.java#L233-L269
train
duracloud/duracloud
common-xml/src/main/java/org/duracloud/common/xml/SchemaGenerator.java
SchemaGenerator.generateSchema
public void generateSchema(Class... classes) throws JAXBException, IOException { if (!baseDir.exists()) { baseDir.mkdirs(); } JAXBContext context = JAXBContext.newInstance(classes); context.generateSchema(this); }
java
public void generateSchema(Class... classes) throws JAXBException, IOException { if (!baseDir.exists()) { baseDir.mkdirs(); } JAXBContext context = JAXBContext.newInstance(classes); context.generateSchema(this); }
[ "public", "void", "generateSchema", "(", "Class", "...", "classes", ")", "throws", "JAXBException", ",", "IOException", "{", "if", "(", "!", "baseDir", ".", "exists", "(", ")", ")", "{", "baseDir", ".", "mkdirs", "(", ")", ";", "}", "JAXBContext", "conte...
Generates an XML Schema which includes the given classes @param classes to include in the schema definition @throws JAXBException @throws IOException
[ "Generates", "an", "XML", "Schema", "which", "includes", "the", "given", "classes" ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-xml/src/main/java/org/duracloud/common/xml/SchemaGenerator.java#L61-L69
train
duracloud/duracloud
common-xml/src/main/java/org/duracloud/common/xml/SchemaGenerator.java
SchemaGenerator.createOutput
@Override public Result createOutput(String namespaceUri, String defaultFileName) throws IOException { if (null == fileName) { fileName = defaultFileName; } return new StreamResult(new File(baseDir, fileName)); }
java
@Override public Result createOutput(String namespaceUri, String defaultFileName) throws IOException { if (null == fileName) { fileName = defaultFileName; } return new StreamResult(new File(baseDir, fileName)); }
[ "@", "Override", "public", "Result", "createOutput", "(", "String", "namespaceUri", ",", "String", "defaultFileName", ")", "throws", "IOException", "{", "if", "(", "null", "==", "fileName", ")", "{", "fileName", "=", "defaultFileName", ";", "}", "return", "new...
Called by the schema generation process. There is no need to call this method directly.
[ "Called", "by", "the", "schema", "generation", "process", ".", "There", "is", "no", "need", "to", "call", "this", "method", "directly", "." ]
dc4f3a1716d43543cc3b2e1880605f9389849b66
https://github.com/duracloud/duracloud/blob/dc4f3a1716d43543cc3b2e1880605f9389849b66/common-xml/src/main/java/org/duracloud/common/xml/SchemaGenerator.java#L75-L82
train