<commit_before>'use strict';

var _ = require('lodash-node')
	, AssertionError = require('assertion-error')
	;

var asserts = {
	assertTrue: function (value, message) {
		if (!value) {
			throw new AssertionError(message, {}, asserts.assertTrue);
		}
	},
	assertEquals: function (actual, expected, message) {
		message = message ? message + ' ' : '';
		if (!_.isEqual(actual, expected)) {
			throw new AssertionError(message + 'Expected "' + expected + '" but was "' + actual + '"', {}, asserts.assertEquals);
		}
	},
	assertFalse: function (value, message) {
		if (value) {
			throw new AssertionError(message, {}, asserts.assertFalse);
		}
	},
	fail: function (message) {
		throw new AssertionError(message, {}, asserts.fail);
	}
};

module.exports = asserts;<commit_msg>Primitive asserts test more specific<commit_after>'use strict';

var _ = require('lodash-node')
	, AssertionError = require('assertion-error')
	;

var asserts = {
	assertTrue: function (value, message) {
		if (value !== true) {
			throw new AssertionError(message, {}, asserts.assertTrue);
		}
	},
	assertEquals: function (actual, expected, message) {
		message = message ? message + ' ' : '';
		if (!_.isEqual(actual, expected)) {
			throw new AssertionError(message + 'Expected "' + expected + '" but was "' + actual + '"', {}, asserts.assertEquals);
		}
	},
	assertFalse: function (value, message) {
		if (value !== false) {
			throw new AssertionError(message, {}, asserts.assertFalse);
		}
	},
	fail: function (message) {
		throw new AssertionError(message, {}, asserts.fail);
	}
};

module.exports = asserts;
{'fraction_non_alphanumeric': 0.16446124763705103, 'fraction_numerical': 0.0, 'mean_word_length': 4.311036789297659, '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': '4962089', 'n_tokens_mistral': 526, 'n_tokens_neox': 486, 'n_words': 119}