<commit_before>from flask_wtf import Form
from wtforms import StringField, BooleanField, SelectField
from flask_wtf.file import FileField, FileAllowed, FileRequired

from . import models


class ImageUploadForm(Form):
    file = FileField('Image', validators=[
        FileRequired(),
        FileAllowed(['jpg', 'png'], 'Images only!')
    ])
    resize = BooleanField()
    place = SelectField('Place', choices=models.ImageMatch.SP_CHOICES)

<commit_msg>fix: dev: use FlaskForm to remove warning<commit_after>from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, SelectField
from flask_wtf.file import FileField, FileAllowed, FileRequired

from . import models


class ImageUploadForm(FlaskForm):
    file = FileField('Image', validators=[
        FileRequired(),
        FileAllowed(['jpg', 'png'], 'Images only!')
    ])
    resize = BooleanField()
    place = SelectField('Place', choices=models.ImageMatch.SP_CHOICES)


{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0, 'mean_word_length': 4.763636363636364, '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': '4078826', 'n_tokens_mistral': 277, 'n_tokens_neox': 267, 'n_words': 74}