<commit_before>from django.db import models
from main.models import BaseModel
import jsonfield


STAT_TYPES = (
    ('user_count', 'User count'),
    ('host_count', 'Host count'),
    ('ip_update_count', 'IP update count'),
)

class StatisticsEntry(BaseModel):
    stat_type = models.CharField(max_length=32, choices=STAT_TYPES)
    value = models.IntegerField()

    def __unicode__(self):
        return "%s: %d (%s)" % (self.stat_type, self.value, self.created)<commit_msg>provide plural name for model<commit_after>from django.db import models
from main.models import BaseModel
import jsonfield


STAT_TYPES = (
    ('user_count', 'User count'),
    ('host_count', 'Host count'),
    ('ip_update_count', 'IP update count'),
)


class StatisticsEntry(BaseModel):
    class Meta:
        verbose_name_plural = 'Statistics Entries'

    stat_type = models.CharField(max_length=32, choices=STAT_TYPES)
    value = models.IntegerField()

    def __unicode__(self):
        return "%s: %d (%s)" % (self.stat_type, self.value, self.created)
{'fraction_non_alphanumeric': 0.12921890067502412, 'fraction_numerical': 0.003857280617164899, 'mean_word_length': 4.323076923076923, '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': '6578543', 'n_tokens_mistral': 334, 'n_tokens_neox': 324, 'n_words': 82}