<commit_before>resource "aws_vpc" "main" {
    cidr_block = "10.0.0.0/16"
    enable_dns_support = true
    enable_dns_hostnames = true
    tags {
        Name = "main vpc"
    }
}

resource "aws_internet_gateway" "gw" {
    vpc_id = "${aws_vpc.main.id}"

    tags {
        Name = "main igw"
    }
}

resource "aws_route_table" "public" {
    vpc_id = "${aws_vpc.main.id}"
    route {
        cidr_block = "0.0.0.0/0"
        gateway_id = "${aws_internet_gateway.gw.id}"
    }

    tags {
        Name = "public"
    }
}

resource "aws_route_table" "privatea" {
    vpc_id = "${aws_vpc.main.id}"

    tags {
        Name = "private a"
    }
}

resource "aws_route_table" "privateb" {
    vpc_id = "${aws_vpc.main.id}"

    tags {
        Name = "private b"
    }
}

resource "aws_subnet" "publica" {
    vpc_id = "${aws_vpc.main.id}"
    cidr_block = "10.0.0.0/24"
    map_public_ip_on_launch = true
    availability_zone = "eu-west-1a"

    tags {
        Name = "eu-west-1a public"
    }
}

resource "aws_subnet" "publicb" {<commit_msg>Add default routes to terraform<commit_after>resource "aws_vpc" "main" {
    cidr_block = "10.0.0.0/16"
    enable_dns_support = true
    enable_dns_hostnames = true
    tags {
        Name = "main vpc"
    }
}

resource "aws_internet_gateway" "gw" {
    vpc_id = "${aws_vpc.main.id}"

    tags {
        Name = "main igw"
    }
}

resource "aws_route_table" "public" {
    vpc_id = "${aws_vpc.main.id}"
    route {
        cidr_block = "0.0.0.0/0"
        gateway_id = "${aws_internet_gateway.gw.id}"
    }

    tags {
        Name = "public"
    }
}

resource "aws_route_table" "privatea" {
    vpc_id = "${aws_vpc.main.id}"
    route { 
        cidr_block = "0.0.0.0/0"
        instance_id = "${aws_instance.nat-a.id}"
    }
    tags {
        Name = "private a"
    }
}

resource "aws_route_table" "privateb" {
    vpc_id = "${aws_vpc.main.id}"
    route {
        cidr_block = "0.0.0.0/0"
        instance_id = "${aws_instance.nat-b.id}"
    }
    tags {
        Name = "private b"
    }
}

resource "aws_subnet" "publica" {
    vpc_id = "${aws_vpc.main.id}"
    cidr_block = "10.0.0.0/24"
    map_public_ip_on_launch = true
    availability_zone = "eu-west-1a"

    tags {
        Name = "eu-west-1a public"
    }
}

resource "aws_subnet" "publicb" {
{'fraction_non_alphanumeric': 0.15076252723311548, 'fraction_numerical': 0.022657952069716776, 'mean_word_length': 2.1800554016620497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '3274829', 'n_tokens_mistral': 979, 'n_tokens_neox': 960, 'n_words': 156}