original_string: public function add_event_button($courseid, $unused1 = null, $unused2 = null, $unused3 = null, $unused4 = null) {
          $data = [
              'contextid' => (\context_course::instance($courseid))->id,
          ];
          return $this->render_from_template('core_calendar/add_event_button', $data);
      }
code: public function add_event_button($courseid, $unused1 = null, $unused2 = null, $unused3 = null, $unused4 = null) {
          $data = [
              'contextid' => (\context_course::instance($courseid))->id,
          ];
          return $this->render_from_template('core_calendar/add_event_button', $data);
      }
code_tokens: public function add_event_button ( $ courseid , $ unused1 = null , $ unused2 = null , $ unused3 = null , $ unused4 = null ) { $ data = [ 'contextid' => ( \ context_course :: instance ( $ courseid ) ) -> id , ] ; return $ this -> render_from_template ( 'core_calendar/add_event_button' , $ data ) ; }
docstring: Creates a button to add a new event.
  
  @param int $courseid
  @param int $unused1
  @param int $unused2
  @param int $unused3
  @param int $unused4
  @return string
docstring_tokens: Creates a button to add a new event .