<commit_before>(function (global) {
    'use strict';
    global.keys = Object.keys;
    global.type = function (x) {
        if (x === null) { return 'null'; }
        if (typeof x === 'object' && Object.prototype.toString.call(x) === '[object Array]') { return 'array'; }
        return typeof x;
    };
    global.str = function (x) {
        if (typeof x === 'object') { return JSON.stringify(x); }
        return String(x);
    };
    global.print = function (x) {
        console.log(x);
        return null;
    };
    global.len = function (x) {
        if (global.type(x) === 'object') { return Object.keys(x).length; }
        return x.length;
    };
    global.del = function (x, y) {
        if (global.type(x) === 'array') {
            x.splice(y, 1);
            return true;
        }
        return delete x[y];
    };
    global.append = function (arr, elt) { arr.push(elt);  return global.len(arr); };
    global.assert = function (expr, msg) {
        if (expr) { return null; }
        throw new Error('AssertionError: ' + global.str(msg));
    };
    global.ord = function (c) { return c.charCodeAt[0]; };
    global.chr = function (i) { return String.fromCharCode(i); };
    global.math = Math;
}(this));<commit_msg>Fixed ord() in equalizeLJ.js<commit_after>(function (global) {
    'use strict';
    global.keys = Object.keys;
    global.type = function (x) {
        if (x === null) { return 'null'; }
        if (typeof x === 'object' && Object.prototype.toString.call(x) === '[object Array]') { return 'array'; }
        return typeof x;
    };
    global.str = function (x) {
        if (typeof x === 'object') { return JSON.stringify(x); }
        return String(x);
    };
    global.print = function (x) {
        console.log(x);
        return null;
    };
    global.len = function (x) {
        if (global.type(x) === 'object') { return Object.keys(x).length; }
        return x.length;
    };
    global.del = function (x, y) {
        if (global.type(x) === 'array') {
            x.splice(y, 1);
            return true;
        }
        return delete x[y];
    };
    global.append = function (arr, elt) { arr.push(elt);  return global.len(arr); };
    global.assert = function (expr, msg) {
        if (expr) { return null; }
        throw new Error('AssertionError: ' + global.str(msg));
    };
    global.ord = function (c) { return c.charCodeAt(0); };
    global.chr = function (i) { return String.fromCharCode(i); };
    global.math = Math;
}(this));
{'fraction_non_alphanumeric': 0.17529081427998394, 'fraction_numerical': 0.001604492579221821, 'mean_word_length': 2.2097812097812097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4065561', 'n_tokens_mistral': 802, 'n_tokens_neox': 799, 'n_words': 200}