original_string: public function add_assign_info($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo) {
          $this->assignments[] = array('cmid'=>$cmid,
                                 'cmname'=>$cmname,
                                 'sectionname'=>$sectionname,
                                 'timedue'=>$timedue,
                                 'submissioninfo'=>$submissioninfo,
                                 'gradeinfo'=>$gradeinfo);
      }
code: public function add_assign_info($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo) {
          $this->assignments[] = array('cmid'=>$cmid,
                                 'cmname'=>$cmname,
                                 'sectionname'=>$sectionname,
                                 'timedue'=>$timedue,
                                 'submissioninfo'=>$submissioninfo,
                                 'gradeinfo'=>$gradeinfo);
      }
code_tokens: public function add_assign_info ( $ cmid , $ cmname , $ sectionname , $ timedue , $ submissioninfo , $ gradeinfo ) { $ this -> assignments [ ] = array ( 'cmid' => $ cmid , 'cmname' => $ cmname , 'sectionname' => $ sectionname , 'timedue' => $ timedue , 'submissioninfo' => $ submissioninfo , 'gradeinfo' => $ gradeinfo ) ; }
docstring: Add a row of data to display on the course index page
  
  @param int $cmid - The course module id for generating a link
  @param string $cmname - The course module name for generating a link
  @param string $sectionname - The name of the course section (only if $usesections is true)
  @param int $timedue - The due date for the assignment - may be 0 if no duedate
  @param string $submissioninfo - A string with either the number of submitted assignments, or the
  status of the current users submission depending on capabilities.
  @param string $gradeinfo - The current users grade if they have been graded and it is not hidden.
docstring_tokens: Add a row of data to display on the course index page