<commit_before>'use strict';

define(['./operators'], function (operators) {
    return function (string) {
        var opRegExps = [];
        for (var op in operators) {
            opRegExps.push(operators[op].regExp);
        }
        return string
                .toLowerCase()
                .match(new RegExp("(\\d+(\\.\\d+)?)|\\(|\\)|" + opRegExps.join('|'), 'g'));
    };
});<commit_msg>Improve tokenizer<commit_after>'use strict';

define(['./operators'], function (operators) {
    return function (string) {
        var opRegExps = [];
        for (var op in operators) {
            opRegExps.push(operators[op].regExp);
        }
        return string
                .toLowerCase()
                .match(new RegExp("(\\d+(\\.\\d+)?)|\\(|\\)|" + opRegExps.join('|'), 'g')) || [];
    };
});
{'fraction_non_alphanumeric': 0.21287128712871287, 'fraction_numerical': 0.0, 'mean_word_length': 1.974264705882353, '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': '3265462', 'n_tokens_mistral': 261, 'n_tokens_neox': 257, 'n_words': 47}