<commit_before>directory "#{node[:travis][:worker][:home]}" do
  action :create
  recursive true
  owner "travis"  
  group "travis"
  mode "0755"
end

git "#{node[:travis][:worker][:home]}" do
  repository node[:travis][:worker][:repository]
  reference node[:travis][:worker][:ref]
  action :sync
  user "travis"
  user "travis"
end

template "#{node[:travis][:worker][:home]}/config/worker.yml" do
  source "worker.yml.erb"
  owner "travis"
  group "travis"
  mode "0600"
  variables :amqp => node[:travis][:worker][:amqp],
            :env => node[:travis][:worker][:env],
            :vms => node[:travis][:worker][:vms]
end

rvm  = "source /usr/local/rvm/scripts/rvm && rvm"
nohup_rvm  = "source /usr/local/rvm/scripts/rvm && nohup rvm"

bash "bundle gems" do
  code "#{rvm} jruby do bundle install --path vendor/bundle"
  user "travis"
  cwd node[:travis][:worker][:home]
end

bash "update VirtualBox images" do
  code "#{rvm} jruby do bundle exec thor travis:vms:update -r -d"
  user "travis"
  cwd node[:travis][:worker][:home]
end
<commit_msg>VM update output goes to /dev/null.<commit_after>directory "#{node[:travis][:worker][:home]}" do
  action :create
  recursive true
  owner "travis"  
  group "travis"
  mode "0755"
end

git "#{node[:travis][:worker][:home]}" do
  repository node[:travis][:worker][:repository]
  reference node[:travis][:worker][:ref]
  action :sync
  user "travis"
  user "travis"
end

template "#{node[:travis][:worker][:home]}/config/worker.yml" do
  source "worker.yml.erb"
  owner "travis"
  group "travis"
  mode "0600"
  variables :amqp => node[:travis][:worker][:amqp],
            :env => node[:travis][:worker][:env],
            :vms => node[:travis][:worker][:vms]
end

rvm  = "source /usr/local/rvm/scripts/rvm && rvm"
nohup_rvm  = "source /usr/local/rvm/scripts/rvm && nohup rvm"

bash "bundle gems" do
  code "#{rvm} jruby do bundle install --path vendor/bundle"
  user "travis"
  cwd node[:travis][:worker][:home]
end

bash "update VirtualBox images" do
  code "#{rvm} jruby do bundle exec thor travis:vms:update -r -d 2>/dev/null"
  user "travis"
  cwd node[:travis][:worker][:home]
end

{'fraction_non_alphanumeric': 0.17943925233644858, 'fraction_numerical': 0.00794392523364486, 'mean_word_length': 4.325870646766169, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '4660086', 'n_tokens_mistral': 843, 'n_tokens_neox': 853, 'n_words': 192}