<commit_before>package.path = package.path .. ";/Users/joecrozier/Development/crAIg/?.lua;/Users/joecrozier/Development/crAIg/runtime/;"
-- pretty = require "pl.pretty".dump
function pretty(str)
	return str
end

--Initialize math.random()
math.randomseed(os.time())
math.random()

require("NEAT/newGeneration")
require("NEAT/models/Genome")
require("NEAT/mutateGenome")
require("NEAT/models/Species")
require("runtime/chooseOutputs")
require("runtime/marioCraig")

require("NEAT/util/deepFitnessCalculate")
require("runtime/persistence");



local crAIg = {}
crAIg.species = {}
crAIg.generation = 0


--Give crAIg a seed species
local seedSpecies = Species:new()

--Give crAIg a random genome
local randomGenome = Genome:new()
mutateAddSynapse(randomGenome)

table.insert(seedSpecies.genomes,randomGenome)
table.insert(crAIg.species,seedSpecies)

--Uncomment to load a previous iteration of crAIg
crAIg = persistence.load("runtime/crAIgs/crAIg-saved-39.lua")

local numGenerations = 1000
for i=1,numGenerations do
	newGeneration(crAIg)

	--Save crAIg
	local crAIgName = "runtime/crAIgs/crAIg-saved-"..crAIg.generation..".lua";
	persistence.store(crAIgName, crAIg);
end<commit_msg>crAIg will not be auto-loaded from a previous generation by default.<commit_after>package.path = package.path .. ";/Users/joecrozier/Development/crAIg/?.lua;/Users/joecrozier/Development/crAIg/runtime/;"
-- pretty = require "pl.pretty".dump
function pretty(str)
	return str
end

--Initialize math.random()
math.randomseed(os.time())
math.random()

require("NEAT/newGeneration")
require("NEAT/models/Genome")
require("NEAT/mutateGenome")
require("NEAT/models/Species")
require("runtime/chooseOutputs")
require("runtime/marioCraig")

require("NEAT/util/deepFitnessCalculate")
require("runtime/persistence");



local crAIg = {}
crAIg.species = {}
crAIg.generation = 0


--Give crAIg a seed species
local seedSpecies = Species:new()

--Give crAIg a random genome
local randomGenome = Genome:new()
mutateAddSynapse(randomGenome)

table.insert(seedSpecies.genomes,randomGenome)
table.insert(crAIg.species,seedSpecies)

--Uncomment to load a previous iteration of crAIg
--crAIg = persistence.load("runtime/crAIgs/crAIg-saved-39.lua")

local numGenerations = 1000
for i=1,numGenerations do
	newGeneration(crAIg)

	--Save crAIg
	local crAIgName = "runtime/crAIgs/crAIg-saved-"..crAIg.generation..".lua";
	persistence.store(crAIgName, crAIg);
end
{'fraction_non_alphanumeric': 0.13984278030616468, 'fraction_numerical': 0.006619776582540339, 'mean_word_length': 5.773109243697479, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6011149', 'n_tokens_mistral': 894, 'n_tokens_neox': 835, 'n_words': 153}