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

use Peridot\Core\SpecResult;
use Peridot\Runner\Runner;

$specs = __DIR__ . '/specs/';
$files = ['spec.spec.php', 'suite.spec.php', 'runner.spec.php', 'suiteloader.spec.php'];
$result = new SpecResult();
$runner = new Runner($result);
foreach ($files as $file) {
    $runner->runSpec($specs . $file);
}
$result = $runner->getResult();
print $result->getSummary() . "\n";<commit_msg>user SuiteLoader in run.php<commit_after><?php
require_once 'vendor/autoload.php';
require_once 'bootstrap.php';

use Peridot\Core\SpecResult;
use Peridot\Runner\Runner;
use Peridot\Runner\SuiteLoader;

$loader = new SuiteLoader();
$specs = $loader->load(__DIR__ . '/specs/');
$result = new SpecResult();
$runner = new Runner($result);
foreach ($specs as $file) {
    $runner->runSpec($file);
}
$result = $runner->getResult();
print $result->getSummary() . "\n";
{'fraction_non_alphanumeric': 0.19313304721030042, 'fraction_numerical': 0.0, 'mean_word_length': 5.524475524475524, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '5761222', 'n_tokens_mistral': 328, 'n_tokens_neox': 329, 'n_words': 69}