04f014b0d8c00ccc9553d9eadb968c66ccfb141b,nalaf/utils/readers.py,MutationFinderReader,read,#MutationFinderReader#,122
Before Change
for row in reader:
document = Document()
document.parts["abstract"] = Part(row[1])
dataset.documents[row[0]] = document
return dataset
After Change
document = Document()
if title:
document.parts["title"] = Part(title)
if abstract and abstract != "null":
document.parts["abstract"] = Part(abstract)
dataset.documents[docid] = document
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: Rostlab/nalaf
Commit Name: 04f014b0d8c00ccc9553d9eadb968c66ccfb141b
Time: 2016-04-11
Author: i@juanmi.rocks
File Name: nalaf/utils/readers.py
Class Name: MutationFinderReader
Method Name: read
Project Name: Rostlab/nalaf
Commit Name: fe41a42ff872debbc18f465f003a314f5ad19d29
Time: 2015-09-20
Author: carsten.uhlig@gmail.com
File Name: nala/utils/tagger.py
Class Name: TmVarTagger
Method Name: generate_abstracts
Project Name: Rostlab/nalaf
Commit Name: 39a53e54d563674e4faec8797558a1b68a47e8c2
Time: 2015-11-24
Author: aleksandar.bojchevski@gmail.com
File Name: nala/bootstrapping/utils.py
Class Name: DownloadArticle
Method Name: download