original_string: public function clear_attempt($data) {
          global $DB;
  
          foreach ($data['criteria'] as $criterionid => $record) {
              $DB->delete_records('gradingform_rubric_fillings',
                  array('criterionid' => $criterionid, 'instanceid' => $this->get_id()));
          }
      }
code: public function clear_attempt($data) {
          global $DB;
  
          foreach ($data['criteria'] as $criterionid => $record) {
              $DB->delete_records('gradingform_rubric_fillings',
                  array('criterionid' => $criterionid, 'instanceid' => $this->get_id()));
          }
      }
code_tokens: public function clear_attempt ( $ data ) { global $ DB ; foreach ( $ data [ 'criteria' ] as $ criterionid => $ record ) { $ DB -> delete_records ( 'gradingform_rubric_fillings' , array ( 'criterionid' => $ criterionid , 'instanceid' => $ this -> get_id ( ) ) ) ; } }
docstring: Removes the attempt from the gradingform_guide_fillings table
  @param array $data the attempt data
docstring_tokens: Removes the attempt from the gradingform_guide_fillings table