<commit_before>//Array tests
void testArrays() {
    assert(!nonempty array(), "arrayOfNone");
    value a1 = array(1);
    assert(nonempty a1, "nonempty array");
    assert(a1.size==1, "array.size");
    assert(a1[0] exists, "array[0]");
    assert(!a1.empty, "array.empty");
    assert(a1.hash==32, "array.hash is " a1.hash " instead of 32");
    a1.setItem(0,10);
    if (exists i=a1[0]) {
        assert(i==10, "array.setItem");
    } else { fail("array.setItem"); }
    value a2=array(1,2,3);
    value a3=arrayOfSome({1,2,3});
    assert(a2==a3, "array.equals");
    assert(a2.size==a3.size, "array.size");
    assert(nonempty a2, "nonempty array 2");
    a2.setItem(0,10);
    if (exists i=a2[0]) {
        assert(i==10, "array.setItem 2");
    } else { fail("array.setItem 2"); }
    value a4 = arrayOfSize(5, ".");
    assert(a4.size == 5, "makeArray 1");
    if (exists i=a4[4]) {
        assert(i==".", "makeArray 2");
    } else { fail("makeArray 2"); }
    value a5 = arrayOfSize(3, 0);
    assert(a5.size == 3, "makeArray 3");
    if (exists i=a5[2]) {
        assert(i==0, "makeArray 4");
    } else { fail("makeArray 4"); }
    value a6 = array<Integer?>(1);
    a6.setItem(0,null);
    if (exists i=a6[0]) {
        fail("array.setItem (null)");
    }
    value a7=arrayOfSome<Integer?>({1,2,3});
    a7.setItem(0,null);
    if (exists i=a7[0]) {
        fail("array.setItem (null) 2");
    }
}
<commit_msg>Test Array.reversed<commit_after>//Array tests
void testArrays() {
    assert(!nonempty array(), "arrayOfNone");
    value a1 = array(1);
    assert(nonempty a1, "nonempty array");
    assert(a1.size==1, "array.size");
    assert(a1[0] exists, "array[0]");
    assert(!a1.empty, "array.empty");
    assert(a1.hash==32, "array.hash is " a1.hash " instead of 32");
    a1.setItem(0,10);
    if (exists i=a1[0]) {
        assert(i==10, "array.setItem");
    } else { fail("array.setItem"); }
    value a2=array(1,2,3);
    value a3=arrayOfSome({1,2,3});
    assert(a2==a3, "array.equals");
    assert(a2.size==a3.size, "array.size");
    assert(nonempty a2, "nonempty array 2");
    a2.setItem(0,10);
    if (exists i=a2[0]) {
        assert(i==10, "array.setItem 2");
    } else { fail("array.setItem 2"); }
    value a4 = arrayOfSize(5, ".");
    assert(a4.size == 5, "makeArray 1");
    if (exists i=a4[4]) {
        assert(i==".", "makeArray 2");
    } else { fail("makeArray 2"); }
    value a5 = arrayOfSize(3, 0);
    assert(a5.size == 3, "makeArray 3");
    if (exists i=a5[2]) {
        assert(i==0, "makeArray 4");
    } else { fail("makeArray 4"); }
    value a6 = array<Integer?>(1);
    a6.setItem(0,null);
    if (exists i=a6[0]) {
        fail("array.setItem (null)");
    }
    value a7=arrayOfSome<Integer?>({1,2,3});
    a7.setItem(0,null);
    if (exists i=a7[0]) {
        fail("array.setItem (null) 2");
    }
    assert(array(1,2,3).reversed==array(3,2,1), "Array.reversed");
}

{'fraction_non_alphanumeric': 0.21465251626155427, 'fraction_numerical': 0.05819924683327628, 'mean_word_length': 3.086713286713287, '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': '2804052', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1163, 'n_words': 223}