<commit_before><?php

namespace FireflyIII\Console\Commands;

use Config;
use Illuminate\Console\Command;

/**
 * Class UpgradeFireflyInstructions
 *
 * @package FireflyIII\Console\Commands
 */
class UpgradeFireflyInstructions extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'firefly:upgrade-instructions';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        //
        $version = Config::get('firefly.version');
        $config  = Config::get('upgrade.text');
        $text    = isset($config[$version]) ? $config[$version] : null;

        $this->line('+------------------------------------------------------------------------------+');
        $this->line('');

        if (is_null($text)) {
            $this->line('Thank you for installing Firefly III, v' . $version);
            $this->info('There are no extra upgrade instructions.');
            $this->line('Firefly III should be ready for use.');
        } else {
            $this->line('Thank you for installing Firefly III, v' . $version);
            $this->line('Please follow these upgrade instructions carefully.');
            $this->info(wordwrap($text));
        }<commit_msg>Better wording.<commit_after><?php

namespace FireflyIII\Console\Commands;

use Config;
use Illuminate\Console\Command;

/**
 * Class UpgradeFireflyInstructions
 *
 * @package FireflyIII\Console\Commands
 */
class UpgradeFireflyInstructions extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'firefly:upgrade-instructions';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        //
        $version = Config::get('firefly.version');
        $config  = Config::get('upgrade.text');
        $text    = isset($config[$version]) ? $config[$version] : null;

        $this->line('+------------------------------------------------------------------------------+');
        $this->line('');

        if (is_null($text)) {
            $this->line('Thank you for installing Firefly III, v' . $version);
            $this->line('If you are upgrading from a previous version,');
            $this->info('there are no extra upgrade instructions.');
            $this->line('Firefly III should be ready for use.');
        } else {
            $this->line('Thank you for installing Firefly III, v' . $version);
            $this->line('If you are upgrading from a previous version,');
            $this->line('please follow these upgrade instructions carefully:');
            $this->info(wordwrap($text));
        }
{'fraction_non_alphanumeric': 0.17697798929208805, 'fraction_numerical': 0.0, 'mean_word_length': 1.9041450777202074, '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': '2007567', 'n_tokens_mistral': 884, 'n_tokens_neox': 874, 'n_words': 231}