<commit_before>define :ruby_install do
  ruby_version = params[:version] || params[:name]
  options = params[:options] || {}

  include_recipe "sprout-osx-rbenv"

  rbenv_cmd = node['sprout']['rbenv']['command']
  install_cmd = "#{rbenv_cmd} install #{ruby_version} #{options[:command_line_options]}"

  execute "installing #{ruby_version} with RBENV: #{install_cmd}" do
    command install_cmd
    user params[:user] || node['current_user']
    only_if params[:only_if] if params[:only_if]
    not_if params[:not_if] || "#{rbenv_cmd} versions | grep #{ruby_version}"
    env params[:options][:env]<commit_msg>Update ruby_install.rb<commit_after>define :ruby_install do
  ruby_version = params[:version] || params[:name]
  options = params[:options] || {}

  include_recipe "sprout-osx-rbenv"

  rbenv_cmd = node['sprout']['rbenv']['command']
  install_cmd = "#{rbenv_cmd} install #{ruby_version} #{options[:command_line_options]}"

  execute "installing #{ruby_version} with RBENV: #{install_cmd}" do
    command install_cmd
    user params[:user] || node['current_user']
    only_if params[:only_if] if params[:only_if]
    not_if params[:not_if] || "#{rbenv_cmd} versions | grep #{ruby_version}"
    env options[:env]
{'fraction_non_alphanumeric': 0.15737704918032788, 'fraction_numerical': 0.0, 'mean_word_length': 5.898305084745763, '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': '4431262', 'n_tokens_mistral': 427, 'n_tokens_neox': 405, 'n_words': 82}