<commit_before><div class="row-fluid">
  <div class="span9">
  <%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%>

  <% case %>
  <% when @index_patron[:creator] %>
    <%= render 'index_form_creator' %>
  <% when @index_patron[:contributor] %>
    <%= render 'index_form_contributor' %>
  <% when @index_patron[:publisher] %>
    <%= render 'index_form_publisher' %>
  <% when @manifestation %>
    <%= render 'index_form_manifestation' %>
  <% when @item %>
    <%= render 'index_form_item' %>
  <% when @series_statement %>
    <%= render 'index_form_series_statement' %>
  <% else %>
    <%= render 'index_form' %>
  <% end %>
  <%= set_focus_on_search_form %>

  <% if @series_statement %>
    <%= render 'show_series_statement' %>
  <% end %>

  <%- if @manifestations.total_count > 0 -%>
    <p>
      <%= t('page.number_of_search_results', :count => @count[:query_result], :numdocs => Manifestation.search.total, :seconds => sprintf("%.3f", @seconds)) -%>
      <%- if @count[:query_result] > Setting.max_number_of_results -%>
        <br />
        <%= t('page.limit_exceeded', :count => Setting.max_number_of_results) -%>
      <%- end -%>
    </p>

    <p>
      <%= t('page.sort_by') -%>:
      <%- if params[:sort_by].blank? -%>
        <strong><%= t('manifestation.date_of_acquisition') -%></strong>
      <%- else -%>
        <%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(:sort_by => nil, :only_path => true)) -%>
      <%- end -%>
      <%- if params[:sort_by] == 'pub_date' -%>
        <strong><%= t('activerecord.attributes.manifestation.date_of_publication') -%></strong>
      <%- else -%>
        <%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(:sort_by => 'pub_date', :only_path => true)) -%>
      <%- end -%>
      <%- if params[:sort_by] == 'title' -%>
        <strong><%= t('page.title') -%></strong>
      <%- else -%>
        <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'title', :only_path => true)) -%>
      <%- end -%>
    </p>
    <div class="autopagerize_page_element" id="list">
      <table class="table table-striped" id="manifestation_list">
        <%= render @manifestations %>
      </table>
      <%= paginate(@manifestations) -%>
    </div>

    <% if defined?(EnjuBookmark) %>
      <div id="tag_cloud">
        <h3 class="resource_title"><%= t('activerecord.models.tag') -%></h3>
        <div id="tag_cloud_list"></div>
        <%= image_tag 'spinner.gif', :id => 'spinner_tag_cloud',
          :style => 'padding-bottom: 15px; padding-left: 40px;' -%>
      </div>
    <% end %>
  <%- else -%>
    <!-- TODO: 検索結果が少ない場合にも表示させる -->
    <%- if @suggested_tag -%>
      <p><%= t('page.did_you_mean') -%>: <%= link_to @suggested_tag.name, manifestations_path(:tag => @suggested_tag.name) -%></p>
    <%- end -%>
    <%= render 'manifestations/not_found' -%>
  <%- end -%>

    <div class="autopagerize_insert_before"></div>

  </div>

  <div class="span3">
    <% if @series_statement and can?(:update, @series_statement) %>
      <%= render 'submenu_series_statement' %>
    <% end %>
    <h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(:action => 'index', :view => nil, :carrier_type => nil, :library => nil, :language => nil, :subject => nil, :only_path => true))  -%></h3>
      <%- if @manifestations.total_count > 0 -%>
        <%= render 'manifestations/all_facet' -%>
      <%- end -%>
    <div>
      <%- if params[:library_id].blank? -%>
        <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :commit => nil, :only_path => true)) -%>
      <%- else -%>
        <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :commit => nil, :only_path => true)) -%>
      <%- end -%>
    </div>
  </div>
</div>

<% if defined?(EnjuBookmark) %>
  <script type="text/javascript">
    window.onload = function() {
      $("#tag_cloud_list").load('<%= url_for(params.merge(:view => "tag_cloud", :only_path => true)) -%>', null, hideTagCloudSpinner);
    }

    function hideTagCloudSpinner(){
      $("#spinner_tag_cloud").hide();
    }
  </script>
<% end %>

<% if @manifestation_ids and @search_query %>
  <%= render 'session_ids' %>
<% end %><commit_msg>updated template file<commit_after><div class="row-fluid">
  <div class="span9">
  <%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%>

  <% case %>
  <% when @index_patron[:creator] %>
    <%= render 'index_form_creator' %>
  <% when @index_patron[:contributor] %>
    <%= render 'index_form_contributor' %>
  <% when @index_patron[:publisher] %>
    <%= render 'index_form_publisher' %>
  <% when @manifestation %>
    <%= render 'index_form_manifestation' %>
  <% when @item %>
    <%= render 'index_form_item' %>
  <% when @series_statement %>
    <%= render 'index_form_series_statement' %>
  <% else %>
    <%= render 'index_form' %>
  <% end %>
  <%= set_focus_on_search_form %>

  <% if @series_statement %>
    <%= render 'show_series_statement' %>
  <% end %>

  <%- if @manifestations.total_count > 0 -%>
    <p>
      <%= t('page.number_of_search_results', :count => @count[:query_result], :numdocs => Manifestation.search.total, :seconds => sprintf("%.3f", @seconds)) -%>
      <%- if @count[:query_result] > Setting.max_number_of_results -%>
        <br />
        <%= t('page.limit_exceeded', :count => Setting.max_number_of_results) -%>
      <%- end -%>
    </p>

    <p>
      <%= t('page.sort_by') -%>:
      <%- if params[:sort_by].blank? -%>
        <strong><%= t('manifestation.date_of_acquisition') -%></strong>
      <%- else -%>
        <%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(:sort_by => nil, :only_path => true)) -%>
      <%- end -%>
      <%- if params[:sort_by] == 'pub_date' -%>
        <strong><%= t('activerecord.attributes.manifestation.date_of_publication') -%></strong>
      <%- else -%>
        <%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(:sort_by => 'pub_date', :only_path => true)) -%>
      <%- end -%>
      <%- if params[:sort_by] == 'title' -%>
        <strong><%= t('page.title') -%></strong>
      <%- else -%>
        <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'title', :only_path => true)) -%>
      <%- end -%>
    </p>
    <div class="autopagerize_page_element" id="list">
      <table class="table table-striped" id="manifestation_list">
        <%= render @manifestations %>
      </table>
      <%= paginate(@manifestations) -%>
    </div>

    <% if defined?(EnjuBookmark) %>
      <div id="tag_cloud">
        <h3 class="resource_title"><%= t('activerecord.models.tag') -%></h3>
        <div id="tag_cloud_list"></div>
        <%= image_tag 'spinner.gif', :id => 'spinner_tag_cloud',
          :style => 'padding-bottom: 15px; padding-left: 40px;' -%>
      </div>
    <% end %>
  <%- else -%>
    <!-- TODO: 検索結果が少ない場合にも表示させる -->
    <%- if @suggested_tag -%>
      <p><%= t('page.did_you_mean') -%>: <%= link_to @suggested_tag.name, manifestations_path(:tag => @suggested_tag.name) -%></p>
    <%- end -%>
    <%= render 'manifestations/not_found' -%>
  <%- end -%>

    <div class="autopagerize_insert_before"></div>

  </div>

  <div class="span3">
    <% if @series_statement and can?(:update, @series_statement) %>
      <%= render 'submenu_series_statement' %>
    <% end %>
    <h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(:action => 'index', :view => nil, :carrier_type => nil, :library => nil, :language => nil, :subject => nil, :only_path => true))  -%></h3>
      <%- if @manifestations.total_count > 0 -%>
        <%= render 'manifestations/all_facet' -%>
      <%- end -%>
    <div>
      <%- if params[:library_id].blank? -%>
        <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :commit => nil, :only_path => true)) -%>
      <%- else -%>
        <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :commit => nil, :only_path => true)) -%>
      <%- end -%>
    </div>
  </div>
</div>

<% if defined?(EnjuBookmark) %>
  <script type="text/javascript">
    window.onload = function() {
      $("#tag_cloud_list").load('<%= url_for(params.merge(:view => "tag_cloud", :only_path => true)) -%>', hideTagCloudSpinner);
    }

    function hideTagCloudSpinner(){
      $("#spinner_tag_cloud").hide();
    }
  </script>
<% end %>

<% if @manifestation_ids and @search_query %>
  <%= render 'session_ids' %>
<% end %>
{'fraction_non_alphanumeric': 0.22618296529968454, 'fraction_numerical': 0.004416403785488959, 'mean_word_length': 3.35884509624198, 'pattern_counts': {'":': 0, '<': 229, '<?xml version=': 0, '>': 325, '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': '1674758', 'n_tokens_mistral': 3712, 'n_tokens_neox': 3404, 'n_words': 565}