<commit_before>{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Generic Instance",

  "Parameters": {
    "Environment": {
      "Type"                 : "String",
      "Default"              : "dev",
      "AllowedValues"        : [ "dev", "int", "prd" ]
    },
    "Ec2KeyName": {
      "Description"          : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
      "Type"                 : "AWS::EC2::KeyPair::KeyName",
      "ConstraintDescription": "must be the name of an existing EC2 KeyPair."
    },
    "VpcStack": {
      "Description"          : "VPC Stack Name",
      "Type"                 : "String"
    },
    "BastionAccess": {
      "Type": "String",
      "Default": "Yes",
      "AllowedValues": [ "Yes", "No" ]
    }
  },

  "Outputs": {
    "AMIID"             : { "Value": { "Fn::ImportValue": "DefaultAMI" }}
  },

  "Conditions": {
    "AddBastionAccess": {"Fn::Equals": [{ "Ref": "BastionAccess" }, "Yes" ]}
  },

  "Resources": {

    "SgServer": {
      "Type": "AWS::EC2::SecurityGroup",
      "Properties": {
        "VpcId": { "Fn::ImportValue": {"Fn::Join": [ ":", [ { "Ref": "VpcStack" }, "MyVpcId" ]] }},
        "GroupDescription": "Security Group for Generic Instance",
        "Tags": [
          { "Key": "env", "Value": { "Ref": "Environment" } }
        ],
        "SecurityGroupIngress": [
          {
            "IpProtocol": "icmp",
            "FromPort"  : "-1",
            "ToPort"    : "-1",
            "CidrIp"    : { "Fn::ImportValue": { "Fn::Sub": "${VpcStack}:MyVpcCidr" } }
          }
        ]
      }
    },

    "SgServerBastion": {<commit_msg>Added a Name tag for the server security group<commit_after>{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Generic Instance",

  "Parameters": {
    "Environment": {
      "Type"                 : "String",
      "Default"              : "dev",
      "AllowedValues"        : [ "dev", "int", "prd" ]
    },
    "Ec2KeyName": {
      "Description"          : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
      "Type"                 : "AWS::EC2::KeyPair::KeyName",
      "ConstraintDescription": "must be the name of an existing EC2 KeyPair."
    },
    "VpcStack": {
      "Description"          : "VPC Stack Name",
      "Type"                 : "String"
    },
    "BastionAccess": {
      "Type": "String",
      "Default": "Yes",
      "AllowedValues": [ "Yes", "No" ]
    }
  },

  "Outputs": {
    "AMIID"             : { "Value": { "Fn::ImportValue": "DefaultAMI" }}
  },

  "Conditions": {
    "AddBastionAccess": {"Fn::Equals": [{ "Ref": "BastionAccess" }, "Yes" ]}
  },

  "Resources": {

    "SgServer": {
      "Type": "AWS::EC2::SecurityGroup",
      "Properties": {
        "VpcId": { "Fn::ImportValue": {"Fn::Join": [ ":", [ { "Ref": "VpcStack" }, "MyVpcId" ]] }},
        "GroupDescription": "Security Group for Generic Instance",
        "Tags": [
          { "Key": "env", "Value": { "Ref": "Environment" } },
          { "Key": "Name", "Value": "Generic Instance SG" }
        ],
        "SecurityGroupIngress": [
          {
            "IpProtocol": "icmp",
            "FromPort"  : "-1",
            "ToPort"    : "-1",
            "CidrIp"    : { "Fn::ImportValue": { "Fn::Sub": "${VpcStack}:MyVpcCidr" } }
          }
        ]
      }
    },

    "SgServerBastion": {
{'fraction_non_alphanumeric': 0.19644970414201182, 'fraction_numerical': 0.008875739644970414, 'mean_word_length': 1.9374456993918332, 'pattern_counts': {'":': 76, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '7447747', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1123, 'n_words': 222}