d12c8c97926da24615db097aef64ed6fd256f1e3,docs/conf.py,,,#,17

Before Change


// remove PyCharm’s old six module
if "six" in sys.modules:
    for pypath in list(sys.path):
        if "PyCharm" in pypath and "helpers" in pypath:
            sys.path.remove(pypath)
    del sys.modules["six"]

After Change


if "six" in sys.modules:
    print(*sys.path, sep="\n")
    for pypath in list(sys.path):
        if any(p in pypath for p in ["PyCharm", "pycharm"]) and "helpers" in pypath:
            sys.path.remove(pypath)
    del sys.modules["six"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: theislab/scanpy
Commit Name: d12c8c97926da24615db097aef64ed6fd256f1e3
Time: 2018-05-24
Author: flying-sheep@web.de
File Name: docs/conf.py
Class Name:
Method Name:


Project Name: facebookresearch/ParlAI
Commit Name: 509c52307f76b611c869a1eef8fc81a67722bd8d
Time: 2020-08-25
Author: EricMichaelSmith@users.noreply.github.com
File Name: tests/test_code.py
Class Name: TestInit
Method Name: test_init_everywhere


Project Name: ultralytics/yolov3
Commit Name: 20891926c9f721a338ff6183514819f2fa8077f6
Time: 2020-05-15
Author: glenn.jocher@ultralytics.com
File Name: models.py
Class Name:
Method Name: create_modules


Project Name: neuroailab/tnn
Commit Name: 107470a4febba4a7f8c87d18b9571b1ff23066f9
Time: 2018-07-31
Author: dbear9887@gmail.com
File Name: tutorials/customcell_example.py
Class Name:
Method Name: model_func