<commit_before>steal('can/route', function() {
    "use strict";

    if(window.history && history.pushState) {
        var param = can.route.param,
            paramsMatcher = /^\?(?:[^=]+=[^&]*&)*[^=]+=[^&]*/;
        can.extend(can.route, {
            _paramsMatcher: paramsMatcher,
            _querySeparator: '?',
            _setup: function() {
                // intercept routable links
                can.$('body').on('click', 'a', function(e) {
                    if(can.route.updateWith(this.href)) {
                        e.preventDefault();
                    }
                });
                // Bind to popstate event, which fires on all history changes
                can.bind.call(window, 'popstate', can.route.setState);
            },
            updateWith: function(href) {<commit_msg>fix path determination<commit_after>steal('can/route', function() {
    "use strict";

    if(window.history && history.pushState) {
        var param = can.route.param,
            paramsMatcher = /^\?(?:[^=]+=[^&]*&)*[^=]+=[^&]*/;
        can.extend(can.route, {
            _paramsMatcher: paramsMatcher,
            _querySeparator: '?',
            _setup: function() {
                // intercept routable links
                can.$('body').on('click', 'a', function(e) {
                    if(can.route.updateWith(this.pathname+this.search)) {
                        e.preventDefault();
                    }
                });
                // Bind to popstate event, which fires on all history changes
                can.bind.call(window, 'popstate', can.route.setState);
            },
            updateWith: function(href) {
{'fraction_non_alphanumeric': 0.158749248346362, 'fraction_numerical': 0.0, 'mean_word_length': 1.5838509316770186, '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': '3489346', 'n_tokens_mistral': 464, 'n_tokens_neox': 445, 'n_words': 80}