<commit_before><?php

// ------------------------------------------------------------------------------------------------
// assets

    Route::get  ($config->route . 'assets/{file}',  'AssetsController@asset')->where(['file' => '.*']);


// ------------------------------------------------------------------------------------------------
// setup

    Route::get  ($config->route . 'setup',          'SetupController@index');
    Route::post ($config->route . 'setup',          'SetupController@submit');
    Route::get  ($config->route . 'setup/install',  'SetupController@install');


// ------------------------------------------------------------------------------------------------
// other

    // data
    Route::get  ($config->route . 'load/{path?}',   'SketchpadController@load')->where('path', '.*');

    // tools
    Route::post ($config->route . 'run/{params?}',  'SketchpadController@run')->where('params', '.*');
    Route::post ($config->route . 'settings',       'SketchpadController@settings');
    Route::post ($config->route . 'create',         'SketchpadController@create');

    // catch all
    Route::get  ($config->route . '{params?}',      'SketchpadController@index')->where('params', '.*');<commit_msg>Minor PHP / setup routing improvement<commit_after><?php

// ------------------------------------------------------------------------------------------------
// assets

    Route::get  ($config->route . 'assets/{file}',  'AssetsController@asset')->where(['file' => '.*']);


// ------------------------------------------------------------------------------------------------
// setup

    Route::get  ($config->route . 'setup',          'SetupController@index');
    Route::get  ($config->route . 'setup/install',  'SetupController@install');
    Route::post ($config->route . 'setup/install',  'SetupController@submit');
    Route::get  ($config->route . 'setup/test',     'SetupController@test');


// ------------------------------------------------------------------------------------------------
// other

    // data
    Route::get  ($config->route . 'load/{path?}',   'SketchpadController@load')->where('path', '.*');

    // tools
    Route::post ($config->route . 'run/{params?}',  'SketchpadController@run')->where('params', '.*');
    Route::post ($config->route . 'settings',       'SketchpadController@settings');
    Route::post ($config->route . 'create',         'SketchpadController@create');

    // catch all
    Route::get  ($config->route . '{params?}',      'SketchpadController@index')->where('params', '.*');
{'fraction_non_alphanumeric': 0.4034334763948498, 'fraction_numerical': 0.0, 'mean_word_length': 1.4725168756027, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '3353541', 'n_tokens_mistral': 605, 'n_tokens_neox': 599, 'n_words': 96}