<commit_before>#!/usr/bin/env bash

set -e
if [[ ! $(which rvm) ]]; then
  echo "Installing rvm"
  \curl -sSL https://get.rvm.io | bash
fi
<commit_msg>rvm: ask before installing<commit_after>#!/usr/bin/env bash

set -e

info () {
  printf "  [ \033[00;34m..\033[0m ] $1"
}

user () {
  printf "\r  [ \033[0;33m?\033[0m ] $1 "
}

if [[  $(which rvm) ]]; then
  user ' - rvm not installed - install it? [y/N]'
  read -n 1 install_rvm
  echo ''

  if [[ "${install_rvm}" == "y" ]]; then
    info "Installing rvm\n"
    \curl -sSL https://get.rvm.io | bash
  fi
fi

{'fraction_non_alphanumeric': 0.20320855614973263, 'fraction_numerical': 0.0427807486631016, 'mean_word_length': 2.6258064516129034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '297880', 'n_tokens_mistral': 269, 'n_tokens_neox': 244, 'n_words': 61}