<commit_before><?php
namespace Octava\GeggsBundle\Command;

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 StatusCommand
 * @package Octava\GeggsBundle\Command
 */
class CommitCommand extends GitCommand
{
    protected function configure()
    {
        $this
            ->setName('commit')
            ->addOption(
                'message',
                'm',
                InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
                'Use the given <msg> as the commit message. If multiple -m options are given, their values are concatenated as separate paragraphs.'
            )
            ->addOption('no-verify', null, InputOption::VALUE_NONE, 'To skip commit checks')
            ->setDescription('Git commit');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $io = new SymfonyStyle($input, $output);
        $io->title($this->getDescription());
        $io->comment('git commit with flag --all');

        $config = $this->getContainer()->get('octava_geggs.config');

        $arguments = ['commit', '--all'];
        if ($input->getOption('no-verify')) {
            $arguments[] = '--no-verify';
        }
        foreach ($input->getOption('message') as $message) {
            $arguments[] = '-m';
            $arguments[] = $message;
        }

        $cmd = $this->buildCommand($config->getMainDir(), $arguments);
        $io->section('Main directory');
        $io->comment('> '.$config->getMainDir());
        $io->writeln('');
        $this->runCommand($cmd, $io);

        $io->section('vendors');
        foreach ($config->getVendorDirs() as $dir) {
            $io->comment('> '.$config->makePathRelative($dir));
            $io->writeln('');
            $cmd = $this->buildCommand($dir, $arguments);
            $this->runCommand($cmd, $io);
        }
    }
}
<commit_msg>fix error msg<commit_after><?php
namespace Octava\GeggsBundle\Command;

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 StatusCommand
 * @package Octava\GeggsBundle\Command
 */
class CommitCommand extends GitCommand
{
    protected function configure()
    {
        $this
            ->setName('commit')
            ->addOption(
                'message',
                'm',
                InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
                'Use the given <msg> as the commit message. If multiple -m options are given, their values are concatenated as separate paragraphs.'
            )
            ->addOption('no-verify', null, InputOption::VALUE_NONE, 'To skip commit checks')
            ->setDescription('Git commit');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $io = new SymfonyStyle($input, $output);
        $io->title($this->getDescription());
        $io->comment('git commit with flag --all');

        $config = $this->getContainer()->get('octava_geggs.config');

        $arguments = ['commit', '--all'];
        if ($input->getOption('no-verify')) {
            $arguments[] = '--no-verify';
        }
        foreach ($input->getOption('message') as $message) {
            $arguments[] = '-m';
            $arguments[] = $message;
        }

        $cmd = $this->buildCommand($config->getMainDir(), $arguments);
        $io->section('Main directory');
        $io->comment('> '.$config->getMainDir());
        $this->runCommand($cmd, $io);

        $io->section('vendors');
        foreach ($config->getVendorDirs() as $dir) {
            $io->comment('> '.$config->makePathRelative($dir));
            $cmd = $this->buildCommand($dir, $arguments);
            $this->runCommand($cmd, $io);
        }
    }
}

{'fraction_non_alphanumeric': 0.15713575335653904, 'fraction_numerical': 0.0, 'mean_word_length': 2.4710957722174287, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 57, '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': '364356', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1104, 'n_words': 230}