<commit_before><?php
namespace Grav;

use Codeception\Util\Fixtures;
use Faker\Factory;
use Grav\Common\Grav;

ini_set('error_log', __DIR__ . '/error.log');

$grav = function() {
    Grav::resetInstance();
    $grav = Grav::instance();

    $grav['uri']->init();
    $grav['debugger']->init();
    $grav['assets']->init();
    $grav['config']->set('system.cache.enabled', false);
    $grav['locator']->addPath('tests', '', 'tests', false);

    return $grav;
};

Fixtures::add('grav', $grav);
<commit_msg>Initialize stream in test<commit_after><?php
namespace Grav;

use Codeception\Util\Fixtures;
use Faker\Factory;
use Grav\Common\Grav;

ini_set('error_log', __DIR__ . '/error.log');

$grav = function() {
    Grav::resetInstance();
    $grav = Grav::instance();
    $grav['config']->init();
    $grav['streams'];
    $grav['plugins']->init();
    $grav['themes']->init();

    $grav['uri']->init();
    $grav['debugger']->init();
    $grav['assets']->init();

    $grav['config']->set('system.cache.enabled', false);
    $grav['locator']->addPath('tests', '', 'tests', false);

    return $grav;
};

Fixtures::add('grav', $grav);

{'fraction_non_alphanumeric': 0.2418358340688438, 'fraction_numerical': 0.0, 'mean_word_length': 4.5588235294117645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '2931540', 'n_tokens_mistral': 402, 'n_tokens_neox': 388, 'n_words': 65}