<commit_before>from ..serial import (Serialiser)


class Path:
    def __init__(self, path):
        self.path = path


class SerPath(Serialiser):
    def __init__(self):
        super(Serialiser, self).__init__(Path)

    def encode(self, obj, make_rec):
        return make_rec({'path': obj.path}, files=[obj.path])

    def decode(self, cls, data):
        return cls(path=data['path'])
<commit_msg>fix files.Path serialiser, second time<commit_after>from ..serial import (Serialiser)


class Path:
    def __init__(self, path):
        self.path = path


class SerPath(Serialiser):
    def __init__(self):
        super(SerPath, self).__init__(Path)

    def encode(self, obj, make_rec):
        return make_rec({'path': obj.path}, files=[obj.path])

    def decode(self, cls, data):
        return cls(path=data['path'])

{'fraction_non_alphanumeric': 0.13801452784503632, 'fraction_numerical': 0.0, 'mean_word_length': 3.3526315789473684, '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': '6097465', 'n_tokens_mistral': 267, 'n_tokens_neox': 262, 'n_words': 66}