<commit_before>$(function() {
    function scrollToAnchor(anchor) {
        if (anchor) {
            var element = $('a[name="' + anchor.slice(1) + '"]');
            if (element.length > 0) {
                $.scrollTo(element, 500, {offset: {top: -50, left: 0}});
                $(element).highlightFade('yellow');
                window.location.hash = anchor;
            }
        }
    }

    $.highlightFade.defaults.speed = 3000;
    $('#toc').hide();
    if ($('#toc li').length == 0) {
        $('#menu li a[href="#toc"]').remove();
    }<commit_msg>fixed footnotes highlighting<commit_after>$(function() {
    function scrollToAnchor(anchor) {
        if (anchor) {
            var anchor_name = anchor.slice(1);
            var element = $('a[name="' + anchor_name + '"]');
            if (element.length > 0) {
                $.scrollTo(element, 500, {offset: {top: -50, left: 0}});
                foot_elem = $('#footnotes a[name="' + anchor_name + '"]');
                if (foot_elem.length > 0) {
                    $(element).parent().highlightFade('yellow');
                }
                window.location.hash = anchor;
            }
        }
    }

    $.highlightFade.defaults.speed = 3000;
    $('#toc').hide();
    if ($('#toc li').length == 0) {
        $('#menu li a[href="#toc"]').remove();
    }
{'fraction_non_alphanumeric': 0.19369369369369369, 'fraction_numerical': 0.02027027027027027, 'mean_word_length': 1.8063157894736843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4914744', 'n_tokens_mistral': 435, 'n_tokens_neox': 385, 'n_words': 76}