<commit_before><?php

class Admin_Form_Link extends CM_Form_Abstract {

	public function setup () {
		$this->registerField('label', new CM_FormField_Text());
		$this->registerField('url', new CM_FormField_Url());
		$this->registerField('automatic', new CM_FormField_Boolean());

		$this->registerAction(new Admin_FormAction_Link_Add($this));
	}
}<commit_msg>Set link's "automatic" field to TRUE by default<commit_after><?php

class Admin_Form_Link extends CM_Form_Abstract {

	public function setup () {
		$this->registerField('label', new CM_FormField_Text());
		$this->registerField('url', new CM_FormField_Url());
		$this->registerField('automatic', new CM_FormField_Boolean());

		$this->registerAction(new Admin_FormAction_Link_Add($this));
	}

	protected function _renderStart(CM_Params $params) {
		$this->getField('automatic')->setValue(true);
	}
}
{'fraction_non_alphanumeric': 0.14719626168224298, 'fraction_numerical': 0.0, 'mean_word_length': 7.401960784313726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7379373', 'n_tokens_mistral': 282, 'n_tokens_neox': 264, 'n_words': 50}