<commit_before>package org.codehaus.groovy.grails.plugins.orm.auditable

/**
 *
 */

class AuditableRegistry {
    def registry = [:]
    
    public boolean isAuditable(entity) {
        boolean is = false
        try {
            if( entity.newInstance().auditable ) {
                is = true
            }
        } catch (Throwable t ) {
            is = false
        }
        return is
    }

    AuditableConfig getConfiguration(Class clazz) {
        registry[clazz.getCanonicalName()]
    }<commit_msg>Revert "Functional (but inefficient) test."<commit_after>package org.codehaus.groovy.grails.plugins.orm.auditable

/**
 *
 */

class AuditableRegistry {
    def registry = [:]
    
    public boolean isAuditable(entity) {
        entity.properties['auditable']
    }

    AuditableConfig getConfiguration(Class clazz) {
        registry[clazz.getCanonicalName()]
    }
{'fraction_non_alphanumeric': 0.10532276330690826, 'fraction_numerical': 0.0, 'mean_word_length': 2.2262773722627736, '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': '263072', 'n_tokens_mistral': 264, 'n_tokens_neox': 256, 'n_words': 46}