<commit_before>#!/bin/bash

OLD_BUNDLE_GEMFILE=$BUNDLE_GEMFILE

# clone travis-logs
pushd $HOME
git clone --depth=1 https://github.com/travis-ci/travis-logs.git
cd travis-logs

# using JRuby, migrate the 'logs' table in 'travis_test' database
export BUNDLE_GEMFILE=$PWD/Gemfile
rvm jruby-19mode do bundle install
psql -c "CREATE DATABASE travis_logs_test;" -U postgres
cp $TRAVIS_BUILD_DIR/config/database.yml config/travis.yml
rvm jruby-19mode do bundle exec rake db:migrate
popd
rvm $TRAVIS_RUBY_VERSION
export BUNDLE_GEMFILE=$OLD_BUNDLE_GEMFILE<commit_msg>Clean up set_up_travis_logs.sh<commit_after>#!/bin/bash

# clone travis-logs
pushd $HOME
git clone --depth=1 https://github.com/travis-ci/travis-logs.git
cd travis-logs

# using JRuby, migrate the 'logs' table in 'travis_test' database
BUNDLE_GEMFILE=$PWD/Gemfile
rvm jruby-19mode do bundle install
psql -c "CREATE DATABASE travis_logs_test;" -U postgres
cp $TRAVIS_BUILD_DIR/config/database.yml config/travis.yml
rvm jruby-19mode do bundle exec rake db:migrate
popd
{'fraction_non_alphanumeric': 0.09560975609756098, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 5.705882352941177, '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': '5964604', 'n_tokens_mistral': 420, 'n_tokens_neox': 411, 'n_words': 95}