<commit_before>function Waypoint(options) {

	this.set('id', options.id);
	this.set('position', options.position);
	this.set('elevation', options.elevation);
	this.set('description', options.description);
	this.set('radius', options.radius);
	this.set('color', options.color);
	this.set('map', options.map);

	var richMarkerContent = $('#richMarker').clone().attr({id: null}).show();
	richMarkerContent.css('background-color', '#' + options.color);
	var label = this.get('id');
	var match = /^([A-Z][0-9]{2})([0-9]{3})$/.exec(this.get('id'));
	if (match && 10 * (match[2] - 1) <= this.get('elevation') && this.get('elevation') <= 10 * (match[2] + 1)) {
		label = match[1];
	}
	$('#label', richMarkerContent).html(label);
	var marker = new RichMarker({
		anchor: RichMarkerPosition.MIDDLE,
		content: richMarkerContent.get(0),
		flat: true,
		map: this.get('map')
	});
	marker.bindTo('position', this);
	marker.bindTo('map', this);

	var circle = new google.maps.Circle({
		clickable: false,
		fillOpacity: 0.25,
		strokeOpacity: 1,
		strokeWeight: 1
	});
	circle.bindTo('center', this, 'position');
	circle.bindTo('fillColor', this, 'color');
	circle.bindTo('radius', this);
	circle.bindTo('strokeColor', this, 'color');
	circle.bindTo('map', this);

	var infoWindowContent = $('#infoWindow').clone().attr({id: null}).show();
	$('#id', infoWindowContent).html(this.get('id'));
	$('#lat', infoWindowContent).html(this.get('position').lat());
	$('#lng', infoWindowContent).html(this.get('position').lng());
	$('#elevation', infoWindowContent).html(this.get('elevation'));
	$('#description', infoWindowContent).html(this.get('description'));
	$('#radius', infoWindowContent).html(this.get('radius'));
	$('#color', infoWindowContent).html(this.get('color'));
	var infoWindow = new google.maps.InfoWindow({content: infoWindowContent.get(0)});

	google.maps.event.addListener(marker, 'click', function () {
		infoWindow.open(map, marker);
	});

	google.maps.event.addListener(marker, 'dblclick', function () {
		map.panTo(position);
		map.setZoom(15);
	});

}

Waypoint.prototype = new google.maps.MVCObject();

$(document).ready(function(){
	$.getJSON("wpt2json.json?url={{ url|addslashes }}", function(geojson) {
		var map = new google.maps.Map($('#map').get(0), {
			disableDoubleClickZoom: true,
			mapTypeId: google.maps.MapTypeId.TERRAIN
		});
		var bounds = new google.maps.LatLngBounds(
			new google.maps.LatLng(geojson.bbox[1], geojson.bbox[0]),<commit_msg>Use single quotes consistently<commit_after>function Waypoint(options) {

	this.set('id', options.id);
	this.set('position', options.position);
	this.set('elevation', options.elevation);
	this.set('description', options.description);
	this.set('radius', options.radius);
	this.set('color', options.color);
	this.set('map', options.map);

	var richMarkerContent = $('#richMarker').clone().attr({id: null}).show();
	richMarkerContent.css('background-color', '#' + options.color);
	var label = this.get('id');
	var match = /^([A-Z][0-9]{2})([0-9]{3})$/.exec(this.get('id'));
	if (match && 10 * (match[2] - 1) <= this.get('elevation') && this.get('elevation') <= 10 * (match[2] + 1)) {
		label = match[1];
	}
	$('#label', richMarkerContent).html(label);
	var marker = new RichMarker({
		anchor: RichMarkerPosition.MIDDLE,
		content: richMarkerContent.get(0),
		flat: true,
		map: this.get('map')
	});
	marker.bindTo('position', this);
	marker.bindTo('map', this);

	var circle = new google.maps.Circle({
		clickable: false,
		fillOpacity: 0.25,
		strokeOpacity: 1,
		strokeWeight: 1
	});
	circle.bindTo('center', this, 'position');
	circle.bindTo('fillColor', this, 'color');
	circle.bindTo('radius', this);
	circle.bindTo('strokeColor', this, 'color');
	circle.bindTo('map', this);

	var infoWindowContent = $('#infoWindow').clone().attr({id: null}).show();
	$('#id', infoWindowContent).html(this.get('id'));
	$('#lat', infoWindowContent).html(this.get('position').lat());
	$('#lng', infoWindowContent).html(this.get('position').lng());
	$('#elevation', infoWindowContent).html(this.get('elevation'));
	$('#description', infoWindowContent).html(this.get('description'));
	$('#radius', infoWindowContent).html(this.get('radius'));
	$('#color', infoWindowContent).html(this.get('color'));
	var infoWindow = new google.maps.InfoWindow({content: infoWindowContent.get(0)});

	google.maps.event.addListener(marker, 'click', function () {
		infoWindow.open(map, marker);
	});

	google.maps.event.addListener(marker, 'dblclick', function () {
		map.panTo(position);
		map.setZoom(15);
	});

}

Waypoint.prototype = new google.maps.MVCObject();

$(document).ready(function(){
	$.getJSON('wpt2json.json?url={{ url|addslashes }}', function(geojson) {
		var map = new google.maps.Map($('#map').get(0), {
			disableDoubleClickZoom: true,
			mapTypeId: google.maps.MapTypeId.TERRAIN
		});
		var bounds = new google.maps.LatLngBounds(
			new google.maps.LatLng(geojson.bbox[1], geojson.bbox[0]),
{'fraction_non_alphanumeric': 0.21947762705001012, 'fraction_numerical': 0.01133832759667949, 'mean_word_length': 5.918767507002801, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3367922', 'n_tokens_mistral': 1770, 'n_tokens_neox': 1697, 'n_words': 278}