82b2fc33adba7be79b7ebce13a40fd1e1ebc210d,doc/ext/sphinx_gallery/backreferences.py,,identify_names,#Any#,85

Before Change


    e.HelloWorld HelloWorld d d
    
    finder = NameFinder()
    finder.visit(ast.parse(code))

    example_code_obj = {}
    for name, full_name in finder.get_mapping():
        // name is as written in file (e.g. np.asarray)

After Change


    e.HelloWorld HelloWorld d d
    
    finder = NameFinder()
    try:
        finder.visit(ast.parse(code))
    except SyntaxError:
        return {}

    example_code_obj = {}
    for name, full_name in finder.get_mapping():
        // name is as written in file (e.g. np.asarray)
        // full_name includes resolved import path (e.g. numpy.asarray)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scikit-image/scikit-image
Commit Name: 82b2fc33adba7be79b7ebce13a40fd1e1ebc210d
Time: 2016-12-21
Author: devel@sciunto.org
File Name: doc/ext/sphinx_gallery/backreferences.py
Class Name:
Method Name: identify_names


Project Name: nilearn/nilearn
Commit Name: 6ca9dd5367ebf7f74cde9c0dda941367f0cdae57
Time: 2017-08-22
Author: mperezguevara@gmail.com
File Name: doc/sphinxext/sphinx_gallery/backreferences.py
Class Name:
Method Name: identify_names


Project Name: nilearn/nilearn
Commit Name: 797679a547de3d5b21ad429e3a7590dfac468ed7
Time: 2016-12-18
Author: gael.varoquaux@normalesup.org
File Name: doc/sphinxext/sphinx_gallery/backreferences.py
Class Name:
Method Name: identify_names