<commit_before><?php

namespace yii2mod\cart\storage;

use Yii;
use yii\base\Object;
use yii2mod\cart\Cart;

/**
 * Class SessionStorage is a session adapter for cart data storage.
 *
 * @property \yii\web\Session session
 */
class SessionStorage extends Object implements StorageInterface
{
    /**
     * @var string
     */
    public $key = 'cart';

    /**
     * @inheritdoc
     */
    public function load(Cart $cart)
    {
        $cartData = [];

        if (false !== ($session = ($this->session->get($this->key, false)))) {
            $cartData = unserialize($session);<commit_msg>Cannot use 'Object' as class name<commit_after><?php

namespace yii2mod\cart\storage;

use Yii;
use yii\base\Object;
use yii2mod\cart\Cart;

/**
 * Class SessionStorage is a session adapter for cart data storage.
 *
 * @property \yii\web\Session session
 */
class SessionStorage extends BaseObject implements StorageInterface
{
    /**
     * @var string
     */
    public $key = 'cart';

    /**
     * @inheritdoc
     */
    public function load(Cart $cart)
    {
        $cartData = [];

        if (false !== ($session = ($this->session->get($this->key, false)))) {
            $cartData = unserialize($session);
{'fraction_non_alphanumeric': 0.14356435643564355, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 2.698170731707317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2944012', 'n_tokens_mistral': 369, 'n_tokens_neox': 366, 'n_words': 96}