<commit_before>##
# Copyright (c) 2008-2012 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##


from . import validator


class YamlValidationError(Exception):
    pass


class Base(validator.Schema):
    def get_import_context_class(self):
        pass

    @classmethod
    def get_module_class(cls):
        raise NotImplementedError


class ModuleSchemaBase(Base):
    @classmethod
    def get_implicit_imports(cls):
        return ()

    @classmethod
    def normalize_code(cls, module_data, imports):
        pass


class Schema(Base):<commit_msg>utils.lang.yaml.schema: Move common schema methods to Base schema<commit_after>##
# Copyright (c) 2008-2012 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##


from . import validator


class YamlValidationError(Exception):
    pass


class Base(validator.Schema):
    def get_import_context_class(self):
        pass

    @classmethod
    def get_module_class(cls):
        raise NotImplementedError

    @classmethod
    def get_implicit_imports(cls):
        return ()

    @classmethod
    def normalize_code(cls, module_data, imports):
        pass


class ModuleSchemaBase(Base):
    pass


class Schema(Base):
{'fraction_non_alphanumeric': 0.08623548922056384, 'fraction_numerical': 0.013266998341625208, 'mean_word_length': 3.326164874551971, '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': '4591949', 'n_tokens_mistral': 387, 'n_tokens_neox': 357, 'n_words': 93}