<commit_before><?php
/**
 *
 */

namespace Valar\Plugin;

use Mvc5\Plugin\ScopedCall;
use Mvc5\Plugin\Shared;

class Cookies
    extends Shared
{
    /**
     * @param $name
     */
    function __construct($name = 'cookies')
    {
        parent::__construct($name, new ScopedCall($this));
    }

    /**
     * @return \Closure
     */
    function __invoke()
    {
        return function() {
            /** @var \Valar\ServerRequest $this */
            return $this->service->plugin('cookie');
        };
    }
}<commit_msg>cookie super global<commit_after><?php
/**
 *
 */

namespace Valar\Plugin;

use Mvc5\Plugin\GlobalVar;
use Mvc5\Plugin\Shared;

class Cookies
    extends Shared
{
    /**
     * @param $name
     */
    function __construct($name = 'cookies')
    {
        parent::__construct($name, new GlobalVar('_COOKIE'));
    }
}
{'fraction_non_alphanumeric': 0.1544811320754717, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 2.2528735632183907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5153971', 'n_tokens_mistral': 281, 'n_tokens_neox': 277, 'n_words': 51}