original_string: public function prediction_sample_data($predictionobj) {
  
          list($unused, $samplesdata) = $this->get_analyser()->get_samples(array($predictionobj->sampleid));
  
          if (empty($samplesdata[$predictionobj->sampleid])) {
              throw new \moodle_exception('errorsamplenotavailable', 'analytics');
          }
  
          return $samplesdata[$predictionobj->sampleid];
      }
code: public function prediction_sample_data($predictionobj) {
  
          list($unused, $samplesdata) = $this->get_analyser()->get_samples(array($predictionobj->sampleid));
  
          if (empty($samplesdata[$predictionobj->sampleid])) {
              throw new \moodle_exception('errorsamplenotavailable', 'analytics');
          }
  
          return $samplesdata[$predictionobj->sampleid];
      }
code_tokens: public function prediction_sample_data ( $ predictionobj ) { list ( $ unused , $ samplesdata ) = $ this -> get_analyser ( ) -> get_samples ( array ( $ predictionobj -> sampleid ) ) ; if ( empty ( $ samplesdata [ $ predictionobj -> sampleid ] ) ) { throw new \ moodle_exception ( 'errorsamplenotavailable' , 'analytics' ) ; } return $ samplesdata [ $ predictionobj -> sampleid ] ; }
docstring: Returns the sample data of a prediction.
  
  @param \stdClass $predictionobj
  @return array
docstring_tokens: Returns the sample data of a prediction .