<commit_before><?php

  $cmd = array('level' => 'none',
               'count' => true,
               'help' => 'Displays random or specific quote');
  
  if($execute) {
    if(sizeof($this->db[$this->target]['data']['quotes']) > 0) {
      if(isset($this->data[4]) && is_numeric(ltrim($this->data[4], '#')) && ltrim($this->data[4], '#') > 0) {
        if(array_key_exists((ltrim($this->data[4], '#')-1), $this->db[$this->target]['data']['quotes'])) {
          $quote = $this->db[$this->target]['data']['quotes'][(ltrim($this->data[4], '#')-1)];
          $this->say($this->target, false, '#'.ltrim($this->data[4], '#').' - "'.$quote['msg'].'" - ('.date('d.m.Y H:i:s', $quote['time']).')');
        }
      } else {
        $quoteid = rand(0, (sizeof($this->db[$this->target]['data']['quotes'])-1));
        $quote = $this->db[$this->target]['data']['quotes'][$quoteid];
        $this->say($this->target, false, '#'.($quoteid+1).' - "'.$quote['msg'].'" - ('.date('d.m.Y H:i:s', $quote['time']).')');
      }
    }
  }
  
?><commit_msg>quote fix<commit_after><?php

  $cmd = array('level' => 'none',
               'count' => true,
               'help' => 'Displays random or specific quote');
  
  if($execute) {
    if(sizeof($this->db[$this->target]['data']['quotes']) > 0) {
      if(isset($this->data[4]) && is_numeric(ltrim($this->data[4], '#')) && ltrim($this->data[4], '#') > 0) {
        if(array_key_exists((ltrim($this->data[4], '#')-1), $this->db[$this->target]['data']['quotes'])) {
          $quote = $this->db[$this->target]['data']['quotes'][(ltrim($this->data[4], '#')-1)];
          $this->say($this->target, false, '#'.ltrim($this->data[4], '#').' - "'.$quote['msg'].'" - ('.date('d.m.Y H:i:s', $quote['time']).')');
        }
      } else {
        $quoteid = array_rand($this->db[$this->target]['data']['quotes']);
        $quote = $this->db[$this->target]['data']['quotes'][$quoteid];
        $this->say($this->target, false, '#'.($quoteid+1).' - "'.$quote['msg'].'" - ('.date('d.m.Y H:i:s', $quote['time']).')');
      }
    }
  }
  
?>
{'fraction_non_alphanumeric': 0.32508491023774866, 'fraction_numerical': 0.011644832605531296, 'mean_word_length': 3.2081632653061223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, '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': '3572923', 'n_tokens_mistral': 764, 'n_tokens_neox': 759, 'n_words': 90}