<commit_before>from flask_login import UserMixin
from sqlalchemy.sql import expression

from ..models import Helpers, Syncable, db


class User(db.Model, Helpers, Syncable, UserMixin):
    id = db.Column(db.Integer, primary_key=True)
    login = db.Column(db.String(39), unique=True, nullable=False, index=True)
    avatar_url = db.Column(db.String(255))
    html_url = db.Column(db.String(255))
    is_member = db.Column(
        db.Boolean,
        server_default=expression.false(),
        nullable=False,
        index=True,
    )
    is_roadie = db.Column(
        db.Boolean,
        server_default=expression.false(),
        nullable=False,
        index=True,
    )
    is_banned = db.Column(
        db.Boolean,
        server_default=expression.false(),
        default=False,
        nullable=False,
        index=True,
    )
    has_2fa = db.Column(
        db.Boolean,
        default=False,
        server_default=expression.false(),
        nullable=False,
        index=True,
    )
    access_token = db.Column(db.String(200))
    email_addresses = db.relationship(
        'EmailAddress', backref='user', lazy='dynamic'<commit_msg>Fix signup.<commit_after>from flask_login import UserMixin
from sqlalchemy.sql import expression

from ..models import Helpers, Syncable, db


class User(db.Model, Helpers, Syncable, UserMixin):
    id = db.Column(db.Integer, primary_key=True)
    login = db.Column(db.String(39), unique=True, nullable=False, index=True)
    avatar_url = db.Column(db.String(255))
    html_url = db.Column(db.String(255))
    is_member = db.Column(
        db.Boolean,
        server_default=expression.false(),
        default=False,
        nullable=False,
        index=True,
    )
    is_roadie = db.Column(
        db.Boolean,
        server_default=expression.false(),
        default=False,
        nullable=False,
        index=True,
    )
    is_banned = db.Column(
        db.Boolean,
        server_default=expression.false(),
        default=False,
        nullable=False,
        index=True,
    )
    has_2fa = db.Column(
        db.Boolean,
        default=False,
        server_default=expression.false(),
        nullable=False,
        index=True,
    )
    access_token = db.Column(db.String(200))
    email_addresses = db.relationship(
        'EmailAddress', backref='user', lazy='dynamic'
{'fraction_non_alphanumeric': 0.11561433447098976, 'fraction_numerical': 0.010238907849829351, 'mean_word_length': 2.6021505376344085, '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': '6784187', 'n_tokens_mistral': 761, 'n_tokens_neox': 738, 'n_words': 130}