<commit_before># Install the configuration files we need

# Nothing here anymore. I'll leave this recipe in case we need to add stuff for vagrant again.<commit_msg>A failed attempt to upgrade ruby in the vagrant image using chef. Everything works except setting the default ruby. The command is successful, but doesn't change the default ruby. Stumped.<commit_after># Upgrade ruby. I don't know chef, so this is probably more complicated than it needs to be:
# execute "upgrade-rvm" do
#   command "rvm get stable && rvm reload"
#   action :nothing
# end

# execute "upgrade-ruby" do
#   command "yes | rvm install 2.0.0-p247-turbo"
#   action :nothing
# end



# TODO: set-default-ruby SUCCEEDS BY DOES NOTHING. HOW TO GET THIS TO WORK??

# execute "set-default-ruby" do
#   command "rvm --default use ruby-2.0.0-p247-turbo"
#   user "vagrant"
#   action :nothing
# end




# execute "install-gems" do
#   command "gem install bundler && bundle install"
#   user "vagrant"
#   cwd "/vagrant"
#   action :nothing
# end

# ruby_block "ruby-upgrade-message" do
#   block do
#     Chef::Log.info "Upgrading ruby. This will take a while."
#   end
#   only_if { `ruby -v`.include?('2.0.0p0') }
#   notifies :run, "execute[upgrade-rvm]", :immediately
#   notifies :run, "execute[upgrade-ruby]", :immediately
#   notifies :run, "execute[set-default-ruby]", :immediately
#   notifies :run, "execute[install-gems]", :immediately
#   action :create
# end
{'fraction_non_alphanumeric': 0.11703601108033242, 'fraction_numerical': 0.0110803324099723, 'mean_word_length': 3.8006644518272426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3214707', 'n_tokens_mistral': 513, 'n_tokens_neox': 465, 'n_words': 170}