original_string: protected function update_peer_grade(stdclass $assessment) {
          $grades     = $this->get_current_assessment_data($assessment);
          $suggested  = $this->calculate_peer_grade($grades);
          if (!is_null($suggested)) {
              $this->workshop->set_peer_grade($assessment->id, $suggested);
          }
          return $suggested;
      }
code: protected function update_peer_grade(stdclass $assessment) {
          $grades     = $this->get_current_assessment_data($assessment);
          $suggested  = $this->calculate_peer_grade($grades);
          if (!is_null($suggested)) {
              $this->workshop->set_peer_grade($assessment->id, $suggested);
          }
          return $suggested;
      }
code_tokens: protected function update_peer_grade ( stdclass $ assessment ) { $ grades = $ this -> get_current_assessment_data ( $ assessment ) ; $ suggested = $ this -> calculate_peer_grade ( $ grades ) ; if ( ! is_null ( $ suggested ) ) { $ this -> workshop -> set_peer_grade ( $ assessment -> id , $ suggested ) ; } return $ suggested ; }
docstring: Aggregates the assessment form data and sets the grade for the submission given by the peer
  
  @param stdClass $assessment Assessment record
  @return float|null          Raw grade (from 0.00000 to 100.00000) for submission as suggested by the peer
docstring_tokens: Aggregates the assessment form data and sets the grade for the submission given by the peer