<commit_before>
lychee.define('lychee.game.Main').requires([
	'lychee.game.Loop'
]).includes([
	'lychee.Events'
]).exports(function(lychee) {

	var Class = function(settings) {

		this.settings = lychee.extend({}, this.defaults, settings);

		this.states = {};
		this.__state = null;

		lychee.Events.call(this, 'game');

	};


	Class.prototype = {

		defaults: {
			renderFps: 60,
			updateFps: 60,
			width: 1024,
			height: 768
		},

		load: function() {
		},

		init: function(context) {

			context = context !== undefined ? context : null;

			this.loop = new lychee.game.Loop({
				render: this.settings.renderFps,
				update: this.settings.updateFps,
				context: context
			});

			this.loop.bind('update', this.updateLoop, this);
			this.loop.bind('render', this.renderLoop, this);

		},

		start: function() {
			this.loop.start();
		},

		stop: function() {
			this.loop.stop();
		},

		getState: function(id) {

			id = typeof id === 'string' ? id : null;

			return this.states[id] || this.__state;<commit_msg>lychee.game.Main: Removed context from initialization, as it isn't required anymore<commit_after>
lychee.define('lychee.game.Main').requires([
	'lychee.game.Loop'
]).includes([
	'lychee.Events'
]).exports(function(lychee) {

	var Class = function(settings) {

		this.settings = lychee.extend({}, this.defaults, settings);

		this.states = {};
		this.__state = null;

		lychee.Events.call(this, 'game');

	};


	Class.prototype = {

		defaults: {
			renderFps: 60,
			updateFps: 60,
			width: 1024,
			height: 768
		},

		load: function() {
		},

		init: function() {

			this.loop = new lychee.game.Loop({
				render: this.settings.renderFps,
				update: this.settings.updateFps
			});

			this.loop.bind('update', this.updateLoop, this);
			this.loop.bind('render', this.renderLoop, this);

		},

		start: function() {
			this.loop.start();
		},

		stop: function() {
			this.loop.stop();
		},

		getState: function(id) {

			id = typeof id === 'string' ? id : null;

			return this.states[id] || this.__state;
{'fraction_non_alphanumeric': 0.17297297297297298, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 3.2863157894736843, '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': '4076944', 'n_tokens_mistral': 865, 'n_tokens_neox': 706, 'n_words': 139}