<commit_before>global.fs = require("fs");
global.speakerPhoneBinds = require("./speakerphonemodule");
global.queries = require("./queries/index");
global.userQuery = queries.user;
require("./checkConfig")();
require("./discord")();
global.web = require("./webserver/index");
global.db = require("rethinkdbdash")(config.connectionOpts);
global.moment = require("moment");
global.momentTz = require("moment-timezone");
global.decimalToHex = function (d) {
    var hex = Number(d).toString(16);
    hex = "000000".substr(0, 6 - hex.length) + hex;
    return hex;
};
global.format = require("util").format;
global.getUptime = function getUptime(moment1, moment2) {
    var diff = moment.duration(moment1.diff(moment2));
    var diffString = `${diff.days() > 0 ? diff.days() + " days, " : ""}${diff.hours() > 0 ? diff.hours() + " hours, " : ""}${diff.minutes()} minutes, and ${diff.seconds()} seconds`;
    return diffString;
};
const {encrypt, decrypt} = require("./dataMan");
global.encryptData = encrypt;
global.decryptData = decrypt;<commit_msg>Use much modern methods<commit_after>global.fs = require("fs");
global.speakerPhoneBinds = require("./speakerphonemodule");
global.queries = require("./queries/index");
global.userQuery = queries.user;
require("./checkConfig")();
require("./discord")();
global.web = require("./webserver/index");
global.db = require("rethinkdbdash")(config.connectionOpts);
global.moment = require("moment");
global.momentTz = require("moment-timezone");
global.decimalToHex = function (d) {
    let hex = Number(d).toString(16);
    hex = hex.padStart(6, "0")
    return hex;
};
global.format = require("util").format;
global.getUptime = function getUptime(moment1, moment2) {
    var diff = moment.duration(moment1.diff(moment2));
    var diffString = `${diff.days() > 0 ? diff.days() + " days, " : ""}${diff.hours() > 0 ? diff.hours() + " hours, " : ""}${diff.minutes()} minutes, and ${diff.seconds()} seconds`;
    return diffString;
};
const {encrypt, decrypt} = require("./dataMan");
global.encryptData = encrypt;
global.decryptData = decrypt;
{'fraction_non_alphanumeric': 0.1974000962927299, 'fraction_numerical': 0.012518054886856042, 'mean_word_length': 5.259036144578313, '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': '1625942', 'n_tokens_mistral': 692, 'n_tokens_neox': 676, 'n_words': 130}