<commit_before>{
  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{user `access_key`}}",
      "secret_key": "{{user `secret_key`}}",
      "region": "{{user `region`}}",
      "source_ami": "{{user `source_ami`}}",
      "instance_type": "{{user `instance_type`}}",
      "ssh_username": "ubuntu",
      "ami_name": "doi-metadata-search {{timestamp}}"
    }
  ],
  "provisioners": [
    {
      "type": "chef-solo",
      "cookbook_paths": ["vendor/cookbooks"],
      "run_list": ["recipe[doi_metadata_search]"],
      "json": {
        "ruby": {
          "deploy_user": "ubuntu",
          "deploy_group": "ubuntu",
          "rails_env": "production"
        },
        "phantomjs": {
          "version": "1.9.7",
          "base_url": "https://bitbucket.org/ariya/phantomjs/downloads" }
      }
    }
  ],
  "post-processors": [
    {
      "type": "atlas",
      "artifact": "datacite/doi-metadata-search",
      "artifact_type": "amazon.ami",
      "token": "{{user `atlas_token`}}",
      "metadata": {
        "created_at": "{{timestamp}}"
      }
    }
  ],
  "variables": {
    "compression_level": "6",
    "cpus": "2",
    "disk_size": "40000",
    "headless": "false",
    "memory": "2048",
    "mirror": "http://releases.ubuntu.com",
    "access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
    "secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
    "region": "{{env `AWS_REGION`}}",
    "source_ami": "{{env `AWS_SOURCE_AMI`}}",
    "instance_type": "{{env `AWS_INSTANCE_TYPE`}}",
    "atlas_token": "{{env `ATLAS_TOKEN`}}"
  },
   "push": {
    "name": "datacite/doi-metadata-search",
    "vcs": true
  }
}<commit_msg>updated packer template<commit_after>{
  "builders": [{
    "type": "amazon-ebs",
    "access_key": "{{user `access_key`}}",
    "secret_key": "{{user `secret_key`}}",
    "region": "{{user `region`}}",
    "source_ami": "{{user `source_ami`}}",
    "instance_type": "{{user `instance_type`}}",
    "ssh_username": "ubuntu",
    "ami_name": "doi-metadata-search {{timestamp}}"
  }],
  "provisioners": [{
    "type": "shell",
    "inline": ["sudo apt-get install -y git",
               "sudo mkdir -p /var/www/doi-metadata-search/shared",
               "sudo chown -R ubuntu:ubuntu /var/www/doi-metadata-search",
               "git clone https://github.com/crosscite/doi-metadata-search.git /var/www/doi-metadata-search/shared"]  },
  {
    "type": "file",
    "source": ".env.production",
    "destination": "/var/www/doi-metadata-search/shared/.env"
  },
  {
    "type": "chef-solo",
    "install_command": "curl -L https://www.chef.io/chef/install.sh | {{if .Sudo}}sudo{{end}} bash -s -- -v {{user `chef_version`}}",
    "cookbook_paths": ["vendor/cookbooks"],
    "run_list": ["recipe[doi-metadata-search]"],
    "override": {
      "amazon-ebs": {
        "json": {
          "ruby": {
            "deploy_user": "ubuntu",
            "deploy_group": "ubuntu",
            "rails_env": "production"
          },
          "phantomjs": {
            "version": "1.9.7",
            "base_url": "https://bitbucket.org/ariya/phantomjs/downloads"
          }
        }
      }
    }
  }],
  "post-processors": [{
    "type": "atlas",
    "artifact": "datacite/doi-metadata-search",
    "artifact_type": "amazon.ami",
    "token": "{{user `atlas_token`}}",
    "metadata": {
      "created_at": "{{timestamp}}"
    }
  }],
  "variables": {
    "compression_level": "6",
    "cpus": "2",
    "disk_size": "40000",
    "headless": "false",
    "memory": "2048",
    "mirror": "http://releases.ubuntu.com",
    "version": "0.1",
    "chef_version": "12.5.1",
    "access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
    "secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
    "region": "{{env `AWS_REGION`}}",
    "source_ami": "{{env `AWS_SOURCE_AMI`}}",
    "instance_type": "{{env `AWS_INSTANCE_TYPE`}}",
    "atlas_token": "{{env `ATLAS_TOKEN`}}"
  },
   "push": {
    "name": "datacite/doi-metadata-search",
    "vcs": false,
    "exclude": [
      "frontend/bower_components/*",
      "frontend/node_modules/*",
      "vendor/bundle/*",
      ".DS_Store",
      ".git/*",
      ".vagrant/*",
      "tmp/*",
      ".bundle/*",
      ".sass-cache/*"
    ]
  }
}
{'fraction_non_alphanumeric': 0.22798667301285103, 'fraction_numerical': 0.00809138505473584, 'mean_word_length': 2.6484375, 'pattern_counts': {'":': 99, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1401479', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1560, 'n_words': 242}