df68bb766c5dda92b9c48624700234393a49f3e1,unittests/fixtures.py,,generate_test_config,#Any#Any#,107
Before Change
def generate_test_config(filename, template="unittests/resources/settings_unittests.pyt", **kwargs):
if not "modules_system" in kwargs:
kwargs["nomod"] = "//"
kwargs["modules_system"] = "foo"
else:
kwargs["nomod"] = ""
with open(filename, "w") as fw, open(template) as fr:
fw.write(fr.read().format(**kwargs))
After Change
subst["modules_system"] = None
if not "logfile" in subst:
with tempfile.NamedTemporaryFile(delete=False, suffix=".log") as fp:
subst["logfile"] = fp.name
with open(filename, "w") as fw, open(template) as fr:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: eth-cscs/reframe
Commit Name: df68bb766c5dda92b9c48624700234393a49f3e1
Time: 2018-03-23
Author: karakasis@cscs.ch
File Name: unittests/fixtures.py
Class Name:
Method Name: generate_test_config
Project Name: probcomp/bayeslite
Commit Name: d82d33ff2716a3c97a9a8349e8e236ed35bd8a9e
Time: 2019-12-13
Author: fsaad@mit.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_json_ready_models
Project Name: sobhe/hazm
Commit Name: 44d3cc8e594304051b8fd20b9723a0c978068fe7
Time: 2013-12-26
Author: alireza.nournia@gmail.com
File Name: hazm/DependencyParser.py
Class Name: DependencyParser
Method Name: tagged_batch_parse