05cddc81531e62b41f328a69d292b723aa8df6df,batchflow/tests/notebooks_test.py,,,#,8

Before Change


]

PARAMETERS = []
PARAMETERS += [(path, mb) for path in glob("./notebooks/*.ipynb")
               for mb in [None, 4]]
PARAMETERS += [(path, None) for path in glob("./../../examples/tutorials/*.ipynb")
               if path.split("/")[-1][:2] in ALLOWED_TUTORIALS]

After Change


NOTEBOOKS_DIR = "./notebooks/"
NOTEBOOKS = glob(NOTEBOOKS_DIR + "*.ipynb")

TUTORIALS_DIR = "./../../examples/tutorials/"
TUTORIALS = glob(TUTORIALS_DIR + "*.ipynb")
ALLOWED_TUTORIALS = [
    "01",
    "02",   // quite long
    // "03", // very long
    "04",
    "07",
    // "10", // requires multiprocess module
]

MICROBATCH_LIST = [None, 4]
DEVICE_LIST = [None, pytest.param("GPU:*", marks=NO_GPU)]

// Each parameter is (path, microbatch) configuration
PARAMETERS = []

// Run every notebook in test directory for every combination of microbatching
PARAMETERS += [(path, mb) for path in NOTEBOOKS
               for mb in MICROBATCH_LIST]

// Run selected notebooks inside tutorials dir without microbatching
PARAMETERS += [(path, None) for path in TUTORIALS
               if path.split("/")[-1][:2] in ALLOWED_TUTORIALS]

_ = [print(item) for item in PARAMETERS]


BAD_PREFIXES = ["get_ipython", "plt", "plot", "figure", "ax.",]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: analysiscenter/batchflow
Commit Name: 05cddc81531e62b41f328a69d292b723aa8df6df
Time: 2019-08-05
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/tests/notebooks_test.py
Class Name:
Method Name:


Project Name: mseitzer/pytorch-fid
Commit Name: 2313fbdad72507c0af7daaf43d1887fc95453762
Time: 2020-11-30
Author: 16725193+mseitzer@users.noreply.github.com
File Name: src/pytorch_fid/fid_score.py
Class Name:
Method Name: _compute_statistics_of_path


Project Name: rwth-i6/returnn-experiments
Commit Name: 7247571ab448f9ccf6b392a26df0b8b40b1085eb
Time: 2018-05-16
Author: zeyer@i6.informatik.rwth-aachen.de
File Name: 2018-asr-attention/librispeech/full-setup-attention/tools/collect-train-text.py
Class Name:
Method Name: