<commit_before>define(function (require) {
    'use strict';

    var Marionette                   = require('marionette'),
        Root                         = require('components/Root.react'),
        React                        = require('react'),
        context                      = require('context'),
        ApplicationListPage          = require('components/applications/ApplicationListPage.react'),
        ApplicationDetailsPage       = require('components/applications/ApplicationDetailsPage.react'),
        ApplicationSearchResultsPage = require('components/applications/ApplicationSearchResultsPage.react'),
        Backbone                     = require('backbone');

    var Router = Marionette.AppRouter.extend({
      appRoutes: {
        '': 'showApplications',
        'images': 'showApplications',
        'images/:id': 'showApplicationDetails',
        'images/search/:query': 'showApplicationSearchResults',
        '*path': 'defaultRoute'
      }
    });

    var Controller = Marionette.Controller.extend({

      render: function (content, route) {
        var app = Root({
          profile: context.profile,
          content: content,
          route: route || Backbone.history.getFragment()
        });
        React.render(app, document.getElementById('application'));
      },

      //
      // Route handlers
      //

      defaultRoute: function () {
        Backbone.history.navigate('', {trigger: true});
      },

      showApplications: function () {
        this.render(ApplicationListPage(), ["images"]);
      },

      showApplicationDetails: function (appId) {
        var content = ApplicationDetailsPage({
          applicationId: appId
        });
        this.render(content, ["images"]);
      },

      showApplicationSearchResults: function (query) {
        var content = ApplicationSearchResultsPage({
          query: query
        });
        this.render(content, ["images", "search"]);
      }

    });

    return {
      start: function () {
        var controller = new Controller();
        var router = new Router({<commit_msg>add tags page to public site<commit_after>define(function (require) {
    'use strict';

    var Marionette                   = require('marionette'),
        Root                         = require('components/Root.react'),
        React                        = require('react'),
        context                      = require('context'),
        ApplicationListPage          = require('components/applications/ApplicationListPage.react'),
        ApplicationDetailsPage       = require('components/applications/ApplicationDetailsPage.react'),
        ApplicationSearchResultsPage = require('components/applications/ApplicationSearchResultsPage.react'),
        ImageTagsPage                = require('components/applications/ImageTagsPage.react'),
        Backbone                     = require('backbone');

    var Router = Marionette.AppRouter.extend({
      appRoutes: {
        '': 'showApplications',
        'images': 'showApplications',
        'images/tags': 'showImageTags',
        'images/:id': 'showApplicationDetails',
        'images/search/:query': 'showApplicationSearchResults',
        '*path': 'defaultRoute'
      }
    });

    var Controller = Marionette.Controller.extend({

      render: function (content, route) {
        var Component = React.createFactory(Root);
        var app = Component({
          profile: context.profile,
          content: content,
          route: route || Backbone.history.getFragment()
        });
        React.render(app, document.getElementById('application'));
      },

      //
      // Route handlers
      //

      defaultRoute: function () {
        Backbone.history.navigate('', {trigger: true});
      },

      showApplications: function () {
        var Component = React.createFactory(ApplicationListPage);
        this.render(Component(), ["images"]);
      },

      showImageTags: function () {
        var Component = React.createFactory(ImageTagsPage);
        this.render(Component(), ["images", "tags"]);
      },

      showApplicationDetails: function (appId) {
        var Component = React.createFactory(ApplicationDetailsPage);
        var content = Component({
          applicationId: appId
        });
        this.render(content, ["images"]);
      },

      showApplicationSearchResults: function (query) {
        var Component = React.createFactory(ApplicationSearchResultsPage);
        var content = Component({query: query});
        this.render(content, ["images", "search"]);
      }

    });

    return {
      start: function () {
        var controller = new Controller();
        var router = new Router({
{'fraction_non_alphanumeric': 0.12183712523920902, 'fraction_numerical': 0.0, 'mean_word_length': 2.184834123222749, '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': '2559964', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1096, 'n_words': 219}