<commit_before>module.exports = function evaluateDisk(data, schedule, monitor) {
	if (monitor.fabricCommand === 'status__disk') {
		try {
			data.forEach(function (disk) {
				data.messages.push(`${disk.name}: ${disk.use_percent}% of ${disk.size}`);
			});
		} catch (e) {

		}
	}
};<commit_msg>change<commit_after>module.exports = function evaluateDisk(data, schedule, monitor) {
	if (monitor.fabricCommand === 'status__disk') {
		try {
			data.forEach(function (disk) {
				let name = disk.name;
				let use_percent = disk.use_percent;
				let size = disk.size + 'KB';

				if (disk.size > 1024) {
					size = disk.size + 'MB';
				}

				if (disk.size > 1024*1024) {
					size = disk.size + 'GB';
				}

				data.messages.push(`${name}: ${use_percent}% of ${size}`);
			});
		} catch (e) {
			console.log(e);
		}
	}
};
{'fraction_non_alphanumeric': 0.1851400730816078, 'fraction_numerical': 0.014616321559074299, 'mean_word_length': 3.193877551020408, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '402480', 'n_tokens_mistral': 358, 'n_tokens_neox': 288, 'n_words': 57}