<commit_before>// Copyright (C) 2014 <NAME>. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: Array.prototype.contains skips holes, and does not treat them as undefined
author: <NAME>
---*/

var arrayWithHoles = [,,,];

var result1 = Array.prototype.contains.call(arrayWithHoles, undefined);

if (result1 !== true) {
    $ERROR('Expected array with many holes to contain undefined');
}

var arrayWithASingleHole = ['a', 'b',, 'd'];

var result2 = arrayWithASingleHole.contains(undefined);

if (result2 !== true) {
    $ERROR('Expected array with a single hole to contain undefined');
}
<commit_msg>Update holes test description to reflect the actual test<commit_after>// Copyright (C) 2014 <NAME>. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: Array.prototype.contains does not skip holes; instead it treates them as undefined
author: <NAME>
---*/

var arrayWithHoles = [,,,];

var result1 = Array.prototype.contains.call(arrayWithHoles, undefined);

if (result1 !== true) {
    $ERROR('Expected array with many holes to contain undefined');
}

var arrayWithASingleHole = ['a', 'b',, 'd'];

var result2 = arrayWithASingleHole.contains(undefined);

if (result2 !== true) {
    $ERROR('Expected array with a single hole to contain undefined');
}

{'fraction_non_alphanumeric': 0.13109978150036417, 'fraction_numerical': 0.011653313911143482, 'mean_word_length': 4.4523809523809526, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1674354', 'n_tokens_mistral': 404, 'n_tokens_neox': 395, 'n_words': 151}