<commit_before><%= render :partial => "general/item_title", :locals => {:item => @workflow} -%>

<ul class="sectionIcons">
  <% human_name = text_for_resource @workflow %>
  <%= render :partial=>"workflow_buttons",:locals=>{:workflow => @workflow, :version=>@display_workflow.version, :based_off=>nil, :human_name=>human_name} %>
</ul>
<br/>

<div class="show_basic">

<%# Versioning hidden for now: %>
<% render :partial=>"assets/upload_new_version_form", :locals=>{:resource=>@workflow} -%>

<div class="main_content_left_box">
  <%# Versioning hidden for now: %>
  <% render :partial=>"assets/resource_version_details", :locals=>{:displayed_resource=>@display_workflow, :resource=>@workflow} -%>
    <div class="box_about_actor">
      <%= render :partial => 'fileinfo', :object => @display_workflow.content_blob -%>
      <p>
        <b>Category:</b>
        <%= @workflow.category.name.html_safe -%>
      </p>

      <!-- Uploader -->
      <p>
        <b>Uploader:</b>
        <%= @workflow.contributor.nil? ? jerm_harvester_name.html_safe : @workflow.contributor.person.name  %>
      </p>

      <%= render :partial => "assets/special_auth_code_display", :locals => {:resource => @workflow} %>
      <%= item_description @display_workflow.description -%>
    </div>

    <% workflow_model = @display_workflow.t2flow %>
    <% processors = workflow_model.all_processors || [] -%>
    <% inputs = @workflow.input_ports || []  -%>
    <% outputs = @workflow.output_ports || []  -%>

    <!-- Data inputs -->
    <% data_inputs = inputs.select{|input| (input.port_type.name == WorkflowInputPortType::DATA)}  -%>
    <div class="fold">
      <div class="foldTitle">
        Data Inputs (<%= data_inputs.count -%>)
      </div>
      <div class="foldContent" style="display: none;">
        <% unless data_inputs.blank? -%>
            <table class="simple" style="width: 100%;">
              <% data_inputs.each do |b| -%>
              <tr>
                <td>
                  <h3><%= b.name %></h3>
                  <p>
                    <%= ('<strong>Description: </strong>' + (b.description || '')).html_safe %>
                  </p><commit_msg>Workflow uploader now appears as a link to a person in SEEK on workflow/show page.<commit_after><%= render :partial => "general/item_title", :locals => {:item => @workflow} -%>

<ul class="sectionIcons">
  <% human_name = text_for_resource @workflow %>
  <%= render :partial=>"workflow_buttons",:locals=>{:workflow => @workflow, :version=>@display_workflow.version, :based_off=>nil, :human_name=>human_name} %>
</ul>
<br/>

<div class="show_basic">

<%# Versioning hidden for now: %>
<% render :partial=>"assets/upload_new_version_form", :locals=>{:resource=>@workflow} -%>

<div class="main_content_left_box">
  <%# Versioning hidden for now: %>
  <% render :partial=>"assets/resource_version_details", :locals=>{:displayed_resource=>@display_workflow, :resource=>@workflow} -%>
    <div class="box_about_actor">
      <%= render :partial => 'fileinfo', :object => @display_workflow.content_blob -%>
      <p>
        <b>Category:</b>
        <%= @workflow.category.name.html_safe -%>
      </p>

      <!-- Uploader -->
      <p>
        <b>Uploader:</b>
        <%= @workflow.contributor.nil? ? jerm_harvester_name.html_safe : link_to(@workflow.contributor.person.name, person_path(@workflow.contributor.person))  %>
      </p>

      <%= render :partial => "assets/special_auth_code_display", :locals => {:resource => @workflow} %>
      <%= item_description @display_workflow.description -%>
    </div>

    <% workflow_model = @display_workflow.t2flow %>
    <% processors = workflow_model.all_processors || [] -%>
    <% inputs = @workflow.input_ports || []  -%>
    <% outputs = @workflow.output_ports || []  -%>

    <!-- Data inputs -->
    <% data_inputs = inputs.select{|input| (input.port_type.name == WorkflowInputPortType::DATA)}  -%>
    <div class="fold">
      <div class="foldTitle">
        Data Inputs (<%= data_inputs.count -%>)
      </div>
      <div class="foldContent" style="display: none;">
        <% unless data_inputs.blank? -%>
            <table class="simple" style="width: 100%;">
              <% data_inputs.each do |b| -%>
              <tr>
                <td>
                  <h3><%= b.name %></h3>
                  <p>
                    <%= ('<strong>Description: </strong>' + (b.description || '')).html_safe %>
                  </p>
{'fraction_non_alphanumeric': 0.19311276164753544, 'fraction_numerical': 0.0027008777852802163, 'mean_word_length': 3.0180831826401446, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 149, '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': '6417464', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1438, 'n_words': 238}