<commit_before><?php

namespace Omnipay\Gate2shop;

use Omnipay\Common\AbstractGateway;
use Omnipay\Gate2shop\Message\PurchaseRequest;
use Omnipay\Gate2shop\Message\CompletePurchaseRequest;

/**
 * Gate2shop Gateway
 *
 * @link
 */
class Gateway extends AbstractGateway
{
    public function getName()
    {
        return 'Gate2shop';
    }

    public function getDefaultParameters()
    {
        return array(
            'merchantSiteId' => '',
            'merchantId'     => '',
            'secretKey'      => ''
        );
    }

    public function getMerchantSiteId()
    {
        return $this->getParameter('merchantSiteId');
    }

    public function setMerchantSiteId($value)
    {
        return $this->setParameter('merchantSiteId', $value);
    }

    public function getMerchantId()
    {
        return $this->getParameter('merchantId');
    }

    public function setMerchantId($value)
    {
        return $this->setParameter('merchantId', $value);
    }

    public function getSecretKey()
    {
        return $this->getParameter('secretKey');
    }

    public function setSecretKey($value)
    {
        return $this->setParameter('secretKey', $value);
    }

    public function purchase(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Gate2shop\Message\PurchaseRequest', $parameters);
    }

    public function completePurchase(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Gate2shop\Message\CompletePurchaseRequest', $parameters);
    }
}<commit_msg>Support gateway initialisation of the custom site name. Also remove references to the unused (and unnecessary?) CompletePurchaseRequest.<commit_after><?php

namespace Omnipay\Gate2shop;

use Omnipay\Common\AbstractGateway;
use Omnipay\Gate2shop\Message\PurchaseRequest;

/**
 * Gate2shop Gateway
 *
 * @link
 */
class Gateway extends AbstractGateway
{
    public function getName()
    {
        return 'Gate2shop';
    }

    public function getDefaultParameters()
    {
        return array(
            'merchantSiteId' => '',
            'merchantId'     => '',
            'secretKey'      => '',
            'customSiteName' => ''
        );
    }

    public function getMerchantSiteId()
    {
        return $this->getParameter('merchantSiteId');
    }

    public function setMerchantSiteId($value)
    {
        return $this->setParameter('merchantSiteId', $value);
    }

    public function getMerchantId()
    {
        return $this->getParameter('merchantId');
    }

    public function setMerchantId($value)
    {
        return $this->setParameter('merchantId', $value);
    }

    public function getSecretKey()
    {
        return $this->getParameter('secretKey');
    }

    public function setSecretKey($value)
    {
        return $this->setParameter('secretKey', $value);
    }

    public function getCustomSiteName()
    {
        return $this->getParameter('customSiteName');
    }

    public function setCustomSiteName($value)
    {
        return $this->setParameter('customSiteName', $value);
    }

    public function purchase(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Gate2shop\Message\PurchaseRequest', $parameters);
    }
}
{'fraction_non_alphanumeric': 0.11980289497998152, 'fraction_numerical': 0.0036957191253464737, 'mean_word_length': 2.7376294591484465, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '1344681', 'n_tokens_mistral': 940, 'n_tokens_neox': 925, 'n_words': 174}