<commit_before>/*
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

#<!--* freshness: { owner: '<EMAIL>' reviewed: '2020-feb-01' } *-->



/******************************************
  Configure Isolated VPC network
 *****************************************/
resource "google_compute_network" "ivpc" {
  name                    = "ivpc"
  auto_create_subnetworks = "false"
  routing_mode            = "GLOBAL"
  project                 = "${google_project.ivpc.project_id}"

  depends_on = [
    # The project's services must be set up before the
    # network is enabled as the compute API will not
    # be enabled and cause the setup to fail.
    "google_project_services.ivpc",
  ]

  timeouts {
    create = "10m"
    delete = "10m"
  }
}

/******************************************
  Configure Isolated VPC subnetworks
 *****************************************/
resource "google_compute_subnetwork" "cluster" {
  name          = "node-cidr"
  ip_cidr_range = "${var.node_cidr}"
  project       = "${google_project.ivpc.project_id}"
  network       = "${google_compute_network.ivpc.self_link}"

  secondary_ip_range {
    range_name    = "pod-cidr"
    ip_cidr_range = "${var.pod_cidr}"
  }

  secondary_ip_range {
    range_name    = "service-cidr"
    ip_cidr_range = "${var.cluster_cidr}"
  }

  timeouts {
    create = "10m"
    delete = "10m"
  }
}

resource "google_compute_subnetwork" "on_prem" {
  name          = "simulated-on-prem"
  ip_cidr_range = "${var.on_prem_cidr}"
  project       = "${google_project.ivpc.project_id}"
  network       = "${google_compute_network.ivpc.self_link}"

  timeouts {
    create = "10m"
    delete = "10m"
  }
}


<commit_msg>Update networks_and_subnetworks.tf<commit_after>/*
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

#<!--* freshness: { owner: '<EMAIL>' reviewed: '2020-feb-01' } *-->



/******************************************
  Configure Isolated VPC network
 *****************************************/
resource "google_compute_network" "ivpc" {
  name                    = "ivpc"
  auto_create_subnetworks = "false"
  routing_mode            = "GLOBAL"
  project                 = "${google_project.ivpc.project_id}"

  depends_on = [
    # The project's services must be set up before the
    # network is enabled as the compute API will not
    # be enabled and cause the setup to fail.
    "google_project_service.ivpc_service_networking",
  ]

  timeouts {
    create = "10m"
    delete = "10m"
  }
}

/******************************************
  Configure Isolated VPC subnetworks
 *****************************************/
resource "google_compute_subnetwork" "cluster" {
  name          = "node-cidr"
  ip_cidr_range = "${var.node_cidr}"
  project       = "${google_project.ivpc.project_id}"
  network       = "${google_compute_network.ivpc.self_link}"

  secondary_ip_range {
    range_name    = "pod-cidr"
    ip_cidr_range = "${var.pod_cidr}"
  }

  secondary_ip_range {
    range_name    = "service-cidr"
    ip_cidr_range = "${var.cluster_cidr}"
  }

  timeouts {
    create = "10m"
    delete = "10m"
  }
}

resource "google_compute_subnetwork" "on_prem" {
  name          = "simulated-on-prem"
  ip_cidr_range = "${var.on_prem_cidr}"
  project       = "${google_project.ivpc.project_id}"
  network       = "${google_compute_network.ivpc.self_link}"

  timeouts {
    create = "10m"
    delete = "10m"
  }
}



{'fraction_non_alphanumeric': 0.1711752671061605, 'fraction_numerical': 0.011820868379177086, 'mean_word_length': 3.369414101290963, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4872679', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1343, 'n_words': 365}