9ee9eeb16e93bdc0747ccb54b7ebc3ff74102a6e,tests/general/LicenseCheckBearTest.py,,load_testfile,#,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)
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: coala/coala-bears
Commit Name: 9ed72c4b11a2a1b6cbe8df775437d10b3757d3e9
Time: 2017-12-13
Author: anuyog1004@gmail.com
File Name: tests/yaml/TravisLintBearTest.py
Class Name:
Method Name: load_testfile
Project Name: coala/coala-bears
Commit Name: 8eae7195950d8ed02efee255b075ac44c8b8d29d
Time: 2017-11-01
Author: vaibhav.singh.14cse@bml.edu.in
File Name: tests/php/PHPMessDetectorBearTest.py
Class Name:
Method Name: load_testfile