bb8ea10297a7e3b59ca05e10190f0ac566f70756,testing/prow_artifacts.py,,create_finished,#Any#,49

Before Change


      "metadata": {},
  }

  path = os.path.join(args.artifacts_dir, "finished.json")
  logging.info("Creating %s", path)
  with open(path, "w") as hf:
    json.dump(finished, hf)

def _get_pr_gcs_dir(bucket):
  Return the GCS directory for this PR.
  pull_number = os.getenv("PULL_NUMBER")

After Change


  Args:
    success: Bool indicating whether the workflow succeeded or not.
  
  if success:
    result = "SUCCESS"
  else:
    result = "FAILED"
  finished = {
      "timestamp": int(time.time()),
      "result": result,
      // Dictionary of extra key value pairs to display to the user.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: kubeflow/kubeflow
Commit Name: bb8ea10297a7e3b59ca05e10190f0ac566f70756
Time: 2018-01-09
Author: jeremy@lewi.us
File Name: testing/prow_artifacts.py
Class Name:
Method Name: create_finished


Project Name: openai/baselines
Commit Name: d9f194f797f406969f454ba7338c798c14cff01e
Time: 2017-08-27
Author: joschu@openai.com
File Name: baselines/ddpg/main.py
Class Name:
Method Name:


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ac3c876e2e93f56c68dab56b7d2e3dfc9761721d
Time: 2017-05-25
Author: valentina.zantedeschi@ibm.com
File Name: generate_adversarial.py
Class Name:
Method Name:


Project Name: automl/auto-sklearn
Commit Name: 838f3aa207070d7f8f02f529a5f45076e0caab66
Time: 2015-10-01
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/cli/base_interface.py
Class Name:
Method Name: make_mode_holdout