<commit_before>mini.Module(
		"game/game"
)
.requires(
		"game/loop",
		"engine/config",
		"scenes/titlescene"
)
.defines(function(Loop, Config, TitleScene) {
	var Game = function(configuration) {
		this.config = configuration || Config.getDefault();
		this.id = Game.nextGameID++;
		Scarlet.log("NEW GAME: " + this.id);
		this.init();
	};

	Game.nextGameID = 0;

	Game.prototype.init = function() {
		// prepare datGui
		this.datGui = new dat.GUI();

		// prepare stats
		this.stats = new Stats();
		$("body").prepend(this.stats.domElement);
		
		// Configure and start the game loop.
		this.loop = new Loop()
			.clear()
			.add(this.stats, this.stats.update)
			.start();

		this.canvas = new Bloob.Canvas({canvasId: "bloobCanvas" + this.id});
		this.audio = new Bloob.Audio(this);

		var titleScene = new TitleScene(this, this.loop).run();
	};
	
	return Game;
});<commit_msg>removed global references to canvas and audio<commit_after>mini.Module(
		"game/game"
)
.requires(
		"game/loop",
		"engine/config",
		"basic/canvas",
		"basic/audio/audio",
		"scenes/titlescene"
)
.defines(function(Loop, Config, Canvas, Audio, TitleScene) {
	var Game = function(configuration) {
		this.config = configuration || Config.getDefault();
		this.id = Game.nextGameID++;
		Scarlet.log("NEW GAME: " + this.id);
		this.init();
	};

	Game.nextGameID = 0;

	Game.prototype.init = function() {
		// prepare datGui
		this.datGui = new dat.GUI();

		// prepare stats
		this.stats = new Stats();
		$("body").prepend(this.stats.domElement);
		
		// Configure and start the game loop.
		this.loop = new Loop()
			.clear()
			.add(this.stats, this.stats.update)
			.start();

		this.canvas = new Canvas({canvasId: "bloobCanvas" + this.id});
		this.audio = new Audio(this);

		var titleScene = new TitleScene(this, this.loop).run();
	};
	
	return Game;
});
{'fraction_non_alphanumeric': 0.1717557251908397, 'fraction_numerical': 0.0010905125408942203, 'mean_word_length': 3.542079207920792, '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': '1727012', 'n_tokens_mistral': 721, 'n_tokens_neox': 645, 'n_words': 138}