<commit_before><?php
/**
 * @package Model
 * @internal
 */
class Kwf_Model_Proxy_Rowset implements Kwf_Model_Rowset_Interface
{
    protected $_rowClass;
    protected $_rowset;
    protected $_model;

    public function __construct(array $config)
    {
        if (isset($config['rowset'])) $this->_rowset = $config['rowset'];
        $this->_rowClass = $config['rowClass'];
        $this->_model = $config['model'];
    }

    public function rewind()
    {
        $this->_rowset->rewind();
        return $this;
    }

    public function current()
    {
        $row = $this->_rowset->current();
        if (is_null($row)) return null;
        return $this->_model->getRowByProxiedRow($row);
    }

    public function key()
    {
        return $this->_rowset->key();
    }

    public function next()
    {
        $this->_rowset->next();
    }

    public function valid()
    {
        return $this->_rowset->valid();
    }

    public function count()
    {
        return $this->_rowset->count();
    }
    public function seek($position)
    {
        $this->_rowset->seek($position);
        return $this;
    }
    public function getRowset()
    {
        return $this->_rowset;
    }
    public function getModel()
    {
        return $this->_model;
    }
    public function toArray()
    {
        return $this->_rowset->toArray();
    }
    public function getTable()
    {
        return $this->getModel()->getTable();
    }
    public function getIds()
    {
        $ret = array();
        $column = $this->_model->getPrimaryKey();
        foreach ($this->_rowset as $row) {
            $ret[] = $row->$column;
        }
        return $ret;
    }<commit_msg>Revert "comment for last commit"<commit_after><?php
/**
 * @package Model
 * @internal
 */
class Kwf_Model_Proxy_Rowset implements Kwf_Model_Rowset_Interface
{
    protected $_rowClass;
    protected $_rowset;
    protected $_model;

    public function __construct(array $config)
    {
        if (isset($config['rowset'])) $this->_rowset = $config['rowset'];
        $this->_rowClass = $config['rowClass'];
        $this->_model = $config['model'];
    }

    public function rewind()
    {
        $this->_rowset->rewind();
        return $this;
    }

    public function current()
    {
        $row = $this->_rowset->current();
        if (is_null($row)) return null;
        return $this->_model->getRowByProxiedRow($row);
    }

    public function key()
    {
        return $this->_rowset->key();
    }

    public function next()
    {
        $this->_rowset->next();
    }

    public function valid()
    {
        return $this->_rowset->valid();
    }

    public function count()
    {
        return $this->_rowset->count();
    }
    public function seek($position)
    {
        $this->_rowset->seek($position);
        return $this;
    }
    public function getRowset()
    {
        return $this->_rowset;
    }
    public function getModel()
    {
        return $this->_model;
    }
    public function toArray()
    {
        return $this->_rowset->toArray();
    }
    public function getTable()
    {
        return $this->getModel()->getTable();
    }
{'fraction_non_alphanumeric': 0.14800759013282733, 'fraction_numerical': 0.0, 'mean_word_length': 2.134786917740337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 57, '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': '7189498', 'n_tokens_mistral': 963, 'n_tokens_neox': 945, 'n_words': 195}