<commit_before>
Level = function(game) {
	this.game = game;
};

Level.prototype = {

	preload: function() {
	    this.game.load.image('background', 'static/assets/background2.png');
	},

	create: function() {
        this.game.physics.startSystem(Phaser.Physics.ARCADE);
		// add background for this level
		this.game.add.tileSprite(0,0, 800, 600, 'background');

	},

	update: function() {
		//
	}

};<commit_msg>added fps logger in phaser screen<commit_after>
Level = function(game) {
	this.game = game;
	this.fpsText = null;
};

Level.prototype = {

	preload: function() {
	    this.game.load.image('background', 'static/assets/background2.png');
	    game.time.advancedTiming = true;
	},

	create: function() {
        this.game.physics.startSystem(Phaser.Physics.ARCADE);
		// add background for this level
		this.game.add.tileSprite(0,0, 800, 600, 'background');
        this.fpsText = game.add.text(
            20, 50, '', { font: '16px Arial', fill: '#000' }
        );
	},

	update: function() {
		if (game.time.fps !== 0) {
            this.fpsText.setText(game.time.fps + ' FPS');
        }
	}

};
{'fraction_non_alphanumeric': 0.17132551848512173, 'fraction_numerical': 0.025247971145175834, 'mean_word_length': 2.9928057553956835, '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': '4601191', 'n_tokens_mistral': 428, 'n_tokens_neox': 391, 'n_words': 71}