<commit_before><?php
namespace paragraph1\phpFCM;

use GuzzleHttp;

/**
 *
 * @author palbertini
 *
 */
class Client
{
    const DEFAULT_API_URL = 'https://fcm.googleapis.com/fcm/send';

    private $apiKey;
    private $proxyApiUrl;
    private $recipients = array();
    private $recipientType;
    private $guzzleClient;

    public function injectGuzzleHttpClient(GuzzleHttp\Client $client)
    {
        $this->guzzleClient = $client;
    }

    /**
     * where should the message go
     *
     * @param Recipient $recipient
     *
     * @return \phpFCM\Client
     */
    public function addRecipient(Recipient $recipient)
    {
        $this->recipients[] = $recipient;

        if (!isset($this->recipientType)) {
            $this->recipientType = get_class($recipient);
        }
        if ($this->recipientType !== get_class($recipient)) {
            throw new \InvalidArgumentException('mixed recepient types are not supported by FCM');
        }

        return $this;
    }

    /**
     * people can overwrite the api url with a proxy server url of their own
     *
     * @param unknown $url
     *
     * @return \phpFCM\Client
     */
    public function setProxyApiUrl($url)
    {
        $this->proxyApiUrl = $url;
        return $this;
    }

    public function send(Message $message)
    {
        // TODO
    }
}<commit_msg>fixed namespaces in comment blocks<commit_after><?php
namespace paragraph1\phpFCM;

use GuzzleHttp;

/**
 *
 * @author palbertini
 *
 */
class Client
{
    const DEFAULT_API_URL = 'https://fcm.googleapis.com/fcm/send';

    private $apiKey;
    private $proxyApiUrl;
    private $recipients = array();
    private $recipientType;
    private $guzzleClient;

    public function injectGuzzleHttpClient(GuzzleHttp\Client $client)
    {
        $this->guzzleClient = $client;
    }

    /**
     * where should the message go
     *
     * @param Recipient $recipient
     *
     * @return \paragraph1\phpFCM\Client
     */
    public function addRecipient(Recipient $recipient)
    {
        $this->recipients[] = $recipient;

        if (!isset($this->recipientType)) {
            $this->recipientType = get_class($recipient);
        }
        if ($this->recipientType !== get_class($recipient)) {
            throw new \InvalidArgumentException('mixed recepient types are not supported by FCM');
        }

        return $this;
    }

    /**
     * people can overwrite the api url with a proxy server url of their own
     *
     * @param unknown $url
     *
     * @return \paragraph1\phpFCM\Client
     */
    public function setProxyApiUrl($url)
    {
        $this->proxyApiUrl = $url;
        return $this;
    }

    public function send(Message $message)
    {
        // TODO
    }
}
{'fraction_non_alphanumeric': 0.1149508912331757, 'fraction_numerical': 0.0014550745725718443, 'mean_word_length': 2.2544378698224854, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '6909248', 'n_tokens_mistral': 880, 'n_tokens_neox': 822, 'n_words': 194}