<commit_before>var data = [];

var pubnub = PUBNUB.init({
	publish_key   : 'pub-c-0776ca68-c17d-4d5e-9955-72425215955d',
	subscribe_key : 'sub-c-4e3d33da-15a8-11e3-92f9-02ee2ddab7fe'
	// uuid          : id
});

var watchID, fallback_id = ('' + Math.random());

bean.on(start_button, 'click', function(){
	if(watchID){
		navigator.geolocation.clearWatch(watchID);
	} else {
		watchID = navigator.geolocation.watchPosition(function(position) {
			position.id = document.getElementById('identifier').value || fallback_id;
			pubnub.publish({
				channel : "positions",
				message : position
			});
			counter.innerText = parseInt(counter.innerText) + 1;

			accuracy.innerText = position.coords.accuracy;
		});

		if (document.documentElement.requestFullscreen) {
			document.documentElement.requestFullscreen();
		} else if (document.documentElement.mozRequestFullScreen) {
			document.documentElement.mozRequestFullScreen();
		} else if (document.documentElement.webkitRequestFullscreen) {
			document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
		}
	}
});

var subscribed;

bean.on(view_button, 'click', function(){
	if(subscribed) return;
	subscribed = true;<commit_msg>accurate geolocation please<commit_after>var data = [];

var pubnub = PUBNUB.init({
	publish_key   : 'pub-c-0776ca68-c17d-4d5e-9955-72425215955d',
	subscribe_key : 'sub-c-4e3d33da-15a8-11e3-92f9-02ee2ddab7fe'
	// uuid          : id
});

var watchID, fallback_id = ('' + Math.random());

bean.on(start_button, 'click', function(){
	if(watchID){
		navigator.geolocation.clearWatch(watchID);
	} else {
		watchID = navigator.geolocation.watchPosition(function(position) {
			position.id = document.getElementById('identifier').value || fallback_id;
			pubnub.publish({
				channel : "positions",
				message : position
			});
			counter.innerText = parseInt(counter.innerText) + 1;

			accuracy.innerText = position.coords.accuracy;
		}, function(){
			alert("geolocation error")
		},{
			enableHighAccuracy: true
			maximumAge        : 10000, // these
			timeout           : 27000 // could be tweaked
		});

		if (document.documentElement.requestFullscreen) {
			document.documentElement.requestFullscreen();
		} else if (document.documentElement.mozRequestFullScreen) {
			document.documentElement.mozRequestFullScreen();
		} else if (document.documentElement.webkitRequestFullscreen) {
			document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
		}
	}
});

var subscribed;

bean.on(view_button, 'click', function(){
	if(subscribed) return;
	subscribed = true;
{'fraction_non_alphanumeric': 0.13405656722200698, 'fraction_numerical': 0.03719488570321581, 'mean_word_length': 4.528907922912206, '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': '7013349', 'n_tokens_mistral': 991, 'n_tokens_neox': 867, 'n_words': 126}