<commit_before>from carrot.objects import DefaultMessageSerializer


class MessageSerializer(DefaultMessageSerializer):
    failing_method = 'serialize_arguments'

    def serialize_arguments(self, body):
        if self.failing_method == 'serialize_arguments':
            raise AttributeError('test error message')
        super(MessageSerializer, self).serialize_arguments(body)

    def get_task(self, properties, body):
        if self.failing_method == 'get_task':
            raise AttributeError('test error message')
        super(MessageSerializer, self).get_task(properties, body)


class IoLoop(object):
    def stop(self):
        pass

    def start(self):
        pass


class Channel(object):
    def __init__(self, *args, **kwargs):
        pass

    def queue_purge(self):
        return

    def add_on_close_callback(self):<commit_msg>- adding validation on create_scheduled_task - adding purge button<commit_after>from carrot.objects import DefaultMessageSerializer


class MessageSerializer(DefaultMessageSerializer):
    failing_method = 'serialize_arguments'

    def serialize_arguments(self, body):
        if self.failing_method == 'serialize_arguments':
            raise AttributeError('test error message')
        super(MessageSerializer, self).serialize_arguments(body)

    def get_task(self, properties, body):
        if self.failing_method == 'get_task':
            raise AttributeError('test error message')
        super(MessageSerializer, self).get_task(properties, body)


class IoLoop(object):
    def stop(self):
        pass

    def start(self):
        pass


class Channel(object):
    def __init__(self, *args, **kwargs):
        pass

    def queue_purge(self, queue=''):
        return

    def add_on_close_callback(self):
{'fraction_non_alphanumeric': 0.09137055837563451, 'fraction_numerical': 0.0, 'mean_word_length': 3.4797979797979797, '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': '2589172', 'n_tokens_mistral': 480, 'n_tokens_neox': 461, 'n_words': 115}