<commit_before>var currentWeather = JSON.parse(
	'{"location":{"name":"Sofia","region":"Grad Sofiya","country":"Bulgaria","lat":42.68,"lon":23.32,"tz_id":"Europe/Sofia","localtime_epoch":1496157582,"localtime":"2017-05-30 18:19"},"current":{"last_updated_epoch":1496157305,"last_updated":"2017-05-30 18:15","temp_c":26.0,"temp_f":78.8,"is_day":1,"condition":{"text":"Partly cloudy","icon":"//cdn.apixu.com/weather/64x64/day/116.png","code":1003},"wind_mph":4.3,"wind_kph":6.8,"wind_degree":280,"wind_dir":"W","pressure_mb":1016.0,"pressure_in":30.5,"precip_mm":0.0,"precip_in":0.0,"humidity":30,"cloud":25,"feelslike_c":25.4,"feelslike_f":77.7,"vis_km":10.0,"vis_miles":6.0}}'
	);<commit_msg>Added dynamic data base for current weather<commit_after>'use strict';

function search() {

	let input = document.querySelector('input');

	var xhr = new XMLHttpRequest();

	xhr.onreadystatechange = () => {

		if (xhr.readyState === XMLHttpRequest.DONE) {

			console.log('First: ' + xhr.responseText);

			var data = JSON.parse(xhr.responseText);
			console.log('Second: ' + data.location.name);

			let array = data.location.name;

			content(data)

		}
	};

	xhr.open('GET', 'http://api.apixu.com/v1/current.json?key=2bfb747832cd43e3895140316170907&q=' + input.value, true);


	xhr.send(null);

}

function content(data)  {

	wrapper = document.querySelector('.app-component');

	wrapper.innerHTML = (template(data));
};
{'fraction_non_alphanumeric': 0.221045197740113, 'fraction_numerical': 0.09180790960451977, 'mean_word_length': 6.96067415730337, 'pattern_counts': {'":': 33, '<': 3, '<?xml version=': 0, '>': 4, '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': '4307020', 'n_tokens_mistral': 633, 'n_tokens_neox': 536, 'n_words': 51}