<commit_before><?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| 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!
|
*/

Auth::routes();

Route::group(['prefix' => LaravelLocalization::setLocale()], function()
{
    Route::view('/', 'page.index')->name('index');

    Route::group(['middleware' => ['auth']], function () {
        Route::get('dashboard', 'DashboardController')->name('dashboard');

        Route::view('budget', 'budget.index')->name('budget');

        // Accounts
        Route::resource('accounts', 'AccountController');

        // Transactions
        Route::get('transactions/export', 'TransactionExportController')
             ->name('transactions.export')
             ->middleware('throttle:exports');
        Route::resource('transactions', 'TransactionController')->except('index');

        // Categories
        Route::resource('categories', 'CategoryController');

        // Bills
        Route::get('bills/ajax_calendar_events', 'BillEventController')
            ->name('bills.ajax.calendar.events');

        Route::resource('bills', 'BillController');

        // Goals<commit_msg>Fix locale auth routes throwing 404<commit_after><?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| 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!
|
*/

Route::prefix(LaravelLocalization::setLocale())->group(function () {
    Auth::routes();

    Route::view('/', 'page.index')->name('index');

    Route::group(['middleware' => ['auth']], function () {
        Route::get('dashboard', 'DashboardController')->name('dashboard');

        Route::view('budget', 'budget.index')->name('budget');

        // Accounts
        Route::resource('accounts', 'AccountController');

        // Transactions
        Route::get('transactions/export', 'TransactionExportController')
             ->name('transactions.export')
             ->middleware('throttle:exports');
        Route::resource('transactions', 'TransactionController')->except('index');

        // Categories
        Route::resource('categories', 'CategoryController');

        // Bills
        Route::get('bills/ajax_calendar_events', 'BillEventController')
            ->name('bills.ajax.calendar.events');

        Route::resource('bills', 'BillController');

        // Goals
{'fraction_non_alphanumeric': 0.24672708962739173, 'fraction_numerical': 0.0010070493454179255, 'mean_word_length': 2.3825198637911464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '863029', 'n_tokens_mistral': 719, 'n_tokens_neox': 709, 'n_words': 144}