<commit_before><?php
namespace Concrete\Controller\Panel;

use BlockType;
use BlockTypeList;
use Concrete\Controller\Backend\UserInterface\Page as BackendInterfacePageController;
use Concrete\Core\Http\Request;
use Concrete\Core\Page\Stack\Pile\Pile;
use StackList;

class Add extends BackendInterfacePageController
{
    protected $viewPath = '/panels/add';
    protected $pagetypes = array();

    public function view()
    {
        $btl = new BlockTypeList();
        $blockTypes = $btl->get();
        $dsh = $this->app->make('helper/concrete/dashboard');
        $dashboardBlockTypes = array();
        if ($dsh->inDashboard()) {
            $dashboardBlockTypes = BlockTypeList::getDashboardBlockTypes();
        }
        $blockTypes = array_merge($blockTypes, $dashboardBlockTypes);
        if ($this->page->isMasterCollection()) {
            $bt = BlockType::getByHandle(BLOCK_HANDLE_PAGE_TYPE_OUTPUT_PROXY);
            $blockTypes[] = $bt;
        }
        $request = Request::getInstance();
        $requestTab = $request->get('tab');

        $session = $this->app->make('session');
        if ($requestTab) {<commit_msg>remove Request object, already in the controller<commit_after><?php
namespace Concrete\Controller\Panel;

use BlockType;
use BlockTypeList;
use Concrete\Controller\Backend\UserInterface\Page as BackendInterfacePageController;
use Concrete\Core\Page\Stack\Pile\Pile;
use StackList;

class Add extends BackendInterfacePageController
{
    protected $viewPath = '/panels/add';
    protected $pagetypes = array();

    public function view()
    {
        $btl = new BlockTypeList();
        $blockTypes = $btl->get();
        $dsh = $this->app->make('helper/concrete/dashboard');
        $dashboardBlockTypes = array();
        if ($dsh->inDashboard()) {
            $dashboardBlockTypes = BlockTypeList::getDashboardBlockTypes();
        }
        $blockTypes = array_merge($blockTypes, $dashboardBlockTypes);
        if ($this->page->isMasterCollection()) {
            $bt = BlockType::getByHandle(BLOCK_HANDLE_PAGE_TYPE_OUTPUT_PROXY);
            $blockTypes[] = $bt;
        }

        $requestTab = $this->request('tab');
        $session = $this->app->make('session');
        if ($requestTab) {
{'fraction_non_alphanumeric': 0.13410818059901655, 'fraction_numerical': 0.0, 'mean_word_length': 3.2791586998087956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '4137973', 'n_tokens_mistral': 640, 'n_tokens_neox': 653, 'n_words': 122}