<commit_before>from django.db import models
from django.contrib.auth.models import User
from django.contrib.postgres.fields import JSONField

# Create your models here.

class Currency(models.Model):
    name = models.CharField(max_length=30)
    store = models.ForeignKey(User, on_delete=models.CASCADE)
    attribute = JSONField(default = dict())
    available = models.BooleanField(default=True)

    def __str__(self):
        return self.name
<commit_msg>add stat field and raw_stat field to Currency<commit_after>from django.db import models
from django.contrib.auth.models import User
from django.contrib.postgres.fields import JSONField

# Create your models here.

class Currency(models.Model):
    name = models.CharField(max_length=30)
    store = models.ForeignKey(User, on_delete=models.CASCADE)
    attribute = JSONField(default = dict())
    available = models.BooleanField(default=True)
    stat = JSONField(default=dict())
    raw_stat = JSONField(default=dict())

    def __str__(self):
        return self.name

{'fraction_non_alphanumeric': 0.09514563106796116, 'fraction_numerical': 0.003883495145631068, 'mean_word_length': 4.48404255319149, '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': '1772159', 'n_tokens_mistral': 303, 'n_tokens_neox': 296, 'n_words': 75}