<commit_before>
resource "aws_vpc" "devops_vpc" {
  cidr_block = "10.0.0.0/16"
  enable_dns_support = true
  enable_dns_hostnames = true
}

resource "aws_subnet" "devops_subnet" {
  cidr_block = "${aws_vpc.devops_vpc.cidr_block}"
  map_public_ip_on_launch = "true"
  vpc_id = "${aws_vpc.devops_vpc.id}"
}

resource "aws_default_security_group" "default" {
  vpc_id = "${aws_vpc.devops_vpc.id}"
}

resource "aws_security_group" "devops_security" {
  name = "devops_security"
  description = "DevOps Masterclass port openings"
  vpc_id = "${aws_vpc.devops_vpc.id}"

  #
  # common ports
  #

  ingress {
    from_port = 80
    to_port = 80
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }
  ingress {
    from_port = 22
    to_port = 22
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }
  ingress {
    from_port = 443
    to_port = 443
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  #
  # students
  #

  ingress {
    from_port = 8001
    to_port = 8099
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  #
  # rancher
  #

  ingress {
    from_port = 8700
    to_port = 8700
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }
<commit_msg>enable jenkins direct access over ip and 8800 port<commit_after>
resource "aws_vpc" "devops_vpc" {
  cidr_block = "10.0.0.0/16"
  enable_dns_support = true
  enable_dns_hostnames = true
}

resource "aws_subnet" "devops_subnet" {
  cidr_block = "${aws_vpc.devops_vpc.cidr_block}"
  map_public_ip_on_launch = "true"
  vpc_id = "${aws_vpc.devops_vpc.id}"
}

resource "aws_default_security_group" "default" {
  vpc_id = "${aws_vpc.devops_vpc.id}"
}

resource "aws_security_group" "devops_security" {
  name = "devops_security"
  description = "DevOps Masterclass port openings"
  vpc_id = "${aws_vpc.devops_vpc.id}"

  #
  # common ports
  #

  ingress {
    from_port = 80
    to_port = 80
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }
  ingress {
    from_port = 22
    to_port = 22
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }
  ingress {
    from_port = 443
    to_port = 443
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  #
  # students
  #

  ingress {
    from_port = 8001
    to_port = 8099
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  #
  # jenkins
  #

  ingress {
    from_port = 8800
    to_port = 8800
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  #
  # rancher
  #

  ingress {
    from_port = 8700
    to_port = 8700
    protocol = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

{'fraction_non_alphanumeric': 0.13783570300157977, 'fraction_numerical': 0.05568720379146919, 'mean_word_length': 2.6185714285714288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 13, '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': '321475', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1119, 'n_words': 188}