<commit_before>rm -f spec/dummy/config/database.yml

case $DB in
  "mysql" )
    mysql -e 'CREATE DATABASE anedot_test;'
    cp spec/ci/database.mysql.yml spec/dummy/config/database.yml;;
  "postgres" )
    psql -c 'CREATE DATABASE anedot_test;' -U postgres
    cp spec/ci/database.postgresql.yml spec/dummy/config/database.yml;;
  "sqlite" )
    cp spec/ci/database.sqlite.yml spec/dummy/config/database.yml;;
esac

RAILS_ENV=test bundle exec rake db:setup db:migrate<commit_msg>setup travis db from the dummy app<commit_after>rm -f spec/dummy/config/database.yml

case $DB in
  "mysql" )
    mysql -e 'CREATE DATABASE anedot_test;'
    cp spec/ci/database.mysql.yml spec/dummy/config/database.yml;;
  "postgres" )
    psql -c 'CREATE DATABASE anedot_test;' -U postgres
    cp spec/ci/database.postgresql.yml spec/dummy/config/database.yml;;
  "sqlite" )
    cp spec/ci/database.sqlite.yml spec/dummy/config/database.yml;;
esac

cd spec/dummy
RAILS_ENV=test bundle exec rake db:setup db:migrate
{'fraction_non_alphanumeric': 0.12160804020100502, 'fraction_numerical': 0.0, 'mean_word_length': 3.7884615384615383, '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': '1648359', 'n_tokens_mistral': 385, 'n_tokens_neox': 368, 'n_words': 81}