<commit_before>-- fruit.lua

local fruit = {} ; fruit.__index = fruit

function fruit.new()
	local f = setmetatable({}, fruit)
	return f
end

function fruit:set(x, y)
	self.x = x
	self.y = y
	grid:placeAt(x, y, "fruit", self)
end

function fruit:collision(x, y)
	return (x == self.x) and (y == self.y)
end

function fruit:draw()
	local r, g, b, a = love.graphics.getColor()
	local size = grid.size
	love.graphics.setColor(255, 0, 0)
	love.graphics.circle("fill", (self.x*size)+(size/2)+4, (self.y*size)+(size/2)+4, (size/2), 100)
	love.graphics.setColor(r, g, b, a)
end

return fruit<commit_msg>Changed fruit colour<commit_after>-- fruit.lua

local fruit = {} ; fruit.__index = fruit

function fruit.new()
	local f = setmetatable({}, fruit)
	return f
end

function fruit:set(x, y)
	self.x = x
	self.y = y
	grid:placeAt(x, y, "fruit", self)
end

function fruit:collision(x, y)
	return (x == self.x) and (y == self.y)
end

function fruit:draw()
	local r, g, b, a = love.graphics.getColor()
	local size = grid.size
	love.graphics.setColor(5, 5, 5, 128)
	love.graphics.circle("fill", (self.x*size)+(size/2)+4, (self.y*size)+(size/2)+4, (size/2), 100)
	love.graphics.setColor(r, g, b, a)
end

return fruit
{'fraction_non_alphanumeric': 0.18083333333333335, 'fraction_numerical': 0.0225, 'mean_word_length': 4.221739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3782142', 'n_tokens_mistral': 502, 'n_tokens_neox': 480, 'n_words': 128}