<commit_before><?php

class RequiredValidator extends Validator
{
	public function validate()
	{
		$allok = true;
		
		foreach($this->keys as $key) {
			if(empty($this->model->$key)) {
				$this->error .= "$key is required\n";
				$allok = false;
			}
		}
		return true;
	}
}<commit_msg>Fixed Required validator always validating<commit_after><?php

class RequiredValidator extends Validator
{
	public function validate()
	{
		$allok = true;
		
		foreach($this->keys as $key) {
			if(empty($this->model->$key)) {
				$this->error .= "$key is required\n";
				$allok = false;
			}
		}
		return $allok;
	}
}
{'fraction_non_alphanumeric': 0.16033057851239668, 'fraction_numerical': 0.0, 'mean_word_length': 3.3597122302158273, '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': '6706322', 'n_tokens_mistral': 243, 'n_tokens_neox': 209, 'n_words': 48}