<commit_before><?php
namespace Craft;

class Formerly_FormModel extends BaseModel
{
	protected function defineAttributes()
	{
		return array(
			'id'            => AttributeType::Number,
			'fieldGroupId'  => AttributeType::Number,
			'name'          => AttributeType::String,
			'instructions'  => AttributeType::String,
			'handle'        => AttributeType::String,
			'emails'        => AttributeType::Mixed,
		);
	}

	public function getQuestions()
	{
		return craft()->formerly_forms->getQuestionsByFormId($this->id);
	}

	public function getQuestionByHandle($handle) {
		foreach (craft()->formerly_forms->getQuestionsByFormId($this->id) as $question) {
			if ($question->handle == $handle)
				return $question;
		}
		return null;
	}

	public function getFieldLayout()
	{
		return craft()->formerly_forms->getFieldLayout($this);
	}
}<commit_msg>Updated Formerly_FormModel cause of missing braces<commit_after><?php
namespace Craft;

class Formerly_FormModel extends BaseModel
{
	protected function defineAttributes()
	{
		return array(
			'id'            => AttributeType::Number,
			'fieldGroupId'  => AttributeType::Number,
			'name'          => AttributeType::String,
			'instructions'  => AttributeType::String,
			'handle'        => AttributeType::String,
			'emails'        => AttributeType::Mixed,
		);
	}

	public function getQuestions()
	{
		return craft()->formerly_forms->getQuestionsByFormId($this->id);
	}

	public function getQuestionByHandle($handle) {
		
		foreach (craft()->formerly_forms->getQuestionsByFormId($this->id) as $question) {
			if ($question->handle == $handle) {
				return $question;
			}
				
		}
		return null;
	}

	public function getFieldLayout()
	{
		return craft()->formerly_forms->getFieldLayout($this);
	}
}
{'fraction_non_alphanumeric': 0.136986301369863, 'fraction_numerical': 0.0, 'mean_word_length': 3.994301994301994, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '4125600', 'n_tokens_mistral': 595, 'n_tokens_neox': 520, 'n_words': 101}