<commit_before>class Queue(object):
    """The queue for the plugins both the pub and sub

    """
    def __init__(self):
        self._subqueue = {"start": []}
        self._pubqueue = {}

    def add_sub(self, sub, task):
        if sub in self._subqueue:
            self._subqueue[sub].append(task)
        else:
            self._subqueue[sub] = [task]

    def get_sub(self, sub):
        if sub in self._subqueue:
            return self._subqueue[sub]
        else:
            return []

    def get_all_sub(self):
        return self._subqueue

    def add_pub(self, sub, pub, task):
        if sub in self._pubqueue:
            if pub in self._pubqueue[sub]:
                self._pubqueue[sub][pub].append(task)
            else:
                self._pubqueue[sub][pub] = [task]
        else:
            self._pubqueue[sub] = {}
            self._pubqueue[sub][pub] = [task]

    def get_pub(self, sub, pub):
        if sub in self._pubqueue and pub in self._pubqueue[sub]:<commit_msg>Working on the doc<commit_after>class Queue(object):
    """The queue for the plugins both the pub and sub

    """
    def __init__(self):
        self._subqueue = {"start": []}
        self._pubqueue = {}

    def add_sub(self, sub, task):
        """Adds a plugin name and task to the sub queue

        @param sub The name of the plugin
        """
        if sub in self._subqueue:
            self._subqueue[sub].append(task)
        else:
            self._subqueue[sub] = [task]

    def get_sub(self, sub):
        if sub in self._subqueue:
            return self._subqueue[sub]
        else:
            return []

    def get_all_sub(self):
        return self._subqueue

    def add_pub(self, sub, pub, task):
        if sub in self._pubqueue:
            if pub in self._pubqueue[sub]:
                self._pubqueue[sub][pub].append(task)
            else:
                self._pubqueue[sub][pub] = [task]
        else:
            self._pubqueue[sub] = {}
            self._pubqueue[sub][pub] = [task]

    def get_pub(self, sub, pub):
        if sub in self._pubqueue and pub in self._pubqueue[sub]:
{'fraction_non_alphanumeric': 0.11473087818696884, 'fraction_numerical': 0.0, 'mean_word_length': 1.829105473965287, 'pattern_counts': {'":': 2, '<': 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': '4699199', 'n_tokens_mistral': 651, 'n_tokens_neox': 632, 'n_words': 173}