<commit_before><div id="right_column" class="sidebar right_column" role="complementary">
  <div class="sidebar__donate-cta">
    <h2 class="sidebar__donate-cta__header"><%= _('We work to defend the right to FOI for everyone') %></h2>
    <p class="sidebar__donate-cta__para"><%= _('Help us protect your right to hold public authorities to account. Donate and support our work.') %></p>
    <a href="https://www.mysociety.org/donate?utm_source=whatdotheyknow.com&utm_content=request+sidebar+donate+now&utm_medium=link&utm_campaign=donation_drive_2016" class="button sidebar__donate-cta__button">Donate now</a>
  </div>
  <div id="track-request" class="track-request">
    <h2><%= _('Follow this request') %></h2>

    <p>
      <%= n_("There is {{count}} person following this request",
             "There are {{count}} people following this request",
             @follower_count,
             :count => @follower_count) %>
    </p>
    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user && @info_request.user == @user, :location => 'sidebar' } %>
    <%= render :partial => 'track/rss_feed', :locals => { :track_thing => @track_thing, :location => 'sidebar' } %>
  </div>

  <% if @info_request.described_state != "attention_requested" %>
    <h2><%= _('Offensive? Unsuitable?') %></h2>
      <% if @info_request.attention_requested %>
        <% if @info_request.prominence == 'hidden' %>
          <p>
            <%= _("This request has prominence 'hidden'. You can only see it " \
                  "because you are logged in as a super user.") %>
          </p>
        <% elsif @info_request.prominence == 'requester_only' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.html.erb %>
          <p><%= _('This request is hidden, so that only you the requester ' \
                      'can see it. Please <a href="{{url}}">contact us</a> ' \
                      'if you are not sure why.',
                   :url => help_requesting_path.html_safe) %></p>
        <% else %>
          <p><%= _('This request has been marked for review by the site ' \
                     'administrators, who have not hidden it at this time. ' \
                     'If you believe it should be hidden, please ' \
                     '<a href="{{url}}">contact us</a>.',
                   :url => help_requesting_path.html_safe) %></p>
        <% end %>
      <% else %>
        <p><%= _('Requests for personal information and vexatious requests ' \
                    'are not considered valid for FOI purposes ' \
                    '(<a href="/help/about">read more</a>).') %></p>
        <p><%= _('If you believe this request is not suitable, you can report ' \
                    'it for attention by the site administrators') %></p>
        <%= link_to _("Report this request"), new_request_report_path(:request_id => @info_request.url_title), :class => 'report-this-request' %>
      <% end %>
  <% else %>
    <p><%= _('Requests for personal information and vexatious requests are ' \
                'not considered valid for FOI purposes ' \
                '(<a href="/help/about">read more</a>).') %></p>
    <p><%= _('If you believe this request is not suitable, you can report it ' \
                'for attention by the site administrators') %></p>
    <%= link_to _("Report this request"), new_request_report_path(:request_id => @info_request.url_title) %>
  <% end %>

  <%= render :partial => 'request/act' %>
  <%= render :partial => 'request/next_actions' %>

  <% cache_if_caching_fragments(@similar_cache_key, :expires_in => 3.days) do %>
    <% xapian_similar, xapian_similar_more = @info_request.similar_requests %>
    <% if !xapian_similar.nil? && xapian_similar.results.size > 0 %>
      <h2><%= _('Similar requests')%></h2>
      <% utm_params = { :utm_source => site_name.downcase,
                        :utm_medium => 'link',
                        :utm_content => 'sidebar_similar_requests',
                        :utm_campaign => 'alaveteli-experiments-87' } %>

      <% xapian_similar.results.each do |result| %>
        <%= render :partial => 'request/request_listing_short_via_event',
                   :locals => { :event => result[:model],
                                :info_request => result[:model].info_request,
                                :utm_params => utm_params } %>
      <% end %>
      <% if xapian_similar_more %>
        <p>
          <%= link_to similar_request_path(@info_request.url_title, utm_params) do %>
            <%= _("More similar requests") %>
          <% end %>
        </p>
      <% end %>
    <% end %>
  <% end %>

  <p><%= link_to _('Event history details'), request_details_path(@info_request) %></p>

  <!-- this link with this wording is here for legal reasons, discuss with
    board and our lawyer before changing or removing it -->
  <p><small><%= link_to _('Are you the owner of any commercial copyright on this page?'), help_officers_path(:anchor => "copyright") %></small></p>
</div>
<commit_msg>Reconcile views with alaveteli core<commit_after><div id="right_column" class="sidebar right_column" role="complementary">
  <div class="sidebar__donate-cta">
    <h2 class="sidebar__donate-cta__header"><%= _('We work to defend the right to FOI for everyone') %></h2>
    <p class="sidebar__donate-cta__para"><%= _('Help us protect your right to hold public authorities to account. Donate and support our work.') %></p>
    <a href="https://www.mysociety.org/donate?utm_source=whatdotheyknow.com&utm_content=request+sidebar+donate+now&utm_medium=link&utm_campaign=donation_drive_2016" class="button sidebar__donate-cta__button">Donate now</a>
  </div>
  <div id="track-request" class="track-request">
    <h2><%= _('Follow this request') %></h2>

    <p>
      <%= n_("There is {{count}} person following this request",
             "There are {{count}} people following this request",
             @follower_count,
             :count => @follower_count) %>
    </p>
    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user && @info_request.user == @user, :location => 'sidebar' } %>
    <%= render :partial => 'track/rss_feed', :locals => { :track_thing => @track_thing, :location => 'sidebar' } %>
  </div>

  <% if @info_request.described_state != "attention_requested" %>
    <h2><%= _('Offensive? Unsuitable?') %></h2>
      <% if @info_request.attention_requested %>
        <% if @info_request.prominence == 'hidden' %>
          <p>
            <%= _("This request has prominence 'hidden'. You can only see it " \
                  "because you are logged in as a super user.") %>
          </p>
        <% elsif @info_request.prominence == 'requester_only' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.html.erb %>
          <p><%= _('This request is hidden, so that only you the requester ' \
                      'can see it. Please <a href="{{url}}">contact us</a> ' \
                      'if you are not sure why.',
                   :url => help_requesting_path.html_safe) %></p>
        <% else %>
          <p><%= _('This request has been marked for review by the site ' \
                     'administrators, who have not hidden it at this time. ' \
                     'If you believe it should be hidden, please ' \
                     '<a href="{{url}}">contact us</a>.',
                   :url => help_requesting_path.html_safe) %></p>
        <% end %>
      <% else %>
        <p><%= _('Requests for personal information and vexatious requests ' \
                    'are not considered valid for FOI purposes ' \
                    '(<a href="/help/about">read more</a>).') %></p>
        <p><%= _('If you believe this request is not suitable, you can report ' \
                    'it for attention by the site administrators') %></p>
        <%= link_to _("Report this request"), new_request_report_path(:request_id => @info_request.url_title), :class => 'report-this-request' %>
      <% end %>
  <% else %>
    <p><%= _('Requests for personal information and vexatious requests are ' \
                'not considered valid for FOI purposes ' \
                '(<a href="/help/about">read more</a>).') %></p>
    <p><%= _('If you believe this request is not suitable, you can report it ' \
                'for attention by the site administrators') %></p>
    <%= link_to _("Report this request"), new_request_report_path(:request_id => @info_request.url_title) %>
  <% end %>

  <%= render :partial => 'request/act' %>
  <%= render :partial => 'request/next_actions' %>

  <% cache_if_caching_fragments(@similar_cache_key, :expires_in => 3.days) do %>
    <% xapian_similar, xapian_similar_more = @info_request.similar_requests %>
    <% if !xapian_similar.nil? && xapian_similar.results.size > 0 %>
      <h2><%= _('Similar requests')%></h2>

      <% utm_params = { :utm_source => site_name.downcase,
                        :utm_medium => 'link',
                        :utm_content => 'sidebar_similar_requests',
                        :utm_campaign => 'alaveteli-experiments-87' } %>

      <% xapian_similar.results.each do |result| %>
        <%= render :partial => 'request/request_listing_short_via_event',
                   :locals => { :event => result[:model],
                                :info_request => result[:model].info_request,
                                :utm_params => utm_params } %>
      <% end %>

      <% if xapian_similar_more %>
        <p>
          <%= link_to similar_request_path(@info_request.url_title, utm_params) do %>
            <%= _("More similar requests") %>
          <% end %>
        </p>
      <% end %>

    <% end %>
  <% end %>

  <p><%= link_to _('Event history details'), request_details_path(@info_request) %></p>

  <!-- this link with this wording is here for legal reasons, discuss with
    board and our lawyer before changing or removing it -->
  <p><small><%= link_to _('Are you the owner of any commercial copyright on this page?'), help_officers_path(:anchor => "copyright") %></small></p>
</div>

{'fraction_non_alphanumeric': 0.1537867824409069, 'fraction_numerical': 0.003087313072841293, 'mean_word_length': 2.5427204374572794, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 255, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '911565', 'n_tokens_mistral': 3313, 'n_tokens_neox': 3019, 'n_words': 826}