<commit_before><?php

namespace HumanDirect\Http;

/**
 * HumanDirect HTTP response class
 *
 * @package      HumanDirect
 * @author       <NAME> <<EMAIL>>
 * @copyright    Copyright (c) 2014 <NAME>
 */
class HttpResponse
{
    /**
     * Send response to output
     *
     * @param $response
     * @param array $headers
     */
    public static function output($response = \NULL, array $headers = array())
    {
        $contentType = isset($headers['Content-Type']) ? $headers['Content-Type'] : 'text/html';

        header('HTTP/1.1 201 Created');
        header(sprintf('Content-type: %s; charset=utf-8', $contentType));
        echo $response;
        exit;
    }
}<commit_msg>Removed array constraint on http response output.<commit_after><?php

namespace HumanDirect\Http;

/**
 * HumanDirect HTTP response class
 *
 * @package      HumanDirect
 * @author       <NAME> <<EMAIL>>
 * @copyright    Copyright (c) 2014 <NAME>
 */
class HttpResponse
{
    /**
     * Send response to output
     *
     * @param $response
     * @param array $headers
     */
    public static function output($response = \NULL, $headers = array())
    {
        $contentType = isset($headers['Content-Type']) ? $headers['Content-Type'] : 'text/html';

        header('HTTP/1.1 201 Created');
        header(sprintf('Content-type: %s; charset=utf-8', $contentType));
        echo $response;
        exit;
    }
}
{'fraction_non_alphanumeric': 0.1492857142857143, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 2.657963446475196, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5270524', 'n_tokens_mistral': 423, 'n_tokens_neox': 409, 'n_words': 105}