<commit_before>#!/bin/bash
cd /srv/server-conf/db-dumps/

for file in $( ls *.sql )
do
pre_dot=${file%%.*}
echo "mysql -u root -pblank $pre_dot < $pre_dot.sql"
mysql -u root -pblank "$pre_dot" < $pre_dot.sql
done<commit_msg>Output a short messages when DB import is done<commit_after>#!/bin/bash
cd /srv/server-conf/db-dumps/

for file in $( ls *.sql )
do
pre_dot=${file%%.*}
echo "mysql -u root -pblank $pre_dot < $pre_dot.sql"
mysql -u root -pblank "$pre_dot" < $pre_dot.sql
done
echo "Databases imported"
{'fraction_non_alphanumeric': 0.16962524654832348, 'fraction_numerical': 0.0, 'mean_word_length': 4.08, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4872756', 'n_tokens_mistral': 210, 'n_tokens_neox': 201, 'n_words': 58}