<commit_before>from django.contrib.auth import get_user_model


class DefaultHookSet(object):

    def get_user_choices(self, user):
        return get_user_model().objects.all()


class HookProxy(object):

    def load_settings(self):
        if not hasattr(self, "_settings"):<commit_msg>fix infinite loop in hook.py<commit_after>from django.contrib.auth import get_user_model


class DefaultHookSet(object):

    def get_user_choices(self, user):
        return get_user_model().objects.all()


class HookProxy(object):
    _settings = None

    def load_settings(self):
        if self._settings is None:
{'fraction_non_alphanumeric': 0.09539473684210527, 'fraction_numerical': 0.0, 'mean_word_length': 4.161016949152542, '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': '5489157', 'n_tokens_mistral': 188, 'n_tokens_neox': 180, 'n_words': 43}