<commit_before><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

$_SERVER["HTTP_HOST"] = Config::get('app.host', '');
$_SERVER["SERVER_NAME"] = Config::get('app.host', '');

# Index.
Route::get('/', 'Home@showHome');

# News - aggregate + single
Route::get('/news', 'News@showNews');
Route::get('/news/{id}', 'News@showSingleNews')
	->where('id', '[0-9]+');

# Stats
Route::get('/stats', 'Stats@showGraphs');
Route::get('/stats.json', 'Stats@getGraphsAjax');

# IRC
Route::get('/irc', 'IRC@show');

# Search
Route::any('/search/{search?}', 'Search@showResults');

Route::any('/login', 'UserAuth@login');
//Route::any('/logout', 'UserAuth@logout');


# Admin controller; adds extra auth + security
Route::controller('/admin', 'Admin');<commit_msg>Update routes to include queue and last-played<commit_after><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

$_SERVER["HTTP_HOST"] = Config::get('app.host', '');
$_SERVER["SERVER_NAME"] = Config::get('app.host', '');

# Index.
Route::get('/',                 'Home@showHome');

# News - aggregate + single
Route::get('/news',             'News@showNews');
Route::get('/news/{id}',        'News@showSingleNews')->where('id', '[0-9]+');

# Stats
Route::get('/stats',            'Stats@showGraphs');
Route::get('/stats.json',       'Stats@getGraphsAjax');
Route::get('/last-played',      'Stats@showLastPlayed');
Route::get('/queue',            'Stats@showQueue');

# IRC
Route::get('/irc',              'IRC@show');

# Search
Route::any('/search/{search?}', 'Search@showResults');

Route::any('/login',            'UserAuth@login');
//Route::any('/logout', 'UserAuth@logout');





# Admin controller; adds extra auth + security
Route::controller('/admin', 'Admin');
{'fraction_non_alphanumeric': 0.30762817840766987, 'fraction_numerical': 0.0016673614005835765, 'mean_word_length': 2.5294117647058822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1622961', 'n_tokens_mistral': 682, 'n_tokens_neox': 664, 'n_words': 166}