<commit_before># -*- coding: utf-8 -*-
"""User models."""
from flask import current_app, url_for
from flask_babel import gettext
from flask_login import UserMixin
from fulfil_client.model import BooleanType, ModelType, One2ManyType, StringType
from itsdangerous import TimestampSigner, URLSafeSerializer

from shop.extensions import fulfil
from shop.fulfilio import Model
from shop.globals import current_channel
from shop.utils import render_email


class Address(Model):
    """
    An address of a user
    """

    __model_name__ = 'party.address'

    party = ModelType('party.party')
    name = StringType(required=True)
    street = StringType()
    streetbis = StringType()
    zip = StringType()
    city = StringType()
    country = ModelType("country.country")
    subdivision = ModelType("country.subdivision")
    phone = StringType()
    is_validated = BooleanType()
    full_address = StringType()


class ContactMechanism(Model):
    __model_name__ = 'party.contact_mechanism'

    party = ModelType('party.party')
    type = StringType(required=True)
    value = StringType(required=True)


class Party(Model):<commit_msg>Replace validation boolean with stringtype<commit_after># -*- coding: utf-8 -*-
"""User models."""
from flask import current_app, url_for
from flask_babel import gettext
from flask_login import UserMixin
from fulfil_client.model import BooleanType, ModelType, One2ManyType, StringType
from itsdangerous import TimestampSigner, URLSafeSerializer

from shop.extensions import fulfil
from shop.fulfilio import Model
from shop.globals import current_channel
from shop.utils import render_email


class Address(Model):
    """
    An address of a user
    """

    __model_name__ = 'party.address'

    party = ModelType('party.party')
    name = StringType(required=True)
    street = StringType()
    streetbis = StringType()
    zip = StringType()
    city = StringType()
    country = ModelType("country.country")
    subdivision = ModelType("country.subdivision")
    phone = StringType()
    validation_status = StringType()
    full_address = StringType()


class ContactMechanism(Model):
    __model_name__ = 'party.contact_mechanism'

    party = ModelType('party.party')
    type = StringType(required=True)
    value = StringType(required=True)


class Party(Model):
{'fraction_non_alphanumeric': 0.09433145824318477, 'fraction_numerical': 0.0017308524448290783, 'mean_word_length': 4.414519906323185, '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': '615422', 'n_tokens_mistral': 677, 'n_tokens_neox': 646, 'n_words': 181}