<commit_before><?php

class AccountController
{
	public static function create($req, $res, $container, $user, $application)
	{
		$params = $req->getParams();
		$requireParams = ['screen-name', 'password'];

		try
		{
			$userFactory = new UserFactory($container['database'], $container['config'], new \Utility\Regex());
			$accountModel = new AccountModel($userFactory);
			$user = $accountModel->create($params['screen-name'], $params['password'], $params['name']);
		}
		catch(\Utility\ApiException $e)
		{
			return withFailure($res, $e->getMessage(), $e->getData(), $e->getStatus());
		}

		return withSuccess($res, ['user' => $user]);
	}
}<commit_msg>remove<commit_after><?php

class AccountController
{
	public static function create($req, $res, $container, $user, $application)
	{
		$params = $req->getParams();

		try
		{
			$userFactory = new UserFactory($container['database'], $container['config'], new \Utility\Regex());
			$accountModel = new AccountModel($userFactory);
			$user = $accountModel->create($params['screen-name'], $params['password'], $params['name']);
		}
		catch(\Utility\ApiException $e)
		{
			return withFailure($res, $e->getMessage(), $e->getData(), $e->getStatus());
		}

		return withSuccess($res, ['user' => $user]);
	}
}
{'fraction_non_alphanumeric': 0.2060461416070008, 'fraction_numerical': 0.0, 'mean_word_length': 5.418367346938775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4002260', 'n_tokens_mistral': 424, 'n_tokens_neox': 395, 'n_words': 79}