<commit_before><?php

/**
 * Entity serialization
 *
 * @package   Slick\Orm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2014 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @since     Version 1.0.0
 */

namespace Slick\Orm;

use Slick\Common\Inspector;

/**
 * Methods for entity serialization and unserialization
 *
 * @package   Slick\Orm
 * @author    <NAME> <<EMAIL>>
 */
trait EntitySerialization
{
    /**
     * @readwrite
     * @var Inspector
     */
    protected $_inspector;

    /**
     * @var array List of tags to exclude
     */
    protected $_invalidTags = [
        '@hasMany', '@hasAndBelongsToMany'
    ];

    /**
     * @var array list of invalid property names
     */
    protected $_invalidProperties =[
        '___mocked', '_connector', '_relationsManager', '_remainingData',
        '_inspector'
    ];
<commit_msg>Changing the Orm/Entity serialization behavior<commit_after><?php

/**
 * Entity serialization
 *
 * @package   Slick\Orm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2014 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @since     Version 1.0.0
 */

namespace Slick\Orm;

use Slick\Common\Inspector;

/**
 * Methods for entity serialization and unserialization
 *
 * @package   Slick\Orm
 * @author    <NAME> <<EMAIL>>
 */
trait EntitySerialization
{
    /**
     * @readwrite
     * @var Inspector
     */
    protected $_inspector;

    /**
     * @var array List of tags to exclude
     */
    protected $_invalidTags = [
        '@hasMany', '@hasAndBelongsToMany'
    ];

    /**
     * @var array list of invalid property names
     */
    protected $_invalidProperties =[
        '___mocked', '_connector', '_relationsManager', '_remainingData',
        '_inspector', '_events'
    ];

{'fraction_non_alphanumeric': 0.13656387665198239, 'fraction_numerical': 0.007709251101321586, 'mean_word_length': 2.626746506986028, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7573359', 'n_tokens_mistral': 581, 'n_tokens_neox': 564, 'n_words': 135}