<commit_before>from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, SelectField, TextAreaField
from wtforms.validators import InputRequired, Length
from wtforms.ext.sqlalchemy.fields import QuerySelectMultipleField
from flask.ext.babel import lazy_gettext as _

from ark.account.models import Account


class AccountEditForm(Form):

    username = StringField(_(u'Username'),
                           validators=[InputRequired(),
                                       Length(min=6, max=30)])
    gender = SelectField(_(u'Gender'),
                          choices=[
                              ('male', _('Male')),
                              ('female', _('Female')),])
    password = PasswordField(_('Password'),)
    state = SelectField(_('State'),
                        choices=(('normal', _('Normal')),
                                 ('frozen', _('Frozen')),
                                 ('deleted', _('Deleted')),
                                 ('inactive', _('Inactive')),))
    is_superuser = SelectField(_('Superuser'),
                               choices=[
                                   ('True', _('Yes')),
                                   ('False', _('No'))])

<commit_msg>fix min length limit of account in dashboard<commit_after>from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, SelectField, TextAreaField
from wtforms.validators import InputRequired, Length
from wtforms.ext.sqlalchemy.fields import QuerySelectMultipleField
from flask.ext.babel import lazy_gettext as _

from ark.account.models import Account


class AccountEditForm(Form):

    username = StringField(_(u'Username'),
                           validators=[InputRequired(),
                                       Length(min=4, max=30)])
    gender = SelectField(_(u'Gender'),
                          choices=[
                              ('male', _('Male')),
                              ('female', _('Female')),])
    password = PasswordField(_('Password'),)
    state = SelectField(_('State'),
                        choices=(('normal', _('Normal')),
                                 ('frozen', _('Frozen')),
                                 ('deleted', _('Deleted')),
                                 ('inactive', _('Inactive')),))
    is_superuser = SelectField(_('Superuser'),
                               choices=[
                                   ('True', _('Yes')),
                                   ('False', _('No'))])


{'fraction_non_alphanumeric': 0.12694610778443113, 'fraction_numerical': 0.0023952095808383233, 'mean_word_length': 1.5942028985507246, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5793711', 'n_tokens_mistral': 629, 'n_tokens_neox': 590, 'n_words': 131}