<commit_before><?php

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

use ProxyManager\Configuration;
use ProxyManager\Factory\HydratorFactory;

class Foo
{
    private $foo   = 1;
    protected $bar = 2;
    public $baz    = 3;
}

$startTime = microtime(true);
$config    = new Configuration();
$factory   = new HydratorFactory($config);
$hydrator  = $factory->createProxy('Foo');
$foo       = new Foo();

var_dump('Extracted data:', $hydrator->extract($foo)); // array('foo' => 1, 'bar' => 2, 'baz' => 3);

$hydrator->hydrate(
    array(
         'foo' => 4,
         'bar' => 5,
         'baz' => 6
    ),
    $foo
);

var_dump('Object hydrated with new data:', $foo); // the object with the new properties set
<commit_msg>Removing unused variable<commit_after><?php

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

use ProxyManager\Configuration;
use ProxyManager\Factory\HydratorFactory;

class Foo
{
    private $foo   = 1;
    protected $bar = 2;
    public $baz    = 3;
}

$config    = new Configuration();
$factory   = new HydratorFactory($config);
$hydrator  = $factory->createProxy('Foo');
$foo       = new Foo();

var_dump('Extracted data:', $hydrator->extract($foo)); // array('foo' => 1, 'bar' => 2, 'baz' => 3);

$hydrator->hydrate(
    array(
         'foo' => 4,
         'bar' => 5,
         'baz' => 6
    ),
    $foo
);

var_dump('Object hydrated with new data:', $foo); // the object with the new properties set

{'fraction_non_alphanumeric': 0.1744266851980542, 'fraction_numerical': 0.01250868658790827, 'mean_word_length': 3.090909090909091, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5653428', 'n_tokens_mistral': 530, 'n_tokens_neox': 491, 'n_words': 126}