<commit_before>from django.db import models
from django.core.urlresolvers import reverse

# Create your models here.
class CharacterIcon(models.Model):
    url = models.URLField()
    def __str__(self):
        return self.url.rsplit('/', 1)[1]

class Character(models.Model):
    icon = models.ForeignKey(CharacterIcon)
    name = models.CharField(max_length=200)
    profession = models.CharField('class', max_length=50)
    level = models.IntegerField()
    base_hp = models.IntegerField()
    av_short = models.CharField(max_length=50, default = 'AV: ')
    av_long = models.TextField(default = 'AV: ')
    def __str__(self):
        return '{self.name}, {self.profession}:{self.level} - {self.base_hp} HP'.format(self=self)
    def get_absolute_url(self):
        return reverse('character_edit', kwargs={'pk': self.pk})
    <commit_msg>model changes<commit_after>from django.db import models
from django.core.urlresolvers import reverse

# Create your models here.
class CharacterIcon(models.Model):
    url = models.URLField()
    def __str__(self):
        return self.url.rsplit('/', 1)[1]

class Character(models.Model):
    icon = models.ForeignKey(CharacterIcon)
    name = models.CharField(max_length=200)
    profession = models.CharField('class', max_length=50)
    level = models.IntegerField()
    base_hp = models.IntegerField()
    av_short = models.CharField(max_length=50, default = 'AV: ')
    av_long = models.TextField(blank=True)
    def __str__(self):
        return '{self.name}, {self.profession}:{self.level} - {self.base_hp} HP'.format(self=self)
    def get_absolute_url(self):
        return reverse('character_edit', kwargs={'pk': self.pk})
    
{'fraction_non_alphanumeric': 0.13528009535160906, 'fraction_numerical': 0.010727056019070322, 'mean_word_length': 4.072507552870091, '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': '900422', 'n_tokens_mistral': 530, 'n_tokens_neox': 525, 'n_words': 108}