<commit_before>// Set the RequireJS configuration
require.config({
  paths : {
    "use" : "libs/use",
    "text" : "libs/text",
    "jquery" : "libs/jquery",
    "underscore" : "libs/underscore",
    "backbone" : "libs/backbone",
    "handlebars" : "libs/handlebars-1.0.0.beta.6",
    "paginator" : "libs/backbone.paginator",
    "crypto" : "libs/Crypto_AES",
    "pouch" : "libs/pouch.alpha"
  },
  use : {
    "underscore" : {
      attach : "_"
    },

    "backbone" : {
      deps : ["use!underscore", "jquery", "pouch", "libs/backbone-pouchdb", "libs/backbone-couchdb"],
      attach : function(_, $) {
        return Backbone;
      }
    },

    "handlebars" : {
      attach: "Handlebars"
    },
    
    "crypto" :{
    	attach: "CryptoJS"
    },
    
    "paginator":{
      deps : ["use!underscore", "use!backbone", "jquery"],
      attach: "Paginator"
    }
  }
});

// Initialization
require([
    "app/App",
    "app/AppView",
    "libs/Utils"
], function(
    App,
    AppView
) {
  // Load the App
  var a = localStorage.getItem("app");
  if (a) {
    Utils.debug("Loading app from localStorage");
    a = JSON.parse(a);
    a = new App(a); 
  } else {
    Utils.debug("Loading fresh app");
    a = new App();
  }
  window.appView = new AppView({model: a}); 
  window.app = a;
  
  window.appView.render();
  
  // Load the sample App
  window.appView.loadSample();
});
<commit_msg>No longer loading the sample.<commit_after>// Set the RequireJS configuration
require.config({
  paths : {
    "use" : "libs/use",
    "text" : "libs/text",
    "jquery" : "libs/jquery",
    "underscore" : "libs/underscore",
    "backbone" : "libs/backbone",
    "handlebars" : "libs/handlebars-1.0.0.beta.6",
    "paginator" : "libs/backbone.paginator",
    "crypto" : "libs/Crypto_AES",
    "pouch" : "libs/pouch.alpha"
  },
  use : {
    "underscore" : {
      attach : "_"
    },

    "backbone" : {
      deps : ["use!underscore", "jquery", "pouch", "libs/backbone-pouchdb", "libs/backbone-couchdb"],
      attach : function(_, $) {
        return Backbone;
      }
    },

    "handlebars" : {
      attach: "Handlebars"
    },
    
    "crypto" :{
    	attach: "CryptoJS"
    },
    
    "paginator":{
      deps : ["use!underscore", "use!backbone", "jquery"],
      attach: "Paginator"
    }
  }
});

// Initialization
require([
    "app/App",
    "app/AppView",
    "libs/Utils"
], function(
    App,
    AppView
) {
  // Load the App
  var a = localStorage.getItem("app");
  if (a) {
    Utils.debug("Loading app from localStorage");
    a = JSON.parse(a);
    a = new App(a); 
  } else {
    Utils.debug("Loading fresh app");
    a = new App();
  }
  window.appView = new AppView({model: a}); 
  window.app = a;
  
  window.appView.render();
  
  // Load the sample App
  // window.appView.loadSample();
});

{'fraction_non_alphanumeric': 0.18552678254700247, 'fraction_numerical': 0.002837885775097552, 'mean_word_length': 2.3935018050541514, 'pattern_counts': {'":': 2, '<': 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': '6763773', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1031, 'n_words': 196}