<commit_before>from django.db import models

# Create your models here.
class Product(models.Model):
    product_id = models.AutoField(primary_key=True)
    product_name = models.CharField(max_length=100)
    product_price = models.DecimalField(max_digits=7,decimal_places=3)
    product_stockApplies = models.BooleanField()
    product_stock = models.PositiveSmallIntegerField()

    def __str__(self):
        return self.product_name



#class User(models.Model):
#    user_id = models.AutoField(primary_key = True)
#    user_name = models.CharField(max_length=50)
#    user_isAdmin = models.BooleanField()
#
#    def __str__(self):
#        return user_name
#
<commit_msg>added default value for stock<commit_after>from django.db import models

# Create your models here.
class Product(models.Model):
    product_id = models.AutoField(primary_key=True)
    product_name = models.CharField(max_length=100)
    product_price = models.DecimalField(max_digits=7,decimal_places=3)
    product_stockApplies = models.BooleanField()
    product_stock = models.PositiveSmallIntegerField(default=0)

    def __str__(self):
        return self.product_name



#class User(models.Model):
#    user_id = models.AutoField(primary_key = True)
#    user_name = models.CharField(max_length=50)
#    user_isAdmin = models.BooleanField()
#
#    def __str__(self):
#        return user_name
#

{'fraction_non_alphanumeric': 0.09949164851125636, 'fraction_numerical': 0.010893246187363835, 'mean_word_length': 4.49003984063745, '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': '2586158', 'n_tokens_mistral': 447, 'n_tokens_neox': 430, 'n_words': 78}