<commit_before><?php
class Vps_Component_Renderer_Mail extends Vps_Component_Renderer_Abstract
{
    const TYPE_HTML = 'html';
    const TYPE_TXT = 'txt';

    private $_type = self::TYPE_HTML;
    private $_recipient;
    private $_attachImages = false;

    public function setType($type = self::TYPE_HTML)
    {
        $this->_type = $type;
    }

    public function setRecipient(Vpc_Mail_Recipient_Interface $recipient = null)
    {
        $this->_recipient = $recipient;
    }

    protected function _executeOutputPlugin($plugin, $output)
    {
        return $plugin->processMailOutput($output, $this->_currentRecipient);
    }

    public function setAttachImages($attachImages)
    {
        $this->_attachImages = $attachImages;
    }

    protected function _formatOutputConfig($outputConfig, $component)
    {
        // Plugins
        if ($outputConfig['type'] == 'component') {
            $outputConfig['type'] = 'mail';
            $outputConfig['config'] = array($this->_type, $this->_recipient);
        }
        return $outputConfig;
    }

    protected function _getView()
    {
        $ret = new Vps_Component_View_Mail();
        $ret->setAttachImages($this->_attachImages);
        return $ret;
    }
}<commit_msg>Mails gehen jetzt wieder<commit_after><?php
class Vps_Component_Renderer_Mail extends Vps_Component_Renderer_Abstract
{
    const TYPE_HTML = 'html';
    const TYPE_TXT = 'txt';

    private $_type = self::TYPE_HTML;
    private $_recipient;
    private $_attachImages = false;

    public function setType($type = self::TYPE_HTML)
    {
        $this->_type = $type;
    }

    public function setRecipient(Vpc_Mail_Recipient_Interface $recipient = null)
    {
        $this->_recipient = $recipient;
    }

    protected function _executeOutputPlugin($plugin, $output)
    {
        return $plugin->processMailOutput($output, $this->_currentRecipient);
    }

    public function setAttachImages($attachImages)
    {
        $this->_attachImages = $attachImages;
    }

    protected function _getOutputConfig($type)
    {
        // Muss hier gemacht werden, da recipient in config
        $ret = array();
        if ($type == 'component') {
            $ret['type'] = 'mail';
            $ret['config'] = array($this->_type, $this->_recipient);
        }
        return $ret;
    }

    protected function _getView()
    {
        $ret = new Vps_Component_View_Mail();
        $ret->setAttachImages($this->_attachImages);
        return $ret;
    }
}
{'fraction_non_alphanumeric': 0.11929543634907927, 'fraction_numerical': 0.0, 'mean_word_length': 2.7921092564491654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '4204085', 'n_tokens_mistral': 752, 'n_tokens_neox': 722, 'n_words': 147}