<commit_before>KiddoPaint.Textures.Solid = function(color1) {
	color1 = color1 || 'black';

	var canvasPattern = document.createElement('canvas');
	canvasPattern.width = 1;
	canvasPattern.height = 1;
	var contextPattern = canvasPattern.getContext('2d');
	
	contextPattern.beginPath();
	contextPattern.strokeStyle = color1;
	contextPattern.rect(0, 0, 1, 1);
	contextPattern.stroke();
	
	return KiddoPaint.Display.context.createPattern(canvasPattern, 'repeat');
}

KiddoPaint.Textures.Partial1 = function(color1) {
	color1 = color1 || 'black';

	var canvasPattern = document.createElement('canvas');
	canvasPattern.width = 4;
	canvasPattern.height = 2;
	var contextPattern = canvasPattern.getContext('2d');
	
	contextPattern.beginPath();
	contextPattern.fillStyle = color1;
	contextPattern.fillRect(0, 0, 2, 1);
	contextPattern.fillRect(1, 1, 3, 1);
	contextPattern.fillRect(3, 0, 1, 1);<commit_msg>Fixed bug in solid texture.<commit_after>KiddoPaint.Textures.Solid = function(color1) {
	color1 = color1 || 'black';

	var canvasPattern = document.createElement('canvas');
	canvasPattern.width = 1;
	canvasPattern.height = 1;
	var contextPattern = canvasPattern.getContext('2d');
	
	contextPattern.beginPath();
	contextPattern.fillStyle = color1;
	contextPattern.fillRect(0, 0, 1, 1);
	
	return KiddoPaint.Display.context.createPattern(canvasPattern, 'repeat');
}

KiddoPaint.Textures.Partial1 = function(color1) {
	color1 = color1 || 'black';

	var canvasPattern = document.createElement('canvas');
	canvasPattern.width = 4;
	canvasPattern.height = 2;
	var contextPattern = canvasPattern.getContext('2d');
	
	contextPattern.beginPath();
	contextPattern.fillStyle = color1;
	contextPattern.fillRect(0, 0, 2, 1);
	contextPattern.fillRect(1, 1, 3, 1);
	contextPattern.fillRect(3, 0, 1, 1);
{'fraction_non_alphanumeric': 0.13621076233183857, 'fraction_numerical': 0.034753363228699555, 'mean_word_length': 5.945525291828794, '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': '4067339', 'n_tokens_mistral': 615, 'n_tokens_neox': 570, 'n_words': 114}