<commit_before><?php

use PommProject\Foundation\Pomm;

use RulerZ\RulerZ;

require __DIR__.'/bootstrap_general.php';

$pomm = new Pomm(['test_rulerz' => [
    'dsn' => sprintf('pgsql://%s:%s@%s:%d/%s', $_ENV['POSTGRES_USER'], $_ENV['POSTGRES_PASSWD'], $_ENV['POSTGRES_HOST'], $_ENV['POSTGRES_PORT'], $_ENV['POSTGRES_DB']),
    'class:session_builder' => '\PommProject\ModelManager\SessionBuilder',
]]);

// compiler
$compiler = new \RulerZ\Compiler\Compiler(new \RulerZ\Compiler\EvalEvaluator());

// compiled RulerZ
$rulerz = new RulerZ(
    $compiler, [
        new \RulerZ\Compiler\Target\Sql\Pomm(),
    ]
);

return [$pomm, $rulerz];<commit_msg>Fix Pomm example<commit_after><?php

use PommProject\Foundation\Pomm;

use RulerZ\RulerZ;

require __DIR__.'/bootstrap_general.php';

$pomm = new Pomm(['test_rulerz' => [
    'dsn' => sprintf('pgsql://%s:%s@%s:%d/%s', $_ENV['POSTGRES_USER'], $_ENV['POSTGRES_PASSWD'], $_ENV['POSTGRES_HOST'], $_ENV['POSTGRES_PORT'], $_ENV['POSTGRES_DB']),
    'class:session_builder' => \PommProject\ModelManager\SessionBuilder::class,
]]);

// compiler
$compiler = new \RulerZ\Compiler\Compiler(new \RulerZ\Compiler\EvalEvaluator());

// compiled RulerZ
$rulerz = new RulerZ(
    $compiler, [
        new \RulerZ\Target\Pomm\Pomm(),
    ]
);

return [$pomm, $rulerz];
{'fraction_non_alphanumeric': 0.20046082949308755, 'fraction_numerical': 0.0, 'mean_word_length': 5.14622641509434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6597085', 'n_tokens_mistral': 505, 'n_tokens_neox': 515, 'n_words': 71}