<commit_before><?php

namespace Rcm\Factory;

use DoctrineModule\Cache\ZendStorageCache;
use Rcm\Exception\InvalidArgumentException;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Session\Config\ConfigInterface;
use Zend\Session\Config\SessionConfig;
use Zend\Session\Container;
use Zend\Session\SaveHandler\SaveHandlerInterface;
use Zend\Session\SessionManager;
use Zend\Session\Storage\StorageInterface;
use Zend\Session\Validator\ValidatorInterface;

/**
 * Service Factory for the Session Manager
 *
 * Factory for the Session Manager.
 *
 * @category  Reliv
 * @package   Rcm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   Release: 1.0
 * @link      https://github.com/reliv
 *
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 * @todo      Refactor and move to model object.  Also look at simplifying the factory
 *       overall.
 */
class SessionManagerFactory
{
    /**
     * Create Service
     *
     * @param ServiceLocatorInterface $serviceLocator Zend Service Manager
     *
     * @return ZendStorageCache
     */
    public function __invoke($serviceLocator)
    {
        $config = $serviceLocator->get('Config');
<commit_msg>Update factories<commit_after><?php

namespace Rcm\Factory;

use Rcm\Exception\InvalidArgumentException;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Session\Config\ConfigInterface;
use Zend\Session\Config\SessionConfig;
use Zend\Session\Container;
use Zend\Session\SaveHandler\SaveHandlerInterface;
use Zend\Session\SessionManager;
use Zend\Session\Storage\StorageInterface;
use Zend\Session\Validator\ValidatorInterface;

/**
 * Service Factory for the Session Manager
 *
 * Factory for the Session Manager.
 *
 * @category  Reliv
 * @package   Rcm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   Release: 1.0
 * @link      https://github.com/reliv
 *
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 * @todo      Refactor and move to model object.  Also look at simplifying the factory
 *       overall.
 */
class SessionManagerFactory
{
    /**
     * Create Service
     *
     * @param ServiceLocatorInterface $serviceLocator Zend Service Manager
     *
     * @return SessionManager
     */
    public function __invoke($serviceLocator)
    {
        $config = $serviceLocator->get('Config');

{'fraction_non_alphanumeric': 0.09670781893004116, 'fraction_numerical': 0.0049382716049382715, 'mean_word_length': 3.862, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2255834', 'n_tokens_mistral': 704, 'n_tokens_neox': 677, 'n_words': 173}