<commit_before>from flask_wtf import Form
from wtforms import StringField, BooleanField, SubmitField
from wtforms.validators import InputRequired


class NavigationEntryForm(Form):
    title = StringField('Titel', validators=[InputRequired()])
    parent_id = StringField('Lijst')
    url = StringField('URL', validators=[InputRequired()])
    external = BooleanField('Externe link', default=False)
    activity_list = BooleanField('Lijst van activiteiten', default=False)
    submit = SubmitField('Opslaan')<commit_msg>Updated navigation entry form for dual language<commit_after>from flask_wtf import Form
from wtforms import StringField, BooleanField
from wtforms.validators import InputRequired
from flask.ext.babel import lazy_gettext as _


class NavigationEntryForm(Form):
    nl_title = StringField(_('Dutch title'), validators=[
        InputRequired(_('Dutch title') + " " + ('is required'))
    ])
    en_title = StringField(_('English title'), validators=[
        InputRequired(_('English title') + ' ' + ('is required'))
    ])
    url = StringField('URL', validators=[
        InputRequired('URL ' + _('is required'))
    ])
    parent_id = StringField(_('List'))
    external = BooleanField(_('External link'), default=False)
    activity_list = BooleanField(_('List of activities'), default=False)
{'fraction_non_alphanumeric': 0.1202435312024353, 'fraction_numerical': 0.0, 'mean_word_length': 5.232227488151659, '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': '787618', 'n_tokens_mistral': 367, 'n_tokens_neox': 352, 'n_words': 93}