<commit_before><?php

namespace Nohex\Eix\Services\Net\Mail;

use Nohex\Eix\Core\Application;

/**
 * Mail message abstraction.
 */
class Message
{
    private $sender;
    private $recipients = array();
    private $attachments = array();
    private $body;
    private $contentType = 'text/plain';
    private $hasAttachments = false;
    public $subject;
    public $charset = 'us-ascii';

    public function setSender($address, $name = null)
    {
        $this->sender = new Address($address, $name);
    }

    public function getSender()
    {
        return $this->sender;
    }

    public function addRecipient($address, $name = null, $type = "to")
    {
        if (!$this->getRecipient($address)) {
            $this->recipients[$address] = new Recipient($type, $address, $name);<commit_msg>Fix default mail message encoding.<commit_after><?php

namespace Nohex\Eix\Services\Net\Mail;

use Nohex\Eix\Core\Application;

/**
 * Mail message abstraction.
 */
class Message
{
    private $sender;
    private $recipients = array();
    private $attachments = array();
    private $body;
    private $contentType = 'text/plain';
    private $hasAttachments = false;
    public $subject;
    public $charset = 'utf-8';

    public function setSender($address, $name = null)
    {
        $this->sender = new Address($address, $name);
    }

    public function getSender()
    {
        return $this->sender;
    }

    public function addRecipient($address, $name = null, $type = "to")
    {
        if (!$this->getRecipient($address)) {
            $this->recipients[$address] = new Recipient($type, $address, $name);
{'fraction_non_alphanumeric': 0.14329643296432965, 'fraction_numerical': 0.0006150061500615006, 'mean_word_length': 2.9682926829268292, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '411035', 'n_tokens_mistral': 506, 'n_tokens_neox': 488, 'n_words': 121}