<commit_before>"""
sentry.processors.base
~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from sentry.conf import settings
from sentry.utils import InstanceManager

__all__ = ('Processors',)


class Processor(object):
    conditions = {}

    def post_processing(self, event):
        """
        Called every time an event is created
        """
        return

    objects = InstanceManager(settings.PROCESSORS)


def post_save_processors(sender, **kwargs):
    for processor in Processor.objects.all():
        processor.post_processing(sender)<commit_msg>Bad import name<commit_after>"""
sentry.processors.base
~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from sentry.conf import settings
from sentry.utils import InstanceManager

__all__ = ('Processor',)


class Processor(object):
    conditions = {}

    def post_processing(self, event):
        """
        Called every time an event is created
        """
        return

    handlers = InstanceManager(settings.PROCESSORS)


def post_save_processors(sender, **kwargs):
    for processor in Processor.handlers.all():
        processor.post_processing(sender)
{'fraction_non_alphanumeric': 0.12947448591012947, 'fraction_numerical': 0.006092916984006093, 'mean_word_length': 3.7781818181818183, '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': '3363544', 'n_tokens_mistral': 378, 'n_tokens_neox': 362, 'n_words': 111}