<commit_before><%# default partial to display solr document fields in catalog show view -%>
<dl class="dl-horizontal  dl-invert">
  <% document_show_fields.each do |solr_fname, field| -%>
    <% if should_render_show_field? document, field %>
    <dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label :field => solr_fname %></dt>
    <dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_value :document => document, :field => solr_fname %></dd>
    <% end -%>
  <% end -%>
  <dt>Datastreams:</dt>
  <dd>
    <ul>
    <% document.datastreams.each do |dsid, dsprofile| %>
    <li>
      <%= 
	 link_to_unless dsprofile.empty?, dsid, datastream_path(document.id, dsid) do |name|
	   "#{name} (not used)"
	 end
	 %>
    </li>
    <% end %>
    </ul>
  </dd>
  <% if document.admin_policy_uri %>
  <dt>Admin Policy:</dt>
  <dd>
    <%= link_to uri_to_pid(document.admin_policy_uri), catalog_path(uri_to_pid(document.admin_policy_uri)) %>
  </dd>
  <% end %>
  <% if document.parent_uri %>
  <dt>Parent Object:</dt>
  <dd>
    <%= link_to uri_to_pid(document.parent_uri), catalog_path(uri_to_pid(document.parent_uri)) %>
  </dd>
  <% end %>
</dl><commit_msg>used new methods added to SolrDocument<commit_after><%# default partial to display solr document fields in catalog show view -%>
<dl class="dl-horizontal  dl-invert">
  <% document_show_fields.each do |solr_fname, field| -%>
    <% if should_render_show_field? document, field %>
    <dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label :field => solr_fname %></dt>
    <dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_value :document => document, :field => solr_fname %></dd>
    <% end -%>
  <% end -%>
  <dt>Datastreams:</dt>
  <dd>
    <ul>
    <% document.datastreams.each do |dsid, dsprofile| %>
    <li>
      <%= 
	 link_to_unless dsprofile.empty?, dsid, datastream_path(document.id, dsid) do |name|
	   "#{name} (not used)"
	 end
	 %>
    </li>
    <% end %>
    </ul>
  </dd>
  <% if document.admin_policy? %>
  <dt>Admin Policy:</dt>
  <dd>
    <%= link_to document.admin_policy_pid, catalog_path(document.admin_policy_pid) %>
  </dd>
  <% end %>
  <% if document.parent? %>
  <dt>Parent Object:</dt>
  <dd>
    <%= link_to document.parent_pid, catalog_path(document.parent_pid) %>
  </dd>
  <% end %>
</dl>
{'fraction_non_alphanumeric': 0.17820140903439702, 'fraction_numerical': 0.0, 'mean_word_length': 3.88663967611336, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 89, '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': '2387408', 'n_tokens_mistral': 953, 'n_tokens_neox': 880, 'n_words': 174}