<commit_before>/*
 * L.Circle is a circle overlay (with a certain radius in meters). 
 */

L.Circle = L.Path.extend({
	initialize: function(latlng, radius, options) {
		L.Path.prototype.initialize.call(this, options);
		
		this._latlng = latlng;
		this._mRadius = radius;
	},
	
	options: {
		fill: true
	},
	
	setLatLng: function(latlng) {
		this._latlng = latlng;
		this._redraw();
		return this;
	},
	
	setRadius: function(radius) {
		this._mRadius = radius;
		this._redraw();
		return this;
	},
	
	projectLatlngs: function() {
		var equatorLength = 40075017,
			scale = this._map.options.scale(this._map._zoom),
			hLength = equatorLength * Math.cos(L.LatLng.DEG_TO_RAD * this._latlng.lat);

		var lngSpan = (this._mRadius / hLength) * 360,
			latlng2 = new L.LatLng(this._latlng.lat, this._latlng.lng - lngSpan, true),
			point2 = this._map.latLngToLayerPoint(latlng2);

		this._point = this._map.latLngToLayerPoint(this._latlng);
		this._radius = Math.round(this._point.x - point2.x);
	},
	
	getPathString: function() {
		var p = this._point,
			r = this._radius;
		
		if (this._checkIfEmpty()) { return ''; }
		
		if (L.Browser.svg) {
			return "M" + p.x + "," + (p.y - r) + 
					"A" + r + "," + r + ",0,1,1," + <commit_msg>minor cleanup<commit_after>/*
 * L.Circle is a circle overlay (with a certain radius in meters). 
 */

L.Circle = L.Path.extend({
	initialize: function(latlng, radius, options) {
		L.Path.prototype.initialize.call(this, options);
		
		this._latlng = latlng;
		this._mRadius = radius;
	},
	
	options: {
		fill: true
	},
	
	setLatLng: function(latlng) {
		this._latlng = latlng;
		this._redraw();
		return this;
	},
	
	setRadius: function(radius) {
		this._mRadius = radius;
		this._redraw();
		return this;
	},
	
	projectLatlngs: function() {
		var equatorLength = 40075017,
			hLength = equatorLength * Math.cos(L.LatLng.DEG_TO_RAD * this._latlng.lat);

		var lngSpan = (this._mRadius / hLength) * 360,
			latlng2 = new L.LatLng(this._latlng.lat, this._latlng.lng - lngSpan, true),
			point2 = this._map.latLngToLayerPoint(latlng2);

		this._point = this._map.latLngToLayerPoint(this._latlng);
		this._radius = Math.round(this._point.x - point2.x);
	},
	
	getPathString: function() {
		var p = this._point,
			r = this._radius;
		
		if (this._checkIfEmpty()) { return ''; }
		
		if (L.Browser.svg) {
			return "M" + p.x + "," + (p.y - r) + 
					"A" + r + "," + r + ",0,1,1," + 
{'fraction_non_alphanumeric': 0.1614777916147779, 'fraction_numerical': 0.014943960149439602, 'mean_word_length': 3.220665499124343, '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': '6784811', 'n_tokens_mistral': 1068, 'n_tokens_neox': 936, 'n_words': 181}