<commit_before>function GeoLocation() {

	// Singleton
	if (typeof GeoLocation.instance === 'object') {
		return GeoLocation.instance;
	}
	GeoLocation.instance = this;
	
	var lat = 0;
	var lng = 0;

	var success = function(geo) {
		$('#overlay .search').hide();
		if(geo.coords.accuracy > 100)
			new Overlay().show('accuracyProblem');
		else {
			new Overlay().hide();
			var map = new LTmap();
			lat = geo.coords.latitude;
			lng = geo.coords.longitude;
			map.setLocation(lat, lng);
		}
	};

	var failure = function() {
		new Overlay().show('notfound');
	};

	var geolocate = function() {
		navigator.geolocation.watchPosition(success, failure, {
			enableHighAccuracy : true,
			timeout : 60000,
			maximumAge : 0
		});
	};

	new Overlay().show('search');
	if (typeof (navigator.geolocation) == 'undefined')
		failure();
	else
		geolocate();
	
	this.getLat = function() {
		return lat;
	};
	
	this.getLng = function() {
		return lng;
	};
}<commit_msg>accuracy editable<commit_after>function GeoLocation() {

	// Singleton
	if (typeof GeoLocation.instance === 'object') {
		return GeoLocation.instance;
	}
	GeoLocation.instance = this;
	
	var lat = 0;
	var lng = 0;
	var accuracy = 100;
	var oldGeo = null;

	var success = function(geo) {
		oldGeo = geo;
		$('#overlay .search').hide();
		if(geo.coords.accuracy > accuracy)
			new Overlay().show('accuracyProblem');
		else {
			new Overlay().hide();
			var map = new LTmap();
			lat = geo.coords.latitude;
			lng = geo.coords.longitude;
			map.setLocation(lat, lng);
		}
	};

	var failure = function() {
		new Overlay().show('notfound');
	};

	var geolocate = function() {
		navigator.geolocation.watchPosition(success, failure, {
			enableHighAccuracy : true,
			timeout : 60000,
			maximumAge : 0
		});
	};
	
	this.setAccuracy = function(acc) {
		accuracy = acc;
		success(oldGeo);
	};

	new Overlay().show('search');
	if (typeof (navigator.geolocation) == 'undefined')
		failure();
	else
		geolocate();
	
	this.getLat = function() {
		return lat;
	};
	
	this.getLng = function() {
		return lng;
	};
}
{'fraction_non_alphanumeric': 0.15256588072122051, 'fraction_numerical': 0.010171058714748035, 'mean_word_length': 2.8436944937833037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7427999', 'n_tokens_mistral': 879, 'n_tokens_neox': 736, 'n_words': 158}