<commit_before>{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-west-2",
      "source_ami": "ami-c7d092f7",
      "instance_type": "m3.large",
      "ssh_username": "centos",
      "ami_name": "PE-{{user `pe_version`}}-{{ user `vm_type`}}-{{ user `ptb_version`}}-{{isotime \"Jan02-0304\" }}",
      "ssh_pty": "true"
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sudo mkdir -p /usr/src/build_files",
        "sudo chown -R $(whoami):$(whoami) /usr/src/build_files"
      ]
    },
    {
      "type": "file",
      "source": "build_files/",
      "destination": "/usr/src/build_files"
    },
    {
      "type": "shell",
      "execute_command": "{{.Vars}} sudo -E -S bash '{{.Path}}'",
      "inline": ["useradd training",
                 "echo \"training:training\" | chpasswd",
                 "echo \"training ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers",
                 "sudo chown -R training:training /usr/src/build_files",
                 "mkdir -p /training/file_cache/installers/",
                 "sudo chown -R training:training /training"
                ]
    },
    {
      "environment_vars": [
         "PE_STATUS={{user `pe_status`}}",
         "PE_VERSION={{user `pe_version`}}",
         "PRE_RELEASE={{user `pre_release`}}",
         "PE_FAMILY={{user `pe_family`}}",
         "RUBY_LIB={{user `rubylib`}}",
         "TRAINING_REPO={{user `training_repo`}}",
         "TRAINING_BRANCH={{user `training_branch`}}",
         "VM_TYPE={{user `vm_type`}}"
      ],
      "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
      "scripts": [
        "scripts/base.sh",
        "scripts/pre_build.sh",
        "scripts/{{user `vm_type`}}_full.sh",
        "scripts/cleanup.sh",
        "scripts/{{user `vm_type`}}_cleanup.sh"
      ],
      "type": "shell"
    }
  ],
  "variables": {
    "hostname": "vagrant",
    "arch": "",
    "guest_os_type": "centos",
    "ks_file": "",
    "iso_checksum": "",
    "iso_url": "",
    "os_name": "",
    "pe_status": "release",
    "pe_version": "2016.2.1",
    "pe_family": "2016.2",
    "rubylib": "/usr/src/puppet/lib:/usr/src/facter/lib:/usr/src/hiera/lib",
    "system_user": "vagrant",<commit_msg>AWS build template for 2016.4.2<commit_after>{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-west-2",
      "source_ami": "ami-c7d092f7",
      "instance_type": "m3.large",
      "ssh_username": "centos",
      "ami_name": "PE-{{user `pe_version`}}-{{ user `vm_type`}}-{{ user `ptb_version`}}-{{isotime \"Jan02-0304\" }}",
      "ssh_pty": "true"
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sudo mkdir -p /usr/src/build_files",
        "sudo chown -R $(whoami):$(whoami) /usr/src/build_files"
      ]
    },
    {
      "type": "file",
      "source": "build_files/",
      "destination": "/usr/src/build_files"
    },
    {
      "type": "shell",
      "execute_command": "{{.Vars}} sudo -E -S bash '{{.Path}}'",
      "inline": ["useradd training",
                 "echo \"training:training\" | chpasswd",
                 "echo \"training ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers",
                 "sudo chown -R training:training /usr/src/build_files",
                 "mkdir -p /training/file_cache/installers/",
                 "sudo chown -R training:training /training"
                ]
    },
    {
      "environment_vars": [
         "PE_STATUS={{user `pe_status`}}",
         "PE_VERSION={{user `pe_version`}}",
         "PRE_RELEASE={{user `pre_release`}}",
         "PE_FAMILY={{user `pe_family`}}",
         "RUBY_LIB={{user `rubylib`}}",
         "TRAINING_REPO={{user `training_repo`}}",
         "TRAINING_BRANCH={{user `training_branch`}}",
         "VM_TYPE={{user `vm_type`}}"
      ],
      "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
      "scripts": [
        "scripts/base.sh",
        "scripts/pre_build.sh",
        "scripts/{{user `vm_type`}}_full.sh",
        "scripts/cleanup.sh",
        "scripts/{{user `vm_type`}}_cleanup.sh"
      ],
      "type": "shell"
    }
  ],
  "variables": {
    "hostname": "vagrant",
    "arch": "",
    "guest_os_type": "centos",
    "ks_file": "",
    "iso_checksum": "",
    "iso_url": "",
    "os_name": "",
    "pe_status": "release",
    "pe_version": "2016.4.2",
    "pe_family": "2016.4",
    "rubylib": "/usr/src/puppet/lib:/usr/src/facter/lib:/usr/src/hiera/lib",
    "system_user": "vagrant",
{'fraction_non_alphanumeric': 0.21494913754975675, 'fraction_numerical': 0.011941618752764263, 'mean_word_length': 2.242293906810036, 'pattern_counts': {'":': 68, '<': 3, '<?xml version=': 0, '>': 7, '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': '3065602', 'n_tokens_mistral': 1702, 'n_tokens_neox': 1655, 'n_words': 265}