<commit_before># Configure the OpenStack Provider
provider "openstack" {
    user_name   = "${var.OS_USERNAME}"
    tenant_name = "${var.OS_TENANT_NAME}"
    password    = "${<PASSWORD>}"
    auth_url    = "${var.OS_AUTH_URL}"
    insecure    = "true"
}

resource "openstack_networking_router_v2" "internet_gw" {
  region = ""
  name   = "InternetGW"
  external_gateway = "${var.OS_INTERNET_GATEWAY_ID}"
}

resource "openstack_networking_network_v2" "dmz" {
  name = "DMZ"
  admin_state_up = "true"
}

resource "openstack_networking_subnet_v2" "dmz_subnet" {
  name       = "dmz_network"
  network_id = "${openstack_networking_network_v2.dmz.id}"
  cidr       = "${var.DMZ_Subnet}"
  ip_version = 4
  enable_dhcp = "true"
  allocation_pools = { start = "${cidrhost(var.DMZ_Subnet, 50)}"
                       end = "${cidrhost(var.DMZ_Subnet, 200)}" } 
  dns_nameservers  = [ "8.8.8.8" ]
}

resource "openstack_networking_router_interface_v2" "gw_if_1" {
  region = ""
  router_id = "${openstack_networking_router_v2.internet_gw.id}"
  subnet_id = "${openstack_networking_subnet_v2.dmz_subnet.id}"
}

resource "openstack_compute_keypair_v2" "ssh-keypair" {
  name       = "terraform-keypair"
  public_key = "${file(var.public_key_file)}"
}



<commit_msg>Make the ssh keypair name unique<commit_after># Configure the OpenStack Provider
provider "openstack" {
    user_name   = "${var.OS_USERNAME}"
    tenant_name = "${var.OS_TENANT_NAME}"
    password    = <PASSWORD>}"
    auth_url    = "${var.OS_AUTH_URL}"
    insecure    = "true"
}

resource "openstack_networking_router_v2" "internet_gw" {
  region = ""
  name   = "InternetGW"
  external_gateway = "${var.OS_INTERNET_GATEWAY_ID}"
}

resource "openstack_networking_network_v2" "dmz" {
  name = "DMZ"
  admin_state_up = "true"
}

resource "openstack_networking_subnet_v2" "dmz_subnet" {
  name       = "dmz_network"
  network_id = "${openstack_networking_network_v2.dmz.id}"
  cidr       = "${var.DMZ_Subnet}"
  ip_version = 4
  enable_dhcp = "true"
  allocation_pools = { start = "${cidrhost(var.DMZ_Subnet, 50)}"
                       end = "${cidrhost(var.DMZ_Subnet, 200)}" } 
  dns_nameservers  = [ "8.8.8.8" ]
}

resource "openstack_networking_router_interface_v2" "gw_if_1" {
  region = ""
  router_id = "${openstack_networking_router_v2.internet_gw.id}"
  subnet_id = "${openstack_networking_subnet_v2.dmz_subnet.id}"
}

resource "openstack_compute_keypair_v2" "ssh-keypair" {
  name       = "terraform-${var.domain_name}"
  public_key = "${file(var.public_key_file)}"
}




{'fraction_non_alphanumeric': 0.13824340291453327, 'fraction_numerical': 0.014966522252855455, 'mean_word_length': 4.049701789264414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2412459', 'n_tokens_mistral': 1041, 'n_tokens_neox': 1014, 'n_words': 143}