<commit_before><?php

namespace Bauhaus\Http;

use Psr\Http\Message\ResponseInterface;
use Bauhaus\Http\Message;
use Bauhaus\Http\Response\Status;
use Bauhaus\Http\Response\StatusInterface;

class Response extends Message implements ResponseInterface
{
    private $status = null;

    public function __construct(StatusInterface $status = null)
    {
        if (null === $status) {
            $status = new Status(200);
        }

        $this->status = $status;
    }

    public function withStatus($code, $reasonPhrase = '')
    {
        $status = new Status($code, $reasonPhrase);<commit_msg>Replace magic number with symbolic constant<commit_after><?php

namespace Bauhaus\Http;

use Psr\Http\Message\ResponseInterface;
use Bauhaus\Http\Message;
use Bauhaus\Http\Response\Status;
use Bauhaus\Http\Response\StatusInterface;

class Response extends Message implements ResponseInterface
{
    const DEFAULT_STATUS_CODE = 200;

    private $status = null;

    public function __construct(StatusInterface $status = null)
    {
        if (null === $status) {
            $status = new Status(self::DEFAULT_STATUS_CODE);
        }

        $this->status = $status;
    }

    public function withStatus($code, $reasonPhrase = '')
    {
        $status = new Status($code, $reasonPhrase);
{'fraction_non_alphanumeric': 0.10835913312693499, 'fraction_numerical': 0.0046439628482972135, 'mean_word_length': 3.3535353535353534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6226597', 'n_tokens_mistral': 374, 'n_tokens_neox': 366, 'n_words': 89}