<commit_before>from django.db import models
from django.template.defaultfilters import slugify

class Project(models.Model):
    project_title = models.CharField(max_length=200)
    project_slug = models.SlugField(max_length=255)
    project_org = models.CharField(max_length=200)
    project_location = models.CharField(max_length=255)
    project_date = models.DateTimeField()
    project_desc = models.TextField(null=True)
    project_goal = models.TextField(null=True, blank=True)

    requester_org = models.CharField(max_length=200)
    requester_name = models.CharField(max_length=200)
    requester_title = models.CharField(max_length=200)
    requester_address = models.CharField(max_length=200)
    requester_postcode = models.CharField(max_length=6)
    requester_city = models.CharField(max_length=50)
    requester_email = models.EmailField()
    requester_phone = models.CharField(max_length=15)

    def save(self, *args, **kwargs):
        self.project_slug = slugify("{}-{}".format(self.project_org, self.project_title))
        super(Project, self).save(*args, **kwargs)

    def __unicode__(self):
        return self.project_title

class ProjectIncomeExpenses(models.Model):
    project = models.ForeignKey('Project')
    description = models.CharField(max_length=255)
    amount = models.DecimalField(max_digits=6, decimal_places=2)

    def __unicode__(self):
        return "{} - {:.2f}".format(self.description, self.amount)

<commit_msg>Proper form labels for the models<commit_after>from django.db import models
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _

class Project(models.Model):
    project_title = models.CharField(_("project titel"), max_length=200)
    project_slug = models.SlugField(max_length=255)
    project_org = models.CharField(_("organisatie"), max_length=200)
    project_location = models.CharField(_("locatie"), max_length=255)
    project_date = models.DateTimeField(_("datum (yyyy-mm-dd)"))
    project_desc = models.TextField(_("Beschrijving"), null=True)
    project_goal = models.TextField(_("Doel"), null=True, blank=True)

    requester_org = models.CharField(_("organisatie"), max_length=200)
    requester_name = models.CharField(_("naam"), max_length=200)
    requester_title = models.CharField(_("titel"), max_length=200)
    requester_address = models.CharField(_("adres"), max_length=200)
    requester_postcode = models.CharField(_("postcode"), max_length=6)
    requester_city = models.CharField(_("stad"), max_length=50)
    requester_email = models.EmailField(_("email"))
    requester_phone = models.CharField(_("telefoon"), max_length=15)

    def save(self, *args, **kwargs):
        self.project_slug = slugify("{}-{}".format(self.project_org, self.project_title))
        super(Project, self).save(*args, **kwargs)

    def __unicode__(self):
        return self.project_title

class ProjectIncomeExpenses(models.Model):
    project = models.ForeignKey('Project')
    description = models.CharField(_("beschrijving"), max_length=255)
    amount = models.DecimalField(_("bedrag"), max_digits=6, decimal_places=2)

    def __unicode__(self):
        return "{} - {:.2f}".format(self.description, self.amount)


{'fraction_non_alphanumeric': 0.1271212588707189, 'fraction_numerical': 0.02159827213822894, 'mean_word_length': 5.140151515151516, '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': '1032376', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1004, 'n_words': 164}