820de79517aaed577f9af9131f5ec87cd432f04a,mltsp/tests/test_custom_feats.py,,teardown,#,132

Before Change


def teardown():
    Tear-down - remove tmp files
    if os.path.exists(tmp_dir_path):
        shutil.rmtree(tmp_dir_path, ignore_errors=True)
    assert(not os.path.exists(tmp_dir_path))

    for f in [os.path.join(cfg.MLTSP_PACKAGE_PATH,
                           "custom_feature_scripts/custom_feature_defs.py")]:

After Change


    cft.remove_tmp_files_and_container("test", "/tmp/mltsp_test")
    assert(not os.path.exists("/tmp/mltsp_test"))
    for tmp_file in [os.path.join(cfg.TMP_CUSTOM_FEATS_FOLDER,
                                  "custom_feature_defs.py"),
                     os.path.join(cfg.TMP_CUSTOM_FEATS_FOLDER,
                                  "custom_feature_defs.pyc"),
                     os.path.join(cfg.TMP_CUSTOM_FEATS_FOLDER,
                                  "__init__.pyc"),
                     os.path.join(os.path.join(cfg.PROJECT_PATH,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: cesium-ml/cesium
Commit Name: 820de79517aaed577f9af9131f5ec87cd432f04a
Time: 2015-02-06
Author: a.crellinquick@gmail.com
File Name: mltsp/tests/test_custom_feats.py
Class Name:
Method Name: teardown


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_tempdir_commandline


Project Name: interactiveaudiolab/nussl
Commit Name: c3b18953169bd26b27c0d4741a85bc186186de47
Time: 2020-03-13
Author: prem@u.northwestern.edu
File Name: recipes/wham/chimera.py
Class Name:
Method Name: