<commit_before>'use strict';

var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
var x = 20, y = 20;
var vx = 5, ax = 0.4;
var vy = 5, ay = 0.7;
var i = 0;
canvas.width = 1000;
canvas.height = 800;
var draw = function() {
	ctx.strokeStyle = '#fff';
	ctx.beginPath();
	ctx.moveTo(x, y);
	while(i < 10000) {
		i ++;
		if(i % 5 == 0) {
			vx = vx*ax;
			vy = vy*ay;
		}
		x += vx;
		y += vy;
		if(vx < 0.5) {
			vx = 5;
		}
		if(vy < 0.5) {
			vy = 5;
		}
		ctx.lineTo(x, y);
	}
	ctx.stroke();
}

draw();

var draw2 = function() {
	x = 20;
	y = 20;
	vx = 5;
	vy = 2;
	ctx.strokeStyle = '#6789fe';
	ctx.beginPath();
	ctx.moveTo(x, y);
	while(vx > -5) {
		vx -= 0.05;
		x += vx;
		y += vy;
		if(y<1000 && vx < -4.5) {
			vx = 6;
		}
		ctx.lineTo(x, y);
	}
	ctx.stroke();
}

draw2();<commit_msg>draw sin<commit_after>'use strict';

var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
var x = 20, y = 20;
var vx = 5, ax = 0.4;
var vy = 5, ay = 0.7;
var i = 0;
canvas.width = 1000;
canvas.height = 800;
var draw = function() {
	ctx.strokeStyle = '#fff';
	ctx.beginPath();
	ctx.moveTo(x, y);
	while(i < 10000) {
		i ++;
		if(i % 5 == 0) {
			vx = vx*ax;
			vy = vy*ay;
		}
		x += vx;
		y += vy;
		if(vx < 0.5) {
			vx = 5;
		}
		if(vy < 0.5) {
			vy = 5;
		}
		ctx.lineTo(x, y);
	}
	ctx.stroke();
}

draw();

var draw2 = function() {
	x = 20;
	y = 20;
	vx = 5;
	vy = 2;
	ctx.strokeStyle = '#6789fe';
	ctx.beginPath();
	ctx.moveTo(x, y);
	while(vx > -5) {
		vx -= 0.05;
		x += vx;
		y += vy;
		if(y<1000 && vx < -4.5) {
			vx = 6;
		}
		ctx.lineTo(x, y);
	}
	ctx.stroke();
}

draw2();

var draw3 = function() {
	x = 200;
	y = 200;

	ctx.strokeStyle = '#fe4543';
	ctx.beginPath();
	ctx.moveTo(x, y);

	while(x<200+200*Math.PI) {
		x += 0.1;
		y = 200 + 25*Math.sin(0.2*x);
		ctx.lineTo(x, y);
	}
	ctx.stroke();
}

draw3();
{'fraction_non_alphanumeric': 0.2280982905982906, 'fraction_numerical': 0.07318376068376069, 'mean_word_length': 2.455719557195572, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 5, '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': '1809496', 'n_tokens_mistral': 1080, 'n_tokens_neox': 910, 'n_words': 216}