<commit_before>#!/bin/bash
echo "rm existing db"
rm loan.db

echo "creating db structure"
sqlite3 -init structure.sql loan.db '.quit'

echo "inserting db values"
sqlite3 -init values.sql loan.db '.quit'
<commit_msg>do not execute values.sql if the file does not exist<commit_after>#!/bin/bash
echo "rm existing db"
rm loan.db

echo "creating db structure"
sqlite3 -init structure.sql loan.db '.quit'

[ ! -f values.sql ] && exit 0

echo "inserting db values"
sqlite3 -init values.sql loan.db '.quit'

{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.01, 'mean_word_length': 4.112244897959184, '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': '6396460', 'n_tokens_mistral': 182, 'n_tokens_neox': 172, 'n_words': 63}