<commit_before>$(window).keydown(function(event) {
    var model = null;
    
    if ($('input, textarea').is(":focus")) {
        return; // Shouldn't the other keypresses make sure the event isn't propagated here?
    }
    
	//console.log(event.keyCode);
    switch(event.keyCode) {
        case 32: // Space
            player.playPause();
            event.preventDefault();
            break;
        case 27: // ESC
            Utils.closeAnyOpenArrowPopup();
            $('.modalbox').click();
            $('#context-menu-blocker').mousedown();
            FullScreen.off();
            event.preventDefault();
            break;
        case 13: // Enter
            $('#results li.selected').dblclick();
            break;
        case 37: // Left
            if (event.ctrlKey || event.metaKey) {
                player.prev();
            }
            if (event.shiftKey) {
                player.seek(-5);
            }
            break;
        case 38: // Up
            if (event.ctrlKey || event.metaKey) {
                player.setRelativeVolume(10);
            }
            else {
                model = $('#right > div:visible .tracklist .video.selected:first').prev().data('model');
                if (model) {
                    if (event.shiftKey) {
                        model.listViewSelect(event);
                    } else {
                        model.listViewSelect();
                    }
                }
            }
			event.preventDefault();
            break;
        case 39: // Right
            if (event.ctrlKey || event.metaKey) {
                player.next();
            }
            if (event.shiftKey) {
                player.seek(5);
            }
            break;
        case 40: // Down
            if (event.ctrlKey || event.metaKey) {
                player.setRelativeVolume(-10);
            }
            else {
                model = $('#right > div:visible .tracklist .video.selected:last').next().data('model');
                if (model) {
                    if (event.shiftKey) {
                        model.listViewSelect(event);
                    } else {
                        model.listViewSelect();
                    }
                }
            }
			event.preventDefault();
            break;
		case 65: // A
            if (event.ctrlKey || event.metaKey) {
                $('#results-container li.selected').siblings().addClass('selected');
            }
			event.preventDefault();<commit_msg>Fixed select all keyboard shortcut<commit_after>$(window).keydown(function(event) {
    var model = null;
    
    if ($('input, textarea').is(":focus")) {
        return; // Shouldn't the other keypresses make sure the event isn't propagated here?
    }
    
	//console.log(event.keyCode);
    switch(event.keyCode) {
        case 32: // Space
            player.playPause();
            event.preventDefault();
            break;
        case 27: // ESC
            Utils.closeAnyOpenArrowPopup();
            $('.modalbox').click();
            $('#context-menu-blocker').mousedown();
            FullScreen.off();
            event.preventDefault();
            break;
        case 13: // Enter
            $('#results li.selected').dblclick();
            break;
        case 37: // Left
            if (event.ctrlKey || event.metaKey) {
                player.prev();
            }
            if (event.shiftKey) {
                player.seek(-5);
            }
            break;
        case 38: // Up
            if (event.ctrlKey || event.metaKey) {
                player.setRelativeVolume(10);
            }
            else {
                model = $('#right > div:visible .tracklist .video.selected:first').prev().data('model');
                if (model) {
                    if (event.shiftKey) {
                        model.listViewSelect(event);
                    } else {
                        model.listViewSelect();
                    }
                }
            }
			event.preventDefault();
            break;
        case 39: // Right
            if (event.ctrlKey || event.metaKey) {
                player.next();
            }
            if (event.shiftKey) {
                player.seek(5);
            }
            break;
        case 40: // Down
            if (event.ctrlKey || event.metaKey) {
                player.setRelativeVolume(-10);
            }
            else {
                model = $('#right > div:visible .tracklist .video.selected:last').next().data('model');
                if (model) {
                    if (event.shiftKey) {
                        model.listViewSelect(event);
                    } else {
                        model.listViewSelect();
                    }
                }
            }
			event.preventDefault();
            break;
		case 65: // A
            if (event.ctrlKey || event.metaKey) {
                $('#right > div:visible .tracklist .video').siblings().addClass('selected');
            }
			event.preventDefault();
{'fraction_non_alphanumeric': 0.12826130252937662, 'fraction_numerical': 0.00876319458275244, 'mean_word_length': 1.1370212765957446, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 8, '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': '2598924', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1242, 'n_words': 239}