7a70cd41ed1099ea03697939f398528231b48908,tests/test_featureset.py,,tearDown,#,56

Before Change


        if exists(filepath):
            os.unlink(filepath)
    os.unlink(join(_my_dir, "other", "string_ids_df.jsonlines"))
    os.unlink(join(_my_dir, "other", "string_ids.jsonlines"))


def _create_empty_file(filetype):
    filepath = join(_my_dir, "other", "empty.{}".format(filetype))

After Change


            os.unlink(filepath)

    filepaths = [join(_my_dir, "other", "{}.jsonlines".format(x)) for x in ["test_string_ids", "test_string_ids_df"]]
    for filepath in filepaths:
        if exists(filepath):
            os.unlink(filepath)


def _create_empty_file(filetype):
    filepath = join(_my_dir, "other", "empty.{}".format(filetype))
    with open(filepath, "w"):
        pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: EducationalTestingService/skll
Commit Name: 7a70cd41ed1099ea03697939f398528231b48908
Time: 2018-12-04
Author: nmadnani@ets.org
File Name: tests/test_featureset.py
Class Name:
Method Name: tearDown


Project Name: pantsbuild/pants
Commit Name: fd1456ac36e0a1ebfb800c9593f1540858ca7bea
Time: 2015-07-17
Author: kwilson@twopensource.com
File Name: src/python/pants/backend/core/tasks/reporting_server.py
Class Name: KillServer
Method Name: execute


Project Name: explosion/thinc
Commit Name: 7ee43f4346812c46b8df43c8cdf7a3016958949c
Time: 2020-01-15
Author: ines@ines.io
File Name: setup.py
Class Name:
Method Name: clean