original_string: public function set_from_request() {
          foreach ($this->get_field_types() as $field => $type) {
              $this->$field = optional_param($field, $this->$field, $type);
          }
          $this->numpartscorrect = $this->feedback;
      }
code: public function set_from_request() {
          foreach ($this->get_field_types() as $field => $type) {
              $this->$field = optional_param($field, $this->$field, $type);
          }
          $this->numpartscorrect = $this->feedback;
      }
code_tokens: public function set_from_request ( ) { foreach ( $ this -> get_field_types ( ) as $ field => $ type ) { $ this -> $ field = optional_param ( $ field , $ this -> $ field , $ type ) ; } $ this -> numpartscorrect = $ this -> feedback ; }
docstring: Set the value of any fields included in the request.
docstring_tokens: Set the value of any fields included in the request .