<commit_before>var imagespace = imagespace || {};

_.extend(imagespace, {
    models: {},

    collections: {},

    views: {},

    router: new Backbone.Router(),

    events: _.clone(Backbone.Events),

    userData: {
        images: []
    },

    solrIdToUrl: function (id) {
        var parts = id.split('/'),
            file = parts[parts.length - 1];
        if (id.indexOf('cmuImages') !== -1) {
            file = 'cmuImages/' + file;
        }
        return imagespace.prefix + file;
    },

    urlToSolrId: function (url) {
        var parts = url.split('/'),
            file = parts[parts.length - 1];
        if (file.length < 30) {
            return;
        }
        if (url.indexOf('cmuImages') !== -1) {
            file = 'cmuImages/' + file;
        }
        return imagespace.solrPrefix + file;
    }
});

girder.router.enabled(false);

imagespace.router.route('page/:name', 'page', function (name) {
    $('#g-app-body-container').html(imagespace.templates[name]);
});
<commit_msg>Add search bar to static about/help pages<commit_after>var imagespace = imagespace || {};

_.extend(imagespace, {
    models: {},

    collections: {},

    views: {},

    router: new Backbone.Router(),

    events: _.clone(Backbone.Events),

    userData: {
        images: []
    },

    solrIdToUrl: function (id) {
        var parts = id.split('/'),
            file = parts[parts.length - 1];
        if (id.indexOf('cmuImages') !== -1) {
            file = 'cmuImages/' + file;
        }
        return imagespace.prefix + file;
    },

    urlToSolrId: function (url) {
        var parts = url.split('/'),
            file = parts[parts.length - 1];
        if (file.length < 30) {
            return;
        }
        if (url.indexOf('cmuImages') !== -1) {
            file = 'cmuImages/' + file;
        }
        return imagespace.solrPrefix + file;
    }
});

girder.router.enabled(false);

imagespace.router.route('page/:name', 'page', function (name) {
    imagespace.headerView.render();
    $('#g-app-body-container').html(imagespace.templates[name]);
});

{'fraction_non_alphanumeric': 0.17002881844380405, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 2.040875912408759, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1537893', 'n_tokens_mistral': 671, 'n_tokens_neox': 652, 'n_words': 127}