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

Before Change


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

Frequency: 3

Non-data size: 7

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: mil-tokyo/webdnn
Commit Name: 959372edab3020c0164b8a2da4aaff1c49ba8400
Time: 2017-07-02
Author: y.kikura@gmail.com
File Name: example/resnet/convert_resnet_keras.py
Class Name:
Method Name: main


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: b58d873bc4344117bf8a2b42651e9acb5aeddb4e
Time: 2018-01-22
Author: chek.o@outlook.com
File Name: predict.py
Class Name:
Method Name: main