<commit_before><%
  # Note: this is a .json.erb file. So we evaluate it with Erb, which results
  # in JSON. If you've used Erb in Rails' database.yml, this is basically the
  # same thing.

  # Here, we get to run appropriate Ruby code of whatever kind we like.  For
  # instance, anything you've put into ~/.deploy_credentials is fair game for
  # loading. You may want your passwords there!

  # Keep in mind that this code loads in both Capistrano and Chef.  Try not to
  # put in Cap-specific code (fails in Chef) or Chef-specific code (fails in
  # Capistrano.) When in doubt, create a new Vagrant VM from scratch using
  # both Chef and Capistrano as a test.
%>

{
  "ruby_apps": {
    "rails-devise-pundit": {
      "git": "https://github.com/noahgibbs/rails-devise-pundit.git",
      "#db_name": "my_database",
      "#TODO": "more git configuration - see Capistrano files",
      "#TODO": "optionally specify no asset build and/or no migration",
      "user": "www",

      "#": "env_vars is used for app-specific environment variables. They won't be used for configuring the server.",

      "#": "These are insecure right now and must all be changed",
      "#TODO": "Generate the secret keys repeatably and cross-platform in ~/.deploy_credentials",
      "env_vars": {
        "ADMIN_NAME": "admin",
        "ADMIN_EMAIL": "admin@no-such-domain.no-such-tld",
        "ADMIN_PASSWORD": "<PASSWORD>",
        "GMAIL_USERNAME": "the.codefolio.guy",
        "GMAIL_PASSWORD": "<PASSWORD>$",
        "DOMAIN_NAME": "example.com",
        "SECRET_KEY_BASE": "<KEY>"
      },

      "#": "uncomment these to use them",
      "#unicorn_arguments": "arguments passed to unicorn",
      "#log_run_arguments": "arguments passed to svlogd (runit)",
      "#chpst_arguments":   "arguments passed to chpst (runit)",
      "#extra_code":        "bash commands at start of run script (runit)",
      "#extra_log_code":    "bash commands at start of log script (runit)",

      "#": "NGinX lets you specify server names and redirect URLs. Use 'default' to mean just that.",
      "redirect_hostnames": [],
      "server_names": ["default", "rdp.127.0.0.1.xip.io"],

      "#": "An app can list what Ubuntu packages to install. [NOT YET IMPLEMENTED]",
      "packages": []
    }
  },
  "users": {
    "www": {
    }
  },
  "nginx": {
    "#": "See docs at http://community.opscode.com/cookbooks/nginx",
    "version": "1.4.4",
    "default_site_enabled": false
  },
  "mysql": {
    "#": "See http://community.opscode.com/cookbooks/mysql",
    "server_root_password": "<PASSWORD>",
    "allow_remote_root": false
  },
  "rvm": {
    "#": "See https://github.com/fnichol/chef-rvm",
    "vagrant": {
        "system_chef_solo": "/opt/vagrant_ruby/bin/chef-solo"
    }
  },
  "run_list": [
    "apt",
    "mysql::client",
    "mysql::server",
    "basic_config",
    "rvm",
    "nginx",
    "rails_server"
  ]
}<commit_msg>Add sendfile workaround for Vagrant VMs.<commit_after><%
  # Note: this is a .json.erb file. So we evaluate it with Erb, which results
  # in JSON. If you've used Erb in Rails' database.yml, this is basically the
  # same thing.

  # Here, we get to run appropriate Ruby code of whatever kind we like.  For
  # instance, anything you've put into ~/.deploy_credentials is fair game for
  # loading. You may want your passwords there!

  # Keep in mind that this code loads in both Capistrano and Chef.  Try not to
  # put in Cap-specific code (fails in Chef) or Chef-specific code (fails in
  # Capistrano.) When in doubt, create a new Vagrant VM from scratch using
  # both Chef and Capistrano as a test.
%>

{
  "ruby_apps": {
    "rails-devise-pundit": {
      "git": "https://github.com/noahgibbs/rails-devise-pundit.git",
      "#db_name": "my_database",
      "#TODO": "more git configuration - see Capistrano files",
      "#TODO": "optionally specify no asset build and/or no migration",
      "user": "www",

      "#": "env_vars is used for app-specific environment variables. They won't be used for configuring the server.",

      "#": "These are insecure right now and must all be changed",
      "#TODO": "Generate the secret keys repeatably and cross-platform in ~/.deploy_credentials",
      "env_vars": {
        "ADMIN_NAME": "admin",
        "ADMIN_EMAIL": "admin@no-such-domain.no-such-tld",
        "ADMIN_PASSWORD": "<PASSWORD>",
        "GMAIL_USERNAME": "the.codefolio.guy",
        "GMAIL_PASSWORD": "<PASSWORD>$",
        "DOMAIN_NAME": "example.com",
        "SECRET_KEY_BASE": "5c2d20f4f56f5ba4012e70a9a2a0ad9b0fabfca15a3ffa4e6dc5b5b9df962f9350a544d35b08fefd55f5f1126b04654ac6ba778c7ae165b3234109322dfbefe9"
      },

      "#": "uncomment these to use them",
      "#unicorn_arguments": "arguments passed to unicorn",
      "#log_run_arguments": "arguments passed to svlogd (runit)",
      "#chpst_arguments":   "arguments passed to chpst (runit)",
      "#extra_code":        "bash commands at start of run script (runit)",
      "#extra_log_code":    "bash commands at start of log script (runit)",

      "#": "NGinX lets you specify server names and redirect URLs. Use 'default' to mean just that.",
      "redirect_hostnames": [],
      "server_names": ["default", "rdp.127.0.0.1.xip.io"],

      "#": "An app can list what Ubuntu packages to install. [NOT YET IMPLEMENTED]",
      "packages": []
    }
  },
  "users": {
    "www": {
    }
  },
  "nginx": {
    "#": "See docs at http://community.opscode.com/cookbooks/nginx",
    "version": "1.4.4",
    "sendfile": "off",
    "#TODO": "Move sendfile off into development JSON - it's a Vagrant workaround.",
    "default_site_enabled": false
  },
  "mysql": {
    "#": "See http://community.opscode.com/cookbooks/mysql",
    "server_root_password": "<PASSWORD>",
    "allow_remote_root": false
  },
  "rvm": {
    "#": "See https://github.com/fnichol/chef-rvm",
    "vagrant": {
        "system_chef_solo": "/opt/vagrant_ruby/bin/chef-solo"
    }
  },
  "run_list": [
    "apt",
    "mysql::client",
    "mysql::server",
    "basic_config",
    "rvm",
    "nginx",
    "rails_server"
  ]
}
{'fraction_non_alphanumeric': 0.14503942181340343, 'fraction_numerical': 0.01478318002628121, 'mean_word_length': 3.0351225977468523, 'pattern_counts': {'":': 90, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 4, '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': '3677486', 'n_tokens_mistral': 2149, 'n_tokens_neox': 2081, 'n_words': 588}