<commit_before>const hooks = {
	location: $('.location'),
	temperature: $('.data'),
	units: $('#units'),
	background: $('.weather-image'),
	warning: $('.no-data-warning')
};

const failedJsonRequest = function(message) {
	hooks.warning.html(message);
	hooks.background.show();
	hooks.warning.fadeIn();
};

const changeTemp = function(currentTempInCelsius) {
	console.log('clicked');
	if (hooks.temperature.hasClass('celsius')) {
		hooks.temperature.removeClass('celsius');
		hooks.temperature.addClass('farenheit');
		hooks.temperature.html(Math.round(currentTempInCelsius * 9/5 + 32));
		hooks.units.html('F');
	} else if (hooks.temperature.hasClass('farenheit')) {
		hooks.temperature.removeClass('farenheit');
		hooks.temperature.addClass('celsius');
		hooks.temperature.html(Math.round(currentTempInCelsius));
		hooks.units.html('C');
	}
};

(function() {

	$.getJSON('http://ipinfo.io', function(locData){

		$.getJSON('http://api.openweathermap.org/data/2.5/weather?q=' + locData.city + '&units=metric&appid=44db6a862fba0b067b1930da0d769e98', function(wData) {

			console.log(wData);

			hooks.background.removeClass('clear-night');

			switch (wData.weather[0].id) {

				//thunderstorm
				case 200:
				case 201:
				case 202:
				case 210:
				case 211:<commit_msg>removed leftover debug data<commit_after>const hooks = {
	location: $('.location'),
	temperature: $('.data'),
	units: $('#units'),
	background: $('.weather-image'),
	warning: $('.no-data-warning')
};

const failedJsonRequest = function(message) {
	hooks.warning.html(message);
	hooks.background.show();
	hooks.warning.fadeIn();
};

const changeTemp = function(currentTempInCelsius) {
	if (hooks.temperature.hasClass('celsius')) {
		hooks.temperature.removeClass('celsius');
		hooks.temperature.addClass('farenheit');
		hooks.temperature.html(Math.round(currentTempInCelsius * 9/5 + 32));
		hooks.units.html('F');
	} else if (hooks.temperature.hasClass('farenheit')) {
		hooks.temperature.removeClass('farenheit');
		hooks.temperature.addClass('celsius');
		hooks.temperature.html(Math.round(currentTempInCelsius));
		hooks.units.html('C');
	}
};

(function() {

	$.getJSON('http://ipinfo.io', function(locData){

		$.getJSON('http://api.openweathermap.org/data/2.5/weather?q=' + locData.city + '&units=metric&appid=44db6a862fba0b067b1930da0d769e98', function(wData) {

			hooks.background.removeClass('clear-night');

			switch (wData.weather[0].id) {

				//thunderstorm
				case 200:
				case 201:
				case 202:
				case 210:
				case 211:
{'fraction_non_alphanumeric': 0.18275725069527216, 'fraction_numerical': 0.033373063170441, 'mean_word_length': 5.067469879518073, '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': '793521', 'n_tokens_mistral': 1016, 'n_tokens_neox': 873, 'n_words': 118}