<commit_before><?php
namespace Raideer\Tweech\Chat;
use Raideer\Tweech\Client\Client;

class Chat{

  protected $chat;
  protected $client;
  protected $helper;

  protected $joined = false;

  public function __construct(Client $client, $chat)
  {
    if(!starts_with($chat, "#"))
    {
      $chat = "#$chat";
    }

    $this->client = $client;
    $this->chat = $chat;
    $this->helper = new ChatHelper($this);
  }

  public function __call($name, $arguments){
    if(method_exists($this->helper, $name))
    {
      call_user_func_array(array($this->helper, $name), $arguments);
    }
  }

  public function privmsg($message){
    $this->client->command("PRIVMSG", $this->getName(). " :" . $message);
  }

  public function close(){
    $this->client->command("PART", $this->getName());
  }

  public function read(){
    $this->client->command("JOIN", $this->getName());
  }

  public function getName(){
    return $this->chat;
  }

}
<commit_msg>Added getter for the helper<commit_after><?php
namespace Raideer\Tweech\Chat;
use Raideer\Tweech\Client\Client;

class Chat{

  protected $chat;
  protected $client;
  protected $helper;

  protected $joined = false;

  public function __construct(Client $client, $chat)
  {
    if(!starts_with($chat, "#"))
    {
      $chat = "#$chat";
    }

    $this->client = $client;
    $this->chat = $chat;
    $this->helper = new ChatHelper($this);
  }

  public function __call($name, $arguments){
    if(method_exists($this->helper, $name))
    {
      call_user_func_array(array($this->helper, $name), $arguments);
    }
  }

  public function privmsg($message){
    $this->client->command("PRIVMSG", $this->getName(). " :" . $message);
  }

  public function close(){
    $this->client->command("PART", $this->getName());
  }

  public function read(){
    $this->client->command("JOIN", $this->getName());
  }

  public function getName(){
    return $this->chat;
  }

  public function getHelper(){
    return $this->helper;
  }
}

{'fraction_non_alphanumeric': 0.17934508816120906, 'fraction_numerical': 0.0, 'mean_word_length': 3.4529147982062782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 34, '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': '1970281', 'n_tokens_mistral': 672, 'n_tokens_neox': 656, 'n_words': 131}