<commit_before><?php
require_once 'Dotdigitalgroup' . DS . 'Email' . DS . 'controllers' . DS
    . 'ResponseController.php';

class Dotdigitalgroup_Email_EmailController
    extends Dotdigitalgroup_Email_ResponseController
{

    /**
     * @var $_quote Mage_Sales_Model_Quote
     */
    protected $_quote;

    /**
     * wishlist
     */
    public function wishlistAction()
    {
        //authenticate
        $this->authenticate();
        $this->loadLayout();
        $wishlist = $this->getLayout()->createBlock(
            'ddg_automation/wishlist', 'connector_wishlist', array(
                'template' => 'connector/wishlist.phtml'
            )
        );
        $this->getLayout()->getBlock('content')->append($wishlist);
        $this->renderLayout();
        $this->checkContentNotEmpty($wishlist->toHtml(), false);
    }

    /**
     * Generate coupon for a coupon code id.
     */
    public function couponAction()
    {
        $this->authenticate();
        $this->loadLayout();
        //page root template
        if ($root = $this->getLayout()->getBlock('root')) {
            $root->setTemplate('page/blank.phtml');
        }
        //content template
        $coupon = $this->getLayout()->createBlock(
            'ddg_automation/coupon', 'connector_coupon', array(
                'template' => 'connector/coupon.phtml'
            )
        );
        $this->checkContentNotEmpty($coupon->toHtml(), false);
        $this->getLayout()->getBlock('content')->append($coupon);
        $this->renderLayout();
    }

    /**
     * Basket page to display the user items with specific email.
     */
    public function basketAction()
    {
        //authenticate
        $this->authenticate();
        $this->loadLayout();<commit_msg>cherry pick - double coupon code created<commit_after><?php
require_once 'Dotdigitalgroup' . DS . 'Email' . DS . 'controllers' . DS
    . 'ResponseController.php';

class Dotdigitalgroup_Email_EmailController
    extends Dotdigitalgroup_Email_ResponseController
{

    /**
     * @var $_quote Mage_Sales_Model_Quote
     */
    protected $_quote;

    /**
     * wishlist
     */
    public function wishlistAction()
    {
        //authenticate
        $this->authenticate();
        $this->loadLayout();
        $wishlist = $this->getLayout()->createBlock(
            'ddg_automation/wishlist', 'connector_wishlist', array(
                'template' => 'connector/wishlist.phtml'
            )
        );
        $this->getLayout()->getBlock('content')->append($wishlist);
        $this->renderLayout();
        $this->checkContentNotEmpty($wishlist->toHtml(), false);
    }

    /**
     * Generate coupon for a coupon code id.
     */
    public function couponAction()
    {
        $this->authenticate();
        $this->loadLayout();
        //page root template
        if ($root = $this->getLayout()->getBlock('root')) {
            $root->setTemplate('page/blank.phtml');
        }
        //content template
        $coupon = $this->getLayout()->createBlock(
            'ddg_automation/coupon', 'connector_coupon', array(
                'template' => 'connector/coupon.phtml'
            )
        );
        $this->getLayout()->getBlock('content')->append($coupon);
        $this->renderLayout();
        $this->checkContentNotEmpty($this->getLayout()->getOutput(), false);
    }

    /**
     * Basket page to display the user items with specific email.
     */
    public function basketAction()
    {
        //authenticate
        $this->authenticate();
        $this->loadLayout();
{'fraction_non_alphanumeric': 0.14855377702892447, 'fraction_numerical': 0.0, 'mean_word_length': 2.2177055103884373, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 58, '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': '3433003', 'n_tokens_mistral': 1031, 'n_tokens_neox': 1002, 'n_words': 172}