<commit_before><!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Example</title>
	<script type="text/javascript" src="../../lib/Bootstrap.js"></script>
	<script type="text/javascript" src="../../src/Paper.js"></script>
	<script type="text/javascript" src="../../src/tool/ToolEvent.js"></script>
	<script type="text/javascript" src="../../src/tool/ToolHandler.js"></script>
	<script type="text/javascript" src="../../src/tool/Tool.js"></script>
	<script type="text/javascript" src="../../src/basic/Point.js"></script>
	<script type="text/javascript" src="../../src/basic/Rectangle.js"></script>
	<script type="text/javascript" src="../../src/basic/Size.js"></script>
	<script type="text/javascript" src="../../src/basic/Matrix.js"></script>
	<script type="text/javascript" src="../../src/document/DocumentView.js"></script>
	<script type="text/javascript" src="../../src/document/Doc.js"></script>
	<script type="text/javascript" src="../../src/document/Symbol.js"></script>
	<script type="text/javascript" src="../../src/item/Item.js"></script>
	<script type="text/javascript" src="../../src/item/PlacedSymbol.js"></script>
	<script type="text/javascript" src="../../src/item/Group.js"></script>
	<script type="text/javascript" src="../../src/item/Layer.js"></script>
	<script type="text/javascript" src="../../src/item/Raster.js"></script>
	<script type="text/javascript" src="../../src/item/PathStyle.js"></script>
	<script type="text/javascript" src="../../src/path/Segment.js"></script>
	<script type="text/javascript" src="../../src/path/PathItem.js"></script>
	<script type="text/javascript" src="../../src/path/Path.js"></script>
	<script type="text/javascript" src="../../src/path/CompoundPath.js"></script>
	<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
	<script type="text/javascript" src="../../src/color/Color.js"></script>
	<script type="text/javascript" src="../../src/color/RGBColor.js"></script>
	<script type="text/javascript" src="../../src/color/GrayColor.js"></script>
	<script type="text/javascript" src="../../src/color/GradientColor.js"></script>
	<script type="text/javascript" src="../../src/color/Gradient.js"></script>
	<script type="text/javascript" src="../../src/color/GradientStop.js"></script>
	<script type="text/javascript" src="../../src/util/CanvasDraw.js"></script>
	<script>
		window.onload = function() {

			var canvas = document.getElementById('canvas');
			var doc = new Doc(canvas);

			var balls = [];

			var circlePath = new Path.Circle([0, 0], 10);
			circlePath.fillColor = new GradientColor(null, [0, 0], [0, 12], [0, 2]);
			circlePath.fillColor.gradient.type = 'radial';

			var symbol = new Symbol(circlePath);
			

			var group = new Group();

			var Ball = Base.extend({
				initialize: function(point, vector) {
					if (!vector || vector.isZero()) {
						this.vector = Point.random().multiply(5);
					} else {
						this.vector = vector.multiply(1.5);
					}
					this.point = point;
					this.dampen = 0.4;
					this.gravity = 3;
					this.bounce = -0.6;
					this.radius = 50 * Math.random() + 10;
					this.item = new PlacedSymbol(symbol);
					this.item.position = point;
					this.item.scale(this.radius / 10);
					this.item.rotate(30);
					group.appendTop(this.item);
				},

				contrainPoint: function() {
					var x = this.point.x;
					var y = this.point.y;
					var radius = this.radius;
					this.point.x = Math.min(Math.max(radius, x), doc.size.width - radius);
					this.point.y = Math.min(Math.max(radius, y), doc.size.height - radius);
				},

				iterate: function() {<commit_msg>BouncingBalls example: remove line which was committed by accident.<commit_after><!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Example</title>
	<script type="text/javascript" src="../../lib/Bootstrap.js"></script>
	<script type="text/javascript" src="../../src/Paper.js"></script>
	<script type="text/javascript" src="../../src/tool/ToolEvent.js"></script>
	<script type="text/javascript" src="../../src/tool/ToolHandler.js"></script>
	<script type="text/javascript" src="../../src/tool/Tool.js"></script>
	<script type="text/javascript" src="../../src/basic/Point.js"></script>
	<script type="text/javascript" src="../../src/basic/Rectangle.js"></script>
	<script type="text/javascript" src="../../src/basic/Size.js"></script>
	<script type="text/javascript" src="../../src/basic/Matrix.js"></script>
	<script type="text/javascript" src="../../src/document/DocumentView.js"></script>
	<script type="text/javascript" src="../../src/document/Doc.js"></script>
	<script type="text/javascript" src="../../src/document/Symbol.js"></script>
	<script type="text/javascript" src="../../src/item/Item.js"></script>
	<script type="text/javascript" src="../../src/item/PlacedSymbol.js"></script>
	<script type="text/javascript" src="../../src/item/Group.js"></script>
	<script type="text/javascript" src="../../src/item/Layer.js"></script>
	<script type="text/javascript" src="../../src/item/Raster.js"></script>
	<script type="text/javascript" src="../../src/item/PathStyle.js"></script>
	<script type="text/javascript" src="../../src/path/Segment.js"></script>
	<script type="text/javascript" src="../../src/path/PathItem.js"></script>
	<script type="text/javascript" src="../../src/path/Path.js"></script>
	<script type="text/javascript" src="../../src/path/CompoundPath.js"></script>
	<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
	<script type="text/javascript" src="../../src/color/Color.js"></script>
	<script type="text/javascript" src="../../src/color/RGBColor.js"></script>
	<script type="text/javascript" src="../../src/color/GrayColor.js"></script>
	<script type="text/javascript" src="../../src/color/GradientColor.js"></script>
	<script type="text/javascript" src="../../src/color/Gradient.js"></script>
	<script type="text/javascript" src="../../src/color/GradientStop.js"></script>
	<script type="text/javascript" src="../../src/util/CanvasDraw.js"></script>
	<script>
		window.onload = function() {

			var canvas = document.getElementById('canvas');
			var doc = new Doc(canvas);

			var balls = [];

			var circlePath = new Path.Circle([0, 0], 10);
			circlePath.fillColor = new GradientColor(null, [0, 0], [0, 12], [0, 2]);
			circlePath.fillColor.gradient.type = 'radial';

			var symbol = new Symbol(circlePath);
			

			var group = new Group();

			var Ball = Base.extend({
				initialize: function(point, vector) {
					if (!vector || vector.isZero()) {
						this.vector = Point.random().multiply(5);
					} else {
						this.vector = vector.multiply(1.5);
					}
					this.point = point;
					this.dampen = 0.4;
					this.gravity = 3;
					this.bounce = -0.6;
					this.radius = 50 * Math.random() + 10;
					this.item = new PlacedSymbol(symbol);
					this.item.position = point;
					this.item.scale(this.radius / 10);
					group.appendTop(this.item);
				},

				contrainPoint: function() {
					var x = this.point.x;
					var y = this.point.y;
					var radius = this.radius;
					this.point.x = Math.min(Math.max(radius, x), doc.size.width - radius);
					this.point.y = Math.min(Math.max(radius, y), doc.size.height - radius);
				},

				iterate: function() {
{'fraction_non_alphanumeric': 0.2342747987447128, 'fraction_numerical': 0.007367990176013099, 'mean_word_length': 3.474969474969475, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '3812860', 'n_tokens_mistral': 2601, 'n_tokens_neox': 2296, 'n_words': 395}