<commit_before><record xmlns="urn:hl7-org:greencda:c32">
  <patientInformation>
    <id><%= record.id%></id>
    <name>
      <title><%= record.title %></title>
      <givenName><%= record.first %></givenName>
      <familyName><%= record.last %></familyName>
    </name>
    <gender code="<%= record.gender %>" codeSystem="2.16.840.1.113883.5.1" />
    <dateOfBirth><%= time_if_not_nil(record.birthdate) %></dateOfBirth>
    <dateOfDeath><%= time_if_not_nil(record.deathdate) %></dateOfDeath>
    <maritalStatus />
    <religiousAffiliation />
    <% if record.race %>
      <race code="<%=record.race['code']%>" codeSystem="2.16.840.1.113883.6.238" />
    <% end %>
    <% if record.ethnicity %>
      <ethnicity code="<%=record.ethnicity['code']%>" codeSystem="2.16.840.1.113883.6.238" />
    <% end %>
    <languagesSpoken>
    <% record.languages.each do |l| %>
      <language><%=l%></language>
    <% end%>
    </languagesSpoken>
  </patientInformation>
  <allergies>
    <% record.allergies.each do |a| %>
      <%== render partial: "allergy", locals: {allergy: a} %>
    <% end %>
  </allergies>
  <conditions>
    <% record.conditions.each do |c| %>
      <%== render partial: "condition", locals: {condition: c} %>
    <% end %><commit_msg>correctly set record id in record gc32 template<commit_after><record xmlns="urn:hl7-org:greencda:c32">
  <patientInformation id="<%=record.medical_record_number%>">
    <name>
      <title><%= record.title %></title>
      <givenName><%= record.first %></givenName>
      <familyName><%= record.last %></familyName>
    </name>
    <gender code="<%= record.gender %>" codeSystem="2.16.840.1.113883.5.1" />
    <dateOfBirth><%= time_if_not_nil(record.birthdate) %></dateOfBirth>
    <dateOfDeath><%= time_if_not_nil(record.deathdate) %></dateOfDeath>
    <maritalStatus />
    <religiousAffiliation />
    <% if record.race %>
      <race code="<%=record.race['code']%>" codeSystem="2.16.840.1.113883.6.238" />
    <% end %>
    <% if record.ethnicity %>
      <ethnicity code="<%=record.ethnicity['code']%>" codeSystem="2.16.840.1.113883.6.238" />
    <% end %>
    <languagesSpoken>
    <% record.languages.each do |l| %>
      <language><%=l%></language>
    <% end%>
    </languagesSpoken>
  </patientInformation>
  <allergies>
    <% record.allergies.each do |a| %>
      <%== render partial: "allergy", locals: {allergy: a} %>
    <% end %>
  </allergies>
  <conditions>
    <% record.conditions.each do |c| %>
      <%== render partial: "condition", locals: {condition: c} %>
    <% end %>
{'fraction_non_alphanumeric': 0.21366849960722703, 'fraction_numerical': 0.041633935585231735, 'mean_word_length': 3.3913793103448278, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1328835', 'n_tokens_mistral': 1050, 'n_tokens_neox': 914, 'n_words': 148}