<commit_before><?php

class MessagesClient extends sfCouchdbClient {
  public static $messages = null;

  public function retrieveMessages() {
    if (!self::$messages)
      self::$messages = parent::retrieveDocumentById('MESSAGES');
    return self::$messages;
  }

  public function getMessage($id) {
    try {
      return $this->retrieveMessages()->{$id};
    }catch(Exception $e) {
      return "PAS DE MESSAGE TROUVÉ !!";
    }
  }
}
<commit_msg>test message encodage<commit_after><?php

class MessagesClient extends sfCouchdbClient {
  public static $messages = null;

  public function retrieveMessages() {
    if (!self::$messages)
      self::$messages = parent::retrieveDocumentById('MESSAGES');
    return self::$messages;
  }

  public function getMessage($id) {
    try {
      return htmlspecialchars_decode($this->retrieveMessages()->{$id});
    }catch(Exception $e) {
      return "PAS DE MESSAGE TROUVÉ !!";
    }
  }
}

{'fraction_non_alphanumeric': 0.13631522896698617, 'fraction_numerical': 0.0, 'mean_word_length': 3.8205128205128207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6000265', 'n_tokens_mistral': 286, 'n_tokens_neox': 289, 'n_words': 64}