<commit_before><commit_msg>added a test for Utils#once<commit_after>describe('once', function() {

	var once = modules.Utils.once;

	var spy, fn;

	beforeEach(function() {
		spy = sinon.spy(function() { return 42; } );
		fn = once(function() {
			return spy();
		});
	});

	it('executes a function only once, remembering its return value', function() {
		expect(fn()).to.equal(42);
		expect(fn()).to.equal(42);
		expect(spy).to.have.been.calledOnce;
	});

});
{'fraction_non_alphanumeric': 0.1895424836601307, 'fraction_numerical': 0.013071895424836602, 'mean_word_length': 4.411764705882353, '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': '6877950', 'n_tokens_mistral': 178, 'n_tokens_neox': 159, 'n_words': 34}