<commit_before>module.exports = {
	key: 'weather',
	description: 'shows weather station readings',
	execute: function(ircbot, config, from, to) {
		var request = require('request');
		
		request({
			url: 'https://cassie.initlab.org/weather.json',
			json: true
		}, function(error, response, body) {
			console.log(error, response, body);
			if (error !== null) {
				ircbot.say(to, 'Request error: ' + error.reason);
				return;
			}
			
			if (response && response.statusCode !== 200) {
				ircbot.say(to, 'Error getting data, status code=' + response.statusCode);
				return;
			}
			
			ircbot.say(to, 'Temperature: ' + body.temp_in.toFixed(1) + ' °C in / ' + body.temp_out.toFixed(1) + ' °C out');
			ircbot.say(to, 'Humidity: ' + body.hum_in.toFixed(0) + ' % in / ' + body.hum_out.toFixed(0) + ' % out');
			ircbot.say(to, 'Pressure: ' + body.abs_pressure.toFixed(1) + ' hPa');
		});
	}
};
<commit_msg>Fix init Lab weather URL<commit_after>module.exports = {
	key: 'weather',
	description: 'shows weather station readings',
	execute: function(ircbot, config, from, to) {
		var request = require('request');
		
		request({
			url: 'https://spitfire.initlab.org/weather.json',
			json: true
		}, function(error, response, body) {
			console.log(error, response, body);
			if (error !== null) {
				ircbot.say(to, 'Request error: ' + error.reason);
				return;
			}
			
			if (response && response.statusCode !== 200) {
				ircbot.say(to, 'Error getting data, status code=' + response.statusCode);
				return;
			}
			
			ircbot.say(to, 'Temperature: ' + body.temp_in.toFixed(1) + ' °C in / ' + body.temp_out.toFixed(1) + ' °C out');
			ircbot.say(to, 'Humidity: ' + body.hum_in.toFixed(0) + ' % in / ' + body.hum_out.toFixed(0) + ' % out');
			ircbot.say(to, 'Pressure: ' + body.abs_pressure.toFixed(1) + ' hPa');
		});
	}
};

{'fraction_non_alphanumeric': 0.18569087930092845, 'fraction_numerical': 0.008738394320043691, 'mean_word_length': 3.414457831325301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1851364', 'n_tokens_mistral': 785, 'n_tokens_neox': 664, 'n_words': 134}