9ee9eeb16e93bdc0747ccb54b7ebc3ff74102a6e,tests/general/LicenseCheckBearTest.py,,load_testfile,#Any#,17

Before Change




def load_testfile(name):
    return open(get_testfile_path(name)).readlines()


@generate_skip_decorator(LicenseCheckBear)
class LicenseCheckBearTest(LocalBearTestHelper):

After Change




def load_testfile(name):
    with open(get_testfile_path(name)) as f:
        output = f.readlines()
    return output


@generate_skip_decorator(LicenseCheckBear)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: coala/coala-bears
Commit Name: 9ee9eeb16e93bdc0747ccb54b7ebc3ff74102a6e
Time: 2017-05-04
Author: raghavjindal2003@gmail.com
File Name: tests/general/LicenseCheckBearTest.py
Class Name:
Method Name: load_testfile


Project Name: PyMVPA/PyMVPA
Commit Name: 8af9bd7ff42efa77d70690e7c374b321967209af
Time: 2014-02-25
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/tests/test_iohelpers.py
Class Name: IOHelperTests
Method Name: test_read_fsl_design


Project Name: uber/ludwig
Commit Name: 31ffa885dcbfd1fbc94b2004a3e3eac3b010e63f
Time: 2019-04-26
Author: piero@uber.com
File Name: ludwig/data/split_dataset.py
Class Name:
Method Name: split