99c94d88c96c2b0a45bbbef4c8a126fa018ce513,bootstrap/build.py,,main,#,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


    shutil.rmtree(tmp_dir)
  os.mkdir(tmp_dir)

  os_tmp_dir = tempfile.mkdtemp()
  print("Using tmp dir: " + os_tmp_dir)

  with open(os.path.join(FILE_PATH, args.config), "r") as conf_input:
    conf = yaml.load(conf_input)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: Ghadjeres/DeepBach
Commit Name: a3f4dd7af0bfbe300445cb0f43b609c25aae5557
Time: 2017-07-13
Author: bohumir.zamecnik@gmail.com
File Name: deepBach.py
Class Name:
Method Name: main


Project Name: Ghadjeres/DeepBach
Commit Name: a3f4dd7af0bfbe300445cb0f43b609c25aae5557
Time: 2017-07-13
Author: bohumir.zamecnik@gmail.com
File Name: data_utils.py
Class Name:
Method Name: initialization