<commit_before><?php

class AuthTest extends PHPUnit_Framework_TestCase
{
    private $_log;

    public function setUp()
    {
        print "<div>Begin ".__CLASS__;
        $options = array('file'=>__CLASS__.'.log');
        $this->_log = new \Devtools\Log($options);
    }

    public function tearDown()
    {
//        $this->unlink(__CLASS__.'.log');
        print "End ".__CLASS__."</div>";
    }

    public function testAuth()
    {
        $auth = new \Devtools\Auth("user", "password");
        $this->assertInstanceOf('Devtools\Auth', $auth);
        $this->_log->write('$auth is instance of Auth','EMPTY','authTest.log');
    }

    public function testValidate()
    {
        $auth = new \Devtools\Auth("user", "password");
        $this->assertTrue($auth->validate("user", "password"));
        $this->assertFalse($auth->validate("user", "not password"));<commit_msg>Removes end cap notices<commit_after><?php

class AuthTest extends PHPUnit_Framework_TestCase
{
    private $_log;

    public function setUp()
    {
//        print "<div>Begin ".__CLASS__;
        $options = array('file'=>__CLASS__.'.log');
        $this->_log = new \Devtools\Log($options);
    }

    public function tearDown()
    {
//        $this->unlink(__CLASS__.'.log');
//        print "End ".__CLASS__."</div>";
    }

    public function testAuth()
    {
        $auth = new \Devtools\Auth("user", "password");
        $this->assertInstanceOf('Devtools\Auth', $auth);
        $this->_log->write('$auth is instance of Auth','EMPTY','authTest.log');
    }

    public function testValidate()
    {
        $auth = new \Devtools\Auth("user", "password");
        $this->assertTrue($auth->validate("user", "password"));
        $this->assertFalse($auth->validate("user", "not password"));
{'fraction_non_alphanumeric': 0.18089887640449437, 'fraction_numerical': 0.0, 'mean_word_length': 2.8055555555555554, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, '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': '3697952', 'n_tokens_mistral': 532, 'n_tokens_neox': 530, 'n_words': 104}