<commit_before><?php
/**
 * Hostingcheck (https://github.com/zero2one/hostingcheck)
 *
 * @link      https://github.com/zero2one/hostingcheck source repository.
 * @copyright Copyright (c) 2014 Serial Graphics (http://serial-graphics.be)
 * @license   http://opensource.org/licenses/GPL-2.0 GNU Public License
 */


/**
 * Runner to run a group scenario.
 *
 * @author <NAME> <<EMAIL>>
 */
class Hostingcheck_Runner_Tests
{
    /**
     * The scenario to use in the test runner.
     *
     * @var Hostingcheck_Scenario_Tests
     */
    protected $scenario;


    /**
     * Constructor.
     *
     * @param Hostingcheck_Scenario_Tests $scenario
     *     The scenario for the tests.
     */
    public function __construct(Hostingcheck_Scenario_Tests $scenario)
    {
        $this->scenario = $scenario;
    }

    /**
     * Run the test.
     *
     * @return Hostingcheck_Results_Tests
     */
    public function run()
    {
        $result = new Hostingcheck_Results_Tests($this->scenario);

        foreach ($this->scenario as $testScenario) {
            $testRunner = new Hostingcheck_Runner_Test($testScenario);
            $result->addMultiple($testRunner->run());
        }

        return $result;
    }<commit_msg>Fixed passing variable to the Hostingcheck_Results_Tests constructor that is not supported.<commit_after><?php
/**
 * Hostingcheck (https://github.com/zero2one/hostingcheck)
 *
 * @link      https://github.com/zero2one/hostingcheck source repository.
 * @copyright Copyright (c) 2014 Serial Graphics (http://serial-graphics.be)
 * @license   http://opensource.org/licenses/GPL-2.0 GNU Public License
 */


/**
 * Runner to run a group scenario.
 *
 * @author <NAME> <<EMAIL>>
 */
class Hostingcheck_Runner_Tests
{
    /**
     * The scenario to use in the test runner.
     *
     * @var Hostingcheck_Scenario_Tests
     */
    protected $scenario;


    /**
     * Constructor.
     *
     * @param Hostingcheck_Scenario_Tests $scenario
     *     The scenario for the tests.
     */
    public function __construct(Hostingcheck_Scenario_Tests $scenario)
    {
        $this->scenario = $scenario;
    }

    /**
     * Run the test.
     *
     * @return Hostingcheck_Results_Tests
     */
    public function run()
    {
        $result = new Hostingcheck_Results_Tests();

        foreach ($this->scenario as $testScenario) {
            $testRunner = new Hostingcheck_Runner_Test($testScenario);
            $result->addMultiple($testRunner->run());
        }

        return $result;
    }
{'fraction_non_alphanumeric': 0.11950929956470123, 'fraction_numerical': 0.006331618519984171, 'mean_word_length': 2.5159944367176634, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, 'https://': 4, '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': '4661041', 'n_tokens_mistral': 776, 'n_tokens_neox': 754, 'n_words': 166}