<commit_before>##############################################################################
#
#    Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
#    Releasing children from poverty in Jesus' name
#    @author: <NAME> <<EMAIL>>
#
#    The licence is in the file __manifest__.py
#
##############################################################################
import logging
from datetime import datetime
from random import randint

from dateutil.relativedelta import relativedelta

from odoo import models, api, fields, _
from odoo.tools import config
from odoo.addons.child_compassion.models.compassion_hold import HoldType
from odoo.addons.queue_job.job import job, related_action
from odoo.tools import config

# By default, don't propose children older than this
DEFAULT_MAX_AGE = 12

_logger = logging.getLogger(__name__)
test_mode = config.get("test_enable")


class SmsChildRequest(models.Model):
    _name = "sms.child.request"
    _inherit = ["mail.thread", "mail.activity.mixin", "phone.validation.mixin"]
    _description = "SMS Child request"
    _rec_name = "child_id"
    _order = "date desc"<commit_msg>FIX flake8<commit_after>##############################################################################
#
#    Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
#    Releasing children from poverty in Jesus' name
#    @author: <NAME> <<EMAIL>>
#
#    The licence is in the file __manifest__.py
#
##############################################################################
import logging
from datetime import datetime
from random import randint

from dateutil.relativedelta import relativedelta

from odoo import models, api, fields
from odoo.addons.child_compassion.models.compassion_hold import HoldType
from odoo.addons.queue_job.job import job, related_action
from odoo.tools import config

# By default, don't propose children older than this
DEFAULT_MAX_AGE = 12

_logger = logging.getLogger(__name__)
test_mode = config.get("test_enable")


class SmsChildRequest(models.Model):
    _name = "sms.child.request"
    _inherit = ["mail.thread", "mail.activity.mixin", "phone.validation.mixin"]
    _description = "SMS Child request"
    _rec_name = "child_id"
    _order = "date desc"
{'fraction_non_alphanumeric': 0.22043010752688172, 'fraction_numerical': 0.005824372759856631, 'mean_word_length': 5.567647058823529, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3859854', 'n_tokens_mistral': 659, 'n_tokens_neox': 624, 'n_words': 180}