<commit_before>'use strict';

// Fluxex extra method
// Should be used on your fluxexapp and you should attach a routing action
module.exports = function (url) {
    // Try to route
    this.dispatch('UPDATE_URL', url).then(function () {
        // Run action to update page stores
        return this.executeAction(this.routing);
    }).then(function () {
        // Success, trigger page refresh
        this.getStore('page').emitChange();

        // update url to history
        /*global history*/
        history.pushState(self.toString(), undefined, url);
    }).catch(function (E) {
        console.log('Pjax failed! Failback to page loading....');
        console.log(E.stack || E);
        // pjax failed, go to url...
        location.href = url;
    });
};<commit_msg>fix typo<commit_after>'use strict';

// Fluxex extra method
// Should be used on your fluxexapp and you should attach a routing action
module.exports = function (url) {
    // Try to route
    this.dispatch('UPDATE_URL', url).then(function () {
        // Run action to update page stores
        return this.executeAction(this.routing);
    }).then(function () {
        // Success, trigger page refresh
        this.getStore('page').emitChange();

        // update url to history
        /*global history*/
        history.pushState(this.toString(), undefined, url);
    }).catch(function (E) {
        console.log('Pjax failed! Failback to page loading....');
        console.log(E.stack || E);
        // pjax failed, go to url...
        location.href = url;
    });
};
{'fraction_non_alphanumeric': 0.13890675241157557, 'fraction_numerical': 0.0, 'mean_word_length': 2.353448275862069, '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': '2181546', 'n_tokens_mistral': 425, 'n_tokens_neox': 424, 'n_words': 133}