<commit_before><?php

namespace SystemInc\LaravelAdmin\Console;

use File;
use Illuminate\Console\Command;
use SystemInc\LaravelAdmin\Traits\HelpersTrait;

class DumpCommand extends Command
{
    use HelpersTrait;

    protected $name = 'laravel-admin:dump-database';
    protected $description = 'Dump DB file to .sql';

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'laravel-admin:dump-database';

    public function handle()
    {
        if (empty(config('laravel-admin'))) {
            $this->error('Instal first Laravel Admin with laravel-admin:instal');

            return false;
        }

        $this->consoleSignature();

        $this->line('Dumping...');
        $this->line('');

        $migration = 'sla_'.date('Y_m_d_His').'.sql';

        $path = app_path('../database/sla_dumps');

        if (!File::exists($path)) {
            File::makeDirectory($path, 493, true);
        }

        $dumpMigration = $path.'/'.$migration;

        $this->info('Output path while be: '.$dumpMigration);
        $this->line('');
        exec('mysqldump -u '.env('DB_USERNAME').' -p '.env('DB_DATABASE').' -r '.$dumpMigration, $output, $return_var);
        $this->line('');

        if ($return_var != 0) {
            File::delete($dumpMigration);

            $this->error('Dumping error!');
        } else {
            $this->line('Dumping Done!');
        }

        $this->line('');
        $this->line('***');
        $this->line('');
        $this->info('Done!');
        $this->line(' _________________________________________________________________________________________________ ');
    }
}<commit_msg>fix dump command typos<commit_after><?php

namespace SystemInc\LaravelAdmin\Console;

use File;
use Illuminate\Console\Command;
use SystemInc\LaravelAdmin\Traits\HelpersTrait;

class DumpCommand extends Command
{
    use HelpersTrait;

    protected $name = 'laravel-admin:dump-database';
    protected $description = 'Dump DB file to .sql';

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'laravel-admin:dump-database';

    public function handle()
    {
        if (empty(config('laravel-admin'))) {
            $this->error('First instal Laravel Admin with laravel-admin:instal');

            return false;
        }

        $this->consoleSignature();

        $this->line('Dumpping...');
        $this->line('');

        $migration = 'sla_'.date('Y_m_d_His').'.sql';

        $path = app_path('../database/sla_dumps');

        if (!File::exists($path)) {
            File::makeDirectory($path, 493, true);
        }

        $dumpMigration = $path.'/'.$migration;

        $this->info('Output path will be: '.$dumpMigration);
        $this->line('');
        exec('mysqldump -u '.env('DB_USERNAME').' -p '.env('DB_DATABASE').' -r '.$dumpMigration, $output, $return_var);
        $this->line('');

        if ($return_var != 0) {
            File::delete($dumpMigration);

            $this->error('Dumpping error!');
        } else {
            $this->line('Dumpping Done!');
        }

        $this->line('');
        $this->line('***');
        $this->line('');
        $this->info('Done!');
        $this->line(' _________________________________________________________________________________________________ ');
    }
}
{'fraction_non_alphanumeric': 0.16935247582771756, 'fraction_numerical': 0.0023439789041898623, 'mean_word_length': 2.4695121951219514, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '7528925', 'n_tokens_mistral': 1033, 'n_tokens_neox': 998, 'n_words': 193}