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

# Install rbenv
git clone git://github.com/sstephenson/rbenv.git "$HOME/.rbenv"

# Load rbenv on login
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> "$HOME/.profile"
echo 'eval "$(rbenv init -)"' >> "$HOME/.profile"

# Install ruby-build
git clone git://github.com/sstephenson/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"

# Make sure rbenv is available
source "$HOME/.profile"

# Install required ruby versions
rbenv install 2.3.1
rbenv global 2.3.1
gem install bundler
rbenv rehash

cd /vagrant || exit
bundle install

bin/rake db:drop
bin/rake db:setup
bin/rake max_mind:extract<commit_msg>Reorder commands so we don't need `rbenv global`<commit_after>#!/usr/bin/env bash

# Install rbenv
git clone git://github.com/sstephenson/rbenv.git "$HOME/.rbenv"

# Load rbenv on login
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> "$HOME/.profile"
echo 'eval "$(rbenv init -)"' >> "$HOME/.profile"

# Install ruby-build
git clone git://github.com/sstephenson/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"

# Make sure rbenv is available
source "$HOME/.profile"

# Install required ruby versions
rbenv install 2.3.1

cd /vagrant || exit

gem install bundler
rbenv rehash

bundle install

bin/rake db:drop
bin/rake db:setup
bin/rake max_mind:extract
{'fraction_non_alphanumeric': 0.14541213063763608, 'fraction_numerical': 0.006998444790046656, 'mean_word_length': 4.384937238493724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '458114', 'n_tokens_mistral': 486, 'n_tokens_neox': 461, 'n_words': 123}