<commit_before>/**
 * A container for banned keywords for variable names.
 */
export class BannedKeywordsBag {
    /**
     * Banned keywords, keyed in alphabetical order.
     */
    private bannedKeywords: { [i: string]: boolean };

    /**
     * Initalizes a new instance of the BannedKeywordsBag class.
     */
    constructor() {
        this.bannedKeywords = {
            "BEGIN": true,
            "END": true,
            "__ENCODING__": true,
            "__FILE__": true,
            "__LINE__": true,
            "abstract": true,
            "acos": true,
            "add": true,
            "alias": true,
            "and": true,
            "any": true,
            "array": true,
            "as": true,
            "asin": true,
            "assert": true,
            "async": true,
            "atan": true,
            "await": true,
            "base": true,
            "bool": true,
            "boolean": true,
            "break": true,
            "byte": true,
            "case": true,
            "catch": true,
            "char": true,
            "checked": true,
            "class": true,
            "close": true,
            "const": true,
            "constructor": true,
            "continue": true,
            "cos": true,
            "debugger": true,
            "decimal": true,
            "declare": true,
            "def": true,
            "default": true,
            "defined": true,
            "del": true,
            "delegate": true,
            "delete": true,
            "do": true,
            "double": true,
            "e": true,
            "elif": true,
            "else": true,
            "elsif": true,
            "ensure": true,
            "enum": true,
            "event": true,
            "except": true,
            "exec": true,
            "exp": true,
            "explicit": true,
            "export": true,
            "extends": true,
            "extern": true,
            "fabs": true,
            "false": true,
            "final": true,
            "finally": true,
            "fixed": true,
            "floor": true,
            "for": true,
            "foreach": true,
            "from": true,
            "function": true,
            "get": true,
            "global": true,
            "goto": true,
            "hasOwnProperty": true,
            "if": true,
            "implements": true,
            "implicit": true,
            "import": true,
            "in": true,
            "input": true,
            "instanceof": true,
            "interaface": true,
            "interface": true,
            "internal": true,
            "is": true,
            "lambda": true,
            "let": true,
            "lock": true,
            "log": true,
            "log10": true,
            "long": true,
            "module": true,
            "namespace": true,
            "native": true,
            "new": true,
            "next": true,
            "nil": true,
            "not": true,
            "null": true,
            "number": true,
            "object": true,
            "of": true,
            "open": true,
            "operator": true,
            "or": true,
            "out": true,
            "override": true,
            "package": true,
            "params": true,
            "partial": true,
            "pass": true,
            "pi": true,
            "print": true,
            "private": true,
            "protected": true,
            "public": true,
            "raise": true,
            "range": true,
            "readonly": true,
            "redo": true,
            "ref": true,
            "remove": true,
            "require": true,
            "rescue": true,
            "retry": true,
            "return": true,
            "sbyte": true,
            "sealed": true,
            "self": true,
            "set": true,
            "short": true,
            "sin": true,
            "sizeof": true,
            "sqrt": true,
            "stackalloc": true,
            "static": true,
            "strictfp": true,
            "string": true,
            "struct": true,
            "super": true,
            "switch": true,
            "symbol": true,
            "synchronized": true,
            "tan": true,
            "then": true,
            "this": true,
            "throw": true,
            "throwas": true,
            "throws": true,
            "transient": true,
            "true": true,
            "try": true,
            "type": true,
            "typeof": true,
            "uint": true,
            "ulong": true,
            "unchecked": true,
            "undef": true,
            "unless": true,
            "unsafe": true,
            "until": true,
            "ushort": true,
            "using": true,
            "value": true,
            "var": true,
            "virtual": true,
            "void": true,
            "volatile": true,
            "when": true,
            "where": true,
            "while": true,
            "with": true,
            "write": true,
            "yield": true,
            "zeros": true,
        };
    }

    /**
     * Returns whether the variable name is valid.
     * 
     * @param name  A variable name.
<<<<<<< HEAD
     * @returns Whether the variable name is valid.
=======
     * @returns A boolean determining the validity of the variable name.
>>>>>>> e0556598d201487b4eadb566680e0e9b1bdf766a
     */
    public validateName(alias: string): boolean {
        if (this.bannedKeywords[alias]) {
            return true;
        }

        return false;
    }
}
<commit_msg>Fixed conflicts for git pull<commit_after>/**
 * A container for banned keywords for variable names.
 */
export class BannedKeywordsBag {
    /**
     * Banned keywords, keyed in alphabetical order.
     */
    private bannedKeywords: { [i: string]: boolean };

    /**
     * Initalizes a new instance of the BannedKeywordsBag class.
     */
    constructor() {
        this.bannedKeywords = {
            "BEGIN": true,
            "END": true,
            "__ENCODING__": true,
            "__FILE__": true,
            "__LINE__": true,
            "abstract": true,
            "acos": true,
            "add": true,
            "alias": true,
            "and": true,
            "any": true,
            "array": true,
            "as": true,
            "asin": true,
            "assert": true,
            "async": true,
            "atan": true,
            "await": true,
            "base": true,
            "bool": true,
            "boolean": true,
            "break": true,
            "byte": true,
            "case": true,
            "catch": true,
            "char": true,
            "checked": true,
            "class": true,
            "close": true,
            "const": true,
            "constructor": true,
            "continue": true,
            "cos": true,
            "debugger": true,
            "decimal": true,
            "declare": true,
            "def": true,
            "default": true,
            "defined": true,
            "del": true,
            "delegate": true,
            "delete": true,
            "do": true,
            "double": true,
            "e": true,
            "elif": true,
            "else": true,
            "elsif": true,
            "ensure": true,
            "enum": true,
            "event": true,
            "except": true,
            "exec": true,
            "exp": true,
            "explicit": true,
            "export": true,
            "extends": true,
            "extern": true,
            "fabs": true,
            "false": true,
            "final": true,
            "finally": true,
            "fixed": true,
            "floor": true,
            "for": true,
            "foreach": true,
            "from": true,
            "function": true,
            "get": true,
            "global": true,
            "goto": true,
            "hasOwnProperty": true,
            "if": true,
            "implements": true,
            "implicit": true,
            "import": true,
            "in": true,
            "input": true,
            "instanceof": true,
            "interaface": true,
            "interface": true,
            "internal": true,
            "is": true,
            "lambda": true,
            "let": true,
            "lock": true,
            "log": true,
            "log10": true,
            "long": true,
            "module": true,
            "namespace": true,
            "native": true,
            "new": true,
            "next": true,
            "nil": true,
            "not": true,
            "null": true,
            "number": true,
            "object": true,
            "of": true,
            "open": true,
            "operator": true,
            "or": true,
            "out": true,
            "override": true,
            "package": true,
            "params": true,
            "partial": true,
            "pass": true,
            "pi": true,
            "print": true,
            "private": true,
            "protected": true,
            "public": true,
            "raise": true,
            "range": true,
            "readonly": true,
            "redo": true,
            "ref": true,
            "remove": true,
            "require": true,
            "rescue": true,
            "retry": true,
            "return": true,
            "sbyte": true,
            "sealed": true,
            "self": true,
            "set": true,
            "short": true,
            "sin": true,
            "sizeof": true,
            "sqrt": true,
            "stackalloc": true,
            "static": true,
            "strictfp": true,
            "string": true,
            "struct": true,
            "super": true,
            "switch": true,
            "symbol": true,
            "synchronized": true,
            "tan": true,
            "then": true,
            "this": true,
            "throw": true,
            "throwas": true,
            "throws": true,
            "transient": true,
            "true": true,
            "try": true,
            "type": true,
            "typeof": true,
            "uint": true,
            "ulong": true,
            "unchecked": true,
            "undef": true,
            "unless": true,
            "unsafe": true,
            "until": true,
            "ushort": true,
            "using": true,
            "value": true,
            "var": true,
            "virtual": true,
            "void": true,
            "volatile": true,
            "when": true,
            "where": true,
            "while": true,
            "with": true,
            "write": true,
            "yield": true,
            "zeros": true,
        };
    }

    /**
     * Returns whether the variable name is valid.
     * 
     * @param name  A variable name.
     * @returns A boolean determining the validity of the variable name.
     */
    public validateName(alias: string): boolean {
        if (this.bannedKeywords[alias]) {
            return true;
        }

        return false;
    }
}

{'fraction_non_alphanumeric': 0.13996217238584166, 'fraction_numerical': 0.0027019724398811133, 'mean_word_length': 1.0731889469753548, 'pattern_counts': {'":': 346, '<': 10, '<?xml version=': 0, '>': 10, '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': '7537261', 'n_tokens_mistral': 2995, 'n_tokens_neox': 2958, 'n_words': 835}