<commit_before><?php

namespace Orbt\ResourceManager;

use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Guzzle\Common\Collection;
use Guzzle\Http\Client;

/**
 * A generic resource manager.
 *
 * A resource manager takes care of fetching resources and processing them by dispatching event using the Symfony Event
 * Dispatcher component.
 */
class ResourceManager
{
    /**
     * Event dispatcher.
     * @var EventDispatcherInterface
     */
    private $dispatcher;

    /**
     * Backend server base.
     * @var string
     */
    private $backendBaseUrl;

    /**
     * Guzzle client.
     * @var Client
     */
    private $client;

    /**
     * Creates a resource manager for a backend server.
     *
     * @param EventDispatcherInterface $dispatcher
     *   Event dispatcher.
     * @param string $backendBaseUrl
     *   Backend server base URL.
     * @param array|Collection $clientConfig
     *   Backend Guzzle client options.
     */
    public function __construct(EventDispatcherInterface $dispatcher, $backendBaseUrl, $clientConfig = NULL)
    {
        $this->dispatcher = $dispatcher;
        $this->backendBaseUrl = $backendBaseUrl;
        $this->client = new Client($backendBaseUrl, $clientConfig);
    }

    /**
     * Returns the HTTP client for this manager.
     */
    public function getClient()
    {
        return $this->client;
    }
}<commit_msg>Change comment to reference backend as such.<commit_after><?php

namespace Orbt\ResourceManager;

use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Guzzle\Common\Collection;
use Guzzle\Http\Client;

/**
 * A generic resource manager.
 *
 * A resource manager takes care of fetching resources and processing them by dispatching event using the Symfony Event
 * Dispatcher component.
 */
class ResourceManager
{
    /**
     * Event dispatcher.
     * @var EventDispatcherInterface
     */
    private $dispatcher;

    /**
     * Backend server base.
     * @var string
     */
    private $backendBaseUrl;

    /**
     * Guzzle backend client.
     * @var Client
     */
    private $client;

    /**
     * Creates a resource manager for a backend server.
     *
     * @param EventDispatcherInterface $dispatcher
     *   Event dispatcher.
     * @param string $backendBaseUrl
     *   Backend server base URL.
     * @param array|Collection $clientConfig
     *   Backend Guzzle client options.
     */
    public function __construct(EventDispatcherInterface $dispatcher, $backendBaseUrl, $clientConfig = NULL)
    {
        $this->dispatcher = $dispatcher;
        $this->backendBaseUrl = $backendBaseUrl;
        $this->client = new Client($backendBaseUrl, $clientConfig);
    }

    /**
     * Returns the backend client for this manager.
     */
    public function getClient()
    {
        return $this->client;
    }
}
{'fraction_non_alphanumeric': 0.09425367904695164, 'fraction_numerical': 0.0, 'mean_word_length': 2.6369426751592355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3055019', 'n_tokens_mistral': 792, 'n_tokens_neox': 764, 'n_words': 223}