<commit_before>(function() {
	'use strict';

	module.exports = function() {
		var fs = require('fs-extra'),
			https = require('https'),
			url = 'https://raw.githubusercontent.com/weepower/wee/master/package.json';

		https.get(url, function(response) {
			var json = '';

			response.on('data', function(chunk) {
				json += chunk;
			});

			response.on('end', function() {
				var data = JSON.parse(json),
					pkg = fs.readJsonSync('package.json', {
						encoding: 'utf8'
					});

				if (pkg.version.replace(/[^\d\.]/g, '') < data.version) {
					var current = pkg.version.split('.'),
						update = data.version.split('.'),
						type = 'patch';

					if (update[1] > current[1]) {
						type = 'minor update';
					}

					if (update[0] > current[0]) {
						type = 'major update';
					}

					Wee.notify({
						title: 'Update Available',
						message: 'Check the console for details'
					}, 'notice', false);

					console.log(
						'A new ' + type + ' is available to ' + data.version + ' from ' + pkg.version + '.\n' +
						'Read the release notes at https://github.com/weepower/wee/releases before updating.'
					);
				} else {
					console.log('You are running the latest version ' + pkg.version + '.');
				}
			});
		}).on('error', function() {
			Wee.notify({
				title: 'Update Error',
				message: 'Check the console for details'
			}, 'error', false);

			console.log('Error trying to access the repository at https://github.com/weepower/wee.');
		});
	};
})();<commit_msg>Check both Wee and Wee Core when running the update command<commit_after>(function() {
	'use strict';

	module.exports = function() {
		var fs = require('fs-extra'),
			https = require('https'),
			root = 'https://raw.githubusercontent.com/weepower/',
			repos = {
				'wee': 'package.json',
				'wee-core': 'node_modules/wee-core/package.json'
			};

		for (var name in repos) {
			(function(name) {
				var url = root + name + '/master/package.json';

				https.get(url, function(response) {
					var json = '';

					response.on('data', function(chunk) {
						json += chunk;
					});

					response.on('end', function() {
						var data = JSON.parse(json),
							pkg = fs.readJsonSync(repos[name], {
								encoding: 'utf8'
							});

						if (pkg.version.replace(/[^\d\.]/g, '') < data.version) {
							var current = pkg.version.split('.'),
								update = data.version.split('.'),
								type = 'patch';

							if (update[1] > current[1]) {
								type = 'minor update';
							}

							if (update[0] > current[0]) {
								type = 'major update';
							}

							Wee.notify({
								title: 'Update Available',
								message: 'Check the console for details'
							}, 'notice', false);

							console.log(
								'A new ' + type + ' is available to ' + data.version + ' from ' + pkg.version + ' for ' + data.name + '.\n' +
								'Read the release notes at https://github.com/weepower/wee/releases before updating.'
							);
						} else {
							console.log('You are running the latest ' + data.name + ' version ' + pkg.version + '.');
						}
					});
				}).on('error', function() {
					Wee.notify({
						title: 'Update Error',
						message: 'Check the console for details'
					}, 'error', false);

					console.log('Error trying to access the repository at https://github.com/weepower/wee.');
				});
			})(name);
		}
	};
})();
{'fraction_non_alphanumeric': 0.18060101160368938, 'fraction_numerical': 0.002975304968759298, 'mean_word_length': 2.3687374749498997, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '2311743', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1069, 'n_words': 254}