<commit_before>"use strict";

const log = require("../../log");
const path = require("path");
const fsextra = require("fs-extra");
const Helper = require("../../helper");
const Msg = require("../../models/msg");

let sqlite3;

try {
	sqlite3 = require("sqlite3");
} catch (e) {
	Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");

	log.error("Unable to load sqlite3 module. You might need to install it manually.");
}

const currentSchemaVersion = 1520239200;

const schema = [
	// Schema version #1<commit_msg>Change unable to load sqlite3 message<commit_after>"use strict";

const log = require("../../log");
const path = require("path");
const fsextra = require("fs-extra");
const Helper = require("../../helper");
const Msg = require("../../models/msg");

let sqlite3;

try {
	sqlite3 = require("sqlite3");
} catch (e) {
	Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");

	log.error("Unable to load node-sqlite3 module. See https://github.com/mapbox/node-sqlite3/wiki/Binaries");
}

const currentSchemaVersion = 1520239200;

const schema = [
	// Schema version #1
{'fraction_non_alphanumeric': 0.1834625322997416, 'fraction_numerical': 0.02756244616709733, 'mean_word_length': 4.354838709677419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '1541930', 'n_tokens_mistral': 379, 'n_tokens_neox': 360, 'n_words': 95}