8fcd7448ea2c700246f3de3bbdd2b2cbca7a9cdf,testing/test_deploy.py,,setup_kubeflow_ks_app,#Any#Any#,90

Before Change


    ["ks", "registry", "add", "kubeflow", kubeflow_registry], cwd=app_dir)

  // Install required packages
  packages = ["kubeflow/core", "kubeflow/tf-serving", "kubeflow/tf-job"]

  for p in packages:
    util.run(["ks", "pkg", "install", p], cwd=app_dir)

After Change


    libraries[pkg] = {"gitVersion":{"commitSha": "fake", "refSpec": "fake"}, "name": pkg, "registry": "kubeflow"}
  app_yaml["libraries"] = libraries

  with open(app_file, "w") as f:
    yaml.dump(app_yaml, f)

  // Create vendor directory with a symlink to the src
  // so that we use the code at the desired commit.
  target_dir = os.path.join(app_dir, "vendor", "kubeflow")

  REPO_ORG = "kubeflow"
  REPO_NAME = "kubeflow"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kubeflow/kubeflow
Commit Name: 8fcd7448ea2c700246f3de3bbdd2b2cbca7a9cdf
Time: 2018-04-26
Author: jose5918@gmail.com
File Name: testing/test_deploy.py
Class Name:
Method Name: setup_kubeflow_ks_app


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 8dedfaea2f6f64dfe3b180e8f8d6746919b19c4e
Time: 2017-11-18
Author: julian@Julians-MacBook-Pro.local
File Name: examples/submit_batch_job.py
Class Name:
Method Name: copy_conf_file


Project Name: stellargraph/stellargraph
Commit Name: 45842d387c7a1c009a1345052805a191afd32198
Time: 2018-08-14
Author: docherty@gmail.com
File Name: demos/node-classification/epgm-yelp-example.py
Class Name:
Method Name: train