<commit_before><?php
/**
 * Routes - all Module's specific Routes are defined here.
 *
 * @author <NAME> - <EMAIL>
 * @version 3.0
 */


/** Define static routes. */

// The default Auth Routes.
Route::get('login',  array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@login'
));

Route::post('login', array(
    'before' => 'guest|csrf',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@postLogin'
));

Route::get('logout', array(
    'before' => 'auth',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@logout'
));

// The Password Remind.
Route::get('password/remind', array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@remind'
));

Route::post('password/remind', array(
    'before' => 'guest|csrf',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@postRemind'
));

// The Password Reset.
Route::get('password/reset/{token?}', array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@reset'
));

Route::post('password/reset', array(
    'before' => 'guest|csrf',
    'uses'   => 'App\Modules\Users\Controllers\Authorize@postReset'
));

// The Account Registration.
Route::get('register', array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Registrar@create'
));

Route::post('register', array(
    'before' => 'guest|csrf',
    'uses'   => 'App\Modules\Users\Controllers\Registrar@store'
));

Route::get('register/verify/{token?}', array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Registrar@verify'
));

Route::get('register/status', array(
    'before' => 'guest',
    'uses'   => 'App\Modules\Users\Controllers\Registrar@status'
));

// The Adminstration Routes.
Route::group(array('prefix' => 'admin', 'namespace' => 'App\Modules\Users\Controllers\Admin'), function() {
    // The User's Profile.
    Route::get( 'users/profile', array('before' => 'auth',      'uses' => 'Users@profile'));
    Route::post('users/profile', array('before' => 'auth|csrf', 'uses' => 'Users@postProfile'));<commit_msg>Improve app/Modules/Users/Routes.php<commit_after><?php
/**
 * Routes - all Module's specific Routes are defined here.
 *
 * @author <NAME> - <EMAIL>
 * @version 3.0
 */


/** Define static routes. */

Route::group(array('prefix' => '', 'namespace' => 'App\Modules\Users\Controllers'), function() {
    // The default Auth Routes.
    Route::get( 'login',  array('before' => 'guest',      'uses' => 'Authorize@login'));
    Route::post('login',  array('before' => 'guest|csrf', 'uses' => 'Authorize@postLogin'));
    Route::get( 'logout', array('before' => 'auth',       'uses' => 'Authorize@logout'));

    // The Password Remind.
    Route::get( 'password/remind', array('before' => 'guest',      'uses' => 'Authorize@remind'));
    Route::post('password/remind', array('before' => 'guest|csrf', 'uses' => 'Authorize@postRemind'));

    // The Password Reset.
    Route::get( 'password/reset/{token?}', array('before' => 'guest',      'uses' => 'Authorize@reset'));
    Route::post('password/reset',          array('before' => 'guest|csrf', 'uses' => 'Authorize@postReset'));

    // The Account Registration.
    Route::get( 'register',                 array('before' => 'guest',      'uses' => 'Registrar@create'));
    Route::post('register',                 array('before' => 'guest|csrf', 'uses' => 'Registrar@store'));
    Route::get( 'register/verify/{token?}', array('before' => 'guest',      'uses' => 'Registrar@verify'));
    Route::get( 'register/status',          array('before' => 'guest',      'uses' => 'Registrar@status'));
});

// The Adminstration Routes.
Route::group(array('prefix' => 'admin', 'namespace' => 'App\Modules\Users\Controllers\Admin'), function() {
    // The User's Profile.
    Route::get( 'users/profile', array('before' => 'auth',      'uses' => 'Users@profile'));
    Route::post('users/profile', array('before' => 'auth|csrf', 'uses' => 'Users@postProfile'));
{'fraction_non_alphanumeric': 0.22389181066867017, 'fraction_numerical': 0.0010017530678687703, 'mean_word_length': 3.9987484355444307, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 65, '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': '5188697', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1355, 'n_words': 236}