<commit_before><?php

namespace FluxBB\Actions;

use Illuminate\View\Factory;

abstract class Page extends Base
{
    protected $viewName = '';

    protected $view;


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

    protected function makeResponse()
    {
        return $this->view->make($this->viewName);
    }
}<commit_msg>Allow for data to be passed to the view.<commit_after><?php

namespace FluxBB\Actions;

use Illuminate\View\Factory;

abstract class Page extends Base
{
    /**
     * @var string
     */
    protected $viewName = '';

    /**
     * @var array
     */
    protected $data = [];

    /**
     * @var \Illuminate\View\Factory
     */
    protected $view;


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

    protected function makeResponse()
    {
        return $this->view->make($this->viewName, $this->data);
    }
}
{'fraction_non_alphanumeric': 0.13319011815252416, 'fraction_numerical': 0.0, 'mean_word_length': 2.3646209386281587, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7362444', 'n_tokens_mistral': 285, 'n_tokens_neox': 282, 'n_words': 67}