original_string: public function mark_as_trained() {
          global $DB;
  
          \core_analytics\manager::check_can_manage_models();
  
          $this->model->trained = 1;
          $DB->update_record('analytics_models', $this->model);
      }
code: public function mark_as_trained() {
          global $DB;
  
          \core_analytics\manager::check_can_manage_models();
  
          $this->model->trained = 1;
          $DB->update_record('analytics_models', $this->model);
      }
code_tokens: public function mark_as_trained ( ) { global $ DB ; \ core_analytics \ manager :: check_can_manage_models ( ) ; $ this -> model -> trained = 1 ; $ DB -> update_record ( 'analytics_models' , $ this -> model ) ; }
docstring: Marks the model as trained
  
  @return void
docstring_tokens: Marks the model as trained