<commit_before>from django.db import models


ORDER_CHOICES = (
    ('awaiting_payment', 'Awaiting payment'),
    ('paid', 'Paid'),
    ('expired', 'Expired'),
    ('cancelled', 'Cancelled'),
)


class Order(models.Model):
    price = models.DecimalField(decimal_places=2, max_digits=12)
    discount = models.DecimalField(decimal_places=2, max_digits=12)
    status = models.CharField(choices=ORDER_CHOICES, max_length=256)
    purchase_date = models.DateTimeField()
    payment_date = models.DateTimeField()

    def __str__(self):
        return self.price - self.discount
<commit_msg>Fexed test in issue #34<commit_after>from django.db import models


ORDER_CHOICES = (
    ('awaiting_payment', 'Awaiting payment'),
    ('paid', 'Paid'),
    ('expired', 'Expired'),
    ('cancelled', 'Cancelled'),
)


class Order(models.Model):
    price = models.DecimalField(decimal_places=2, max_digits=12)
    discount = models.DecimalField(decimal_places=2, max_digits=12)
    status = models.CharField(choices=ORDER_CHOICES, max_length=256)
    purchase_date = models.DateTimeField()
    payment_date = models.DateTimeField()

    def __str__(self):
        return str(self.price - self.discount)

{'fraction_non_alphanumeric': 0.13350125944584382, 'fraction_numerical': 0.016792611251049538, 'mean_word_length': 4.493087557603687, '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': '3589981', 'n_tokens_mistral': 412, 'n_tokens_neox': 394, 'n_words': 72}