<commit_before>from django.db import models
from django.db.models import Manager

# Import misc packages
import calendar as cal
import numpy as np
from datetime import date, datetime, timedelta
from decimal import Decimal
from pandas import DataFrame, date_range


class Currency(models.Model):
    """
    Represents a currency according to ISO 4217 standards.
    """

    name = models.CharField(max_length=255)
    symbol = models.CharField(max_length=10, unique=True)
    ascii_symbol = models.CharField(max_length=20, null=True, blank=True)
    num_code = models.IntegerField(null=True, blank=True)
    digits = models.IntegerField(null=True, blank=True)  # Digits after decimal (minor unit)
    description = models.TextField(blank=True)

    class Meta:
        verbose_name_plural = 'Currencies'
        verbose_name = 'Currency'
        ordering = ['symbol', ]

    def __unicode__(self):
        return u'%s %s %s' % (unicode(self.name), unicode(',  '), unicode(self.symbol))<commit_msg>Adding misc documentation.<commit_after>from django.db import models
from django.db.models import Manager

# Import misc packages
import calendar as cal
import numpy as np
from datetime import date, datetime, timedelta
from decimal import Decimal
from pandas import DataFrame, date_range


class Currency(models.Model):
    """
    Represents a currency according to ISO 4217 standards.
    Examples include United States Dollars (USD) or Euros (EUR).
    """

    name = models.CharField(max_length=255)
    symbol = models.CharField(max_length=10, unique=True)
    ascii_symbol = models.CharField(max_length=20, null=True, blank=True)
    num_code = models.IntegerField(null=True, blank=True)
    digits = models.IntegerField(null=True, blank=True)  # Digits after decimal (minor unit)
    description = models.TextField(blank=True)

    class Meta:
        verbose_name_plural = 'Currencies'
        verbose_name = 'Currency'
        ordering = ['symbol', ]

    def __unicode__(self):
        return u'%s %s %s' % (unicode(self.name), unicode(',  '), unicode(self.symbol))
{'fraction_non_alphanumeric': 0.10028929604628736, 'fraction_numerical': 0.010607521697203472, 'mean_word_length': 4.08578431372549, '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': '552690', 'n_tokens_mistral': 647, 'n_tokens_neox': 594, 'n_words': 176}