<commit_before>(function($){
    'use strict';

    var oldHeight;
    function res () {
        if($('.js-fullheight').height() !== oldHeight) {
            $('.js-fullheight').height($('.main-footer').position().top - 80);
        }
        oldHeight = $('.js-fullheight').height();
        console.log('vai');
    }

    $(function () {
    //     resizes();
        res();
        $(window).resize(res);
        $(document).bind('DOMSubtreeModified', res);
    });

    $(function () {
        if (window.location.pathname == '/courses') {
            $('#courses-tab').addClass('active');
        } else if (window.location.pathname == '/pages/about/') {
            $('#about-tab').addClass('active');
        } else if (window.location.pathname == '/pages/institute/') {
            $('#institute-tab').addClass('active');
        }
    });

})(window.jQuery);
<commit_msg>almost there<commit_after>(function($){
    'use strict';

    var oldHeight;
    function res () {
        var footerpos = $('.main-footer').position().top  -  $('header.main-header').outerHeight(true);
        $('.js-fullheight').each(function () {
            var $this = $(this);

            $(this).height(Math.max($(this).height(), this.scrollHeight));
            $this.height(footerpos - $this.position().top);
            // console.log($this.attr('class'), $this.height(), $this.innerHeight(), this.scrollHeight, $this.outerHeight());
        });

        oldHeight = $('.main-footer').position().top;
    }

    $(function () {
        // res();
        $(window).resize(res);
        // $(document).bind('DOMSubtreeModified', res);
        setTimeout(res, 500);
    });

    $(function () {
        if (window.location.pathname == '/courses') {
            $('#courses-tab').addClass('active');
        } else if (window.location.pathname == '/pages/about/') {
            $('#about-tab').addClass('active');
        } else if (window.location.pathname == '/pages/institute/') {
            $('#institute-tab').addClass('active');
        }
    });

})(window.jQuery);

{'fraction_non_alphanumeric': 0.22065955383123181, 'fraction_numerical': 0.0024248302618816685, 'mean_word_length': 2.243710691823899, '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': '2192747', 'n_tokens_mistral': 608, 'n_tokens_neox': 592, 'n_words': 86}