original_string: public function is_course_complete($user_id) {
          $params = array(
              'userid'    => $user_id,
              'course'  => $this->course_id
          );
  
          $ccompletion = new completion_completion($params);
          return $ccompletion->is_complete();
      }
code: public function is_course_complete($user_id) {
          $params = array(
              'userid'    => $user_id,
              'course'  => $this->course_id
          );
  
          $ccompletion = new completion_completion($params);
          return $ccompletion->is_complete();
      }
code_tokens: public function is_course_complete ( $ user_id ) { $ params = array ( 'userid' => $ user_id , 'course' => $ this -> course_id ) ; $ ccompletion = new completion_completion ( $ params ) ; return $ ccompletion -> is_complete ( ) ; }
docstring: Has the supplied user completed this course
  
  @param int $user_id User's id
  @return boolean
docstring_tokens: Has the supplied user completed this course