<commit_before><?php

namespace Tools\Mailer;

use Cake\Core\Configure;
use Cake\I18n\I18n;
use Cake\Mailer\Mailer as CakeMailer;

/**
 * Allows locale overwrite to send emails in a specific language
 *
 * @method string addEmbeddedAttachment(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedBlobAttachment(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedAttachmentByContentId(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedBlobAttachmentByContentId(string $file, ?string $name = null, array $options = [])
 */
class Mailer extends CakeMailer {

	/**
	 * Message class name.
	 *
	 * @var string
	 * @psalm-var class-string<\Cake\Mailer\Message>
	 */
	protected $messageClass = Message::class;

	/**
	 * @var string|null
	 */
	protected $locale;

	/**
	 * @var string
	 */
	protected $localeBefore;

	/**
	 * @var array
	 */
	protected $debug = [];
<commit_msg>Set debug transport by default in test mode.<commit_after><?php

namespace Tools\Mailer;

use Cake\Core\Configure;
use Cake\I18n\I18n;
use Cake\Mailer\Mailer as CakeMailer;

/**
 * Allows locale overwrite to send emails in a specific language
 *
 * @method string addEmbeddedAttachment(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedBlobAttachment(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedAttachmentByContentId(string $file, ?string $name = null, array $options = [])
 * @method string addEmbeddedBlobAttachmentByContentId(string $file, ?string $name = null, array $options = [])
 */
class Mailer extends CakeMailer {

	/**
	 * Message class name.
	 *
	 * @var string
	 * @psalm-var class-string<\Cake\Mailer\Message>
	 */
	protected $messageClass = Message::class;

	/**
	 * @var string|null
	 */
	protected $locale;

	/**
	 * @var string
	 */
	protected $localeBefore;

	/**
	 * @var array
	 */
	protected $debug = [];

	/**
	 * @param array|string|null $config Array of configs, or string to load configs from app.php
	 */
	public function __construct($config = null) {
		if ($config === null && Configure::read('Config.live') === false) {
			$config = 'test';
		}

		parent::__construct($config);
	}

{'fraction_non_alphanumeric': 0.14146772767462423, 'fraction_numerical': 0.0035366931918656055, 'mean_word_length': 4.073991031390134, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3355508', 'n_tokens_mistral': 758, 'n_tokens_neox': 702, 'n_words': 198}