original_string: public function clear_assessments() {
          global $DB;
  
          $submissions = $this->get_submissions();
          if (empty($submissions)) {
              // no money, no love
              return;
          }
          $submissions = array_keys($submissions);
          list($sql, $params) = $DB->get_in_or_equal($submissions, SQL_PARAMS_NAMED);
          $sql = "submissionid $sql";
          $DB->set_field_select('workshop_assessments', 'grade', null, $sql, $params);
          $DB->set_field_select('workshop_assessments', 'gradinggrade', null, $sql, $params);
      }
code: public function clear_assessments() {
          global $DB;
  
          $submissions = $this->get_submissions();
          if (empty($submissions)) {
              // no money, no love
              return;
          }
          $submissions = array_keys($submissions);
          list($sql, $params) = $DB->get_in_or_equal($submissions, SQL_PARAMS_NAMED);
          $sql = "submissionid $sql";
          $DB->set_field_select('workshop_assessments', 'grade', null, $sql, $params);
          $DB->set_field_select('workshop_assessments', 'gradinggrade', null, $sql, $params);
      }
code_tokens: public function clear_assessments ( ) { global $ DB ; $ submissions = $ this -> get_submissions ( ) ; if ( empty ( $ submissions ) ) { // no money, no love return ; } $ submissions = array_keys ( $ submissions ) ; list ( $ sql , $ params ) = $ DB -> get_in_or_equal ( $ submissions , SQL_PARAMS_NAMED ) ; $ sql = "submissionid $sql" ; $ DB -> set_field_select ( 'workshop_assessments' , 'grade' , null , $ sql , $ params ) ; $ DB -> set_field_select ( 'workshop_assessments' , 'gradinggrade' , null , $ sql , $ params ) ; }
docstring: Sets the given grades and received grading grades to null
  
  This does not clear the information about how the peers filled the assessment forms, but
  clears the calculated grades in workshop_assessments. Therefore reviewers have to re-assess
  the allocated submissions.
  
  @return void
docstring_tokens: Sets the given grades and received grading grades to null