<commit_before><!DOCTYPE html>
<html>
	<head>
		<title>Pixfinder - a JavaScript library for image analysis and feature extraction</title>
		<meta charset="utf-8" />
		<script src="src/P.js"></script>
		<script src="src/Util/Util.js"></script>
		<script src="src/Util/Color.js"></script>
		<script src="src/Util/Math.js"></script>
		<script src="src/Struct/Struct.js"></script>
		<script src="src/Struct/DisjointSet.js"></script>
		<script src="src/Func.js"></script>
	</head>
	<body>
		<img id="img"></img>
		<canvas id="canv" width="899" height="317" style="border:1px solid #d3d3d3;"></canvas>
		<script>
			window.onload = function () {
				var img = document.getElementById('img');

				img.onload = function () {
					var objColors = [
						'd4d4d4'
					];
					var features = P.getRegionsByColors(this, objColors, {
						accuracy: 3,
						dist: 15
					});

					var c=document.getElementById("canv");
					var ctx=c.getContext("2d");
					for (var i = 0; i < features.length; i++) {
						ctx.fillStyle = P.Util.Color.toHex ([
							Math.random() * 255,
							Math.random() * 255,
							Math.random() * 255
						]);
						ctx.beginPath();
						for (var j = 0; j < features[i].length; j++) {	
							ctx.arc(features[i][j].x, features[i][j].y, 1, 0, 2*Math.PI);
						};
						ctx.fill();
						ctx.closePath();
					};
				}

				img.crossOrigin = "Anonymous";
				img.src = 'img.png';
			}
		</script>
	</body>
</html><commit_msg>index.html fixed<commit_after><!DOCTYPE html>
<html>
	<head>
		<title>Pixfinder - a JavaScript library for image analysis and feature extraction</title>
		<meta charset="utf-8" />
		<script src="src/P.js"></script>
		<script src="src/Util/Util.js"></script>
		<script src="src/Util/Color.js"></script>
		<script src="src/Util/Math.js"></script>
		<script src="src/Struct/Struct.js"></script>
		<script src="src/Struct/DisjointSet.js"></script>
	</head>
	<body>
		<img id="img"></img>
		<canvas id="canv" width="899" height="317" style="border:1px solid #d3d3d3;"></canvas>
		<script>
			window.onload = function () {
				var img = document.getElementById('img');

				img.onload = function () {
					var objColors = [
						'd4d4d4'
					];
					var features = P.getRegionsByColors(this, objColors, {
						accuracy: 3,
						dist: 15
					});

					var c=document.getElementById("canv");
					var ctx=c.getContext("2d");
					for (var i = 0; i < features.length; i++) {
						ctx.fillStyle = P.Util.Color.toHex ([
							Math.random() * 255,
							Math.random() * 255,
							Math.random() * 255
						]);
						ctx.beginPath();
						for (var j = 0; j < features[i].length; j++) {	
							ctx.arc(features[i][j].x, features[i][j].y, 1, 0, 2*Math.PI);
						};
						ctx.fill();
						ctx.closePath();
					};
				}

				img.crossOrigin = "Anonymous";
				img.src = 'img.png';
			}
		</script>
	</body>
</html>
{'fraction_non_alphanumeric': 0.1969220006995453, 'fraction_numerical': 0.022385449457852397, 'mean_word_length': 2.763157894736842, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 61, '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': '3971939', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1024, 'n_words': 200}