<commit_before><?php

namespace Despark\Cms\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\Router;
use Illuminate\Foundation\AliasLoader;
use File;
use Despark\Cms\Admin\Admin;

class AdminServiceProvider extends ServiceProvider
{
    /**
     * The Artisan commands provided by starter kit.
     *
     * @var array
     */
    protected $commands = [
        'Despark\Cms\Console\Commands\AdminInstallCommand',
        'Despark\Cms\Console\Commands\AdminUpdateCommand',
        'Despark\Cms\Console\Commands\AdminUpdateProdCommand',
        'Despark\Cms\Console\Commands\AdminResourceCommand',
    ];

    /**
     * Bootstrap the application services.
     */
    public function boot(Router $router)
    {
        // Routes
        $router->group(['namespace' => 'Despark\Cms\Http\Controllers'], function ($router) {
            require __DIR__.'/../Http/routes.php';
        });

        $this->publishes([
            __DIR__.'/../Http/resourcesRoutes.php' => app_path('Http/resourcesRoutes.php'),
        ]);

        $router->group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
            if (File::exists(app_path('Http/resourcesRoutes.php'))) {
                require app_path('Http/resourcesRoutes.php');
            }
        });

        // Register Assets
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'despark');
        $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'despark');

        // Register the application commands
        $this->commands($this->commands);

        // Publish the Resources
        # Migrations
        $this->publishes([
            __DIR__.'/../../database/migrations/' => database_path('/migrations'),
        ], 'migrations');

        # Seeders
        $this->publishes([
            __DIR__.'/../../database/seeds/' => database_path('/seeds'),
        ], 'seeds');

        # Configs
        $this->publishes([
            __DIR__.'/../../config/' => config_path(),
        ], 'config');
        $this->publishes([
            __DIR__.'/../../resources/' => base_path('/resources'),
        ]);
        $this->publishes([
            __DIR__.'/../../gulp/' => base_path('/gulp'),
        ]);
        $this->publishes([
            __DIR__.'/../../public/' => public_path(),
        ]);

        $this->publishes([
            __DIR__.'/../../.env.example' => base_path('.env.example'),
            __DIR__.'/../../package.json' => base_path('package.json'),
            __DIR__.'/../../bower.json' => base_path('bower.json'),
            __DIR__.'/../../.bowerrc' => base_path('.bowerrc'),
            __DIR__.'/../../gulpfile.js' => base_path('gulpfile.js'),
        ]);

        $configPaths = config('admin.bootstrap.paths');
        if ($configPaths) {
            foreach ($configPaths as $key => $path) {
                if (!is_dir($path)) {
                    File::makeDirectory($path, 755, true, true);
                }
            }<commit_msg>Added tags to publish groups<commit_after><?php

namespace Despark\Cms\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\Router;
use Illuminate\Foundation\AliasLoader;
use File;
use Despark\Cms\Admin\Admin;

class AdminServiceProvider extends ServiceProvider
{
    /**
     * The Artisan commands provided by starter kit.
     *
     * @var array
     */
    protected $commands = [
        'Despark\Cms\Console\Commands\AdminInstallCommand',
        'Despark\Cms\Console\Commands\AdminUpdateCommand',
        'Despark\Cms\Console\Commands\AdminUpdateProdCommand',
        'Despark\Cms\Console\Commands\AdminResourceCommand',
    ];

    /**
     * Bootstrap the application services.
     */
    public function boot(Router $router)
    {
        // Routes
        $router->group(['namespace' => 'Despark\Cms\Http\Controllers'], function ($router) {
            require __DIR__.'/../Http/routes.php';
        });

        $this->publishes([
            __DIR__.'/../Http/resourcesRoutes.php' => app_path('Http/resourcesRoutes.php'),
        ]);

        $router->group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
            if (File::exists(app_path('Http/resourcesRoutes.php'))) {
                require app_path('Http/resourcesRoutes.php');
            }
        });

        // Register Assets
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'views');
        $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'lang');

        // Register the application commands
        $this->commands($this->commands);

        // Publish the Resources
        # Migrations
        $this->publishes([
            __DIR__.'/../../database/migrations/' => database_path('/migrations'),
        ], 'migrations');

        # Seeders
        $this->publishes([
            __DIR__.'/../../database/seeds/' => database_path('/seeds'),
        ], 'seeds');

        # Configs
        $this->publishes([
            __DIR__.'/../../config/' => config_path(),
        ], 'config');
        $this->publishes([
            __DIR__.'/../../resources/' => base_path('/resources'),
        ], 'resources');
        $this->publishes([
            __DIR__.'/../../gulp/' => base_path('/gulp'),
        ], 'gulp');
        $this->publishes([
            __DIR__.'/../../public/' => public_path(),
        ], 'public');

        $this->publishes([
            __DIR__.'/../../.env.example' => base_path('.env.example'),
            __DIR__.'/../../package.json' => base_path('package.json'),
            __DIR__.'/../../bower.json' => base_path('bower.json'),
            __DIR__.'/../../.bowerrc' => base_path('.bowerrc'),
            __DIR__.'/../../gulpfile.js' => base_path('gulpfile.js'),
        ]);

        $configPaths = config('admin.bootstrap.paths');
        if ($configPaths) {
            foreach ($configPaths as $key => $path) {
                if (!is_dir($path)) {
                    File::makeDirectory($path, 755, true, true);
                }
            }
{'fraction_non_alphanumeric': 0.18601165695253954, 'fraction_numerical': 0.0009991673605328892, 'mean_word_length': 1.9441176470588235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 63, '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': '4214015', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1719, 'n_words': 253}