<commit_before><?php
require_once("HTML/QuickForm/group.php");

/**
 * HTML class for a form element group
 * 
 * @author       <NAME> <<EMAIL>>
 * @author       <NAME> <<EMAIL>>
 * @version      1.0
 * @since        PHP4.04pl1
 * @access       public
 */
class moodleform_group extends HTML_QuickForm_group{
    /**
     * html for help button, if empty then no help
     *
     * @var string
     */
    var $_helpbutton='';
    /**
     * set html for help button
     *
     * @access   public
     * @param array $help array of arguments to make a help button
     */
    function setHelpButton($helpbuttonargs){
        if (!is_array($helpbuttonargs)){
            $helpbuttonargs=array($helpbuttonargs);
        }else{
            $helpbuttonargs=$helpbuttonargs;
        }
        //we do this to to return html instead of printing it 
        //without having to specify it in every call to make a button.
        $defaultargs=array('', '', 'moodle', true, false, '', true);
        $helpbuttonargs=$helpbuttonargs + $defaultargs ;
        $this->_helpbutton=call_user_func_array('helpbutton', $helpbuttonargs);
    }
    /**
     * get html for help button
     *
     * @access   public
     * @return  string html for help button
     */
    function getHelpButton(){
        return $this->_helpbutton;
    }
}<commit_msg>added comments to show how to add nested fieldset container for groups of items<commit_after><?php
require_once("HTML/QuickForm/group.php");

/**
 * HTML class for a form element group
 * 
 * @author       <NAME> <<EMAIL>>
 * @author       <NAME> <<EMAIL>>
 * @version      1.0
 * @since        PHP4.04pl1
 * @access       public
 */
class moodleform_group extends HTML_QuickForm_group{
    /**
     * html for help button, if empty then no help
     *
     * @var string
     */
    var $_helpbutton='';
    var $_elementTemplateType='default';
    //would cause problems with client side validation so will leave for now
    //var $_elementTemplateType='fieldset';
    /**
     * set html for help button
     *
     * @access   public
     * @param array $help array of arguments to make a help button
     */
    function setHelpButton($helpbuttonargs){
        if (!is_array($helpbuttonargs)){
            $helpbuttonargs=array($helpbuttonargs);
        }else{
            $helpbuttonargs=$helpbuttonargs;
        }
        //we do this to to return html instead of printing it 
        //without having to specify it in every call to make a button.
        $defaultargs=array('', '', 'moodle', true, false, '', true);
        $helpbuttonargs=$helpbuttonargs + $defaultargs ;
        $this->_helpbutton=call_user_func_array('helpbutton', $helpbuttonargs);
    }
    /**
     * get html for help button
     *
     * @access   public
     * @return  string html for help button
     */
    function getHelpButton(){
        return $this->_helpbutton;
    }
    function getElementTemplateType(){
        return $this->_elementTemplateType;
    }
}
{'fraction_non_alphanumeric': 0.11323283082077051, 'fraction_numerical': 0.004020100502512563, 'mean_word_length': 2.37020316027088, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 20, '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': '6568001', 'n_tokens_mistral': 848, 'n_tokens_neox': 839, 'n_words': 257}