<commit_before># -*- coding: utf-8 -*-
"""
    tracker.models
    ~~~~~~~~~~~~~~

    tracker models file

    :copyright: (c) 2014 by arruda.
"""

from django.db import models


class Character(models.Model):
    """
    A wow character
    """

    name = models.CharField(u"Character Name", max_length=350, blank=False, null=True)
    realm = models.CharField(u"Realm", max_length=350, blank=False, null=True)

    user = models.ForeignKey('users.User', related_name=u"characters", blank=True, null=True)

    class Meta:
        app_label = 'tracker'

    def __unicode__(self):

        return self.realm + "/" + self.name


class Item(models.Model):
    """
    Represents an Item that is tracked
    """

    b_id = models.PositiveIntegerField(u"Blizzard Item Id", blank=False, null=True)
    name = models.CharField(u"Item Name", max_length=350, blank=True, null=True)

    characters = models.ManyToManyField(Character, related_name=u"items", blank=True, null=True)<commit_msg>changign blizzard item id attributo to a more explicit name<commit_after># -*- coding: utf-8 -*-
"""
    tracker.models
    ~~~~~~~~~~~~~~

    tracker models file

    :copyright: (c) 2014 by arruda.
"""

from django.db import models


class Character(models.Model):
    """
    A wow character
    """

    name = models.CharField(u"Character Name", max_length=350, blank=False, null=True)
    realm = models.CharField(u"Realm", max_length=350, blank=False, null=True)

    user = models.ForeignKey('users.User', related_name=u"characters", blank=True, null=True)

    class Meta:
        app_label = 'tracker'

    def __unicode__(self):

        return self.realm + "/" + self.name


class Item(models.Model):
    """
    Represents an Item that is tracked
    """

    blizzard_id = models.PositiveIntegerField(u"Blizzard Item Id", blank=False, null=True)
    name = models.CharField(u"Item Name", max_length=350, blank=True, null=True)

    characters = models.ManyToManyField(Character, related_name=u"items", blank=True, null=True)
{'fraction_non_alphanumeric': 0.14419753086419754, 'fraction_numerical': 0.013827160493827161, 'mean_word_length': 3.689814814814815, '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': '2322678', 'n_tokens_mistral': 689, 'n_tokens_neox': 635, 'n_words': 150}