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

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: comic/grand-challenge.org
Commit Name: b96135c218065188be9dfe1fea1dff76b6f66e4f
Time: 2019-02-26
Author: code@jmsmkn.com
File Name: app/grandchallenge/container_exec/tasks.py
Class Name:
Method Name: validate_docker_image_async


Project Name: facebook/FAI-PEP
Commit Name: c68815a01e04ad21d0128b53235ab1bd915b6c6a
Time: 2018-09-07
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/ios/ios_platform.py
Class Name: IOSPlatform
Method Name: preprocess