<commit_before>from django.db import models
from django.contrib.auth.models import AbstractUser


class Customer(AbstractUser):
    phone_number = models.CharField(max_length=100, null=True, blank=True)

    company = models.ForeignKey(
        'Company', null=True
    )

    @property
    def profile_complete(self):
        return (
            getattr(self.company, 'verified', False)
        )


class Company(models.Model):
    SECTORS = (
        ('RETAIL', 'Retail'),
        ('PROFESSIONAL_SERVICES', 'Professional Services'),
        ('FOOD_AND_DRINK', 'Food & Drink'),
        ('ENTERTAINMENT', 'Entertainment'),
    )
    business_sector = models.CharField(
        max_length=100, choices=SECTORS, blank=True, null=True
    )

    name = models.CharField(max_length=200, null=True)<commit_msg>after inspecting search results from companies house the company model was seen to be lacking premises attribute. Added attribute and generated and ran migration<commit_after>from django.db import models
from django.contrib.auth.models import AbstractUser


class Customer(AbstractUser):
    phone_number = models.CharField(max_length=100, null=True, blank=True)

    company = models.ForeignKey(
        'Company', null=True
    )

    @property
    def profile_complete(self):
        return (
            getattr(self.company, 'verified', False)
        )


class Company(models.Model):
    SECTORS = (
        ('RETAIL', 'Retail'),
        ('PROFESSIONAL_SERVICES', 'Professional Services'),
        ('FOOD_AND_DRINK', 'Food & Drink'),
        ('ENTERTAINMENT', 'Entertainment'),
    )
    business_sector = models.CharField(
        max_length=100, choices=SECTORS, blank=True, null=True
    )

    name = models.CharField(max_length=200, null=True)
    premises = models.CharField(max_length=200, null=True)
{'fraction_non_alphanumeric': 0.11214953271028037, 'fraction_numerical': 0.01154480483782298, 'mean_word_length': 3.375, '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': '1731373', 'n_tokens_mistral': 568, 'n_tokens_neox': 528, 'n_words': 119}