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

set -o errtrace
export PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'

if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi

if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi

rvm_path="${rvm_path:-$HOME/.rvm}"

mkdir -p $rvm_path/src/

builtin cd $rvm_path/src

stable_version=$(curl -B <%= HOST %>/releases/stable-version.txt 2>/dev/null)

echo "rvm-${stable_version}"

curl -L "<%= HOST %>/rubies/packages/rvm/rvm-${stable_version}.tar.gz" -o "rvm-${stable_version}.tar.gz"

tar zxf "rvm-${stable_version}.tar.gz"

builtin cd "rvm-${stable_version}"

bash ./scripts/install<commit_msg>modify install script for newer RVMs<commit_after>#!/usr/bin/env bash

set -o errtrace
export PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'

if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi

if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi

rvm_path="${rvm_path:-$HOME/.rvm}"

mkdir -p $rvm_path/src/

builtin cd $rvm_path/src

stable_version=$(curl -B <%= HOST %>/releases/stable-version.txt 2>/dev/null)

echo "rvm-${stable_version}"

curl -L "<%= HOST %>/rubies/packages/rvm/rvm-${stable_version}.tar.gz" -o "rvm-${stable_version}.tar.gz"

tar zxf "rvm-${stable_version}.tar.gz"

#builtin cd "rvm-${stable_version}"
# extracted file doesn't match naming syntax for sure, cd to last modified dir
builtin "cd "$(\ls -1dt */ | head -n 1)"

bash ./scripts/install
{'fraction_non_alphanumeric': 0.21525885558583105, 'fraction_numerical': 0.006811989100817439, 'mean_word_length': 4.227758007117438, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '475039', 'n_tokens_mistral': 623, 'n_tokens_neox': 600, 'n_words': 126}