8a43360b5683edc8d8e4b9461b01a9d1f8dcd782,deploy/create_project.py,,create_compute_images,#Any#,500

Before Change


  gce_instances = config.project.get("gce_instances")
  resources = config.project.get("resources", [])
  for resource in resources:
    gce_instance = resource.get("gce_instance")
    if gce_instance:
      gce_instances.append(gce_instance)

  if not gce_instances:

After Change


    config (ProjectConfig): config of the project.
  
  gce_instances = config.project.get("gce_instances", [])
  gce_instances.extend(
      config.project.get("resources", {}).get("gce_instances", []))
  if not gce_instances:
    logging.info("No GCS Images required.")
    return
  project_id = config.project["project_id"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 8a43360b5683edc8d8e4b9461b01a9d1f8dcd782
Time: 2019-05-21
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: create_compute_images


Project Name: MolSSI/QCEngine
Commit Name: 0f01823c82c0441ab8828ffd31e7b783914a47b6
Time: 2019-06-07
Author: lori.burns@gmail.com
File Name: qcengine/programs/mp2d.py
Class Name:
Method Name: mp2d_plant


Project Name: pantsbuild/pants
Commit Name: 9beb823cc0c29f7927ca959d8034cbc1af0a6ca4
Time: 2020-01-16
Author: ericarellano@me.com
File Name: src/python/pants/source/filespec.py
Class Name:
Method Name: any_matches_filespec


Project Name: Microsoft/nni
Commit Name: fb5ef932ca3b31f26d21e242b69235b36f0830d8
Time: 2020-02-14
Author: 656569648@qq.com
File Name: src/sdk/pynni/nni/compression/torch/compressor.py
Class Name: Compressor
Method Name: select_config