<commit_before><?php

declare(strict_types=1);

namespace BEAR\Resource;

/**
 * @property $this $lazy
 * @property $this $eager
 *
 * @psalm-suppress PropertyNotSetInConstructor for DSL
 */
final class Request extends AbstractRequest
{
    const GET = 'get';

    const POST = 'post';

    const PUT = 'put';

    const PATCH = 'patch';

    const DELETE = 'delete';

    const HEAD = 'head';

    const OPTIONS = 'options';

    /**
     * @return array<string, string>|int|mixed|self
     *
     * @psalm-suppress ImplementedReturnTypeMismatch
     */
    public function __get(string $name)
    {
        if ($name === 'eager' || $name === 'lazy') {
            $this->in = $name;

            return $this;
        }
        if (in_array($name, ['code', 'headers', 'body'], true)) {
            return parent::__get($name);
        }

        throw new \OutOfRangeException($name);
    }
<commit_msg>add const visibility<commit_after><?php

declare(strict_types=1);

namespace BEAR\Resource;

/**
 * @property $this $lazy
 * @property $this $eager
 *
 * @psalm-suppress PropertyNotSetInConstructor for DSL
 */
final class Request extends AbstractRequest
{
    public const GET = 'get';

    public const POST = 'post';

    public const PUT = 'put';

    public const PATCH = 'patch';

    public const DELETE = 'delete';

    public const HEAD = 'head';

    public const OPTIONS = 'options';

    /**
     * @return array<string, string>|int|mixed|self
     *
     * @psalm-suppress ImplementedReturnTypeMismatch
     */
    public function __get(string $name)
    {
        if ($name === 'eager' || $name === 'lazy') {
            $this->in = $name;

            return $this;
        }
        if (in_array($name, ['code', 'headers', 'body'], true)) {
            return parent::__get($name);
        }

        throw new \OutOfRangeException($name);
    }

{'fraction_non_alphanumeric': 0.14469453376205788, 'fraction_numerical': 0.0010718113612004287, 'mean_word_length': 2.470260223048327, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1725383', 'n_tokens_mistral': 606, 'n_tokens_neox': 573, 'n_words': 147}