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

var Workspace = Backbone.Router.extend({
  routes:{
    '': 'home',
    'list': 'listView',
    //'grid': 'gridView'
  },

  initialize: function(){
    this.listView = new app.ListView( sampleColl );
  },


  setView: function( param ) {
    console.log(param);

    /*
    // Set the current filter to be used
    if (param) {
      param = param.trim();
    }
    app.TodoFilter = param || '';

    // Trigger a collection filter event, causing hiding/unhiding
    // of Todo view items
    app.Todos.trigger('filter');
    */
  },

  home: function () {
    console.log("home nav clicked");

    $('#app').html("Welcome home.");
  },

  listView: function() {
    console.log("list nav clicked");

    $('#app').html(this.listView.render());
  },

  gridView: function() {
    console.log("grid view");

    $('#app').html("blank");
    // $('#app').html(this.ListView.render().el);
  }

});

app.TodoRouter = new Workspace();
$(function() {
  Backbone.history.start();
});<commit_msg>Grid hooked up to navi<commit_after>var app = app || {};

var Workspace = Backbone.Router.extend({
  routes:{
    '': 'home',
    'list': 'listView',
    'grid': 'gridView'
  },

  initialize: function(){
    this.listView = new app.ListView( sampleColl );
  },


  setView: function( param ) {
    console.log(param);

    /*
    // Set the current filter to be used
    if (param) {
      param = param.trim();
    }
    app.TodoFilter = param || '';

    // Trigger a collection filter event, causing hiding/unhiding
    // of Todo view items
    app.Todos.trigger('filter');
    */
  },

  home: function () {
    console.log("home view activated");

    $('#app').html("Welcome home.");
  },

  listView: function() {
    console.log("list view activated");

    $('#app').html(this.listView.render());
  },

  gridView: function() {
    console.log("grid view activated");

    $('#app').html("welcome, le grid");
    // $('#app').html(this.ListView.render().el);
  }

});

app.TodoRouter = new Workspace();
$(function() {
  Backbone.history.start();
});
{'fraction_non_alphanumeric': 0.19702780441035475, 'fraction_numerical': 0.0, 'mean_word_length': 2.7807971014492754, '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': '1644591', 'n_tokens_mistral': 693, 'n_tokens_neox': 671, 'n_words': 149}