8a43360b5683edc8d8e4b9461b01a9d1f8dcd782,deploy/create_project.py,,create_compute_images,#,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:
    logging.info("No GCS Images required.")
    return
  project_id = config.project["project_id"]

After Change


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

Frequency: 3

Non-data size: 3

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: geometalab/OSMDeepOD
Commit Name: 285dc85691241532cd976e04a089f409e44d7493
Time: 2016-08-12
Author: samuel.kurath@gmail.com
File Name: src/detection/tensor/detector.py
Class Name: Detector
Method Name: detect_multiple


Project Name: jazzband/django-debug-toolbar
Commit Name: ad110e020cbae062ba024d91223df519af3adc96
Time: 2011-07-12
Author: dcramer@gmail.com
File Name: debug_toolbar/panels/template.py
Class Name: TemplateDebugPanel
Method Name: content