09a68eb00215859005835514a5d04b01f936ed1d,PyInstaller/depend/analysis.py,PyiModuleGraph,nodes_to_toc,#PyiModuleGraph#,595

Before Change


        result = existing_TOC or TOC()
        for node in node_list:
            mg_type = type(node).__name__
            toc_type = MODULE_TYPES_TO_TOC_DICT[mg_type]
            if mg_type == "Script" :
                (name, ext) = os.path.splitext(node.filename)
                name = os.path.basename(name)
            else:
                name = node.identifier
            path = node.filename if node.filename is not None else ""
            result.append( (name, path, toc_type) )
        return result

    // Return true if the named item is in the graph as a BuiltinModule node.
    // The passed name is a basename.

After Change


        
        result = existing_TOC or TOC()
        for node in node_list:
            result.append(self._node_to_toc(node))
        return result

    // Return true if the named item is in the graph as a BuiltinModule node.
    // The passed name is a basename.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 09a68eb00215859005835514a5d04b01f936ed1d
Time: 2020-10-18
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: PyiModuleGraph
Method Name: nodes_to_toc


Project Name: HyperGAN/HyperGAN
Commit Name: 0389fda574d618ec22b488208a1d597a18d7ce72
Time: 2020-12-24
Author: martyn@255bits.com
File Name: examples/next-frame.py
Class Name: NextFrameGAN
Method Name: forward_pass


Project Name: pyinstaller/pyinstaller
Commit Name: 09a68eb00215859005835514a5d04b01f936ed1d
Time: 2020-10-18
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: PyiModuleGraph
Method Name: _make_toc