<commit_before>$(function () {
    $(document).on('click', 'a', function (event) {
        // Event already handled?
        if (event.isDefaultPrevented()) {
            return;
        }

        // Get link href
        var $anchor = $(this);
        var href = $anchor.attr('href');
        console.log(href);
        var domain = new RegExp('/' + window.location.host + '/');
        console.log(domain);
        if (
            href[0] !== '#' &&
            domain.test(encodeURIComponent(href))
        ) {
            return;
        }

        // This handles /path/current-page#element
        href = href.split('#');
        href = href.pop();

        // Get offset
        var scrollTop;
        if (href === '#') {
            scrollTop = 0;
        } else {
            scrollTop = $('#'+href).offset().top;<commit_msg>Remove debug messages.<commit_after>$(function () {
    $(document).on('click', 'a', function (event) {
        // Event already handled?
        if (event.isDefaultPrevented()) {
            return;
        }

        // Get link href
        var $anchor = $(this);
        var href = $anchor.attr('href');
        var domain = new RegExp('/' + window.location.host + '/');
        if (
            href[0] !== '#' &&
            domain.test(encodeURIComponent(href))
        ) {
            return;
        }

        // This handles /path/current-page#element
        href = href.split('#');
        href = href.pop();

        // Get offset
        var scrollTop;
        if (href === '#') {
            scrollTop = 0;
        } else {
            scrollTop = $('#'+href).offset().top;
{'fraction_non_alphanumeric': 0.16676923076923078, 'fraction_numerical': 0.0024615384615384616, 'mean_word_length': 1.4862385321100917, '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': '1524891', 'n_tokens_mistral': 455, 'n_tokens_neox': 449, 'n_words': 97}