<commit_before>function ImageFile(_game) {
	this.game = _game;
	this.name = new Array();
	this.data = new Array();
	this.counter = 0;
	
	return this;
};
	
ImageFile.prototype.load = function(_imageSrc, _width, _height) {
	if(!this.getImageDataByName(_imageSrc)) {
		var self = this;
		var _image = new Image();
		_image.src = _imageSrc;
		_image.addEventListener('load', function(){self.counter++});
		this.name.push(_imageSrc);
		this.data.push(_image);
	}
	
	var s = new Sprite(_imageSrc, _width, _height);
	s.image = this.getImageDataByName(_imageSrc);
	this.game.current.scene.sprite.push(s);
	
	return s;
};
	<commit_msg>Create loadMap function to load map images<commit_after>function ImageFile(_game) {
	this.game = _game;
	this.name = new Array();
	this.data = new Array();
	this.counter = 0;
	
	return this;
};
	
ImageFile.prototype.load = function(_imageSrc, _width, _height) {
	if(!this.getImageDataByName(_imageSrc)) {
		var self = this;
		var _image = new Image();
		_image.src = _imageSrc;
		_image.addEventListener('load', function(){self.counter++});
		this.name.push(_imageSrc);
		this.data.push(_image);
	}
	
	var s = new Sprite(_imageSrc, _width, _height);
	s.image = this.getImageDataByName(_imageSrc);
	this.game.current.scene.sprite.push(s);
	
	return s;
};

ImageFile.prototype.loadMap = function(_imageSrc, _width, _height) {
	if(!this.getImageDataByName(_imageSrc)) {
		var self = this;
		var _image = new Image();
		_image.src = _imageSrc;
		_image.addEventListener('load', function(){self.counter++});
		this.name.push(_imageSrc);
		this.data.push(_image);
	}
	
	return this.getImageDataByName(_imageSrc);
}
	
{'fraction_non_alphanumeric': 0.15158924205378974, 'fraction_numerical': 0.0012224938875305623, 'mean_word_length': 4.684027777777778, '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': '3345789', 'n_tokens_mistral': 603, 'n_tokens_neox': 571, 'n_words': 112}