ddfac3e42d2ae2e09751de6638d813c76e30ff94,tools/check_sdist.py,,,#,8

Before Change


base_dir = os.path.join(os.path.dirname(__file__), "..")
os.chdir(base_dir)

p = subprocess.Popen("python setup.py sdist".split(),
                     stdout=subprocess.PIPE)
out, err = p.communicate()

data = out.decode("utf-8").split("\n")
data = [l for l in data if l.startswith("hard linking")]
data = [l.replace("hard linking ", "") for l in data]

After Change


sdist_name = args.sdist_name[0]

with tarfile.open(sdist_name) as tar:
    members = tar.getmembers()

// The very first item contains the name of the archive
top_parent = Path(members[0].name)

filenames = ["./" + str(Path(m.name).relative_to(top_parent))
             for m in members[1:]]

ignore_exts = [".pyc", ".so", ".o", "//", "~", ".gitignore", ".o.d"]
ignore_dirs = ["./build", "./dist", "./tools", "./doc", "./viewer_examples",
               "./downloads", "./scikit_image.egg-info", "./benchmarks"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-image/scikit-image
Commit Name: ddfac3e42d2ae2e09751de6638d813c76e30ff94
Time: 2018-12-04
Author: mark.harfouche@gmail.com
File Name: tools/check_sdist.py
Class Name:
Method Name:


Project Name: idaholab/raven
Commit Name: 559e68fcac66c449772be2b21af92f502df70e5f
Time: 2019-11-07
Author: paul.talbot@inl.gov
File Name: scripts/TestHarness/testers/CrowPython.py
Class Name: CrowPython
Method Name: CrowPython_1


Project Name: mindsdb/mindsdb
Commit Name: d61cbc3fc1ef837677c5402b564a30671c9e140f
Time: 2020-12-23
Author: ilya@mindsdb.com
File Name: tests/integration_tests/flows/common.py
Class Name:
Method Name: stop_mindsdb