3e84d5c116b50185d5c04029fa9bc1295a9dcbbf,PyInstaller/hooks/rthooks/pyi_rth_pkgres.py,PyiFrozenProvider,embedded_tree,#PyiFrozenProvider#,100

Before Change


            // name (to reconstruct subpackage directories)
            data_files = []
            package_dirs = []
            for entry in self.loader.toc:
                entry_path = pathlib.PurePath(entry)
                if rel_pkg_path in entry_path.parents:
                    // Data file path
                    data_files.append(entry_path)
                elif entry.startswith(pkg_name) and self.loader.is_package(entry):
                    // Package or subpackage; convert the name to directory path
                    package_dir = pathlib.PurePath(*entry.split("."))
                    package_dirs.append(package_dir)

            // Reconstruct the filesystem
            self._embedded_tree = _TocFilesystem(data_files, package_dirs)
        return self._embedded_tree

    def _normalize_path(self, path):

After Change


            pkg_name = ".".join(rel_pkg_path.parts)

            // Initialize and cache the tree, if necessary
            if pkg_name not in _toc_tree_cache:
                _toc_tree_cache[pkg_name] = \
                    self._init_embedded_tree(rel_pkg_path, pkg_name)
            self._embedded_tree = _toc_tree_cache[pkg_name]
        return self._embedded_tree

    def _normalize_path(self, path):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 3e84d5c116b50185d5c04029fa9bc1295a9dcbbf
Time: 2021-03-23
Author: rok.mandeljc@gmail.com
File Name: PyInstaller/hooks/rthooks/pyi_rth_pkgres.py
Class Name: PyiFrozenProvider
Method Name: embedded_tree


Project Name: bokeh/bokeh
Commit Name: c3534b1a8a5de16cc797c2b4d239059322c766db
Time: 2016-01-09
Author: bryanv@continuum.io
File Name: bokeh/application/handlers/notebook.py
Class Name: NotebookHandler
Method Name: __init__


Project Name: snipsco/snips-nlu
Commit Name: 5cb31b24772202d34175b7c7f42c6b1792dd6dd4
Time: 2017-03-31
Author: adrien.ball@snips.net
File Name: snips_nlu/preprocessing.py
Class Name:
Method Name: language_stems