<commit_before>var fixcolumns = {

    highest: 0,

    init: function () {
        if (!document.getElementById || !document.createTextNode) {
            return;
        }

        fixcolumns.node = document.getElementById('recent');

        if (!fixcolumns.node) {
            return;
        }
        fixcolumns.fix('h2');
        fixcolumns.fix('p');
    },

    fix: function (elm) {
        fixcolumns.getHighest(elm);
        fixcolumns.fixElements(elm);
    },

    getHighest: function (elm) {
        fixcolumns.highest = 0;
        var temp = fixcolumns.node.getElementsByTagName(elm);
        for (var i = 0; i < temp.length; i++) {
            if (!temp[i].offsetHeight) {
                continue;
            }
            if (temp[i].offsetHeight > fixcolumns.highest) {
                fixcolumns.highest = temp[i].offsetHeight;
            }
        }
    },

    fixElements: function (elm) {
        var temp = fixcolumns.node.getElementsByTagName(elm);
        for (var i = 0; i < temp.length; i++) {
            temp[i].style.height = parseInt(fixcolumns.highest) + 'px';
        }
    }
}

var navHeader = document.querySelector('.navbar-toggle');
var collapsed = document.querySelector('.collapse');

navHeader.addEventListener("click", function () {
    if (collapsed.className.match(' collapse')) {
        collapsed.className = collapsed.className.replace(" collapse", ' ')
    } else {
        collapsed.className += ' collapse                               '
    }
});

fixcolumns.init();

/**
 * Made edits to cbpAnimatedHeader.js v1.0.0 to use vanilla JS for it's class toggling functionality than use another js library it ships with
 * cbpAnimatedHeader.js is licensed under the MIT by http://www.codrops.com
 */
var cbpAnimatedHeader = (function () {

    var docElem = document.documentElement,
        header = document.querySelector('.navbar-fixed-top'),
        fixed = document.querySelector('.fixed'),
        didScroll = false,
        changeHeaderOn = 300;

    function init() {
        window.addEventListener('scroll', function (event) {
            if (!didScroll) {
                didScroll = true;
                setTimeout(scrollPage, 250);
            }
        }, false);
    }

    function scrollPage() {
        var sy = scrollY();
        if (sy >= changeHeaderOn) {


            if (!isMatch()) {
                header.className += ' shrink';
            }
        } else {

            if (isMatch()) {
                header.className = header.className.replace(' shrink', '');
            }
        }
        didScroll = false;
    }

    function scrollY() {
        return window.pageYOffset || docElem.scrollTop;
    }

    function isMatch() {
        return header.className.match(' shrink');
    }

    init();
})();<commit_msg>javascript file<commit_after>var fixcolumns = {

    highest: 0,

    init: function () {
        if (!document.getElementById || !document.createTextNode) {
            return;
        }

        fixcolumns.node = document.getElementById('recent');

        if (!fixcolumns.node) {
            return;
        }
        fixcolumns.fix('h2');
        fixcolumns.fix('p');
    },

    fix: function (elm) {
        fixcolumns.getHighest(elm);
        fixcolumns.fixElements(elm);
    },

    getHighest: function (elm) {
        fixcolumns.highest = 0;
        var temp = fixcolumns.node.getElementsByTagName(elm);
        for (var i = 0; i < temp.length; i++) {
            if (!temp[i].offsetHeight) {
                continue;
            }
            if (temp[i].offsetHeight > fixcolumns.highest) {
                fixcolumns.highest = temp[i].offsetHeight;
            }
        }
    },

    fixElements: function (elm) {
        var temp = fixcolumns.node.getElementsByTagName(elm);
        for (var i = 0; i < temp.length; i++) {
            temp[i].style.height = parseInt(fixcolumns.highest) + 'px';
        }
    }
}

var navHeader = document.querySelector('.navbar-toggle');
var collapsed = document.querySelector('.collapse');

navHeader.addEventListener("click", function () {
    if (collapsed.className.match(' collapse')) {
        collapsed.className = collapsed.className.replace(" collapse", ' ')
    } else {
        collapsed.className += ' collapse                               '
    }
});

fixcolumns.init();


/**
 * Made edits to cbpAnimatedHeader.js v1.0.0 to use vanilla JS for it's class toggling functionality than use another js library it ships with
 * cbpAnimatedHeader.js is licensed under the MIT by http://www.codrops.com
 */
var cbpAnimatedHeader = (function () {

    var docElem = document.documentElement,
        header = document.querySelector('.navbar-fixed-top'),
        fixed = document.querySelector('.fixed'),
        didScroll = false,
        changeHeaderOn = 300;

    function init() {
        window.addEventListener('scroll', function (event) {
            if (!didScroll) {
                didScroll = true;
                setTimeout(scrollPage, 250);
            }
        }, false);
    }

    function scrollPage() {
        var sy = scrollY();
        if (sy >= changeHeaderOn) {


            if (!isMatch()) {
                header.className += ' shrink';
            }
        } else {

            if (isMatch()) {
                header.className = header.className.replace(' shrink', '');
            }
        }
        didScroll = false;
    }

    function scrollY() {
        return window.pageYOffset || docElem.scrollTop;
    }

    function isMatch() {
        return header.className.match(' shrink');
    }

    init();
})();

(function (i, s, o, g, r, a, m) {
    i['GoogleAnalyticsObject'] = r;
    i[r] = i[r] || function () {
        (i[r].q = i[r].q || []).push(arguments)
    }, i[r].l = 1 * new Date();
    a = s.createElement(o),
        m = s.getElementsByTagName(o)[0];
    a.async = 1;
    a.src = g;
    m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', '{{ site.googleanalytics }}', 'auto');
ga('send', 'pageview');
{'fraction_non_alphanumeric': 0.1385829360512905, 'fraction_numerical': 0.005096169653131678, 'mean_word_length': 1.9678048780487805, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '6828591', 'n_tokens_mistral': 1788, 'n_tokens_neox': 1700, 'n_words': 373}