<commit_before>var poi_list = [];
function call_expedia() {
	// Get top 10 places to go
	var radius = 15
	var key = API_KEY
	var long = longitude
	var lat = latitude
	console.log(long)
	console.log(lat)

	var queryURL = "http://terminal2.expedia.com/x/geo/features?within=" + radius + "km&lng=" + long + "&lat=" + lat + "&type=point_of_interest&apikey=" + key

	$.ajax({
		url: queryURL,
		dataType: "json",
		statusCode: {
			502: function () {
				console.log("Error 502 thrown.")
			}
		},
		success: function (queryResult) {
                                // get array of all results
                                console.log("Inside AJAX call")
                                var results = queryResult;
                                var numResults = results.length;
                                var map = []
                                if (numResults > 0) {
                                	var bound = Math.min(25, numResults); // get either first ten or however many we got if below 10
                                	for (i = 0; i < bound; i++) {
                                		var tuple = results[i]
                                		var placeName = tuple.name
                                		var placeCoords = tuple.position.coordinates
                                		console.log(placeName, placeCoords)
                                		map.push({name : placeName, coords : placeCoords})
                                	}
                                	var sugg = map[0].name
                                	sugg = trim(sugg)
                                	console.log(map)
                                	var elem = document.getElementById('wrapper-spinner');
                                	elem.parentNode.removeChild(elem);
                                	document.getElementById("loading").innerHTML = "You should check out: "
                                	$("#place_of_interest .place-name").html(sugg)
                                	poi_list = map
					set_poi(poi_list[0])
                                }<commit_msg>Indent<commit_after>var poi_list = [];
function call_expedia() {
	// Get top 10 places to go
	var radius = 15
	var key = API_KEY
	var long = longitude
	var lat = latitude
	console.log(long)
	console.log(lat)

	var queryURL = "http://terminal2.expedia.com/x/geo/features?within=" + radius + "km&lng=" + long + "&lat=" + lat + "&type=point_of_interest&apikey=" + key

	$.ajax({
		url: queryURL,
		dataType: "json",
		statusCode: {
			502: function () {
				console.log("Error 502 thrown.")
			}
		},
		success: function (queryResult) {
                                // get array of all results
                                console.log("Inside AJAX call")
                                var results = queryResult;
                                var numResults = results.length;
                                var map = []
                                if (numResults > 0) {
                                	var bound = Math.min(25, numResults); // get either first 25 or however many we got if below 25
                                	for (i = 0; i < bound; i++) {
                                		var tuple = results[i]
                                		var placeName = tuple.name
                                		var placeCoords = tuple.position.coordinates
                                		console.log(placeName, placeCoords)
                                		map.push({name : placeName, coords : placeCoords})
                                	}
                                	var sugg = map[0].name
                                	sugg = trim(sugg)
                                	console.log(map)
                                	var elem = document.getElementById('wrapper-spinner');
                                	elem.parentNode.removeChild(elem);
                                	document.getElementById("loading").innerHTML = "You should check out: "
                                	$("#place_of_interest .place-name").html(sugg)
                                	poi_list = map
                                	set_poi(poi_list[0])
                                }
{'fraction_non_alphanumeric': 0.09217474795967355, 'fraction_numerical': 0.009601536245799328, 'mean_word_length': 1.0537210448496797, 'pattern_counts': {'":': 0, '<': 5, '<?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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2073754', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1024, 'n_words': 248}