19a39999ccdb247f01909c2848b381d391ef621b,tests/predict/test_predict.py,PredictorClassTest,setUpClass,#Any#,14

Before Change


    @classmethod
    def setUpClass(cls):
        logging.disable(logging.CRITICAL)
        cls.setup = yaml.load(open(os.path.join("tests", "data", "config.yml"), "r"))
        cls.RDN = RDN(arch_params=cls.setup["rdn"], patch_size=cls.setup["patch_size"])

        def fake_folders(kind):

After Change



        cls.invalid_files = cls.temp_data / "invalid_files"
        cls.invalid_files.mkdir(parents=True, exist_ok=True)
        for item in ["data2.gif", "data.data", "data02"]:
            (cls.invalid_files / item).touch()

        def nullifier(*args):
            pass

        cls.predictor = Predictor(input_dir=str(cls.valid_files), output_dir="out_dir")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: idealo/image-super-resolution
Commit Name: 19a39999ccdb247f01909c2848b381d391ef621b
Time: 2019-04-02
Author: testadicardi@gmail.com
File Name: tests/predict/test_predict.py
Class Name: PredictorClassTest
Method Name: setUpClass


Project Name: pantsbuild/pants
Commit Name: cb5c9497e19c8f04a89497f3bbcde7c5cf10a433
Time: 2020-01-09
Author: ericarellano@me.com
File Name: src/python/pants/option/arg_splitter_test.py
Class Name: ArgSplitterTest
Method Name: test_is_spec


Project Name: pantsbuild/pants
Commit Name: e7b9ce76c065eb9ba46791fbef67a4961150dd2c
Time: 2015-05-18
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/java/distribution/test_distribution.py
Class Name: MockDistributionTest
Method Name: distribution