<commit_before><?php
/**
 * MtMail - e-mail module for Zend Framework 2
 *
 * @link      http://github.com/mtymek/MtMail
 * @copyright Copyright (c) 2013-2014 <NAME>
 * @license   BSD 2-Clause
 */

namespace MtMail\Event;

use MtMail\Template\TemplateInterface;
use Zend\EventManager\Event;
use Zend\Mail\Message;
use Zend\View\Model\ViewModel;
use Zend\Mime\Message as MimeMessage;

class ComposerEvent extends Event
{
    /**#@+
     * Mail events
     */
    const EVENT_COMPOSE_PRE = 'compose.pre';
    const EVENT_COMPOSE_POST = 'compose.post';
    const EVENT_HEADERS_PRE = 'headers.pre';
    const EVENT_HEADERS_POST = 'headers.post';
    const EVENT_HTML_BODY_PRE = 'html_body.pre';
    const EVENT_HTML_BODY_POST = 'html_body.post';
    const EVENT_TEXT_BODY_PRE = 'text_body.pre';
    const EVENT_TEXT_BODY_POST = 'text_body.post';
    /**#@-*/

    /**
     * @var TemplateInterface
     */
    protected $template;

    /**
     * @var Message
     */
    protected $message;

    /**
     * @var MimeMessage
     */
    protected $body;

    /**
     * @var ViewModel
     */
    protected $viewModel;

    /**
     * @param  \Zend\Mail\Message $message
     * @return self
     */
    public function setMessage(Message $message)
    {
        $this->message = $message;

        return $this;
    }

    /**
     * @return \Zend\Mail\Message
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * @param  \Zend\View\Model\ViewModel $viewModel
     * @return self
     */
    public function setViewModel($viewModel)
    {
        $this->viewModel = $viewModel;

        return $this;
    }

    /**
     * @return \Zend\View\Model\ViewModel
     */
    public function getViewModel()<commit_msg>CS: depend on interface<commit_after><?php
/**
 * MtMail - e-mail module for Zend Framework 2
 *
 * @link      http://github.com/mtymek/MtMail
 * @copyright Copyright (c) 2013-2014 <NAME>
 * @license   BSD 2-Clause
 */

namespace MtMail\Event;

use MtMail\Template\TemplateInterface;
use Zend\EventManager\Event;
use Zend\Mail\Message;
use Zend\View\Model\ModelInterface;
use Zend\Mime\Message as MimeMessage;

class ComposerEvent extends Event
{
    /**#@+
     * Mail events
     */
    const EVENT_COMPOSE_PRE = 'compose.pre';
    const EVENT_COMPOSE_POST = 'compose.post';
    const EVENT_HEADERS_PRE = 'headers.pre';
    const EVENT_HEADERS_POST = 'headers.post';
    const EVENT_HTML_BODY_PRE = 'html_body.pre';
    const EVENT_HTML_BODY_POST = 'html_body.post';
    const EVENT_TEXT_BODY_PRE = 'text_body.pre';
    const EVENT_TEXT_BODY_POST = 'text_body.post';
    /**#@-*/

    /**
     * @var TemplateInterface
     */
    protected $template;

    /**
     * @var Message
     */
    protected $message;

    /**
     * @var MimeMessage
     */
    protected $body;

    /**
     * @var ModelInterface
     */
    protected $viewModel;

    /**
     * @param  \Zend\Mail\Message $message
     * @return self
     */
    public function setMessage(Message $message)
    {
        $this->message = $message;

        return $this;
    }

    /**
     * @return \Zend\Mail\Message
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * @param  ModelInterface $viewModel
     * @return self
     */
    public function setViewModel(ModelInterface $viewModel)
    {
        $this->viewModel = $viewModel;

        return $this;
    }

    /**
     * @return ModelInterface
     */
    public function getViewModel()
{'fraction_non_alphanumeric': 0.12752059074126668, 'fraction_numerical': 0.005680204487361545, 'mean_word_length': 2.307042253521127, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4872834', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1128, 'n_words': 233}