<commit_before><?php

$prefix = Config::get('lablog::prefix');
$pages = Config::get('lablog::pages');

/**
 * Define LaBlog route patterns.
 */
Route::pattern('categories', '(.*)');
Route::pattern('pagename', '('.implode('|', $pages).')');
Route::pattern('pagenumber', '[0-9]+');

/**
 * Creation of the LaBlog route group with prefix.
 */
Route::group(['prefix' => $prefix], function() {
    Route::get('/', 'Lablog\Lablog\Controllers\PageController@showPage');
    Route::get('posts/{pagenumber?}', 'Lablog\Lablog\Controllers\PostController@showPosts');
    Route::get('category/{categories?}/{pagenumber}', 'Lablog\Lablog\Controllers\CategoryController@showCategory');
    Route::get('category/{categories?}', 'Lablog\Lablog\Controllers\CategoryController@showCategory');
    Route::get('{pagename}', 'Lablog\Lablog\Controllers\PageController@showPage');
    Route::get('post/{categories?}/{postname}', 'Lablog\Lablog\Controllers\PostController@showPost');
});<commit_msg>Updates routes to add /page/ prefix for page numbers<commit_after><?php

$prefix = Config::get('lablog::prefix');
$pages = Config::get('lablog::pages');

/**
 * Define LaBlog route patterns.
 */
Route::pattern('categories', '(.*)');
Route::pattern('pagename', '('.implode('|', $pages).')');
Route::pattern('pagenumber', '[0-9]+');
Route::pattern('page', 'page');

/**
 * Creation of the LaBlog route group with prefix.
 */
Route::group(['prefix' => $prefix], function() {
    Route::get('/', 'Lablog\Lablog\Controllers\PageController@showPage');
    Route::get('posts/{page?}/{pagenumber?}', 'Lablog\Lablog\Controllers\PostController@showPosts');
    Route::get('category/{categories?}/{page}/{pagenumber}', 'Lablog\Lablog\Controllers\CategoryController@showCategory');
    Route::get('category/{categories?}', 'Lablog\Lablog\Controllers\CategoryController@showCategory');
    Route::get('{pagename}', 'Lablog\Lablog\Controllers\PageController@showPage');
    Route::get('post/{categories?}/{postname}', 'Lablog\Lablog\Controllers\PostController@showPost');
});
{'fraction_non_alphanumeric': 0.22347740667976423, 'fraction_numerical': 0.0019646365422396855, 'mean_word_length': 7.314285714285714, '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': '602418', 'n_tokens_mistral': 655, 'n_tokens_neox': 672, 'n_words': 86}