<commit_before>from datetime import date

from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _

from phonenumber_field.modelfields import PhoneNumberField


class Visit(models.Model):
    PAYMENT_METHODS = (
        (1, _("Cash")),
        (2, _("Credit Card")),
        (3, _("Cash and Credit Card")),
    )

    # Customer
    customer = models.ForeignKey('customers.Customer', verbose_name=_("Customer"))
    # Date Fields
    visit_date = models.DateField(_("Visit Date"), default=timezone.now)
    visit_time = models.TimeField(_("Visit Time"), blank=True, null=True)
    # Guest Fields
    female_guest_count = models.PositiveSmallIntegerField(_("Female Guest Count"), default=0)
    male_guest_count = models.PositiveSmallIntegerField(_("Male Guest Count"), default=0)
    child_guest_count = models.PositiveSmallIntegerField(_("Child Guest Count"), default=0)
    # Payment Fields
    payment_method = models.PositiveSmallIntegerField(_("Payment Method"), choices=PAYMENT_METHODS)
    total_payment_amount = models.DecimalField(_("Total Payment Amount"), decimal_places=2, max_digits=8)

    # Notes
    notes = models.TextField(_("Notes"), blank=True)

<commit_msg>removed unnessary code<commit_after>from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _


class Visit(models.Model):
    PAYMENT_METHODS = (
        (1, _("Cash")),
        (2, _("Credit Card")),
        (3, _("Cash and Credit Card")),
    )

    # Customer
    customer = models.ForeignKey('customers.Customer', verbose_name=_("Customer"))
    # Date Fields
    visit_date = models.DateField(_("Visit Date"), default=timezone.now)
    visit_time = models.TimeField(_("Visit Time"), blank=True, null=True)
    # Guest Fields
    female_guest_count = models.PositiveSmallIntegerField(_("Female Guest Count"), default=0)
    male_guest_count = models.PositiveSmallIntegerField(_("Male Guest Count"), default=0)
    child_guest_count = models.PositiveSmallIntegerField(_("Child Guest Count"), default=0)
    # Payment Fields
    payment_method = models.PositiveSmallIntegerField(_("Payment Method"), choices=PAYMENT_METHODS)
    total_payment_amount = models.DecimalField(_("Total Payment Amount"), decimal_places=2, max_digits=8)

    # Notes
    notes = models.TextField(_("Notes"), blank=True)


{'fraction_non_alphanumeric': 0.11781848459616986, 'fraction_numerical': 0.006661115736885929, 'mean_word_length': 4.7764423076923075, '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': '7121263', 'n_tokens_mistral': 744, 'n_tokens_neox': 699, 'n_words': 158}