<commit_before>from django.db import models


class Tag(models.Model):
    name = models.CharField(max_length=100,
                            unique=True)

class Article(models.Model):
    slug = models.CharField(max_length=100,
                            unique=True)
    title = models.CharField(max_length=255)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    content = models.TextField()
    active = models.BooleanField()
    tags = models.ManyToManyField(Tag)<commit_msg>Implement string function on models<commit_after>from django.db import models


class Tag(models.Model):
    name = models.CharField(max_length=100,
                            unique=True)

    def __str__(self):
        return self.name


class Article(models.Model):
    slug = models.CharField(max_length=100,
                            unique=True)
    title = models.CharField(max_length=255)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    content = models.TextField()
    active = models.BooleanField()
    tags = models.ManyToManyField(Tag)

    def __str__(self):
        return self.title
{'fraction_non_alphanumeric': 0.09421487603305785, 'fraction_numerical': 0.01487603305785124, 'mean_word_length': 2.8814102564102564, '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': '1952013', 'n_tokens_mistral': 366, 'n_tokens_neox': 348, 'n_words': 63}