<commit_before><?php
/**
 * Vainyl
 *
 * PHP Version 7
 *
 * @package   Http
 * @license   https://opensource.org/licenses/MIT MIT License
 * @link      https://vainyl.com
 */
declare(strict_types=1);

namespace Vainyl\Http\Decorator;

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;

/**
 * Class AbstractRequestDecorator
 *
 * @author <NAME> <<EMAIL>>
 *
 * @method RequestInterface getMessage
 */
abstract class AbstractRequestDecorator extends AbstractMessageDecorator implements RequestInterface
{
    /**
     * AbstractRequestDecorator constructor.
     *
     * @param RequestInterface $request
     */
    public function __construct(RequestInterface $request)
    {
        parent::__construct($request);
    }

    /**
     * @inheritDoc
     */
    public function getRequestTarget()
    {
        return $this->getMessage()->getRequestTarget();
    }

    /**
     * @inheritDoc
     */
    public function withRequestTarget($requestTarget)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withRequestTarget($requestTarget);

        return $copy;
    }

    /**
     * @inheritDoc
     */
    public function getMethod()
    {
        return $this->getMessage()->getRequestTarget();
    }

    /**
     * @inheritDoc
     */
    public function withMethod($method)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withMethod($method);

        return $copy;
    }

    /**
     * @inheritDoc
     */
    public function getUri()
    {
        return $this->getMessage()->getRequestTarget();
    }

    /**
     * @inheritDoc
     */
    public function withUri(UriInterface $uri, $preserveHost = false)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withUri($uri, $preserveHost);

        return $copy;
    }
}<commit_msg>Fixed copy-paste typo<commit_after><?php
/**
 * Vainyl
 *
 * PHP Version 7
 *
 * @package   Http
 * @license   https://opensource.org/licenses/MIT MIT License
 * @link      https://vainyl.com
 */
declare(strict_types=1);

namespace Vainyl\Http\Decorator;

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;

/**
 * Class AbstractRequestDecorator
 *
 * @author <NAME> <<EMAIL>>
 *
 * @method RequestInterface getMessage
 */
abstract class AbstractRequestDecorator extends AbstractMessageDecorator implements RequestInterface
{
    /**
     * AbstractRequestDecorator constructor.
     *
     * @param RequestInterface $request
     */
    public function __construct(RequestInterface $request)
    {
        parent::__construct($request);
    }

    /**
     * @inheritDoc
     */
    public function getRequestTarget()
    {
        return $this->getMessage()->getRequestTarget();
    }

    /**
     * @inheritDoc
     */
    public function withRequestTarget($requestTarget)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withRequestTarget($requestTarget);

        return $copy;
    }

    /**
     * @inheritDoc
     */
    public function getMethod()
    {
        return $this->getMessage()->getRequestTarget();
    }

    /**
     * @inheritDoc
     */
    public function withMethod($method)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withMethod($method);

        return $copy;
    }

    /**
     * @inheritDoc
     */
    public function getUri()
    {
        return $this->getMessage()->getUri();
    }

    /**
     * @inheritDoc
     */
    public function withUri(UriInterface $uri, $preserveHost = false)
    {
        $copy = clone $this;
        $copy->message = $this->getMessage()->withUri($uri, $preserveHost);

        return $copy;
    }
}
{'fraction_non_alphanumeric': 0.13690155997848305, 'fraction_numerical': 0.0010758472296933835, 'mean_word_length': 2.4181985294117645, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 39, 'https://': 4, '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': '2639017', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1071, 'n_words': 202}