<commit_before><% @title = h(@info_request.title) %>

<% if @info_request.prominence == 'hidden' %>
    <p id="hidden_request">
    This request has prominence 'hidden'. You can only see it because you are logged
    in as a super user.
    </p>
<% end %>
<% if @info_request.prominence == 'requester_only' %>
    <p id="hidden_request">
    This request is hidden, so that only you the requester can see it. Please
    <a href="/help/contact">contact us</a> if you are not sure why.
    </p>
<% end %>


<% if @update_status || @info_request.awaiting_description %>
    <div class="describe_state_form" id="describe_state_form_1">
    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>
    </div>
<% end %>

<%= render :partial => 'sidebar' %>

<div id="request_main">
    <h1><%=@title%></h1>

    <% if @info_request.user.profile_photo %>
        <p class="user_photo_on_request">
            <img src="<%= get_profile_photo_url(:url_name => @info_request.user.url_name) %>" alt="">
        </p>
    <% end %>

    <p class="subtitle">
    <%= user_link(@info_request.user) %> made this
    <%=h @info_request.law_used_full%> 
    request 
    <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", request_admin_url(@info_request) %>)
    <% end %>
    to <%= public_body_link(@info_request.public_body) %>
    </p>

    <p id="request_status" class="request_icon_line icon_<%= @info_request.calculate_status %>">
    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please <strong>answer the question above</strong> so we know whether the 
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an <strong>unknown status</strong>. 
            <% if @old_unclassified %>
              We're waiting for someone to read 
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              and update the status accordingly. Perhaps <strong>you</strong> might like to help out by doing that?
            <% else %>
              We're waiting for
              <%= user_link(@info_request.user) %> to read 
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %> 
              and update the status.
            <% end %>
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently <strong>waiting for a response</strong> from <%= public_body_link(@info_request.public_body) %>,
        they must respond promptly and 
        <% if @info_request.public_body.is_school? %>
            in term time
        <% else %>
            normally 
        <% end %>
        no later than <strong><%= simple_date(@info_request.date_response_required_by) %></strong>
        (<%= link_to "details", "/help/requesting#quickly_response" %>).<commit_msg>More admin links in request pages. Closes #46.<commit_after><% @title = h(@info_request.title) %>

<% if @info_request.prominence == 'hidden' %>
    <p id="hidden_request">
    This request has prominence 'hidden'. You can only see it because you are logged
    in as a super user.
    </p>
<% end %>
<% if @info_request.prominence == 'requester_only' %>
    <p id="hidden_request">
    This request is hidden, so that only you the requester can see it. Please
    <a href="/help/contact">contact us</a> if you are not sure why.
    </p>
<% end %>


<% if @update_status || @info_request.awaiting_description %>
    <div class="describe_state_form" id="describe_state_form_1">
    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>
    </div>
<% end %>

<%= render :partial => 'sidebar' %>

<div id="request_main">
    <h1><%=@title%></h1>

    <% if @info_request.user.profile_photo %>
        <p class="user_photo_on_request">
            <img src="<%= get_profile_photo_url(:url_name => @info_request.user.url_name) %>" alt="">
        </p>
    <% end %>

    <p class="subtitle">
        <%= user_link(@info_request.user) %>
        <% if !@user.nil? && @user.admin_page_links? %>
            (<%= link_to "admin", user_admin_url(@info_request.user) %>)
        <% end %>
        made this
        <%=h @info_request.law_used_full%> request 
        <% if !@user.nil? && @user.admin_page_links? %>
            (<%= link_to "admin", request_admin_url(@info_request) %>)
        <% end %>
        to
        <%= public_body_link(@info_request.public_body) %>
        <% if !@user.nil? && @user.admin_page_links? %>
            (<%= link_to "admin", public_body_admin_url(@info_request.public_body) %>)
        <% end %>
    </p>

    <p id="request_status" class="request_icon_line icon_<%= @info_request.calculate_status %>">
    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please <strong>answer the question above</strong> so we know whether the 
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an <strong>unknown status</strong>. 
            <% if @old_unclassified %>
              We're waiting for someone to read 
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              and update the status accordingly. Perhaps <strong>you</strong> might like to help out by doing that?
            <% else %>
              We're waiting for
              <%= user_link(@info_request.user) %> to read 
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %> 
              and update the status.
            <% end %>
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently <strong>waiting for a response</strong> from <%= public_body_link(@info_request.public_body) %>,
        they must respond promptly and 
        <% if @info_request.public_body.is_school? %>
            in term time
        <% else %>
            normally 
        <% end %>
        no later than <strong><%= simple_date(@info_request.date_response_required_by) %></strong>
        (<%= link_to "details", "/help/requesting#quickly_response" %>).
{'fraction_non_alphanumeric': 0.14923747276688454, 'fraction_numerical': 0.001556178026766262, 'mean_word_length': 2.8052101835405567, 'pattern_counts': {'":': 0, '<': 139, '<?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': '4597915', 'n_tokens_mistral': 2137, 'n_tokens_neox': 1921, 'n_words': 467}