<commit_before>const lodash = require("lodash");

const config = require("../config");
const dbSource = require("../server/db");

var db;

dbSource({ setDb: (_) => { db = _; } }, () => {

	const callback = function(message) {
		return function(err, data) {
			if (err) {
				console.error("Error: " + message);
				//throw err;
			}
			else {
				console.log("Success: " + message);
			}
		};
	};

	console.log("This could take a while... hold on.");

	db._db.serialize(function() {
		db._db.run(
			'DROP INDEX "username"',
			callback("Drop username index")
		);
		db._db.run(
			'DROP INDEX "date"',<commit_msg>Fix derp in script<commit_after>const dbSource = require("../server/db");

var db;

dbSource({ setDb: (_) => { db = _; } }, () => {

	const callback = function(message) {
		return function(err, data) {
			if (err) {
				console.error("Error: " + message);
				//throw err;
			}
			else {
				console.log("Success: " + message);
			}
		};
	};

	console.log("This could take a while... hold on.");

	db._db.serialize(function() {
		db._db.run(
			'DROP INDEX "username"',
			callback("Drop username index")
		);
		db._db.run(
			'DROP INDEX "date"',
{'fraction_non_alphanumeric': 0.19724375538329025, 'fraction_numerical': 0.0, 'mean_word_length': 2.9794520547945207, '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': '5294271', 'n_tokens_mistral': 474, 'n_tokens_neox': 410, 'n_words': 92}