<commit_before>// PFUDOR.tk JavaScript Library -- Player

var player;
function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
        height: '480',
        width: '853',
        videoId: vidid,
        playerVars: {
            'rel': 0,
            'modestbranding': 1,
            'iv_load_policy': 3,
            'autohide': 1,
            'showinfo': 0,
            'loop': 1,
            'playlist': vidid,
            'controls': ctrls,
            'autoplay': 1,
            'start': start,
            'end': end
        },
        events: {
            'onReady': onPlayerReady
        }
    });
}

function vid_play(){
    $('#modal').remove();
    $('#credits').css({'display':'inline'});
    $('#ref').css({'display':'inline'});
    player.playVideo();
}

function vid_pause(){
    player.pauseVideo();
}

function onPlayerReady() {
    $('#loading').remove();
}

// Apply filters
$(function() {
    $('#player').css({'-webkit-filter':'blur(' + blur + 'px) grayscale(' + gray + '%) sepia(' + sepia + '%)'});
});
<commit_msg>Hide cursor if idle<commit_after>// PFUDOR.tk JavaScript Library -- Player

var player;
function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
        height: '480',
        width: '853',
        videoId: vidid,
        playerVars: {
            'rel': 0,
            'modestbranding': 1,
            'iv_load_policy': 3,
            'autohide': 1,
            'showinfo': 0,
            'loop': 1,
            'playlist': vidid,
            'controls': ctrls,
            'autoplay': 1,
            'start': start,
            'end': end
        },
        events: {
            'onReady': onPlayerReady
        }
    });
}

function vid_play(){
    $('#modal').remove();
    $('#credits').css({'display':'inline'});
    $('#ref').css({'display':'inline'});
    player.playVideo();
}

function vid_pause(){
    player.pauseVideo();
}

function onPlayerReady() {
    $('#loading').remove();
}

// Apply filters
$(function() {
    $('#player').css({'-webkit-filter':'blur(' + blur + 'px) grayscale(' + gray + '%) sepia(' + sepia + '%)'});
});

// Hide cursor if idle
$(function() {
    var mouse_idle_timer;
    $("body").css({'cursor':'none'});
    $("body").mousemove(function() {
            $("body").css({'cursor':''});
            clearTimeout(mouse_idle_timer);

            mouse_idle_timer = setTimeout(function() {
                $("body").css('cursor', 'none');

                var mouse_force_hide = true;
                setTimeout(function() {
                    mouse_force_hide = false;
                }, 200);
            }, 1000);
        }
    );
});

{'fraction_non_alphanumeric': 0.1931346661637118, 'fraction_numerical': 0.012448132780082987, 'mean_word_length': 1.93687707641196, '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': '7007245', 'n_tokens_mistral': 857, 'n_tokens_neox': 825, 'n_words': 158}