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

// https://stackoverflow.com/a/1584377
Array.prototype.unique = function() {
    const a = this.concat();
    for (let i = 0; i < a.length; ++i) {
        for (let j = i + 1; j < a.length; ++j) {
            if (a[i] === a[j])
                a.splice(j--, 1);
        }
    }

    return a;
};

module.exports = class Auth {
    constructor(config) {
        try {
            fs.readFileSync("./db/helper_Auth.json");
            this.db = JSON.parse(data);
            this.db._globalAdmins = this.db._globalAdmins.concat(config.globalAdmins).unique();
        } catch (err) {
            this.db = {
                auth: {},
                _globalAdmins: config.globalAdmins
            };
        }
    }
<commit_msg>Add missing variable<commit_after>const fs = require("fs");

// https://stackoverflow.com/a/1584377
Array.prototype.unique = function() {
    const a = this.concat();
    for (let i = 0; i < a.length; ++i) {
        for (let j = i + 1; j < a.length; ++j) {
            if (a[i] === a[j])
                a.splice(j--, 1);
        }
    }

    return a;
};

module.exports = class Auth {
    constructor(config) {
        try {
            const data = fs.readFileSync("./db/helper_Auth.json", "utf-8");
            this.db = JSON.parse(data);
            this.db._globalAdmins = this.db._globalAdmins.concat(config.globalAdmins).unique();
        } catch (err) {
            this.db = {
                auth: {},
                _globalAdmins: config.globalAdmins
            };
        }
    }

{'fraction_non_alphanumeric': 0.16079436258808455, 'fraction_numerical': 0.013452914798206279, 'mean_word_length': 1.6033333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7617471', 'n_tokens_mistral': 535, 'n_tokens_neox': 512, 'n_words': 99}