<commit_before><?php

declare(strict_types=1);

namespace App\Generators;

use Symfony\Component\Process\Process;

/**
 * This is the process runner class.
 *
 * @author <NAME> <<EMAIL>>
 */
class ProcessRunner
{
    /**
     * Start the process.
     *
     * @return App\Generators\Promise
     */
    public function start(string $command)
    {
        $process = new Process($command);

        $process->start();

        return new Promise(function () use ($process) {
            $process->wait();

            if (!$this->process->isSuccessful()) {
                throw new GenerationException($process->getOutput() ?: $process->getErrorOutput());
            }
        });
    }
}<commit_msg>Fixed typo<commit_after><?php

declare(strict_types=1);

namespace App\Generators;

use Symfony\Component\Process\Process;

/**
 * This is the process runner class.
 *
 * @author <NAME> <<EMAIL>>
 */
class ProcessRunner
{
    /**
     * Start the process.
     *
     * @return App\Generators\Promise
     */
    public function start(string $command)
    {
        $process = new Process($command);

        $process->start();

        return new Promise(function () use ($process) {
            $process->wait();

            if (!$process->isSuccessful()) {
                throw new GenerationException($process->getOutput() ?: $process->getErrorOutput());
            }
        });
    }
}
{'fraction_non_alphanumeric': 0.148890479599141, 'fraction_numerical': 0.0014316392269148174, 'mean_word_length': 2.3049645390070923, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2468127', 'n_tokens_mistral': 399, 'n_tokens_neox': 391, 'n_words': 85}