<commit_before><?php
namespace App\Bots\QuestionProcessor;
use App\Bots\QuestionProcessor;
use App\Bots\QuestionProcessor\AbstractQuestion;
class QuestionProcessor
{
    protected $message;
    protected $telegram;
    protected $output;
    protected $questions;

    public function __construct()
    {

    }

    public function process($message)
    {
        foreach($this->questions as $question) {
            if($question->getQuestion() == $message->getReplyToMessage()->getText()) {
                $text = $question->handle($message);
                $this->telegram->sendMessage('chat_id' => $message->getChat()->getId(), 'text' => $text);
                return;
            }
        }

    }

    public function addQuestions(array $questions)
    {
        foreach($questions as $question) {
            if(!($question instanceof AbstractQuestion)) {
                throw new Exception('Object is not of AbstractQuestion');
                continue;
            }
            $this->questions[] = $question;
        }
    }


}<commit_msg>Solved syntax error with sendmessage in QuestionProcessor<commit_after><?php
namespace App\Bots\QuestionProcessor;
use App\Bots\QuestionProcessor;
use App\Bots\QuestionProcessor\AbstractQuestion;
class QuestionProcessor
{
    protected $message;
    protected $telegram;
    protected $output;
    protected $questions;

    public function __construct()
    {

    }

    public function process($message)
    {
        foreach($this->questions as $question) {
            if($question->getQuestion() == $message->getReplyToMessage()->getText()) {
                $text = $question->handle($message);
                $this->telegram->sendMessage(['chat_id' => $message->getChat()->getId(), 'text' => $text]);
                return;
            }
        }

    }

    public function addQuestions(array $questions)
    {
        foreach($questions as $question) {
            if(!($question instanceof AbstractQuestion)) {
                throw new Exception('Object is not of AbstractQuestion');
                continue;
            }
            $this->questions[] = $question;
        }
    }


}
{'fraction_non_alphanumeric': 0.12326227988878591, 'fraction_numerical': 0.0, 'mean_word_length': 2.306278713629403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '3863422', 'n_tokens_mistral': 566, 'n_tokens_neox': 534, 'n_words': 116}