original_string: public function process_roles_role($data) {
  
          if (!$this->has_xml_writer()) {
              $this->open_xml_writer('roles.xml');
              $this->xmlwriter->begin_tag('roles_definition');
          }
          if (!isset($data['nameincourse'])) {
              $data['nameincourse'] = null;
          }
          $this->write_xml('role', $data, array('role/id'));
      }
code: public function process_roles_role($data) {
  
          if (!$this->has_xml_writer()) {
              $this->open_xml_writer('roles.xml');
              $this->xmlwriter->begin_tag('roles_definition');
          }
          if (!isset($data['nameincourse'])) {
              $data['nameincourse'] = null;
          }
          $this->write_xml('role', $data, array('role/id'));
      }
code_tokens: public function process_roles_role ( $ data ) { if ( ! $ this -> has_xml_writer ( ) ) { $ this -> open_xml_writer ( 'roles.xml' ) ; $ this -> xmlwriter -> begin_tag ( 'roles_definition' ) ; } if ( ! isset ( $ data [ 'nameincourse' ] ) ) { $ data [ 'nameincourse' ] = null ; } $ this -> write_xml ( 'role' , $ data , array ( 'role/id' ) ) ; }
docstring: If there are any roles defined in moodle.xml, convert them to roles.xml
docstring_tokens: If there are any roles defined in moodle . xml convert them to roles . xml