<commit_before>class Pair(String one, String two) satisfies Iterable<String> {
    shared actual object iterator satisfies Iterator<String> {
        shared actual String head = one;
        shared actual object tail satisfies Iterator<String> {
            shared actual String head = two;
            shared actual Iterator<String>? tail = null;
        }
    }
    shared actual Boolean empty = false;
}

/*class Prototype<out Element>(Element e)
           satisfies Cloneable<Prototype<Element>> {
   shared actual Prototype<Element> clone { return this; }
}*/


void iterators() {
    variable value i:=0;
    for (s in Pair("hello", "world")) {
        if (i==0) { assert(s=="hello", "iterator iteration"); }
        if (i==1) { assert(s=="world", "iterator iteration"); }
        i++;
    }
    assert(i==2, "iterator iteration");
    
    /*value prot = Prototype("hello");
    assert(prot==prot.clone, "clone");*/
}<commit_msg>enable test<commit_after>class Pair(String one, String two) satisfies Iterable<String> {
    shared actual object iterator satisfies Iterator<String> {
        shared actual String head = one;
        shared actual object tail satisfies Iterator<String> {
            shared actual String head = two;
            shared actual Iterator<String>? tail = null;
        }
    }
    shared actual Boolean empty = false;
}

class Prototype<out Element>(Element e)
           satisfies Cloneable<Prototype<Element>> {
   shared actual Prototype<Element> clone { return this; }
}

void iterators() {
    variable value i:=0;
    for (s in Pair("hello", "world")) {
        if (i==0) { assert(s=="hello", "iterator iteration"); }
        if (i==1) { assert(s=="world", "iterator iteration"); }
        i++;
    }
    assert(i==2, "iterator iteration");
    
    value prot = Prototype("hello");
    assert(prot==prot.clone, "clone");
}
{'fraction_non_alphanumeric': 0.13311862587224907, 'fraction_numerical': 0.0042941492216854536, 'mean_word_length': 2.9575371549893843, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5286662', 'n_tokens_mistral': 525, 'n_tokens_neox': 524, 'n_words': 161}