<commit_before>var S = 'seconds';
var MS = 'milliseconds';
var NS = 'nanoseconds';

function hirestime() {
    var start = process.hrtime();

    return function(unit) {
        var elapsed = process.hrtime(start);

        var time;
        if(unit === S) time = elapsed[0] + elapsed[1] / 1e9;
        else if(unit === NS) time = elapsed[0] * 1e9 + elapsed[1];
        else if(unit === MS || !unit || !time) time = elapsed[0] * 1e3 + elapsed[1] / 1e6;

        return parseInt(time * 100, 10) / 100;
    }
}

hirestime.S = S;
hirestime.MS = MS;
hirestime.NS = NS;<commit_msg>cosmetics<commit_after>var S = 's';
var MS = 'ms';
var NS = 'ns';

function hirestime() {
    var start = process.hrtime();

    return function (unit) {
        var elapsed = process.hrtime(start);

        var time;
        if (unit === S) time = elapsed[0] + elapsed[1] / 1e9;
        else if (unit === NS) time = elapsed[0] * 1e9 + elapsed[1];
        else if (unit === MS || !unit || !time) time = elapsed[0] * 1e3 + elapsed[1] / 1e6;

        return parseInt(time * 100, 10) / 100;
    }
}

hirestime.S = S;
hirestime.MS = MS;
hirestime.NS = NS;
{'fraction_non_alphanumeric': 0.16858917480035493, 'fraction_numerical': 0.03904170363797693, 'mean_word_length': 2.558359621451104, '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': '7158495', 'n_tokens_mistral': 453, 'n_tokens_neox': 411, 'n_words': 113}