<commit_before><?php namespace Lego;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Lego\Commands\IDEHelper;

/**
 * Lego Service Provider for Laravel
 */
class LegoServiceProvider extends ServiceProvider
{
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                IDEHelper::class,
            ]);
        }
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        // config
        $config = $this->path('config/lego.php');
        $this->publishes([$config => config_path('lego.php')]);
        $this->mergeConfigFrom($config, 'lego');

        // assets
        $this->publishes([
            $this->path('public/') => public_path(LegoAsset::ASSET_PATH)
        ]);

        // views
        $this->loadViewsFrom($this->path('resources/views'), 'lego');

        // ** 第三方库 **
        $this->registerHtmlServices();
    }

    /**
     * 依赖第三方库 laravelcollective/html, 为方便使用, 在这里自动注册
     */
    private function registerHtmlServices()
    {
        $this->app->register(\Collective\Html\HtmlServiceProvider::class);
    }

    private function path($path = '')
    {
        return __DIR__ . '/../../' . $path;
    }
}<commit_msg>add tag to publishes<commit_after><?php namespace Lego;

use Illuminate\Support\ServiceProvider;
use Lego\Commands\IDEHelper;

/**
 * Lego Service Provider for Laravel
 */
class LegoServiceProvider extends ServiceProvider
{
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                IDEHelper::class,
            ]);
        }
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        // config
        $config = $this->path('config/lego.php');
        $this->publishes([$config => config_path('lego.php')], 'config');
        $this->mergeConfigFrom($config, 'lego');

        // assets
        $this->publishes(
            [$this->path('public/') => public_path(LegoAsset::ASSET_PATH)],
            'public'
        );

        // views
        $this->loadViewsFrom($this->path('resources/views'), 'lego');

        // ** 第三方库 **
        $this->registerHtmlServices();
    }

    /**
     * 依赖第三方库 laravelcollective/html, 为方便使用, 在这里自动注册
     */
    private function registerHtmlServices()
    {
        $this->app->register(\Collective\Html\HtmlServiceProvider::class);
    }

    private function path($path = '')
    {
        return __DIR__ . '/../../' . $path;
    }
}

{'fraction_non_alphanumeric': 0.15697453439756748, 'fraction_numerical': 0.0, 'mean_word_length': 2.0640279394644936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '7637788', 'n_tokens_mistral': 812, 'n_tokens_neox': 803, 'n_words': 131}