<commit_before>// First p5.js program

// define variables
var x;

// setup is called once at the start of the program
function setup() {
	createCanvas(200, 200); // set width and height of drawing canvas
	x = width/2;
}

// draw is called 60 times per second (frameRate) by default
function draw() {
	background(150, 0, 0); // arguments: RGB color values
	ellipse(x, 50, 50, 50); // arguments: x, y, width, height
	x = x + 1;

	if (x > width) {
		x = 0;
	}
}<commit_msg>Update first p5 sketch<commit_after>// First p5.js program

// define variables
var x, y,  speedX = 3, speedY = 2;

// setup is called once at the start of the program
function setup() {
	createCanvas(windowWidth, windowHeight); // set width and height of drawing canvas
	x = width/2;
	y = height/2;
}

// draw is called 60 times per second (frameRate) by default
function draw() {
	background(0); // arguments: RGB color values
	ellipse(x, y, 50, 50); // arguments: x, y, width, height
	x = x + speedX;
	y = y + speedY

	if (x > width || x < 0) {
		speedX = - speedX;
	}
	if (y > height || y < 0) {
		speedY = - speedY;
	}
}
{'fraction_non_alphanumeric': 0.13412408759124086, 'fraction_numerical': 0.03467153284671533, 'mean_word_length': 3.062962962962963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5789416', 'n_tokens_mistral': 417, 'n_tokens_neox': 379, 'n_words': 154}