<commit_before>define([
    'bluebird',
    'kb/common/router',
    'kb/common/lang'
], function (Promise, Router, lang) {
    function factory(config) {
        var runtime = config.runtime,
            router = Router.make(config);

        function doRoute() {
            var handler;
            try {
                handler = router.findCurrentRoute();
            } catch (ex) {
                console.log(ex);
                if (ex instanceof Router.NotFoundException) {
                    runtime.send('app', 'route-not-found', ex);
                    return;
                } else {
                    throw ex;
                }
            }
            if (handler.route.authorization) {
                if (!runtime.getService('session').isLoggedIn()) {<commit_msg>console.log -> console.error<commit_after>define([
    'bluebird',
    'kb/common/router',
    'kb/common/lang'
], function (Promise, Router, lang) {
    function factory(config) {
        var runtime = config.runtime,
            router = Router.make(config);

        function doRoute() {
            var handler;
            try {
                handler = router.findCurrentRoute();
            } catch (ex) {
                console.error(ex);
                if (ex instanceof Router.NotFoundException) {
                    runtime.send('app', 'route-not-found', ex);
                    return;
                } else {
                    throw ex;
                }
            }
            if (handler.route.authorization) {
                if (!runtime.getService('session').isLoggedIn()) {
{'fraction_non_alphanumeric': 0.118313404657017, 'fraction_numerical': 0.0, 'mean_word_length': 1.3660714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3819508', 'n_tokens_mistral': 417, 'n_tokens_neox': 396, 'n_words': 81}