<commit_before>(function($) {
    $(function() {
        var videobackground = new $.backgroundVideo($('.background-day-to-day'), {
            "align" : "centerXY",
            "path" : "video/",
            "width": 854,
            "height": 480,
            "filename" : "preview",
            "types" : ["mp4", "ogg", "webm"]
        });

        // Sections height & scrolling
        $(window).resize(function() {
            var sH = $(window).height();
            $('section').css('height', (sH + 'px'));
        });        

        // Parallax
        $('section').each(function() {
            $(this).parallax('50%', 0.3, true);
        });

        $(window).resize().scroll();

        // Scroll to next section
        $('.control-btn').on('click', function() {
            $.scrollTo($(this).closest('header, section').next(), {
                axis : 'y',
                duration : 500
            });
            return false;
        });

    });

    $(window).load(function() {
        $('html').addClass('loaded');
        $(window).resize().scroll();
    });
})(jQuery);<commit_msg>Fixed nested document ready calls in JS.<commit_after>$(function() {
    var videobackground = new $.backgroundVideo($('.background-day-to-day'), {
        "align" : "centerXY",
        "path" : "video/",
        "width": 854,
        "height": 480,
        "filename" : "preview",
        "types" : ["mp4", "ogg", "webm"]
    });

    // Sections height & scrolling
    $(window).resize(function() {
        var sH = $(window).height();
        $('header, section').css('height', (sH + 'px'));
    });

    // Parallax
    $('header, section').each(function() {
        $(this).parallax('50%', 0.3, true);
    });

    // Scroll to next section
    $('.control-btn').on('click', function() {
        $.scrollTo($(this).closest('header, section').next(), {
            axis : 'y',
            duration : 500
        });
        return false;
    });


    $('html').addClass('loaded');
});
{'fraction_non_alphanumeric': 0.21532298447671508, 'fraction_numerical': 0.014021031547320982, 'mean_word_length': 1.8140845070422535, 'pattern_counts': {'":': 4, '<': 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': '3041312', 'n_tokens_mistral': 616, 'n_tokens_neox': 575, 'n_words': 110}