<commit_before><?php
namespace AmidaMVC\Tools;
/**
 * Authentication class which does not really authorize. 
 * only requires login_id and password to match. 
 */

class AuthNot
{
    static $auth_id    = 'AuthNot_id';
    static $login_name = 'auth_name';
    static $login_pass = '<PASSWORD>';
    static $act_name   = 'auth_act';
    static $act_value  = 'authNot';
    static $auth_info  = array();
    // +-------------------------------------------------------------+
    static function getAuth() {
        if( $auth_info = static::_verifySession() ) {
            $auth_info[ 'auth_method' ] = 'session';
            static::$auth_info = $auth_info;<commit_msg>added a _init method to initialize Auth* class.<commit_after><?php
namespace AmidaMVC\Tools;
/**
 * Authentication class which does not really authorize. 
 * only requires login_id and password to match. 
 */

class AuthNot
{
    static $auth_id    = 'AuthNot_id';
    static $login_name = 'auth_name';
    static $login_pass = '<PASSWORD>';
    static $act_name   = 'auth_act';
    static $act_value  = 'authNot';
    static $auth_info  = array();
    static $option     = array();
    // +-------------------------------------------------------------+
    static function _init( $option=array() ) {
        static::$option = $option;
    }
    // +-------------------------------------------------------------+
    static function getAuth() {
        if( $auth_info = static::_verifySession() ) {
            $auth_info[ 'auth_method' ] = 'session';
            static::$auth_info = $auth_info;
{'fraction_non_alphanumeric': 0.23514376996805111, 'fraction_numerical': 0.0, 'mean_word_length': 1.9, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '643067', 'n_tokens_mistral': 437, 'n_tokens_neox': 436, 'n_words': 111}