<commit_before>var Router = Backbone.Router.extend({

	routes: {
		'' : 'home',
		'profile': 'profilePage',
		'art-list-temeraire': 'artListTemerairePage',
		'art-list-coquin': 'artListCoquinPage',
		'explanation': 'explanationPage',
		'artworkTemeraire': 'artworkTemerairePage',
		'artworkCoquin': 'artworkCoquinPage',

	},

	initialize: function() {
	  this.bind('route', this._pageView);
	},

	home:function() {
		home.render();
		appModel.set('nextRoute', 'profile');
		$('.timer').html('');
	},

	profilePage: function() {
		header.render();
		footer.render();
		var profile = new profileView();
		profile.render();
		
		appModel.set('startTimer', false);
		appModel.set('nextRoute', 'explanation');
	},

	artListTemerairePage: function() {
		var artListTemeraire = new artListTemeraireView();
		artListTemeraire.render();

		var startedTimer = appModel.get('startTimer');

		if (!startedTimer) {
			var timer = new timerView();
			timer.render();
			timer.startTimer();
			appModel.set('startTimer', true);
		}
			

		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');
	},

	artListCoquinPage: function() {
		var artListCoquin = new artListCoquinView();
		artListCoquin.render();

		var startedTimer = appModel.get('startTimer');

		if (!startedTimer) {
			var timer = new timerView();
			timer.render();
			timer.startTimer();
			appModel.set('startTimer', true);
		}

		appModel.set('headerTitle', 'coquin');
		appModel.set('headerColor', '9a4d9e');
	},

	explanationPage: function() {
		appModel.set('headerTitle', 'prototype');
		appModel.set('headerColor', '3e3e3e');
		appModel.set('startTimer', false);

		var explanation = new explanationView();
		explanation.render();
	},
	artworkTemerairePage: function() {
		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');

		var artworkTemeraire = new artworkTemeraireView();
		artworkTemeraire.render();

		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');<commit_msg>Fixed minor bugs with timer<commit_after>var Router = Backbone.Router.extend({

	routes: {
		'' : 'home',
		'profile': 'profilePage',
		'art-list-temeraire': 'artListTemerairePage',
		'art-list-coquin': 'artListCoquinPage',
		'explanation': 'explanationPage',
		'artworkTemeraire': 'artworkTemerairePage',
		'artworkCoquin': 'artworkCoquinPage',

	},

	initialize: function() {
	  this.bind('route', this._pageView);
	},

	home:function() {
		home.render();
		appModel.set('nextRoute', 'profile');
		$('.timer').html('');
	},

	profilePage: function() {
		header.render();
		footer.render();
		var profile = new profileView();
		profile.render();
		
		appModel.set('startTimer', false);
		appModel.set('nextRoute', 'explanation');
		$('.timer').html('');
	},

	artListTemerairePage: function() {
		var artListTemeraire = new artListTemeraireView();
		artListTemeraire.render();

		var startedTimer = appModel.get('startTimer');

		if (!startedTimer) {
			var timer = new timerView();
			timer.render();
			timer.startTimer();
			appModel.set('startTimer', true);
		}
			

		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');
	},

	artListCoquinPage: function() {
		var artListCoquin = new artListCoquinView();
		artListCoquin.render();

		var startedTimer = appModel.get('startTimer');

		if (!startedTimer) {
			var timer = new timerView();
			timer.render();
			timer.startTimer();
			appModel.set('startTimer', true);
		}

		appModel.set('headerTitle', 'coquin');
		appModel.set('headerColor', '9a4d9e');
	},

	explanationPage: function() {
		appModel.set('headerTitle', 'prototype');
		appModel.set('headerColor', '3e3e3e');
		appModel.set('startTimer', false);

		var explanation = new explanationView();
		explanation.render();
		$('.timer').html('');
	},
	artworkTemerairePage: function() {
		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');

		var artworkTemeraire = new artworkTemeraireView();
		artworkTemeraire.render();

		appModel.set('headerTitle', 'téméraire');
		appModel.set('headerColor', 'ec462f');
{'fraction_non_alphanumeric': 0.1783625730994152, 'fraction_numerical': 0.007309941520467836, 'mean_word_length': 5.027900146842878, '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': '5651236', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1388, 'n_words': 235}