<commit_before><?php

namespace Egzaminer;

use AltoRouter;
use Egzaminer\Admin\Auth;
use Exception;
use PDO;

class App
{
    private $url;
    private $router;
    private $config;
    private $container;

    /**
     * Constructor.
     */
    public function __construct()
    {
        $this->config = include $this->getRootDir().'/config/site.php';

        $this->container = [
            'auth' => new Auth(),
            'dbh' => $this->dbConnect(include $this->getRootDir().'/config/db.php'),
            'config' => $this->config,
            'dir' => $this->getDir(),
            'rootDir' => $this->getRootDir(),
        ];

        $this->router = new AltoRouter();
        $this->setUrl($_SERVER['REQUEST_URI']);
    }

    /**
     * Run app.
     */
    public function invoke()
    {
        $this->router->map('GET', '/', [
            'Egzaminer\Roll\HomePage', 'indexAction', ]);

        $this->router->map('GET', '/group/[i:id]', [
            'Egzaminer\Roll\ExamsGroup', 'indexAction', ]);

        $this->router->map('GET|POST', '/test/[i:id]', [
            'Egzaminer\Exam\Exam', 'showAction', ]);

        $this->router->map('GET', '/admin', [
            'Egzaminer\Admin\Dashboard', 'indexAction', ]);

        $this->router->map('GET|POST', '/admin/login', [<commit_msg>cs fix<commit_after><?php

namespace Egzaminer;

use AltoRouter;
use Egzaminer\Admin\Auth;
use Exception;
use PDO;

class App
{
    private $url;
    private $router;
    private $config;
    private $container;

    /**
     * Constructor.
     */
    public function __construct()
    {
        $this->config = include $this->getRootDir().'/config/site.php';

        $this->container = [
            'auth'    => new Auth(),
            'dbh'     => $this->dbConnect(include $this->getRootDir().'/config/db.php'),
            'config'  => $this->config,
            'dir'     => $this->getDir(),
        ];

        $this->router = new AltoRouter();
        $this->setUrl($_SERVER['REQUEST_URI']);
    }

    /**
     * Run app.
     */
    public function invoke()
    {
        $this->router->map('GET', '/', [
            'Egzaminer\Roll\HomePage', 'indexAction', ]);

        $this->router->map('GET', '/group/[i:id]', [
            'Egzaminer\Roll\ExamsGroup', 'indexAction', ]);

        $this->router->map('GET|POST', '/test/[i:id]', [
            'Egzaminer\Exam\Exam', 'showAction', ]);

        $this->router->map('GET', '/admin', [
            'Egzaminer\Admin\Dashboard', 'indexAction', ]);

        $this->router->map('GET|POST', '/admin/login', [
{'fraction_non_alphanumeric': 0.20179197506817295, 'fraction_numerical': 0.0, 'mean_word_length': 2.131707317073171, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '593571', 'n_tokens_mistral': 858, 'n_tokens_neox': 830, 'n_words': 133}