<commit_before>local sensorNetworkID = 1
local deathNetworkID  = 50
local score = 0


--Timing related stuff below
local fpsCounter = 0
local fps = 0
local lastSecond = 0

local function updateTime()
	if Time.total - lastSecond > 1 then
		fps = fpsCounter
		fpsCounter = 0
		lastSecond = Time.total
	end
	fpsCounter = fpsCounter + 1
end

local function renderTime()
	local pos  = vec2(0,0);
	local text = string.format("FPS: %d Total %.2f \nElapsed %.3f" , fps, Time.total, Time.elapsed)
	Renderer.addText(font, text, pos, 0xFF03cc42);	
end



function init()
	frame = Loader.loadFrame("orb.png")
	font  = Loader.loadFont("Arial32_0.png", "Arial32.fnt")
    rotation = 0

    cfuns.C.networkConnect();


end

function term()
	Loader.unloadFrame(frame)
	Loader.unloadFont(font)
end

function handleMessage(id, length)

	if id == deathNetworkID then
		score = In.readShort(Network.in_)
	end
end

function update()
	updateTime();

	if not cfuns.C.networkIsAlive(Network) then
		log("We are not connected :(")
		return;
	end<commit_msg>Correct lua code for starting message.<commit_after>local sensorNetworkID = 1
local deathNetworkID  = 50
local score = 0


--Timing related stuff below
local fpsCounter = 0
local fps = 0
local lastSecond = 0

local function updateTime()
	if Time.total - lastSecond > 1 then
		fps = fpsCounter
		fpsCounter = 0
		lastSecond = Time.total
	end
	fpsCounter = fpsCounter + 1
end

local function renderTime()
	local pos  = vec2(0,0);
	local text = string.format("FPS: %d Total %.2f \nElapsed %.3f" , fps, Time.total, Time.elapsed)
	Renderer.addText(font, text, pos, 0xFF03cc42);	
end



function init()
	frame = Loader.loadFrame("orb.png")
	font  = Loader.loadFont("Arial32_0.png", "Arial32.fnt")
    rotation = 0

    cfuns.C.networkConnect(Network);
end

function term()
	Loader.unloadFrame(frame)
	Loader.unloadFont(font)
end

function handleMessage(id, length)

	if id == deathNetworkID then
		score = In.readShort(Network.in_)
	end
end

function update()
	updateTime();

	if not cfuns.C.networkIsAlive(Network) then
		log("We are not connected :(")
		return;
	end
{'fraction_non_alphanumeric': 0.109360076408787, 'fraction_numerical': 0.024832855778414518, 'mean_word_length': 4.097323600973236, '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': '938990', 'n_tokens_mistral': 802, 'n_tokens_neox': 742, 'n_words': 210}