<commit_before><div id='actions'>
	<ul>
		<li>
			<%= link_to "Update who gets notified", edit_admin_inquiry_setting_url(InquirySetting.notification_recipients),
			                                        :class => "user_comment_icon" %>
		</li>
		<li>
			<%= link_to "Edit confirmation email", edit_admin_inquiry_setting_url(InquirySetting.confirmation_body),
			                                       :class => "edit_email_icon" %>
		</li>
	</ul>
</div>
<div id='records'>
	<h2>Open Inquiries</h2>
	<% if @open_inquiries.size > 0 -%>
    <ul>
      <% for inquiry in @open_inquiries %>
				<li class='clearfix record <%= cycle("on", "on-hover") %>'>
					<span class='title'>
						<span class='actions'>
							<%= link_to image_tag('refinery/icons/accept.png'), {:action => 'toggle_status', :id => inquiry.id},
													{:title => "Move this inquiry to closed"} -%>
							<%= link_to image_tag('refinery/icons/email_open.png'), {:action => 'show', :id => inquiry.id},
							     				:title => "Read this inquiry" %>
						</span>
						<%=h inquiry.name %> 
  					<span class="preview">
  					  - <%= truncate(strip_tags(inquiry.message), :length => 50) -%>
  					</span>
					</span>
        </li>
      <% end -%>
    </ul>
	<% else -%>
    <p>
			<%= image_tag('refinery/icons/accept.png', :style => 'vertical-align: bottom') %>
			Hooray! There are no open inquiries because you've dealt with them all.
    </p>
	<% end -%>
	<h2>Closed Inquiries</h2>
	<% if @closed_inquiries.size > 0 -%>
    <ul>
      <% for inquiry in @closed_inquiries %>
        <li class='clearfix record <%= cycle("on", "on-hover") %>'>
				  <span class='title'>
					  <span class='actions'>
						  <%= link_to image_tag('refinery/icons/arrow_up.png'), {:action => 'toggle_status', :id => inquiry.id},
						                                                        {:title => "Move this inquiry to open"} -%>
							<%= link_to image_tag('refinery/icons/email_open.png'), {:action => 'show', :id => inquiry.id},<commit_msg>allow the admin to delete an inquiry even if it hasnt been closed. Very useful for deleting unwanted spam<commit_after><div id='actions'>
	<ul>
		<li>
			<%= link_to "Update who gets notified", edit_admin_inquiry_setting_url(InquirySetting.notification_recipients),
			                                        :class => "user_comment_icon" %>
		</li>
		<li>
			<%= link_to "Edit confirmation email", edit_admin_inquiry_setting_url(InquirySetting.confirmation_body),
			                                       :class => "edit_email_icon" %>
		</li>
	</ul>
</div>
<div id='records'>
	<h2>Open Inquiries</h2>
	<% if @open_inquiries.size > 0 -%>
    <ul>
      <% for inquiry in @open_inquiries %>
				<li class='clearfix record <%= cycle("on", "on-hover") %>'>
					<span class='title'>
						<span class='actions'>
							<%= link_to image_tag('refinery/icons/accept.png'), {:action => 'toggle_status', :id => inquiry.id},
													{:title => "Move this inquiry to closed"} -%>
							<%= link_to image_tag('refinery/icons/email_open.png'), {:action => 'show', :id => inquiry.id},
							     				:title => "Read this inquiry" %>
							<%= link_to image_tag('refinery/icons/delete.png'), admin_inquiry_url(inquiry),
							                                                  :method => :delete, :class => "cancel",
														                                    :confirm => "Are you sure you want to delete #{inquiry.name}?",
														                                    :title => "Remove this inquiry forever" -%>
						</span>
						<%=h inquiry.name %> 
  					<span class="preview">
  					  - <%= truncate(strip_tags(inquiry.message), :length => 50) -%>
  					</span>
					</span>
        </li>
      <% end -%>
    </ul>
	<% else -%>
    <p>
			<%= image_tag('refinery/icons/accept.png', :style => 'vertical-align: bottom') %>
			Hooray! There are no open inquiries because you've dealt with them all.
    </p>
	<% end -%>
	<h2>Closed Inquiries</h2>
	<% if @closed_inquiries.size > 0 -%>
    <ul>
      <% for inquiry in @closed_inquiries %>
        <li class='clearfix record <%= cycle("on", "on-hover") %>'>
				  <span class='title'>
					  <span class='actions'>
						  <%= link_to image_tag('refinery/icons/arrow_up.png'), {:action => 'toggle_status', :id => inquiry.id},
						                                                        {:title => "Move this inquiry to open"} -%>
							<%= link_to image_tag('refinery/icons/email_open.png'), {:action => 'show', :id => inquiry.id},
{'fraction_non_alphanumeric': 0.1733835252435784, 'fraction_numerical': 0.00354295837023915, 'mean_word_length': 2.217236467236467, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6614644', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1399, 'n_words': 312}