<commit_before><div id="run-outputs">
  <% if run.finished? && run.outputs.any? %>
    <!-- Result output port names from the workflow -->
    <% result_output_port_names = run.workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::RESULT) }.collect { |i| i.name } -%>
    <!-- Figure out result outputs from the run -->
    <% run_result_outputs = run.outputs.select { |output| result_output_port_names.include?(output.name) } %>
    <h2 style='background-color: #CDDEEF; background-image: url("../images/header-bg2.png");'>Results (<%= run_result_outputs.count -%>)</h2>
    <% unless run_result_outputs.blank? -%>
      <div style="clear: both;"></div>

      <table class="simple" style="width: 96%; margin-left:2%; margin-right:2%;">
        <% run_result_outputs.each do |b| -%>
          <tr>
            <td>
              <h3><%= b.name %></h3>

              <p>
                <strong>Value:</strong>
                <%= "(#{b.metadata[:type]})" if b.depth == 0 %>
                <%= show_output(run, b) %>
              </p>
            </td>
          </tr>
        <% end %>
      </table>
    <% else %>
      <p class="none_text" style="margin-left:20px;">None</p>
    <% end %>

    <!-- Error/log output port names from the workflow -->
    <% error_log_output_port_names = run.workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::ERROR_LOG) }.collect { |i| i.name } -%>
    <!-- Figure out error/log outputs from the run -->
    <% run_error_log_outputs = run.outputs.select { |output| error_log_output_port_names.include?(output.name) } %>
    <h2 style='background-color: #CDDEEF; background-image: url("../images/header-bg2.png");'>Errors/Logs (<%= run_error_log_outputs.count -%>)</h2>
    <% unless run_error_log_outputs.blank? -%>
      <div style="clear: both;"></div>

      <table class="simple" style="width: 96%; margin-left:2%; margin-right:2%;">
        <% run_error_log_outputs.each do |b| -%>
          <tr>
            <td>
              <h3><%= b.name %></h3>

              <p>
                <strong>Value:</strong>
                <%= "(#{b.metadata[:type]})" if b.depth == 0 %>
                <%= show_output(run, b) %>
              </p>
            </td>
          </tr>
        <% end %>
      </table>
    <% else %>
      <p class="none_text" style="margin-left:20px;">None</p>
    <% end %>
  <% end %>
  <br/>
</div><commit_msg>Changed the styling of runs/show page back to include the "Outputs" tab that can be closed/collapsed so users can more easily see the info underneath. Finn can complain directly to me ;-).<commit_after><div id="run-outputs">
  <% if run.finished? && run.outputs.any? %>
      <!-- Result output port names from the workflow -->
      <% result_output_port_names = run.workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::RESULT) }.collect { |i| i.name } -%>
      <!-- Figure out result outputs from the run -->
      <% run_result_outputs = run.outputs.select { |output| result_output_port_names.include?(output.name) } %>
      <div class="fold">
        <div class="foldTitle">
          Outputs
        </div>
        <div class="foldContent">
          <h2 style='background-color: #CDDEEF; background-image: url("../images/header-bg2.png");'>Results
            (<%= run_result_outputs.count -%>)</h2>
          <% unless run_result_outputs.blank? -%>
              <div style="clear: both;"></div>

              <table class="simple" style="width: 96%; margin-left:2%; margin-right:2%;">
                <% run_result_outputs.each do |b| -%>
                    <tr>
                      <td>
                        <h3><%= b.name %></h3>

                        <p>
                          <strong>Value:</strong>
                          <%= "(#{b.metadata[:type]})" if b.depth == 0 %>
                          <%= show_output(run, b) %>
                        </p>
                      </td>
                    </tr>
                <% end %>
              </table>
          <% else %>
              <p class="none_text" style="margin-left:20px;">None</p>
          <% end %>


          <!-- Error/log output port names from the workflow -->
          <% error_log_output_port_names = run.workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::ERROR_LOG) }.collect { |i| i.name } -%>
          <!-- Figure out error/log outputs from the run -->
          <% run_error_log_outputs = run.outputs.select { |output| error_log_output_port_names.include?(output.name) } %>
          <h2 style='background-color: #CDDEEF; background-image: url("../images/header-bg2.png");'>Errors/Logs
            (<%= run_error_log_outputs.count -%>)</h2>
          <% unless run_error_log_outputs.blank? -%>
              <div style="clear: both;"></div>

              <table class="simple" style="width: 96%; margin-left:2%; margin-right:2%;">
                <% run_error_log_outputs.each do |b| -%>
                    <tr>
                      <td>
                        <h3><%= b.name %></h3>

                        <p>
                          <strong>Value:</strong>
                          <%= "(#{b.metadata[:type]})" if b.depth == 0 %>
                          <%= show_output(run, b) %>
                        </p>
                      </td>
                    </tr>
                <% end %>
              </table>
          <% else %>
              <p class="none_text" style="margin-left:20px;">None</p>
          <% end %>
  <% end %>
  </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17605131860299358, 'fraction_numerical': 0.008553100498930863, 'mean_word_length': 1.8305597579425112, 'pattern_counts': {'":': 0, '<': 142, '<?xml version=': 0, '>': 142, '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': '7479251', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1691, 'n_words': 335}