<commit_before><?php

/**
 * @see Zend_Auth_Adapter_Interface
 */
require_once 'Zend/Auth/Adapter/Interface.php';

/**
 * @category   GlassOnion
 * @package    GlassOnion_Auth
 */
class GlassOnion_Auth_Adapter_Doctrine implements Zend_Auth_Adapter_Interface
{
    /**
     * Doctrine connection
     *
     * @var Doctrine_Connection
	 * @access private
     */
    private $_connection = null;

    /**
     * The table name to check
     *
     * @var string
	 * @access private
     */
    private $_tableName = null;
    
    /**
     * The name of the column to be used as the identity
     *
     * @var string
	 * @access private
     */
    private $_identityColumnName = null;

    /**
     * The name of the column to be used as the credential
     *
     * @var string
	 * @access private
     */
    private $_credentialColumnName = null;

    /**
     * Treatment applied to the credential, such as MD5() or PASSWORD()
     *
     * @var string
	 * @access private
     */
    private $_credentialTreatment = null;

    /**
     * Identity value
     *
     * @var string
	 * @access private
     */
    private $_identity = null;

    /**
     * Credential value
     *
     * @var string
	 * @access private
     */
    private $_credential = null;

    /**
     * Results of database authentication query
     *
     * @var string
	 * @access private
     */
    private $_resultRow = null;

    /**
     * __construct() - Sets configuration options
     *
     * @param Doctrine_Connection $connection
	 * @param string $tableName
	 * @param string $identityColumnName
	 * @param string $credentialColumnName
	 * @param string $credentialTreatment
	 * @return void
     */
    public function __construct(Doctrine_Connection $connection = null, $tableName = null,
                                $identityColumnName = null, $credentialColumnName = null,
                                $credentialTreatment = null)
    {
        if (null !== $connection) {
            $this->setConnection($connection);
        }

        if (null !== $tableName) {
            $this->setTableName($tableName);
        }

        if (null !== $identityColumnName) {
            $this->setIdentityColumnName($identityColumnName);
        }

        if (null !== $credentialColumnName) {
            $this->setCredentialColumnName($credentialColumnName);
        }

        if (null !== $credentialTreatment) {<commit_msg>Tabs as spaces<commit_after><?php

/**
 * @see Zend_Auth_Adapter_Interface
 */
require_once 'Zend/Auth/Adapter/Interface.php';

/**
 * @category   GlassOnion
 * @package    GlassOnion_Auth
 */
class GlassOnion_Auth_Adapter_Doctrine implements Zend_Auth_Adapter_Interface
{
    /**
     * Doctrine connection
     *
     * @var Doctrine_Connection
     * @access private
     */
    private $_connection = null;

    /**
     * The table name to check
     *
     * @var string
     * @access private
     */
    private $_tableName = null;
    
    /**
     * The name of the column to be used as the identity
     *
     * @var string
     * @access private
     */
    private $_identityColumnName = null;

    /**
     * The name of the column to be used as the credential
     *
     * @var string
     * @access private
     */
    private $_credentialColumnName = null;

    /**
     * Treatment applied to the credential, such as MD5() or PASSWORD()
     *
     * @var string
     * @access private
     */
    private $_credentialTreatment = null;

    /**
     * Identity value
     *
     * @var string
     * @access private
     */
    private $_identity = null;

    /**
     * Credential value
     *
     * @var string
     * @access private
     */
    private $_credential = null;

    /**
     * Results of database authentication query
     *
     * @var string
     * @access private
     */
    private $_resultRow = null;

    /**
     * __construct() - Sets configuration options
     *
     * @param Doctrine_Connection $connection
     * @param string $tableName
     * @param string $identityColumnName
     * @param string $credentialColumnName
     * @param string $credentialTreatment
     * @return void
     */
    public function __construct(Doctrine_Connection $connection = null, $tableName = null,
                                $identityColumnName = null, $credentialColumnName = null,
                                $credentialTreatment = null)
    {
        if (null !== $connection) {
            $this->setConnection($connection);
        }

        if (null !== $tableName) {
            $this->setTableName($tableName);
        }

        if (null !== $identityColumnName) {
            $this->setIdentityColumnName($identityColumnName);
        }

        if (null !== $credentialColumnName) {
            $this->setCredentialColumnName($credentialColumnName);
        }

        if (null !== $credentialTreatment) {
{'fraction_non_alphanumeric': 0.10528471937730438, 'fraction_numerical': 0.00040966816878328555, 'mean_word_length': 2.0141975308641977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2756807', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1328, 'n_words': 342}