<commit_before><?php
/*
 * This file is part of the PommProject/ModelManager package.
 *
 * (c) 2014 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PommProject\ModelManager\Model;

use PommProject\ModelManager\Exception\ModelException;
use PommProject\Foundation\Inflector;

/**
 * FlexibleEntity
 *
 * Parent for entity classes.
 *
 * @abstract
 * @package ModelManager
 * @copyright 2014 <NAME>
 * @author <NAME> <<EMAIL>>
 * @license MIT/X11 {@link http://opensource.org/licenses/mit-license.php}
 */
abstract class FlexibleEntity implements \ArrayAccess, \IteratorAggregate
{
    const NONE     = 0;
    const EXIST    = 1;
    const MODIFIED = 2;

    public static $strict = true;

    private $fields = [];
    private $status = self::NONE;

    /**
     * __construct
     *
     * Instantiate the entity and hydrate it with the given values.
     *
     * @access public
     * @param  array $values Optional starting values.
     * @return void
     */
    public function __construct(array $values = null)
    {
        if (!is_null($values)) {
            $this->hydrate($values);
        }
    }

    /**
     * get
     *
     * Returns the $var value
     *
     * @final
     * @access public
     * @param  string $var Key you want to retrieve value from.
     * @throw  ModelException if strict and the attribute does not exist.
     * @return mixed
     */
    final public function get($var)<commit_msg>Redefined FlexibleEntity::get params.<commit_after><?php
/*
 * This file is part of the PommProject/ModelManager package.
 *
 * (c) 2014 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PommProject\ModelManager\Model;

use PommProject\ModelManager\Exception\ModelException;
use PommProject\Foundation\Inflector;

/**
 * FlexibleEntity
 *
 * Parent for entity classes.
 *
 * @abstract
 * @package ModelManager
 * @copyright 2014 <NAME>
 * @author <NAME> <<EMAIL>>
 * @license MIT/X11 {@link http://opensource.org/licenses/mit-license.php}
 */
abstract class FlexibleEntity implements \ArrayAccess, \IteratorAggregate
{
    const NONE     = 0;
    const EXIST    = 1;
    const MODIFIED = 2;

    public static $strict = true;

    private $fields = [];
    private $status = self::NONE;

    /**
     * __construct
     *
     * Instantiate the entity and hydrate it with the given values.
     *
     * @access public
     * @param  array $values Optional starting values.
     * @return void
     */
    public function __construct(array $values = null)
    {
        if (!is_null($values)) {
            $this->hydrate($values);
        }
    }

    /**
     * get
     *
     * Returns the $var value
     *
     * @final
     * @access public
     * @param  string|array $var Key(s) you want to retrieve value from.
     * @throw  ModelException if strict and the attribute does not exist.
     * @return mixed
     */
    final public function get($var)
{'fraction_non_alphanumeric': 0.10814290312198262, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 2.6223776223776225, 'pattern_counts': {'":': 0, '<': 19, '<?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': '2539607', 'n_tokens_mistral': 932, 'n_tokens_neox': 894, 'n_words': 287}