<commit_before><?php

/**
 * Here is where you can register web routes for your application. These
 * routes are loaded by the RouteServiceProvider within a group which
 * contains the "web" middleware group. Now create something great!
 *
 * @var \Illuminate\Routing\Router $router
 * @see \Rogue\Providers\RouteServiceProvider
 */

// Homepage & FAQ
$router->view('/', 'pages.home')->middleware('guest')->name('login');
$router->view('faq', 'pages.faq');

// Authentication
$router->get('login', 'AuthController@getLogin');
$router->get('logout', 'AuthController@getLogout');

// Create, update, delete campaigns via Rogue.
// @TODO: Merge into CampaignsController, above.
$router->resource('campaign-ids', 'CampaignIdsController');
$router->get('campaign-ids/{id}/actions/create', 'ActionsController@create');

// Actions
$router->resource('actions', 'ActionsController');

// Client-side routes:
Route::middleware(['auth', 'role:staff,admin'])->group(function () {
    // Campaigns
    Route::view('campaigns', 'app')->name('campaigns.index');
    Route::view('campaigns/{id}', 'app');
    Route::view('campaigns/{id}/{status}', 'app');

    // Users
    Route::view('users', 'app')->name('users.index');
    Route::view('users/{id}', 'app')->name('users.show');

    // Posts
    Route::view('posts/{id}', 'app')->name('posts.show');

    // Signups
    Route::view('signups/{id}', 'app');
});

// Images
$router->post('images/{postId}', 'ImagesController@update');
$router->get('originals/{post}', 'OriginalsController@show');
<commit_msg>Fix issue with Slack notification & permalink. (#950)<commit_after><?php

/**
 * Here is where you can register web routes for your application. These
 * routes are loaded by the RouteServiceProvider within a group which
 * contains the "web" middleware group. Now create something great!
 *
 * @var \Illuminate\Routing\Router $router
 * @see \Rogue\Providers\RouteServiceProvider
 */

// Homepage & FAQ
$router->view('/', 'pages.home')->middleware('guest')->name('login');
$router->view('faq', 'pages.faq');

// Authentication
$router->get('login', 'AuthController@getLogin');
$router->get('logout', 'AuthController@getLogout');

// Create, update, delete campaigns via Rogue.
// @TODO: Merge into CampaignsController, above.
$router->resource('campaign-ids', 'CampaignIdsController');
$router->get('campaign-ids/{id}/actions/create', 'ActionsController@create');

// Actions
$router->resource('actions', 'ActionsController');

// Client-side routes:
Route::middleware(['auth', 'role:staff,admin'])->group(function () {
    // Campaigns
    Route::view('campaigns', 'app')->name('campaigns.index');
    Route::view('campaigns/{id}', 'app');
    Route::view('campaigns/{id}/{status}', 'app');

    // Users
    Route::view('users', 'app')->name('users.index');
    Route::view('users/{id}', 'app')->name('users.show');

    // Posts
    Route::view('posts/{id}', 'app')->name('posts.show');

    // Signups
    Route::view('signups/{id}', 'app')->name('signups.show');
});

// Images
$router->post('images/{postId}', 'ImagesController@update');
$router->get('originals/{post}', 'OriginalsController@show');

{'fraction_non_alphanumeric': 0.21446700507614214, 'fraction_numerical': 0.0009517766497461929, 'mean_word_length': 5.218934911242603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 36, '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': '176900', 'n_tokens_mistral': 964, 'n_tokens_neox': 959, 'n_words': 192}