<commit_before><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @package Aura.Web_Kernel
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Web_Kernel;

use Aura\Web\Response;

/**
 *
 * An abstract web kernel action.
 *
 * You should probably *not* extend this for your own actions. Create your
 * own base action so that you can avoid a dependency on this package.
 *
 * @package Aura.Web_Kernel
 *
 */
abstract class AbstractResponder
{
    protected $data;

    /**
     *
     * A web response object.
     *
     * @var Response
     *
     */
    protected $response;

    /**
     *
     * Constructor.
     *
     * @param Request $request A web request object.
     *
     * @param Responder $responder A responder object.
     *
     */
    public function __construct(Response $response)
    {
        $this->response = $response;
    }

    public function setData(array $data)
    {
        $this->data = $data;
    }
}<commit_msg>update docblocks<commit_after><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @package Aura.Web_Kernel
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Web_Kernel;

use Aura\Web\Response;

/**
 *
 * An abstract web kernel action.
 *
 * You should probably *not* extend this for your own actions. Create your
 * own base action so that you can avoid a dependency on this package.
 *
 * @package Aura.Web_Kernel
 *
 */
abstract class AbstractResponder
{
    /**
     *
     * Data for building the response.
     *
     * @var array
     *
     */
    protected $data;

    /**
     *
     * A web response object.
     *
     * @var Response
     *
     */
    protected $response;

    /**
     *
     * Constructor.
     *
     * @param Request $request A web request object.
     *
     * @param Responder $responder A responder object.
     *
     */
    public function __construct(Response $response)
    {
        $this->response = $response;
    }

    /**
     *
     * Sets data for building the response.
     *
     * @param array $data Data for the response.
     *
     * @return null
     *
     */
    public function setData(array $data)
    {
        $this->data = $data;
    }

    /**
     *
     * Invokes the responder.
     *
     * @return null
     *
     */
    abstract public function __invoke();
}
{'fraction_non_alphanumeric': 0.11426153195090986, 'fraction_numerical': 0.0, 'mean_word_length': 1.951310861423221, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3918213', 'n_tokens_mistral': 735, 'n_tokens_neox': 722, 'n_words': 210}