740c3a6c3db0da51834ecca1f5b97ddf1f75dbbb,conf.py,,,#,32

Before Change


    "examples_dirs": ["beginner_source", "intermediate_source",
                      "advanced_source", "recipes_source"],
    "gallery_dirs": ["beginner", "intermediate", "advanced", "recipes"],
    "filename_pattern": os.environ.get("GALLERY_PATTERN", r"tutorial.py"),
    "backreferences_dir": False
}

After Change


    "backreferences_dir": False
}

if os.getenv("GALLERY_PATTERN"):
    // GALLERY_PATTERN is to be used when you want to work on a single
    // tutorial.  Previously this was fed into filename_pattern, but
    // if you do that, you still end up parsing all of the other Python
    // files which takes a few seconds.  This strategy is better, as
    // ignore_pattern also skips parsing.
    // See https://github.com/sphinx-gallery/sphinx-gallery/issues/721
    // for a more detailed description of the issue.
    sphinx_gallery_conf["ignore_pattern"] = r"/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$"

for i in range(len(sphinx_gallery_conf["examples_dirs"])):
    gallery_dir = sphinx_gallery_conf["gallery_dirs"][i]
    source_dir = sphinx_gallery_conf["examples_dirs"][i]
    // Create gallery dirs if it doesn"t exist
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pytorch/tutorials
Commit Name: 740c3a6c3db0da51834ecca1f5b97ddf1f75dbbb
Time: 2020-06-29
Author: ezyang@fb.com
File Name: conf.py
Class Name:
Method Name:


Project Name: gboeing/osmnx
Commit Name: b40bcce86a4eddb8a98bda208bec36cddad702ee
Time: 2019-12-03
Author: g.boeing@northeastern.edu
File Name: setup.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: ffeeee1160732d37acf02060b3fc9b3c76753823
Time: 2011-11-29
Author: h.goebel@goebel-consult.de
File Name: PyInstaller/hooks/django-import-finder.py
Class Name:
Method Name: