<commit_before>require([
	"jquery",
	"lodash",

	// Application.
	"app",

	// Main Router.
	"router"
],

function($, _, app, Router) {

	this.app = app;

	app.addInitializer(function( options ){
		// Define your master router on the application namespace and trigger all
		// navigation from this instance.
		app.router = new Router();
		app.bootstrap = options.bootstrap;
		app.tracker = options.tracker;

		// Trigger the initial route and enable HTML5 History API support, set the
		// root folder to '/' by default.  Change in app.js.
		Backbone.history.start({ pushState: true, root: options.root });

	});

	$(document).ready(function(){

		// Polyfill for input[type="range"]
		Modernizr.load({
			test : Modernizr.inputtypes.range,
			nope : ['/styles/fd-slider.css','/scripts/plugins/polyfill.fd-slider.js'],
			callback : function(url, result, key){
				if("fdSlider" in window && typeof (fdSlider.onDomReady) != "undefined") {
					try { fdSlider.onDomReady(); } catch(err) {};
				};
			}
		});

		app.start({
			root : window.location.pathname,
			bootstrap : window.bootstrap || [],
			tracker : window._gaq || []
		})
	});

});<commit_msg>Changed Backbone.History root to be / instead of location.pathname<commit_after>require([
	"jquery",
	"lodash",

	// Application.
	"app",

	// Main Router.
	"router"
],

function($, _, app, Router) {

	this.app = app;

	app.addInitializer(function( options ){
		// Define your master router on the application namespace and trigger all
		// navigation from this instance.
		app.router = new Router();
		app.bootstrap = options.bootstrap;
		app.tracker = options.tracker;

		// Trigger the initial route and enable HTML5 History API support, set the
		// root folder to '/' by default.  Change in app.js.
		Backbone.history.start({ pushState: true, root: options.root });

	});

	$(document).ready(function(){

		// Polyfill for input[type="range"]
		Modernizr.load({
			test : Modernizr.inputtypes.range,
			nope : ['/styles/fd-slider.css','/scripts/plugins/polyfill.fd-slider.js'],
			callback : function(url, result, key){
				if("fdSlider" in window && typeof (fdSlider.onDomReady) != "undefined") {
					try { fdSlider.onDomReady(); } catch(err) {};
				};
			}
		});

		app.start({
			root : '/',
			bootstrap : window.bootstrap || [],
			tracker : window._gaq || []
		})
	});

});
{'fraction_non_alphanumeric': 0.1623931623931624, 'fraction_numerical': 0.0008547008547008547, 'mean_word_length': 3.3271719038817005, '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': '2053215', 'n_tokens_mistral': 844, 'n_tokens_neox': 753, 'n_words': 188}