<commit_before>from django.db import models


class TeslaCar(models.Model):
    """Простая модель Тесла."""
    MODELS = 1
    MODEL3 = 2
    MODELX = 3
    CAR_TYPES = (
        (MODELS, 'Model S'),
        (MODEL3, 'Model 3'),
        (MODELX, 'Model X'),
    )

    title = models.CharField(max_length=50)
    author = models.CharField(blank=True, max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    engine_power = models.IntegerField(blank=True, null=True)
    car_type = models.PositiveSmallIntegerField(choices=CAR_TYPES)
    publication_date = models.DateField(null=True)
    class Meta:
        """Сортировка описанию.За кастомные названия отвечает verbose_name."""
        ordering = ['title']
        verbose_name = 'car list'
        verbose_name_plural = 'Tesla Car'

    def __str__(self):
        return self.title<commit_msg># max_digits=10<commit_after>from django.db import models


class TeslaCar(models.Model):
    """Простая модель Тесла."""
    MODELS = 1
    MODEL3 = 2
    MODELX = 3
    CAR_TYPES = (
        (MODELS, 'Model S'),
        (MODEL3, 'Model 3'),
        (MODELX, 'Model X'),
    )

    title = models.CharField(max_length=50)
    author = models.CharField(blank=True, max_length=50)
    price = models.DecimalField(max_digits=10, decimal_places=2)
    engine_power = models.IntegerField(blank=True, null=True)
    car_type = models.PositiveSmallIntegerField(choices=CAR_TYPES)
    publication_date = models.DateField(null=True)
    class Meta:
        """Сортировка описанию.За кастомные названия отвечает verbose_name."""
        ordering = ['title']
        verbose_name = 'car list'
        verbose_name_plural = 'Tesla Car'

    def __str__(self):
        return self.title
{'fraction_non_alphanumeric': 0.11461318051575932, 'fraction_numerical': 0.015472779369627506, 'mean_word_length': 3.137440758293839, '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': '764161', 'n_tokens_mistral': 625, 'n_tokens_neox': 606, 'n_words': 120}