<commit_before><?php

namespace Cffie\Command;

use Cffie\Cff\CffClient;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

class AlertCommand extends Command
{
    /** @var CffClient */
    private $cff;

    /** @var SymfonyStyle */
    private $output;

    protected function configure()
    {
        $this
            ->setName('alert')
            ->setDescription('Alert by mail for travel infos')

            ->addArgument('departure', InputArgument::REQUIRED, 'departure stop')
            ->addArgument('arrival', InputArgument::REQUIRED, 'arrival stop')
            ->addArgument('time', InputArgument::REQUIRED, 'time of travel')

            ->addOption('host', null, InputOption::VALUE_REQUIRED, 'host of mail server', 'smtp.gmail.com')
            ->addOption('port', null, InputOption::VALUE_REQUIRED, 'port of mail server', 465)
            ->addOption('security', null, InputOption::VALUE_REQUIRED, 'security of mail server', 'ssl')
            ->addOption('username', null, InputOption::VALUE_REQUIRED, 'username of mail server')
            ->addOption('password', null, InputOption::VALUE_REQUIRED, 'password of mail server')
            ->addOption('to', null, InputOption::VALUE_REQUIRED, 'recipient of mail server')
        ;
    }

    protected function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);
        $this->output = new SymfonyStyle($input, $output);
        $debug = $output->getVerbosity() === OutputInterface::VERBOSITY_DEBUG;
        $this->cff = new CffClient($debug);
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $date = new \DateTime($input->getArgument('time'));<commit_msg>Disable alert command<commit_after><?php

namespace Cffie\Command;

use Cffie\Cff\CffClient;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

class AlertCommand extends Command
{
    /** @var CffClient */
    private $cff;

    /** @var SymfonyStyle */
    private $output;

    protected function configure()
    {
        $this
            ->setName('alert')
            ->setDescription('Alert by mail for travel infos')

            ->addArgument('departure', InputArgument::REQUIRED, 'departure stop')
            ->addArgument('arrival', InputArgument::REQUIRED, 'arrival stop')
            ->addArgument('time', InputArgument::REQUIRED, 'time of travel')

            ->addOption('host', null, InputOption::VALUE_REQUIRED, 'host of mail server', 'smtp.gmail.com')
            ->addOption('port', null, InputOption::VALUE_REQUIRED, 'port of mail server', 465)
            ->addOption('security', null, InputOption::VALUE_REQUIRED, 'security of mail server', 'ssl')
            ->addOption('username', null, InputOption::VALUE_REQUIRED, 'username of mail server')
            ->addOption('password', null, InputOption::VALUE_REQUIRED, 'password of mail server')
            ->addOption('to', null, InputOption::VALUE_REQUIRED, 'recipient of mail server')
        ;
    }

    public function isEnabled()
    {
        return false;
    }

    protected function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);
        $this->output = new SymfonyStyle($input, $output);
        $debug = $output->getVerbosity() === OutputInterface::VERBOSITY_DEBUG;
        $this->cff = new CffClient($debug);
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $date = new \DateTime($input->getArgument('time'));
{'fraction_non_alphanumeric': 0.1309494451294698, 'fraction_numerical': 0.0014796547472256474, 'mean_word_length': 3.511679644048943, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '1656869', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1120, 'n_words': 256}