<commit_before>shared abstract class Object() 
        extends Void() {
        
    doc "A developer-friendly string representing the instance."
    shared formal String string;
    
    doc "Determine if this object belongs to the given |Category|.
         The binary |in| operator."
    shared Boolean contained(Category|Iterable<Equality> category) {
        if (is Category category) {
            return category.contains(this);
        }
        else if (is Iterable<Equality> category) {
            if (is Equality self = this) {
                for (Equality x in category) {
                    if (x==self) {
                        return true;
                    }
                }
                fail {
                    return false;
                }
            }
            else {
                return false;
            }
        }
        else {
            throw; //cannot occur!
        }
    }
    
}<commit_msg>disable code that uses reified generics<commit_after>shared abstract class Object() 
        extends Void() {
        
    doc "A developer-friendly string representing the instance."
    shared formal String string;
    
    doc "Determine if this object belongs to the given |Category|.
         The binary |in| operator."
    shared Boolean contained(Category category) {
        return category.contains(this);
    }
    
    /*shared Boolean contained(Category|Iterable<Equality> category) {
        switch (category)
        case (is Category) {
            return category.contains(this);
        }
        case (is Iterable<Equality>) {
            if (is Equality self = this) {
                for (Equality x in category) {
                    if (x==self) {
                        return true;
                    }
                }
                fail {
                    return false;
                }
            }
            else {
                return false;
            }
        }
    }*/
    
}
{'fraction_non_alphanumeric': 0.07621951219512195, 'fraction_numerical': 0.0, 'mean_word_length': 1.224858757062147, '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': '3625149', 'n_tokens_mistral': 478, 'n_tokens_neox': 453, 'n_words': 147}