<commit_before>from django.contrib.auth.models import User
from django.db import models
from userena.models import UserenaBaseProfile
from django.utils.translation import ugettext_lazy as _
from django.db.models.signals import post_save
from django_countries import CountryField


class UserProfile(UserenaBaseProfile):
    user = models.OneToOneField(User,
                                unique=True,
                                verbose_name=_('user'),
                                related_name='user_profile')
    institution = models.CharField(max_length=100)
    department = models.CharField(max_length=100)
    country = CountryField()
    website = models.CharField(max_length=150, blank=True)


def create_user_profile(sender, instance, created, **kwargs):
    if created:
        UserProfile.objects.create(user=instance)

post_save.connect(create_user_profile, sender=User)<commit_msg>fixes 'module' not iterable error<commit_after>from django.contrib.auth.models import User
from django.db import models
from userena.models import UserenaBaseProfile
from django.utils.translation import ugettext_lazy as _
from django.db.models.signals import post_save
from django_countries.fields import CountryField


class UserProfile(UserenaBaseProfile):
    user = models.OneToOneField(User,
                                unique=True,
                                verbose_name=_('user'),
                                related_name='user_profile')
    institution = models.CharField(max_length=100)
    department = models.CharField(max_length=100)
    country = CountryField()
    website = models.CharField(max_length=150, blank=True)


def create_user_profile(sender, instance, created, **kwargs):
    if created:
        UserProfile.objects.create(user=instance)

post_save.connect(create_user_profile, sender=User)
{'fraction_non_alphanumeric': 0.07910529187124932, 'fraction_numerical': 0.009819967266775777, 'mean_word_length': 3.38755980861244, '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': '5492196', 'n_tokens_mistral': 509, 'n_tokens_neox': 489, 'n_words': 105}