<commit_before><?php
namespace App;

class Coupon {

  private $list;
  private $error;

  public function __construct(){
    $this->list = array();
    $this->error = array();
  }

  public function addToList($elem){
    $this->list[] = $elem;
    return true;
  }

  public function addError($err){
    $this->error[] = $err;
    return true;
  }

  public function getList(){
    return $this->list;
  }

  public function getErrors(){
    return $this->error;
  }

  public function sort(){
    sort($this->list);
  }

  public function inList($elem){
    return in_array($elem, $this->list);
  }

  public function toArray(){
    return array( "cupons" =>
      array(
        "list" => $this->list,
        "error" => $this->error
      )
    );
  }

}<commit_msg>Updating<commit_after><?php
namespace App;

class Coupon {

  private $list;
  private $error;

  public function __construct(){
    $this->list = array();
    $this->error = array();
  }

  public function addToList($elem){
    $this->list[] = $elem;
    return true;
  }

  public function addError($err){
    $this->error[] = $err;
    return true;
  }

  public function getList(){
    return $this->list;
  }

  public function getErrors(){
    return $this->error;
  }

  public function sort(){
    sort($this->list);
  }

  public function inList($elem){
    return in_array($elem, $this->list);
  }

  // Function needed to return a JSON
  public function toArray(){
    return array( "cupons" =>
      array(
        "list" => $this->list,
        "error" => $this->error
      )
    );
  }

}
{'fraction_non_alphanumeric': 0.16020343293070566, 'fraction_numerical': 0.0, 'mean_word_length': 2.610091743119266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '452950', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 128}