<commit_before><?php

/*
 * Bear Framework
 * http://bearframework.com
 * Copyright (c) <NAME>
 * Free to use under the MIT license.
 */

namespace BearFramework\App\Cache;

/**
 * @property string $key
 * @property bool $exists
 */
class ItemExistsEventDetails
{

    use \IvoPetkov\DataObjectTrait;

    /**
     * @param string $key
     * @param bool $exists
     */
    public function __construct(string $key, bool $exists)
    {
        $this
                ->defineProperty('key', [
                    'type' => 'string'
                ])
                ->defineProperty('exists', [
                    'type' => 'bool'
                ])
        ;
        $this->key = $key;
        $this->exists = $exists;<commit_msg>Update Cache\ItemExistsEventDetails default value<commit_after><?php

/*
 * Bear Framework
 * http://bearframework.com
 * Copyright (c) <NAME>
 * Free to use under the MIT license.
 */

namespace BearFramework\App\Cache;

/**
 * @property string $key
 * @property bool $exists
 */
class ItemExistsEventDetails
{

    use \IvoPetkov\DataObjectTrait;

    /**
     * @param string $key
     * @param bool $exists
     */
    public function __construct(string $key, bool $exists)
    {
        $this
                ->defineProperty('key', [
                    'type' => 'string'
                ])
                ->defineProperty('exists', [
                    'type' => 'bool',
                    'init' => function () {
                        return false;
                    }
                ])
        ;
        $this->key = $key;
        $this->exists = $exists;
{'fraction_non_alphanumeric': 0.13271028037383178, 'fraction_numerical': 0.0, 'mean_word_length': 1.5945072697899838, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, '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': '3386962', 'n_tokens_mistral': 453, 'n_tokens_neox': 436, 'n_words': 104}