<commit_before><?php

/*
 * This file is part of the StashBundle package.
 *
 * (c) <NAME> <<EMAIL>>
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tedivm\StashBundle\Adapters;

/**
 * Class SessionHandlerAdapter
 * @package Tedivm\StashBundle\Adapters
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class SessionHandlerAdapter extends SessionHandlerAdapterShim
{
    protected function getCache($session_id)
    {
        $path = 'ss_ss/' .
            base64_encode($this->path) . '/' .
            base64_encode($this->name) . '/' .
            base64_encode($session_id);

        return $this->pool->getItem($path);
    }

    /**
     * Clears all sessions.
     */
    public function clearAll()
    {
        $item = $this->pool->getItem('ss_ss');
        $item->clear();
    }
}
<commit_msg>Explicitly defined which SessionHandlerAdapterShim to use<commit_after><?php

/*
 * This file is part of the StashBundle package.
 *
 * (c) <NAME> <<EMAIL>>
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tedivm\StashBundle\Adapters;

use Tedivm\StashBundle\Adapters\SessionHandlerAdapterShim as SessionHandlerAdapterShim;

/**
 * Class SessionHandlerAdapter
 * @package Tedivm\StashBundle\Adapters
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>.com>
 */
class SessionHandlerAdapter extends SessionHandlerAdapterShim
{
    protected function getCache($session_id)
    {
        $path = 'ss_ss/' .
            base64_encode($this->path) . '/' .
            base64_encode($this->name) . '/' .
            base64_encode($session_id);

        return $this->pool->getItem($path);
    }

    /**
     * Clears all sessions.
     */
    public function clearAll()
    {
        $item = $this->pool->getItem('ss_ss');
        $item->clear();
    }
}

{'fraction_non_alphanumeric': 0.1410064773293473, 'fraction_numerical': 0.005979073243647235, 'mean_word_length': 2.8393881453154877, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 41, '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': '800085', 'n_tokens_mistral': 631, 'n_tokens_neox': 621, 'n_words': 147}