<commit_before># -#- coding: utf-8 -#-

from django.utils.translation import ugettext_lazy as _
from leonardo.module.web.models import Widget
from markupfield.fields import MarkupField


class MarkupTextWidget(Widget):
    text = MarkupField(_('text'), blank=True, default=_(
        'Empty text'))

    class Meta:
        abstract = True
        verbose_name = _('markup text')
        verbose_name_plural = _('markup texts')<commit_msg>default markup type to RST<commit_after># -#- coding: utf-8 -#-

from django.utils.translation import ugettext_lazy as _
from leonardo.module.web.models import Widget
from markupfield.fields import MarkupField


class MarkupTextWidget(Widget):
    text = MarkupField(_('text'), blank=True, default=_(
        'Empty text'), default_markup_type='restructuredtext')

    class Meta:
        abstract = True
        verbose_name = _('markup text')
        verbose_name_plural = _('markup texts')
{'fraction_non_alphanumeric': 0.10741138560687433, 'fraction_numerical': 0.0021482277121374865, 'mean_word_length': 3.7551020408163267, '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': '4618971', 'n_tokens_mistral': 291, 'n_tokens_neox': 281, 'n_words': 72}