<commit_before><?php
namespace LazyRecord\Schema;
use DateTime;
use LazyRecord\Deflator;
use LazyRecord\Inflator;
use LazyRecord\ArrayUtils;
use LazyRecord\Utils;
use LazyRecord\Schema\ColumnAccessorInterface;
use Exception;
use ArrayIterator;
use IteratorAggregate;
use InvalidArgumentException;
use SQLBuilder\Raw;
use SQLBuilder\Driver\BaseDriver;

class InvalidValueTypeException extends Exception { }

class RuntimeColumn implements IteratorAggregate, ColumnAccessorInterface
{
    public $name;

    public $attributes = array();

    public function __construct($name, & $attributes)
    {
        $this->name = $name;
        $this->attributes = $attributes;
    }


    public function getName() {
        return $this->name;
    }

    /**
     * For iterating attributes
     */
    public function getIterator()
    {
        return new ArrayIterator($this->attributes);
    }

    public static function __set_state($hash) 
    {
        return new self($hash['name'], $hash['attributes']);
    }<commit_msg>RuntimeColumn::$attributes should be protected<commit_after><?php
namespace LazyRecord\Schema;
use DateTime;
use LazyRecord\Deflator;
use LazyRecord\Inflator;
use LazyRecord\ArrayUtils;
use LazyRecord\Utils;
use LazyRecord\Schema\ColumnAccessorInterface;
use Exception;
use ArrayIterator;
use IteratorAggregate;
use InvalidArgumentException;
use SQLBuilder\Raw;
use SQLBuilder\Driver\BaseDriver;

class InvalidValueTypeException extends Exception { }

class RuntimeColumn implements IteratorAggregate, ColumnAccessorInterface
{
    public $name;

    protected $attributes = array();

    public function __construct($name, & $attributes)
    {
        $this->name = $name;
        $this->attributes = $attributes;
    }


    public function getName() {
        return $this->name;
    }

    /**
     * For iterating attributes
     */
    public function getIterator()
    {
        return new ArrayIterator($this->attributes);
    }

    public static function __set_state($hash) 
    {
        return new self($hash['name'], $hash['attributes']);
    }
{'fraction_non_alphanumeric': 0.09961501443695861, 'fraction_numerical': 0.0, 'mean_word_length': 3.7036199095022626, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1996974', 'n_tokens_mistral': 577, 'n_tokens_neox': 564, 'n_words': 145}