original_string: public function on_elements_end() {
  
          foreach ($this->mappings as $mapping) {
              $this->write_xml('workshopform_numerrors_map', $mapping, array('/workshopform_numerrors_map/id'));
          }
  
          foreach ($this->dimensions as $dimension) {
              $this->write_xml('workshopform_numerrors_dimension', $dimension, array('/workshopform_numerrors_dimension/id'));
          }
      }
code: public function on_elements_end() {
  
          foreach ($this->mappings as $mapping) {
              $this->write_xml('workshopform_numerrors_map', $mapping, array('/workshopform_numerrors_map/id'));
          }
  
          foreach ($this->dimensions as $dimension) {
              $this->write_xml('workshopform_numerrors_dimension', $dimension, array('/workshopform_numerrors_dimension/id'));
          }
      }
code_tokens: public function on_elements_end ( ) { foreach ( $ this -> mappings as $ mapping ) { $ this -> write_xml ( 'workshopform_numerrors_map' , $ mapping , array ( '/workshopform_numerrors_map/id' ) ) ; } foreach ( $ this -> dimensions as $ dimension ) { $ this -> write_xml ( 'workshopform_numerrors_dimension' , $ dimension , array ( '/workshopform_numerrors_dimension/id' ) ) ; } }
docstring: Writes gathered mappings and dimensions
docstring_tokens: Writes gathered mappings and dimensions