<commit_before>from django.db import models

from library.config import STND_CHAR_LIMIT, STND_ID_CHAR_LIMIT
from library.config.items.weapons import WEAPON_CLASSES
from library.config.unknown import SIZES
from library.models.combat.weapon_info import MeleeWeaponInfo, RangedWeaponInfo, ThrownWeaponInfo
from library.models.items.item_groups import ItemCategory
from library.models.library_entities.abstract import AbstractLibraryEntity

class AbstractItem(AbstractLibraryEntity):
    """
    A generic item
    """
    class Meta(AbstractLibraryEntity.Meta):
        abstract = True

    # Info needed to Buy the Item
    item_category = models.ForeignKey(
        ItemCategory,
        related_field='item_%(class)s',
        blank=False)

    #base_price = models.PositiveIntegerField(blank=True, default=0)<commit_msg>Started creatures, working on creature types. See #7.<commit_after>from django.db import models

from library.config import STND_CHAR_LIMIT, STND_ID_CHAR_LIMIT
from library.config.items.weapons import WEAPON_CLASSES
from library.config.unknown import SIZES
from library.models.combat.weapon_info import MeleeWeaponInfo, RangedWeaponInfo, ThrownWeaponInfo
from library.models.items.item_groups import ItemCategory
from library.models.library_entities.abstract import AbstractLibraryEntity
from library.models.library_entities.items.materials import Material

class AbstractItem(AbstractLibraryEntity):
    """
    A generic item
    """
    class Meta(AbstractLibraryEntity.Meta):
        abstract = True

    # Info needed to Buy the Item
    item_category = models.ForeignKey(
        ItemCategory,
        related_field='item_%(class)s',
        blank=False)

    #base_price = models.PositiveIntegerField(blank=True, default=0)
{'fraction_non_alphanumeric': 0.07081667618503712, 'fraction_numerical': 0.0017133066818960593, 'mean_word_length': 4.801324503311259, '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': '5893911', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 118}