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.setup = yaml.load(Path("tests/data/config.yml").read_text(), Loader=yaml.FullLoader)
cls.RDN = RDN(arch_params=cls.setup["rdn"], patch_size=cls.setup["patch_size"])
cls.temp_data = Path("tests/temporary_test_data")
cls.valid_files = cls.temp_data / "valid_files"
cls.valid_files.mkdir(parents=True, exist_ok=True)
for item in ["data2.gif", "data1.png", "data0.jpeg"]:
(cls.valid_files / item).touch()
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"]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/data/utils.py
Class Name:
Method Name: mark_done