<commit_before><?php
require_once __DIR__ . '/../vendor/autoload.php';

$extractor = new \RunTheDocsPHPUnit\PhpunitExtractor();
$dto = $extractor->extract(new \RunTheDocs\Extractor\ValueObject\File(
    __DIR__ . '/../example/ExampleOfEitherMonadTest.php'
));

if (isset($_GET['gid']) && isset($_GET['eid'])) {
    // executed
    $runner = new \RunTheDocsPHPUnit\PhpunitRunner(
        realpath(__DIR__ . '/../vendor/bin/phpunit')
        . ' -c ../phpunit.xml.dist'
    );

    $result = $runner->run(
        new \RunTheDocs\Runner\ValueObject\GroupID($_GET['gid']),
        new \RunTheDocs\Runner\ValueObject\ExampleID($_GET['eid'])
    );

    echo $result->asString();

} else {
    // display
    $loader = new Twig_Loader_Filesystem(__DIR__ . '/twig/');<commit_msg>use file that is easy to parse<commit_after><?php
require_once __DIR__ . '/../vendor/autoload.php';

$extractor = new \RunTheDocsPHPUnit\PhpunitExtractor();
$dto = $extractor->extract(new \RunTheDocs\Extractor\ValueObject\File(
    __DIR__ . '/../example/ExampleOfVarDumpTest.php'
));

if (isset($_GET['gid']) && isset($_GET['eid'])) {
    // executed
    $runner = new \RunTheDocsPHPUnit\PhpunitRunner(
        realpath(__DIR__ . '/../vendor/bin/phpunit')
        . ' -c ../phpunit.xml.dist'
    );

    $result = $runner->run(
        new \RunTheDocs\Runner\ValueObject\GroupID($_GET['gid']),
        new \RunTheDocs\Runner\ValueObject\ExampleID($_GET['eid'])
    );

    echo $result->asString();

} else {
    // display
    $loader = new Twig_Loader_Filesystem(__DIR__ . '/twig/');
{'fraction_non_alphanumeric': 0.18473380372033354, 'fraction_numerical': 0.0, 'mean_word_length': 3.1823056300268098, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4573241', 'n_tokens_mistral': 554, 'n_tokens_neox': 546, 'n_words': 79}