<commit_before># -*- coding: utf-8 -*-
from abc import ABCMeta, abstractmethod

class Interface(object):
    __meta__ = ABCMeta


# class IConsumer(Interface):
#     """A consumer consumes steps in a stack to find an object.
#     """

#     @abstractmethod
#     def __call__(self, obj, stack, lookup):
#         """Returns a boolean meaning that some stack has been consumed,
#         an object and the rest of unconsumed stack
#         """


class ConfigError(Exception):
    """Raised when configuration is bad
    """


class ResolveError(Exception):
    """Raised when path cannot be resolved
    """


class ModelError(ResolveError):
    """Raised when a model cannot be resolved
    """


class ResourceError(ResolveError):
    """Raised when a resource cannot be resolved
    """<commit_msg>Interface base class not needed anymore now.<commit_after># -*- coding: utf-8 -*-

# class IConsumer(Interface):
#     """A consumer consumes steps in a stack to find an object.
#     """

#     @abstractmethod
#     def __call__(self, obj, stack, lookup):
#         """Returns a boolean meaning that some stack has been consumed,
#         an object and the rest of unconsumed stack
#         """


class ConfigError(Exception):
    """Raised when configuration is bad
    """


class ResolveError(Exception):
    """Raised when path cannot be resolved
    """


class ModelError(ResolveError):
    """Raised when a model cannot be resolved
    """


class ResourceError(ResolveError):
    """Raised when a resource cannot be resolved
    """
{'fraction_non_alphanumeric': 0.10744336569579288, 'fraction_numerical': 0.0012944983818770227, 'mean_word_length': 3.1117021276595747, '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': '7112636', 'n_tokens_mistral': 425, 'n_tokens_neox': 413, 'n_words': 167}