<commit_before><!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Example</title>
	<script type="text/javascript">var root = '../../'</script>
	<script type="text/javascript" src="../../src/load.js"></script>
	<script type="text/paperscript" canvas="canvas">
		var amount = 180;
		for(var i = 0; i < amount; i++) {
			var path = new Path();
			path.fillColor = new HSBColor(1, 1, Math.random());
			path.strokeCap = 'round';
			path.closed = true;
		}

		var position = new Point(document.size) / 2;
		var mousePos = position;		
		var children = document.activeLayer.children;
		var count = 0;
		
		function iterate() {
			count++;
			var delta = (mousePos - position);
			position += delta / 10;
			for (var i = 1; i < amount; i++) {
				var length = Math.abs(Math.sin(i + count / 20) * 300);
				children[i].segments = [
					position + delta / 1.5,
					position + { angle: i * 2, length: length },
					position + { angle: (i + 1) * 2, length: length }
				];
				children[i].fillColor.hue = count - length;
			}
		}
		
		
		var lastRedraw = 0;
		setInterval(draw, 30);
		function draw() {
			iterate();
			var now = Date.now();
			if(now - lastRedraw > 30) {
				document.redraw();
				lastRedraw = now;
			}
		}
		
		function onMouseMove(event) {
			iterate();
			lastRedraw = Date.now();
			mousePos = event.point;
		}
	</script>
</head>
<body style='background-color:black'>
	<canvas id='canvas' width=1024 height=768></canvas>
</body><commit_msg>Some small changes to lines example.<commit_after><!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Example</title>
	<script type="text/javascript">var root = '../../'</script>
	<script type="text/javascript" src="../../src/load.js"></script>
	<script type="text/paperscript" canvas="canvas">
		var amount = 180;
		for(var i = 0; i < amount; i++) {
			var path = new Path();
			path.fillColor = new HSBColor(1, 1, Math.random());
			path.strokeCap = 'round';
			path.closed = true;
		}

		var position = document.bounds.center;
		var mousePos = position;
		var children = document.activeLayer.children;
		var count = 0;
		
		function iterate() {
			count++;
			var delta = (mousePos - position);
			position += delta / 10;
			for (var i = 1; i < amount; i++) {
				var path = children[i];
				var length = Math.abs(Math.sin(i + count / 20) * 300);
				path.segments = [
					position + delta / 1.5,
					position + { angle: i * 2, length: length },
					position + { angle: (i + 1) * 2, length: length }
				];
				path.fillColor.hue = count - length;
			}
		}
		
		
		var lastRedraw = 0;
		setInterval(draw, 30);
		function draw() {
			iterate();
			var now = Date.now();
			if(now - lastRedraw > 30) {
				document.redraw();
				lastRedraw = now;
			}
		}
		
		function onMouseMove(event) {
			iterate();
			lastRedraw = Date.now();
			mousePos = event.point;
		}
	</script>
</head>
<body style='background-color:black'>
	<canvas id='canvas' width=1024 height=768></canvas>
</body>
{'fraction_non_alphanumeric': 0.1753523434939364, 'fraction_numerical': 0.02196001311045559, 'mean_word_length': 2.963636363636364, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 39, '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': '1654067', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1038, 'n_words': 267}