<commit_before><?php

class UserRepository extends DbRepository
{
	public function insert($user_name,$password)
	{
		$password = $this->hashPassword($password);
		$now = new DateTime();

		$sql = "
			INSERT INTO user(user_name,password,created_at) VALUES(:user_name, :password, :created_at)
			";

		$stmt = $this->execute($sql,array(
			':user_name' => $user_name,
			':password' => $password,
			':created_at' => $now->format('Y-m-d H:i:s'),
		));
	}

	public function hashPassword($password)
	{
		return sha1($password . '<PASSWORD>');
	}

	public function fetchByUserName($user_name)
	{
		$sql = "SELECT * FROM user WHERE user_name = :user_name";

		return $this->fetch($sql,array(':user_name' => $user_name));
		}

		return false;
	}

	public function isUniqueUserName($user_name)
	{
		$sql = "select count(id) as count from user where user_name = :user_name";

		$row = $this->fetch($sql,array(':user_name' => $user_name));
		if ($row['count'] === '0'){
			return true;
		}

		return false;
	}
}
<commit_msg>Fixed syntax error<commit_after><?php

class UserRepository extends DbRepository
{
	public function insert($user_name,$password)
	{
		$password = $this-><PASSWORD>($password);
		$now = new DateTime();

		$sql = "
			INSERT INTO user(user_name,password,created_at) VALUES(:user_name, :password, :created_at)
			";

		$stmt = $this->execute($sql,array(
			':user_name' => $user_name,
			':password' => <PASSWORD>,
			':created_at' => $now->format('Y-m-d H:i:s'),
		));
	}

	public function hashPassword($password)
	{
		return sha1($password . '<PASSWORD>');
	}

	public function fetchByUserName($user_name)
	{
		$sql = "SELECT * FROM user WHERE user_name = :user_name";

		return $this->fetch($sql,array(':user_name' => $user_name));
		}

	public function isUniqueUserName($user_name)
	{
		$sql = "select count(id) as count from user where user_name = :user_name";

		$row = $this->fetch($sql,array(':user_name' => $user_name));
		if ($row['count'] === '0'){
			return true;
		}

		return false;
	}
}

{'fraction_non_alphanumeric': 0.1792452830188679, 'fraction_numerical': 0.0019860973187686196, 'mean_word_length': 4.566298342541437, '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': '4479879', 'n_tokens_mistral': 786, 'n_tokens_neox': 711, 'n_words': 146}