<commit_before><?php
namespace PhpBrew\Tasks;
use PhpBrew\CommandBuilder;

/**
 * Task to run `make test`
 */
class TestTask extends BaseTask
{
    public function run(Build $build, $nice = null)
    {
        $this->info("Testing...");
        $cmd = new CommandBuilder('make test');

        if ($nice) {
            $cmd->nice($nice);
        }

        $cmd->setAppendLog(true);
        $cmd->setLogPath($build->getBuildLogPath());

        $this->debug('' .  $cmd);
        $code = $cmd->execute();
        if ($code != 0)
            die('Test failed.');
    }
}<commit_msg>remove die call from Tasks/TestTask<commit_after><?php
namespace PhpBrew\Tasks;

use PhpBrew\CommandBuilder;
use RuntimeException;

/**
 * Task to run `make test`
 */
class TestTask extends BaseTask
{
    public function run(Build $build, $nice = null)
    {
        $this->info("Testing...");
        $cmd = new CommandBuilder('make test');

        if ($nice) {
            $cmd->nice($nice);
        }

        $cmd->setAppendLog(true);
        $cmd->setLogPath($build->getBuildLogPath());

        $this->debug('' .  $cmd);
        $code = $cmd->execute();
        if ($code != 0)
           throw new RuntimeException('Test failed.');
    }
}
{'fraction_non_alphanumeric': 0.16951915240423798, 'fraction_numerical': 0.0016299918500407497, 'mean_word_length': 2.265957446808511, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5425317', 'n_tokens_mistral': 386, 'n_tokens_neox': 380, 'n_words': 86}