<commit_before><?php

class Location extends Elegant {


	protected $softDelete = true;
	protected $table = 'locations';
	protected $rules = array(
			'name'  		=> 'required|alpha_space|min:3',
			'address'		=> 'required|alpha_space|min:5',
			'address2'		=> 'alpha_space|min:5',
			'city'   		=> 'required|alpha_space|min:3',
			'state'   		=> 'required|alpha|min:2|max:2',
			'country'   	=> 'required|alpha|min:2|max:2',
			'zip'   		=> 'alpha_dash|min:5',
		);

	public function has_users()
	{
		return $this->hasMany('User', 'location_id')->count();
	}

}<commit_msg>Adjusted zip and state field length requirements<commit_after><?php

class Location extends Elegant {


	protected $softDelete = true;
	protected $table = 'locations';
	protected $rules = array(
			'name'  		=> 'required|alpha_space|min:3',
			'address'		=> 'required|alpha_space|min:5',
			'address2'		=> 'alpha_space|min:5',
			'city'   		=> 'required|alpha_space|min:3',
			'state'   		=> 'required|alpha|min:2',
			'country'   	=> 'required|alpha|min:2|max:2',
			'zip'   		=> 'alpha_dash|min:3',
		);

	public function has_users()
	{
		return $this->hasMany('User', 'location_id')->count();
	}

}
{'fraction_non_alphanumeric': 0.1875532821824382, 'fraction_numerical': 0.01619778346121057, 'mean_word_length': 4.360730593607306, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '6401638', 'n_tokens_mistral': 484, 'n_tokens_neox': 446, 'n_words': 74}