<commit_before><?php

namespace Zend\Mvc\ResponseSender;

use Zend\Http\Header\MultipleHeaderInterface;

class PhpEnvironmentResponseSender extends AbstractResponseSender
{

    /**
     * Send HTTP headers
     *
     * @triggers sendHeaders
     * @return PhpEnvironmentResponseSender
     */
    public function sendHeaders()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_HEADERS, $this);
        $response = $this->getResponse();
        /* @var $response \Zend\Http\PhpEnvironment\Response */

        if ($response->headersSent()) {
            return $this;
        }
        $status  = $response->renderStatusLine();
        header($status);
        /* @var \Zend\Http\Header\HeaderInterface $header */
        foreach ($response->getHeaders() as $header) {
            if ($header instanceof MultipleHeaderInterface) {
                header($header->toString(), false);
                continue;
            }
            header($header->toString());
        }
        echo '1';
        return $this;
    }

    /**
     * Send content
     *
     * @triggers sendContent
     * @return PhpEnvironmentResponseSender
     */
    public function sendContent()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_CONTENT, $this);
        $response = $this->getResponse();
        /* @var $response \Zend\Http\PhpEnvironment\Response */
        if ($response->contentSent()) {
            return $this;
        }

        echo $response->getContent();
        $response->setContentSent(true);
        return $this;
    }

    /**
     * Send HTTP response
     *
     * @return PhpEnvironmentResponseSender
     */
    public function sendResponse()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_RESPONSE, $this);
        $this->sendHeaders()
        ->sendHeaders()
             ->sendContent();
        return $this;
    }

}<commit_msg>removed debug calls<commit_after><?php

namespace Zend\Mvc\ResponseSender;

use Zend\Http\Header\MultipleHeaderInterface;

class PhpEnvironmentResponseSender extends AbstractResponseSender
{

    /**
     * Send HTTP headers
     *
     * @triggers sendHeaders
     * @return PhpEnvironmentResponseSender
     */
    public function sendHeaders()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_HEADERS, $this);
        $response = $this->getResponse();
        /* @var $response \Zend\Http\PhpEnvironment\Response */

        if ($response->headersSent()) {
            return $this;
        }
        $status  = $response->renderStatusLine();
        header($status);
        /* @var \Zend\Http\Header\HeaderInterface $header */
        foreach ($response->getHeaders() as $header) {
            if ($header instanceof MultipleHeaderInterface) {
                header($header->toString(), false);
                continue;
            }
            header($header->toString());
        }
        return $this;
    }

    /**
     * Send content
     *
     * @triggers sendContent
     * @return PhpEnvironmentResponseSender
     */
    public function sendContent()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_CONTENT, $this);
        $response = $this->getResponse();
        /* @var $response \Zend\Http\PhpEnvironment\Response */
        if ($response->contentSent()) {
            return $this;
        }

        echo $response->getContent();
        $response->setContentSent(true);
        return $this;
    }

    /**
     * Send HTTP response
     *
     * @return PhpEnvironmentResponseSender
     */
    public function sendResponse()
    {
        $this->getEventManager()->trigger(self::EVENT_SEND_RESPONSE, $this);
        $this->sendHeaders()
             ->sendContent();
        return $this;
    }

}
{'fraction_non_alphanumeric': 0.12965921192758253, 'fraction_numerical': 0.00026624068157614486, 'mean_word_length': 2.1439330543933055, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, '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': '2014331', 'n_tokens_mistral': 1019, 'n_tokens_neox': 1002, 'n_words': 183}