<commit_before><?php

namespace Mindy\Template;

use Mindy\Base\Mindy;
use Mindy\Helper\Alias;

/**
 * Class Renderer
 * @package Mindy\Template
 */
class Renderer extends Loader
{
    /**
     * @var \Mindy\Finder\Finder
     */
    public $finder = null;

    public function __construct(array $options = [])
    {
        if (!isset($options['target'])) {
            $options['target'] = Alias::get('application.runtime.cache_templates');
        }
        if (!isset($options['source']) && class_exists('\Mindy\Base\Mindy')) {
            $options['source'] = Mindy::app()->finder->getPaths();
        }
        if ($this->finder !== null) {
            $options['source'] = $this->finder->getPaths();
        }
        parent::__construct($options);
    }
}<commit_msg>Add Configurer tratit<commit_after><?php

namespace Mindy\Template;

use Mindy\Base\Mindy;
use Mindy\Helper\Alias;
use Mindy\Helper\Traits\Configurator;

/**
 * Class Renderer
 * @package Mindy\Template
 */
class Renderer extends Loader
{
    use Configurator;

    /**
     * @var \Mindy\Finder\Finder
     */
    public $finder = null;

    public function __construct(array $options = [])
    {
        if (!isset($options['target'])) {
            $options['target'] = Alias::get('application.runtime.cache_templates');
        }
        if (!isset($options['source']) && class_exists('\Mindy\Base\Mindy')) {
            $options['source'] = Mindy::app()->finder->getPaths();
        }
        if ($this->finder !== null) {
            $options['source'] = $this->finder->getPaths();
        }
        parent::__construct($options);
    }
}
{'fraction_non_alphanumeric': 0.17603458925262508, 'fraction_numerical': 0.0, 'mean_word_length': 2.640449438202247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3928765', 'n_tokens_mistral': 497, 'n_tokens_neox': 493, 'n_words': 84}