<commit_before>/*
 * Circle canvas specific drawing parts.
 */

L.Circle.include(!L.Path.CANVAS ? {} : {
	_drawPath: function() {
		var p = this._point;
		
		this._updateStyle();
		this._ctx.arc(p.x, p.y, this._radius, 0, Math.PI * 2);
	},
	
	_initEvents: function() {
		if (this.options.clickable) {
			// TODO hand cursor
			// TODO mouseover, mouseout, dblclick 
			this._map.on('click', this._onClick, this);
		}
	},
	
	_onClick: function(e) {
		var p1 = this._point, 
			p2 = e.layerPoint,
			w2 = this.options.stroke ? this.options.weight / 2 : 0;
		
		if (p1.distanceTo(p2) <= this._radius + w2) {
			this.fire('click', e);
		}
	}
});<commit_msg>removed excessive line<commit_after>/*
 * Circle canvas specific drawing parts.
 */

L.Circle.include(!L.Path.CANVAS ? {} : {
	_drawPath: function() {
		var p = this._point;
		this._ctx.arc(p.x, p.y, this._radius, 0, Math.PI * 2);
	},
	
	_initEvents: function() {
		if (this.options.clickable) {
			// TODO hand cursor
			// TODO mouseover, mouseout, dblclick 
			this._map.on('click', this._onClick, this);
		}
	},
	
	_onClick: function(e) {
		var p1 = this._point, 
			p2 = e.layerPoint,
			w2 = this.options.stroke ? this.options.weight / 2 : 0;
		
		if (p1.distanceTo(p2) <= this._radius + w2) {
			this.fire('click', e);
		}
	}
});
{'fraction_non_alphanumeric': 0.1768813033359193, 'fraction_numerical': 0.015515903801396431, 'mean_word_length': 2.8855421686746987, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3420307', 'n_tokens_mistral': 564, 'n_tokens_neox': 500, 'n_words': 103}