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: 6

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: NifTK/NiftyNet
Commit Name: 0a3c1aa4d67cb9c49f22a87bef180c07dfafec8a
Time: 2017-06-16
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: aa495c2ace9444aa5028f699ae62dddef45ab7d9
Time: 2017-06-15
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name: