<commit_before># -*- coding: utf-8 -*-

from DebianChangesBot import MailParser
from DebianChangesBot.messages import AcceptedUploadMessage

class AcceptedUploadParser(MailParser):

    @staticmethod
    def parse(headers, body):
        msg = AcceptedUploadMessage()

        mapping = {
            'Source': 'package',
            'Version': 'version',
            'Distribution': 'distribution',
            'Urgency': 'urgency',<commit_msg>Check accepted uploads List-Id, otherwise we get false +ves from bugs-dist<commit_after># -*- coding: utf-8 -*-

from DebianChangesBot import MailParser
from DebianChangesBot.messages import AcceptedUploadMessage

class AcceptedUploadParser(MailParser):

    @staticmethod
    def parse(headers, body):
        if headers.get('List-Id', '') != '<debian-devel-changes.lists.debian.org>':
            return

        msg = AcceptedUploadMessage()

        mapping = {
            'Source': 'package',
            'Version': 'version',
            'Distribution': 'distribution',
            'Urgency': 'urgency',
{'fraction_non_alphanumeric': 0.11848341232227488, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 2.84, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3946529', 'n_tokens_mistral': 286, 'n_tokens_neox': 269, 'n_words': 69}