<commit_before>$(document).ready(function() {
    $('.swiper-slide').bind('DOMSubtreeModified', function(e) { // Track segment changes
        setTimeout(triggerHook, 50);
    });

    function triggerHook () {
        var hook = $('.swiper-slide-active .slide-hook'); // Find custom hook in segment content, see notes at end.
        if (hook) {
            var slide_num = $(hook).attr('data-slide');
            $('iframe').contents().find('*[nr="'+ slide_num +'"] .slideButton').click(); // Trigger the jump by faking a click on the hidden slide button.
        }
    }

    // EXTRA: Presentation Mode //

    var pMode = false;

    window.addEventListener('keydown', function(k) {
        switch(k.keyCode) {
        case 'p':
            if (!pMode) {
                $('.linkSocialContainer').hide();
                $('iframe').contents().find('#slideDeckContainer').hide();<commit_msg>using jquery for keypress event<commit_after>$(document).ready(function() {
    $('.swiper-slide').bind('DOMSubtreeModified', function(e) { // Track segment changes
        setTimeout(triggerHook, 50);
    });

    function triggerHook () {
        var hook = $('.swiper-slide-active .slide-hook'); // Find custom hook in segment content, see notes at end.
        if (hook) {
            var slide_num = $(hook).attr('data-slide');
            $('iframe').contents().find('*[nr="'+ slide_num +'"] .slideButton').click(); // Trigger the jump by faking a click on the hidden slide button.
        }
    }

    // EXTRA: Presentation Mode //

    var pMode = false;

    $(document).on("keypress", function (e) {
        console.log(e.which);
        switch(e.which) {
        case 'p':
            if (!pMode) {
                $('.linkSocialContainer').hide();
                $('iframe').contents().find('#slideDeckContainer').hide();
{'fraction_non_alphanumeric': 0.1736755871108684, 'fraction_numerical': 0.002184598580010923, 'mean_word_length': 2.4115456238361266, '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': '1587823', 'n_tokens_mistral': 533, 'n_tokens_neox': 507, 'n_words': 123}