<commit_before>
from django.db.models import fields
from django.utils.translation import ugettext_lazy as _

from ...models.field import FieldDefinition

class CharFieldDefinition(FieldDefinition):
    
    max_length = fields.PositiveSmallIntegerField(_(u'max length'),
                                                  blank=True, null=True)
    
    class Meta:
        app_label = 'mutant'
        verbose_name = _(u'char field')
        verbose_name_plural = _(u'char fields')
        defined_field_class = fields.CharField
        defined_field_options = ('max_length',)
        defined_field_category = _(u'text')
        
class TextFieldDefinition(CharFieldDefinition):
    
    class Meta:
        app_label = 'mutant'
        proxy = True
        defined_field_class = fields.TextField<commit_msg>Added a verbose name to the TextFieldDefinition<commit_after>
from django.db.models import fields
from django.utils.translation import ugettext_lazy as _

from ...models.field import FieldDefinition

class CharFieldDefinition(FieldDefinition):
    
    max_length = fields.PositiveSmallIntegerField(_(u'max length'),
                                                  blank=True, null=True)
    
    class Meta:
        app_label = 'mutant'
        verbose_name = _(u'char field')
        verbose_name_plural = _(u'char fields')
        defined_field_class = fields.CharField
        defined_field_options = ('max_length',)
        defined_field_category = _(u'text')
        
class TextFieldDefinition(CharFieldDefinition):
    
    class Meta:
        app_label = 'mutant'
        proxy = True
        verbose_name = _(u'text field')
        verbose_name_plural = _(u'text fields')
        defined_field_class = fields.TextField
{'fraction_non_alphanumeric': 0.07834101382488479, 'fraction_numerical': 0.0, 'mean_word_length': 2.566735112936345, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2859596', 'n_tokens_mistral': 467, 'n_tokens_neox': 457, 'n_words': 105}