<commit_before>it('exists', function () {
	expect(Array.prototype).to.have.property('fill');
});

it('has correct instance', function () {
	expect(Array.prototype.fill).to.be.a(Function);
});

it('has correct name', function () {
	function nameOf(fn) {
		return Function.prototype.toString.call(fn).match(/function\s*([^\s]*)\(/)[1];
	}
	expect(nameOf(Array.prototype.fill)).to.be('fill');
});

it('has correct argument length', function () {
	expect(Array.prototype.fill.length).to.be(1);
});

it('is not enumerable', function () {
	expect(Array.prototype.propertyIsEnumerable('fill')).to.be.false;
});

it('fills whole array when using only one argument', function () {
	expect([1, 2, 3].fill(0)).to.eql([0, 0, 0]);
});

it('starts filling from the start index given by second argument', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 3)).to.eql([1, 2, 3, 0, 0, 0]);
});

it('can use a negative start index', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, -2)).to.eql([1, 2, 3, 4, 0, 0]);
});

it('stops filling at the end index given by third argument', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 0, 2)).to.eql([0, 0, 3, 4, 5, 6]);
});

it('can use a negative end index', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 1, -2)).to.eql([1, 0, 0, 0, 5, 6]);
});

it('does not fill if start index is larger than array', function () {
	expect([1, 2, 3].fill(0, 5)).to.eql([1, 2, 3]);
});

it('does fill if start index is not a number', function () {
	expect([1, 2, 3].fill(0, NaN)).to.eql([0, 0, 0]);<commit_msg>Switch from false property to eql for IE 8 & lower<commit_after>it('exists', function () {
	expect(Array.prototype).to.have.property('fill');
});

it('has correct instance', function () {
	expect(Array.prototype.fill).to.be.a(Function);
});

it('has correct name', function () {
	function nameOf(fn) {
		return Function.prototype.toString.call(fn).match(/function\s*([^\s]*)\(/)[1];
	}
	expect(nameOf(Array.prototype.fill)).to.be('fill');
});

it('has correct argument length', function () {
	expect(Array.prototype.fill.length).to.be(1);
});

it('is not enumerable', function () {
	expect(Array.prototype.propertyIsEnumerable('fill')).to.eql(false);
});

it('fills whole array when using only one argument', function () {
	expect([1, 2, 3].fill(0)).to.eql([0, 0, 0]);
});

it('starts filling from the start index given by second argument', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 3)).to.eql([1, 2, 3, 0, 0, 0]);
});

it('can use a negative start index', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, -2)).to.eql([1, 2, 3, 4, 0, 0]);
});

it('stops filling at the end index given by third argument', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 0, 2)).to.eql([0, 0, 3, 4, 5, 6]);
});

it('can use a negative end index', function () {
	expect([1, 2, 3, 4, 5, 6].fill(0, 1, -2)).to.eql([1, 0, 0, 0, 5, 6]);
});

it('does not fill if start index is larger than array', function () {
	expect([1, 2, 3].fill(0, 5)).to.eql([1, 2, 3]);
});

it('does fill if start index is not a number', function () {
	expect([1, 2, 3].fill(0, NaN)).to.eql([0, 0, 0]);
{'fraction_non_alphanumeric': 0.23678235484917287, 'fraction_numerical': 0.05351929938371716, 'mean_word_length': 4.429577464788732, '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': '3298617', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1158, 'n_words': 330}