<commit_before># Load in our dependencies
include_recipe "common"

# Guarantee `node` is installed
# @depends_on execute[apt-get-update-periodic]
# https://github.com/nodesource/distributions/tree/564ec6b1413fbfc3f2e3a47725f0abfeca678b1e#installation-instructions
# DEV: Equivalent to `sudo apt-get install -y "nodejs=6.11.3-1nodesource1~trusty1"`
execute "add-nodejs-apt-repository" do
  command("curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -")
  only_if("! which node")
end
apt_package "nodejs" do
  version("6.11.3-1nodesource1~trusty1")
  only_if("test \"$(node --version)\" != \"v6.11.3\"")
end

# Configure NGINX for `twolfson.com` node
# @depends_on service[nginx]
data_file "/etc/nginx/conf.d/twolfson.com.conf" do
  owner("root")<commit_msg>Fixed up apt versioning for Node.js<commit_after># Load in our dependencies
include_recipe "common"

# Guarantee `node` is installed
# @depends_on execute[apt-get-update-periodic]
# https://github.com/nodesource/distributions/tree/564ec6b1413fbfc3f2e3a47725f0abfeca678b1e#installation-instructions
# DEV: Equivalent to `sudo apt-get install -y "nodejs=6.11.3-1nodesource1"`
execute "add-nodejs-apt-repository" do
  command("curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -")
  only_if("! which node")
end
apt_package "nodejs" do
  version("6.11.3-1nodesource1")
  only_if("test \"$(node --version)\" != \"v6.11.3\"")
end

# Configure NGINX for `twolfson.com` node
# @depends_on service[nginx]
data_file "/etc/nginx/conf.d/twolfson.com.conf" do
  owner("root")
{'fraction_non_alphanumeric': 0.1512987012987013, 'fraction_numerical': 0.05064935064935065, 'mean_word_length': 5.139442231075697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4546214', 'n_tokens_mistral': 635, 'n_tokens_neox': 592, 'n_words': 114}