<commit_before><?php
class UserManagementTest extends PHPUnit_Framework_TestCase {
	public function testCreateAndDeleteUser() {
		$user = new User ();
		$user->setUsername ( "max_muster" );
		$user->setFirstname ( "Max" );
		$user->setLastname ( "Muster" );
		$user->setGroupId ( 1 );
		$user->setPassword ( "<PASSWORD>" );
		$user->save ();
		$this->assertNotNull ( $user->getId () );
		$user = new User ();
		$user->loadByUsername ( "max_muster" );
		$this->assertEquals ( "max_muster", $user->getUsername () );
		$this->assertEquals ( "Max", $user->getFirstname () );
		$this->assertEquals ( "Muster", $user->getLastname () );
		$this->assertEquals ( 1, $user->getGroupId () );
		$this->assertEquals ( securityHelper::hash_password ( "<PASSWORD>" ), $user->getPassword () );
		$user->delete ();
		
		$user = new User ();
		$this - assertNull ( $user->getId () );
	}
}<commit_msg>typo fixed in usermanagementtest<commit_after><?php
class UserManagementTest extends PHPUnit_Framework_TestCase {
	public function testCreateAndDeleteUser() {
		$user = new User ();
		$user->setUsername ( "max_muster" );
		$user->setFirstname ( "Max" );
		$user->setLastname ( "Muster" );
		$user->setGroupId ( 1 );
		$user->setPassword ( "<PASSWORD>" );
		$user->save ();
		$this->assertNotNull ( $user->getId () );
		$user = new User ();
		$user->loadByUsername ( "max_muster" );
		$this->assertEquals ( "max_muster", $user->getUsername () );
		$this->assertEquals ( "Max", $user->getFirstname () );
		$this->assertEquals ( "Muster", $user->getLastname () );
		$this->assertEquals ( 1, $user->getGroupId () );
		$this->assertEquals ( securityHelper::hash_password ( "<PASSWORD>" ), $user->getPassword () );
		$user->delete ();
		
		$user = new User ();
		$this->assertNull ( $user->getId () );
	}
}
{'fraction_non_alphanumeric': 0.2037037037037037, 'fraction_numerical': 0.002244668911335578, 'mean_word_length': 4.469325153374233, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 50, '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': '348339', 'n_tokens_mistral': 625, 'n_tokens_neox': 584, 'n_words': 106}