5e7a5ee56847be985d62b4f07bdc7c3e587e09b2,tests/pos_tag/test_pos_tag.py,,load_input,#Any#,12
Before Change
def load_input(input_file):
with io.open(input_file, "r", encoding="utf-8") as f:
if sys.version_info >= (3, 0):
content = [text.split("\t")[0] for text in f.read().strip().split("\n")]
content = " ".join(content)
else:
content = [text.split("\t")[0] for text in f.read().strip().split("\n")]
content = u" ".join(content)
return content
def load_output(input_file):
with io.open(input_file, "r", encoding="utf-8") as f:
lines = [text.split("\t") for text in f.read().strip().split("\n")]
output = []
After Change
def load_input(input_file):
lines = read(input_file).strip().split("\n")
content = [line.split("\t")[0] for line in lines]
content = u" ".join(content)
return content
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: undertheseanlp/underthesea
Commit Name: 5e7a5ee56847be985d62b4f07bdc7c3e587e09b2
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name:
Method Name: load_input
Project Name: Rostlab/nalaf
Commit Name: d8ff24c9e49dd199c01e8e099420f2d5b170df7b
Time: 2015-05-28
Author: carsten.uhlig@gmail.com
File Name: source/test.py
Class Name:
Method Name:
Project Name: undertheseanlp/underthesea
Commit Name: 5e7a5ee56847be985d62b4f07bdc7c3e587e09b2
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name:
Method Name: load_output
Project Name: bokeh/bokeh
Commit Name: 947e3c02d66cb62192ee1ea5e4a71d47b3477b33
Time: 2015-12-19
Author: bryanv@continuum.io
File Name: examples/embed/widget.py
Class Name:
Method Name: