<commit_before>class AttributeObject:
    def __init__(self, *excluded_keys):
        self._excluded_keys = excluded_keys

    def __getattr__(self, item):
        return self._getattr(item)

    def __setattr__(self, key, value):
        if key == "_excluded_keys" or key in self._excluded_keys:
            super().__setattr__(key, value)
        else:
            self._setattr(key, value)

    def _getattr(self, item):
        pass

    def _setattr(self, key, value):
        pass


class DictionaryObject(AttributeObject):
    def __init__(self, initial_items={}):
        super().__init__("_dictionary")
        self._dictionary = dict(initial_items)

    def _getattr(self, item):
        return self._dictionary.get(item)

    def _setattr(self, key, value):
        self._dictionary[key] = value

    def _copy(self):
        return DictionaryObject(self._dictionary)
<commit_msg>Raise NotImplementedError instead of just passing in AttributeObject<commit_after>class AttributeObject:
    def __init__(self, *excluded_keys):
        self._excluded_keys = excluded_keys

    def __getattr__(self, item):
        return self._getattr(item)

    def __setattr__(self, key, value):
        if key == "_excluded_keys" or key in self._excluded_keys:
            super().__setattr__(key, value)
        else:
            self._setattr(key, value)

    def _getattr(self, item):
        raise NotImplementedError()

    def _setattr(self, key, value):
        raise NotImplementedError()


class DictionaryObject(AttributeObject):
    def __init__(self, initial_items={}):
        super().__init__("_dictionary")
        self._dictionary = dict(initial_items)

    def _getattr(self, item):
        return self._dictionary.get(item)

    def _setattr(self, key, value):
        self._dictionary[key] = value

    def _copy(self):
        return DictionaryObject(self._dictionary)

{'fraction_non_alphanumeric': 0.1009028146574615, 'fraction_numerical': 0.0, 'mean_word_length': 2.9746835443037973, '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': '2106265', 'n_tokens_mistral': 569, 'n_tokens_neox': 542, 'n_words': 129}