<commit_before>var quadToDay = {
	"A": "Monday",
	"B": "Thursday",
	"C": "Tuesday",
	"D": "Friday",
	"E": "Daily"
};

var quads = L.geoJson(quadsJson);

function onLocationFound(ll) {
	var layer = leafletPip.pointInLayer(ll, quads);
	if (layer.length) {
		var quad = layer[0].feature.properties.QUAD;
		var pickupDay = quadToDay[quad];
	};

	document.getElementById('day').innerHTML = layer.length ? '<h2>Your trash gets picked up on ' + pickupDay + '</h2>' : '<h2>Address outside of service area.</h2>';
};

$('#geocode').submit(function(e) {
	var address = $('#formValueId').val();
	var url = 'http://nominatim.openstreetmap.org/search?q='+ encodeURIComponent(address) +'&format=json&limit-1&addressdetails=1';
	$.getJSON(url, function(data) {
		var lat = data[0].lat;
		var lon = data[0].lon;

		document.getElementById('coords').innerHTML = '<h2>Your address is located at [' + lat + ', ' + lon + '].</h2>';

		onLocationFound(L.latLng(lat, lon));
	});
	e.preventDefault();
});<commit_msg>changed service area to urban service area<commit_after>var quadToDay = {
	"A": "Monday",
	"B": "Thursday",
	"C": "Tuesday",
	"D": "Friday",
	"E": "Daily"
};

var quads = L.geoJson(quadsJson);

function onLocationFound(ll) {
	var layer = leafletPip.pointInLayer(ll, quads);
	if (layer.length) {
		var quad = layer[0].feature.properties.QUAD;
		var pickupDay = quadToDay[quad];
	};

	document.getElementById('day').innerHTML = layer.length ? '<h2>Your trash gets picked up on ' + pickupDay + '</h2>' : '<h2>Address outside of urban service area.</h2>';
};

$('#geocode').submit(function(e) {
	var address = $('#formValueId').val();
	var url = 'http://nominatim.openstreetmap.org/search?q='+ encodeURIComponent(address) +'&format=json&limit-1&addressdetails=1';
	$.getJSON(url, function(data) {
		var lat = data[0].lat;
		var lon = data[0].lon;

		document.getElementById('coords').innerHTML = '<h2>Your address is located at [' + lat + ', ' + lon + '].</h2>';

		onLocationFound(L.latLng(lat, lon));
	});
	e.preventDefault();
});
{'fraction_non_alphanumeric': 0.20385947550717468, 'fraction_numerical': 0.010885700148441365, 'mean_word_length': 4.947058823529412, 'pattern_counts': {'":': 10, '<': 15, '<?xml version=': 0, '>': 15, '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': '2842973', 'n_tokens_mistral': 760, 'n_tokens_neox': 731, 'n_words': 153}