<commit_before># -*- coding: utf-8 -*-

from openfisca_france.model.base import *  # noqa


class date_naissance(Variable):
    column = DateCol(default = date(1970, 1, 1))
    entity = Individu
    is_permanent = True
    label = u"Date de naissance"
    period_behavior = PERMANENT


class adoption(Variable):
    column = BoolCol
    entity = Individu
    label = u"Enfant adopté"
    period_behavior = MONTH


class garde_alternee(Variable):
    column = BoolCol
    entity = Individu
    label = u'Enfant en garde alternée'
    base_function = requested_period_last_or_next_value
    period_behavior = MONTH


class activite(Variable):
    column = EnumCol(
        default = 4,
        enum = Enum([u'Actif occupé',
            u'Chômeur',
            u'Étudiant, élève',
            u'Retraité',
            u'Autre inactif']),
        )
    entity = Individu
    label = u"Activité"
    period_behavior = MONTH


class enceinte(Variable):
    column = BoolCol
    entity = Individu
    label = u"Est enceinte"
    period_behavior = MONTH


class statut_marital(Variable):
    column = EnumCol(
        default = 2,
        enum = Enum([u"Marié",
            u"Célibataire",
            u"Divorcé",
            u"Veuf",
            u"Pacsé",
            u"Jeune veuf"], start = 1),
        )
    entity = Individu
    label = u"Statut marital"
    period_behavior = MONTH<commit_msg>Set set_input hooks for variables<commit_after># -*- coding: utf-8 -*-

from openfisca_france.model.base import *  # noqa


class date_naissance(Variable):
    column = DateCol(default = date(1970, 1, 1))
    entity = Individu
    is_permanent = True
    label = u"Date de naissance"
    period_behavior = PERMANENT


class adoption(Variable):
    column = BoolCol
    entity = Individu
    label = u"Enfant adopté"
    period_behavior = MONTH


class garde_alternee(Variable):
    column = BoolCol
    entity = Individu
    label = u'Enfant en garde alternée'
    base_function = requested_period_last_or_next_value
    period_behavior = MONTH


class activite(Variable):
    column = EnumCol(
        default = 4,
        enum = Enum([u'Actif occupé',
            u'Chômeur',
            u'Étudiant, élève',
            u'Retraité',
            u'Autre inactif']),
        )
    entity = Individu
    label = u"Activité"
    period_behavior = MONTH
    set_input = set_input_dispatch_by_period


class enceinte(Variable):
    column = BoolCol
    entity = Individu
    label = u"Est enceinte"
    period_behavior = MONTH


class statut_marital(Variable):
    column = EnumCol(
        default = 2,
        enum = Enum([u"Marié",
            u"Célibataire",
            u"Divorcé",
            u"Veuf",
            u"Pacsé",
            u"Jeune veuf"], start = 1),
        )
    entity = Individu
    label = u"Statut marital"
    period_behavior = MONTH
    set_input = set_input_dispatch_by_period
{'fraction_non_alphanumeric': 0.09273356401384084, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 2.3421965317919073, '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': '3753256', 'n_tokens_mistral': 985, 'n_tokens_neox': 942, 'n_words': 217}