original_string: public function clear_criteria() {
          global $DB;
          $DB->delete_records('course_completion_criteria', array('course' => $this->course_id));
          $DB->delete_records('course_completion_aggr_methd', array('course' => $this->course_id));
  
          $this->delete_course_completion_data();
      }
code: public function clear_criteria() {
          global $DB;
          $DB->delete_records('course_completion_criteria', array('course' => $this->course_id));
          $DB->delete_records('course_completion_aggr_methd', array('course' => $this->course_id));
  
          $this->delete_course_completion_data();
      }
code_tokens: public function clear_criteria ( ) { global $ DB ; $ DB -> delete_records ( 'course_completion_criteria' , array ( 'course' => $ this -> course_id ) ) ; $ DB -> delete_records ( 'course_completion_aggr_methd' , array ( 'course' => $ this -> course_id ) ) ; $ this -> delete_course_completion_data ( ) ; }
docstring: Clear old course completion criteria
docstring_tokens: Clear old course completion criteria