<commit_before>from django.apps import AppConfig
from django.conf import settings


class APIConfig(AppConfig):
    name = 'api'
    verbose_name = 'API'

    def ready(self):
        from signals.experiments import *  # noqa
        from signals.experiment_groups import *  # noqa
        from signals.projects import *  # noqa
        from signals.project_plugin_jobs import *  # noqa
        from signals.nodes import *  # noqa
        from signals.repos import *  # noqa
        from api.users.signals import create_auth_token  # noqa
        if settings.AUTH_LDAP_ENABLED:
            from api.users.ldap_signals import populate_user_handler  # noqa
<commit_msg>Register signals<commit_after>from django.apps import AppConfig
from django.conf import settings


class APIConfig(AppConfig):
    name = 'api'
    verbose_name = 'API'

    def ready(self):
        import signals.experiments  # noqa
        import signals.experiment_groups  # noqa
        import signals.projects  # noqa
        import signals.project_plugin_jobs  # noqa
        import signals.nodes  # noqa
        import signals.repos  # noqa
        from signals.users import create_auth_token  # noqa
        if settings.AUTH_LDAP_ENABLED:
            from api.users.ldap_signals import populate_user_handler  # noqa

{'fraction_non_alphanumeric': 0.061192873741285826, 'fraction_numerical': 0.0, 'mean_word_length': 2.702005730659026, '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': '4471522', 'n_tokens_mistral': 375, 'n_tokens_neox': 366, 'n_words': 99}