<commit_before><?php

use Illuminate\Routing\Router;

/** @var Router $router */

$router->get('/', ['as' => 'home', function () {
    if (Auth::check()) {
        return redirect(route('dashboard'));
    }

    return view('pages.home');
}]);

// Authentication

$router->group(['prefix' => 'auth'], function (Router $router) {

    $router->group(['middleware' => 'guest'], function (Router $router) {

        $router->get('login', ['as' => 'auth.login', 'uses' => 'Auth\LoginController@getLogin']);
        $router->post('login', 'Auth\LoginController@postLogin');

        $router->get('register', ['as' => 'auth.register', 'uses' => 'Auth\RegisterController@getRegister']);
        $router->post('register', 'Auth\RegisterController@postRegister');

        $router->get('activate/{activation_code}', ['as' => 'auth.activate', 'uses' => 'Auth\RegisterController@getActivate']);

    });

    $router->group(['middleware' => 'auth'], function (Router $router) {

        $router->post('logout', ['as' => 'auth.logout', 'uses' => 'Auth\LoginController@postLogout']);

    });

});

// Gameplay

$router->group(['middleware' => 'auth'], function (Router $router) {

    $router->get('dashboard', ['as' => 'dashboard', 'uses' => 'DashboardController@getIndex']);

    $router->get('round/{round}/register', ['as' => 'round.register', 'uses' => 'RoundController@getRegister']);
    $router->post('round/{round}/register', 'RoundController@postRegister');

    $router->group(['prefix' => 'dominion'], function (Router $router) {

        $router->post('{dominion}/select', ['as' => 'dominion.select', 'uses' => 'DominionController@postSelect']);

        $router->group(['middleware' => 'dominionselected'], function (Router $router) {

            // Dominion

            $router->get('status', ['as' => 'dominion.status', 'uses' => 'DominionController@getStatus']);
            $router->get('advisors', ['as' => 'dominion.advisors', 'uses' => 'DominionController@getAdvisors']);
            $router->get('advisors/production', ['as' => 'dominion.advisors.production', 'uses' => 'DominionController@getAdvisorsProduction']);
            $router->get('advisors/military', ['as' => 'dominion.advisors.military', 'uses' => 'DominionController@getAdvisorsMilitary']);
            $router->get('advisors/land', ['as' => 'dominion.advisors.land', 'uses' => 'DominionController@getAdvisorsLand']);
            $router->get('advisors/construction', ['as' => 'dominion.advisors.construction', 'uses' => 'DominionController@getAdvisorsConstruction']);

            // Actions

            $router->get('explore', ['as' => 'dominion.explore', 'uses' => 'DominionController@getExplore']);
            $router->get('construction', ['as' => 'dominion.construction', 'uses' => 'DominionController@getConstruction']);
//            $router->get('rezone-land', ['as' => 'dominion.rezone-land', 'uses' => 'DominionController@getRezoneLand']);
//            $router->get('improvements', ['as' => 'dominion.improvements', 'uses' => 'DominionController@getImprovements']);
//            $router->get('national-bank', ['as' => 'dominion.national-bank', 'uses' => 'DominionController@getNationalBank']);

            // Black Ops

            // Comms?

            // Realm

            // Misc?

            // Debug
<commit_msg>Add fallback route<commit_after><?php

use Illuminate\Routing\Router;

/** @var Router $router */

$router->get('/', ['as' => 'home', function () {
    if (Auth::check()) {
        return redirect(route('dashboard'));
    }

    return view('pages.home');
}]);

// Authentication

$router->group(['prefix' => 'auth'], function (Router $router) {

    $router->group(['middleware' => 'guest'], function (Router $router) {

        $router->get('login', ['as' => 'auth.login', 'uses' => 'Auth\LoginController@getLogin']);
        $router->post('login', 'Auth\LoginController@postLogin');

        $router->get('register', ['as' => 'auth.register', 'uses' => 'Auth\RegisterController@getRegister']);
        $router->post('register', 'Auth\RegisterController@postRegister');

        $router->get('activate/{activation_code}', ['as' => 'auth.activate', 'uses' => 'Auth\RegisterController@getActivate']);

    });

    $router->group(['middleware' => 'auth'], function (Router $router) {

        $router->post('logout', ['as' => 'auth.logout', 'uses' => 'Auth\LoginController@postLogout']);

    });

});

// Gameplay

$router->group(['middleware' => 'auth'], function (Router $router) {

    $router->get('dashboard', ['as' => 'dashboard', 'uses' => 'DashboardController@getIndex']);

    $router->get('round/{round}/register', ['as' => 'round.register', 'uses' => 'RoundController@getRegister']);
    $router->post('round/{round}/register', 'RoundController@postRegister');

    $router->group(['prefix' => 'dominion'], function (Router $router) {

        $router->get('{dominion}/select', function () { return redirect(route('dashboard')); });
        $router->post('{dominion}/select', ['as' => 'dominion.select', 'uses' => 'DominionController@postSelect']);

        $router->group(['middleware' => 'dominionselected'], function (Router $router) {

            // Dominion

            $router->get('status', ['as' => 'dominion.status', 'uses' => 'DominionController@getStatus']);
            $router->get('advisors', ['as' => 'dominion.advisors', 'uses' => 'DominionController@getAdvisors']);
            $router->get('advisors/production', ['as' => 'dominion.advisors.production', 'uses' => 'DominionController@getAdvisorsProduction']);
            $router->get('advisors/military', ['as' => 'dominion.advisors.military', 'uses' => 'DominionController@getAdvisorsMilitary']);
            $router->get('advisors/land', ['as' => 'dominion.advisors.land', 'uses' => 'DominionController@getAdvisorsLand']);
            $router->get('advisors/construction', ['as' => 'dominion.advisors.construction', 'uses' => 'DominionController@getAdvisorsConstruction']);

            // Actions

            $router->get('explore', ['as' => 'dominion.explore', 'uses' => 'DominionController@getExplore']);
            $router->get('construction', ['as' => 'dominion.construction', 'uses' => 'DominionController@getConstruction']);
//            $router->get('rezone-land', ['as' => 'dominion.rezone-land', 'uses' => 'DominionController@getRezoneLand']);
//            $router->get('improvements', ['as' => 'dominion.improvements', 'uses' => 'DominionController@getImprovements']);
//            $router->get('national-bank', ['as' => 'dominion.national-bank', 'uses' => 'DominionController@getNationalBank']);

            // Black Ops

            // Comms?

            // Realm

            // Misc?

            // Debug

{'fraction_non_alphanumeric': 0.22085068411659725, 'fraction_numerical': 0.0, 'mean_word_length': 3.8591040462427744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 146, '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': '2711722', 'n_tokens_mistral': 2052, 'n_tokens_neox': 1962, 'n_words': 310}