<commit_before>Building = function(game, x, y, resource) {
    Phaser.Sprite.call(this, game, x, y, resource);
    this.anchor.setTo(0.5, 0.5);

    this.lastWavesSentTime = 0;
};

Building.prototype = Object.create(Phaser.Sprite.prototype);
Building.prototype.constructor = Building;

Building.prototype.doTick = function(time) {
	var time = new Date();
	var delta = Math.round(Math.random()*3) + 1
	if ((time/1000 - this.lastWavesSentTime / 1000) > delta) {
		this.sendWaves();
		this.lastWavesSentTime = time;
	}
};<commit_msg>change emit timing<commit_after>Building = function(game, x, y, resource) {
    Phaser.Sprite.call(this, game, x, y, resource);
    this.anchor.setTo(0.5, 0.5);

    this.lastWavesSentTime = 0;
};

Building.prototype = Object.create(Phaser.Sprite.prototype);
Building.prototype.constructor = Building;

Building.prototype.doTick = function(time) {
	var time = new Date();
	var delta = Math.round(Math.random()*11) + 1
	if ((time/1000 - this.lastWavesSentTime / 1000) > delta) {
		this.sendWaves();
		this.lastWavesSentTime = time;
	}
};
{'fraction_non_alphanumeric': 0.15572232645403378, 'fraction_numerical': 0.029080675422138838, 'mean_word_length': 4.308457711442786, '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': '2911037', 'n_tokens_mistral': 406, 'n_tokens_neox': 374, 'n_words': 74}