<commit_before>from rapidsms.backends.base import BackendBase

from threadless_router.backends.httptester.storage import store_message


class HttpTesterCacheBackend(BackendBase):
    """ Simple backend that stores messages in a cache """

    def send(self, msg):
        store_message('out', msg.connection.identity, msg.text)<commit_msg>Override BackendBase.start in HttpTester.<commit_after>from rapidsms.backends.base import BackendBase

from threadless_router.backends.httptester.storage import store_message


class HttpTesterCacheBackend(BackendBase):
    """ Simple backend that stores messages in a cache """

    def send(self, msg):
        store_message('out', msg.connection.identity, msg.text)

    def start(self):
        """ Override BackendBase.start(), which never returns """
        self._running = True
{'fraction_non_alphanumeric': 0.09333333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 4.619047619047619, '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': '3514255', 'n_tokens_mistral': 228, 'n_tokens_neox': 225, 'n_words': 59}