<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 controller to call when that URI is requested.
|
*/

//Route::get('/', 'WelcomeController@index');

Route::get('/', [
	'as'   => 'home',
	'uses' => 'ImageController@create'
]);

Route::controllers([
	'auth' => 'Auth\AuthController',
	'password' => '<PASSWORD>',
]);

// Image Resources
Route::group(['prefix' => 'images'], function ()
{
	Route::pattern('sid', '[0-9A-Za-z]{7}');

	Route::get('/', [
		'as'   => 'images.index',
		'uses' => 'ImageController@index'
	]);

	Route::get('create', [
		'as'   => 'images.create',
		'uses' => 'ImageController@create'
	]);
	Route::post('/', [
		'as'   => 'images.store',
		'uses' => 'ImageController@store'
	]);

	Route::get('{sid}', [
		'as'    => 'images.show',
		'uses'  => 'ImageController@show'
	]);
	Route::get('{sidFile}', [
		'as'   => 'images.download',
		'uses' => 'ImageController@download'
	])
	->where(['sidFile' => '[0-9A-Za-z]{7}\\.[a-z]{3,4}']);

	Route::get('{sid}/edit', [
		'as'   => 'images.edit',
		'uses' => 'ImageController@edit'
	]);
	Route::put('{sid}', [
		'as'   => 'images.update',
		'uses' => 'ImageController@update'
	]);

	Route::delete('{sid}', [
		'as'   => 'images.destroy',
		'uses' => 'ImageController@destroy'
	]);
});

// Short URL's
Route::group(['prefix' => 'i'], function ()
{
	Route::get('{sid}', [
		'as'   => 'images.shortShow',
		'uses' => 'ImageController@redirectShort'
	]);

	Route::get('{sidFile}', [
		'as'   => 'images.shortDownload',
		'uses' => 'ImageController@download'
	])
	->where(['sidFile' => '[0-9A-Za-z]{7}\\.[a-z]{3,4}']);
});

Route::post('upload', [
	'as' => 'upload'
]);
<commit_msg>Delete Image route, clean up<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 controller to call when that URI is requested.
|
*/

Route::get('/', [
	'as'   => 'home',
	'uses' => 'ImageController@create'
]);

Route::controllers([
	'auth' => 'Auth\AuthController',
	'password' => '<PASSWORD>',
]);

// Image Resources
Route::group(['prefix' => 'images'], function ()
{
	Route::pattern('sid', '[0-9A-Za-z]{7}');

	Route::get('/', [
		'as'   => 'images.index',
		'uses' => 'ImageController@index'
	]);

	Route::get('create', [
		'as'   => 'images.create',
		'uses' => 'ImageController@create'
	]);
	Route::post('/', [
		'as'   => 'images.store',
		'uses' => 'ImageController@store'
	]);

	Route::get('{sid}', [
		'as'    => 'images.show',
		'uses'  => 'ImageController@show'
	]);
	Route::get('{sidFile}', [
		'as'   => 'images.download',
		'uses' => 'ImageController@download'
	])
	->where(['sidFile' => '[0-9A-Za-z]{7}\\.[a-z]{3,4}']);

	Route::get('{sid}/edit', [
		'as'   => 'images.edit',
		'uses' => 'ImageController@edit'
	]);
	Route::put('{sid}', [
		'as'   => 'images.update',
		'uses' => 'ImageController@update'
	]);

	Route::get('{sid}/delete/{deleteKey}', [
		'as'   => 'images.delete',
		'uses' => 'ImageController@delete'
	]);
	Route::delete('{sid}', [
		'as'   => 'images.destroy',
		'uses' => 'ImageController@destroy'
	]);
});

// Short URL's
Route::group(['prefix' => 'i'], function ()
{
	Route::get('{sid}', [
		'as'   => 'images.shortShow',
		'uses' => 'ImageController@redirectShort'
	]);

	Route::get('{sidFile}', [
		'as'   => 'images.shortDownload',
		'uses' => 'ImageController@download'
	])
	->where(['sidFile' => '[0-9A-Za-z]{7}\\.[a-z]{3,4}']);
});

{'fraction_non_alphanumeric': 0.3211009174311927, 'fraction_numerical': 0.006625891946992864, 'mean_word_length': 2.9447236180904524, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 68, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7106652', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1380, 'n_words': 246}