<commit_before>from .utils.shims import PluginShim
from .streams import NullStream
from .reports import FailureReport


# Plugin interface methods
# https://nose.readthedocs.org/en/latest/plugins/interface.html
class PluginBase(PluginShim):

    score = 199
    name = 'nosepride'
    stream = None
    result = None
    enabled = True
    running_test = False
    failure_report = None
    failed_expectations = []
    expectation_iterator = None

    def options(self, parser, env):
        parser.add_option(
            "--fabulous-off",
            action="store_false",
            default=True,
            dest="disabled",
            help="disable colour output"
        )

    def failure(self, string):
        raise NotImplementedError(
            "Please provide implementation for failure"
        )<commit_msg>turns out attributes declared on class behave like singletons<commit_after>from .utils.shims import PluginShim
from .streams import NullStream
from .reports import FailureReport


# Plugin interface methods
# https://nose.readthedocs.org/en/latest/plugins/interface.html
class PluginBase(PluginShim):

    score = 199
    name = 'nosepride'
    enabled = True

    def __init__(self):
        super(PluginBase, self).__init__()
        self.stream = None
        self.result = None
        self.failure_report = None
        self.expectation_iterator = None
        self.running_test = False
        self.failed_expectations = []

    def options(self, parser, env):
        parser.add_option(
            "--fabulous-off",
            action="store_false",
            default=True,
            dest="disabled",
            help="disable colour output"
        )

    def failure(self, string):
        raise NotImplementedError(
            "Please provide implementation for failure"
        )
{'fraction_non_alphanumeric': 0.08507135016465422, 'fraction_numerical': 0.003293084522502744, 'mean_word_length': 2.3947858472998136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6396991', 'n_tokens_mistral': 507, 'n_tokens_neox': 474, 'n_words': 126}