<commit_before><?php

namespace BinSoul\Bridge\Http\Message;

use BinSoul\IO\Stream\AccessMode;
use BinSoul\IO\Stream\Stream as IoStream;
use Psr\Http\Message\StreamInterface;

/**
 * Decorates an IO\Stream to implement the PSR-7 StreamInterface.
 */
class Stream implements StreamInterface
{
    /** @var IoStream */
    private $stream;

    /**
     * Constructs an instance of this class.
     *
     * @param IoStream $stream
     * @param string   $mode   desired access mode
     */
    public function __construct(IoStream $stream, $mode)
    {
        $stream->open(new AccessMode($mode));

        $this->stream = $stream;
    }

    public function __toString()
    {
        try {
            $this->rewind();<commit_msg>Change the visibility of the stream property to protected<commit_after><?php

namespace BinSoul\Bridge\Http\Message;

use BinSoul\IO\Stream\AccessMode;
use BinSoul\IO\Stream\Stream as IoStream;
use Psr\Http\Message\StreamInterface;

/**
 * Decorates an IO\Stream to implement the PSR-7 StreamInterface.
 */
class Stream implements StreamInterface
{
    /** @var IoStream */
    protected $stream;

    /**
     * Constructs an instance of this class.
     *
     * @param IoStream $stream
     * @param string   $mode   desired access mode
     */
    public function __construct(IoStream $stream, $mode)
    {
        $stream->open(new AccessMode($mode));

        $this->stream = $stream;
    }

    public function __toString()
    {
        try {
            $this->rewind();
{'fraction_non_alphanumeric': 0.11243386243386243, 'fraction_numerical': 0.0013227513227513227, 'mean_word_length': 2.6634382566585955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6561597', 'n_tokens_mistral': 451, 'n_tokens_neox': 446, 'n_words': 119}