<commit_before>resource "aws_internet_gateway" "main" {
  vpc_id = "${ aws_vpc.main.id }"

  tags {
    Name = "k8s"
    Cluster = "${ var.name }"
    builtWith = "terraform"
  }
}

resource "aws_subnet" "public" {
  count = "${ length( split(",", var.azs) ) }"

  availability_zone = "${ element( split(",", var.azs), count.index ) }"
  cidr_block = "10.0.${ count.index }.0/24"
  vpc_id = "${ aws_vpc.main.id }"

  tags {
    Name = "k8s"
    Cluster = "${ var.name }"
    builtWith = "terraform"
  }
}

/*resource "aws_route_table" "public" {
  vpc_id = "${ aws_vpc.main.id }"

  route {
    cidr_block = "0.0.0.0/0"
    gateway_id = "${ aws_internet_gateway.main.id }"
  }

  tags {
    Name = "k8s"
    Cluster = "${ var.name }"
  }
}*/

resource "aws_route" "public" {
  route_table_id = "${ aws_vpc.main.main_route_table_id }"
  destination_cidr_block = "0.0.0.0/0"
  gateway_id = "${ aws_internet_gateway.main.id }"
}

resource "aws_route_table_association" "public" {
  count = "${ length(split(",", var.azs)) }"

  route_table_id = "${ aws_vpc.main.main_route_table_id }"
  /*route_table_id = "${ aws_route_table.public.id }"*/
  subnet_id = "${ element(aws_subnet.public.*.id, count.index) }"
}<commit_msg>decruft<commit_after>resource "aws_internet_gateway" "main" {
  vpc_id = "${ aws_vpc.main.id }"

  tags {
    Name = "k8s"
    Cluster = "${ var.name }"
    builtWith = "terraform"
  }
}

resource "aws_subnet" "public" {
  count = "${ length( split(",", var.azs) ) }"

  availability_zone = "${ element( split(",", var.azs), count.index ) }"
  cidr_block = "10.0.${ count.index }.0/24"
  vpc_id = "${ aws_vpc.main.id }"

  tags {
    Name = "k8s"
    Cluster = "${ var.name }"
    builtWith = "terraform"
  }
}

resource "aws_route" "public" {
  route_table_id = "${ aws_vpc.main.main_route_table_id }"
  destination_cidr_block = "0.0.0.0/0"
  gateway_id = "${ aws_internet_gateway.main.id }"
}

resource "aws_route_table_association" "public" {
  count = "${ length(split(",", var.azs)) }"

  route_table_id = "${ aws_vpc.main.main_route_table_id }"
  /*route_table_id = "${ aws_route_table.public.id }"*/
  subnet_id = "${ element(aws_subnet.public.*.id, count.index) }"
}
{'fraction_non_alphanumeric': 0.1930625285257873, 'fraction_numerical': 0.01460520310360566, 'mean_word_length': 3.4462474645030428, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '5682235', 'n_tokens_mistral': 927, 'n_tokens_neox': 932, 'n_words': 133}