<commit_before><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('home');
});

Route::get('/name', 'UserController@displaySettings');
Route::post('/name', 'UserController@updateName');

Route::group(['middleware' => 'has_discord_token'], function () {
    Route::get('/servers', 'ServerController@displayOverview')->middleware('auth')->name('dashboard.all');
    Route::get('/dashboard/{server}', 'ServerController@showDashboard')->middleware('auth')->name('dashboard.general');
    Route::get('/dashboard/{server}/commands', 'ServerController@showCommands')->middleware('auth')->name('dashboard.commands');
    Route::patch('/dashboard/{server}/commands', 'ServerController@updateCommand')->middleware('auth');
    Route::delete('/dashboard/{server}/command/{command}', 'ServerController@deleteCommand')->middleware('auth');
    Route::patch('/dashboard/{server}/discriminator', 'ServerController@updateDiscrim')->middleware('auth');
    Route::put('/dashboard/{server}/commands', 'ServerController@createCommand')->middleware('auth');

    Route::patch('/dashboard/{server}/logging', 'ServerController@updateLogging')->middleware(['auth']);

    Route::post('/dashboard/{server}/realname', 'ServerController@setRealnameSettings');
});

Route::get('/commands/{server}', 'ServerController@showCommandList');

Route::get('login', 'AuthController@login')->name('login');
Route::get('logout', 'AuthController@logout')->name('logout');<commit_msg>Require authentication for setting name<commit_after><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('home');
});

Route::get('/name', 'UserController@displaySettings')->middleware('auth');
Route::post('/name', 'UserController@updateName')->middleware('auth');

Route::group(['middleware' => 'has_discord_token'], function () {
    Route::get('/servers', 'ServerController@displayOverview')->middleware('auth')->name('dashboard.all');
    Route::get('/dashboard/{server}', 'ServerController@showDashboard')->middleware('auth')->name('dashboard.general');
    Route::get('/dashboard/{server}/commands', 'ServerController@showCommands')->middleware('auth')->name('dashboard.commands');
    Route::patch('/dashboard/{server}/commands', 'ServerController@updateCommand')->middleware('auth');
    Route::delete('/dashboard/{server}/command/{command}', 'ServerController@deleteCommand')->middleware('auth');
    Route::patch('/dashboard/{server}/discriminator', 'ServerController@updateDiscrim')->middleware('auth');
    Route::put('/dashboard/{server}/commands', 'ServerController@createCommand')->middleware('auth');

    Route::patch('/dashboard/{server}/logging', 'ServerController@updateLogging')->middleware(['auth']);

    Route::post('/dashboard/{server}/realname', 'ServerController@setRealnameSettings');
});

Route::get('/commands/{server}', 'ServerController@showCommandList');

Route::get('login', 'AuthController@login')->name('login');
Route::get('logout', 'AuthController@logout')->name('logout');
{'fraction_non_alphanumeric': 0.2673107890499195, 'fraction_numerical': 0.0, 'mean_word_length': 4.571001494768311, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '1403190', 'n_tokens_mistral': 889, 'n_tokens_neox': 914, 'n_words': 141}