<commit_before><?php

namespace Face\Core;

use Peek\Utils\ValuesUtils;

class EntityFaceElement{
    
    /**
     *
     * @var EntityFace
     */
    protected $parentFace;
    
    //entity properties
    protected $name;
    protected $propertyName;
    protected $setter;
    protected $getter;
   
    protected $defaultMap;


    protected $type;
    protected $class;
    
    protected $isIdentifier;
    
    ////////////////////////////
    // relation properties
    /**
     * @var string if it is an entity, it defines what kind of relation : hasOne|belongsTo|hasMany
     */
    protected $relation;
    /**
     * @var string name of the property referencing to this entity on the related entity (e.g helps to define how to set instance reference on the parent)
     */
    protected $relatedBy;
    
    
    
    ////////////////////////////
    // SQL properties
    protected $sqlColumnName;
    protected $sqlIsPrimary;
    protected $sqlJoin;
    protected $sqlBridge;
    protected $sqlAutoIncrement;



    /**
     * 
     * @param array $params array to construct the faceElement as described here :  TODO array description
     */
    function __construct($name=null,$params=array()) {
        $this->name         =  $name;
        
        $this->propertyName =  ValuesUtils::getIfArrayKey($params, "propertyName",$name);
        $this->setter       =  ValuesUtils::getIfArrayKey($params, "setter");
        $this->getter       =  ValuesUtils::getIfArrayKey($params, "getter");
        
        $this->defaultMap   =  ValuesUtils::getIfArrayKey($params, "defaultMap");
        
        $this->type         =  isset($params["class"])?"entity":"value";
        $this->class        =  ValuesUtils::getIfArrayKey($params, "class");
        $this->isIdentifier =  ValuesUtils::getIfArrayKey($params, "identifier",false);
        <commit_msg>Fixing uneeded elements<commit_after><?php

namespace Face\Core;

use Peek\Utils\ValuesUtils;

class EntityFaceElement{
    
    /**
     *
     * @var EntityFace
     */
    protected $parentFace;
    
    //entity properties
    protected $name;
    protected $propertyName;
    protected $setter;
    protected $getter;
   
    protected $defaultMap;


    protected $type;
    protected $class;
    
    protected $isIdentifier;
    
    ////////////////////////////
    // relation properties
    /**
     * @var string if it is an entity, it defines what kind of relation : hasOne|belongsTo|hasMany
     */
    protected $relation;
    /**
     * @var string name of the property referencing to this entity on the related entity (e.g helps to define how to set instance reference on the parent)
     */
    protected $relatedBy;
    
    
    
    ////////////////////////////
    // SQL properties
    protected $sqlColumnName;
    protected $sqlIsPrimary;
    protected $sqlJoin;
    protected $sqlBridge;
    protected $sqlAutoIncrement;



    /**
     * 
     * @param array $params array to construct the faceElement as described here :  TODO array description
     */
    function __construct($name="",$params=array()) {
        $this->name         =  $name;
        
        $this->propertyName =  ValuesUtils::getIfArrayKey($params, "propertyName",$name);
        $this->setter       =  ValuesUtils::getIfArrayKey($params, "setter");
        $this->getter       =  ValuesUtils::getIfArrayKey($params, "getter");
        
        $this->defaultMap   =  ValuesUtils::getIfArrayKey($params, "defaultMap");
        
        $this->type         =  isset($params["class"])?"entity":"value";
        $this->class        =  ValuesUtils::getIfArrayKey($params, "class");
        $this->isIdentifier =  ValuesUtils::getIfArrayKey($params, "identifier",false);
        
{'fraction_non_alphanumeric': 0.13911182450508294, 'fraction_numerical': 0.0, 'mean_word_length': 2.198460222412318, 'pattern_counts': {'":': 2, '<': 5, '<?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': '652185', 'n_tokens_mistral': 1040, 'n_tokens_neox': 1014, 'n_words': 252}