<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.
|
*/


/*
|--------------------------------------------------------------------------
| Public routes
|--------------------------------------------------------------------------
*/
/**
 * Route for home view
 *
 * @uses 	Route::get()
 */
Route::get('/', array(
	'as' => 'home',
	'uses' => 'HomeController@getHome'
));


/**
 * Route to clear database after deploy (used for heroku deploy hook)
 *
 * @uses 	Route::post()
 */
Route::post('/clear', array(
	'as' => 'postClear',
	'uses' => 'HomeController@getClear'
));


/*
|--------------------------------------------------------------------------
| Routes only available, when user is recognized
|--------------------------------------------------------------------------
*/
Route::group(array('before' => 'user'), function()
{
	/* === UPLOAD ROUTES === */
	Route::post('/upload', array(
		'as' => 'postUpload',
		'uses' => 'UploadController@postUpload'
	));
	Route::get('/upload-complete', array(
		'as' => 'uploadComplete',
		'uses' => 'UploadController@getUploadComplete'
	));
});


/*
|--------------------------------------------------------------------------
| Routes only available, when user has uploaded files
|--------------------------------------------------------------------------
*/
Route::group(array('before' => 'uploads'), function()
{<commit_msg>Add get route for db clear<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.
|
*/


/*
|--------------------------------------------------------------------------
| Public routes
|--------------------------------------------------------------------------
*/
/**
 * Route for home view
 *
 * @uses 	Route::get()
 */
Route::get('/', array(
	'as' => 'home',
	'uses' => 'HomeController@getHome'
));


/**
 * Route to clear database after deploy (used for heroku deploy hook)
 *
 * @uses 	Route::post()
 */
Route::post('/clear', array(
	'as' => 'postClear',
	'uses' => 'HomeController@getClear'
));
Route::get('/clear', array(
	'as' => 'postClear',
	'uses' => 'HomeController@getClear'
));


/*
|--------------------------------------------------------------------------
| Routes only available, when user is recognized
|--------------------------------------------------------------------------
*/
Route::group(array('before' => 'user'), function()
{
	/* === UPLOAD ROUTES === */
	Route::post('/upload', array(
		'as' => 'postUpload',
		'uses' => 'UploadController@postUpload'
	));
	Route::get('/upload-complete', array(
		'as' => 'uploadComplete',
		'uses' => 'UploadController@getUploadComplete'
	));
});


/*
|--------------------------------------------------------------------------
| Routes only available, when user has uploaded files
|--------------------------------------------------------------------------
*/
Route::group(array('before' => 'uploads'), function()
{
{'fraction_non_alphanumeric': 0.4632975719932242, 'fraction_numerical': 0.0, 'mean_word_length': 1.155109489051095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '7169555', 'n_tokens_mistral': 830, 'n_tokens_neox': 793, 'n_words': 227}