original_string: public function getSurveyResults($post) {
          $comments = $this->getComments();
  
          $table  = \MUtil_Html::create()->table(['class' => 'browser table']);
          $header = $table->thead()->tr();
          $header->th($this->_('Source Survey'));
          $header->th($this->_('Target Survey'));
  
          $header = $table->thead()->tr();
          $header->th($this->surveys[$this->sourceSurveyId]);
          $header->th($this->surveys[$this->targetSurveyId]);
  
          $tableBody = $table->tbody();
          $row       = $tableBody->tr();
          $row->td($this->getSurveyStatistics($this->sourceSurveyId));
          $row->td($this->getSurveyStatistics($this->targetSurveyId));
          $tableBody->tr()->td(['colspan' => 2]);
  
          if ($this->formData['copy_answers'] == 1) {
              $sourceSurveyData = $this->getSurveyData($this->sourceSurveyId);
              $targetSurveyData = $this->getSurveyData($this->targetSurveyId);
  
              $compareResultSummary = $this->getCompareResultSummary($post, $sourceSurveyData, $targetSurveyData);
  
              $tableBody->tr()->th($this->_('Summary'), ['colspan' => 2]);
              $tableBody->tr()->td($compareResultSummary, ['colspan' => 2]);
          }
  
          if ($comments) {
              $tableBody->tr()->th($this->_('Comments'), ['colspan' => 2]);
              $tableBody->tr()->td($comments, ['colspan' => 2]);
          }
  
          return $table;
      }
code: public function getSurveyResults($post) {
          $comments = $this->getComments();
  
          $table  = \MUtil_Html::create()->table(['class' => 'browser table']);
          $header = $table->thead()->tr();
          $header->th($this->_('Source Survey'));
          $header->th($this->_('Target Survey'));
  
          $header = $table->thead()->tr();
          $header->th($this->surveys[$this->sourceSurveyId]);
          $header->th($this->surveys[$this->targetSurveyId]);
  
          $tableBody = $table->tbody();
          $row       = $tableBody->tr();
          $row->td($this->getSurveyStatistics($this->sourceSurveyId));
          $row->td($this->getSurveyStatistics($this->targetSurveyId));
          $tableBody->tr()->td(['colspan' => 2]);
  
          if ($this->formData['copy_answers'] == 1) {
              $sourceSurveyData = $this->getSurveyData($this->sourceSurveyId);
              $targetSurveyData = $this->getSurveyData($this->targetSurveyId);
  
              $compareResultSummary = $this->getCompareResultSummary($post, $sourceSurveyData, $targetSurveyData);
  
              $tableBody->tr()->th($this->_('Summary'), ['colspan' => 2]);
              $tableBody->tr()->td($compareResultSummary, ['colspan' => 2]);
          }
  
          if ($comments) {
              $tableBody->tr()->th($this->_('Comments'), ['colspan' => 2]);
              $tableBody->tr()->td($comments, ['colspan' => 2]);
          }
  
          return $table;
      }
code_tokens: public function getSurveyResults ( $ post ) { $ comments = $ this -> getComments ( ) ; $ table = \ MUtil_Html :: create ( ) -> table ( [ 'class' => 'browser table' ] ) ; $ header = $ table -> thead ( ) -> tr ( ) ; $ header -> th ( $ this -> _ ( 'Source Survey' ) ) ; $ header -> th ( $ this -> _ ( 'Target Survey' ) ) ; $ header = $ table -> thead ( ) -> tr ( ) ; $ header -> th ( $ this -> surveys [ $ this -> sourceSurveyId ] ) ; $ header -> th ( $ this -> surveys [ $ this -> targetSurveyId ] ) ; $ tableBody = $ table -> tbody ( ) ; $ row = $ tableBody -> tr ( ) ; $ row -> td ( $ this -> getSurveyStatistics ( $ this -> sourceSurveyId ) ) ; $ row -> td ( $ this -> getSurveyStatistics ( $ this -> targetSurveyId ) ) ; $ tableBody -> tr ( ) -> td ( [ 'colspan' => 2 ] ) ; if ( $ this -> formData [ 'copy_answers' ] == 1 ) { $ sourceSurveyData = $ this -> getSurveyData ( $ this -> sourceSurveyId ) ; $ targetSurveyData = $ this -> getSurveyData ( $ this -> targetSurveyId ) ; $ compareResultSummary = $ this -> getCompareResultSummary ( $ post , $ sourceSurveyData , $ targetSurveyData ) ; $ tableBody -> tr ( ) -> th ( $ this -> _ ( 'Summary' ) , [ 'colspan' => 2 ] ) ; $ tableBody -> tr ( ) -> td ( $ compareResultSummary , [ 'colspan' => 2 ] ) ; } if ( $ comments ) { $ tableBody -> tr ( ) -> th ( $ this -> _ ( 'Comments' ) , [ 'colspan' => 2 ] ) ; $ tableBody -> tr ( ) -> td ( $ comments , [ 'colspan' => 2 ] ) ; } return $ table ; }
docstring: Creates a table showing the results of the survey compare
  
  @param $post array List of POST data
  @return \MUtil_Html Table
docstring_tokens: Creates a table showing the results of the survey compare