<commit_before># -*- coding: utf-8 -*-
""" Fields for DictEmbedded model """


class SimpleField(object):

    """Class-field with descriptor for DictEmbeddedDocument"""

    def __init__(self, default=None, required=False, choices=None,
                 link_cls=None, _type=None, **kwargs):

        """

        :param default: default value
        :param required: is field required
        :param choices: choices list. See utils.Choices
        :param link_cls: link to nested structure
        :param kwargs: for future options
        """
        self._name = None
        # For future static typing
        self.type = _type

        self.default = default
        self.required = required

        # TODO: support choices validation
        self.choices = choices

        self.link_cls = link_cls

    def __get__(self, instance, owner):
        return instance.__dict__.get(self._name, self.default)

    def __set__(self, instance, value):<commit_msg>code cleanup<commit_after># -*- coding: utf-8 -*-
""" Fields for DictEmbedded model """


class SimpleField(object):

    """Class-field with descriptor for DictEmbeddedDocument"""

    def __init__(self, default=None, required=False, choices=None, _type=None,
                 **kwargs):

        """

        :param default: default value
        :param required: is field required
        :param choices: choices list. See utils.Choices
        :param _type: type validation
        :param kwargs: for future options
        """
        self._name = None
        # For future static typing
        self.type = _type

        self.default = default
        self.required = required

        # TODO: support choices validation
        self.choices = choices

    def __get__(self, instance, owner):
        return instance.__dict__.get(self._name, self.default)

    def __set__(self, instance, value):
{'fraction_non_alphanumeric': 0.09850107066381156, 'fraction_numerical': 0.0010706638115631692, 'mean_word_length': 2.398181818181818, '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': '1422552', 'n_tokens_mistral': 503, 'n_tokens_neox': 479, 'n_words': 153}