<commit_before>window.onload = function() {
	init();
}

var canvas, context;

function init() {
	var contenedor = document.getElementById("contenedor");

	if(Modernizr.canvas) {
		canvas = document.createElement("canvas");
		canvas.width = 600;
		canvas.height = 300;
		contenedor.appendChild(canvas);

		context = canvas.getContext("2d");

		addListeners();
	}else {
		contenedor.innerHTML = "El navegador no soporta canvas";
	}
}
<commit_msg>the initial project structure is added<commit_after>window.onload = function() {
	init();
}

var canvas, context;

function init() {
	var contenedor = document.getElementById("contenedor");

	if(Modernizr.canvas) {
		canvas = document.createElement("canvas");
		canvas.width = 600;
		canvas.height = 300;
		contenedor.appendChild(canvas);

		context = canvas.getContext("2d");

		addListeners();
	}else {
		contenedor.innerHTML = "El navegador no soporta canvas";
	}
}

function paintQuad(e) {

}

function addListener() {
	canvas.addListener("mouseDown", mouseDown);
	canvas.addListener("touchDown", touchDown);	
}

function mouseDown(e) {
	paintQuad(e);
}

function touchDown(e) {
	paintQuad(e);
}
{'fraction_non_alphanumeric': 0.14348206474190725, 'fraction_numerical': 0.012248468941382326, 'mean_word_length': 4.989528795811518, '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': '5874948', 'n_tokens_mistral': 422, 'n_tokens_neox': 389, 'n_words': 77}