<commit_before>from django.db import models


class Artist(models.Model):
    name = models.CharField(max_length=255, null=True)
    url = models.URLField(unique=True)
    location = models.CharField(max_length=255, null=True)


class Album(models.Model):
    title = models.CharField(max_length=255, null=True)
    artist = models.ForeignKey(Artist, null=True)
    url = models.URLField(unique=True)
    art = models.URLField(null=True)
    release_date = models.CharField(max_length=100, null=True)
    license = models.CharField(max_length=255, blank=True, null=True)
    as_of = models.DateTimeField(auto_now=True)

    def __str__(self):
        return self.title<commit_msg>String representation for bandcamp artist model<commit_after>from django.db import models


class Artist(models.Model):
    name = models.CharField(max_length=255, null=True)
    url = models.URLField(unique=True)
    location = models.CharField(max_length=255, null=True)

    def __str__(self):
        return self.name


class Album(models.Model):
    title = models.CharField(max_length=255, null=True)
    artist = models.ForeignKey(Artist, null=True)
    url = models.URLField(unique=True)
    art = models.URLField(null=True)
    release_date = models.CharField(max_length=100, null=True)
    license = models.CharField(max_length=255, blank=True, null=True)
    as_of = models.DateTimeField(auto_now=True)

    def __str__(self):
        return self.title
{'fraction_non_alphanumeric': 0.11226611226611227, 'fraction_numerical': 0.02079002079002079, 'mean_word_length': 4.511450381679389, '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': '6466427', 'n_tokens_mistral': 486, 'n_tokens_neox': 460, 'n_words': 86}