81c04ffd617a71ebc647d7bbde50de953ed6cadb,PyInstaller/utils/hooks/__init__.py,,collect_data_files,#,665

Before Change



    // Accept only strings as packages.
    if not isinstance(package, string_types):
        raise ValueError

    pkg_base, pkg_dir = get_package_paths(package)
    if subdir:
        pkg_dir = os.path.join(pkg_dir, subdir)

After Change



    // Accept only strings as packages.
    if not isinstance(package, string_types):
        raise TypeError("package must be a str")

    pkg_base, pkg_dir = get_package_paths(package)
    if subdir:
        pkg_dir = os.path.join(pkg_dir, subdir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 81c04ffd617a71ebc647d7bbde50de953ed6cadb
Time: 2020-05-14
Author: legorooj@protonmail.com
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name: collect_data_files


Project Name: pyinstaller/pyinstaller
Commit Name: 81c04ffd617a71ebc647d7bbde50de953ed6cadb
Time: 2020-05-14
Author: legorooj@protonmail.com
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name: collect_dynamic_libs


Project Name: pyinstaller/pyinstaller
Commit Name: 81c04ffd617a71ebc647d7bbde50de953ed6cadb
Time: 2020-05-14
Author: legorooj@protonmail.com
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name: collect_submodules


Project Name: pyinstaller/pyinstaller
Commit Name: 81c04ffd617a71ebc647d7bbde50de953ed6cadb
Time: 2020-05-14
Author: legorooj@protonmail.com
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name: collect_system_data_files


Project Name: pgmpy/pgmpy
Commit Name: 005cd59c9327b7376cd5140ea5f0435620964669
Time: 2015-11-17
Author: ankurankan@gmail.com
File Name: pgmpy/inference/Sampling.py
Class Name: BayesianModelSampling
Method Name: __init__


Project Name: mathurinm/celer
Commit Name: 535923e2b752ab44be4516b10947f02acfb44769
Time: 2018-04-18
Author: mathurin.massias@gmail.com
File Name: celer/wrapper.py
Class Name:
Method Name: celer