<commit_before>function mathjax_pagedown($) {
    if ('MathJax' in window) {
        $(window).load(function () {
            $.each(window.editors, function (id, editor) {
                var preview = $('div.wmd-preview#' + id + '_wmd_preview')[0];
                editor.hooks.chain('onPreviewRefresh', function () {
                    MathJax.Hub.Queue(["Typeset", MathJax.Hub, preview]);
                });
                MathJax.Hub.Queue(["Typeset", MathJax.Hub, preview]);
            });
        });
    }
};

window.mathjax_pagedown = mathjax_pagedown;

(mathjax_pagedown)('$' in window ? $ : django.jQuery);<commit_msg>Do not think one should register a handler; #440<commit_after>function mathjax_pagedown($) {
    if ('MathJax' in window) {
        $.each(window.editors, function (id, editor) {
            var preview = $('div.wmd-preview#' + id + '_wmd_preview')[0];
            editor.hooks.chain('onPreviewRefresh', function () {
                MathJax.Hub.Queue(["Typeset", MathJax.Hub, preview]);
            });
            MathJax.Hub.Queue(["Typeset", MathJax.Hub, preview]);
        });
    }
}

window.mathjax_pagedown = mathjax_pagedown;

$(window).load(function () {
    (mathjax_pagedown)('$' in window ? $ : django.jQuery);
});
{'fraction_non_alphanumeric': 0.16746031746031745, 'fraction_numerical': 0.003968253968253968, 'mean_word_length': 2.4738292011019283, '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': '1522687', 'n_tokens_mistral': 412, 'n_tokens_neox': 401, 'n_words': 67}