<commit_before><?php
namespace Anonym\Application\Console;

use Anonym\Console\Command as AnonymCommand;
use Anonym\Filesystem\Filesystem;
use Anonym\Support\TemplateGenerator;
use Anonym\Facades\Migration as FacadeMigration;
use Anonym\Console\HandleInterface;

/**
 * This file belongs to the AnoynmFramework
 *
 * @author vahitserifsaglam <<EMAIL>>
 * @see http://gemframework.com
 *
 * Thanks for using
 */
class Migration extends AnonymCommand implements HandleInterface
{

    /**
     * the signature of command
     *
     * @var string
     */
    protected $signature = 'migration { function? } { name? }';

    /**
     * the description of command
     *
     * @var string
     */
    protected $description = 'create, run, forget and more migration functions';


    /**
     * @var Filesystem
     */
    private $file;

    /**
     *  create a new instance and register the filesystem
     *
     */
    public function __construct(Filesystem $filesystem)
    {
        $this->file = $filesystem;
        parent::__construct();
    }

    /**
     * Komut yakalandığı zaman tetiklenecek fonksiyonlardan biridir
     * @param InputInterface $input
     * @param OutputInterface $output
     * @return mixed
     */
    public function handle()
    {
        $command = $this->argument('function') ? $this->argument('function') : 'create';
        $param = $this->argument('name') ? $this->argument('name') : '';
        if (is_callable([$this, $command])) {
            $this->$command($param);
        } else {
            $this->error(sprintf('%s command is not found', $command));
        }
    }


    /**
     * Dosyayı silmeye yarar
     * @param string $name
     */
    public function forget($name = '')
    {

        $filePath = FacadeMigration::createName($name);<commit_msg>made some updates<commit_after><?php
namespace Anonym\Application\Console;

use Anonym\Console\Command as AnonymCommand;
use Anonym\Filesystem\Filesystem;
use Anonym\Support\TemplateGenerator;
use Anonym\Facades\Migration as FacadeMigration;
use Anonym\Console\HandleInterface;

/**
 * This file belongs to the AnoynmFramework
 *
 * @author vahitserifsaglam <<EMAIL>>
 * @see http://gemframework.com
 *
 * Thanks for using
 */
class Migration extends AnonymCommand implements HandleInterface
{

    /**
     * the signature of command
     *
     * @var string
     */
    protected $signature = 'migration { function? } { name? }';

    /**
     * the description of command
     *
     * @var string
     */
    protected $description = 'create, run, forget and more migration functions';


    /**
     * @var Filesystem
     */
    private $file;

    /**
     *  create a new instance and register the filesystem
     *
     */
    public function __construct(Filesystem $filesystem)
    {
        $this->file = $filesystem;
        parent::__construct();
    }

    /**
     * Komut yakalandığı zaman tetiklenecek fonksiyonlardan biridir
     *
     * @return mixed
     */
    public function handle()
    {
        $command = $this->argument('function') ? $this->argument('function') : 'create';
        $param = $this->argument('name') ? $this->argument('name') : '';
        if (is_callable([$this, $command])) {
            $this->$command($param);
        } else {
            $this->error(sprintf('%s command is not found', $command));
        }
    }


    /**
     * Dosyayı silmeye yarar
     * @param string $name
     */
    public function forget($name = '')
    {

        $filePath = FacadeMigration::createName($name);
{'fraction_non_alphanumeric': 0.12898673440587072, 'fraction_numerical': 0.0, 'mean_word_length': 2.5404595404595405, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1551657', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1035, 'n_words': 251}