<commit_before><?php
/**
 * This file is part of laravel-stubs package.
 *
 * @author ATehnix <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace ATehnix\LaravelStubs\Console;

use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;

class StubsPublishCommand extends Command
{
    /**
     * The console command name.
     *
     * @var string
     */
    protected $name = 'stubs:publish';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Publish any stub files from framework';

    /**
     * The filesystem instance.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    protected $files;

    /**
     * Path to the Laravel Framework source directory
     *
     * @var string
     */
    protected $frameworkPath = 'vendor/laravel/framework/src/';

    /**
     * Paths to stub files
     *
     * @var array
     */
    protected $stubs = [
        'Illuminate/Database/Console/Seeds/stubs/seeder.stub',
        'Illuminate/Foundation/Console/stubs/console.stub',
        'Illuminate/Foundation/Console/stubs/event.stub',
        'Illuminate/Foundation/Console/stubs/job.stub',
        'Illuminate/Foundation/Console/stubs/job-queued.stub',
        'Illuminate/Foundation/Console/stubs/listener.stub',
        'Illuminate/Foundation/Console/stubs/listener-queued.stub',
        'Illuminate/Foundation/Console/stubs/mail.stub',
        'Illuminate/Foundation/Console/stubs/model.stub',
        'Illuminate/Foundation/Console/stubs/notification.stub',
        'Illuminate/Foundation/Console/stubs/policy.plain.stub',
        'Illuminate/Foundation/Console/stubs/policy.stub',
        'Illuminate/Foundation/Console/stubs/provider.stub',
        'Illuminate/Foundation/Console/stubs/request.stub',
        'Illuminate/Foundation/Console/stubs/test.stub',
        'Illuminate/Routing/Console/stubs/controller.plain.stub',
        'Illuminate/Routing/Console/stubs/controller.stub',
        'Illuminate/Routing/Console/stubs/middleware.stub',
    ];

    /**
     * Create a new command instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     */
    public function __construct(Filesystem $files)
    {
        parent::__construct();

        $this->files = $files;
    }

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $path = config('stubs.path');
        $this->createDirectory($path);

        foreach ($this->stubs as $stub) {
            $from = base_path($this->frameworkPath. $stub);<commit_msg>Added controller.model.stub in publish command<commit_after><?php
/**
 * This file is part of laravel-stubs package.
 *
 * @author ATehnix <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace ATehnix\LaravelStubs\Console;

use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;

class StubsPublishCommand extends Command
{
    /**
     * The console command name.
     *
     * @var string
     */
    protected $name = 'stubs:publish';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Publish any stub files from framework';

    /**
     * The filesystem instance.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    protected $files;

    /**
     * Path to the Laravel Framework source directory
     *
     * @var string
     */
    protected $frameworkPath = 'vendor/laravel/framework/src/';

    /**
     * Paths to stub files
     *
     * @var array
     */
    protected $stubs = [
        'Illuminate/Database/Console/Seeds/stubs/seeder.stub',
        'Illuminate/Foundation/Console/stubs/console.stub',
        'Illuminate/Foundation/Console/stubs/event.stub',
        'Illuminate/Foundation/Console/stubs/job.stub',
        'Illuminate/Foundation/Console/stubs/job-queued.stub',
        'Illuminate/Foundation/Console/stubs/listener.stub',
        'Illuminate/Foundation/Console/stubs/listener-queued.stub',
        'Illuminate/Foundation/Console/stubs/mail.stub',
        'Illuminate/Foundation/Console/stubs/model.stub',
        'Illuminate/Foundation/Console/stubs/notification.stub',
        'Illuminate/Foundation/Console/stubs/policy.plain.stub',
        'Illuminate/Foundation/Console/stubs/policy.stub',
        'Illuminate/Foundation/Console/stubs/provider.stub',
        'Illuminate/Foundation/Console/stubs/request.stub',
        'Illuminate/Foundation/Console/stubs/test.stub',
        'Illuminate/Routing/Console/stubs/controller.plain.stub',
        'Illuminate/Routing/Console/stubs/controller.model.stub',
        'Illuminate/Routing/Console/stubs/controller.stub',
        'Illuminate/Routing/Console/stubs/middleware.stub',
    ];

    /**
     * Create a new command instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     */
    public function __construct(Filesystem $files)
    {
        parent::__construct();

        $this->files = $files;
    }

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $path = config('stubs.path');
        $this->createDirectory($path);

        foreach ($this->stubs as $stub) {
            $from = base_path($this->frameworkPath. $stub);
{'fraction_non_alphanumeric': 0.12479504463472399, 'fraction_numerical': 0.0, 'mean_word_length': 2.5328185328185326, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '4651337', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1677, 'n_words': 288}