<commit_before>from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from encryption import EncryptedCharField

class GZUserProfile(models.Model):
    user = models.OneToOneField(User)
    git_name = models.CharField(max_length=75, label='GitHub Username')
    git_pass = EncryptedCharField(max_length=75, label='GitHub Password')
    git_org = models.CharField(max_length=75, label='GitHub Organization')
    git_repo = models.CharField(max_length=75, label='GitHub Repository')
    zen_name = models.CharField(max_length=75, label='Zendesk User Email')
    zen_token = EncryptedCharField(max_length=75, label='Zendesk API Token')
    zen_url = models.CharField(max_length=100, label='Zendesk URL')
    zen_fieldid = models.IntegerField(null=True, label='Zendesk Ticket \
                                      Association Field ID')
    age_limit = models.IntegerField(null=True, label='Age Limit (in days) for \
                                    the Tickets')

    def __str__(self):
        return "%s's profile" % self.user

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

post_save.connect(create_user_profile, sender=User)<commit_msg>gz-8: Added verbose_name parameters to the model fields for use in a model form.<commit_after>from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from encryption import EncryptedCharField

class GZUserProfile(models.Model):
    user = models.OneToOneField(User)
    git_name = models.CharField(max_length=30,
                                verbose_name='GitHub Username')
    git_pass = EncryptedCharField(max_length=75,
                                  verbose_name='GitHub Password')
    git_org = models.CharField(max_length=75, 
                               verbose_name='GitHub Organization')
    git_repo = models.CharField(max_length=75,
                                verbose_name='GitHub Repository')
    zen_name = models.CharField(max_length=75,
                                verbose_name='Zendesk User Email')
    zen_token = EncryptedCharField(max_length=75,
                                   verbose_name='Zendesk API Token')
    zen_url = models.CharField(max_length=100,
                               verbose_name='Zendesk URL')
    zen_fieldid = models.IntegerField(null=True,
                                      verbose_name='Zendesk Ticket \
                                      Association Field ID')
    age_limit = models.IntegerField(null=True,
                                    verbose_name='Age Limit (in days) for \
                                    the Tickets')

    def __str__(self):
        return "%s's profile" % self.user

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

post_save.connect(create_user_profile, sender=User)
{'fraction_non_alphanumeric': 0.08679747256401729, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 2.606714628297362, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7295280', 'n_tokens_mistral': 886, 'n_tokens_neox': 817, 'n_words': 176}