<commit_before># encoding: utf-8

"""MIME-encoded electronic mail message classes."""

from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.nonmultipart import MIMENonMultipart
from email.header import Header
from email.utils import make_msgid, formatdate
from mimetypes import guess_type
from datetime import datetime
import imghdr
import logging
import os
import time
import warnings

from marrow.mailer.address import Address, AddressList, AutoConverter
from marrow.util.compat import basestring

__all__ = ['Message']


log = logging.getLogger(__name__)


class Message(object):
    """Represents an e-mail message."""

    def __init__(self, author=None, to=None, subject=None, **kw):
        """Instantiate a new Message object.

        No arguments are required, as everything can be set using class
        properties.  Alternatively, __everything__ can be set using the
        constructor, using named arguments.  The first three positional
        arguments can be used to quickly prepare a simple message.
        """
        self.sender = kw.pop('sender', None)
        self.author = kw.pop('author', None)
        self.to = kw.pop('to', None)
        self.cc = kw.pop('cc', None)
        self.bcc = kw.pop('bcc', None)
        self.reply = kw.pop('reply', None)
        self.notify = kw.pop('disposition', None)

        self.subject = kw.pop('subject', None)
        self.date = kw.pop('date', None)

        self.encoding = kw.pop('encoding', 'utf-8')

        self.organization = kw.pop('organization')
        self.priority = kw.pop('priority')
<commit_msg>Removed the logging import since it's no longer used here<commit_after># encoding: utf-8

"""MIME-encoded electronic mail message classes."""

from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.nonmultipart import MIMENonMultipart
from email.header import Header
from email.utils import make_msgid, formatdate
from mimetypes import guess_type
from datetime import datetime
import imghdr
import os
import time
import warnings

from marrow.mailer.address import Address, AddressList, AutoConverter
from marrow.util.compat import basestring

__all__ = ['Message']


class Message(object):
    """Represents an e-mail message."""

    def __init__(self, author=None, to=None, subject=None, **kw):
        """Instantiate a new Message object.

        No arguments are required, as everything can be set using class
        properties.  Alternatively, __everything__ can be set using the
        constructor, using named arguments.  The first three positional
        arguments can be used to quickly prepare a simple message.
        """
        self.sender = kw.pop('sender', None)
        self.author = kw.pop('author', None)
        self.to = kw.pop('to', None)
        self.cc = kw.pop('cc', None)
        self.bcc = kw.pop('bcc', None)
        self.reply = kw.pop('reply', None)
        self.notify = kw.pop('disposition', None)

        self.subject = kw.pop('subject', None)
        self.date = kw.pop('date', None)

        self.encoding = kw.pop('encoding', 'utf-8')

        self.organization = kw.pop('organization')
        self.priority = kw.pop('priority')

{'fraction_non_alphanumeric': 0.10466193269527632, 'fraction_numerical': 0.001234949058351343, 'mean_word_length': 3.2744063324538257, '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': '481811', 'n_tokens_mistral': 926, 'n_tokens_neox': 893, 'n_words': 303}