<commit_before><?php


namespace Longman\TelegramBot\Entities\ChatMember;


use Longman\TelegramBot\Entities\Entity;

class Factory extends \Longman\TelegramBot\Entities\Factory
{
    public function make(array $data, string $bot_username): Entity
    {
        var_dump($data);
    }
}
<commit_msg>Filled the ChatMember Factory<commit_after><?php


namespace Longman\TelegramBot\Entities\ChatMember;


use Longman\TelegramBot\Entities\Entity;
use Longman\TelegramBot\Exception\TelegramException;

class Factory extends \Longman\TelegramBot\Entities\Factory
{
    public function make(array $data, string $bot_username): Entity
    {
        $status = $data['status'];
        switch ($status) {
            case 'creator':
                return new ChatMemberOwner($data, $bot_username);
            case 'administrator':
                return new ChatMemberAdministrator($data, $bot_username);
            case 'member':
                return new ChatMemberMember($data, $bot_username);
            case 'restricted':
                return new ChatMemberRestricted($data, $bot_username);
            case 'left':
                return new ChatMemberLeft($data, $bot_username);
            case 'kicked':
                return new ChatMemberBanned($data, $bot_username);
        }

        throw new TelegramException('Unexpected ChatMember type');
    }
}

{'fraction_non_alphanumeric': 0.09824046920821114, 'fraction_numerical': 0.0, 'mean_word_length': 2.781163434903047, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3728770', 'n_tokens_mistral': 373, 'n_tokens_neox': 365, 'n_words': 83}