<commit_before>#!/bin/bash

source $(dirname $(dirname ${BASH_SOURCE}))/framework/oo-bootstrap.sh

VERSION="2.4.2"

if ! Command::Exists rbenv; then
    if [[ $(OS::LSBDist) == "macos" ]]; then
        util::brew_install rbenv
    else
        git::clone https://github.com/rbenv/rbenv.git $HOME/.rbenv
        [[ ! -x $HOME/.rbenv/bin/rbenv ]] || cd $HOME/.rbenv && src/configure && make -C src
        export PATH="$HOME/.rbenv/bin:$PATH"
        # install ruby-build
        mkdir -p "$(rbenv root)"/plugins
        git::clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
    fi
    eval "$(rbenv init -)"
fi

if [[ ! $(rbenv versions | grep $VERSION) ]]; then
    RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install $VERSION -v
fi

rbenv global $VERSION
<commit_msg>feat(ruby): update ruby to 2.6.3<commit_after>#!/bin/bash

source $(dirname $(dirname ${BASH_SOURCE}))/framework/oo-bootstrap.sh

VERSION="2.6.3"

if ! Command::Exists rbenv; then
    if [[ $(OS::LSBDist) == "macos" ]]; then
        util::brew_install rbenv
    else
        git::clone https://github.com/rbenv/rbenv.git $HOME/.rbenv
        [[ ! -x $HOME/.rbenv/bin/rbenv ]] || cd $HOME/.rbenv && src/configure && make -C src
        export PATH="$HOME/.rbenv/bin:$PATH"
        # install ruby-build
        mkdir -p "$(rbenv root)"/plugins
        git::clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
    fi
    eval "$(rbenv init -)"
fi

if [[ ! $(rbenv versions | grep $VERSION) ]]; then
    RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install $VERSION -v
fi

rbenv global $VERSION

{'fraction_non_alphanumeric': 0.17516902274124155, 'fraction_numerical': 0.005531653349723417, 'mean_word_length': 2.92289156626506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '755834', 'n_tokens_mistral': 615, 'n_tokens_neox': 585, 'n_words': 124}