ec886e66bf675406caaa44c171b53fb5e089dc44,deploy/create_project.py,,add_project_generated_fields,#,563

Before Change


  project_id = config.project["project_id"]

  if _GENERATED_FIELDS_NAME in config.project:
    return

  config.project[_GENERATED_FIELDS_NAME] = {
      "project_number":
          utils.get_project_number(project_id),

After Change


    generated_fields = {}
    config.project[_GENERATED_FIELDS_NAME] = generated_fields

  if "project_number" not in generated_fields:
    generated_fields["project_number"] = utils.get_project_number(project_id)

  if "log_sink_service_account" not in generated_fields:
    generated_fields[
        "log_sink_service_account"] = utils.get_log_sink_service_account(
            _LOG_SINK_NAME, project_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/healthcare
Commit Name: ec886e66bf675406caaa44c171b53fb5e089dc44
Time: 2019-02-04
Author: noreply@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: add_project_generated_fields


Project Name: CamDavidsonPilon/lifelines
Commit Name: 66dba7f0a3a509e47325de4616a501eece53a1dc
Time: 2020-01-05
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/__init__.py
Class Name: ParametricRegressionFitter
Method Name: _filter_dataframe_to_covariates


Project Name: thoughtworksarts/EmoPy
Commit Name: 09f8d5539312770efbaa87eb6e0b9b150973abc7
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: riot_neuralnet/main.py
Class Name:
Method Name: prepare_training_data


Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features