<commit_before>#
# Cookbook Name:: main_arnold
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#


include_recipe "ruby_build"
include_recipe "nginx"


node.set["nginx"]["init_style"]["init"] = "runit"

package 'git-core'
package 'emacs'
package 'imagemagick'
package 'libmysqlclient-dev'

ruby_build_ruby "2.0.0-p247" do
  prefix_path "/usr/local/ruby/ruby-2.0.0-p247"
  environment({
  })

  action      :install
end


include_recipe "nginx::source"


# create a deploy user

user "deploy" do
 home "/home/deploy"
end

directory "/home/deploy" do
  owner "deploy"
  group "deploy"
  mode 0755
  action :create
end


ssh_keys = [
 "ssh-rsa A<KEY>SYC2fVNU1P arnold@think"
]

directory "/home/deploy/.ssh" do
  owner "deploy"
  group "deploy"
  mode 0600
  action :create
end

template "/home/deploy/.ssh/authorized_keys" do
  variables(:keys => ssh_keys)
  source "authorized_keys.erb"
  owner "deploy"
  group "deploy"
  mode 0600
  action :create
end

<commit_msg>finally it all works<commit_after>#
# Cookbook Name:: main_arnold
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#


include_recipe "ruby_build"
include_recipe "nginx"


node.set["nginx"]["init_style"]["init"] = "runit"

package 'git-core'
package 'emacs'
package 'imagemagick'
package 'libmysqlclient-dev'

ruby_build_ruby "2.0.0-p247" do
  prefix_path "/usr/local/ruby/ruby-2.0.0-p247"
  environment({
  })

  action      :install
end


include_recipe "nginx::source"


# create a deploy user

user "deploy" do
 home "/home/deploy"
end

directory "/home/deploy" do
  owner "deploy"
  group "deploy"
  mode 0755
  action :create
end


ssh_keys = [
 "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/RoGz9LGuAphZ+h82ycr5C13Z93vES9PcXC8x5uQoY1k0viBWYTT34hG6c0b2rCpnC5ARrJuzmTdUVT9AHjoIP/pBGVlUjJksaKToAwQWrapFWffJfq6VUxdb3cp/Q/izncdLjJd3mDHg3XDmGMgrPorYu2ALx6n7dQHHnACXED2Rc55FO2+blynFX7A32yR4yn2b8SOOzLMSxUnh3rkQ5pZRLNh089Zsgu6ulJFpOX8IQwed5pyylZiJU5YSzyFmQFsQUiU6MZ6FNfXPXkdJf5zlh6QSgrbTgozJk9lcJuTcq4TDPd0ueDF1vzsaFWKIOyJPRZxOWYSYC2fVNU1P <PASSWORD>@<PASSWORD>"
]

directory "/home/deploy/.ssh" do
  owner "deploy"
  group "deploy"
  mode 0700
  action :create
end

template "/home/deploy/.ssh/authorized_keys" do
  variables(:keys => ssh_keys)
  source "authorized_keys.erb"
  owner "deploy"
  group "deploy"
  mode 0600
  action :create
end


{'fraction_non_alphanumeric': 0.10853355426677713, 'fraction_numerical': 0.048467274233637114, 'mean_word_length': 4.919117647058823, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '3856392', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1027, 'n_words': 191}