<commit_before>/*
	cutis.js
*/

var cutis = {
	id : "cutis",
	baseUrl : "http://lukenickerson.github.io/ludum-dare-cutis/",
	skins : [],
	$elt : null,
	selectedSkinIndex : -1,
	loadCSS : function(url, classes){
		$('<link class="' + classes + '"></link>')
			.appendTo('head')
			.attr({type : 'text/css', rel : 'stylesheet'})
			.attr('href', c.baseUrl + url)
			.ready(function(){ console.log("Loaded", url); })
		;
	},
	loadJS : function(url, classes){
		$('<script class="' + classes + '"></script>')
			.appendTo('body')
			.attr('src', c.baseUrl + url)
			.ready(function(){ console.log("Loaded", url); })
		;
	},
	selectSkin : function(si){
		var c = this;
		c.$elt.find("cutis_skin_" + c.selectedSkinIndex).removeClass("selected");
		c.selectedSkinIndex = si;
		c.loadSkin();
		c.$elt.find("cutis_skin_" + si).addClass("selected");
	},
	loadSkin : function(){
		var c = this;
		var s = c.skins[c.selectedSkinIndex];
		console.log("Load Skin", c.selectedSkinIndex, s);
		c.removeSkins();
		if (!s.dir) s.dir = s.base;<commit_msg>Fix baseUrl<commit_after>/*
	cutis.js
*/

var cutis = {
	id : "cutis",
	baseUrl : "http://lukenickerson.github.io/ludum-dare-cutis/",
	skins : [],
	$elt : null,
	selectedSkinIndex : -1,
	loadCSS : function(url, classes){
		url = c.baseUrl + url;
		$('<link class="' + classes + '"></link>')
			.appendTo('head')
			.attr({type : 'text/css', rel : 'stylesheet'})
			.attr('href', url)
			.ready(function(){ console.log("Loaded", url); })
		;
	},
	loadJS : function(url, classes){
		url = c.baseUrl + url;
		$('<script class="' + classes + '"></script>')
			.appendTo('body')
			.attr('src', url)
			.ready(function(){ console.log("Loaded", url); })
		;
	},
	selectSkin : function(si){
		var c = this;
		c.$elt.find("cutis_skin_" + c.selectedSkinIndex).removeClass("selected");
		c.selectedSkinIndex = si;
		c.loadSkin();
		c.$elt.find("cutis_skin_" + si).addClass("selected");
	},
	loadSkin : function(){
		var c = this;
		var s = c.skins[c.selectedSkinIndex];
		console.log("Load Skin", c.selectedSkinIndex, s);
		c.removeSkins();
		if (!s.dir) s.dir = s.base;
{'fraction_non_alphanumeric': 0.22232824427480916, 'fraction_numerical': 0.0009541984732824427, 'mean_word_length': 3.765909090909091, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7668085', 'n_tokens_mistral': 881, 'n_tokens_neox': 811, 'n_words': 152}