<commit_before>#!/bin/sh

echo "Waiting for Sqlite"
until sqlite3 quill_test.db "SELECT 1" &> /dev/null
do
  printf "."
  sleep 1
done
echo -e "\nSqlite ready"

sqlite3 quill_test.db < quill-jdbc/src/test/resources/sql/sqlite-schema.sql

echo "Waiting for Mysql"
until mysql -u root -proot -h mysql -e "SELECT 1" &> /dev/null
do
  printf "."
  sleep 1
done
echo -e "\nMysql ready"

mysql -u root -proot -h mysql -e "ALTER USER 'root'@'%' IDENTIFIED BY ''"
mysql -u root -h mysql quill_test < quill-sql/src/test/sql/mysql-schema.sql
mysql -u root -h mysql -e "CREATE USER 'finagle'@'%' IDENTIFIED BY 'finagle';"
mysql -u root -h mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'finagle'@'%';"
mysql -u root -h mysql -e "FLUSH PRIVILEGES;"

echo "Waiting for Postgres"<commit_msg>Delete quill_test.db file before setup. (#610)<commit_after>#!/bin/sh

DB_FILE=quill_test.db

rm $DB_FILE

echo "Waiting for Sqlite"
until sqlite3 $DB_FILE "SELECT 1" &> /dev/null
do
  printf "."
  sleep 1
done
echo -e "\nSqlite ready"

sqlite3 $DB_FILE < quill-jdbc/src/test/resources/sql/sqlite-schema.sql

echo "Waiting for Mysql"
until mysql -u root -proot -h mysql -e "SELECT 1" &> /dev/null
do
  printf "."
  sleep 1
done
echo -e "\nMysql ready"

mysql -u root -proot -h mysql -e "ALTER USER 'root'@'%' IDENTIFIED BY ''"
mysql -u root -h mysql quill_test < quill-sql/src/test/sql/mysql-schema.sql
mysql -u root -h mysql -e "CREATE USER 'finagle'@'%' IDENTIFIED BY '<PASSWORD>';"
mysql -u root -h mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'finagle'@'%';"
mysql -u root -h mysql -e "FLUSH PRIVILEGES;"

echo "Waiting for Postgres"
{'fraction_non_alphanumeric': 0.14676616915422885, 'fraction_numerical': 0.009328358208955223, 'mean_word_length': 3.494413407821229, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '4842224', 'n_tokens_mistral': 672, 'n_tokens_neox': 643, 'n_words': 211}