<commit_before><?php

namespace UWDOEM\Framework\Writer;

use Twig_SimpleFilter;

use UWDOEM\Framework\Email\EmailInterface;
use UWDOEM\Framework\Etc\SafeString;
use UWDOEM\Framework\Field\FieldInterface;
use UWDOEM\Framework\Filter\PaginationFilter;
use UWDOEM\Framework\Filter\SortFilter;
use UWDOEM\Framework\Form\FormInterface;
use UWDOEM\Framework\Form\FormAction\FormActionInterface;
use UWDOEM\Framework\PickA\PickAFormInterface;
use UWDOEM\Framework\PickA\PickAInterface;
use UWDOEM\Framework\Section\SectionInterface;
use UWDOEM\Framework\Visitor\Visitor;
use UWDOEM\Framework\Page\PageInterface;
use UWDOEM\Framework\Row\RowInterface;
use UWDOEM\Framework\Table\TableInterface;
use UWDOEM\Framework\Etc\Settings;
use UWDOEM\Framework\Etc\StringUtils;
use UWDOEM\Framework\Field\Field;
use UWDOEM\Framework\Filter\FilterInterface;
use UWDOEM\Framework\Filter\SearchFilter;
use UWDOEM\Framework\Table\TableFormInterface;

/**
 * Class Writer is a visitor which renders Writable elements.
 *
 * @package UWDOEM\Framework\Writer
 */
class Writer extends Visitor
{
    /** @var \Twig_Environment */
    protected $environment;

    /**
     * @return string[] An array containing all Framework-registered Twig template directories.
     */
    protected function getTemplatesDirectories()
    {
        return array_merge(Settings::getTemplateDirectories(), [dirname(__FILE__) . '/../../templates/base']);
    }

    /**
     * Visit a writable host and render it into html.
     *
     * @param WritableInterface $host
     * @return string
     */
    protected function write(WritableInterface $host)
    {
        return $host->accept($this);
    }

    /**
     * Get this Writer's Twig_Environment; create if it doesn't exist;
     *
     * @return \Twig_Environment
     */<commit_msg>All templates are now base.<commit_after><?php

namespace UWDOEM\Framework\Writer;

use Twig_SimpleFilter;

use UWDOEM\Framework\Email\EmailInterface;
use UWDOEM\Framework\Etc\SafeString;
use UWDOEM\Framework\Field\FieldInterface;
use UWDOEM\Framework\Filter\PaginationFilter;
use UWDOEM\Framework\Filter\SortFilter;
use UWDOEM\Framework\Form\FormInterface;
use UWDOEM\Framework\Form\FormAction\FormActionInterface;
use UWDOEM\Framework\PickA\PickAFormInterface;
use UWDOEM\Framework\PickA\PickAInterface;
use UWDOEM\Framework\Section\SectionInterface;
use UWDOEM\Framework\Visitor\Visitor;
use UWDOEM\Framework\Page\PageInterface;
use UWDOEM\Framework\Row\RowInterface;
use UWDOEM\Framework\Table\TableInterface;
use UWDOEM\Framework\Etc\Settings;
use UWDOEM\Framework\Etc\StringUtils;
use UWDOEM\Framework\Field\Field;
use UWDOEM\Framework\Filter\FilterInterface;
use UWDOEM\Framework\Filter\SearchFilter;
use UWDOEM\Framework\Table\TableFormInterface;

/**
 * Class Writer is a visitor which renders Writable elements.
 *
 * @package UWDOEM\Framework\Writer
 */
class Writer extends Visitor
{
    /** @var \Twig_Environment */
    protected $environment;

    /**
     * @return string[] An array containing all Framework-registered Twig template directories.
     */
    protected function getTemplatesDirectories()
    {
        return array_merge(Settings::getTemplateDirectories(), [dirname(__FILE__) . '/../../templates']);
    }

    /**
     * Visit a writable host and render it into html.
     *
     * @param WritableInterface $host
     * @return string
     */
    protected function write(WritableInterface $host)
    {
        return $host->accept($this);
    }

    /**
     * Get this Writer's Twig_Environment; create if it doesn't exist;
     *
     * @return \Twig_Environment
     */
{'fraction_non_alphanumeric': 0.10491257285595337, 'fraction_numerical': 0.0, 'mean_word_length': 4.0405594405594405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '474702', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1108, 'n_words': 228}