<commit_before>const db = require("./db");
db.importFromDisk('lazerwalker', 'example')
  .then((result) => console.log("Loaded example file"))
  .catch((e) => console.log("Error: " + e))<commit_msg>Properly exit after populating test DB<commit_after>const db = require("./db");
db.importFromDisk('lazerwalker', 'example')
  .then((result) => {
    console.log("Loaded example file"); 
    process.exit();
  }).catch((e) => {
    console.log("Error: " + e); 
    process.exit(1)
  })
{'fraction_non_alphanumeric': 0.21369294605809128, 'fraction_numerical': 0.002074688796680498, 'mean_word_length': 4.551724137931035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2834379', 'n_tokens_mistral': 166, 'n_tokens_neox': 159, 'n_words': 30}