<commit_before>provider "aws" {
  region = "us-east-1"
}

variable "vpc" {
  type = "string"
}

variable "subnet" {
  type = "string"
}

variable "ami" {
  type = "map"
  default = {
    "397713163394" = "ami-0b33d91d"
    "999999999999" = "ami-b63769a1"
  }
}

data "aws_caller_identity" "current" {}

resource "aws_instance" "webserver" {
  ami = "${lookup(var.ami, data.aws_caller_identity.current.account_id)}"
  instance_type = "t2.micro"
  key_name = "crafting-clouds"
  subnet_id = "${var.subnet}"
  security_groups = [
    "${aws_security_group.all_http.id}"]
}

resource "aws_security_group" "all_http" {
  description = "Static public WebServer"
  vpc_id = "${var.vpc}"
  ingress {
    from_port = 80
    to_port = 80
    protocol = "tcp"
    cidr_blocks = [
      "0.0.0.0/0"]
  }
}<commit_msg>fmt tf files<commit_after>provider "aws" {
  region = "us-east-1"
}

variable "vpc" {
  type = "string"
}

variable "subnet" {
  type = "string"
}

variable "ami" {
  type = "map"

  default = {
    "397713163394" = "ami-0b33d91d"
    "999999999999" = "ami-b63769a1"
  }
}

data "aws_caller_identity" "current" {}

resource "aws_instance" "webserver" {
  ami           = "${lookup(var.ami, data.aws_caller_identity.current.account_id)}"
  instance_type = "t2.micro"
  key_name      = "crafting-clouds"
  subnet_id     = "${var.subnet}"

  security_groups = [
    "${aws_security_group.all_http.id}",
  ]
}

resource "aws_security_group" "all_http" {
  description = "Static public WebServer"
  vpc_id      = "${var.vpc}"

  ingress {
    from_port = 80
    to_port   = 80
    protocol  = "tcp"

    cidr_blocks = [
      "0.0.0.0/0",
    ]
  }
}
{'fraction_non_alphanumeric': 0.15878787878787878, 'fraction_numerical': 0.055757575757575756, 'mean_word_length': 3.1069651741293534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 2, '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': '6555222', 'n_tokens_mistral': 734, 'n_tokens_neox': 676, 'n_words': 114}