<commit_before>var tree = require('mess/tree');

tree.Zoom = function(op, value, index) {
    if (!op) {
        return zoom.all;
    }

    value = parseInt(value);
    if (value > tree.Zoom.maxZoom || value < 0) {
        throw {
            message: 'Only zoom levels between 0 and ' + tree.Zoom.maxZoom + ' supported.',
            index: index
        };
    }

    var start = 0, end = Infinity, zoom = 0;
    switch (op) {
        case '=': return 1 << value; break;
        case '>': start = value + 1; break;
        case '>=': start = value; break;
        case '<': end = value - 1; break;
        case '<=': end = value; break;
    }
    for (var i = 0; i <= tree.Zoom.maxZoom; i++) {
        if (i >= start && i <= end) {<commit_msg>we never call it without an operator.<commit_after>var tree = require('mess/tree');

tree.Zoom = function(op, value, index) {
    value = parseInt(value);
    if (value > tree.Zoom.maxZoom || value < 0) {
        throw {
            message: 'Only zoom levels between 0 and ' + tree.Zoom.maxZoom + ' supported.',
            index: index
        };
    }

    var start = 0, end = Infinity, zoom = 0;
    switch (op) {
        case '=': return 1 << value; break;
        case '>': start = value + 1; break;
        case '>=': start = value; break;
        case '<': end = value - 1; break;
        case '<=': end = value; break;
    }
    for (var i = 0; i <= tree.Zoom.maxZoom; i++) {
        if (i >= start && i <= end) {
{'fraction_non_alphanumeric': 0.16473791695030632, 'fraction_numerical': 0.010891763104152484, 'mean_word_length': 1.9166666666666667, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 11, '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': '5134468', 'n_tokens_mistral': 485, 'n_tokens_neox': 465, 'n_words': 150}