<commit_before>
class User():

    def __init__(self, username):
        self.username = username

    def is_authenticated(self):
        return True

    def is_active(self):
        return True

    def is_anonymous(self):
        return False

    def get_id(self):
        return self.username

    @staticmethod
    def validate_login(password):
        return password == '<PASSWORD>'<commit_msg>Made it serialisable<commit_after>class User():

    def __init__(self, username):
        self.username = username

    def is_authenticated(self):
        return True

    def is_active(self):
        return True

    def is_anonymous(self):
        return False

    def get_id(self):
        return self.username

    def to_JSON(self):
        return json.dumps(self, {'username': self.get_id()},
                          sort_keys=True, indent=4)
{'fraction_non_alphanumeric': 0.09228971962616822, 'fraction_numerical': 0.0011682242990654205, 'mean_word_length': 2.3346303501945527, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7328814', 'n_tokens_mistral': 254, 'n_tokens_neox': 238, 'n_words': 62}