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

Before Change


            pass

        with patch("os.listdir", side_effect=fake_folders):
            with patch("os.mkdir", return_value=True):
                cls.predictor = Predictor(input_dir="dataname", output_dir="out_dir")
                cls.predictor.logger = Mock(return_value=True)

    @classmethod
    def tearDownClass(cls):
        pass

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: rlworkgroup/garage
Commit Name: 421e5bf2040da4338bd6b2e49d58f29bd91fdcf3
Time: 2020-08-04
Author: ahtsans@gmail.com
File Name: tests/garage/tf/q_functions/test_discrete_cnn_q_function.py
Class Name: TestDiscreteCNNQFunction
Method Name: test_clone


Project Name: mlflow/mlflow
Commit Name: 06e9433720845ab9f12e7ea0d8a8982123f093c6
Time: 2020-12-18
Author: 39497902+dbczumar@users.noreply.github.com
File Name: tests/tracking/fluent/test_fluent_autolog.py
Class Name:
Method Name: test_universal_autolog_calls_specific_autologs_correctly