<commit_before>var Letter = function() {
	this.htmlEl = $('<div/>');
};

Letter.prototype.setValue = function(val) {

	if (this.value) { return; }

	var sets = Constants.sets;
	var index = getRandomInt(0, sets[val]["values"].length - 1);
	val = sets[val]["values"][index];

	this.htmlEl.text(val);
};

Letter.prototype.hardcode = function(val) {
	this.value = val;
	this.htmlEl.text(val);
	this.setColor("#ff0000");
};

Letter.prototype.reset = function() {
	this.value = null;
	this.setColor("#000000");
};

Letter.prototype.getValue = function() {
	return this.value;
};

Letter.prototype.setStyle = function(params) {

	this.htmlEl.css({
		"line-height": "100px",
		"height": "100px",
		"width": "100px",
		"text-align": "center",
		"float": "left",
		"font-family":	params.family,
		"font-size":	params.size + "px" ,
		"opacity": params.opacity
	});
};

Letter.prototype.setColor = function(color) {
	this.htmlEl.css({
		"color": color
	});
};

Letter.prototype.append = function() {
	$('#letters').append(this.htmlEl);
};

Letter.prototype.set = function(self) {
	self = self || this;

	self.setValue(currentSetName);
	
	var maxSize;
	if (this.value) {
		maxSize = 200;
	} else {
		maxSize = Constants.sets[currentSetName]["maxSize"] || 200;
	}

	self.setStyle({
		"family": Constants.fontFamilies[
			getRandomInt(0, Constants.fontFamilies.length - 1)],
		"size": getRandomInt(48, maxSize),
		"opacity": getRandomInt(0, 10) / 10
	});

};

Letter.prototype.init = function() {
	var self = this;
	this.append();
	window.setInterval(function() { self.set(self) }, getRandomInt(100, 1000));
	//self.set();
};

var currentSetName = "varona";
var currentCharIndex = 0;
var letters = [];

setInterval(function() {
	var sets = Constants.sets;
	var setNames = _.keys(sets);
	currentSetName = setNames[getRandomInt(0, setNames.length - 1)]
}, 4000);

$(function() {

	$('#letters').css({
		"width": "800px",
		"height": "600px",
		"position": "absolute",
		"top": "50%",
		"left": "50%",
		"margin-left": "-400px",
		"margin-top": "-300px"
	});

	$('#instructions').css({
		"font-family": "Courier New",
		"font-size": "20px",
		"line-height": "1.5em",
		"margin-top": "20px",<commit_msg>change width to accommodate new columns<commit_after>var Letter = function() {
	this.htmlEl = $('<div/>');
};

Letter.prototype.setValue = function(val) {

	if (this.value) { return; }

	var sets = Constants.sets;
	var index = getRandomInt(0, sets[val]["values"].length - 1);
	val = sets[val]["values"][index];

	this.htmlEl.text(val);
};

Letter.prototype.hardcode = function(val) {
	this.value = val;
	this.htmlEl.text(val);
	this.setColor("#ff0000");
};

Letter.prototype.reset = function() {
	this.value = null;
	this.setColor("#000000");
};

Letter.prototype.getValue = function() {
	return this.value;
};

Letter.prototype.setStyle = function(params) {

	this.htmlEl.css({
		"line-height": "100px",
		"height": "100px",
		"width": "100px",
		"text-align": "center",
		"float": "left",
		"font-family":	params.family,
		"font-size":	params.size + "px" ,
		"opacity": params.opacity
	});
};

Letter.prototype.setColor = function(color) {
	this.htmlEl.css({
		"color": color
	});
};

Letter.prototype.append = function() {
	$('#letters').append(this.htmlEl);
};

Letter.prototype.set = function(self) {
	self = self || this;

	self.setValue(currentSetName);
	
	var maxSize;
	if (this.value) {
		maxSize = 200;
	} else {
		maxSize = Constants.sets[currentSetName]["maxSize"] || 200;
	}

	self.setStyle({
		"family": Constants.fontFamilies[
			getRandomInt(0, Constants.fontFamilies.length - 1)],
		"size": getRandomInt(48, maxSize),
		"opacity": getRandomInt(0, 10) / 10
	});

};

Letter.prototype.init = function() {
	var self = this;
	this.append();
	window.setInterval(function() { self.set(self) }, getRandomInt(100, 1000));
	//self.set();
};

var currentSetName = "varona";
var currentCharIndex = 0;
var letters = [];

setInterval(function() {
	var sets = Constants.sets;
	var setNames = _.keys(sets);
	currentSetName = setNames[getRandomInt(0, setNames.length - 1)]
}, 4000);

$(function() {

	$('#letters').css({
		"width": "1000px",
		"height": "600px",
		"position": "absolute",
		"top": "50%",
		"left": "50%",
		"margin-left": "-400px",
		"margin-top": "-300px"
	});

	$('#instructions').css({
		"font-family": "Courier New",
		"font-size": "20px",
		"line-height": "1.5em",
		"margin-top": "20px",
{'fraction_non_alphanumeric': 0.20932878270762229, 'fraction_numerical': 0.03299203640500569, 'mean_word_length': 4.374083129584352, 'pattern_counts': {'":': 46, '<': 5, '<?xml version=': 0, '>': 5, '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': '6149533', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1627, 'n_words': 304}