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

Before Change


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

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: undertheseanlp/underthesea
Commit Name: 80ee39154b951c2c50ae2067f560aad81510a13f
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name:
Method Name: load_input


Project Name: openml/openml-python
Commit Name: 4257c4824d2ac9c8c0978b2696d77a68783dc2eb
Time: 2019-05-28
Author: neeratyoy@gmail.com
File Name: openml/tasks/split.py
Class Name: OpenMLSplit
Method Name: _from_arff_file