<commit_before>(function($, undefined) {

    // Define $().on('enterkey', ...)  special event
    function defineSpecialKeyEvent(name, which, shift) {
        shift = shift || false;
        $.event.special[name] = {
            setup: function(data, namespaces) {
                $(this).on('keydown', jQuery.event.special[name].handler);
            },

            teardown: function(namespaces) {
                $(this).off('keydown', jQuery.event.special[name].handler);
            },

            handler: function(event) {
                if (event.which === which && event.shiftKey === shift) {
                    event.type = name;
                    jQuery.event.handle.apply(this, arguments);
                }
            }
        };
    }


    var keys = {
        backspace: 8,
        'delete': 46,
        left: 37,
        up: 38,
        right: 39,
        down: 40,
        tab: 9,
        enter: 13,
        space: 32,
        escape: 27,
        esc: 27
    };

<commit_msg>updated for new jquery versions<commit_after>(function($, undefined) {

    // Define $().on('enterkey', ...)  special event
    function defineSpecialKeyEvent(name, which, shift) {
        shift = shift || false;
        $.event.special[name] = {
            setup: function(data, namespaces) {
                $(this).on('keydown', jQuery.event.special[name].handler);
            },

            teardown: function(namespaces) {
                $(this).off('keydown', jQuery.event.special[name].handler);
            },

            handler: function(event) {
                if (event.which === which && event.shiftKey === shift) {
                    event.type = name;
                    ($.event.dispatch || $.event.handle).apply(this, arguments);
                }
            }
        };
    }


    var keys = {
        backspace: 8,
        'delete': 46,
        left: 37,
        up: 38,
        right: 39,
        down: 40,
        tab: 9,
        enter: 13,
        space: 32,
        escape: 27,
        esc: 27
    };


{'fraction_non_alphanumeric': 0.14222658165767532, 'fraction_numerical': 0.0196174595389897, 'mean_word_length': 1.4028268551236749, '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': '5285858', 'n_tokens_mistral': 619, 'n_tokens_neox': 554, 'n_words': 121}