<commit_before>#!/usr/bin/env node

var assert = require("assert");

describe('Array', function() {

	describe('#indexof()', function() {

		it('should return -1 when the value is not present', function() {
			assert.equal(-1, [1, 2, 3].indexOf(5));

			assert.equal(-1, [1, 2, 3].indexOf(0));
		});		

	});

});


<commit_msg>added 2 new tests<commit_after>#!/usr/bin/env node

var assert = require("assert");

describe('Array', function() {

	describe('#indexof()', function() {

		it('should return -1 when the value is not present', function() {
			assert.equal(-1, [1, 2, 3].indexOf(5));

			assert.equal(-1, [1, 2, 3].indexOf(0));
		});		

	});


	describe('#reduce()', function() {
	
		it("should iterate an array from left to right concatenating initializing value, 'i', to subsequent array elements", function() {
			var result = 
				['a', 'b', 'c'].reduce(function(p, c, i, a){
					return p + c;
				}, 'i');

			assert.equal("iabc", result);
		});

	});


	describe('#reduceRight()', function() {

		it("should iterate an array from right to left concatenating initializing value, 'i', to subsequent array elements", function() {
			var result = 
				['t','a','c'].reduceRight(function(p, c, i, a) {
					return p + c;					
				}, 'i');

			assert.equal("icat", result);
		});



	});

});



{'fraction_non_alphanumeric': 0.20689655172413793, 'fraction_numerical': 0.017624521072796936, 'mean_word_length': 3.4879725085910653, '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': '6364219', 'n_tokens_mistral': 522, 'n_tokens_neox': 427, 'n_words': 121}