original_string: private function create_course() {
          $this->log('createcourse', $this->shortname);
          $courserecord = array(
              'shortname' => $this->shortname,
              'fullname' => $this->fullname,
              'numsections' => self::$paramsections[$this->size],
              'startdate' => usergetmidnight(time())
          );
          if (strlen($this->summary) > 0) {
              $courserecord['summary'] = $this->summary;
              $courserecord['summary_format'] = $this->summaryformat;
          }
  
          return $this->generator->create_course($courserecord, array('createsections' => true));
      }
code: private function create_course() {
          $this->log('createcourse', $this->shortname);
          $courserecord = array(
              'shortname' => $this->shortname,
              'fullname' => $this->fullname,
              'numsections' => self::$paramsections[$this->size],
              'startdate' => usergetmidnight(time())
          );
          if (strlen($this->summary) > 0) {
              $courserecord['summary'] = $this->summary;
              $courserecord['summary_format'] = $this->summaryformat;
          }
  
          return $this->generator->create_course($courserecord, array('createsections' => true));
      }
code_tokens: private function create_course ( ) { $ this -> log ( 'createcourse' , $ this -> shortname ) ; $ courserecord = array ( 'shortname' => $ this -> shortname , 'fullname' => $ this -> fullname , 'numsections' => self :: $ paramsections [ $ this -> size ] , 'startdate' => usergetmidnight ( time ( ) ) ) ; if ( strlen ( $ this -> summary ) > 0 ) { $ courserecord [ 'summary' ] = $ this -> summary ; $ courserecord [ 'summary_format' ] = $ this -> summaryformat ; } return $ this -> generator -> create_course ( $ courserecord , array ( 'createsections' => true ) ) ; }
docstring: Creates the actual course.
  
  @return stdClass Course record
docstring_tokens: Creates the actual course .