<commit_before>cdb.admin.dashboard.DashboardRouter = Backbone.Router.extend({

  routes: {
    // Dashboard
    '':                      'index',
    '/':                     'index',
    'dashboard':             'index',
    'dashboard/':            'index',

    // Search
    ':model/search/:q':       'search',
    ':model/search/:q/:page': 'search',

    // Tags
    ':model/tag/:tag':       'tag',
    ':model/tag/:tag/:page': 'tag',
    'tag/:tag/:page':        'tag',

    // Tables
    'tables':                'tables',
    'tables/:page':          'tables',

    // Visualizations
    'visualizations':        'visualizations',
    'visualizations/:page':  'visualizations'

  },

  _select: function(name) {
    $("header a").removeClass("selected");
    $("header ." + name).addClass("selected");
  },

  search: function(model, q, page) {
    this.trigger("tag", { model: model, q: q, page: page }, this);
  },

  tag: function(model, tag, page) {
    this._select(model);
    this.trigger("tag", { model: model, tag: tag, page: page }, this);
  },

  index: function() {
    this._select("dashboard");
    this.trigger("index", this);
  },

  tables: function(page) {
    this._select("tables");
    this.trigger("tables", page, this);
  },

  visualizations: function(page) {
    this._select("visualizations");
    this.trigger("visualizations", page , this);
  }

});

<commit_msg>Fixes path to search<commit_after>cdb.admin.dashboard.DashboardRouter = Backbone.Router.extend({

  routes: {
    // Dashboard
    '':                      'index',
    '/':                     'index',
    'dashboard':             'index',
    'dashboard/':            'index',

    // Search
    ':model/search/:q':       'search',
    ':model/search/:q/:page': 'search',

    // Tags
    ':model/tag/:tag':       'tag',
    ':model/tag/:tag/:page': 'tag',
    'tag/:tag/:page':        'tag',

    // Tables
    'tables':                'tables',
    'tables/:page':          'tables',

    // Visualizations
    'visualizations':        'visualizations',
    'visualizations/:page':  'visualizations'

  },

  _select: function(name) {
    $("header a").removeClass("selected");
    $("header ." + name).addClass("selected");
  },

  search: function(model, q, page) {
    this.trigger("search", { model: model, q: q, page: page }, this);
  },

  tag: function(model, tag, page) {
    this._select(model);
    this.trigger("tag", { model: model, tag: tag, page: page }, this);
  },

  index: function() {
    this._select("dashboard");
    this.trigger("index", this);
  },

  tables: function(page) {
    this._select("tables");
    this.trigger("tables", page, this);
  },

  visualizations: function(page) {
    this._select("visualizations");
    this.trigger("visualizations", page , this);
  }

});


{'fraction_non_alphanumeric': 0.19444444444444445, 'fraction_numerical': 0.0, 'mean_word_length': 2.2815420560747666, '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': '2274212', 'n_tokens_mistral': 909, 'n_tokens_neox': 889, 'n_words': 163}