<commit_before><?php declare(strict_types=1);
namespace Akismet;

use function GuzzleHttp\Psr7\{build_query};
use GuzzleHttp\{Client as HttpClient};
use GuzzleHttp\Psr7\{Request, Uri, UriResolver};
use Psr\Http\Message\{ResponseInterface, UriInterface};
use Symfony\Component\EventDispatcher\{EventDispatcher};

/** Submits comments to the [Akismet](https://akismet.com) service. */
class Client {

  /** @var string An event that is triggered when a request is made to the remote service. */
  const eventRequest = RequestEvent::class;

  /** @var string An event that is triggered when a response is received from the remote service. */
  const eventResponse = ResponseEvent::class;

  /** @var string The Akismet API key. */
  private string $apiKey;

  /** @var Blog The front page or home URL of the instance making requests. */
  private Blog $blog;

  /** @var EventDispatcher The event dispatcher. */
  private EventDispatcher $dispatcher;

  /** @var UriInterface The URL of the API end point. */
  private UriInterface $endPoint;

  /** @var bool Value indicating whether the client operates in test mode. */
  private bool $isTest = false;

  /** @var string The user agent string to use when making requests. */
  private string $userAgent;

  /**<commit_msg>Removed the `eventRequest` and `eventResponse` from the `Client` class<commit_after><?php declare(strict_types=1);
namespace Akismet;

use function GuzzleHttp\Psr7\{build_query};
use GuzzleHttp\{Client as HttpClient};
use GuzzleHttp\Psr7\{Request, Uri, UriResolver};
use Psr\Http\Message\{ResponseInterface, UriInterface};
use Symfony\Component\EventDispatcher\{EventDispatcher};

/** Submits comments to the [Akismet](https://akismet.com) service. */
class Client {

  /** @var string The Akismet API key. */
  private string $apiKey;

  /** @var Blog The front page or home URL of the instance making requests. */
  private Blog $blog;

  /** @var EventDispatcher The event dispatcher. */
  private EventDispatcher $dispatcher;

  /** @var UriInterface The URL of the API end point. */
  private UriInterface $endPoint;

  /** @var bool Value indicating whether the client operates in test mode. */
  private bool $isTest = false;

  /** @var string The user agent string to use when making requests. */
  private string $userAgent;

  /**
{'fraction_non_alphanumeric': 0.10899653979238755, 'fraction_numerical': 0.0025951557093425604, 'mean_word_length': 4.174496644295302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '453672', 'n_tokens_mistral': 674, 'n_tokens_neox': 631, 'n_words': 250}