<commit_before>#!/bin/bash

if [ -z "$DB_USERNAME" ];
then
    echo "No DB_USERNAME set! Exiting now.."
    exit 1
fi

if [ -z "$DB_PASSWORD" ];
then
    echo "No DB_PASSWORD set! Exiting now.."
    exit 1
fi

mysql -u $DB_USERNAME -p$DB_PASSWORD -e "drop database demoiheartreading";
mysql -u $DB_USERNAME -p$DB_PASSWORD -e "create database demoiheartreading";

php artisan migrate
php artisan db:seed --class=DemoDatabaseSeeder

mysql -u $DB_USERNAME -p$DB_PASSWORD demoiheartreading < ./database/sql-seeds/demo-seeds.sql<commit_msg>force migration<commit_after>#!/bin/bash

if [ -z "$DB_USERNAME" ];
then
    echo "No DB_USERNAME set! Exiting now.."
    exit 1
fi

if [ -z "$DB_PASSWORD" ];
then
    echo "No DB_PASSWORD set! Exiting now.."
    exit 1
fi

mysql -u $DB_USERNAME -p$DB_PASSWORD -e "drop database demoiheartreading";
mysql -u $DB_USERNAME -p$DB_PASSWORD -e "create database demoiheartreading";

php artisan migrate --force
php artisan db:seed --class=DemoDatabaseSeeder

mysql -u $DB_USERNAME -p$DB_PASSWORD demoiheartreading < ./database/sql-seeds/demo-seeds.sql
{'fraction_non_alphanumeric': 0.11851851851851852, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 3.9815668202764978, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2843555', 'n_tokens_mistral': 414, 'n_tokens_neox': 391, 'n_words': 113}