<commit_before># Initialize rbenv.
source $DOTFILES/source/50_ruby.sh

# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
  versions=(2.1.3) # 2.0.0-p576 1.9.3-p547)

  rubies=($(setdiff "${versions[*]}" "$(rbenv whence ruby)"))
  if (( ${#rubies[@]} > 0 )); then
    e_header "Installing Ruby versions: ${rubies[*]}"
    for r in "${rubies[@]}"; do
      rbenv install "$r"
      [[ "$r" == "${versions[0]}" ]] && rbenv global "$r"
    done
  fi
fi
<commit_msg>ruby rvm install<commit_after># Initialize my ruby via rvm


setopt interactivecomments

# install rvm and compile latest ruby
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
if [[ -s ~/.rvm/scripts/rvm ]] ; then source ~/.rvm/scripts/rvm ; fi
rvm get head
rvm reload
rvm install 2.2.0
rvm use 2.2.0 --default

{'fraction_non_alphanumeric': 0.19005102040816327, 'fraction_numerical': 0.03188775510204082, 'mean_word_length': 3.4857142857142858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '297284', 'n_tokens_mistral': 328, 'n_tokens_neox': 302, 'n_words': 84}