<commit_before>from django.db import models
from django.utils.six import python_2_unicode_compatible
from django.utils.translation import gettext_lazy as _
from django.utils.timezone import utc
from fluent_contents.models import ContentItem


@python_2_unicode_compatible
class CountDownItem(ContentItem):
    """
    Count-down timer to a deadline
    """
    title = models.CharField(_("Title"), max_length=200)

    until = models.DateTimeField(_("Count to"))
    format = models.CharField(_("Format"), max_length=15, default='dHMS', help_text=_("y=year, o=months, w=weeks, d=days, h=hours, m=minutes, s=seconds. Uppercase means it's always visible."))<commit_msg>Fix deprecated @python_2_unicode_compatible()<commit_after>from django.db import models
from django.utils.translation import gettext_lazy as _
from django.utils.timezone import utc
from fluent_contents.models import ContentItem


class CountDownItem(ContentItem):
    """
    Count-down timer to a deadline
    """
    title = models.CharField(_("Title"), max_length=200)

    until = models.DateTimeField(_("Count to"))
    format = models.CharField(_("Format"), max_length=15, default='dHMS', help_text=_("y=year, o=months, w=weeks, d=days, h=hours, m=minutes, s=seconds. Uppercase means it's always visible."))
{'fraction_non_alphanumeric': 0.11875, 'fraction_numerical': 0.01015625, 'mean_word_length': 5.742105263157895, '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': '6692719', 'n_tokens_mistral': 405, 'n_tokens_neox': 384, 'n_words': 98}