<commit_before><?php namespace Todaymade\Daux\Console;

use Symfony\Component\Console\Application as SymfonyApplication;

class Application extends SymfonyApplication
{
    public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
    {
        parent::__construct($name, $version);

        $this->add(new Generate());
        $this->add(new Serve());
        $this->add(new ClearCache());

        $app_name = "daux/daux.io";

        $up = '..' . DIRECTORY_SEPARATOR;
        $composer = __DIR__ . DIRECTORY_SEPARATOR . $up . $up . $up . $up . $up . 'composer.lock';
        $version = "unknown";

        if (file_exists($composer)) {
            $app = json_decode(file_get_contents($composer));
            $packages = $app->packages;
            
            foreach ($packages as $package) {
                if ($package->name == $app_name) {
                    $version = $package->version;
                }
            }
        }

        $this->setVersion($version);
        $this->setName($app_name);
        $this->setDefaultCommand('generate');
    }
}
<commit_msg>Remove default command, fixes #60<commit_after><?php namespace Todaymade\Daux\Console;

use Symfony\Component\Console\Application as SymfonyApplication;

class Application extends SymfonyApplication
{
    public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
    {
        parent::__construct($name, $version);

        $this->add(new Generate());
        $this->add(new Serve());
        $this->add(new ClearCache());

        $app_name = "daux/daux.io";

        $up = '..' . DIRECTORY_SEPARATOR;
        $composer = __DIR__ . DIRECTORY_SEPARATOR . $up . $up . $up . $up . $up . 'composer.lock';
        $version = "unknown";

        if (file_exists($composer)) {
            $app = json_decode(file_get_contents($composer));
            $packages = $app->packages;
            
            foreach ($packages as $package) {
                if ($package->name == $app_name) {
                    $version = $package->version;
                }
            }
        }

        $this->setVersion($version);
        $this->setName($app_name);
    }
}

{'fraction_non_alphanumeric': 0.14722222222222223, 'fraction_numerical': 0.000925925925925926, 'mean_word_length': 2.1093525179856116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '4376378', 'n_tokens_mistral': 640, 'n_tokens_neox': 621, 'n_words': 119}