99c94d88c96c2b0a45bbbef4c8a126fa018ce513,bootstrap/build.py,,main,#Any#,11

Before Change


  for reg in conf["registries"]:
    if test_reg_name == reg["name"]:
      src_registry = os.path.join(test_reg_path, reg["path"])
      reg_path = os.path.join(tmp_dir, *os.path.join(reg["name"], reg["path"]).split("/")[:-1])
      if not os.path.exists(reg_path):
        os.makedirs(reg_path)
      print("cp -r %s %s" % (src_registry, reg_path))
      os.system("cp -r %s %s" % (src_registry, reg_path))
    else:
      reg_path = os.path.join(tmp_dir, reg["name"])

After Change



  for reg in conf["registries"]:
    if test_reg_name == reg["name"]:
      excludes = [".git*", ".idea", "vendor", "node_modules"]
      sync_cmd = "rsync -a %s %s %s" % (test_reg_path, os_tmp_dir, " ".join(["--exclude=" + term for term in excludes]))
      print(sync_cmd)
      os.system(sync_cmd)
    else:
      reg_path = os.path.join(os_tmp_dir, reg["name"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main


Project Name: markovmodel/PyEMMA
Commit Name: f0697e182f4ddb4bbbf853af9328ad61e4ecef02
Time: 2017-11-06
Author: m.scherer@fu-berlin.de
File Name: pyemma/_version.py
Class Name:
Method Name: git_pieces_from_vcs


Project Name: has2k1/plotnine
Commit Name: 76a3a0f60c1f837ed75e5783b49c241490920edd
Time: 2017-01-28
Author: has2k1@gmail.com
File Name: plotnine/_version.py
Class Name:
Method Name: git_pieces_from_vcs