<commit_before>from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings


def set_email_by_username(sender, **kwargs):
    """
    Signal handler which is invoked when a User is saved.
    """
    user = kwargs['instance']
    if not user.email:
        user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX)

post_save.connect(set_email_by_username,
                  sender=User)<commit_msg>devilry_autoset_empty_email_by_username: Comment out the post_save connect line.<commit_after>from django.conf import settings


def set_email_by_username(sender, **kwargs):
    """
    Signal handler which is invoked when a User is saved.
    """
    user = kwargs['instance']
    if not user.email:
        user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX)

# post_save.connect(set_email_by_username,
#                   sender=User)
{'fraction_non_alphanumeric': 0.10083160083160084, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 3.8883248730964466, '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': '413829', 'n_tokens_mistral': 304, 'n_tokens_neox': 296, 'n_words': 67}