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

Before Change



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]
data = ["./" + l.split(" ->")[0] for l in data]

ignore_exts = [".pyc", ".so", ".o", "//", "~", ".gitignore", ".o.d"]
ignore_dirs = ["./build", "./dist", "./tools", "./doc", "./viewer_examples",

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: 4

Non-data size: 6

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: sassoftware/python-dlpy
Commit Name: 81212e841322442c03e3b3df80ab4db3e7aecfb9
Time: 2019-05-31
Author: docair@v64-docair-09.dept-ter.sashq-d.openstack.sas.com
File Name: dlpy/model_conversion/write_keras_model_parm.py
Class Name:
Method Name: write_keras_hdf5


Project Name: timvieira/arsenal
Commit Name: 1664abf08a28bd064e7ab0a020ad9e4db6b9df6e
Time: 2010-08-30
Author: none@none
File Name: pdfminer/cmapdb.py
Class Name: CMapDB
Method Name: get_unicode_map


Project Name: sassoftware/python-dlpy
Commit Name: 4cf94b4f157424e41be9cd4f45a9d0b3cf1bbfe5
Time: 2018-10-25
Author: Ethem.Can@sas.com
File Name: dlpy/layers.py
Class Name:
Method Name: _unpack_config