<commit_before># -*- coding: utf-8 -*-
'''
    Mango reports models and messages.
'''

# This file is part of mango.

# Distributed under the terms of the last AGPL License.
# The full license is in the file LICENCE, distributed as part of this software.

__author__ = '<NAME>'


import uuid as _id

from schematics import models
from schematics import types
from schematics.types import compound

from mango.messages import records


class BaseResult(models.Model):
    '''
        base result
    '''
    results = compound.ListType(compound.ModelType(records.Record))


class BaseGoal(models.Model):
    '''
        base goal
    '''
    goals = compound.ListType(compound.ModelType(tasks.Tasks))


class BaseHistory(models.Model):
    '''
        base history

        Scopes: accounts, numbers
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    record_uuid = types.UUIDType(default=_id.uuid4)
    ban =  types.UUIDType(default=_id.uuid4) # 'billing account number'
    country_number = types.IntType()
    number = types.StringType()
    campaign_uuid = types.UUIDType(default=_id.uuid4)
    start_time = types.DateTimeType()
    caller_id = types.StringType()
    caller_id_name = types.StringType()
    origin_number = types.StringType()
    origin_city = types.StringType()
    origin_state = types.StringType()
    origin_province = types.StringType()
    destination_type = types.IntType()
    destination_contry_code = types.StringType()
    destination_number = types.StringType()
    destination_city = types.StringType()
    destination_state = types.StringType()
    duration = types.IntType()
    duration_unrounded = types.IntType()
    cost = types.IntType()
    special_rate = types.IntType()
    lead_type = types.IntType()
    web_call = types.BooleanType(default=False)


class ConectedDuration(models.Model):
    '''
        connected duration
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    customer_uuid = types.UUIDType(default=_id.uuid4)
    phone_1 = types.StringType()
    first_name = types.StringType()
    rep_phone = types.StringType()
    keyword = types.StringType()
    duration_unrounded = types.IntType()
    record_uuid = types.UUIDType(default=_id.uuid4)


class VoiceCall(models.Model):
    '''
        voice call
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    account_uuid = types.UUIDType(default=_id.uuid4)
    phone_1 = types.StringType()
    first_name = types.StringType()
    last_name = types.StringType()
    rep_phone = types.StringType()
    keyword = types.StringType()<commit_msg>the enemy<commit_after># -*- coding: utf-8 -*-
'''
    Mango reports models and messages.
'''

# This file is part of mango.

# Distributed under the terms of the last AGPL License.
# The full license is in the file LICENCE, distributed as part of this software.

__author__ = '<NAME>'


import uuid as _id

from schematics import models
from schematics import types
from schematics.types import compound

from mango.messages import records


class BaseResult(models.Model):
    '''
        base result
    '''
    results = compound.ListType(compound.ModelType(records.Record))


class BaseGoal(models.Model):
    '''
        base goal
    '''
    goals = compound.ListType(compound.ModelType(tasks.Task))


class BaseHistory(models.Model):
    '''
        base history

        Scopes: accounts, numbers
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    record_uuid = types.UUIDType(default=_id.uuid4)
    ban =  types.UUIDType(default=_id.uuid4) # 'billing account number'
    country_number = types.IntType()
    number = types.StringType()
    campaign_uuid = types.UUIDType(default=_id.uuid4)
    start_time = types.DateTimeType()
    caller_id = types.StringType()
    caller_id_name = types.StringType()
    origin_number = types.StringType()
    origin_city = types.StringType()
    origin_state = types.StringType()
    origin_province = types.StringType()
    destination_type = types.IntType()
    destination_contry_code = types.StringType()
    destination_number = types.StringType()
    destination_city = types.StringType()
    destination_state = types.StringType()
    duration = types.IntType()
    duration_unrounded = types.IntType()
    cost = types.IntType()
    special_rate = types.IntType()
    lead_type = types.IntType()
    web_call = types.BooleanType(default=False)


class ConectedDuration(models.Model):
    '''
        connected duration
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    customer_uuid = types.UUIDType(default=_id.uuid4)
    phone_1 = types.StringType()
    first_name = types.StringType()
    rep_phone = types.StringType()
    keyword = types.StringType()
    duration_unrounded = types.IntType()
    record_uuid = types.UUIDType(default=_id.uuid4)


class VoiceCall(models.Model):
    '''
        voice call
    '''
    uuid = types.UUIDType(default=_id.uuid4)
    account_uuid = types.UUIDType(default=_id.uuid4)
    phone_1 = types.StringType()
    first_name = types.StringType()
    last_name = types.StringType()
    rep_phone = types.StringType()
    keyword = types.StringType()
{'fraction_non_alphanumeric': 0.10913358106786622, 'fraction_numerical': 0.004693917465284568, 'mean_word_length': 3.4702797202797204, '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': '7188687', 'n_tokens_mistral': 1554, 'n_tokens_neox': 1571, 'n_words': 334}