<commit_before><?php

namespace Clue\Confgen;

use Twig_Loader_String;
use Twig_Environment;
use JsonSchema\Validator;

class Factory
{
    public function createConfgen()
    {
        // documentation explicitly warns against using this loader because it
        // will be removed with Twig v2.0 eventually.
        // However, it exactly implements our use case because template contents
        // are always held in memory.
        $loader = new Twig_Loader_String();

        $twig = new Twig_Environment($loader);
        $twig->enableStrictVariables();

        $validator = new Validator();
<commit_msg>Remove useless Twig_Loader_String (overloaded via Confgen anyway)<commit_after><?php

namespace Clue\Confgen;

use Twig_Environment;
use JsonSchema\Validator;

class Factory
{
    public function createConfgen()
    {
        $twig = new Twig_Environment();
        $twig->enableStrictVariables();

        $validator = new Validator();

{'fraction_non_alphanumeric': 0.08526315789473685, 'fraction_numerical': 0.002105263157894737, 'mean_word_length': 3.2455357142857144, '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': '1405471', 'n_tokens_mistral': 260, 'n_tokens_neox': 258, 'n_words': 80}