<commit_before>L.Icon = L.Class.extend({
	iconUrl: L.ROOT_URL + 'images/marker.png',
	shadowUrl: L.ROOT_URL + 'images/marker-shadow.png',
	
	//iconSize: new L.Point(24, 37),
	//shadowSize: new L.Point(42, 37),
	
	iconAnchor: new L.Point(13, 41),
	popupAnchor: new L.Point(0, -33),
	
	initialize: function(iconUrl) {
		if (iconUrl) {
			this.iconUrl = iconUrl;
		}
	},
	
	createIcon: function() {
		return this._createImg('icon');
	},
	
	createShadow: function() {
		return this._createImg('shadow');
	},
	
	_createImg: function(name) {
		var img = L.DomUtil.create('img', 'leaflet-marker-' + name);
		
		img.src = this[name + 'Url'];
		
		if (this.iconAnchor) {
			img.style.marginLeft = (-this.iconAnchor.x) + 'px';
			img.style.marginTop = (-this.iconAnchor.y) + 'px';
		} else {
			L.DomEvent.addListener(img, 'load', this._setAnchorToCenter);
		}
		
		return img;
	},
	
	_setAnchorToCenter: function() {
		this.style.marginLeft = (-this.width/2) + 'px';
		this.style.marginTop = (-this.height/2) + 'px';
	}
});<commit_msg>fix markers in IE7 (you have to set the size explicitly for some reason)<commit_after>L.Icon = L.Class.extend({
	iconUrl: L.ROOT_URL + 'images/marker.png',
	shadowUrl: L.ROOT_URL + 'images/marker-shadow.png',
	
	iconSize: new L.Point(25, 41),
	shadowSize: new L.Point(41, 41),
	
	iconAnchor: new L.Point(13, 41),
	popupAnchor: new L.Point(0, -33),
	
	initialize: function(iconUrl) {
		if (iconUrl) {
			this.iconUrl = iconUrl;
		}
	},
	
	createIcon: function() {
		return this._createImg('icon');
	},
	
	createShadow: function() {
		return this._createImg('shadow');
	},
	
	_createImg: function(name) {
		var img = L.DomUtil.create('img', 'leaflet-marker-' + name),
			size = this[name + 'Size'],
			src = this[name + 'Url'];
		
		img.src = src;
		
		if (this.iconAnchor) {
			img.style.marginLeft = (-this.iconAnchor.x) + 'px';
			img.style.marginTop = (-this.iconAnchor.y) + 'px';
		} else {
			L.DomEvent.addListener(img, 'load', this._setAnchorToCenter);
		}
		
		if (size) {
			img.width = size.x;
			img.height = size.y;
		}
		
		return img;
	},
	
	_setAnchorToCenter: function() {
		this.style.marginLeft = (-this.width/2) + 'px';
		this.style.marginTop = (-this.height/2) + 'px';
	}
});
{'fraction_non_alphanumeric': 0.18333333333333332, 'fraction_numerical': 0.015765765765765764, 'mean_word_length': 3.380670611439842, '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': '5647973', 'n_tokens_mistral': 952, 'n_tokens_neox': 828, 'n_words': 164}