<commit_before><?php

namespace Zend\Http\PhpEnvironment;

use Zend\Http\Request as HttpRequest,
    Zend\Uri\Http as HttpUri,
    Zend\Http\Header\Cookie,
    Zend\Stdlib\Parameters,
    Zend\Stdlib\ParametersDescription;

class Request extends HttpRequest
{
    /**
     * Base URL of the application.
     * 
     * @var string
     */
    protected $baseUrl;
    
    /**
     * Base Path of the application.
     *
     * @var string
     */
    protected $basePath;
    
    /**
     * Actual request URI, independent of the platform.
     * 
     * @var string
     */
    protected $requestUri;

    public function __construct()
    {
        $this->setEnv(new Parameters($_ENV));
        $this->setPost(new Parameters($_POST));
        $this->setQuery(new Parameters($_GET));
        $this->setServer(new Parameters($_SERVER));

        if ($_FILES) {
            $this->setFile(new Parameters($_FILES));
        }
    }

    public function setCookies($cookie)
    {
        $this->headers()->addHeader(new Cookie((array) $cookie));
        return $this;
    }

    /**
     * Set the request URI.
     *
     * @param  string $requestUri
     * @return self
     */
    public function setRequestUri($requestUri)
    {
        $this->requestUri = $requestUri;
        return $this;
    }
<commit_msg>Fix cookie population<commit_after><?php

namespace Zend\Http\PhpEnvironment;

use Zend\Http\Request as HttpRequest,
    Zend\Uri\Http as HttpUri,
    Zend\Http\Header\Cookie,
    Zend\Stdlib\Parameters,
    Zend\Stdlib\ParametersDescription;

class Request extends HttpRequest
{
    /**
     * Base URL of the application.
     * 
     * @var string
     */
    protected $baseUrl;
    
    /**
     * Base Path of the application.
     *
     * @var string
     */
    protected $basePath;
    
    /**
     * Actual request URI, independent of the platform.
     * 
     * @var string
     */
    protected $requestUri;

    public function __construct()
    {
        $this->setEnv(new Parameters($_ENV));
        $this->setPost(new Parameters($_POST));
        $this->setQuery(new Parameters($_GET));
        $this->setServer(new Parameters($_SERVER));
        $this->setCookies(new Parameters($_COOKIE));

        if ($_FILES) {
            $this->setFile(new Parameters($_FILES));
        }
    }

    public function setCookies($cookie)
    {
        $this->headers()->addHeader(new Cookie((array) $cookie));
        return $this;
    }

    /**
     * Set the request URI.
     *
     * @param  string $requestUri
     * @return self
     */
    public function setRequestUri($requestUri)
    {
        $this->requestUri = $requestUri;
        return $this;
    }

{'fraction_non_alphanumeric': 0.125512104283054, 'fraction_numerical': 0.0, 'mean_word_length': 2.1016166281755195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '5516599', 'n_tokens_mistral': 812, 'n_tokens_neox': 788, 'n_words': 174}