<commit_before><!DOCTYPE html>
<html>

<head>

	<style>
		* {
			padding: 0;
			margin: 0;
		}
		
		canvas {
			background: black;
			display: block;
			margin: 0 auto;
		}
	</style>

<title>Pascal's Triangle</title>
</head>

<body>

	<canvas id="myCanvas" width="1082" height="625">   </canvas>

	<body style="background-color:black;">

		<SCRIPT LANGUAGE="JavaScript">
    
			var canvas = document.getElementById("myCanvas");
			var ctx = canvas.getContext("2d");
			
			
			var colors = [[],[],["black","lime"],["blue","red","lime"],["blue","red","yellow","lime"],["purple","red","yellow","lime","blue"],["purple","red","orange","yellow","lime","blue"]];
			
			var mod = 2;
			
			var shape = "square";  //square, triangle
			var step = mod;
			var size = canvas.height/step;
			
			
			var table = [[1]];
			var index1 = 0;
			var index2 = 0;
			
			
			
			
			function draw() {
				
				
				
				if(table.length >= step) setTimeout(
					function(){
						if(table.length >= step){
							table = [[1]];
							step *= mod;
							size = canvas.height/step;
							
							ctx.clearRect(0, 0, canvas.width, canvas.height);
						}
					},
				500);
				
				
				index1 = table.length;
				if(index1 < step){
					table[index1] = [];
					for(index2 = 0;index2 <= index1;index2++){
						if(index2 % index1 == 0) table[index1][index2] = 1;
						else table[index1][index2] = (table[index1 - 1][index2] + table[index1 - 1][index2 - 1]) % mod;
					}
				}
				
				index1 = table.length - 1;
				//for(index1 in table){
					for(index2 in table[index1]){
						ctx.beginPath();
						if(shape == "square") ctx.rect(Math.floor(canvas.width/2 + (index2 - (index1 + 9)/20)*size), Math.floor(index1*size), Math.ceil(size), Math.ceil(size));
						ctx.fillStyle = mod in colors ? colors[mod][table[index1][index2]] : "hsl(" + 360*((table[index1][index2] + mod - 1) % mod)/mod + ", 100%, 50%)";
						ctx.fill();
						ctx.closePath();
					}
					console.log(index1);
				//}
				<commit_msg>Maybe this will fix it.<commit_after><!DOCTYPE html>
<html>

<head>

	<style>
		* {
			padding: 0;
			margin: 0;
		}
		
		canvas {
			background: black;
			display: block;
			margin: 0 auto;
		}
	</style>

<title>Pascal's Triangle</title>
</head>

<body>

	<canvas id="myCanvas" width="1082" height="625">   </canvas>

	<body style="background-color:black;">

		<SCRIPT LANGUAGE="JavaScript">
    
			var canvas = document.getElementById("myCanvas");
			var ctx = canvas.getContext("2d");
			
			
			var colors = [[],[],["black","lime"],["blue","red","lime"],["blue","red","yellow","lime"],["purple","red","yellow","lime","blue"],["purple","red","orange","yellow","lime","blue"]];
			
			var mod = 2;
			
			var shape = "square";  //square, triangle
			var step = mod;
			var size = canvas.height/step;
			
			
			var table = [[1]];
			var index1 = 0;
			var index2 = 0;
			
			
			
			
			function draw() {
				
				
				
				if(table.length >= step) setTimeout(
					function(){
						if(table.length >= step){
							table = [[1]];
							step *= mod;
							size = canvas.height/step;
							
							ctx.clearRect(0, 0, canvas.width, canvas.height);
						}
					},
				500);
				
				
				index1 = table.length;
				if(index1 < step){
					table[index1] = [];
					for(index2 = 0;index2 <= index1;index2++){
						if(index2 % index1 == 0) table[index1][index2] = 1;
						else table[index1][index2] = (table[index1 - 1][index2] + table[index1 - 1][index2 - 1]) % mod;
					}
				}
				
				index1 = table.length - 1;
				//for(index1 in table){
					for(index2 in table[index1]){
						ctx.beginPath();
						if(shape == "square") ctx.rect(Math.floor(canvas.width/2 + (index2 - index1/2)*size), Math.floor(index1*size), Math.ceil(size), Math.ceil(size));
						ctx.fillStyle = mod in colors ? colors[mod][table[index1][index2]] : "hsl(" + 360*((table[index1][index2] + mod - 1) % mod)/mod + ", 100%, 50%)";
						ctx.fill();
						ctx.closePath();
					}
					console.log(index1);
				//}
				
{'fraction_non_alphanumeric': 0.19834710743801653, 'fraction_numerical': 0.035562233909341344, 'mean_word_length': 2.591726618705036, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '6087772', 'n_tokens_mistral': 1940, 'n_tokens_neox': 1388, 'n_words': 277}