<commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailcore.models import Page
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from wagtail.wagtailsearch import index

from molo.core.models import HomePage

HomePage.subpage_types += ['polls.Question']


class Question(Page):
    parent_page_types = [
        'core.HomePage', 'core.SectionPage', 'core.ArticlePage']
    subpage_types = ['polls.Choice']


class Choice(Page):
    votes = models.IntegerField(default=0)

    promote_panels = Page.promote_panels + [<commit_msg>flake8<commit_after>from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailadmin.edit_handlers import FieldPanel

from molo.core.models import HomePage

HomePage.subpage_types += ['polls.Question']


class Question(Page):
    parent_page_types = [
        'core.HomePage', 'core.SectionPage', 'core.ArticlePage']
    subpage_types = ['polls.Choice']


class Choice(Page):
    votes = models.IntegerField(default=0)

    promote_panels = Page.promote_panels + [
{'fraction_non_alphanumeric': 0.09918107370336669, 'fraction_numerical': 0.00272975432211101, 'mean_word_length': 4.978260869565218, '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': '4576690', 'n_tokens_mistral': 357, 'n_tokens_neox': 351, 'n_words': 73}