<commit_before><?php  // $Id$
require_once "$CFG->libdir/formslib.php";
class mod_quiz_report_responses_settings extends moodleform {

    function definition() {
        global $COURSE;
        $mform    =& $this->_form;
//-------------------------------------------------------------------------------
        $mform->addElement('header', 'preferencespage', get_string('preferencespage', 'quiz_overview'));

        if (!$this->_customdata['currentgroup']){
            $studentsstring = "'".$COURSE->students."'";
        } else {
            $a = new object();
            $a->coursestudent = $COURSE->students;
            $a->groupname = groups_get_group_name($this->_customdata['currentgroup']);
            $studentsstring = get_string('studentingroup', 'quiz_overview', $a);
        }
        $options = array();
        if (!$this->_customdata['currentgroup']){
            $options[QUIZ_REPORT_ATTEMPTS_ALL] = get_string('optallattempts','quiz_overview');
        }
        if ($this->_customdata['currentgroup'] || $COURSE->id != SITEID) {
            $options[QUIZ_REPORT_ATTEMPTS_ALL_STUDENTS] = get_string('optallstudents','quiz_overview', $studentsstring);
            $options[QUIZ_REPORT_ATTEMPTS_STUDENTS_WITH] =<commit_msg>MDL-16612 "Response report : Long group names need shortening"<commit_after><?php  // $Id$
require_once "$CFG->libdir/formslib.php";
class mod_quiz_report_responses_settings extends moodleform {

    function definition() {
        global $COURSE;
        $mform    =& $this->_form;
//-------------------------------------------------------------------------------
        $mform->addElement('header', 'preferencespage', get_string('preferencespage', 'quiz_overview'));

        if (!$this->_customdata['currentgroup']){
            $studentsstring = "'".$COURSE->students."'";
        } else {
            $a = new object();
            $a->coursestudent = $COURSE->students;
            $a->groupname = groups_get_group_name($this->_customdata['currentgroup']);
            if (20 < strlen($a->groupname)){
                $studentsstring = get_string('studentingrouplong', 'quiz_overview', $a);
            } else {
                $studentsstring = get_string('studentingroup', 'quiz_overview', $a);
            }
        }
        $options = array();
        if (!$this->_customdata['currentgroup']){
            $options[QUIZ_REPORT_ATTEMPTS_ALL] = get_string('optallattempts','quiz_overview');
        }
        if ($this->_customdata['currentgroup'] || $COURSE->id != SITEID) {
            $options[QUIZ_REPORT_ATTEMPTS_ALL_STUDENTS] = get_string('optallstudents','quiz_overview', $studentsstring);
            $options[QUIZ_REPORT_ATTEMPTS_STUDENTS_WITH] =
{'fraction_non_alphanumeric': 0.20310192023633677, 'fraction_numerical': 0.00258493353028065, 'mean_word_length': 2.446564885496183, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 28, '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': '3309498', 'n_tokens_mistral': 826, 'n_tokens_neox': 797, 'n_words': 111}