<commit_before>package ceylon.language;

public abstract class IdentifiableObject extends Object /* FIXME: implements Equality */ {

/* FIXME:
   shared default actual Boolean equals(Equality that) {
        if (is IdentifiableObject that) {
            return this===that;
        }
        else {
            return false;
        }
    }
    
    shared default actual Integer hash {
        return identityHash(this);
    }
    
    shared default actual String string {
        throw; //TODO!
    }
 */       
}<commit_msg>IdentifiableObject: implement Equality and start syncing with spec<commit_after>package ceylon.language;

public abstract class IdentifiableObject extends Object implements Equality {

   public Boolean equals(Equality that) {
        if (that instanceof IdentifiableObject ) {
            return Boolean.instance(this == that);
        }
        else {
            return _false.value;
        }
    }
    
   /* FIXME
    shared default actual Integer hash {
        return identityHash(this);
    }
    */       
    
    public String getString() {
        throw new RuntimeException(); //TODO!
    }
}
{'fraction_non_alphanumeric': 0.07760141093474426, 'fraction_numerical': 0.0, 'mean_word_length': 2.0842391304347827, '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': '6015244', 'n_tokens_mistral': 286, 'n_tokens_neox': 284, 'n_words': 87}