<commit_before>'use strict';
module.exports = function (a, b) {
	if (!(a instanceof Buffer && b instanceof Buffer)) {
		throw new TypeError('Argument must be a Buffer');
	}

	if (typeof a.equals === 'function') {
		return a.equals(b);
	}

	if (a === b) {
		return true;
	}

	if (a.length !== b.length) {
		return false;
	}

	for (var i = 0; i < a.length; i++) {
		if (a[i] !== b[i]) {
			return false;
		}
	}

	return true;
};<commit_msg>use `Buffer.isBuffer()`<commit_after>'use strict';
module.exports = function (a, b) {
	if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
		throw new TypeError('Arguments must be Buffer');
	}

	if (typeof a.equals === 'function') {
		return a.equals(b);
	}

	if (a === b) {
		return true;
	}

	if (a.length !== b.length) {
		return false;
	}

	for (var i = 0; i < a.length; i++) {
		if (a[i] !== b[i]) {
			return false;
		}
	}

	return true;
};
{'fraction_non_alphanumeric': 0.2018140589569161, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 3.087962962962963, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6751576', 'n_tokens_mistral': 373, 'n_tokens_neox': 343, 'n_words': 96}