<commit_before><?php

require_once __DIR__.'/../../vendor/autoload.php';

$client = new Predis\Client(
    array(
        'host' => '127.0.0.1',
        'port' => 6379,
        'database' => '11'
    )
);

$client->flushdb();

$repo = new Rstore\Repository($client, yaml_parse_file(__DIR__.'/models.yaml'));

$user = $repo->create('user', array(
    'full_name' => '<NAME>',
    'handle' => 'john_doe',
    'email_addresses' => array(
        '<EMAIL>',
        '<EMAIL>'
    ),
    'age' => 100
));

$user->articles = array(
    $repo->create('article', array(
        'url' => '/test-article-1'
    )),<commit_msg>for safety<commit_after><?php

require_once __DIR__.'/../../vendor/autoload.php';

$client = new Predis\Client(
    array(
        'host' => '127.0.0.1',
        'port' => 6379,
        'database' => '11'
    )
);

// for safety, comment this out
//$client->flushdb();

$repo = new Rstore\Repository($client, yaml_parse_file(__DIR__.'/models.yaml'));

$user = $repo->create('user', array(
    'full_name' => '<NAME>',
    'handle' => 'john_doe',
    'email_addresses' => array(
        '<EMAIL>',
        '<EMAIL>'
    ),
    'age' => 100
));

$user->articles = array(
    $repo->create('article', array(
        'url' => '/test-article-1'
    )),
{'fraction_non_alphanumeric': 0.2288202692003167, 'fraction_numerical': 0.025336500395882817, 'mean_word_length': 2.632183908045977, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1064258', 'n_tokens_mistral': 485, 'n_tokens_neox': 470, 'n_words': 80}