<commit_before>"""Middleware classes to process messages on their way in and out of workers.
"""

from vumi.middleware.base import (
    BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
    MiddlewareStack, create_middlewares_from_config,
    setup_middlewares_from_config)

from vumi.middleware.logging import LoggingMiddleware
from vumi.middleware.tagger import TaggingMiddleware
from vumi.middleware.message_storing import StoringMiddleware
from vumi.middleware.address_translator import AddressTranslationMiddleware

__all__ = [
    'BaseMiddleware', 'TransportMiddleware', 'ApplicationMiddleware',
    'MiddlewareStack', 'create_middlewares_from_config',
    'setup_middlewares_from_config',
    'LoggingMiddleware', 'TaggingMiddleware', 'StoringMiddleware',
    'AddressTranslationMiddleware']<commit_msg>Remove package-level imports of middleware classes. This will break some configs, but they should never have been there in the first place.<commit_after>"""Middleware classes to process messages on their way in and out of workers.
"""

from vumi.middleware.base import (
    BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
    MiddlewareStack, create_middlewares_from_config,
    setup_middlewares_from_config)

__all__ = [
    'BaseMiddleware', 'TransportMiddleware', 'ApplicationMiddleware',
    'MiddlewareStack', 'create_middlewares_from_config',
    'setup_middlewares_from_config']
{'fraction_non_alphanumeric': 0.07178043631245602, 'fraction_numerical': 0.0, 'mean_word_length': 6.728260869565218, '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': '3716142', 'n_tokens_mistral': 366, 'n_tokens_neox': 391, 'n_words': 98}