<commit_before><observation classCode="OBS" moodCode="EVN">
  <templateId root="2.16.840.1.113883.10.20.27.3.14"/>
  <code code="72510-1" codeSystem="2.16.840.1.113883.6.1"
    displayName="Performance Rate" 
    codeSystemName="2.16.840.1.113883.6.1"/>
  <statusCode code="completed"/>
  <value xsi:type="REAL" value="<%= population_group.performance_rate %>"/>
  <reference typeCode="REFR">
     <externalObservation classCode="OBS" moodCode="EVN">
       <id root="<%= population_group.numerator.id %>"/>
       <code code="NUMER" displayName="Numerator"
        codeSystem="2.16.840.1.113883.5.1063"
        codeSystemName="ObservationValue"/>
    </externalObservation>
  </reference>
</observation><commit_msg>Performance rate returns nullFlavor NA when Denominator is 0<commit_after><observation classCode="OBS" moodCode="EVN">
  <templateId root="2.16.840.1.113883.10.20.27.3.14"/>
  <code code="72510-1" codeSystem="2.16.840.1.113883.6.1"
    displayName="Performance Rate" 
    codeSystemName="2.16.840.1.113883.6.1"/>
  <statusCode code="completed"/>
  <% if population_group.denominator_count - population_group.denominator_exclusions_count - population_group.denominator_exceptions_count > 0 %>
  <value xsi:type="REAL" value="<%= population_group.performance_rate %>"/>
  <% else %>
    <value nullFlavor="NA"/>
  <% end %>
  <reference typeCode="REFR">
     <externalObservation classCode="OBS" moodCode="EVN">
       <id root="<%= population_group.numerator.id %>"/>
       <code code="NUMER" displayName="Numerator"
        codeSystem="2.16.840.1.113883.5.1063"
        codeSystemName="ObservationValue"/>
    </externalObservation>
  </reference>
</observation>
{'fraction_non_alphanumeric': 0.17153067301965455, 'fraction_numerical': 0.09172126265634306, 'mean_word_length': 4.401929260450161, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2481704', 'n_tokens_mistral': 678, 'n_tokens_neox': 583, 'n_words': 82}