<commit_before><?php

namespace AppBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Behat\Transliterator\Transliterator;

/**
 * @MongoDB\EmbeddedDocument
 */
class Prestation {

    /**
     * @MongoDB\String
     */
    protected $identifiant;

    /**
     * @MongoDB\String
     */
    protected $nom;

    /**
     * @MongoDB\String
     */
    protected $nomCourt;

    /**
     * @MongoDB\String
     */
    protected $nbPassages;


    /**
     * Set nom
     *
     * @param string $nom
     * @return self
     */
    public function setNom($nom) {
        $this->nom = $nom;
        return $this;
    }

    /**
     * Get nom
     *
     * @return string $nom
     */
    public function getNom() {
        return $this->nom;
    }

    /**
     * Set nbPassages
     *
     * @param string $nbPassages
     * @return self
     */
    public function setNbPassages($nbPassages) {
        $this->nbPassages = $nbPassages;
        return $this;
    }

    /**
     * Get nbPassages
     *
     * @return string $nbPassages
     */
    public function getNbPassages() {
        return $this->nbPassages;
    }

    public function getNomToString() {

        return $this->getNom();
    }

    public function getNomSimplifieToString() {
      $nom_libelles = explode('-', $this->getIdentifiant());
      $mot_rongeur = array('DERATISATION', 'RONGEURS');
      $mot_puce = array('RAMPANTS');
      $mot_moustique = array('VOLANTS');
      $mot_cafard = array('BLATTES', 'PUNAISES');
      $mot_chenille = array('CHENILLES');
      $mot_pigeon = array('DEPIGEONNAGE');
      $mot_bois = array('TRAITEMENT', 'BOIS');
      $mot_travaux = array('TRAVAUX', 'DIVERS');
      $mot_DEIV = array('MAINTENANCE', 'D.E.I.V');
      $mot_desinfection = array('DESINFECTION','ASSAINISSEMENT');
      if($this->isPictoForLibelles($nom_libelles, $mot_rongeur)){
          if($this->isPictoForLibelles($nom_libelles,array('RATS'))){
              return "rats";
          }
          if($this->isPictoForLibelles($nom_libelles,array('SOURIS'))){
              return "souris";
          }
          if($this->isPictoForLibelles($nom_libelles,array('LOIRS'))){
              return "loirs";
          }
          if($this->isPictoForLibelles($nom_libelles,array('SURMULOTS'))){
              return "surmulots";
          }
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_cafard)){
          return 'cafard';
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_puce)){
          return 'puce';
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_moustique)){<commit_msg>punaise vs cafard<commit_after><?php

namespace AppBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Behat\Transliterator\Transliterator;

/**
 * @MongoDB\EmbeddedDocument
 */
class Prestation {

    /**
     * @MongoDB\String
     */
    protected $identifiant;

    /**
     * @MongoDB\String
     */
    protected $nom;

    /**
     * @MongoDB\String
     */
    protected $nomCourt;

    /**
     * @MongoDB\String
     */
    protected $nbPassages;


    /**
     * Set nom
     *
     * @param string $nom
     * @return self
     */
    public function setNom($nom) {
        $this->nom = $nom;
        return $this;
    }

    /**
     * Get nom
     *
     * @return string $nom
     */
    public function getNom() {
        return $this->nom;
    }

    /**
     * Set nbPassages
     *
     * @param string $nbPassages
     * @return self
     */
    public function setNbPassages($nbPassages) {
        $this->nbPassages = $nbPassages;
        return $this;
    }

    /**
     * Get nbPassages
     *
     * @return string $nbPassages
     */
    public function getNbPassages() {
        return $this->nbPassages;
    }

    public function getNomToString() {

        return $this->getNom();
    }

    public function getNomSimplifieToString() {
      $nom_libelles = explode('-', $this->getIdentifiant());
      $mot_rongeur = array('DERATISATION', 'RONGEURS');
      $mot_puce = array('RAMPANTS');
      $mot_moustique = array('VOLANTS');
      $mot_cafard = array('BLATTES');
      $mot_punaise = array('PUNAISES');
      $mot_chenille = array('CHENILLES');
      $mot_pigeon = array('DEPIGEONNAGE');
      $mot_bois = array('TRAITEMENT', 'BOIS');
      $mot_travaux = array('TRAVAUX', 'DIVERS');
      $mot_DEIV = array('MAINTENANCE', 'D.E.I.V');
      $mot_desinfection = array('DESINFECTION','ASSAINISSEMENT');
      if($this->isPictoForLibelles($nom_libelles, $mot_rongeur)){
          if($this->isPictoForLibelles($nom_libelles,array('RATS'))){
              return "rats";
          }
          if($this->isPictoForLibelles($nom_libelles,array('SOURIS'))){
              return "souris";
          }
          if($this->isPictoForLibelles($nom_libelles,array('LOIRS'))){
              return "loirs";
          }
          if($this->isPictoForLibelles($nom_libelles,array('SURMULOTS'))){
              return "surmulots";
          }
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_cafard)){
          return 'cafard';
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_punaise)){
          return 'punaise';
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_puce)){
          return 'puce';
      }elseif($this->isPictoForLibelles($nom_libelles, $mot_moustique)){
{'fraction_non_alphanumeric': 0.1498789797058276, 'fraction_numerical': 0.0, 'mean_word_length': 2.349127182044888, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '1451091', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1843, 'n_words': 270}