<commit_before>var checking_in=false;
var searching=false;

function privatesquare_init(provider){

	if (! provider){
	    provider = 'foursquare';
	}

	$("body").attr("data-privatesquare-provider", provider);

	/*    
	if (! window.navigator.onLine){
		privatesquare_deferred_checkin(null, null, 'offline');
		return;
	}
	*/

	var _privatesquare_geolocation_onsuccess = function(rsp){

		var lat = rsp['coords']['latitude'];
		var lon = rsp['coords']['longitude'];

		var v = $("#venues");
		v.attr("data-geolocation-latitude", lat);
		v.attr("data-geolocation-longitude", lon);

		// For debugging, 16th and Mission (SF)
		// var lat = 37.764751;
		// var lon = -122.419511;

		if (provider=='stateofmind'){
			privatesquare_stateofmind_fetch_venues(lat, lon);
		}

		else if (provider=='nypl'){
			privatesquare_nypl_fetch_venues(lat, lon);
		}

		else if (provider=='privatesquare'){
			privatesquare_venues_fetch_venues(lat, lon);
		}

		else {
			privatesquare_foursquare_fetch_venues(lat, lon);
		}
	};

	var _privatesquare_geolocation_onerror = function(rsp){
		privatesquare_set_status("Huh. I have no idea where you are...");
	};

	privatesquare_whereami(_privatesquare_geolocation_onsuccess, _privatesquare_geolocation_onerror);<commit_msg>JS debugging variables for nypl stuff<commit_after>var checking_in=false;
var searching=false;

function privatesquare_init(provider){

	if (! provider){
	    provider = 'foursquare';
	}

	$("body").attr("data-privatesquare-provider", provider);

	/*    
	if (! window.navigator.onLine){
		privatesquare_deferred_checkin(null, null, 'offline');
		return;
	}
	*/

	var _privatesquare_geolocation_onsuccess = function(rsp){

		var lat = rsp['coords']['latitude'];
		var lon = rsp['coords']['longitude'];

		var v = $("#venues");
		v.attr("data-geolocation-latitude", lat);
		v.attr("data-geolocation-longitude", lon);

		// For debugging
	    	// 16th and Mission (SF)
		// var lat = 37.764751;
		// var lon = -122.419511;
		// NYPL main branch
	    	// var lat = 40.753206;
		// var lon = -73.982196;

		if (provider=='stateofmind'){
			privatesquare_stateofmind_fetch_venues(lat, lon);
		}

		else if (provider=='nypl'){
			privatesquare_nypl_fetch_venues(lat, lon);
		}

		else if (provider=='privatesquare'){
			privatesquare_venues_fetch_venues(lat, lon);
		}

		else {
			privatesquare_foursquare_fetch_venues(lat, lon);
		}
	};

	var _privatesquare_geolocation_onerror = function(rsp){
		privatesquare_set_status("Huh. I have no idea where you are...");
	};

	privatesquare_whereami(_privatesquare_geolocation_onsuccess, _privatesquare_geolocation_onerror);
{'fraction_non_alphanumeric': 0.14389590508993494, 'fraction_numerical': 0.02066590126291619, 'mean_word_length': 4.585470085470085, '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': '3199748', 'n_tokens_mistral': 1065, 'n_tokens_neox': 937, 'n_words': 165}