<commit_before><?php

namespace Admin\Action;

use Admin\Library\MenuLibrary;
use App\Action\AppAction;
use Twig\Library\Helper as TwigHelper;

/**
 * Index Action
 *
 * @package Admin\Action
 */
class IndexAction extends AppAction
{
    public function __invoke()
    {
        TwigHelper::addCss('file:///Admin/vendor/bootstrap/dist/css/bootstrap.min.css');
        TwigHelper::addCss('file:///Admin/vendor/font-awesome/css/font-awesome.min.css');
        TwigHelper::addCss('file:////code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css');
        TwigHelper::addCss('file:///Admin/css/AdminLTE.min.css', 10);
        TwigHelper::addCss('file:///Admin/css/skins/skin-blue.min.css', 20);

        TwigHelper::addJs('file:////oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js');
        TwigHelper::addJs('file:////oss.maxcdn.com/respond/1.4.2/respond.min.js', 10);
        TwigHelper::addJs('file:///Admin/vendor/jquery/dist/jquery.min.js', 20);
        TwigHelper::addJs('file:///Admin/vendor/bootstrap/dist/js/bootstrap.min.js', 30);
        TwigHelper::addJs('file:///Admin/js/app.min.js', 40);

        $template = 'dashboard';
        $args = func_get_args();
var_dump($args);die;
        TwigHelper::addMasterTwig('@Admin/master.twig');

        /** @var \Twig_Environment $twig */
        $twig = $this->getContainer()->get('twig');
        $twig->addGlobal('menu', MenuLibrary::generate());

        // remove admin from args
        array_shift($args);

        if ($args[0] == 'bundles') {
            $this->getRouter()->setPrefix(['admin', 'bundles']);

            array_shift($args);
            $args = implode('/', $args);
            $response = $this->forward($args, $this->getRequest()->getMethod());

            $this->getResponder()->setData('response', $response);
        } else {
            if ($args) {
                $template = implode('/', $args);
            }
        }

        $this->getResponder()->setData('template', $template);
    }
}<commit_msg>oops!<commit_after><?php

namespace Admin\Action;

use Admin\Library\MenuLibrary;
use App\Action\AppAction;
use Twig\Library\Helper as TwigHelper;

/**
 * Index Action
 *
 * @package Admin\Action
 */
class IndexAction extends AppAction
{
    public function __invoke()
    {
        TwigHelper::addCss('file:///Admin/vendor/bootstrap/dist/css/bootstrap.min.css');
        TwigHelper::addCss('file:///Admin/vendor/font-awesome/css/font-awesome.min.css');
        TwigHelper::addCss('file:////code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css');
        TwigHelper::addCss('file:///Admin/css/AdminLTE.min.css', 10);
        TwigHelper::addCss('file:///Admin/css/skins/skin-blue.min.css', 20);

        TwigHelper::addJs('file:////oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js');
        TwigHelper::addJs('file:////oss.maxcdn.com/respond/1.4.2/respond.min.js', 10);
        TwigHelper::addJs('file:///Admin/vendor/jquery/dist/jquery.min.js', 20);
        TwigHelper::addJs('file:///Admin/vendor/bootstrap/dist/js/bootstrap.min.js', 30);
        TwigHelper::addJs('file:///Admin/js/app.min.js', 40);

        $template = 'dashboard';
        $args = func_get_args();

        TwigHelper::addMasterTwig('@Admin/master.twig');

        /** @var \Twig_Environment $twig */
        $twig = $this->getContainer()->get('twig');
        $twig->addGlobal('menu', MenuLibrary::generate());

        if ($args[0] == 'bundles') {
            $this->getRouter()->setPrefix(['admin', 'bundles']);

            array_shift($args);
            $args = implode('/', $args);
            $response = $this->forward($args, $this->getRequest()->getMethod());

            $this->getResponder()->setData('response', $response);
        } else {
            if ($args) {
                $template = implode('/', $args);
            }
        }

        $this->getResponder()->setData('template', $template);
    }
}
{'fraction_non_alphanumeric': 0.1992297817715019, 'fraction_numerical': 0.012323491655969191, 'mean_word_length': 2.6963946869070208, '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': '2060225', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1275, 'n_words': 150}