<commit_before><?php
namespace WoohooLabsTest\Yin\JsonApi\Utils;

use WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported;
use WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface;
use WoohooLabs\Yin\JsonApi\Hydrator\CreateHydratorTrait;
use WoohooLabs\Yin\JsonApi\Request\RequestInterface;

class StubCreateHydrator
{
    use CreateHydratorTrait;

    /**
     * @var bool
     */
    private $isClientGeneratedIdException;

    /**
     * @var string
     */
    private $generatedId;

    /**
     * @param bool $isClientGeneratedIdException
     * @param string $generatedId
     */
    public function __construct($isClientGeneratedIdException = false, $generatedId = "")
    {
        $this->isClientGeneratedIdException = $isClientGeneratedIdException;
        $this->generatedId = $generatedId;
    }

    /**
     * @inheritDoc
     */
    protected function validateType($data, ExceptionFactoryInterface $exceptionFactory)
    {
    }

    /**
     * @inheritDoc
     */
    protected function validateClientGeneratedId(
        $clientGeneratedId,
        RequestInterface $request,
        ExceptionFactoryInterface $exceptionFactory
    ) {
        if ($this->isClientGeneratedIdException) {
            throw new ClientGeneratedIdNotSupported($clientGeneratedId);
        }
    }

    /**
     * @inheritDoc
     */
    protected function generateId()<commit_msg>Fix unused parameters<commit_after><?php
namespace WoohooLabsTest\Yin\JsonApi\Utils;

use WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported;
use WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface;
use WoohooLabs\Yin\JsonApi\Hydrator\CreateHydratorTrait;
use WoohooLabs\Yin\JsonApi\Request\RequestInterface;

class StubCreateHydrator
{
    use CreateHydratorTrait;

    /**
     * @var bool
     */
    private $isClientGeneratedIdException;

    /**
     * @var string
     */
    private $generatedId;

    /**
     * @param bool $isClientGeneratedIdException
     * @param string $generatedId
     */
    public function __construct($isClientGeneratedIdException = false, $generatedId = "")
    {
        $this->isClientGeneratedIdException = $isClientGeneratedIdException;
        $this->generatedId = $generatedId;
    }

    /**
     * @inheritDoc
     */
    protected function validateType($data, ExceptionFactoryInterface $exceptionFactory)
    {
    }

    /**
     * @inheritDoc
     */
    protected function validateClientGeneratedId(
        $clientGeneratedId,
        RequestInterface $request,
        ExceptionFactoryInterface $exceptionFactory
    ) {
        if ($this->isClientGeneratedIdException) {
            throw $exceptionFactory->createClientGeneratedIdNotSupportedException($request, $clientGeneratedId);
        }
    }

    /**
     * @inheritDoc
     */
    protected function generateId()
{'fraction_non_alphanumeric': 0.0955571227080395, 'fraction_numerical': 0.0, 'mean_word_length': 3.0761494252873565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '402012', 'n_tokens_mistral': 805, 'n_tokens_neox': 794, 'n_words': 125}