<commit_before><?php
 /**
 *
 */
abstract class Vehicule
{
    protected $id;
    protected $type ;
    protected $brand;
    protected $modele;
    protected $immatriculation;
    protected $price;
    protected $description;
    public function __construct(array $donnees)
    {
        $this->type=static::class;
        $this->hydrate($donnees);
    }

    public function getId()
    {
        return $this->id;
    }

    public function getType()
    {
        return $this->type;
    }
    public function getBrand()
    {
        return $this->brand;
    }
    public function getModele()
    {
        return $this->modele;
    }
    public function getImmatriculation()<commit_msg>make the method hydrate for the abstract class Vehicule<commit_after><?php
 /**
 *
 */
abstract class Vehicule
{
    protected $id;
    protected $type ;
    protected $brand;
    protected $modele;
    protected $immatriculation;
    protected $price;
    protected $description;
    public function __construct(array $donnees)
    {
        $this->type=static::class;
        $this->hydrate($donnees);
    }

    public function hydrate(array $donnes)
    {
      foreach ($donnees as $key => $value) {
          $method = "set" . ucfirst($key) ;
          if (method_exists($this, $method)) {
              $this->$method($value);
          }
      }
    }

    public function getId()
    {
        return $this->id;
    }

    public function getType()
    {
        return $this->type;
    }
    public function getBrand()
    {
        return $this->brand;
    }
    public function getModele()
    {
        return $this->modele;
    }
    public function getImmatriculation()
{'fraction_non_alphanumeric': 0.11813842482100238, 'fraction_numerical': 0.0, 'mean_word_length': 2.140449438202247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '3701003', 'n_tokens_mistral': 519, 'n_tokens_neox': 505, 'n_words': 117}