<commit_before>import abc
import pickle


class Status(abc.ABC):
    """
    Prototype of status
    """
    @abc.abstractmethod
    def __setattr__(self, key: str, value):
        pass

    @abc.abstractmethod
    def __getattr__(self, item: str):
        pass

    @abc.abstractmethod
    def dump(self):
        pass

    @abc.abstractmethod
    def load(self, dump: bytes):
        pass


class SimpleStatus(Status):
    def __init__(self, **kwargs):
        self.attributes = kwargs

    def __setattr__(self, key: str, value):
        self.attributes[key] = value

    def __getattr__(self, item: str):
        return self.attributes[item]

    def dump(self):
        return pickle.dumps(self.attributes)

    def load(self, dump: bytes):
        self.attributes = pickle.loads(dump)
<commit_msg>Forgot to register.<commit_after>import abc
import pickle


class Status(abc.ABC):
    """
    Prototype of status
    """
    @abc.abstractmethod
    def __setattr__(self, key: str, value):
        pass

    @abc.abstractmethod
    def __getattr__(self, item: str):
        pass

    @abc.abstractmethod
    def dump(self):
        pass

    @abc.abstractmethod
    def load(self, dump: bytes):
        pass


class SimpleStatus(Status):
    def __init__(self, **kwargs):
        self.attributes = kwargs

    def __setattr__(self, key: str, value):
        self.attributes[key] = value

    def __getattr__(self, item: str):
        return self.attributes[item]

    def dump(self):
        return pickle.dumps(self.attributes)

    def load(self, dump: bytes):
        self.attributes = pickle.loads(dump)


Status.register(SimpleStatus)
{'fraction_non_alphanumeric': 0.10712111990261716, 'fraction_numerical': 0.0, 'mean_word_length': 2.581699346405229, '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': '4641629', 'n_tokens_mistral': 512, 'n_tokens_neox': 495, 'n_words': 127}