<commit_before><?php

namespace SystemInc\LaravelAdmin\Console;

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

class RestoreCommand extends Command
{
    use HelpersTrait;

    protected $name = 'laravel-admin:restore-database';
    protected $description = 'Drop DB and restore latest backup';

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

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

            return false;
        }

        $this->consoleSignature();

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

        $migrations = File::allFiles($path);

        if (count($migrations) == 0) {<commit_msg>restore DB dump file sort fix<commit_after><?php

namespace SystemInc\LaravelAdmin\Console;

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

class RestoreCommand extends Command
{
    use HelpersTrait;

    protected $name = 'laravel-admin:restore-database';
    protected $description = 'Drop DB and restore latest backup';

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

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

            return false;
        }

        $this->consoleSignature();

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

        $migrations = array_sort(File::allFiles($path), function($file)
        {
            return $file->getFilename();
        });

        if (count($migrations) == 0) {
{'fraction_non_alphanumeric': 0.12166488794023479, 'fraction_numerical': 0.0010672358591248667, 'mean_word_length': 2.780241935483871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1982627', 'n_tokens_mistral': 551, 'n_tokens_neox': 534, 'n_words': 128}