<commit_before><?php
/**
 * Garp_Form_Element_MultiCheckbox
 * class description
 * @author <NAME> | grrr.nl
 * @version 1
 * @package Garp
 * @subpackage Form
 */
class Garp_Form_Element_MultiCheckbox extends Zend_Form_Element_MultiCheckbox {

	public function init() {
		$htmlLegendClass = 'multi-input-legend';
		if ($this->isRequired()) { 
			$htmlLegendClass .= ' required';
		}
		$labelText = $this->getLabel();
		if ($this->getDecorator('Label')->getRequiredSuffix() && $this->isRequired()) {
			$labelText .= $this->getDecorator('Label')->getRequiredSuffix();
		}
		$legendHtml = '<p class="'.$htmlLegendClass.'">'.$labelText.'</p>';

		$ulClass = 'multi-input';
		if ($this->isrequired()) {
			$ulClass .= ' required';
		}
		if ($defaulthtmltagrenderer = $this->getdecorator('htmltag')) {
			$parentclass = $defaulthtmltagrenderer->getoption('class');
			$ulClass .= ' '.$parentclass;
		}

		$this->setOptions(array(
			'separator' => '</li><li>',
			'decorators' => array(
				'ViewHelper',
				'Description',
				array(array('tag1' => 'HtmlTag'), array('tag' => 'li')),
				array(array('tag2' => 'HtmlTag'), array('tag' => 'ul', 'class' => $ulClass)),
				array('AnyMarkup', array('markup' => $legendHtml, 'placement' => 'prepend')),
				'Errors',
				array(array('tag3' => 'HtmlTag'), array('tag' => 'div', 'class' => 'multi-input-container')),
			)
		));
	}

}<commit_msg>feature in progress<commit_after><?php
/**
 * Garp_Form_Element_MultiCheckbox
 * class description
 * @author <NAME> | grrr.nl
 * @version 1
 * @package Garp
 * @subpackage Form
 */
class Garp_Form_Element_MultiCheckbox extends Zend_Form_Element_MultiCheckbox {

	public function init() {
		$htmlLegendClass = 'multi-input-legend';
		if ($this->isRequired()) { 
			$htmlLegendClass .= ' required';
		}
		$labelText = $this->getLabel();
		if ($this->getDecorator('Label')->getRequiredSuffix() && $this->isRequired()) {
			$labelText .= $this->getDecorator('Label')->getRequiredSuffix();
		}
		$legendHtml = '<p class="'.$htmlLegendClass.'">'.$labelText.'</p>';

		$ulClass = 'multi-input';
		if ($this->isrequired()) {
			$ulClass .= ' required';
		}
		if ($defaulthtmltagrenderer = $this->getdecorator('htmltag')) {
			$parentclass = $defaulthtmltagrenderer->getoption('class');
			$ulClass .= ' '.$parentclass;
		}

		$this->setOptions(array(
			'separator' => '</li><li>',
			'decorators' => array(
				'ViewHelper',
				'Description',
				array('Wrapper' => array('tag1' => 'HtmlTag'), array('tag' => 'li')),
				array(array('tag2' => 'HtmlTag'), array('tag' => 'ul', 'class' => $ulClass)),
				array('AnyMarkup', array('markup' => $legendHtml, 'placement' => 'prepend')),
				'Errors',
				array(array('tag3' => 'HtmlTag'), array('tag' => 'div', 'class' => 'multi-input-container')),
			)
		));
	}

}
{'fraction_non_alphanumeric': 0.21799928289709572, 'fraction_numerical': 0.0028684116170670493, 'mean_word_length': 4.524752475247524, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 60, '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': '1073743', 'n_tokens_mistral': 1076, 'n_tokens_neox': 964, 'n_words': 159}