<commit_before>$(document).ready(function() {
    // Code blocks highlighting
    $('pre code').each(function(i, block) {
        // Remove newline from CloudFlare's e-mail protection script
        $(this).find('script').each(function () {
            $(this).text($(this).text().trim());
        });

        // Add line numbers
        if (!$(this).is('.language-bash')) {
            var lines = $(this).text().trim().split('\n').length;
            var $numbering = $('<ul/>').addClass('pre-numbering');
            $(this).parent().addClass('has-numbering').prepend($numbering);

            for (var i = 1; i <= lines; i++){
                $numbering.append($('<li/>').text(i));
            }
        }
        $(this).parent().addClass('highlighted');

        // Highlight code block
        hljs.highlightBlock(block);
    });

    // Anchor headings
    $('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
        $(this).wrapInner('<a class="heading-link" href="'+window.location.pathname+'#'+$(this).attr('id')+'"></a>');
    });

    // Update javascript variable currentSection for sidebar and hash events.
    // Note: currentSection is docs element currently active
    var currentSection = null;
    var docElements = $('h1[id], h2[id]', '.docs');
    $(document).on('scroll', function (event) {
        // Check to see what is on screen right now
        for (var i = 0; i < docElements.length; i++) {<commit_msg>added init hash to javascript. avoids console err<commit_after>$(document).ready(function() {
    // Code blocks highlighting
    $('pre code').each(function(i, block) {
        // Remove newline from CloudFlare's e-mail protection script
        $(this).find('script').each(function () {
            $(this).text($(this).text().trim());
        });

        // Add line numbers
        if (!$(this).is('.language-bash')) {
            var lines = $(this).text().trim().split('\n').length;
            var $numbering = $('<ul/>').addClass('pre-numbering');
            $(this).parent().addClass('has-numbering').prepend($numbering);

            for (var i = 1; i <= lines; i++){
                $numbering.append($('<li/>').text(i));
            }
        }
        $(this).parent().addClass('highlighted');

        // Highlight code block
        hljs.highlightBlock(block);
    });

    // Anchor headings
    $('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
        $(this).wrapInner('<a class="heading-link" href="'+window.location.pathname+'#'+$(this).attr('id')+'"></a>');
    });

    // Update javascript variable currentSection for sidebar and hash events.
    // Note: currentSection is docs element currently active
    var currentSection = null;
    if (location.hash) {
      currentSection = location.hash;
    };
    var docElements = $('h1[id], h2[id]', '.docs');
    $(document).on('scroll', function (event) {
        // Check to see what is on screen right now
        for (var i = 0; i < docElements.length; i++) {
{'fraction_non_alphanumeric': 0.20013297872340424, 'fraction_numerical': 0.006648936170212766, 'mean_word_length': 2.5151869158878504, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, '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': '4186267', 'n_tokens_mistral': 911, 'n_tokens_neox': 873, 'n_words': 201}