<commit_before>require 'roundrect'
math.randomseed(os.time())

varfilter = '$(%w+)%$?'
function printf(template, rep)
	return (template:gsub(varfilter, rep))
end

state = {frame = 0, totaltime = 0, current = 'mainmenu'}
states = {}

officialnames = {a = 'Amania', b = 'Bzadoria',
	c = 'Cadadonia', d = 'Darzamin', ar = 'Anarchists',
	br = 'Fighters for the Common Good', cr = 'Eclectic Monkeys',
	dr = 'Alliance of Oppressed People', dem = 'Deus Ex Machines',
	player = 'You', sc = 'SpaceCorp'}

function registerstate(name)
	states[name] = {}
	states[name].keypressed = {}
end
registerstate'game'
registerstate'dead'

require "hook"

function love.load()
	require "map"
	require "graphics"
	require "ui"
	require "player"
	require "ai"
	require "ships"
	require "physics"
	require "mainmenu"
	require "base"
	require "mission"
	require "diplomacy"
	require "help"
	require "conv"
	
	smallfont = love.graphics.newFont('gemfontone.ttf', 16)
	largefont = love.graphics.newFont('gemfontone.ttf', 30)
	mediumfont = love.graphics.newFont('gemfontone.ttf', 22)
	love.graphics.setFont(largefont)
	
	restart()
end<commit_msg>Fixes nasty error-loop if something goes wrong before fonts are properly initialized<commit_after>require 'roundrect'
math.randomseed(os.time())

varfilter = '$(%w+)%$?'
function printf(template, rep)
	return (template:gsub(varfilter, rep))
end

state = {frame = 0, totaltime = 0, current = 'mainmenu'}
states = {}

officialnames = {a = 'Amania', b = 'Bzadoria',
	c = 'Cadadonia', d = 'Darzamin', ar = 'Anarchists',
	br = 'Fighters for the Common Good', cr = 'Eclectic Monkeys',
	dr = 'Alliance of Oppressed People', dem = 'Deus Ex Machines',
	player = 'You', sc = 'SpaceCorp'}

function registerstate(name)
	states[name] = {}
	states[name].keypressed = {}
end
registerstate'game'
registerstate'dead'

require "hook"

function love.load()
	smallfont = love.graphics.newFont('gemfontone.ttf', 16)
	largefont = love.graphics.newFont('gemfontone.ttf', 30)
	mediumfont = love.graphics.newFont('gemfontone.ttf', 22)
	love.graphics.setFont(largefont)
	
	require "map"
	require "graphics"
	require "ui"
	require "player"
	require "ai"
	require "ships"
	require "physics"
	require "mainmenu"
	require "base"
	require "mission"
	require "diplomacy"
	require "help"
	require "conv"
	
	restart()
end
{'fraction_non_alphanumeric': 0.14880694143167028, 'fraction_numerical': 0.006941431670281995, 'mean_word_length': 5.283378746594005, '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': '7329509', 'n_tokens_mistral': 848, 'n_tokens_neox': 816, 'n_words': 214}