original_string: public function rename(string $name) {
          global $DB, $USER;
  
          $this->model->name = $name;
          $this->model->timemodified = time();
          $this->model->usermodified = $USER->id;
  
          $DB->update_record('analytics_models', $this->model);
      }
code: public function rename(string $name) {
          global $DB, $USER;
  
          $this->model->name = $name;
          $this->model->timemodified = time();
          $this->model->usermodified = $USER->id;
  
          $DB->update_record('analytics_models', $this->model);
      }
code_tokens: public function rename ( string $ name ) { global $ DB , $ USER ; $ this -> model -> name = $ name ; $ this -> model -> timemodified = time ( ) ; $ this -> model -> usermodified = $ USER -> id ; $ DB -> update_record ( 'analytics_models' , $ this -> model ) ; }
docstring: Renames the model to the given name.
  
  When given an empty string, the model falls back to using the associated target's name as its name.
  
  @param string $name The new name for the model, empty string for using the default name.
docstring_tokens: Renames the model to the given name .