<commit_before><?php

use app\AttributeLock;
use mail\spam\domain\implementation\SpamDomainModelReader;
use mail\spam\domain\SpamDomainValidationRule;
use spitfire\exceptions\HTTPMethodException;
use spitfire\exceptions\PublicException;
use spitfire\io\Upload;
use spitfire\validation\EmptyValidationRule;
use spitfire\validation\MinLengthValidationRule;
use spitfire\validation\rules\FilterValidationRule;
use spitfire\validation\rules\MaxLengthValidationRule;
use spitfire\validation\ValidationError;
use spitfire\validation\ValidationException;

class EditController extends BaseController
{
	
	public function username() {
		if (!$this->user) { throw new PublicException('You need to be logged in', 401); }
		
		if (null != $s = $this->user->isSuspended()) {
			throw new PublicException('Account has been limited. Reason given: ' . $s->reason);
		}
		<commit_msg>Fixed another validator issue on PHPAS<commit_after><?php

use app\AttributeLock;
use mail\spam\domain\implementation\SpamDomainModelReader;
use mail\spam\domain\SpamDomainValidationRule;
use spitfire\exceptions\HTTPMethodException;
use spitfire\exceptions\PublicException;
use spitfire\io\Upload;
use spitfire\validation\EmptyValidationRule;
use spitfire\validation\rules\FilterValidationRule;
use spitfire\validation\rules\MaxLengthValidationRule;
use spitfire\validation\rules\MinLengthValidationRule;
use spitfire\validation\ValidationError;
use spitfire\validation\ValidationException;

class EditController extends BaseController
{
	
	public function username() {
		if (!$this->user) { throw new PublicException('You need to be logged in', 401); }
		
		if (null != $s = $this->user->isSuspended()) {
			throw new PublicException('Account has been limited. Reason given: ' . $s->reason);
		}
		
{'fraction_non_alphanumeric': 0.10130164119977363, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 6.216326530612245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3915252', 'n_tokens_mistral': 538, 'n_tokens_neox': 488, 'n_words': 117}