<commit_before><?php

class SiteTest extends WebTestCase
{
	public function testIndex()
	{
		$this->open('');
		$this->assertTextPresent('Welcome');
	}

	public function testContact()
	{
		$this->open('?r=site/contact');
		$this->assertTextPresent('Contact Us');
		$this->assertElementPresent('name=ContactForm[name]');

		$this->type('name=ContactForm[name]', 'tester');
		$this->type('name=ContactForm[email]', '<EMAIL>');
		$this->type('name=ContactForm[subject]', 'test subject');
		$this->click("//input[@value='Submit']");
		$this->waitForTextPresent('Body cannot be blank.');
	}

	public function testLoginLogout()
	{
		$this->open('');
		// ensure the user is logged out
		if($this->isTextPresent('Logout'))
		{
			$this->clickAndWait('link=Logout (demo)');
		}

		// test login process, including validation
		$this->clickAndWait('link=Login');
		$this->assertElementPresent('name=Auth[username]');
		$this->type('name=Auth[username]', 'demo');
		$this->click("//input[@value='Login']");
		$this->waitForTextPresent('Password cannot be blank.');
		$this->type('name=Auth[password]', 'demo');
		$this->clickAndWait("//input[@value='Login']");
		$this->assertTextNotPresent('Password cannot be blank.');
		$this->assertTextPresent('Logout');

		// test logout process
		$this->assertTextNotPresent('Login');
		$this->clickAndWait('link=Logout (demo)');
		$this->assertTextPresent('Login');
	}
}<commit_msg>disable site tests<commit_after><?php

class SiteTest extends WebTestCase
{
	/*public function testIndex()
	{
		$this->open('');
		$this->assertTextPresent('Welcome');
	}

	public function testContact()
	{
		$this->open('?r=site/contact');
		$this->assertTextPresent('Contact Us');
		$this->assertElementPresent('name=ContactForm[name]');

		$this->type('name=ContactForm[name]', 'tester');
		$this->type('name=ContactForm[email]', '<EMAIL>');
		$this->type('name=ContactForm[subject]', 'test subject');
		$this->click("//input[@value='Submit']");
		$this->waitForTextPresent('Body cannot be blank.');
	}

	public function testLoginLogout()
	{
		$this->open('');
		// ensure the user is logged out
		if($this->isTextPresent('Logout'))
		{
			$this->clickAndWait('link=Logout (demo)');
		}

		// test login process, including validation
		$this->clickAndWait('link=Login');
		$this->assertElementPresent('name=Auth[username]');
		$this->type('name=Auth[username]', 'demo');
		$this->click("//input[@value='Login']");
		$this->waitForTextPresent('Password cannot be blank.');
		$this->type('name=Auth[password]', '<PASSWORD>');
		$this->clickAndWait("//input[@value='Login']");
		$this->assertTextNotPresent('Password cannot be blank.');
		$this->assertTextPresent('Logout');

		// test logout process
		$this->assertTextNotPresent('Login');
		$this->clickAndWait('link=Logout (demo)');
		$this->assertTextPresent('Login');
	}*/
}
{'fraction_non_alphanumeric': 0.21612108412530798, 'fraction_numerical': 0.0, 'mean_word_length': 6.017283950617284, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 56, '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': '1444534', 'n_tokens_mistral': 997, 'n_tokens_neox': 929, 'n_words': 150}