<commit_before>#!/bin/bash

source "$HOME/.rvm/scripts/rvm"

local_folder=$(pwd)
RESULT=0

for test_app in $(ls test_apps)
do
  if [[ $RESULT == 0 ]]
  then
    cd $local_folder/test_apps/$test_app
    rvm use $(cat RUBY_VERSION)
    export BUNDLE_GEMFILE="$local_folder/test_apps/$test_app/Gemfile"
#    bundle install
    bundle exec rake db:create:all
    bundle exec rake db:migrate
    bundle exec rake 
    RESULT=$(($RESULT + $?))
  fi
done

if [ $RESULT == 0 ]
then
  exit 0
else
  exit 1
fi
<commit_msg> * Run tests   * echo for test_app<commit_after>#!/bin/bash

source "$HOME/.rvm/scripts/rvm"

local_folder=$(pwd)
RESULT=0

for test_app in $(ls test_apps)
do
  if [[ $RESULT == 0 ]]
  then
    echo $test_app
    cd $local_folder/test_apps/$test_app
    rvm use $(cat RUBY_VERSION)
    export BUNDLE_GEMFILE="$local_folder/test_apps/$test_app/Gemfile"
#    bundle install
    bundle exec rake db:create:all
    bundle exec rake db:migrate
    bundle exec rake 
    RESULT=$(($RESULT + $?))
  fi
done

if [ $RESULT == 0 ]
then
  exit 0
else
  exit 1
fi

{'fraction_non_alphanumeric': 0.1212406015037594, 'fraction_numerical': 0.009398496240601503, 'mean_word_length': 3.3292682926829267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2715091', 'n_tokens_mistral': 421, 'n_tokens_neox': 406, 'n_words': 105}