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


// 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",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: studioml/studio
Commit Name: 1147d0a4c7a196b9a5aadb445542518df2f2fa02
Time: 2017-09-30
Author: peter.zhokhov@sentient.ai
File Name: studio/local_worker.py
Class Name:
Method Name: worker_loop


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c2cd01e5245aa7f2d33dfc47794d578c62a5d81e
Time: 2015-09-21
Author: mateusz.blaszkowski@intel.com
File Name: perfkitbenchmarker/kubernetes/kubernetes_virtual_machine.py
Class Name: KubernetesVirtualMachine
Method Name: _CreateSecret