<commit_before><?php

/**
 * AvaiblePreferences
 * @author <NAME><<EMAIL>>
 */

namespace Rapid\Authorization;

use \ArrayObject;

class AvaiblePreferences
{

    private $mysqlHost = 'localhost';
    private $mysqlPort = 3306;
    private $mysqlUser = '';
    private $mysqlPass = '';
    private $dbName = '';
    private $dbCharset = 'utf8';

    /**
     * <p>Auto generate, or not, the necessary tables on database</p>
     * @var boolean
     */
    private $autoGenerateTables = true;

    /**
     * <p>Use, or not, the autoload provided by RapidAuthorization.</p>
     * <p>Set to false to use autoload provided by client application.<br/>
     * Client application must set to true if needed.</p>
     *
     * @var boolean
     */
    private $useRapidAuthorizationAutoload = false;

    /**
     * <p>Instance of "User" class on client application domain</p>
     * @var String The user class name
     */
    private $userClassInstance = '';

    /**
     * @var AvaiblePreferences
     */
    private static $instance;

    /**
     * @var ArrayObject
     */
    private $list = Array();

    /**
     * @return AvaiblePreferences
     */
    public static function instance()
    {
        if(self::$instance instanceof AvaiblePreferences) {
            return self::$instance;
        } else {
            return self::$instance = new self();
        }
    }

    private function __construct()
    {
        $this->createList();
    }

    private function createList()
    {
        if(count($this->list) === 0) {
            $this->list = new ArrayObject();
            $list = get_class_vars(get_class($this));
            unset($list['instance']);
            unset($list['list']);

            foreach($list as $property => $value) {
                $this->list->offsetSet($property, $value);
                $this->list->$property = $value;
                $this->$property = $value;
            }
        }
    }

    public function getList()
    {
        return $this->list;
    }

}

?>
<commit_msg>Correção de valor padrão para mysql user<commit_after><?php

/**
 * AvaiblePreferences
 * @author <NAME><<EMAIL>>
 */

namespace Rapid\Authorization;

use \ArrayObject;

class AvaiblePreferences
{

    private $mysqlHost = 'localhost';
    private $mysqlPort = 3306;
    private $mysqlUser = 'root';
    private $mysqlPass = '';
    private $dbName = '';
    private $dbCharset = 'utf8';

    /**
     * <p>Auto generate, or not, the necessary tables on database</p>
     * @var boolean
     */
    private $autoGenerateTables = true;

    /**
     * <p>Use, or not, the autoload provided by RapidAuthorization.</p>
     * <p>Set to false to use autoload provided by client application.<br/>
     * Client application must set to true if needed.</p>
     *
     * @var boolean
     */
    private $useRapidAuthorizationAutoload = false;

    /**
     * <p>Instance of "User" class on client application domain</p>
     * @var String The user class name
     */
    private $userClassInstance = '';

    /**
     * @var AvaiblePreferences
     */
    private static $instance;

    /**
     * @var ArrayObject
     */
    private $list = Array();

    /**
     * @return AvaiblePreferences
     */
    public static function instance()
    {
        if(self::$instance instanceof AvaiblePreferences) {
            return self::$instance;
        } else {
            return self::$instance = new self();
        }
    }

    private function __construct()
    {
        $this->createList();
    }

    private function createList()
    {
        if(count($this->list) === 0) {
            $this->list = new ArrayObject();
            $list = get_class_vars(get_class($this));
            unset($list['instance']);
            unset($list['list']);

            foreach($list as $property => $value) {
                $this->list->offsetSet($property, $value);
                $this->list->$property = $value;
                $this->$property = $value;
            }
        }
    }

    public function getList()
    {
        return $this->list;
    }

}

?>

{'fraction_non_alphanumeric': 0.1301193540837819, 'fraction_numerical': 0.002808331383103206, 'mean_word_length': 1.7879973907371167, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 49, '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': '4402032', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1173, 'n_words': 293}