<commit_before><?php

require __DIR__ . '/../src/Flow/Loader.php';

use Flow\Loader;
use Flow\Helper;
use Flow\Adapter\FileAdapter;

Loader::autoload();

class OutputTest extends PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        parent::setUp();

        $options = [
            'source' => __DIR__ . '/actual',
            'target' => __DIR__ . '/cache',
        ];

        $source = new FileAdapter($options['source']);

        $this->flow = new Loader($options, $source);
    }

    public function outputProvider()
    {
        $tests = [
            'and',
            'add',
            'array',
            'block',
            'comparison',
            'concat',
            'conditional',
            'div',
            'for',
            'if',<commit_msg>Tests always recompile templates<commit_after><?php

require __DIR__ . '/../src/Flow/Loader.php';

use Flow\Loader;
use Flow\Helper;
use Flow\Adapter\FileAdapter;

Loader::autoload();

class OutputTest extends PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        parent::setUp();

        $options = [
            'source' => __DIR__ . '/actual',
            'target' => __DIR__ . '/cache',
            'mode'   => Loader::RECOMPILE_ALWAYS,
        ];

        $source = new FileAdapter($options['source']);

        $this->flow = new Loader($options, $source);
    }

    public function outputProvider()
    {
        $tests = [
            'and',
            'add',
            'array',
            'block',
            'comparison',
            'concat',
            'conditional',
            'div',
            'for',
            'if',
{'fraction_non_alphanumeric': 0.14614918132201335, 'fraction_numerical': 0.0, 'mean_word_length': 1.6655896607431342, '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': '4763273', 'n_tokens_mistral': 475, 'n_tokens_neox': 464, 'n_words': 98}