<commit_before><?php

class Priority extends \Eloquent {
	protected $fillable = ['title'];

	public function tickets()
	{
		$this->hasMany('Ticket');
	}


}<commit_msg>Add method to get priorties formatted for use in form drop downs<commit_after><?php

class Priority extends \Eloquent {
	protected $fillable = ['title'];

	public function tickets()
	{
		$this->hasMany('Ticket');
	}

	public function getPriorities()
	{
		$allPriorities = Priority::all();
		$priorities = [];

		foreach ($allPriorities as $thisPriority)
		{
			$priorities[$thisPriority->id] = $thisPriority->title;
		}

		return $priorities;
	}

}
{'fraction_non_alphanumeric': 0.1444805194805195, 'fraction_numerical': 0.0, 'mean_word_length': 4.508928571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5412563', 'n_tokens_mistral': 228, 'n_tokens_neox': 201, 'n_words': 49}