<commit_before>$(function () {
	showStraightMovingStars();
	showDiagonalStars();
	animateSpiralSky();
});

//this function is responsible for everything related to the spiral
function animateSpiralSky () {
	console.log('success');
	
	"use strict"
	//console.log('Hi');
	var winHeight = $(window).height();
	var winWidth = $(window).width();
	var cx = winWidth/2 - 9;
	var cy = winHeight/2;
	var r = 0;
	var degree = 0;
	var px = cx;		// + r * Math.cos(degree * Math.PI/180)
	var py = cy; 		// + r * Math.sin(degree * Math.PI/180)
	var randRed = 0;
	var randGreen = 0;
	var randBlue = 0;
	//var colors = ['blue','blueviolet','aqua','red','brown','orange','chocolate','coral','crimson','cyan','darkblue','darkgoldenrod','darkslateblue','deepskyblue','dodgerblue','firebrick','indianred','indigo','maroon','mediumblue','orangered','navy','steelblue','slateblue']
	var colors = ['blue','red'];
	var colorIndex = 0;

	var animateFunc = window.requestAnimationFrame || window.setTimeout;

	$('#canvasSpiral')[0].width = winWidth;
	$('#canvasSpiral')[0].height = winHeight;
	
	var ctx = $('#canvasSpiral')[0].getContext('2d');

	//give a random color to the brush
	
	ctx.fillStyle = "RGB("+randRed+","+randGreen+","+randBlue+")";

	function randBrushColor () {
		//give a random color to the brush
		//colorIndex = Math.floor(Math.random() * colors.length);
		//console.log(colorIndex);
		ctx.fillStyle = colors[colorIndex];
		colorIndex++;
		if (colorIndex > 1) {colorIndex=0;}
	}
	randBrushColor();

	var i = -1;
	r=40;
	function spiralIt () {
		i++;
		ctx.fillRect(px, py, 4, 4);
		if(i%9 == 0) {
			r++;
		}		
		degree++;
		px = cx + r * Math.cos(degree * Math.PI/180);
		py = cy + r * Math.sin(degree * Math.PI/180);<commit_msg>Changed circular orbit to elliptical one<commit_after>$(function () {
	showStraightMovingStars();
	showDiagonalStars();
	animateSpiralSky();
});

//this function is responsible for everything related to the spiral
function animateSpiralSky () {
	console.log('success');
	
	"use strict"
	//console.log('Hi');
	var winHeight = $(window).height();
	var winWidth = $(window).width();
	var cx = winWidth/2 - 9;
	var cy = winHeight/2;
	var r = 0;
	var degree = 0;
	var px = cx;		// + r * Math.cos(degree * Math.PI/180)
	var py = cy; 		// + r * Math.sin(degree * Math.PI/180)
	var randRed = 0;
	var randGreen = 0;
	var randBlue = 0;
	//var colors = ['blue','blueviolet','aqua','red','brown','orange','chocolate','coral','crimson','cyan','darkblue','darkgoldenrod','darkslateblue','deepskyblue','dodgerblue','firebrick','indianred','indigo','maroon','mediumblue','orangered','navy','steelblue','slateblue']
	var colors = ['blue','red'];
	var colorIndex = 0;

	var animateFunc = window.requestAnimationFrame || window.setTimeout;

	$('#canvasSpiral')[0].width = winWidth;
	$('#canvasSpiral')[0].height = winHeight;
	
	var ctx = $('#canvasSpiral')[0].getContext('2d');

	//give a random color to the brush
	
	ctx.fillStyle = "RGB("+randRed+","+randGreen+","+randBlue+")";

	function randBrushColor () {
		//give a random color to the brush
		//colorIndex = Math.floor(Math.random() * colors.length);
		//console.log(colorIndex);
		ctx.fillStyle = colors[colorIndex];
		colorIndex++;
		if (colorIndex > 1) {colorIndex=0;}
	}
	randBrushColor();

	var i = -1;
	r=40;
	function spiralIt () {
		i++;
		ctx.fillRect(px, py, 4, 4);
		if(i%9 == 0) {
			r++;
		}		
		degree++;
		px = cx + r * Math.cos(degree * Math.PI/180);
		py = cy + (r+r/2) * Math.sin(degree * Math.PI/180);
{'fraction_non_alphanumeric': 0.19856527977044477, 'fraction_numerical': 0.019799139167862266, 'mean_word_length': 4.438377535101404, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3353169', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1255, 'n_words': 274}