<commit_before><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Web\Request;

/**
 *
 * Representation of the request content.
 *
 * @package Aura.Web
 *
 */
class Content
{
    /**
     *
     * Content decoder callables.
     *
     * @var array
     *
     */
    protected $decoders = array(
        'application/json' => 'json_decode',
        'application/x-www-form-urlencoded' => 'parse_str',
    );

    /**
     *
     * The value of the Content-Type header.
     *
     * @var string<commit_msg>Fix parsing for urlencoded body<commit_after><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Web\Request;

/**
 *
 * Representation of the request content.
 *
 * @package Aura.Web
 *
 */
class Content
{
    /**
     *
     * Content decoder callables.
     *
     * @var array
     *
     */
    protected $decoders = array(
        'application/json' => 'json_decode',
        'application/x-www-form-urlencoded' => function($body)
        {
          parse_str($body, $output);
          return $output;
        },
    );

    /**
     *
     * The value of the Content-Type header.
     *
     * @var string
{'fraction_non_alphanumeric': 0.14417887432536622, 'fraction_numerical': 0.0, 'mean_word_length': 1.9567198177676537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1323919', 'n_tokens_mistral': 423, 'n_tokens_neox': 417, 'n_words': 93}