<commit_before>"""
Models for the accounts application
"""

from django.db import models
from django.contrib.auth.models import User
from django.contrib.localflavor.us.models import PhoneNumberField, USStateField

from datetime import datetime

from settings import MONTHLY_REQUESTS

class RequestLimitError(Exception):
    """A user has tried to submit a request when they do not have any left"""

class Profile(models.Model):
    """User profile information for muckrock"""

    user = models.ForeignKey(User, unique=True)
    address1 = models.CharField(max_length=50, blank=True, verbose_name='address')
    address2 = models.CharField(max_length=50, blank=True, verbose_name='address (line 2)')
    city = models.CharField(max_length=60, blank=True)
    state = USStateField(blank=True)
    zip_code = models.CharField(max_length=10, blank=True)
    phone = PhoneNumberField(blank=True)

    # for limiting # of requests / month
    monthly_requests = models.IntegerField(default=MONTHLY_REQUESTS)
    date_update = models.DateField()
<commit_msg>make ma the default state<commit_after>"""
Models for the accounts application
"""

from django.db import models
from django.contrib.auth.models import User
from django.contrib.localflavor.us.models import PhoneNumberField, USStateField

from datetime import datetime

from settings import MONTHLY_REQUESTS

class RequestLimitError(Exception):
    """A user has tried to submit a request when they do not have any left"""

class Profile(models.Model):
    """User profile information for muckrock"""

    user = models.ForeignKey(User, unique=True)
    address1 = models.CharField(max_length=50, blank=True, verbose_name='address')
    address2 = models.CharField(max_length=50, blank=True, verbose_name='address (line 2)')
    city = models.CharField(max_length=60, blank=True)
    state = USStateField(blank=True, default='MA')
    zip_code = models.CharField(max_length=10, blank=True)
    phone = PhoneNumberField(blank=True)

    # for limiting # of requests / month
    monthly_requests = models.IntegerField(default=MONTHLY_REQUESTS)
    date_update = models.DateField()

{'fraction_non_alphanumeric': 0.09671361502347418, 'fraction_numerical': 0.010328638497652582, 'mean_word_length': 5.230994152046784, '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': '1341178', 'n_tokens_mistral': 625, 'n_tokens_neox': 608, 'n_words': 171}