<commit_before>{
    "AWSTemplateFormatVersion": "2010-09-09", 
    "Description": "<%= @description %>",
    "Parameters": {
        "AvailabilityZone": {
            "Default": "us-east-1a", 
            "Description": "Availability zone of the instances/volumes", 
            "Type": "String"
        }, 
        "InstanceType": {
            "AllowedValues": [
                "t1.micro", 
                "m1.small", 
                "m3.medium", 
                "m3.large", 
                "m3.xlarge", 
                "m3.2xlarge", 
                "c3.large", 
                "c3.xlarge", 
                "c3.2xlarge", 
                "c3.4xlarge", 
                "c3.8xlarge", 
                "r3.large", 
                "r3.xlarge", 
                "r3.2xlarge", 
                "r3.4xlarge", 
                "r3.8xlarge", 
                "g2.2xlarge", 
                "i2.xlarge", 
                "i2.2xlarge", 
                "i2.4xlarge", 
                "i2.8xlarge", 
                "hs1.8xlarge"
            ], 
            "ConstraintDescription": "must contain only alphanumeric characters.", 
            "Default": "m3.large", 
            "Description": "Type of EC2 instance for web server", 
            "Type": "String"
        }, 
        "KeyName": {
            "Description": "Name of an existing EC2 KeyPair to enable SSH access to the web server", 
            "Type": "String"
        }, 
        "RecipeURL": {
            "Description": "The location of the recipe tarball", 
            "Type": "String"
        }, 
        "SnapshotId": {
            "Default": "", 
            "Description": "An existing snapshot to initialize storage with (use for data recovery)", 
            "Type": "String"
        }, 
        "Debug": {
            "Default": "", 
            "Description": "If not empty, turn on debugging (and increase timeout to max values)", 
            "Type": "String"
        }, 
        "ZoneName": {
            "Description": "The hosted zone used for DNS updates (this must be created manually)", 
            "Type": "String"
        }
    }, 
    "Conditions": {
        "CreateFromSnapshot": {
            "Fn::Not" : [{ "Fn::Equals": [ { "Ref": "SnapshotId" }, "" ] }]
        },
        "Debug": {
            "Fn::Not" : [{ "Fn::Equals": [ { "Ref": "Debug" }, "" ] }]
        }
    },
    "Resources": {
        "HostKeys": {
            "Type": "AWS::IAM::AccessKey",
            "Properties": {
                "UserName": { "Ref": "DevOpsServerUser" }
            }
        },
        "DevOpsServerSecurityGroup": {
            "Type" : "AWS::EC2::SecurityGroup",
            "Properties" :
            {
                "GroupDescription" : "<%= @description %>", 
                "SecurityGroupIngress" : [
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "22",
                        "ToPort" : "22",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "80",
                        "ToPort" : "80",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "443",
                        "ToPort" : "443",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "7999",
                        "ToPort" : "7999",
                        "CidrIp" : "0.0.0.0/0"
                    }
                ]
            }
        },
        "DevOpsServer": {
            "Type": "AWS::EC2::Instance",
            "Metadata": {
                "AWS::CloudFormation::Init": {
                    "config": {
                        "files": {
                            "/etc/chef/node.json": {
                                "content": { "Fn::Join": [ "\n", [
                                    "{", 
                                    "  \"apache\": {", 
                                    "    \"listen_ports\": [", 
                                    "      \"80\",", 
                                    "      \"8081\"", 
                                    "    ],", 
                                    "    \"version\": \"2.4\"", 
                                    "  },", 
                                    "  \"java\": {", 
                                    "    \"jdk_version\": \"7\"", 
                                    "  },", 
                                    "  \"jenkins\": {", 
                                    "    \"master\": {", <commit_msg>No need to listen on 8081<commit_after>{
    "AWSTemplateFormatVersion": "2010-09-09", 
    "Description": "<%= @description %>",
    "Parameters": {
        "AvailabilityZone": {
            "Default": "us-east-1a", 
            "Description": "Availability zone of the instances/volumes", 
            "Type": "String"
        }, 
        "InstanceType": {
            "AllowedValues": [
                "t1.micro", 
                "m1.small", 
                "m3.medium", 
                "m3.large", 
                "m3.xlarge", 
                "m3.2xlarge", 
                "c3.large", 
                "c3.xlarge", 
                "c3.2xlarge", 
                "c3.4xlarge", 
                "c3.8xlarge", 
                "r3.large", 
                "r3.xlarge", 
                "r3.2xlarge", 
                "r3.4xlarge", 
                "r3.8xlarge", 
                "g2.2xlarge", 
                "i2.xlarge", 
                "i2.2xlarge", 
                "i2.4xlarge", 
                "i2.8xlarge", 
                "hs1.8xlarge"
            ], 
            "ConstraintDescription": "must contain only alphanumeric characters.", 
            "Default": "m3.large", 
            "Description": "Type of EC2 instance for web server", 
            "Type": "String"
        }, 
        "KeyName": {
            "Description": "Name of an existing EC2 KeyPair to enable SSH access to the web server", 
            "Type": "String"
        }, 
        "RecipeURL": {
            "Description": "The location of the recipe tarball", 
            "Type": "String"
        }, 
        "SnapshotId": {
            "Default": "", 
            "Description": "An existing snapshot to initialize storage with (use for data recovery)", 
            "Type": "String"
        }, 
        "Debug": {
            "Default": "", 
            "Description": "If not empty, turn on debugging (and increase timeout to max values)", 
            "Type": "String"
        }, 
        "ZoneName": {
            "Description": "The hosted zone used for DNS updates (this must be created manually)", 
            "Type": "String"
        }
    }, 
    "Conditions": {
        "CreateFromSnapshot": {
            "Fn::Not" : [{ "Fn::Equals": [ { "Ref": "SnapshotId" }, "" ] }]
        },
        "Debug": {
            "Fn::Not" : [{ "Fn::Equals": [ { "Ref": "Debug" }, "" ] }]
        }
    },
    "Resources": {
        "HostKeys": {
            "Type": "AWS::IAM::AccessKey",
            "Properties": {
                "UserName": { "Ref": "DevOpsServerUser" }
            }
        },
        "DevOpsServerSecurityGroup": {
            "Type" : "AWS::EC2::SecurityGroup",
            "Properties" :
            {
                "GroupDescription" : "<%= @description %>", 
                "SecurityGroupIngress" : [
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "22",
                        "ToPort" : "22",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "80",
                        "ToPort" : "80",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "443",
                        "ToPort" : "443",
                        "CidrIp" : "0.0.0.0/0"
                    },
                    {
                        "IpProtocol" : "tcp",
                        "FromPort" : "7999",
                        "ToPort" : "7999",
                        "CidrIp" : "0.0.0.0/0"
                    }
                ]
            }
        },
        "DevOpsServer": {
            "Type": "AWS::EC2::Instance",
            "Metadata": {
                "AWS::CloudFormation::Init": {
                    "config": {
                        "files": {
                            "/etc/chef/node.json": {
                                "content": { "Fn::Join": [ "\n", [
                                    "{", 
                                    "  \"apache\": {", 
                                    "    \"listen_ports\": [", 
                                    "      \"80\"", 
                                    "    ],", 
                                    "    \"version\": \"2.4\"", 
                                    "  },", 
                                    "  \"java\": {", 
                                    "    \"jdk_version\": \"7\"", 
                                    "  },", 
                                    "  \"jenkins\": {", 
                                    "    \"master\": {", 
{'fraction_non_alphanumeric': 0.1473308112652375, 'fraction_numerical': 0.02080706179066835, 'mean_word_length': 0.8196940726577437, 'pattern_counts': {'":': 120, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4981693', 'n_tokens_mistral': 2713, 'n_tokens_neox': 2426, 'n_words': 436}