<commit_before><?php

namespace TomIrons\Accountant;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;

class AccountantServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerRoutes();
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Register the Accountant routes.
     *
     * @return void
     */
    protected function registerRoutes()
    {
        Route::group([
            'prefix' => 'accountant',
            'namespace' => 'TomIrons\Accountant\Http\Controllers',
            'middleware' => 'web',
        ], function () {
            $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
        });
    }
}<commit_msg>register config, resources, and assets<commit_after><?php

namespace TomIrons\Accountant;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;

class AccountantServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerRoutes();
        $this->registerResources();
        $this->defineAssetPublishing();
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__ . '/../config/accountant.php', 'accountant'
        );
    }

    /**
     * Register the Accountant routes.
     *
     * @return void
     */
    protected function registerRoutes()
    {
        Route::group([
            'prefix' => 'accountant',
            'namespace' => 'TomIrons\Accountant\Http\Controllers',
            'middleware' => 'web',
        ], function () {
            $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
        });
    }

    /**
     * Register the Accountant resources.
     *
     * @return void
     */
    protected function registerResources()
    {
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'accountant');
    }

    /**
     * Define the asset publishing configuration.
     *
     * @return void
     */
    public function defineAssetPublishing()
    {
        $this->publishes([
            __DIR__ . '/../public/js' => public_path('vendor/accountant/js'),
        ], 'accountant-assets');

        $this->publishes([
            __DIR__ . '/../public/css' => public_path('vendor/accountant/css'),
        ], 'accountant-assets');

        $this->publishes([
            __DIR__ . '/../public/img' => public_path('vendor/accountant/img'),
        ], 'accountant-assets');
    }
}
{'fraction_non_alphanumeric': 0.14178302900107412, 'fraction_numerical': 0.0, 'mean_word_length': 1.9472573839662448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '952467', 'n_tokens_mistral': 787, 'n_tokens_neox': 784, 'n_words': 145}