<commit_before>import ROM from "./rom/rom";
import data from "../data/truncated_backgrounds.dat";
export Engine from "./engine";
export BackgroundLayer from "./rom/background_layer";
const backgroundData = new Uint8Array(Array.from(data).map(x => x.charCodeAt(0)));
new ROM(backgroundData);<commit_msg>Boot properly<commit_after>import ROM from "./rom/rom";
import data from "../data/truncated_backgrounds.dat";
import Engine from "./engine";
import BackgroundLayer from "./rom/background_layer";
const backgroundData = new Uint8Array(Array.from(data).map(x => x.charCodeAt(0)));
new ROM(backgroundData);

// document.addEventListener("DOMContentLoaded", function(event) {
/* Create two layers */

document.BackgroundLayer = BackgroundLayer;

const layer1 = new document.BackgroundLayer(270);
const layer2 = new document.BackgroundLayer(269);
/* Create animation engine  */
const engine = new Engine([layer1, layer2], {
	canvas: document.querySelector("canvas")
});
document.engine = engine;
document.engine.animate();
// });
{'fraction_non_alphanumeric': 0.14829268292682926, 'fraction_numerical': 0.013658536585365854, 'mean_word_length': 6.027397260273973, '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': '3544303', 'n_tokens_mistral': 294, 'n_tokens_neox': 283, 'n_words': 74}