244940504e919a9f5c4e191f3d121ecebec00950,tests/word_sent/test_word_sent.py,,load_input,#Any#,10

Before Change




def load_input(input_file):
    with io.open(input_file, "r", encoding="utf-8") as f:
        text = f.read().split("\n")[0]

        if sys.version_info >= (3, 0):
            return text
        else:
            return text


def load_output(output_file):
    with io.open(output_file, "r", encoding="utf-8") as f:
        content = f.read().strip()
        return [text for text in content.split("\n")]

After Change




def load_input(input_file):
    text = read(input_file)
    text = text.split("\n")[0]
    return text


def load_output(output_file):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/word_sent/test_word_sent.py
Class Name:
Method Name: load_input


Project Name: undertheseanlp/underthesea
Commit Name: 80ee39154b951c2c50ae2067f560aad81510a13f
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/word_sent/test_word_sent.py
Class Name:
Method Name: load_input


Project Name: biotite-dev/biotite
Commit Name: eca4aa69416a6088b967cec35fd0d00a9bc8af89
Time: 2020-04-22
Author: patrick.kunzm@gmail.com
File Name: src/biotite/application/dssp/app.py
Class Name: DsspApp
Method Name: evaluate