<commit_before>function Jokr() {

	// Inject dependency scripts
	var jquerycol = '/jokr/libs/jquery.color.min.js';
	var modern = '/jokr/libs/modernizr.custom.js';
	var ejs = '/jokr/libs/ejs_production.js';

	var dependencies = [jquerycol,modern];

	for (var i = 0; i < dependencies.length; i++) {
		var js = document.createElement("script");
		js.src = dependencies[i];
		js.type = 'text/javascript';
		document.getElementsByTagName("head")[0].appendChild(js);
	}

	var js = document.createElement("script");
	js.src = ejs;
	js.type = 'text/javascript';
	$("head").prepend(js);

	// Inject chosen framework CSS.
	this.play = function(sw) {

		this.f = '/jokr/libs/foundation/css/foundation.min.css';
		this.fn = '/jokr/libs/foundation/css/normalize.css';
		this.fjs = '/jokr/libs/foundation/js/foundation.js'

		this.b = '/jokr/libs/bootstrap/css/bootstrap.css';
		this.bootjs = '/jokr/libs/bootstrap/js/bootstrap.js'


		if(sw == 'foundation') {

			// Use Foundation
			var cssinject = document.createElement("link");
			cssinject.href = this.f;
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);

			var jsinject = document.createElement("script");
			jsinject.src = this.fjs;
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);

		} else if (sw == 'bootstrap') {

			//Use Bootstrap
			var cssinject = document.createElement("link");
			cssinject.href = this.b;
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);

			
			var jsinject = document.createElement("script");
			jsinject.src = this.bootjs;
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);

		}
	}

}


// Create user sign-in view
function GmailSignIn(a) {
	this.a = a;

	this.create = function() {

		// Create EJS reference
		template = new EJS({url: 'jokr/templates/gmail-sign-in.ejs'}).render();

		// Render template
		$(this.a).html(template);


		// Listen for click events on login button
		$('#login').on("click", FireEvent);

		// When login button is clicked, fire off event to alert front-end logic.
		function FireEvent() {
			$.event.trigger({
				type: "loginSubmitted",
			});
		}
	}

	// Form Helpers
	// Check if password field is empty
	this.isPasswordEmpty = function () {
		if ($('#password').val().length == 0 ) { return true; } 
	}

	//Check if password length is less than 'X' value
	this.isLessThanX = function(x) {
		if ($('#password').val().length < x ) { return true; }
	}

}

// Create user sign-in view
function UserProfile(a) {
	this.a = a;

	this.create = function() {

		// Create EJS reference
		template = new EJS({url: 'jokr/templates/user-profile.ejs'}).render();

		// Render template
		$(this.a).html(template);
	}
}

function MinimalOnePage(a) {
	this.a = a;

	this.create = function(t) {

		console.log(t);

		var mncss = 'jokr/libs/minimal/css/main.css';
		var fntcss = 'jokr/libs/minimal/css/font-awesome.min.css';
		var osw = 'http://fonts.googleapis.com/css?family=Oswald:400,300,700';
		var carm = 'http://fonts.googleapis.com/css?family=EB+Garamond';

		var mnjs = '/jokr/libs/minimal/js/main.js';
		var clsjs = '/jokr/libs/minimal/js/classie.js';
		var smthjs = '/jokr/libs/minimal/js/smoothscroll.js';

		var depends_css = [mncss,fntcss,osw,carm];
		var depends_js = [mnjs,clsjs,smthjs];

		// Inject Minimal dependencies
		for(var i = 0; i < depends_css.length; i++) {
			var cssinject = document.createElement("link");
			cssinject.href = depends_css[i];
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);
		}

		for(var i = 0; i < depends_js.length; i++) {
			var jsinject = document.createElement("script");
			jsinject.src = depends_js[i];
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);<commit_msg>Use master copies, not local.<commit_after>function Jokr() {

	// Inject dependency scripts
	var jquerycol = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/jquery.color.min.js';
	var modern = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/modernizr.custom.js';
	var ejs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/ejs_production.js';

	var dependencies = [jquerycol,modern];

	for (var i = 0; i < dependencies.length; i++) {
		var js = document.createElement("script");
		js.src = dependencies[i];
		js.type = 'text/javascript';
		document.getElementsByTagName("head")[0].appendChild(js);
	}

	var js = document.createElement("script");
	js.src = ejs;
	js.type = 'text/javascript';
	$("head").prepend(js);

	// Inject chosen framework CSS.
	this.play = function(sw) {

		this.f = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/foundation/css/foundation.min.css';
		this.fn = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/foundation/css/normalize.css';
		this.fjs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/foundation/js/foundation.js'

		this.b = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/bootstrap/css/bootstrap.css';
		this.bootjs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/bootstrap/js/bootstrap.js'


		if(sw == 'foundation') {

			// Use Foundation
			var cssinject = document.createElement("link");
			cssinject.href = this.f;
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);

			var jsinject = document.createElement("script");
			jsinject.src = this.fjs;
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);

		} else if (sw == 'bootstrap') {

			//Use Bootstrap
			var cssinject = document.createElement("link");
			cssinject.href = this.b;
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);

			
			var jsinject = document.createElement("script");
			jsinject.src = this.bootjs;
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);

		}
	}

}


// Create user sign-in view
function GmailSignIn(a) {
	this.a = a;

	this.create = function() {

		// Create EJS reference
		template = new EJS({url: 'https://raw.github.com/jordancraig/jokr.io/master/jokr/templates/gmail-sign-in.ejs'}).render();

		// Render template
		$(this.a).html(template);


		// Listen for click events on login button
		$('#login').on("click", FireEvent);

		// When login button is clicked, fire off event to alert front-end logic.
		function FireEvent() {
			$.event.trigger({
				type: "loginSubmitted",
			});
		}
	}

	// Form Helpers
	// Check if password field is empty
	this.isPasswordEmpty = function () {
		if ($('#password').val().length == 0 ) { return true; } 
	}

	//Check if password length is less than 'X' value
	this.isLessThanX = function(x) {
		if ($('#password').val().length < x ) { return true; }
	}

}

// Create user sign-in view
function UserProfile(a) {
	this.a = a;

	this.create = function() {

		// Create EJS reference
		template = new EJS({url: 'https://raw.github.com/jordancraig/jokr.io/master/jokr/templates/user-profile.ejs'}).render();

		// Render template
		$(this.a).html(template);
	}
}

function MinimalOnePage(a) {
	this.a = a;

	this.create = function(t) {

		console.log(t);

		var mncss = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/minimal/css/main.css';
		var fntcss = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/minimal/css/font-awesome.min.css';
		var osw = 'http://fonts.googleapis.com/css?family=Oswald:400,300,700';
		var carm = 'http://fonts.googleapis.com/css?family=EB+Garamond';

		var mnjs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/minimal/js/main.js';
		var clsjs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/minimal/js/classie.js';
		var smthjs = 'https://raw.github.com/jordancraig/jokr.io/master/jokr/libs/minimal/js/smoothscroll.js';

		var depends_css = [mncss,fntcss,osw,carm];
		var depends_js = [mnjs,clsjs,smthjs];

		// Inject Minimal dependencies
		for(var i = 0; i < depends_css.length; i++) {
			var cssinject = document.createElement("link");
			cssinject.href = depends_css[i];
			cssinject.rel = "stylesheet";
			document.getElementsByTagName("head")[0].appendChild(cssinject);
		}

		for(var i = 0; i < depends_js.length; i++) {
			var jsinject = document.createElement("script");
			jsinject.src = depends_js[i];
			jsinject.type = "text/javascript";
			document.getElementsByTagName("head")[0].appendChild(jsinject);
{'fraction_non_alphanumeric': 0.17016587402853497, 'fraction_numerical': 0.004639832966013223, 'mean_word_length': 3.8329596412556053, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 15, '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': '7171420', 'n_tokens_mistral': 3416, 'n_tokens_neox': 3073, 'n_words': 523}