<commit_before><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @package Aura.Auth
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Auth\_Config;

use Aura\Di\Config;
use Aura\Di\Container;

/**
 *
 * Common configuration.
 *
 * @package Aura.Auth
 *
 */
class Common extends Config
{
    public function define(Container $di)
    {
        /**
         * Services.
         */
        $di->set('aura/auth:auth', $di->lazyNew('Aura\Auth\Auth'));
        $di->set('aura/auth:login_service', $di->lazyNew('Aura\Auth\Service\LoginService'));
        $di->set('aura/auth:logout_service', $di->lazyNew('Aura\Auth\Service\LogoutService'));
        $di->set('aura/auth:resume_service', $di->lazyNew('Aura\Auth\Service\ResumeService'));
        $di->set('aura/auth:session', $di->lazyNew('Aura\Auth\Session\Session'));
        $di->set('aura/auth:adapter', $di->lazyNew('Aura\Auth\Adapter\NullAdapter'));

        /**
         * Aura\Auth\Adapter\HtpasswdAdapter
         */
        $di->params['Aura\Auth\Adapter\HtpasswdAdapter'] = array(
            'verifier' => $di->lazyNew('Aura\Auth\Verifier\HtpasswdVerifier')
        );

        /**
         * Aura\Auth\Adapter\ImapAdapter
         */
        $di->params['Aura\Auth\Adapter\ImapAdapter'] = array(
            'phpfunc' => $di->lazyNew('Aura\Auth\Phpfunc')
        );

        /**
         * Aura\Auth\Adapter\LdapAdapter
         */
        $di->params['Aura\Auth\Adapter\LdapAdapter'] = array(
            'phpfunc' => $di->lazyNew('Aura\Auth\Phpfunc')
        );

        /**
         * Aura\Auth\Adapter\PdoAdapter
         */
        $di->params['Aura\Auth\Adapter\PdoAdapter'] = array(
            'verifier' => $di->lazyNew('Aura\Auth\Verifier\PasswordVerifier'),
        );

        /**
         * Aura\Auth\Auth
         */
        $di->params['Aura\Auth\Auth'] = array(
            'segment' => $di->lazyNew('Aura\Auth\Session\Segment')
        );

        /**
         * Aura\Auth\Service\LoginService
         */
        $di->params['Aura\Auth\Service\LoginService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session')
        );

        /**
         * Aura\Auth\Service\LogoutService
         */
        $di->params['Aura\Auth\Service\LogoutService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session')
        );

        /**
         * Aura\Auth\Service\ResumeService
         */
        $di->params['Aura\Auth\Service\ResumeService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session'),
            'timer' => $di->lazyNew('aura/auth:timer'),
            'logout_service' => $di->lazyGet('aura/auth:logout_service'),
        );

        /**<commit_msg>fix configs<commit_after><?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @package Aura.Auth
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Auth\_Config;

use Aura\Di\Config;
use Aura\Di\Container;

/**
 *
 * Common configuration.
 *
 * @package Aura.Auth
 *
 */
class Common extends Config
{
    public function define(Container $di)
    {
        /**
         * Services
         */
        $di->set('aura/auth:auth', $di->lazyNew('Aura\Auth\Auth'));
        $di->set('aura/auth:login_service', $di->lazyNew('Aura\Auth\Service\LoginService'));
        $di->set('aura/auth:logout_service', $di->lazyNew('Aura\Auth\Service\LogoutService'));
        $di->set('aura/auth:resume_service', $di->lazyNew('Aura\Auth\Service\ResumeService'));
        $di->set('aura/auth:session', $di->lazyNew('Aura\Auth\Session\Session'));
        $di->set('aura/auth:adapter', $di->lazyNew('Aura\Auth\Adapter\NullAdapter'));

        /**
         * Aura\Auth\Adapter\HtpasswdAdapter
         */
        $di->params['Aura\Auth\Adapter\HtpasswdAdapter'] = array(
            'verifier' => $di->lazyNew('Aura\Auth\Verifier\HtpasswdVerifier')
        );

        /**
         * Aura\Auth\Adapter\ImapAdapter
         */
        $di->params['Aura\Auth\Adapter\ImapAdapter'] = array(
            'phpfunc' => $di->lazyNew('Aura\Auth\Phpfunc')
        );

        /**
         * Aura\Auth\Adapter\LdapAdapter
         */
        $di->params['Aura\Auth\Adapter\LdapAdapter'] = array(
            'phpfunc' => $di->lazyNew('Aura\Auth\Phpfunc')
        );

        /**
         * Aura\Auth\Adapter\PdoAdapter
         */
        $di->params['Aura\Auth\Adapter\PdoAdapter'] = array(
            'verifier' => $di->lazyNew('Aura\Auth\Verifier\PasswordVerifier'),
            'from' => 'users',
            'cols' => array('username', 'password'),
        );

        /**
         * Aura\Auth\Auth
         */
        $di->params['Aura\Auth\Auth'] = array(
            'segment' => $di->lazyNew('Aura\Auth\Session\Segment')
        );

        /**
         * Aura\Auth\Service\LoginService
         */
        $di->params['Aura\Auth\Service\LoginService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session')
        );

        /**
         * Aura\Auth\Service\LogoutService
         */
        $di->params['Aura\Auth\Service\LogoutService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session')
        );

        /**
         * Aura\Auth\Service\ResumeService
         */
        $di->params['Aura\Auth\Service\ResumeService'] = array(
            'adapter' => $di->lazyGet('aura/auth:adapter'),
            'session' => $di->lazyGet('aura/auth:session'),
            'timer' => $di->lazyNew('Aura\Auth\Session\Timer'),
            'logout_service' => $di->lazyGet('aura/auth:logout_service'),
        );

        /**
{'fraction_non_alphanumeric': 0.19095391940146234, 'fraction_numerical': 0.0, 'mean_word_length': 2.0731452455590387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 97, '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': '461242', 'n_tokens_mistral': 1974, 'n_tokens_neox': 1936, 'n_words': 196}