<commit_before><?php
/**
 * Routes definitions of the project
 *
 * This file contains all the routes of the project
 *
 * PHP version 5.5
 *
 * @category   Examinr
 * @author     <NAME> <<EMAIL>>
 * @copyright  Copyright (c) 2015 <NAME> <https://github.com/PeeHaa>
 * @license    See the LICENSE file
 * @version    1.0.0
 */
namespace Examinr;

$router
    ->get('/', ['Examinr\Presentation\Controller\Index', 'index'])
    ->get('/not-found', ['Examinr\Presentation\Controller\Error', 'notFound'])
    ->get('/method-not-allowed', ['Examinr\Presentation\Controller\Error', 'notAllowed'])
;
<commit_msg>Changed routes to be able to differentiate between logged in and not logged in users<commit_after><?php
/**
 * Routes definitions of the project
 *
 * This file contains all the routes of the project
 *
 * PHP version 5.5
 *
 * @category   Examinr
 * @author     <NAME> <<EMAIL>>
 * @copyright  Copyright (c) 2015 <NAME> <https://github.com/PeeHaa>
 * @license    See the LICENSE file
 * @version    1.0.0
 */
namespace Examinr;

$router
    ->get('/not-found', ['Examinr\Presentation\Controller\Error', 'notFound'])
    ->get('/method-not-allowed', ['Examinr\Presentation\Controller\Error', 'notAllowed'])
;

if (!$user->isLoggedIn()) {
    $router
        ->get('/', ['Examinr\Presentation\Controller\Index', 'index'])
    ;
} else {
    $router
        ->get('/', ['Examinr\Presentation\Controller\Dashboard', 'index'])
    ;
}

{'fraction_non_alphanumeric': 0.1713091922005571, 'fraction_numerical': 0.012534818941504178, 'mean_word_length': 3.518867924528302, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '555813', 'n_tokens_mistral': 470, 'n_tokens_neox': 462, 'n_words': 118}