<commit_before>
class Field(object):
    def __init__(self, validators=[], unique=False, index=False):
        self.validators = validators
        self.unique = unique
        self.index = index
        self.value = None

    def __str__(self):
        return self.value

    def __call__(self):
        return self.value

    def get(self):
        return self.__call__()

class StringField(Field):
    pass

class NumberField(Field):
    def __str__(self):
        return int(self.value)

    def __call__(self):
        return int(self.value)

    def get(self):
        return self.__call__()<commit_msg>Validating parameters are correct for Field<commit_after>
class Field(object):
    def __init__(self, validators=[], unique=False, index=False):
        assert type(validators) == list
        self.validators = validators
        self.unique = unique
        self.index = index
        self.value = None

    def __str__(self):
        return self.value

    def __call__(self):
        return self.value

    def get(self):
        return self.__call__()

class StringField(Field):
    pass

class NumberField(Field):
    def __str__(self):
        return int(self.value)

    def __call__(self):
        return int(self.value)

    def get(self):
        return self.__call__()
{'fraction_non_alphanumeric': 0.10093167701863354, 'fraction_numerical': 0.0, 'mean_word_length': 2.46505376344086, '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': '2303935', 'n_tokens_mistral': 377, 'n_tokens_neox': 366, 'n_words': 97}