<commit_before><% title t('.accession', id: @diagnostic_report.id) %>

<fieldset class="<%= @diagnostic_report.reported_at.blank? %>">
  <h1><%= t('.accession', id: @diagnostic_report.id) %></h1>

  <%= practitioner(@diagnostic_report.doctor) %><br/>

  <% if @diagnostic_report.icd9.present? %>
    <%= t('.icd9') %>
    <strong><%= @diagnostic_report.icd9 %></strong><br/>
  <% end %>

  <% if @diagnostic_report.drawn_at %>
    <%= t('.drawn_at') %>
    <strong><%= l(@diagnostic_report.drawn_at, format: :short) %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.drawer.initials %></strong><br/>
  <% end %>

  <% if @diagnostic_report.received_at %>
    <%= t('.received_at') %>
    <strong><%= l(@diagnostic_report.received_at, format: :short) %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.receiver.initials %></strong><br/>
  <% end %>

  <% if @diagnostic_report.reported_at %>
    <%= t('.reported_at') %>
    <strong><%= l(@diagnostic_report.reported_at, format: '%e %b %Y %l:%M%p') %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.reporter.initials %></strong>
  <% end %>

  <%= form_with model: @diagnostic_report, url: diagnostic_report_path(@diagnostic_report), local: true, html: { novalidate: '' } do |a| %>
    <%= render 'shared/error_messages', object: @diagnostic_report %>

    <% @diagnostic_report.results.includes(lab_test: [:department, :lab_test_values]).order('lab_tests.position').group_by(&:department).each do |department, results| %>
      <h2><%= department.name %></h2>
<commit_msg>Eager-loading<commit_after><% title t('.accession', id: @diagnostic_report.id) %>

<fieldset class="<%= @diagnostic_report.reported_at.blank? %>">
  <h1><%= t('.accession', id: @diagnostic_report.id) %></h1>

  <%= practitioner(@diagnostic_report.doctor) %><br/>

  <% if @diagnostic_report.icd9.present? %>
    <%= t('.icd9') %>
    <strong><%= @diagnostic_report.icd9 %></strong><br/>
  <% end %>

  <% if @diagnostic_report.drawn_at %>
    <%= t('.drawn_at') %>
    <strong><%= l(@diagnostic_report.drawn_at, format: :short) %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.drawer.initials %></strong><br/>
  <% end %>

  <% if @diagnostic_report.received_at %>
    <%= t('.received_at') %>
    <strong><%= l(@diagnostic_report.received_at, format: :short) %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.receiver.initials %></strong><br/>
  <% end %>

  <% if @diagnostic_report.reported_at %>
    <%= t('.reported_at') %>
    <strong><%= l(@diagnostic_report.reported_at, format: '%e %b %Y %l:%M%p') %></strong>
    <%= t('.by') %>
    <strong><%= @diagnostic_report.reporter.initials %></strong>
  <% end %>

  <%= form_with model: @diagnostic_report, url: diagnostic_report_path(@diagnostic_report), local: true, html: { novalidate: '' } do |a| %>
    <%= render 'shared/error_messages', object: @diagnostic_report %>

    <% @diagnostic_report.results.includes(lab_test: [:department, :lab_test_values, :lab_test_value_option_joints]).order('lab_tests.position').group_by(&:department).each do |department, results| %>
      <h2><%= department.name %></h2>

{'fraction_non_alphanumeric': 0.23227229751024267, 'fraction_numerical': 0.00441222817522849, 'mean_word_length': 4.63765541740675, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3858385', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1123, 'n_words': 177}