<commit_before><?php

declare (strict_types = 1);

namespace Crell\Document\Collection;

/**
 * @todo Maybe finish this at some point.
 */
class MemoryTable {
    protected $storage;

    protected function getKeys() {
        return [];
    }

    protected function iterateStorage() {
        foreach ($this->getKeys() as $key_name) {
            $key = key($this->storage);
            $val = current($this->storage);
            $key_array[$key_name] = $key;

        }

        foreach ($this->storage as $uuid => $rev) {
            foreach ($rev as $revision => $lang) {
                foreach ($lang as $language => $data) {
                    $data['uuid'] = $uuid;
                    $data['revision'] = $revision,
                        $data['language'] = $language;
                        yield $data;
                    }
            }
        }
    }

}<commit_msg>Minor syntax fix in unused code.<commit_after><?php

declare (strict_types = 1);

namespace Crell\Document\Collection;

/**
 * @todo Maybe finish this at some point.
 */
class MemoryTable {
    protected $storage;

    protected function getKeys() {
        return [];
    }

    protected function iterateStorage() {
        foreach ($this->getKeys() as $key_name) {
            $key = key($this->storage);
            $val = current($this->storage);
            $key_array[$key_name] = $key;

        }

        foreach ($this->storage as $uuid => $rev) {
            foreach ($rev as $revision => $lang) {
                foreach ($lang as $language => $data) {
                    $data['uuid'] = $uuid;
                    $data['revision'] = $revision;
                    $data['language'] = $language;
                    yield $data;
                }
            }
        }
    }

}
{'fraction_non_alphanumeric': 0.13884204609331086, 'fraction_numerical': 0.0011242270938729624, 'mean_word_length': 1.583454281567489, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4798960', 'n_tokens_mistral': 501, 'n_tokens_neox': 475, 'n_words': 119}