<commit_before>var BottomPanel = {
    init: function() {
        // TITLE
        EventSystem.addEventListener('video_info_fetched', function(info) {
            BottomPanel.setTitleText(info.title);
        });

        $('#bottom .info .i').click(function() {
            if (player.currentVideo) {
                $(this).arrowPopup('#video-info-popup', 'down');
            }
        });
        $('#bottom .info .title').bind('contextmenu', function(event) {
            if (player.currentVideo) {
                showResultsItemContextMenu(event, player.currentVideo.listView);
            }
            return false;
        });

        // CONTROLS
        $('#bottom .controls .playpause').click(player.playPause);
        $('#bottom .controls .next').click(player.next);
        $('#bottom .controls .prev').click(player.prev);
        
        // FULLSCREEN
        $('#bottom .fullscreen').click(function(event) {
            $(this).toggleClass('on');
            player.toggleFullScreen(event);
        });
        
        // SHUFFLE
        $('#bottom .shuffle').click(function() {
            $(this).toggleClass('on');
        });
    },
    setTitleText: function(titleText) {
        $('#bottom .info .i').css({'display': 'inline-block'});
        $('#bottom .info .title')
            .text(titleText)
            .attr('title', titleText);
    }<commit_msg>Fix shuffle button bug. Closes #177<commit_after>var BottomPanel = {
    init: function() {
        // TITLE
        EventSystem.addEventListener('video_info_fetched', function(info) {
            BottomPanel.setTitleText(info.title);
        });

        $('#bottom .info .i').click(function() {
            if (player.currentVideo) {
                $(this).arrowPopup('#video-info-popup', 'down');
            }
        });
        $('#bottom .info .title').bind('contextmenu', function(event) {
            if (player.currentVideo) {
                showResultsItemContextMenu(event, player.currentVideo.listView);
            }
            return false;
        });

        // CONTROLS
        $('#bottom .controls .playpause').click(player.playPause);
        $('#bottom .controls .next').click(player.next);
        $('#bottom .controls .prev').click(player.prev);
        
        // FULLSCREEN
        $('#bottom .fullscreen').click(function(event) {
            $(this).toggleClass('on');
            player.toggleFullScreen(event);
        });
        
        // SHUFFLE
        $('#bottom .shuffle').click(function() {
            $(this).toggleClass('on');
            if (player.currentVideo && player.currentVideo.listView) {
                Queue.addSiblingsToPlayorder(player.currentVideo.listView);
            }
        });
    },
    setTitleText: function(titleText) {
        $('#bottom .info .i').css({'display': 'inline-block'});
        $('#bottom .info .title')
            .text(titleText)
            .attr('title', titleText);
    }
{'fraction_non_alphanumeric': 0.16615698267074414, 'fraction_numerical': 0.0010193679918450561, 'mean_word_length': 1.875, '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': '733725', 'n_tokens_mistral': 805, 'n_tokens_neox': 802, 'n_words': 121}