<commit_before>from google.appengine.ext import ndb
from bcryptmaster import bcrypt
from saylua.models.role import Role

from saylua import db


class _User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    display_name = db.Column(db.String(80), unique=True)
    email = db.Column(db.String(120), unique=True)
    phash = db.Column(db.String(200))
    role = db.Column(db.String(100))

    def __init__(self, display_name, email, role="user"):
        self.display_name = display_name
        self.email = email
        self.role = role

    def __repr__(self):
        return '<User %r>' % self.display_name


class User(ndb.Model):<commit_msg>Trying out sqlalchemy for avatar URL<commit_after>from google.appengine.ext import ndb
from bcryptmaster import bcrypt
from saylua.models.role import Role

from saylua import db


class _User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    display_name = db.Column(db.String(80), unique=True)
    email = db.Column(db.String(120), unique=True)
    phash = db.Column(db.String(200))
    role = db.Column(db.String(100))
    ha_url = db.Column(db.String(100))

    def __init__(self, display_name, email, role="user", ha_url='/api/ha/m/'):
        self.display_name = display_name
        self.email = email
        self.role = role
        self.ha_url = ha_url

    def __repr__(self):
        return '<User %r>' % self.display_name


class User(ndb.Model):
{'fraction_non_alphanumeric': 0.12220670391061453, 'fraction_numerical': 0.017458100558659217, 'mean_word_length': 3.450310559006211, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4854010', 'n_tokens_mistral': 502, 'n_tokens_neox': 476, 'n_words': 109}