<commit_before><?php
namespace Druidvav\PushClient;

use Druidvav\PushClient\Entity\Message;
use Druidvav\PushClient\Exception\BadapushClientException;
use Druidvav\PushClient\Exception\InternalErrorException;

class BadapushQueueClient extends BadapushClient
{
    protected $method = 'enqueuePayload';

    public function retrieveErrors($fromId = 0)
    {
        $ch = curl_init($this->apiUrl);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
            'id' => 1,<commit_msg>retrieveErrors docblock fixed<commit_after><?php
namespace Druidvav\PushClient;

use Druidvav\PushClient\Entity\Message;
use Druidvav\PushClient\Exception\BadapushClientException;
use Druidvav\PushClient\Exception\InternalErrorException;

class BadapushQueueClient extends BadapushClient
{
    protected $method = 'enqueuePayload';

    /**
     * @param int $fromId
     * @return Message[]
     * @throws BadapushClientException
     * @throws InternalErrorException
     */
    public function retrieveErrors($fromId = 0)
    {
        $ch = curl_init($this->apiUrl);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
            'id' => 1,
{'fraction_non_alphanumeric': 0.10267857142857142, 'fraction_numerical': 0.00744047619047619, 'mean_word_length': 4.0754716981132075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1362510', 'n_tokens_mistral': 440, 'n_tokens_neox': 423, 'n_words': 76}