<commit_before>PhotosFrameTemplate = (function(){
	

	function setSessions() {
		var names=["Miller","Coleman", "Echols"];
		for(var name in names){
			Session.set(names[name]+"On",false);
		}
	}

	function onPhotoClick(e) {	
		setSessions();	
		var name = e.target.id.charAt(0).toUpperCase() +  e.target.id.slice(1).split("-")[0];
		Session.set(name+"On",true);
		$($(e.target).siblings()).css('border-color','white');
		$(e.target).css('border-color','#FFA18F');
		$("body,html").animate({scrollTop: "900px"}, 1000);
	}


	function onAudioClick(e){
		var audioPlayer = document.getElementById('player');
		if(audioPlayer.paused){
			audioPlayer.play();
		}else{
			audioPlayer.pause();
		}
	}

	function onRender(){
		setSessions();
		getAboutOff();
	}

	function getMillerOn(){
		return Session.get('MillerOn');
	}

	function getColemanOn(){
		return Session.get('ColemanOn');
	}

	function getEcholsOn(){
		return Session.get('EcholsOn');
	}<commit_msg>added funtion to incorporate google analytics<commit_after>PhotosFrameTemplate = (function(){
	

	function setSessions() {
		var names=["Miller","Coleman", "Echols"];
		for(var name in names){
			Session.set(names[name]+"On",false);
		}
	}

	function onPhotoClick(e) {	
		setSessions();	
		var name = e.target.id.charAt(0).toUpperCase() +  e.target.id.slice(1).split("-")[0];
		Session.set(name+"On",true);
		$($(e.target).siblings()).css('border-color','white');
		$(e.target).css('border-color','#FFA18F');
		$("body,html").animate({scrollTop: "900px"}, 1000);
	}


	function onAudioClick(e){
		var audioPlayer = document.getElementById('player');
		if(audioPlayer.paused){
			audioPlayer.play();
		}else{
			audioPlayer.pause();
		}
	}

	function onRender(){
		setSessions();
		getAboutOff();
		setUpAnalytics();
	}

	function setUpAnalytics(){

		if (!(window._gaq != null)) {
		    window._gaq = [];
		    _gaq.push(['_setAccount', 'UA-54472436-1']);
		    _gaq.push(['_trackPageview']);
		    return (function() {
				var ga, gajs, s;
				ga = document.createElement('script');
				ga.type = 'text/javascript';
				ga.async = true;
				gajs = '.google-analytics.com/ga.js';
				ga.src = 'https:' === document.location.protocol ? 'https://ssl' + gajs : 'http://www' + gajs;
				s = document.getElementsByTagName('script')[0];
				return s.parentNode.insertBefore(ga, s);
		    });
		}

	}

	function getMillerOn(){
		return Session.get('MillerOn');
	}

	function getColemanOn(){
		return Session.get('ColemanOn');
	}

	function getEcholsOn(){
		return Session.get('EcholsOn');
	}
{'fraction_non_alphanumeric': 0.19913419913419914, 'fraction_numerical': 0.01338055883510429, 'mean_word_length': 4.262939958592132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '3554482', 'n_tokens_mistral': 1047, 'n_tokens_neox': 905, 'n_words': 141}