<commit_before><?php

namespace Awesomite\VarDumper\LightVarDumperProviders;

use Awesomite\VarDumper\Objects\Hasher;

/**
 * @internal
 */
class ProviderDump implements \IteratorAggregate
{
    public function getIterator()
    {
        $result = array();
        $result['visibilityModifiers'] = $this->getVisibilityModifiers();
        if (defined('HHVM_VERSION')) {
            $result['arrayObject'] = $this->getArrayObject();
        }
        $result['extendedArrayObject'] = $this->getExtendedArrayObject();
        $result['extendedArrayObject2'] = $this->getExtendedArrayObject2();
        $result['null'] = array(null, "NULL\n");
        $result['resource'] = array(tmpfile(), "resource of type stream\n");
        $result['closure'] = $this->getClosure();

        return new \ArrayIterator($result);
    }

    private function getVisibilityModifiers()
    {
        $hasher = new Hasher();

        $object = new TestObject();
        $object->setPrivate('private variable');
        $object->setProtected('protected variable');
        $object->public = 'public variable';<commit_msg>[HHVM_VERSION] ArrayObject has __debugInfo method<commit_after><?php

namespace Awesomite\VarDumper\LightVarDumperProviders;

use Awesomite\VarDumper\Objects\Hasher;

/**
 * @internal
 */
class ProviderDump implements \IteratorAggregate
{
    public function getIterator()
    {
        $result = array();
        $result['visibilityModifiers'] = $this->getVisibilityModifiers();
        if (defined('HHVM_VERSION')) {
            $result['arrayObject'] = $this->getArrayObject();
            $result['extendedArrayObject'] = $this->getExtendedArrayObject();
            $result['extendedArrayObject2'] = $this->getExtendedArrayObject2();
        }
        $result['null'] = array(null, "NULL\n");
        $result['resource'] = array(tmpfile(), "resource of type stream\n");
        $result['closure'] = $this->getClosure();

        return new \ArrayIterator($result);
    }

    private function getVisibilityModifiers()
    {
        $hasher = new Hasher();

        $object = new TestObject();
        $object->setPrivate('private variable');
        $object->setProtected('protected variable');
        $object->public = 'public variable';
{'fraction_non_alphanumeric': 0.1497326203208556, 'fraction_numerical': 0.0017825311942959, 'mean_word_length': 3.325626204238921, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '3623294', 'n_tokens_mistral': 635, 'n_tokens_neox': 617, 'n_words': 113}