<commit_before>var VerticalJustify = function() {

    var windows_height = 0;
    var tot_height = 0;
    var margin = 0;
    var div_logo = null;

    return {
        //main function to initiate the module
        init: function() {
            div_logo = $('#logo').closest('div');
            margin = parseInt(div_logo.css('padding-top')) + parseInt(div_logo.css('margin-top'));
            tot_height = $('#logo').height() + parseInt(div_logo.css('padding-top')) + parseInt(div_logo.css('margin-top')) + 
                         $('#content').height() + parseInt($('#content').css('padding-bottom')) + parseInt($('#content').css('margin-bottom')) +
            this._giustifica();
            $(window).resize(this._giustifica);
        },
        _giustifica: function() {
            windows_height = $(window).height();
                         $('#countdown').height() + parseInt($('#countdown').css('padding-top')) + parseInt($('#countdown').css('margin-top'));
            if(tot_height + margin < windows_height) {
                $('#content').css('margin-top', (windows_height - tot_height - margin) + 'px');
            } else {
                $('#content').css('margin-top', '0px');
            }
        }
    };

}();<commit_msg>Riga dimenticata tornata a posto<commit_after>var VerticalJustify = function() {

    var windows_height = 0;
    var tot_height = 0;
    var margin = 0;
    var div_logo = null;

    return {
        //main function to initiate the module
        init: function() {
            div_logo = $('#logo').closest('div');
            margin = parseInt(div_logo.css('padding-top')) + parseInt(div_logo.css('margin-top'));
            tot_height = $('#logo').height() + parseInt(div_logo.css('padding-top')) + parseInt(div_logo.css('margin-top')) + 
                         $('#content').height() + parseInt($('#content').css('padding-bottom')) + parseInt($('#content').css('margin-bottom')) +
                         $('#countdown').height() + parseInt($('#countdown').css('padding-top')) + parseInt($('#countdown').css('margin-top'));
            this._giustifica();
            $(window).resize(this._giustifica);
        },
        _giustifica: function() {
            windows_height = $(window).height();
            if(tot_height + margin < windows_height) {
                $('#content').css('margin-top', (windows_height - tot_height - margin) + 'px');
            } else {
                $('#content').css('margin-top', '0px');
            }
        }
    };

}();
{'fraction_non_alphanumeric': 0.19119397064656882, 'fraction_numerical': 0.0031733439111463705, 'mean_word_length': 2.2967320261437907, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3017493', 'n_tokens_mistral': 706, 'n_tokens_neox': 708, 'n_words': 116}