<commit_before><?php
namespace Apikr\Aligo\Sms;

use Apikr\Aligo\Sms\Exception\RequestException;
use Apikr\Aligo\Sms\Exception\SmsDeliveryException;
use Apikr\Common\Result;
use GuzzleHttp\Client;

class Api
{
    /** @var \GuzzleHttp\Client */
    protected $client;

    /** @var \Apikr\Aligo\Sms\Configuration */
    protected $config;

    /** @var string */
    protected $sendNumber;

    public function __construct(Client $client, Configuration $config)
    {
        $this->client = $client;
        $this->config = $config;
    }

    public function send($receiver, $text, $title = null, $sender = null)
    {
        try {
            $form = [
                'title' => ($title ?: $this->config->title),
                'sender' => $this->escapeNumber($sender ?: $this->config->sender),
                'receiver' => $this->escapeNumber($receiver),
                'msg' => $text,
            ];
            if ($this->config->debug) {
                $form['testmode_yn'] = 'Y';
            }
            return $this->request('', $form);
        } catch (RequestException $e) {
            throw new SmsDeliveryException($receiver, $text, $e);
        }<commit_msg>Aligo Api 제목 제대로 안나가는 문제 해결<commit_after><?php
namespace Apikr\Aligo\Sms;

use Apikr\Aligo\Sms\Exception\RequestException;
use Apikr\Aligo\Sms\Exception\SmsDeliveryException;
use Apikr\Common\Result;
use GuzzleHttp\Client;

class Api
{
    /** @var \GuzzleHttp\Client */
    protected $client;

    /** @var \Apikr\Aligo\Sms\Configuration */
    protected $config;

    /** @var string */
    protected $sendNumber;

    public function __construct(Client $client, Configuration $config)
    {
        $this->client = $client;
        $this->config = $config;
    }

    public function send($receiver, $text, $title = null, $sender = null)
    {
        try {
            $form = [
                'subject' => ($title ?: $this->config->title),
                'sender' => $this->escapeNumber($sender ?: $this->config->sender),
                'receiver' => $this->escapeNumber($receiver),
                'msg' => $text,
            ];
            if ($this->config->debug) {
                $form['testmode_yn'] = 'Y';
            }
            return $this->request('', $form);
        } catch (RequestException $e) {
            throw new SmsDeliveryException($receiver, $text, $e);
        }
{'fraction_non_alphanumeric': 0.15391084945332212, 'fraction_numerical': 0.0, 'mean_word_length': 2.126149802890933, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '2719872', 'n_tokens_mistral': 753, 'n_tokens_neox': 739, 'n_words': 146}