<commit_before><?php

/*
 * This file is part of the Omnipay package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Omnipay\Common;

/**
 * Base Response class
 */
abstract class AbstractResponse implements ResponseInterface
{
    protected $data;

    abstract public function isSuccessful();

    public function isRedirect()
    {
        return false;
    }

    public function getData()
    {
        return $this->data;
    }

    public function getMessage()
    {
        return null;
    }

    public function getGatewayReference()
    {
        return null;
    }<commit_msg>Add default constructor to AbstractResponse<commit_after><?php

/*
 * This file is part of the Omnipay package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Omnipay\Common;

/**
 * Base Response class
 */
abstract class AbstractResponse implements ResponseInterface
{
    protected $data;

    public function __construct($data)
    {
        $this->data = $data;
    }

    abstract public function isSuccessful();

    public function isRedirect()
    {
        return false;
    }

    public function getData()
    {
        return $this->data;
    }

    public function getMessage()
    {
        return null;
    }

    public function getGatewayReference()
    {
        return null;
    }
{'fraction_non_alphanumeric': 0.08913467794404685, 'fraction_numerical': 0.0, 'mean_word_length': 2.551963048498845, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '4809862', 'n_tokens_mistral': 422, 'n_tokens_neox': 413, 'n_words': 143}