<commit_before><?php
class Vpc_Newsletter_Detail_MailingController extends Vps_Controller_Action_Auto_Grid
{
    protected $_buttons = array('delete', 'deleteAll');
    protected $_defaultOrder = 'id';
    protected $_paging = 20;
    protected $_modelName = 'Vpc_Newsletter_QueueModel';
    protected $_queryFields = array('searchtext');

    public function preDispatch()
    {
        $this->_editDialog = array(
            'type' => 'Vpc.Mail.PreviewWindow',
            'controllerUrl' => Vpc_Admin::getInstance($this->_getParam('class'))->getControllerUrl('Preview'),
            'baseParams' => array(
                'componentId' => $this->_getParam('componentId')
            ),
            'width' => 500,
            'height' => 400
        );
        parent::preDispatch();
    }

    protected function _initColumns()
    {
        parent::_initColumns();

        $this->_filters['text'] = array(
            'type'=>'TextField',
            'width' => 85
        );

        $this->_columns->add(new Vps_Grid_Column('gender', trlVps('Gender'), 80))
            ->setData(new Vpc_Newsletter_Detail_UserData('gender'))
            ->setRenderer('genderIcon');
        $this->_columns->add(new Vps_Grid_Column('title', trlVps('Title'), 80))
            ->setData(new Vpc_Newsletter_Detail_UserData('title'));
        $this->_columns->add(new Vps_Grid_Column('firstname', trlVps('Firstname'), 140))
            ->setData(new Vpc_Newsletter_Detail_UserData('firstname'));
        $this->_columns->add(new Vps_Grid_Column('lastname', trlVps('Lastname'), 140))
            ->setData(new Vpc_Newsletter_Detail_UserData('lastname'));
        $this->_columns->add(new Vps_Grid_Column('email', trlVps('E-Mail'), 200))
            ->setData(new Vpc_Newsletter_Detail_UserData('email'));
        $this->_columns->add(new Vps_Grid_Column('format', trlVps('Format'), 60))
            ->setData(new Vpc_Newsletter_Detail_UserData('format'));
        $this->_columns->add(new Vps_Grid_Column('status', trlVps('Status'), 60));
        $this->_columns->add(new Vps_Grid_Column('sent_date', trlVps('Date Sent'), 120));
        $this->_columns->add(new Vps_Grid_Column_Button('show'))
            ->setButtonIcon(new Vps_Asset('email_open.png'));
    }

    protected function _getSelect()
    {
        $select = parent::_getSelect();
        $select->whereEquals('newsletter_id', $this->_getNewsletterRow()->id);<commit_msg>Newsletter an geändertes Recipient-Interface angepasst<commit_after><?php
class Vpc_Newsletter_Detail_MailingController extends Vps_Controller_Action_Auto_Grid
{
    protected $_buttons = array('delete', 'deleteAll');
    protected $_defaultOrder = 'id';
    protected $_paging = 20;
    protected $_modelName = 'Vpc_Newsletter_QueueModel';
    protected $_queryFields = array('searchtext');

    public function preDispatch()
    {
        $this->_editDialog = array(
            'type' => 'Vpc.Mail.PreviewWindow',
            'controllerUrl' => Vpc_Admin::getInstance($this->_getParam('class'))->getControllerUrl('Preview'),
            'baseParams' => array(
                'componentId' => $this->_getParam('componentId')
            ),
            'width' => 500,
            'height' => 400
        );
        parent::preDispatch();
    }

    protected function _initColumns()
    {
        parent::_initColumns();

        $this->_filters['text'] = array(
            'type'=>'TextField',
            'width' => 85
        );

        $this->_columns->add(new Vps_Grid_Column('firstname', trlVps('Firstname'), 140))
            ->setData(new Vpc_Newsletter_Detail_UserData('firstname'));
        $this->_columns->add(new Vps_Grid_Column('lastname', trlVps('Lastname'), 140))
            ->setData(new Vpc_Newsletter_Detail_UserData('lastname'));
        $this->_columns->add(new Vps_Grid_Column('email', trlVps('E-Mail'), 200))
            ->setData(new Vpc_Newsletter_Detail_UserData('email'));
        $this->_columns->add(new Vps_Grid_Column('format', trlVps('Format'), 60))
            ->setData(new Vpc_Newsletter_Detail_UserData('format'));
        $this->_columns->add(new Vps_Grid_Column('status', trlVps('Status'), 60));
        $this->_columns->add(new Vps_Grid_Column('sent_date', trlVps('Date Sent'), 120));
        $this->_columns->add(new Vps_Grid_Column_Button('show'))
            ->setButtonIcon(new Vps_Asset('email_open.png'));
    }

    protected function _getSelect()
    {
        $select = parent::_getSelect();
        $select->whereEquals('newsletter_id', $this->_getNewsletterRow()->id);
{'fraction_non_alphanumeric': 0.15772107347118347, 'fraction_numerical': 0.012318521777386713, 'mean_word_length': 3.25749063670412, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 80, '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': '3389473', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1345, 'n_words': 200}