<commit_before><?php
namespace TheRat\CronControl\Command;

use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * Class SelfUpdateCommand
 * @package TheRat\CronControl\Command
 */
class SelfUpdateCommand extends AbstractCommand
{
    const MANIFEST_FILE = 'https://raw.githubusercontent.com/TheRatG/cron-control/gh-pages/manifest.json';

    protected function configure()
    {
        $this
            ->setName('self-update')
            ->setDescription('Updates cron-control.phar to the latest version');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $manager = new Manager(Manifest::loadFile(self::MANIFEST_FILE));
        $manager->update($this->getApplication()->getVersion(), true);
    }
}<commit_msg>update self-update<commit_after><?php
namespace TheRat\CronControl\Command;

use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * Class SelfUpdateCommand
 * @package TheRat\CronControl\Command
 */
class SelfUpdateCommand extends AbstractCommand
{
    const MANIFEST_FILE = 'https://raw.githubusercontent.com/TheRatG/cron-control/gh-pages/manifest.json';

    protected function configure()
    {
        $this
            ->setName('self-update')
            ->setDescription('Updates cron-control.phar to the latest version');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $manager = new Manager(Manifest::loadFile(self::MANIFEST_FILE));
        $manager->update($this->getApplication()->getVersion(), true, true);
    }
}
{'fraction_non_alphanumeric': 0.12229016120066703, 'fraction_numerical': 0.0, 'mean_word_length': 4.027932960893855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '4901586', 'n_tokens_mistral': 522, 'n_tokens_neox': 510, 'n_words': 90}